?
Current Path : /home1/savoy/www/savoyglobal.net/sibs_draft/system/application/views/Documents/ |
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/sibs_draft/system/application/views/Documents/editdatasheet.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <script> jQuery(document).ready(function () { $('.one').datepick({dateFormat: 'dd-mm-yyyy'}); }); function valform() { var a= document.getElementById('customerid').value; var b= document.getElementById('cover_id').value; if(a=="" || b=="") { alert('Field should not be empty'); return false; } } </script> <div class="select-bar"> <label> <img src="<?=base_url()?>/assets/images/backbutton.png" title="Back" class="clickimage" onclick="showdatasheet('<?=$_SESSION['pagenum']?>','<?=$_SESSION['searchoption']?>','<?=$_SESSION['searchtxt']?>')" alt="Back" align = "center" width="25" height="25" /></label> </div> <?php $attributes = array('id' => 'customForm'); echo form_open_multipart('documents/edit_datasheet',$attributes);?> <fieldset><legend>Edit Data Sheet</legend> <ul > <?php foreach($details as $updata) { $segmentname=$updata['segmentname']; $cover=$updata['cover']; $coverid=$updata['coverid']; } ?> <li> <?php echo '<label for="Segment">Insurance Classification</label>'; echo "<select name='segment_id' id='segment_id' onchange=\"showcover()\">"; echo "<option value='0'>$segmentname</option>"; if (count($segment)) { foreach ($segment as $key => $list) { echo "<option value='". $list['id'] . "'>" . $list['segment'] . "</option>"; } echo "</select>"; } ?> <span id="segment_idInfo" class="red_bold">*</span> </li> <li id="coverlist"> <label for="country">Type Of Cover</label> <?php echo "<select name='cover_id' id='cover_id' >"; echo "<option value='$coverid'>$cover</option></select>"; ?> <span id="cover_idInfo" class="red_bold">*</span> </li> <input type="hidden" name="dsid" value="<?=$id?>"/> <li> <button type="submit" id="submit" class="clickimage" onclick="return converttodate('issueDate'),valform();">Update</button> </li> </ul> <div style="display:none"><div id="inline_example1"></div></div> </fieldset> <?php echo form_close();?>