?
Path : /home/admin/public_html/old/promice/components/com_download/views/download/tmpl/ |
Current File : /home/admin/public_html/old/promice/components/com_download/views/download/tmpl/default.php |
<?php defined( '_JEXEC' ) or die( 'Restricted access' ); ?> <table width="100%" cellpadding="0" cellspacing="0"> <?php if (is_array($this->products)):?><!-- if !detail --> <?php if($this->check_catid ==0 || empty($this->check_catid)):?><!-- if category is not sub-category is show navigation--> <form action="" method="post" name="userForm"> <tr> <td align="right" colspan="4"> <?php echo JText::_('Display Num') .' '; echo $this->pagination->getLimitBox(); ?> </td> </tr> </form> <?php endif;?> <?php endif;?> <tr> <td> <?php if (is_array($this->products)):?> <table class="list_products"> <tr> <?php foreach ($this->products as $row): ?> <?php $image_thumb = 'thumb_'.$row->image_full; $image_src = 'administrator/components/com_download/assets/images_thumb/'; $image_full = 'administrator/components/com_download/assets/images/'.$row->image_full; $image_icon = 'components/com_download/assets/images/'; $url_download = JRoute::_('components/com_download/downloadfile.php?file='.$row->filename); $column = $this->column->show_template; $Itemid = $this->Itemid; $url_image = JRoute::_("index.php?option=com_download&view=download&Itemid=".$Itemid."&cid=".$row->cat_id."&pid=".$row->id); ?> <td boder="1"> <div id="cssbox" class="cssbox"> <div class="detail"> <p class="name"><strong><?=$row->name?></strong></p> <p><a href="<?=$url_image?>"> <img src="<?=$image_src.$image_thumb?>" width="<?=$this->image_width?>" height="<?=$this->image_height?>" alt=""/></a><!-- JHTML::image($image_src, 'thumb_'.$row->image_full) --> </p> <p class="description" align="justify" > <?php if($column <=2){ $string = 120; } else{ $string = 70; } if (JString::strlen($row->description) > $string) { echo JString::substr( htmlspecialchars($row->description, ENT_QUOTES, 'UTF-8'), 0 , $string).'...'; } else { echo htmlspecialchars($row->description, ENT_QUOTES, 'UTF-8'); } ?> </p> <p class="preview"> <a href="<?=$image_full?>" class="modal"><img src="<?=$image_icon?>bottom.jpg" title="Preview" name="preview" width="75" height="35"></a> </p> <p class="download"> <a href="<?=$url_download?>">Download <img src="<?=$image_icon;?>download.jpg" width="20" height="20"></a> </p> </div> </div> <?php $i++ ;?> <?php if($i == $column): $i=0;?> </td> <tr> <?php endif;?> <?php endforeach;?> </tr> </table> <?php if($this->check_catid ==0 || empty($this->check_catid)):?> <div><?php echo $this->pagination->getPagesLinks(); ?></div> <div><?php echo $this->pagination->getPagesCounter(); ?></div> <?php endif;?> <?php elseif (is_object($this->products)):?><!-- if detail --> <div id="product"> <fieldset> <legend>Detail:<?=$this->products->name?></legend> <p class="image"> <?php $image_src = 'administrator/components/com_download/assets/images/'; $image_full = $this->products->image_full; $image_icon = 'components/com_download/assets/images/'; $src_image_full = 'administrator/components/com_download/assets/images/'.$image_full; $url_download = JRoute::_('components/com_download/downloadfile.php?file='.$this->products->filename); ?> <img src="<?=$image_src.$image_full?>" width="550" height="350"> </p> <p><?=$this->products->description?></p> </p> <p class="preview"> <a href="<?=$src_image_full?>" class="modal"><img src="<?=$image_icon?>bottom.jpg" title="Preview" name="preview" width="75" height="35"></a> </p> <p class="download"> <a href="<?=$url_download?>">Download <img src="<?=$image_icon;?>download.jpg" width="20" height="20"></a> </p> </fieldset> </div> <?php endif;?> </td> </tr> </table>