?
Current Path : /home1/savoy/www/savoyglobal.net/drafthr/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/drafthr/system/application/views/Documents/viewquotation.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); if(isset($_SESSION['searchoption'])) { if(!empty($_SESSION['searchoption'])) { $searchtxt=$_SESSION['searchtxt']; $searchoption=$_SESSION['searchoption']; } else { $searchtxt = ""; $searchoption = ""; } } else { $searchtxt = ""; $searchoption = ""; } ?> <div class="select-bar"> <label> <img src="<?=base_url()?>/assets/images/add-icon.png" title="Add New" class="clickimage" onclick="add_quotation(1)" alt="Add New" align = "top" width="25" height="25" /></label> <label> Search For <input type="text" name="search" id="search" value="<?=$searchtxt;?>" style="background-image: none;"> in <select id ="selectsearch" name="selectsearch"> <option value="quotation.id">All</option> <option value="broking_slip.template_header" <?php if ($searchoption == "broking_slip.template_header") echo "selected"; ?>>Template Name</option> <option value="broking_slip.quotation_ref" <?php if ($searchoption == "broking_slip.quotation_ref") echo "selected"; ?>>Quotation Ref</option> <option value="covers.cover" <?php if ($searchoption == "covers.cover") echo "selected"; ?>>Cover</option> <option value="insured" <?php if ($searchoption == "insured") echo "selected"; ?>>Customer Name</option> <option value="date" <?php if ($searchoption == "date") echo "selected"; ?>>Date</option> </select> </label> <label for="submit"> <button type="submit" class="clickimage" id="submit" onclick="showquotation(<?=$currpage ?>,document.getElementById('selectsearch').value,document.getElementById('search').value);">Search</button></label> </div> <fieldset><legend>Quotation</legend> <table class="sort"> <caption>Quotation</caption> <tr> <th width="10%">Sl No.</th> <th width="15%">Quotation Ref</th> <th width="20%">Date</th> <th width="25%">Cover</th> <th width="20%">Customer</th> <th width="10%">Action</th> </tr> <?php $i=(($currpage-1) * 10); foreach ($quotationlist as $updata) { $i=$i+1; $bslip=$updata['bid']; $header=$updata['template_header']; $name=$updata['CustName']; $qrefno=$updata['quotation_ref']; $cvr=$updata['cover']; $dates=$updata['date']; $date=$this->mastermodel->convdatformat($dates); echo "<tr><td>".$i."</td>"; $qid=$updata['id']; ?> <?php echo " <td style='color:#2756c1;' class=\"clickimage\" onclick='singlequotation(1,$qid);'>".$qrefno."</td><td>".$date."</td><td>".$cvr."</td><td>".$name."</td><td>"; ?> <div id="console_fronticons"> <div class="fronticons"> <img src="<?=base_url()?>/assets/images/upload.png" title="Upload" width="20" height="20" alt="Upload" align = "center" class="clickimage uploadform" onclick="showuploadform(<?=$updata['id']?>,'quotation_files','quotationid')" alt="" /></div> <div class="fronticons"><img src="<?=base_url()?>/assets/images/edit-icon.gif" id="editRem" title="Edit" width="20" height="20" alt="Edit" align = "center" onclick="editquotation(1,<?=$updata['id']?>);" class="clickimage" /></div> <div class="fronticons"><img src="<?=base_url()?>/assets/images/delete-icon.png" title="Delete" width="20" height="20" alt="Delete" class="clickimage" onclick="delquotation(2,<?=$updata['id']?>)" align = "center"/></div> </div> <?php echo "</td></tr>"; } ?> </table> </fieldset> <div style="width:75%; height:30px; float:right;"> <ul> <li class="pagsel" onclick="showquotation('1','<?=$field ?>','<?=$text ?>')"> <img src="<?php echo base_url() ?>/assets/images/first.gif"/> </li> <li class="pagsel" <?php if($currpage>0){ ?> onclick="showquotation('<?php echo $currpage-1 ?>','<?=$field ?>','<?=$text ?>')" <?php } ?> > <img src="<?php echo base_url() ?>/assets/images/prev.gif"/> </li> <?php $totpage=ceil($totrecord/10); $arr= $this->settingsmodel->getmaxminlist($currpage,$totpage,4); $myarray=$arr['listnos']; for($i=$myarray[0]; $i<=$myarray[1]; $i++) { if($currpage==$i ) { ?> <li class="pagsel"> <?php echo $i ?></li> <?php } else { ?> <li class="pag" onclick="showquotation('<?php echo $i ?>','<?=$field ?>','<?=$text ?>')"> <?php echo $i ?></li> <?php } } ?> <li class="pagsel" <?php if($currpage<$totpage){ ?> onclick="showquotation('<?php echo $currpage+1 ?>','<?=$field ?>','<?=$text ?>')"<?php } ?>> <img style="vertical-align:top" src="<?php echo base_url() ?>/assets/images/next.gif"/> </li> <li class="pagsel" onclick="showquotation('<?php echo $totpage ?>','<?=$field ?>','<?=$text ?>')"><img src="<?php echo base_url() ?>/assets/images/last.gif"/> </li> </ul> </div>