?
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/addofferletter.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <script type="text/javascript"> jQuery(document).ready(function () { $('.one').datepick({dateFormat: 'dd-mm-yyyy'}); $('.two').datepick({dateFormat: 'dd-mm-yyyy'}); }); function checkfile(table) { var file=document.getElementById('filename').value; $("#errordiv").load("<?= site_url('hr/filecheck/') ?>/"+table+ "/"+file,function(data) { if(data>=1) { alert("file already exist.Please Rename the file"); document.getElementById('filename').value=""; } }); } </script> <div class="select-bar"> <label> <img src="<?=base_url()?>/assets/images/backbutton.png" title="Back" onclick="loadofferletter('<?=$_SESSION['pagenum']?>','<?=$_SESSION['searchoption']?>','<?=$_SESSION['searchtxt']?>')" alt="Back" align = "center" width="25" height="25"/></label> </div> <fieldset> <legend>Offer Letter</legend> <?php $attributes = array('id' => 'customForm'); echo form_open_multipart('hr/addofferletter',$attributes);?> <div style="display:none" id="errordiv"></div> <fieldset class ="leftalign"> <ul> <li> <?php $data = array( 'name' => 'name', 'id' => 'name', ); ?> <label for="date">Name</label> <?php echo form_input($data).form_error($data); ?><span id="nameInfo" class="red_bold">*</span> </li> <?php echo "<li> <label for='reportingto'>Desgination</label><select name='designationid' id='designationid'>"; $reportingto=$this->mastermodel->getdatas('designation'); foreach($reportingto as $reporting) { echo "<option value='". $reporting['id'] . "'>" . $reporting['designation'] . "</option>"; } echo "</select></li>"; ?> <li> <label for="date">Email</label> <?php echo form_input('email'); ?> </li> <li></li> </ul> </fieldset> <fieldset class="rightalign"> <ul> <li> <label>Submission Date</label> <input class="one" name="subdate" id="subdate" readonly="true" type="text" style="background-image: url(../../../../assets/images/datefocus.gif);"> </li> <li> <label>Joining Date</label> <input class="two" name="joindate" id="joindate" readonly="true" type="text" style="background-image: url(../../../../assets/images/datefocus.gif);"> </li> <li> <label for="date">Contact No</label> <?php echo form_input('contactno'); ?> </li> <li></li> </ul> </fieldset> <li> <fieldset> <br /><br /> <label for="country">Upload offer letter</label> <input type="file" name="userfile" size="20" id="filename" onchange="checkfile('offerletter')" /> <br /><br /> </fieldset> </li> <ul> <li><label for="submit"> </label> <button type="submit" class="clickimage" id="submit" onclick="return doallthetwo();">Save</button> </li></ul> <?php echo form_close();?> </fieldset>