<?
$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('rate/addEditRateChart')?>">

<input type='hidden' name='id' id='id' value='<?= $id; ?>' >
<input type='hidden' name='id_rate' id='id_rate' value='<?= $id_rate; ?>' >
<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> <?=TITLE028?>  <?=$titleErrorMessage?>  </div>

    </td>
  </tr>

  <tr>
    <td colspan="2" 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"><?=$titleFormMessage?></td>
  </tr>

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


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


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

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


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


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


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


<tr>
<td class='formLabelRigit'> Is Disable? :  </td>
<td class='formLabelLeft'>

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

</td>
</tr>


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

 </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/footer');
?>
