{if $showhtml == "yes"}
{include file="header.tpl" jsload = "ajax" }


{include file="tabsmenue-project.tpl" milestab = "active"}
<div id="content-left">
<div id="content-left-in">
<div class="miles">


<div class="breadcrumb">
<a href="managemilestone.php?action=showproject&amp;id={$project.ID}"><img src="./templates/standard/images/symbols/projects.png" alt="" />{$projectname|truncate:40:"...":true}</a>
</div>

<h1>{#addmilestone#}</h1>

{/if}
<div class="block_in_wrapper">
<h2>{#addmilestone#}</h2>

	<form class="main" method="post" action="managemilestone.php?action=add&amp;id={$project.ID}" {literal} onsubmit="return validateCompleteForm(this);"{/literal} >
	<fieldset>
		<div class="row"><label for="name">{#name#}:</label><input type="text" class="text" name="name" id="name" required="1" realname="{#name#}" /></div>
		<div class="row"><label for="desc">{#description#}:</label><textarea name="desc" id="desc" required="0" rows="3" cols="1" ></textarea></div>

		<div class="row">
		<label for="end">{#due#}:</label>
		<input type="text" class="text" name="end"  id="end" required="1" realname="{#due#}" {if $day and $month and $year} value = "{$day}.{$month}.{$year}" {/if} />
		</div>


	<div class="datepick">
		<div id = "datepicker_miles" class="picker" style = "display:none;"></div>
	</div>

	<script type="text/javascript">
	  	theCal = new calendar({$theM},{$theY});
		theCal.dayNames = ["{#monday#}","{#tuesday#}","{#wednesday#}","{#thursday#}","{#friday#}","{#saturday#}","{#sunday#}"];
		theCal.monthNames = ["{#january#}","{#february#}","{#march#}","{#april#}","{#may#}","{#june#}","{#july#}","{#august#}","{#september#}","{#october#}","{#november#}","{#december#}"];
		theCal.relateTo = "end";
		theCal.dateFormat = "{$settings.dateformat}";
		theCal.getDatepicker("datepicker_miles");
	</script>



		<div class="row-butn-bottom">
		<label>&nbsp;</label>
		<button type="submit" onfocus="this.blur();">{#addbutton#}</button>
		<button onclick="blindtoggle('addstone');toggleClass('add','add-active','add');toggleClass('add_butn','butn_link_active','butn_link');toggleClass('sm_miles','smooth','nosmooth');return false;" onfocus="this.blur();">{#cancel#}</button>
		</div>


	</fieldset>
	</form>

</div> {*block_in_wrapper end*}

{if $showhtml == "yes"}
<div class="content-spacer"></div>
</div> {*Miles END*}
</div> {*content-left-in END*}
</div> {*content-left END*}

{include file="sidebar-a.tpl"}
{include file="footer.tpl"}

{/if}