Location: PHPKode > projects > HikaShop > back/views/product/tmpl/file.php
<?php
/**
 * @package		HikaShop for Joomla!
 * @version		1.4.3
 * @author		hikashop.com
 * @copyright	(C) 2010 HIKARI SOFTWARE. All rights reserved.
 * @license		GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 */
defined('_JEXEC') or die('Restricted access');
?>
<div style="float:right">
	<a class="modal" rel="{handler: 'iframe', size: {x: 760, y: 480}}" href="<?php echo hikashop::completeLink("product&task=selectfile&product_id=".@$this->element->product_id,true ); ?>">
		<button type="button" onclick="return false">
			<img src="<?php echo HIKASHOP_IMAGES; ?>add.png"/><?php echo JText::_('ADD');?>
		</button>
	</a>
</div>
<br/>
				<table class="adminlist" cellpadding="1">
					<thead>
						<tr>
							<th class="title">
								<?php echo JText::_('HIKA_EDIT'); ?>
							</th>
							<th class="title">
								<?php echo JText::_('FILENAME'); ?>
							</th>
							<th class="title">
								<?php echo JText::_('HIKA_NAME'); ?>
							</th>
							<th class="title">
								<?php echo JText::_('HIKA_DELETE'); ?>
							</th>
							<th class="title">
								<?php echo JText::_( 'ID' ); ?>
							</th>
						</tr>
					</thead>
					<tbody id="file_listing">
						<?php
							if(!empty($this->element->files)){
								$k = 0;
								for($i = 0,$a = count($this->element->files);$i<$a;$i++){
									$row =& $this->element->files[$i];
									$id=rand();
							?>
								<tr class="<?php echo "row$k"; ?>" id="file_<?php echo $row->file_id.'_'.$id;?>">
									<td>
										<a class="modal" rel="{handler: 'iframe', size: {x: 760, y: 480}}" href="<?php echo hikashop::completeLink("product&task=selectfile&cid=".$row->file_id."&product_id=".@$this->element->product_id.'&id='.$id,true ); ?>">
											<img src="<?php echo HIKASHOP_IMAGES; ?>edit.png"/>
										</a>
									</td>
									<td>
										<?php echo $row->file_path; ?>
									</td>
									<td>
										<?php echo $row->file_name; ?>
									</td>
									<td width="1%" align="center">
										<a href="#" onclick="return deleteRow('file_div_<?php echo $row->file_id.'_'.$id;?>','file[<?php echo $row->file_id;?>][<?php echo $id;?>]','file_<?php echo $row->file_id.'_'.$id;?>');"><img src="<?php echo HIKASHOP_IMAGES; ?>delete.png"/></a>
									</td>
									<td width="1%" align="center">
										<?php echo $row->file_id; ?>
										<div id="file_div_<?php echo $row->file_id.'_'.$id;?>">
											<input type="hidden" name="file[<?php echo $row->file_id;?>]" id="file[<?php echo $row->file_id;?>][<?php echo $id;?>]" value="<?php echo $row->file_id;?>"/>
										</div>
									</td>
								</tr>
							<?php
									$k = 1-$k;
								}
							}
						?>
					</tbody>
				</table>
Return current item: HikaShop