?
Current Path : /home1/savoy/www/savoyglobal.net/eldertree/application/views/settings/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : /home1/savoy/www/savoyglobal.net/eldertree/application/views/settings/add_branch.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); $this->load->view('qatar_id_validation'); ?> <script type="text/javascript"> function checkbranchcodeexistence(code) { $.ajax({ type: "POST", url: "<?= site_url() ?>/master/checkbranchcodeexistence/" + code, success: function (msg) { if (msg != 0) { alert("Branch code already exists"); $("#branch_code").val(''); } }}); } </script> <div class="row-fluid"> <div class="tab-pane " id="tab_2"> <div class="portlet box yellow"> <div class="portlet-title"> <div class="caption"><i class="icon-reorder"></i> Add New Branch Details</div> <div class="tools"> <a href="#" onclick="viewdata('settings', 'viewinsettingssearch', 'search_branch', 'view_branch', '<?= $_SESSION['pagenum']; ?>')" class="remove"></a> </div> </div> <div class="portlet-body form"> <!-- BEGIN FORM--> <?php $attributes = array('id' => 'validateform', 'class' => 'form-horizontal validate'); echo form_open('settings/addinsettings/insert_branch/view_branch/1', $attributes); ?> <h3 class="form-section"></h3> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Branch Name </label> <div class="controls"> <input type="text" name="branch_name" id="branch_name" class="m-wrap span12 required"/> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Branch Code </label> <div class="controls"> <input type="text" name="branch_code" id="branch_code" class="m-wrap span12 required" onchange="checkbranchcodeexistence(this.value)"/> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Address </label> <div class="controls"> <input type="text" name="address" id="address" class="m-wrap span12" /> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">City </label> <div class="controls"> <input type="text" name="city" id="city" class=" m-wrap span12 required" /> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Country </label> <div class="controls"> <input type="text" name="country" id="country" class=" m-wrap span12"/> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Contact No </label> <div class="controls"> <input type="text" name="contact_no" class=" m-wrap span12 required number" onchange="contact_validation(this)" /> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">E Mail </label> <div class="controls"> <input type="text" name="email" id="email" class=" m-wrap span12"/> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Fax </label> <div class="controls"> <input type="text" name="fax" id="fax" class=" m-wrap span12" /> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Website</label> <div class="controls"> <input type="text" name="website" id="website" class=" m-wrap span12"/> </div> </div> </div> </div> <h3 class="form-section">Email Settings</h3> <table class="table table-striped table-hover table-bordered"> <tr> <th>Email</th> <th>Name</th> <th>Password</th> <th>Smtp</th> </tr> <tr> <td><input type="text" name="from_email" id="from_email" class="email span12 " /> </td> <td><input type="text" name="from_name" id="from_name" class="span12 " /> </td> <td><input type="password" name="from_password" id="from_password" class="span12 " /> </td> <td><input type="text" name="smtp" id="smtp" class="span12 " /> </td> </tr> </table> <h3 class="form-section">SMS Settings</h3> <table class="table table-striped table-hover table-bordered"> <tr> <th>UserName</th> <th>Password</th> <th>Domain</th> </tr> <tr> <td><input type="text" name="username" id="username" class="span12 " /> </td> <td><input type="password" name="password" id="password" class="span12 " /> </td> <td><input type="text" name="domain" id="domain" class="span12 " /> </td> </tr> </table> <div class="form-actions"> <input type="hidden" name="tab_name" value="branch"/> <input type="hidden" name="resfunction" value="search_branch"/> <button type="submit" onclick="addformdata('validateform')" class="btn blue"><i class="icon-ok"></i> Save</button> <button type="button" onclick="viewdata('settings', 'viewinsettingssearch', 'search_branch', 'view_branch', '<?= $_SESSION['pagenum']; ?>')" class="btn">Cancel</button> </div> <?php echo form_close(); ?> <!-- END FORM--> </div> </div> </div> </div>