<?
$this->load->view('cpanel/header');
?>

		<script src="<?=base_url()?>js/jquery.validationEngine-en.js" type="text/javascript"></script>
		<script src="<?=base_url()?>js/jquery.validationEngine.js" type="text/javascript"></script>



		<script>
		$(document).ready(function() {


			$("#formID").validationEngine()


			//$.validationEngine.loadValidation("#date")
			//alert($("#formID").validationEngine({returnIsValid:true}))
			//$.validationEngine.buildPrompt("#date","This is an example","error")	 		 // Exterior prompt build example
			//$.validationEngine.closePrompt(".formError",true) 							// CLOSE ALL OPEN PROMPTS
		});

	</script>



<form id="formID"  method="post" action="<?=site_url('client/addLotsName')?>">

<input type='hidden' name='id' id='id' value='<?= $id; ?>' >
<input type='hidden' name='action' id='action' value='<?= $action; ?>' >
<div align="center">
<table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">

  <tr>
    <td colspan="2" valign="top" style="padding-top:20px;">

      <img src="<?=base_url()?>images/s.gif" width="600" height="1" border="0" alt="" />
      <div id="module_info">

                  <span>&nbsp;&nbsp;&raquo;</span> <?=TITLE068?>  <span style='color:#BF0000'><?=$titleErrorMessage?> <span>  </div>

    </td>
  </tr>

  <tr>
    <td width="40%" valign="top" style="padding-top:10px;padding-right:5px;">
    <!-- Account Information -->

<table width="100%" class="tableBorder" border="0"  cellpadding="2" cellspacing="2">
  <tr>
    <td colspan="2" class="mainTableTitle"><?=$titleAccountMessage?></td>
  </tr>

<tr>
	<td class='formLabelRigit' width='30%' style='padding-top:10px;'>  Lot Name :  </td>
	<td class='formLabelLeft' width='70%' style='padding-top:10px;'><input type='text' class='validate[required,length[6,25]] formInput' name='description' id='description' style='width:200px;' value='<?= $description; ?>' />
	<span style="padding:5px;font-size:11px;color:#FF0000">	*	</span>
	</td>
</tr>

<tr>
	<td class='formLabelRigit'>  Client Type :  </td>
	<td class='formLabelLeft'>
	  <select name="clientType" id="clientType" class="validate[required] selectFrom">
	 <option value=""> -- Select One --</option>
	 <option value="<?=SIP_USER?>">Retail Client</option>
	 <option value="<?=ANI_USER?>">Calling Card Client</option>
    </select>
	</td>
</tr>



<tr>
	<td class='formLabelRigit'>  Parent :  </td>
	<td class='formLabelLeft'>
	  <select name="id_reseller" id="id_reseller" class="selectFrom">
	    <?=$resellerLevel1List?>
    </select>
	</td>
</tr>


<tr>
	<td class='formLabelRigit'>  Init Balacne :  </td>
	<td class='formLabelLeft'><input type='text' class='validate[required,custom[onlyNumber]] formInput' name='balance' id='balance' style='width:120px;' value='<?= $balance; ?>' />
	<span style="padding:5px;font-size:11px;color:#FF0000">	*	</span>
	</td>
</tr>

<tr>
	<td class='formLabelRigit'>  Tariff Name :  </td>
	<td class='formLabelLeft'>
	  <select name="id_rate" id="id_rate" class="validate[required] selectFrom">
	    <?=$rateList?>
    </select>
    <span style="padding:5px;font-size:11px;color:#FF0000">	*	</span>
	</td>
</tr>


<tr>
	<td class='formLabelRigit'> Call Limits :  </td>
	<td class='formLabelLeft'><input type='text'  class='validate[required,custom[onlyNumber]] formInput' name='calllimit' id='calllimit' style='width:70px;' value='<?= $calllimit; ?>' />
	<span style="padding:5px;font-size:11px;color:#FF0000">	*	</span>
	</td>
</tr>



  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>



    <!-- End Account Information -->

    </td>
    <td width="40%" valign="top" style="padding-top:10px;padding-left:5px;">
    <!-- Personal Information -->



		<table width="100%" class="tableBorder" border="0"  cellpadding="2" cellspacing="2">
		  <tr>
			<td colspan="2" class="mainTableTitle"><?=$titlePersonalMessage?></td>
		  </tr>

		<tr>
			<td class='formLabelRigit' width='30%' style='padding-top:10px;'>  Number of Clints :  </td>
			<td class='formLabelLeft' width='70%' style='padding-top:10px;'><input type='text' class='validate[required,custom[onlyNumber],length[1,4]] formInput' name='numClients' id='numClients' style='width:70px;' maxlength='4' value='100' />
			<span style="padding:5px;font-size:11px;color:#FF0000">	*	</span>
			</td>
		</tr>

		<tr>
			<td class='formLabelRigit'>  Login Length :  </td>
			<td class='formLabelLeft'>
			  <select name="loginLength" id="loginLength" class="selectFrom">
			 <option value="7">7</option>
			 <option value="8" selected="selected">8</option>
			 <option value="9">9</option>
			 <option value="10">10</option>
			</select>
			</td>
		</tr>


		<tr>
			<td class='formLabelRigit'>  Login Prefix :  </td>
			<td class='formLabelLeft'><input type='text' name='loginPrefix' id='loginPrefix' class='formInput' style='width:50px;' maxlength='3' value='' /></td>
		</tr>

		<tr>
			<td class='formLabelRigit'>  Password Length :  </td>
			<td class='formLabelLeft'>
			  <select name="passwordLength" id="passwordLength" class="selectFrom">
			 <option value="7">7</option>
			 <option value="8" selected="selected">8</option>
			 <option value="9">9</option>
			 <option value="10">10</option>
			</select>
			</td>
		</tr>


		<tr>
			<td class='formLabelRigit'>  Password Prefix :  </td>
			<td class='formLabelLeft'><input type='text' name='passwordPrefix' id='passwordPrefix' class='formInput' style='width:50px;' maxlength='3' value='' /></td>
		</tr>

		<tr>
			<td class='formLabelRigit'> Active :  </td>
			<td class='formLabelLeft'>

		<?
		if($status ==1)
		$checkDisable = "checked='checked'";
		else
		$checkDisable = "";
		?>
		<input name="status"  type="checkbox" id="status" value="1" <?=$checkDisable?> />

		</td>
		</tr>


		  <tr>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
		  </tr>
		</table>


    <!-- End Personal Information -->
    </td>
  </tr>


  <tr>
    <td colspan="2" align="center" style="padding:15px;"><input type="submit" name="submit" value="<?= $action == 'Add' ? " Submit Now " : "Edit Now" ?>" class="input-submit" /></td>
  </tr>


  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>
</div>
</form>



<?
$this->load->view('cpanel/left_nemu');
$this->load->view('cpanel/footer');
?>
