?
Current Path : /home1/savoy/public_html/savoyglobal.net/drafthr/system/application/views/HR/ |
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/public_html/savoyglobal.net/drafthr/system/application/views/HR/editdesignation.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <?php /* * To change this template, choose Tools | Templates * and open the template in the editor. */ foreach($viewinfo as $updata) { $designation=$updata['designation']; $designationcode = $updata['designationcode']; $designationid=$updata['id']; $repid=$updata['reportingtoid']; } $desg=$this->mastermodel->get_data_srow('designation',$repid,'id'); ?> <div class="select-bar"> <label> <img src="<?=base_url()?>/assets/images/backbutton.png" title="Back" onclick="loaddesignation('<?=$_SESSION['pagenum']?>','<?=$_SESSION['searchoption']?>','<?=$_SESSION['searchtxt']?>')" alt="Back" align = "center" width="25" height="25" /></label> </div> <fieldset> <legend>Update Designation</legend> <?php $attributes = array('id' => 'customForm'); echo form_open('hr/editdesignation',$attributes); echo form_hidden('designationid',$designationid); ?> <ul> <li> <label for="Designation Code">Designation Code</label> <?php echo $designationcode; ?> </li> <?php echo "<li> <label for='repto'>Reporting To</label><select name='reportingtoid' id='reportingtoid'>"; echo "<option value='".$desg->id."'>".$desg->designation."</option>"; foreach($design as $dlist) { if($dlist['id']!=$desg->id) echo "<option value='".$dlist['id']."'>".$dlist['designation']."</option>"; } echo "</select></li>"; ?> <li> <label for="country">Designation</label> <?php $data = array( 'name' => 'designation', 'id' => 'designation', 'value' => $designation, ); ?> <?php echo form_input($data).form_error($data); ?><span id="designationInfo" class="red_bold">*</span> </li> <li><label for="submit"> </label> <button type="submit" id="submit" onclick="return validateform('designation');">Update</button> </li> </ul> <?php echo form_close();?> </fieldset>