?
Current Path : /home1/savoy/public_html/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/public_html/savoyglobal.net/drafthr/system/application/views/Master/ourbranchpage.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <script> function add_ourbranch(rwd) { $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { $("#viewBranch").load("<?= site_url('master/addourbranchpage/') ?>"); } }); } function delourbranch(rwd,table, field,pageno) { $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { $("#viewBranch").load("<?= site_url('settings/deletereminder/') ?>" +"/" +table + "/" + field+ "/" + pageno,function(){ showourbranch(pageno,field,""); }); } }); } function editourbranch(rwd,field,pageno,field1,text) { $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { $("#viewBranch").load("<?= site_url('master/Get_editourbranch/') ?>" +"/" + field + "/" + pageno+"/" + field1 + "/" + text); } }); } function viewourbranch(rwd,field,pageno,field1,text) { $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { $("#viewBranch").load("<?= site_url('master/viewourbranchdata/') ?>" +"/" + field + "/" + pageno+"/" + field1 + "/" + text); } }); } </script> <div class="select-bar"> <?php //$compquotref=$this->documentsmodel->gertquotationreference(); // if($compquotref=='SAV') //{ ?> <label> <img src="<?=base_url()?>/assets/images/add-icon.png" title="Add New" class="clickimage" onclick="add_ourbranch(1)" alt="Add New" align = "top" width="25" height="25" /> </label> <?php //} ?> <label> Search For <input type="text" name="search" id="search" style="background-image: none;"> in <select id ="selectsearch" name="selectsearch"> <option value="all">All</option> <option value="branchname">Branch Name</option> <option value="address">Address</option> </select> </label> <label for="submit"> <button type="submit" class="clickimage" id="submit" onclick="showourbranch(<?php echo $currpage;?>,document.getElementById('selectsearch').value,document.getElementById('search').value);">Search</button></label> </div> <fieldset><legend>View All Branches</legend> <table class="sort"> <caption>Branches</caption> <tr> <th width="10%">Sl No.</th> <th width="20%">Branch</th> <th width="25">Address</th> <th width="15%">WebSite</th> <th width="15%">Phone</th> <th width="15%">Action</th> </tr> <?php $i=(($currpage-1) * 10); foreach ($bralist as $branch) { $i=$i+1; echo "<tr><td>".$i."</td>";?> <td style=" cursor: pointer;color:#2756c1" onclick="viewourbranch(1,<?=$branch['id']?>,<?php echo $currpage ?>,'<?=$field1 ?>','<?=$text ?>')" > <?php echo $branch['branchname']."</td><td>".$branch['address']."</td><td>".$branch['website']."</td><td>".$branch['phone']."</td><td>"; ?> <img src="<?=base_url()?>/assets/images/edit-icon.gif" id="editRem" title="Edit" width="20" height="20" alt="Edit" align = "center" onclick="editourbranch(1,<?=$branch['id']?>,<?php echo $currpage ?>,'<?=$field1 ?>','<?=$text ?>');" class="clickimage" /> <?php // if($compquotref=='SAV') // { ?> <img src="<?=base_url()?>/assets/images/delete-icon.png" title="Delete" width="20" height="20" alt="Delete" class="clickimage" onclick="delourbranch(2,'ourbranch',<?=$branch['id']?>,<?php echo $currpage ?>);" align = "center"/> <?php // } echo "</td></tr>"; } ?> </table> </fieldset> <div style="width:75%; height:30px; float:right;"> <ul> <li class="pagsel" onclick="showourbranch('1','<?=$field1 ?>','<?=$text ?>')"> <img src="<?php echo base_url() ?>/assets/images/first.gif"/> </li> <li class="pagsel" <?php if($currpage>0){ ?> onclick="showourbranch('<?php echo $currpage-1 ?>','<?=$field1 ?>','<?=$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="showourbranch('<?php echo $i ?>','<?=$field1 ?>','<?=$text ?>')"> <?php echo $i ?></li> <?php } } ?> <li class="pagsel" <?php if($currpage<$totpage){ ?> onclick="showourbranch('<?php echo $currpage+1 ?>','<?=$field1 ?>','<?=$text ?>')"<?php } ?>> <img style="vertical-align:top" src="<?php echo base_url() ?>/assets/images/next.gif"/> </li> <li class="pagsel" onclick="showourbranch('<?php echo $totpage ?>','<?=$field1 ?>','<?=$text ?>')"><img src="<?php echo base_url() ?>/assets/images/last.gif"/> </li> </ul> </div>