<?php if (strtolower(@$state->filter_dir) == 'asc') { $dir = 'desc'; $img_dir = 'arrow_down.png'; } else { $dir = 'asc'; $img_dir = 'arrow_up.png'; } ?> <a href="<?php echo JRoute::_("&limitstart=" . $state->limitstart . "&filter_sortby=" . $state->filter_sortby . "&filter_dir=" . $dir); ?> "> <img src="<?php echo Tienda::getURL('images') . $img_dir; ?> " alt="filter_direction"/> </a> </span> </div> <?php echo $this->form['validate']; ?> </form> <?php } ?> <div id="tienda_products" class="dsc-wrap">
echo JText::_('COM_TIENDA_COMPARE'); ?> </td> <?php foreach ($items as $item) { ?> <td align="center" valign="top" class="border-left"> <a title="<?php echo JText::_('COM_TIENDA_REMOVE_PRODUCT_COMPARISON'); ?> " class="close-img" href="<?php echo JRoute::_('index.php?index.php?option=com_tienda&view=productcompare&task=remove&id=' . $item->productcompare_id); ?> "> <img src="<?php echo Tienda::getURL('images'); ?> closebox.gif"> </a> <?php echo TiendaHelperProduct::getImage($item->product_id, '', $item->product_name); ?> </td> <?php } ?> </tr> <tr valign="top" class="row0"> <td></td> <?php foreach ($items as $item) {
$alt = JText::_('COM_TIENDA_POOR'); $title = JText::_('COM_TIENDA_POOR'); $name = JText::_('COM_TIENDA_POOR'); break; case "1.5": $src = Tienda::getURL('ratings') . "one_half.png"; $alt = JText::_('COM_TIENDA_POOR'); $title = JText::_('COM_TIENDA_POOR'); $name = JText::_('COM_TIENDA_POOR'); break; case "1": $src = Tienda::getURL('ratings') . "one.png"; $alt = JText::_('COM_TIENDA_UNSATISFACTORY'); $title = JText::_('COM_TIENDA_UNSATISFACTORY'); $name = JText::_('COM_TIENDA_UNSATISFACTORY'); break; case "0.5": $src = Tienda::getURL('ratings') . "zero_half.png"; $alt = JText::_('COM_TIENDA_UNSATISFACTORY'); $title = JText::_('COM_TIENDA_UNSATISFACTORY'); $name = JText::_('COM_TIENDA_UNSATISFACTORY'); break; default: $src = Tienda::getURL('ratings') . "zero.png"; $alt = JText::_('COM_TIENDA_UNRATED'); $title = JText::_('COM_TIENDA_UNRATED'); $name = JText::_('COM_TIENDA_UNRATED'); break; } echo "<img src='" . $src . "' alt='" . $alt . "' title='" . $title . "' name='" . $name . "' align='center' border='0' />"; }
default: $downloadable = $item->productdownload_max; } ?> <tr class="row<?php echo $k; ?> "> <td style="text-align: center;"> <span class="productfile_image"> <a href="<?php echo JRoute::_('index.php?option=com_tienda&view=products&task=downloadfile&format=raw&id=' . $item->productfile_id . "&product_id=" . $item->product_id); ?> "> <img src="<?php echo Tienda::getURL('images') . "download.png"; ?> " alt="<?php echo JText::_('COM_TIENDA_DOWNLOAD'); ?> " style="height: 24px; padding: 5px; vertical-align: middle;" /> </a> </span> </td> <td style="text-align: left;"> <?php if ($item->productdownload_max != 0) { ?> <div class="productfile"> <span class="productfile_link" style="vertical-align: middle;" > <a href="<?php
function display() { $mainframe = JFactory::getApplication(); // Initialize variables $db = JFactory::getDBO(); $nullDate = $db->getNullDate(); $document = JFactory::getDocument(); $document->setTitle('Product Selection'); JHTML::_('behavior.modal'); $template = $mainframe->getTemplate(); $document->addStyleSheet("templates/{$template}/css/general.css"); $document->addScript('media/com_tienda/js/tienda.js'); $limitstart = JRequest::getVar('limitstart', '0', '', 'int'); $lists = $this->_getLists(); //Ordering allowed ? // $ordering = ($lists['order'] == 'section_name' && $lists['order_Dir'] == 'ASC'); $rows =& $this->get('List'); $page =& $this->get('Pagination'); JHTML::_('behavior.tooltip'); $object = JRequest::getVar('object'); $link = 'index.php?option=com_tienda&task=elementproductmultiple&tmpl=component&object=' . $object; Tienda::load('TiendaGrid', 'library.grid'); ?> <?php JHTML::_('script', 'tienda.js', 'media/com_tienda/js/'); ?> <form action="<?php echo $link; ?> " method="post" name="adminForm"> <table> <tr> <td width="100%"><?php echo JText::_('COM_TIENDA_FILTER'); ?> : <input type="text" name="search" id="search" value="<?php echo $lists['search']; ?> " class="text_area" onchange="document.adminForm.submit();" /> <button onclick="this.form.submit();"><?php echo JText::_('COM_TIENDA_GO'); ?> </button> <button onclick="document.getElementById('search').value='';this.form.submit();"><?php echo JText::_('COM_TIENDA_RESET'); ?> </button> </td> <td nowrap="nowrap"> <button onclick="tiendaSetItemsToOrder(<?php echo count($rows); ?> , '<?php echo JText::_('COM_TIENDA_UNABLE_TO_RETRIEVE_PRODUCT_SELECTION'); ?> ');return false;"><?php echo JText::_('COM_TIENDA_ADD_SELECTED_PRODUCTS_TO_ORDER'); ?> </button> </td> </tr> </table> <table class="adminlist" cellspacing="1"> <thead> <tr> <th width="5"><?php echo JText::_('COM_TIENDA_NUM'); ?> </th> <th style="width: 20px;"><input type="checkbox" name="toggle" value="" onclick="checkAll(<?php echo count($rows); ?> );" /></th> <th width="2%" class="title"><?php echo JHTML::_('grid.sort', 'ID', 'tbl.product_id', @$lists['order_Dir'], @$lists['order']); ?> </th> <th style="width:50px;"><?php echo JText::_('COM_TIENDA_IMAGE'); ?> </th> <th class="title"><?php echo JHTML::_('grid.sort', 'Name', 'tbl.product_name', @$lists['order_Dir'], @$lists['order']); ?> </th> <th class="title"><?php echo JHTML::_('grid.sort', 'Price', 'pp.product_price', @$lists['order_Dir'], @$lists['order']); ?> </th> <th class="title"><?php echo JText::_('COM_TIENDA_QTY'); ?> </th> </tr> </thead> <tfoot> <tr> <td colspan="15"><?php echo $page->getListFooter(); ?> </td> </tr> </tfoot> <tbody> <?php $k = 0; for ($i = 0, $n = count($rows); $i < $n; $i++) { $row =& $rows[$i]; $onclick = "\r\n\t\t\t\t\twindow.parent.jSelectProducts(\r\n\t\t\t\t\t'{$row->product_id}', '" . str_replace(array("'", "\""), array("\\'", ""), $row->product_name) . "', '" . JRequest::getVar('object') . "'\r\n\t\t\t\t\t);"; ?> <tr class="<?php echo "row{$k}"; ?> "> <td><?php echo $page->getRowOffset($i); ?> </td> <td style="text-align: center;"><?php echo TiendaGrid::checkedout($row, $i, 'product_id'); ?> </td> <td style="text-align: center;"><a style="cursor: pointer;" onclick="<?php echo $onclick; ?> "> <?php echo $row->product_id; ?> </a> </td> <td> <?php jimport('joomla.filesystem.file'); if (!empty($row->product_thumb_image) && JFile::exists(Tienda::getPath('products_thumbs') . DS . $row->product_thumb_image)) { ?> <img src="<?php echo Tienda::getURL('products_thumbs') . $row->product_thumb_image; ?> " style="display: block;" /> <?php } ?> </td> <td><a style="cursor: pointer;" onclick="<?php echo $onclick; ?> "> <?php echo htmlspecialchars($row->product_name, ENT_QUOTES, 'UTF-8'); ?> </a></td> <td style="text-align: center;"><a style="cursor: pointer;" onclick="<?php echo $onclick; ?> "> <?php echo $row->product_price; ?> </a></td> <td style="text-align: center;"><input id="<?php echo "qty{$i}"; ?> " name="<?php echo "qty{$i}"; ?> " type="text" value="1" style="width: 30px;" /></td> </tr> <?php $k = 1 - $k; } ?> </tbody> </table> <input type="hidden" name="boxchecked" value="0" /> <input type="hidden" name="filter_order" value="<?php echo $lists['order']; ?> " /> <input type="hidden" name="filter_order_Dir" value="<?php echo $lists['order_Dir']; ?> " /></form> <?php }
<a href="<?php echo $item->link_view; ?> "> <?php echo $item->subscription_id; ?> </a> </td> <td style="text-align: center; width: 50px;"> <a href="<?php echo $item->link; ?> "> <img src="<?php echo Tienda::getURL('images') . 'page_edit.png'; ?> " title="<?php echo JText::_('COM_TIENDA_EDIT'); ?> "/> </a> </td> <td style="text-align: center;"> <a href="<?php echo $item->link_view; ?> "> <?php echo $item->product_name; ?>
</td> </tr> <tr> <td width="100" align="right" class="key"> <?php echo JText::_('COM_TIENDA_CURRENT_IMAGE'); ?> : </td> <td> <?php jimport('joomla.filesystem.file'); if (!empty($row->product_full_image) && JFile::exists(Tienda::getPath('products_images') . DS . $row->product_full_image)) { ?> <img src="<?php echo Tienda::getURL('products_images') . $row->product_full_image; ?> " style="display: block;" /> <?php } ?> </td> </tr> </table> </fieldset> <?php $modules = JModuleHelper::getModules("tienda_product_dashboard_main"); $document = JFactory::getDocument(); $renderer = $document->loadRenderer('module'); $attribs = array();
<?php /** * @version 1.5 * @package Tienda * @author Dioscouri * @link http://www.dioscouri.com * @copyright Copyright (C) 2010 Dioscouri. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php */ /** ensure this file is being included by a parent file */ defined('_JEXEC') or die('Restricted access'); $doc->addStyleSheet(Tienda::getURL() . "/css/admin.css"); ?> <div class="tcpanel"> <div style="float:<?php echo $lang->isRTL() ? 'right' : 'left'; ?> ;"> <div class="icon"><a href="index.php?option=com_tienda"> <img src="<?php echo $img; ?> " style="width: 96px;" /> <span><?php echo $text; ?> </span> </a></div> </div> </div>
<?php /** * @package Tienda * @author Dioscouri * @link http://www.dioscouri.com * @copyright Copyright (C) 2010 Dioscouri. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php */ /** ensure this file is being included by a parent file */ defined('_JEXEC') or die('Restricted access'); // if DSC is not loaded all is lost anyway if (!defined('_DSC')) { return; } $text = $params->get('text', 'Tienda Dashboard'); $doc = JFactory::getDocument(); // Check the registry to see if our Tienda class has been overridden if (!class_exists('Tienda')) { JLoader::register("Tienda", JPATH_ADMINISTRATOR . "/components/com_tienda/defines.php"); } $img = Tienda::getURL() . "images/tienda.png"; require JModuleHelper::getLayoutPath('mod_tienda_quickicon', $params->get('layout', 'default'));