?
Current Path : /home1/savoy/www/savoyglobal.net/drafthr/system/application/views/Master/ |
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/drafthr/system/application/views/Master/addtemplate.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" class="clickimage" onclick="loadtemplate('<?=$_SESSION['searchoption']?>','<?=$_SESSION['pagenum']?>','<?=$_SESSION['searchtxt']?>')" alt="Back" align = "center" width="25" height="25" /></label> </div> <link rel="stylesheet" href="<?=base_url()?>/assets/css/ui.all.css" type="text/css" /> <script type="text/javascript" src="<?=base_url()?>/assets/js/ui.core.js"></script> <script type="text/javascript" src="<?=base_url()?>/assets/js/ui.sortable.js"></script> <script type="text/javascript" src="<?=base_url()?>/assets/js/ui.draggable.js"></script> <style type="text/css"> #sortable { list-style-type: none; margin: 0; padding: 0; width: 100%; } #sortable li { margin: 0 3px 3px 3px; padding: 0.4em; padding-left: 1.5em; height: 18px; cursor: move; } #sortable li span { position: absolute; margin-left: -1.3em; } #sortable li label { cursor: move; } #sortable label:hover {background: #FFFFED; border:1px dotted #aaa; } #draggable { cursor: move;} #draggable1 { cursor: move;} #draggable2 { cursor: move;} #draggable3 { cursor: move;} </style> <script type="text/javascript"> $(function() { $("#sortable").sortable(); $("#sortable").disableSelection(); $("#draggable").draggable(); $("#draggable1").draggable(); $("#draggable2").draggable(); $("#draggable3").draggable(); }); function enabledivoptions(val) { if(val==3) { document.getElementById('draggable1').style.display='block'; } else { document.getElementById('draggable1').style.display='none'; } } </script> <?php $attributes = array('id' => 'customForm'); echo form_open('master/addtemplate',$attributes);?> <fieldset><legend>Type Of Cover</legend> <ul> <li> <?php echo '<label for="Segment">Insurance Classification</label>'; echo "<select name='segment_id' id='segment_id' onchange=\"showcover()\">"; echo "<option value='0'>Select Insurance Classification</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='0'>Select Type Of Cover</option></select>"; ?> <span id="cover_idInfo" class="red_bold">*</span> </li> <li> <?php $type_template=$this->mastermodel->getdatas('template_type'); echo " <label for='branch'>Type Of Template</label><select name='template_id' id='template_id' onchange='enabledivoptions(this.value)'>"; echo "<option value='0'>Select Template Type</option>"; if (count($type_template)) { foreach ($type_template as $key => $list) { echo "<option value='". $list['id'] . "'>" . $list['type'] . "</option>"; } echo "</select>"; } ?><span id="template_idInfo" class="red_bold">*</span> </li> <li> <label for="country">Template Name</label> <?php $data = array( 'name' => 'name', 'id' => 'name', 'value' => '', 'style' =>'width:250px;' ); echo form_input($data).form_error($data); ?><span id="nameInfo" class="red_bold">*</span> </li> </ul> </fieldset> <fieldset><legend> Template Contents</legend> <ul id="sortable" > <li style="margin-left: 330px; height: 30px;" > <label class="inlineEdit"> <h3>Header of the template</h3> </label> </li> <!--li > <div><label>Quotation Ref </label> <input type="text" name="quotation_ref"><label>Date</label> <input type="text" name="date" class="inputDate" id="inputDate" value="<?php echo date("Y-m-d");?>" readonly></div> <pre> <script type="text/javascript">$('#inputDate').DatePicker({ format:'Y-m-d', date: $('#inputDate').val(), current: $('#inputDate').val(), starts: 1, position: 'r', onBeforeShow: function(){ $('#inputDate').DatePickerSetDate($('#inputDate').val(), true); }, onChange: function(formated, dates){ $('#inputDate').val(formated); } });</script></pre> </li--> </ul> <li> <button type="submit" id="submit" class="clickimage" onclick="return validateform('segment_id','cover_id','template_id','name');">Save</button> </li> </fieldset> <?php echo form_close();?> <div class="cssbox" id="draggable1" style="display:none"> <div class="cssbox_head"> <h2>Form Tools</h2></div> <div class="cssbox_body"> <fieldset> <ul> <li onClick="addstaticfield('sortable','Mode Of Conveyance','modeofconveyance');"><img alt="" src="<?=base_url()?>/assets/images/textbox.png" align="left"><span>M.f.Convey</span></li> <li onClick="addstaticfield('sortable','Voyage','voyage');"><img alt="" src="<?=base_url()?>/assets/images/textbox.png" align="left"><span>Voyage</span></li> <li onClick="addstaticfield('sortable','Certificate Reference No','certificaterefno');"><img alt="" src="<?=base_url()?>/assets/images/textbox.png" align="left"><span>Cert.Ref:No</span></li> <li onClick="addstaticfield('sortable','Certificate No','certificateno');"><img alt="" src="<?=base_url()?>/assets/images/textbox.png" align="left"><span>Certificate NO</span></li> <li onClick="addstaticfield('sortable','Project Period','projectperiod');"><img alt="" src="<?=base_url()?>/assets/images/textbox.png" align="left"><span>Project Period</span></li> <li onClick="addstaticfield('sortable','Policy No','policyno');"><img alt="" src="<?=base_url()?>/assets/images/textbox.png" align="left"><span>Policy No</span></li> <li onClick="addstaticfield('sortable','Cover','cover');"><img alt="" src="<?=base_url()?>/assets/images/textbox.png" align="left"><span>Cover</span></li> <li onClick="addstaticfield('sortable','Policy Period','policyperiod');"><img alt="" src="<?=base_url()?>/assets/images/textbox.png" align="left"><span>Policy Period</span></li> <li onClick="addstaticfield('sortable','Estimated Annual Sum Insured','estimatedsuminsured');"><img alt="" src="<?=base_url()?>/assets/images/textbox.png" align="left"><span>Est.Ann.S.Insured</span></li> <li onClick="addstaticfield('sortable','Estimated Annual Turn Over','estimatedturnover');"><img alt="" src="<?=base_url()?>/assets/images/textbox.png" align="left"><span>Est.Ann.Turnover</span></li> </ul> </fieldset> </div></div> <div class="cssbox" id="draggable"> <div class="cssbox_head"> <h2>Form Tools</h2></div> <div class="cssbox_body"> <fieldset> <ul> <li onClick="addAllInputs('sortable','text');"><img alt="" src="<?=base_url()?>/assets/images/textbox.png" align="left"><span>Text Box</span></li> <li onClick="addAllInputs('sortable','textarea');"><img alt="" src="<?=base_url()?>/assets/images/textarea.png" align="left"><span>Text Area</span></li> <li onClick="addAllInputs('sortable','combobox');"><img alt="" src="<?=base_url()?>/assets/images/dropdown.png" align="left"><span>Drop Down</span></li> </ul> </fieldset> </div></div> <div class="cssbox" id="draggable2"> <div class="cssbox_head"> <h2>Form Tools</h2></div> <div class="cssbox_body"> <fieldset> <ul> <li onClick="addstaticcombo('sortable','Conditions');"><img alt="" src="<?=base_url()?>/assets/images/dropdown.png" align="left"><span>Conditions</span></li> <li onClick="addstaticcombo('sortable','Special conditions');"><img alt="" src="<?=base_url()?>/assets/images/dropdown.png" align="left"><span>S.Conditions</span></li> <li onClick="addstaticcombo('sortable','Extension');"><img alt="" src="<?=base_url()?>/assets/images/dropdown.png" align="left"><span>Extension</span></li> <li onClick="addstaticcombo('sortable','Exclusion');"><img alt="" src="<?=base_url()?>/assets/images/dropdown.png" align="left"><span>Exclusion</span></li> <li onClick="addstaticcombo('sortable','Deductible');"><img alt="" src="<?=base_url()?>/assets/images/dropdown.png" align="left"><span>Deductible</span></li> <li onClick="addstaticcombo('sortable','Excess');"><img alt="" src="<?=base_url()?>/assets/images/dropdown.png" align="left"><span>Excess</span></li> <li onClick="addstaticcombo('sortable','Warranty');"><img alt="" src="<?=base_url()?>/assets/images/dropdown.png" align="left"><span>Warranty</span></li> </ul> </fieldset> </div></div> <div class="cssbox" id="draggable3"> <div class="cssbox_head"> <h2>Form Tools</h2></div> <div class="cssbox_body"> <fieldset> <ul> <li onClick="addstaticfield('sortable','Interest & Sum Insured','suminsured');"><img alt="" src="<?=base_url()?>/assets/images/textbox.png" align="left"><span>I & S.Insured</span></li> <li onClick="addstaticfield('sortable','Insured','insured');"><img alt="" src="<?=base_url()?>/assets/images/textbox.png" align="left"><span>Insured</span></li> <li onClick="addstaticfield('sortable','Business','business');"><img alt="" src="<?=base_url()?>/assets/images/textbox.png" align="left"><span>Business</span></li> <li onClick="addstaticfield('sortable','Premium','premium');"><img alt="" src="<?=base_url()?>/assets/images/textbox.png" align="left"><span>Premium</span></li> <li onClick="addstaticfield('sortable','Brokerage','brokerage');"><img alt="" src="<?=base_url()?>/assets/images/textbox.png" align="left"><span>Brokerage</span></li> <li onClick="addstaticfield('sortable','Policy Fees','policyfees');"><img alt="" src="<?=base_url()?>/assets/images/textbox.png" align="left"><span>Policy Fees</span></li> <li onClick="addstaticfield('sortable','Rate','rate');"><img alt="" src="<?=base_url()?>/assets/images/textbox.png" align="left"><span>Rate</span></li> <li onClick="addstaticfield('sortable','Period Of Insurance','periodofinsurance');"><img alt="" src="<?=base_url()?>/assets/images/textbox.png" align="left"><span>P.Insurance</span></li> </ul> </fieldset> </div> </div>