?
Current Path : /home1/savoy/www/savoyglobal.net/drafthr/system/application/views/Settings/ |
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/Settings/currencypage.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <script> function viewcurrency(pageno,field,text) { text = text.replace(/ /g,"~"); text = text.replace(/\//g,"_"); $("#viewcurrency").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#viewcurrency").load("<?= site_url('settings/viewcurrency/') ?>" +"/" + pageno + "/"+field+"/"+text); } function insert(rwd,id,pageno,field,text) { $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { $("#viewcurrency").load("<?= site_url('settings/insertcurrency/') ?>" +"/" + id+"/" + pageno+"/" + field+"/" + text ); } }); } </script> <div class="select-bar"> <!-- <label><img src="<?=base_url()?>/assets/images/add-icon.png" title="Add New" class="clickimage" onclick="add_remind()" alt="Add New" align = "top" width="25" height="25" /></label>--> <label> Search For <input type="text" value="<?=$text ?>" name="search" id="search" style="background-image: none;"> in <select id ="selectsearch" name="selectsearch"> <option value="countryname">Country Name</option> </select> </label> <label for="submit"> <button type="submit" class="clickimage" id="submit" onclick="viewcurrency(<?php echo $currpage;?>,document.getElementById('selectsearch').value,document.getElementById('search').value);">Search</button></label> </div> <fieldset><legend>Currency List </legend> <table class="sort"> <caption>Currency</caption> <tr> <th>Sl No.</th> <th>Country Name</th> <th>Country Code</th> <th>Currency Name</th> <th>Currency Code</th> <th>Set as default</th> </tr> <?php $resu=$currenid->row(); if(isset($resu->currency_id)) $currencid=$resu->currency_id; else $currencid=""; $i=(($currpage-1) * 10); foreach ($curlist as $currency) { $i=$i+1; echo "<tr><td>".$i."</td><td>".$currency['countryname']."</td><td>".$currency['countrycode']."</td><td>".$currency['currencyname']."</td><td>".$currency['currencycode']."</td><td>"; if($currencid==$currency['id']) { ?> <input type="radio" checked="checked" onclick="insert(1,<?=$currency['id'] ?>,<?php echo $currpage;?>,'<?=$field3 ?>','<?=$text ?>')" name="currency"/> <?php } else { ?> <input type="radio" onclick="insert(1,<?=$currency['id'] ?>,<?php echo $currpage;?>,'<?=$field3 ?>','<?=$text ?>')" name="currency"/> <?php } echo "</td></tr>"; } if(!isset($field3)) { $field3='countryname'; } ?> </table> </fieldset> <div style="width:75%; height:30px; float:right;"> <ul> <li class="pagsel" onclick="viewcurrency('1','<?=$field3 ?>','<?=$text ?>')"> <img src="<?php echo base_url() ?>/assets/images/first.gif"/> </li> <li class="pagsel" <?php if($currpage>1){ ?> onclick="viewcurrency('<?php echo $currpage-1 ?>','<?=$field3 ?>','<?=$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="viewcurrency('<?php echo $i ?>','<?=$field3 ?>','<?=$text ?>')"> <?php echo $i ?></li> <?php } } ?> <li class="pagsel" <?php if($currpage<$totpage){ ?> onclick="viewcurrency('<?php echo $currpage+1 ?>','<?=$field3 ?>','<?=$text ?>')"<?php } ?>> <img style="vertical-align:top" src="<?php echo base_url() ?>/assets/images/next.gif"/> </li> <li class="pagsel" onclick="viewcurrency('<?php echo $totpage ?>','<?=$field3 ?>','<?=$text ?>')"><img src="<?php echo base_url() ?>/assets/images/last.gif"/> </li> </ul> </div>