<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 Citruscart::getURL('images') . 'page_edit.png'; ?> " title="<?php echo JText::_('COM_CITRUSCART_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_CITRUSCART_CURRENT_IMAGE'); ?> : </td> <td> <?php jimport('joomla.filesystem.file'); if (!empty($row->product_full_image) && JFile::exists(Citruscart::getPath('products_images') . '/' . $row->product_full_image)) { ?> <img src="<?php echo Citruscart::getURL('products_images') . $row->product_full_image; ?> " style="display: block;" /> <?php } ?> </td> </tr> </table> </fieldset> <?php $modules = JModuleHelper::getModules("citruscart_product_dashboard_main"); $document = JFactory::getDocument(); $renderer = $document->loadRenderer('module'); $attribs = array();
echo JText::_('COM_CITRUSCART_COMPARE'); ?> </td> <?php foreach ($items as $item) { ?> <td align="center" valign="top" class="border-left"> <a title="<?php echo JText::_('COM_CITRUSCART_REMOVE_PRODUCT_COMPARISON'); ?> " class="close-img" href="<?php echo JRoute::_('index.php?index.php?option=com_citruscart&view=productcompare&task=remove&id=' . $item->productcompare_id); ?> "> <img src="<?php echo Citruscart::getURL('images'); ?> closebox.gif"> </a> <?php echo CitruscartHelperProduct::getImage($item->product_id, '', $item->product_name); ?> </td> <?php } ?> </tr> <tr valign="top" class="row0"> <td></td> <?php foreach ($items as $item) {
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_citruscart&view=products&task=downloadfile&format=raw&id=' . $item->productfile_id . "&product_id=" . $item->product_id); ?> "> <img src="<?php echo Citruscart::getURL('images') . "download.png"; ?> " alt="<?php echo JText::_('COM_CITRUSCART_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
$alt = JText::_('COM_CITRUSCART_POOR'); $title = JText::_('COM_CITRUSCART_POOR'); $name = JText::_('COM_CITRUSCART_POOR'); break; case "1.5": $src = Citruscart::getURL('ratings') . "one_half.png"; $alt = JText::_('COM_CITRUSCART_POOR'); $title = JText::_('COM_CITRUSCART_POOR'); $name = JText::_('COM_CITRUSCART_POOR'); break; case "1": $src = Citruscart::getURL('ratings') . "one.png"; $alt = JText::_('COM_CITRUSCART_UNSATISFACTORY'); $title = JText::_('COM_CITRUSCART_UNSATISFACTORY'); $name = JText::_('COM_CITRUSCART_UNSATISFACTORY'); break; case "0.5": $src = Citruscart::getURL('ratings') . "zero_half.png"; $alt = JText::_('COM_CITRUSCART_UNSATISFACTORY'); $title = JText::_('COM_CITRUSCART_UNSATISFACTORY'); $name = JText::_('COM_CITRUSCART_UNSATISFACTORY'); break; default: $src = Citruscart::getURL('ratings') . "zero.png"; $alt = JText::_('COM_CITRUSCART_UNRATED'); $title = JText::_('COM_CITRUSCART_UNRATED'); $name = JText::_('COM_CITRUSCART_UNRATED'); break; } echo "<img src='" . $src . "' alt='" . $alt . "' title='" . $title . "' name='" . $name . "' align='center' border='0' />"; }
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/citruscart/js/citruscart.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_citruscart&task=elementproductmultiple&tmpl=component&object=' . $object; Citruscart::load('CitruscartGrid', 'library.grid'); ?> <?php JHtml::_('script', 'media/citruscart/js/citruscart.js', false, false); ?> <form action="<?php echo $link; ?> " method="post" name="adminForm"> <table> <tr> <td width="100%"><?php echo JText::_('COM_CITRUSCART_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_CITRUSCART_GO'); ?> </button> <button onclick="document.getElementById('search').value='';this.form.submit();"><?php echo JText::_('COM_CITRUSCART_RESET'); ?> </button> </td> <td nowrap="nowrap"> <button onclick="CitruscartSetItemsToOrder(<?php echo count($rows); ?> , '<?php echo JText::_('COM_CITRUSCART_UNABLE_TO_RETRIEVE_PRODUCT_SELECTION'); ?> ');return false;"><?php echo JText::_('COM_CITRUSCART_ADD_SELECTED_PRODUCTS_TO_ORDER'); ?> </button> </td> </tr> </table> <table class="adminlist" cellspacing="1"> <thead> <tr> <th width="5"><?php echo JText::_('COM_CITRUSCART_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_CITRUSCART_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_CITRUSCART_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 CitruscartGrid::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(Citruscart::getPath('products_thumbs') . DS . $row->product_thumb_image)) { ?> <img src="<?php echo Citruscart::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 }
<?php /*------------------------------------------------------------------------ # com_citruscart - citruscart # ------------------------------------------------------------------------ # author Citruscart Team - Citruscart http://www.citruscart.com # copyright Copyright (C) 2014 - 2019 Citruscart.com All Rights Reserved. # @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL # Websites: http://citruscart.com # Technical Support: Forum - http://citruscart.com/forum/index.html -------------------------------------------------------------------------*/ /** 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', 'Citruscart Dashboard'); $doc = JFactory::getDocument(); // Check the registry to see if our Citruscart class has been overridden /*if ( !class_exists('Citruscart') ) JLoader::register( "Citruscart", JPATH_ADMINISTRATOR."/components/com_citruscart/defines.php" ); */ $img = Citruscart::getURL() . "images/citruscart.png"; require JModuleHelper::getLayoutPath('mod_citruscart_quickicon', $params->get('layout', 'default'));
<span class="sort_by_direction"> <?php if (strtolower($state->filter_dir) == 'asc') { $dir = 'desc'; $img_dir = 'arrow_down.png'; } else { $dir = 'asc'; $img_dir = 'arrow_up.png'; } ?> <a class="modal" rel="{handler: 'iframe', size: {x: 800, y: 500}}" href="<?php echo JRoute::_("&limitstart=" . $state->limitstart . "&filter_sortby=" . $state->filter_sortby . "&filter_dir=" . $dir); ?> "> <img src="<?php echo Citruscart::getURL('images') . $img_dir; ?> " alt="filter_direction"/> </a> </span> </div> <?php echo $this->form['validate']; ?> </form> <?php } ?> </div> <div class="span6 col-md-6">
<?php /*------------------------------------------------------------------------ # com_citruscart - citruscart # ------------------------------------------------------------------------ # author Citruscart Team - Citruscart http://www.citruscart.com # copyright Copyright (C) 2014 - 2019 Citruscart.com All Rights Reserved. # @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL # Websites: http://citruscart.com # Technical Support: Forum - http://citruscart.com/forum/index.html -------------------------------------------------------------------------*/ /** ensure this file is being included by a parent file */ defined('_JEXEC') or die('Restricted access'); $doc->addStyleSheet(Citruscart::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_citruscart"> <img src="<?php echo $img; ?> " style="width: 96px;" /> <span><?php echo $text; ?> </span> </a></div> </div> </div>