?
Current Path : /home1/savoy/www/savoyglobal.net/piadraft/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/piadraft/system/application/views/Documents/viewtemplate.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <?php /* * To change this template, choose Tools | Templates * and open the template in the editor. */ ?> <table width="80%" align="center" class="sort" cellpadding="0" cellspacing="0"> <tr> <th>Sl.NO</th> <th>Name</th> <th>Type of Cover</th> <th>Type Of Template</th> <th class="last">Use</th> </tr> <?php $maxpage=$Maxpage; $pagenum=$currentpage; if ($viewinfo->num_rows() > 0) { foreach ($viewinfo->result() as $row) { $cover=$this->mastermodel->get_data_srow('covers',$row->cover_id,'id'); $templatetype=$this->mastermodel->get_data_srow('template_type',$row->template_type,'id'); echo '<tr><td>'.$id.'</td><td>'.$row->name.'</td><td>'.$cover->cover.'</td><td>'.$templatetype->type.'</td>'; $newvar=$cover->cover; $replacevar=str_replace("'", "~", $newvar); ?> <td><img src="<?=base_url()?>/assets/images/use.png" class="clickimage" title="Use" width="20" height="20" alt="Use" align = "center" onclick="usetemplate('<?=$row->id?>','<?=$replacevar?>','<?=$row->cover_id?>')" /> </td> <?php $id++; } } else{ echo "<tr><td align='center'>No results found</td><td></td><td></td><td></td><td></td></tr>"; } ?> </table> <?php if($pagenum>1) { ?> <div> <ul id="pagination" class="paginate"> <li class="pagsel" onclick="searchtemplate('<?php echo $covername ?>','1')"> <img src="<?php echo base_url() ?>/assets/images/first.gif"/> </li> <li class="pagsel" <?php if($pagenum>1){ ?> onclick="searchtemplate('<?php echo $covername; ?>','<?php echo $pagenum-1 ?>')" <?php } ?> > <img src="<?php echo base_url() ?>/assets/images/prev.gif"/> </li> <?php $arr=$this->documentsmodel->getlist($pagenum,$maxpage); for($i=$arr[0]; $i<=$arr[1]; $i++) { if($pagenum==$i ) { ?> <li class="pagsel"> <?php echo $i ;?></li> <?php } else { ?> <li class="pag" onclick="searchtemplate('<?php echo $covername; ?>','<?php echo $i ;?>')"> <?php echo $i ;?></li> <?php } } ?> <li class="pagsel" <?php if($pagenum<$maxpage){ ?> onclick="searchtemplate('<?php echo $covername; ?>','<?php echo $pagenum+1 ?>')"<?php } ?>> <img style="vertical-align:top" src="<?php echo base_url() ?>/assets/images/next.gif"/> </li> <li class="pagsel" onclick="searchtemplate('<?php echo $covername; ?>','<?php echo $maxpage ?>')"><img src="<?php echo base_url() ?>/assets/images/last.gif"/> </li> </ul> </div> <?php } ?>