?
Current Path : /home1/savoy/public_html/savoyglobal.net/sibs_draft/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/sibs_draft/system/application/views/HR/adddesignation.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <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>Add Designation</legend> <?php $attributes = array('id' => 'customForm'); echo form_open('hr/adddesignation',$attributes); ?> <?php $stf=$this->mastermodel->get_data_srow('designation',$norecords,'id'); if(isset($stf->designationcode)) { $num=substr($stf->designationcode, -3); $num++; } else $num=100; ?> <input type="hidden" name="designationcode" value="<?php echo "DESG-".($num); ?>"> <ul> <?php echo "<li> <label for='reportingto'>Reporting To</label><select name='reportingtoid' id='reportingtoid'>"; $reportingto=$this->mastermodel->getdatas('designation'); foreach($reportingto as $reporting) { echo "<option value='". $reporting['id'] . "'>" . $reporting['designation'] . "</option>"; } echo "</select></li>"; ?> <li> <?php $data = array( 'name' => 'designation', 'id' => 'designation', ); ?> <label for="designation">Designation Name</label> <?php echo form_input($data).form_error($data); ?> <span id="designationInfo" class="red_bold">*</span> </li> <li><label for="submit"> </label> <button type="submit" class="clickimage" id="submit" onclick="return validateform('designation');">Save</button> </li> </ul> <?php echo form_close();?> </fieldset>