<?
$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('reseller/addEditReseller4')?>">

<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> <?=TITLE062?>  <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;'>  Login :  </td>
	<td class='formLabelLeft' width='70%' style='padding-top:10px;'><input type='text' class='validate[required,length[6,15]] formInput' name='login' id='login' style='width:150px;' readonly value='<?= $login; ?>' />
	<span style="padding:5px;font-size:11px;color:#FF0000">	* Dont Change	</span>
	</td>
</tr>

<tr>
	<td class='formLabelRigit'>  Password :  </td>
	<td class='formLabelLeft'><input type='text' class='validate[required,length[6,15]] formInput' name='password' id='password' style='width:150px;' value='<?= $password; ?>' />
	<span style="padding:5px;font-size:11px;color:#FF0000">	*	</span>
	</td>
</tr>

<tr>
	<td class='formLabelRigit'>  Current Balacne :  </td>
	<td class='formLabelLeft'>
	<div style="padding-top:0px; float:left">
	<input type='text' class='validate[required] formInput' name='balance' id='balance' style='width:120px;' readonly value='<?= $balance; ?>' />
	</div>
	<div style="padding-top:2px;padding-left:5px; float:left">
	<a href="<?=site_url('reseller/showPaymentFormLevel4/'.$id.'/'.$balance)?>" rel='facebox' title="Add Payment">
	<img src="<?=base_url()?>/images/add_payment.gif" border="0" height="18">
    </a>
	</div>
	</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'>  Reseller Limit :  </td>
	<td class='formLabelLeft'><input type='text' class='formInput' name='limit_user' id='limit_user' style='width:70px;' value='<?= $limit_user; ?>' /></td>
</tr>

<tr>
	<td class='formLabelRigit'>  Tariff Limit :  </td>
	<td class='formLabelLeft'><input type='text' class='formInput' name='limit_rate' id='limit_rate' style='width:70px;' value='<?= $limit_rate; ?>' /></td>
</tr>

<tr>
	<td class='formLabelRigit'> Balance Limit :  </td>
	<td class='formLabelLeft'><input type='text' class='formInput' name='limit_balance' id='limit_balance' style='width:120px;' value='<?= $limit_balance; ?>' /></td>
</tr>


<!--
<tr>
	<td class='formLabelRigit'>  Commission :  </td>
	<td class='formLabelLeft'><input type='text' class='formInput' name='commission' id='commission' style='width:70px;' value='<?= $commission; ?>' /></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 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;'>  Full Name :  </td>
			<td class='formLabelLeft' width='70%' style='padding-top:10px;'><input type='text' class='validate[required] formInput' name='full_name' id='full_name' style='width:150px;' value='<?= $full_name; ?>' />
			<span style="padding:5px;font-size:11px;color:#FF0000">	*	</span>
			</td>
		</tr>

		<tr>
			<td class='formLabelRigit'>  Email :  </td>
			<td class='formLabelLeft'><input type='text' name='email' id='email' class='formInput' style='width:150px;' value='<?= $email; ?>' /></td>
		</tr>
        <!--
		<tr>
			<td class='formLabelRigit'>  Cell No. :  </td>
			<td class='formLabelLeft'><input type='text' name='cell' id='cell' class='formInput' style='width:150px;' value='<?= $cell; ?>' /></td>
		</tr>
		-->

		<tr>
			<td class='formLabelRigit'>  Phone No. :  </td>
			<td class='formLabelLeft'><input type='text' name='phone' id='phone' class='formInput' style='width:150px;' value='<?= $phone; ?>' /></td>
		</tr>

		<tr>
			<td class='formLabelRigit'>  City :  </td>
			<td class='formLabelLeft'><input type='text' name='city' id='city' class='formInput' style='width:150px;' value='<?= $city; ?>' /></td>
		</tr>


		<tr>
			<td class='formLabelRigit'>  Country :  </td>
			<td class='formLabelLeft'>
				  <select name="country" id="country" class="selectFrom">
				    <?=$countryList?>
				    </select>
			</td>
		</tr>


		<tr>
			<td class='formLabelRigit'>  State :  </td>
			<td class='formLabelLeft'><input type='text' name='state' id='state' class='formInput' style='width:150px;' value='<?= $state; ?>' /></td>
		</tr>


		<tr>
			<td class='formLabelRigit' valign='top'>  Address :  </td>
			<td class='formLabelLeft'><textarea class='formInputTextArea' NAME='address' id='address' ><?= $address; ?></textarea></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');
?>
