0byt3m1n1-V2
Path:
/
home
/
a
/
c
/
a
/
academiac
/
www
/
[
Home
]
File: manufacturercategories.tar
view.html.php 0000666 00000004055 15137224477 0007216 0 ustar 00 <?php /** * * Manufacturer Category View * * @package VirtueMart * @subpackage Manufacturer Category * @author Patrick Kohl * @link http://www.virtuemart.net * @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php * VirtueMart is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * @version $Id: view.html.php 6006 2012-05-07 09:28:42Z electrocity $ */ // Check to ensure this file is included in Joomla! defined('_JEXEC') or die('Restricted access'); // Load the view framework if(!class_exists('VmView'))require(JPATH_VM_ADMINISTRATOR.DS.'helpers'.DS.'vmview.php'); /** * HTML View class for maintaining the list of manufacturer categories * * @package VirtueMart * @subpackage Manufacturer Categories * @author Patrick Kohl */ class VirtuemartViewManufacturercategories extends VmView { function display($tpl = null) { // Load the helper(s) if (!class_exists('VmHTML')) require(JPATH_VM_ADMINISTRATOR . DS . 'helpers' . DS . 'html.php'); // get necessary model $model = VmModel::getModel(); $this->SetViewTitle('MANUFACTURER_CATEGORY'); $layoutName = JRequest::getWord('layout', 'default'); if ($layoutName == 'edit') { $manufacturerCategory = $model->getData(); $this->assignRef('manufacturerCategory', $manufacturerCategory); $this->addStandardEditViewCommands($manufacturerCategory->virtuemart_manufacturercategories_id); } else { $this->addStandardDefaultViewCommands(); $this->addStandardDefaultViewLists($model); $manufacturerCategories = $model->getManufacturerCategories(); $this->assignRef('manufacturerCategories', $manufacturerCategories); $pagination = $model->getPagination(); $this->assignRef('pagination', $pagination); } parent::display($tpl); } } // pure php no closing tag tmpl/default.php 0000666 00000006072 15137224477 0007702 0 ustar 00 <?php /** * * Description * * @package VirtueMart * @subpackage Manufacturer Category * @author Patrick Kohl * @link http://www.virtuemart.net * @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php * VirtueMart is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * @version $Id: default.php 5628 2012-03-08 09:00:21Z alatak $ */ // Check to ensure this file is included in Joomla! defined('_JEXEC') or die('Restricted access'); AdminUIHelper::startAdminArea($this); ?> <form action="index.php" method="post" name="adminForm" id="adminForm"> <div id="editcell"> <table class="adminlist" cellspacing="0" cellpadding="0"> <thead> <tr> <th width="10"> <input type="checkbox" name="toggle" value="" onclick="checkAll(<?php echo count($this->manufacturerCategories); ?>);" /> </th> <th> <?php echo JText::_('COM_VIRTUEMART_MANUFACTURER_CATEGORY_NAME'); ?> </th> <th> <?php echo JText::_('COM_VIRTUEMART_MANUFACTURER_CATEGORY_DESCRIPTION'); ?> </th> <th> <?php echo JText::_('COM_VIRTUEMART_MANUFACTURER_CATEGORY_LIST'); ?> </th> <th width="20"> <?php echo JText::_('COM_VIRTUEMART_PUBLISHED'); ?> </th> <th><?php echo $this->sort('virtuemart_manufacturercategories_id', 'COM_VIRTUEMART_ID') ?></th> </tr> </thead> <?php $k = 0; for ($i=0, $n=count( $this->manufacturerCategories ); $i < $n; $i++) { $row = $this->manufacturerCategories[$i]; $checked = JHTML::_('grid.id', $i, $row->virtuemart_manufacturercategories_id); $published = JHTML::_('grid.published', $row, $i); $editlink = JROUTE::_('index.php?option=com_virtuemart&view=manufacturercategories&task=edit&virtuemart_manufacturercategories_id=' . $row->virtuemart_manufacturercategories_id); $manufacturersList = JROUTE::_('index.php?option=com_virtuemart&view=manufacturer&virtuemart_manufacturercategories_id=' . $row->virtuemart_manufacturercategories_id); ?> <tr class="row<?php echo $k ; ?>"> <td width="10"> <?php echo $checked; ?> </td> <td align="left"> <a href="<?php echo $editlink; ?>"><?php echo $row->mf_category_name; ?></a> </td> <td> <?php echo JText::_($row->mf_category_desc); ?> </td> <td> <a title="<?php echo JText::_('COM_VIRTUEMART_MANUFACTURER_SHOW'); ?>" href="<?php echo $manufacturersList; ?>"><?php echo JText::_('COM_VIRTUEMART_SHOW'); ?></a> </td> <td align="center"> <?php echo $published; ?> </td> <td align="right"> <?php echo $row->virtuemart_manufacturercategories_id; ?> </td> </tr> <?php $k = 1 - $k; } ?> <tfoot> <tr> <td colspan="10"> <?php echo $this->pagination->getListFooter(); ?> </td> </tr> </tfoot> </table> </div> <?php echo $this->addStandardHiddenToForm(); ?> </form> <?php AdminUIHelper::endAdminArea(); ?>