Viewing file: add_form.php (12.38 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<? $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('user/addEdit')?>">
<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> » </span> <?=TITLE074?> <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,custom[noSpecialCaracters],length[5,15]] formInput' name='login' id='login' style='width:150px;' value='<?= $login; ?>' /> <span style="padding:5px;font-size:11px;color:#FF0000"> * </span> </td> </tr>
<tr> <td class='formLabelRigit'> Password : </td> <td class='formLabelLeft'><input type='text' class='validate[required,custom[noSpecialCaracters],length[5,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'> Confirm Password : </td> <td class='formLabelLeft'><input type='text' class='validate[required,confirm[password]] formInput' name='re_password' id='re_password' style='width:150px;' value='<?= $password; ?>' /> <span style="padding:5px;font-size:11px;color:#FF0000"> * </span> </td> </tr>
<tr> <td class='formLabelRigit'> Full Name : </td> <td class='formLabelLeft'><input type='text' class='validate[required,length[5,35]] 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'> Display Name : </td> <td class='formLabelLeft'><input type='text' class='validate[required,length[5,30]] formInput' name='display_name' id='display_name' style='width:150px;' value='<?= $display_name; ?>' /> <span style="padding:5px;font-size:11px;color:#FF0000"> * </span> </td> </tr>
<tr> <td class='formLabelRigit'> Dept : </td> <td class='formLabelLeft'><input type='text' class='formInput' name='dept' id='dept' style='width:150px;' value='<?= $dept; ?>' /></td> </tr>
<tr> <td class='formLabelRigit'> Email : </td> <td class='formLabelLeft'><input type='text' class='formInput' name='email' id='email' style='width:150px;' value='<?= $email; ?>' /></td> </tr>
<tr> <td class='formLabelRigit'> Phone : </td> <td class='formLabelLeft'><input type='text' class='formInput' name='phone' id='phone' style='width:150px;' value='<?= $phone; ?>' /></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> </td> <td> </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;'> Reseller : </td> <td class='formLabelLeft' width='70%' style='padding-top:10px;'> <input name="reseller_section" id = "reseller_section" type="radio" value="0" <?= $reseller_section == '0' ? " checked " : "" ?>> <span style = 'padding-left:4px;padding-right:4px;'>No Access </span> <input name="reseller_section" id = "reseller_section" type="radio" value="1" <?= $reseller_section == '1' ? " checked " : "" ?>> <span style = 'padding-left:4px;padding-right:4px;'>View Only </span> <input name="reseller_section" id = "reseller_section" type="radio" value="2" <?= $reseller_section == '2' ? " checked " : "" ?>> <span style = 'padding-left:4px;padding-right:4px;'>Full Access </span>
</td> </tr>
<tr> <td class='formLabelRigit' style='padding:5px;'> GK Register Clients : </td> <td class='formLabelLeft' style='padding:5px;'> <input name="sip_section" id = "sip_section" type="radio" value="0" <?= $sip_section == '0' ? " checked " : "" ?>> <span style = 'padding-left:4px;padding-right:4px;'>No Access </span> <input name="sip_section" id = "sip_section" type="radio" value="1" <?= $sip_section == '1' ? " checked " : "" ?>> <span style = 'padding-left:4px;padding-right:4px;'>View Only </span> <input name="sip_section" id = "sip_section" type="radio" value="2" <?= $sip_section == '2' ? " checked " : "" ?>> <span style = 'padding-left:4px;padding-right:4px;'>Full Access </span>
</td> </tr>
<tr> <td class='formLabelRigit' style='padding:5px;'> IVR Clients : </td> <td class='formLabelLeft' style='padding:5px;'> <input name="ani_section" id = "ani_section" type="radio" value="0" <?= $ani_section == '0' ? " checked " : "" ?>> <span style = 'padding-left:4px;padding-right:4px;'>No Access </span> <input name="ani_section" id = "ani_section" type="radio" value="1" <?= $ani_section == '1' ? " checked " : "" ?>> <span style = 'padding-left:4px;padding-right:4px;'>View Only </span> <input name="ani_section" id = "ani_section" type="radio" value="2" <?= $ani_section == '2' ? " checked " : "" ?>> <span style = 'padding-left:4px;padding-right:4px;'>Full Access </span>
</td> </tr>
<tr> <td class='formLabelRigit' style='padding:5px;'> Wholesale Clients : </td> <td class='formLabelLeft' style='padding:5px;'> <input name="wholesale_section" id = "wholesale_section" type="radio" value="0" <?= $wholesale_section == '0' ? " checked " : "" ?>> <span style = 'padding-left:4px;padding-right:4px;'>No Access </span> <input name="wholesale_section" id = "wholesale_section" type="radio" value="1" <?= $wholesale_section == '1' ? " checked " : "" ?>> <span style = 'padding-left:4px;padding-right:4px;'>View Only </span> <input name="wholesale_section" id = "wholesale_section" type="radio" value="2" <?= $wholesale_section == '2' ? " checked " : "" ?>> <span style = 'padding-left:4px;padding-right:4px;'>Full Access </span>
</td> </tr>
<tr> <td class='formLabelRigit' style='padding:5px;'> Lots : </td> <td class='formLabelLeft' style='padding:5px;'> <input name="lots_section" id = "lots_section" type="radio" value="0" <?= $lots_section == '0' ? " checked " : "" ?>> <span style = 'padding-left:4px;padding-right:4px;'>No Access </span> <input name="lots_section" id = "lots_section" type="radio" value="1" <?= $lots_section == '1' ? " checked " : "" ?>> <span style = 'padding-left:4px;padding-right:4px;'>View Only </span> <input name="lots_section" id = "lots_section" type="radio" value="2" <?= $lots_section == '2' ? " checked " : "" ?>> <span style = 'padding-left:4px;padding-right:4px;'>Full Access </span>
</td> </tr>
<tr> <td class='formLabelRigit' style='padding:5px;'> DID : </td> <td class='formLabelLeft' style='padding:5px;'> <input name="did_section" id = "did_section" type="radio" value="0" <?= $did_section == '0' ? " checked " : "" ?>> <span style = 'padding-left:4px;padding-right:4px;'>No Access </span> <input name="did_section" id = "did_section" type="radio" value="1" <?= $did_section == '1' ? " checked " : "" ?>> <span style = 'padding-left:4px;padding-right:4px;'>View Only </span> <input name="did_section" id = "did_section" type="radio" value="2" <?= $did_section == '2' ? " checked " : "" ?>> <span style = 'padding-left:4px;padding-right:4px;'>Full Access </span>
</td> </tr>
<tr> <td class='formLabelRigit' style='padding:5px;'> Tariff : </td> <td class='formLabelLeft' style='padding:5px;'> <input name="rate_section" id = "rate_section" type="radio" value="0" <?= $rate_section == '0' ? " checked " : "" ?>> <span style = 'padding-left:4px;padding-right:4px;'>No Access </span> <input name="rate_section" id = "rate_section" type="radio" value="1" <?= $rate_section == '1' ? " checked " : "" ?>> <span style = 'padding-left:4px;padding-right:4px;'>View Only </span> <input name="rate_section" id = "rate_section" type="radio" value="2" <?= $rate_section == '2' ? " checked " : "" ?>> <span style = 'padding-left:4px;padding-right:4px;'>Full Access </span>
</td> </tr>
<tr> <td class='formLabelRigit' style='padding:5px;'> Dial Plan : </td> <td class='formLabelLeft' style='padding:5px;'> <input name="dialplan_section" id = "dialplan_section" type="radio" value="0" <?= $dialplan_section == '0' ? " checked " : "" ?>> <span style = 'padding-left:4px;padding-right:4px;'>No Access </span> <input name="dialplan_section" id = "dialplan_section" type="radio" value="1" <?= $dialplan_section == '1' ? " checked " : "" ?>> <span style = 'padding-left:4px;padding-right:4px;'>View Only </span> <input name="dialplan_section" id = "dialplan_section" type="radio" value="2" <?= $dialplan_section == '2' ? " checked " : "" ?>> <span style = 'padding-left:4px;padding-right:4px;'>Full Access </span>
</td> </tr>
<tr> <td class='formLabelRigit' style='padding:5px;'> Administrator : </td> <td class='formLabelLeft' style='padding:5px;'> <input name="user_section" id = "user_section" type="radio" value="0" <?= $user_section == '0' ? " checked " : "" ?>> <span style = 'padding-left:4px;padding-right:4px;'>No Access </span> <input name="user_section" id = "user_section" type="radio" value="1" <?= $user_section == '1' ? " checked " : "" ?>> <span style = 'padding-left:4px;padding-right:4px;'>View Only </span> <input name="user_section" id = "user_section" type="radio" value="2" <?= $user_section == '2' ? " checked " : "" ?>> <span style = 'padding-left:4px;padding-right:4px;'>Full Access </span>
</td> </tr>
<tr> <td class='formLabelRigit' style='padding:5px;'> Reports : </td> <td class='formLabelLeft' style='padding:5px;'> <input name="report_section" id = "user_section" type="radio" value="0" <?= $report_section == '0' ? " checked " : "" ?>> <span style = 'padding-left:4px;padding-right:4px;'>No Access </span> <input name="report_section" id = "user_section" type="radio" value="1" <?= $report_section == '1' ? " checked " : "" ?>> <span style = 'padding-left:4px;padding-right:4px;'>View Only </span> <input name="report_section" id = "user_section" type="radio" value="2" <?= $report_section == '2' ? " checked " : "" ?>> <span style = 'padding-left:4px;padding-right:4px;'>Full Access </span>
</td> </tr>
<tr> <td> </td> <td> </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> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> </tr> </table>
</div> </form>
<? $this->load->view('cpanel/left_nemu'); $this->load->view('cpanel/footer'); ?>
|