{extends file="./main.tpl"}
{block name=head}
<script type="text/javascript">
$(document).ready(function() {
  $('#partyName').focus();
});
function myFunction()
{
	if(confirm("Are You Sure To Delete")== true)
	{
		return true;
	}
	else
	{
		return false;
	}
}
</script>
{/block}
{block name=body}
<form name="partyForm"action="{$smarty.server.PHP_SELF}" method="POST" onsubmit="return confirm('DO You Want To Submit !!!!!')";>
<input type="hidden" name="partyId" value="{$partyId}">
<table cellpadding="2" cellspacing="0" border="" align="center">
  <tr>
    <td colspan="2" align="center">
      <h1><font size="5px">Party Entry</font></h1>
    </td>
  </tr>
   <tr>
    <th align="right">Party Type :</th>
    <td>
	  <select name="partyType" required>
	     <option value="">Select Party Type</option>
	    {html_options values=$partyTypeValue output=$partyTypeOutput selected=$partyType}
	  </select>
	</td>
  </tr>
  <tr>
    <th align="right">Party Name :</th>
    <td><input type="text" name="partyName" id="partyName" size="24" REQUIRED value="{$partyName}"/></td>
  </tr>
  <tr>
    <th align="right" valign="top">Address :</th>
    <td><textarea cols="19" name="address" rows="6">{$address}</textarea></td>
  </tr>
  <tr>
    <th align="right">Mobile :</th>
    <td><input type="text" name="mobile" size="24" value="{$mobile}"></td>
  </tr>
  <tr>
    <th align="right"  valign="top" >Other Information :</th>
    <td>
      <textarea cols="19" name="otherInfo" rows="6"></textarea>  	
    </td>
  </tr>
  <tr>
  	<td colspan="2" align="center"><input type="submit" value="Submit" name="submit" class="btn"></td>
  </tr>
</table>
</form>
{/block}