AAAAtmpl/index.html000066600000000000151372160270007513 0ustar00tmpl/edit_edit.php000066600000003677151372160270010210 0ustar00 langList; ?>
shipment->shipment_name); ?> shipment->slug); ?> shipment->published); ?> shipment->shipment_desc); ?> pluginList); ?> shopperGroupList); ?> shipment->ordering, 'class="inputbox"', '', 4, 4); ?> vendorList); } ?>
tmpl/edit_config.php000066600000004025151372160270010514 0ustar00shipment->shipment_name) { $parameters = new vmParameters($this->shipment, $this->shipment->shipment_element, 'plugin', 'vmshipment'); echo $rendered = $parameters->render(); } else { echo JText::_('COM_VIRTUEMART_SELECT_SHIPPING_METHOD'); } /* */ tmpl/default.php000066600000006567151372160270007703 0ustar00
shipments ); $i < $n; $i++) { $row = $this->shipments[$i]; $published = JHTML::_('grid.published', $row, $i ); /** * @todo Add to database layout published column */ $row->published = 1; $checked = JHTML::_('grid.id', $i, $row->virtuemart_shipmentmethod_id); $editlink = JROUTE::_('index.php?option=com_virtuemart&view=shipmentmethod&task=edit&cid[]=' . $row->virtuemart_shipmentmethod_id); ?>
sort('shipment_name', 'COM_VIRTUEMART_SHIPMENT_NAME_LBL'); ?> sort('shipment_element', 'COM_VIRTUEMART_SHIPMENTMETHOD'); ?> sort('ordering', 'COM_VIRTUEMART_LIST_ORDER'); ?> sort('published', 'COM_VIRTUEMART_PUBLISHED'); ?> sort('virtuemart_shipmentmethod_id', 'COM_VIRTUEMART_ID') ?>
shipment_name)); ?> shipment_desc; ?> shipmentShoppersList; ?> shipment_element; //JHTML::_('link', $editlink, JText::_($row->shipment_element)); ?> ordering); ?> virtuemart_shipmentmethod_id; ?>
pagination->getListFooter(); ?>
addStandardHiddenToForm(); ?>
tmpl/edit.php000066600000002750151372160270007172 0ustar00
shipment->virtuemart_shipmentmethod_id ); // Loading Templates in Tabs END ?> addStandardHiddenToForm(); ?>
tmpl/.htaccess000066600000000177151372160270007333 0ustar00 Order allow,deny Deny from all .htaccess000066600000000177151372160270006357 0ustar00 Order allow,deny Deny from all view.html.php000066600000007634151372160270007214 0ustar00addHelperPath(JPATH_VM_ADMINISTRATOR.DS.'helpers'); if(!class_exists('Permissions')) require(JPATH_VM_ADMINISTRATOR.DS.'helpers'.DS.'permissions.php'); if(!class_exists('vmPSPlugin')) require(JPATH_VM_PLUGINS.DS.'vmpsplugin.php'); if (!class_exists('VmHTML')) require(JPATH_VM_ADMINISTRATOR . DS . 'helpers' . DS . 'html.php'); $model = VmModel::getModel(); $layoutName = JRequest::getWord('layout', 'default'); $this->SetViewTitle(); $layoutName = JRequest::getWord('layout', 'default'); if ($layoutName == 'edit') { $shipment = $model->getShipment(); if (!class_exists('VmImage')) require(JPATH_VM_ADMINISTRATOR . DS . 'helpers' . DS . 'image.php'); if (!class_exists('vmParameters')) require(JPATH_VM_ADMINISTRATOR . DS . 'helpers' . DS . 'parameterparser.php'); if(!class_exists('VirtueMartModelVendor')) require(JPATH_VM_ADMINISTRATOR.DS.'models'.DS.'vendor.php'); $vendor_id = 1; $currency=VirtueMartModelVendor::getVendorCurrency ($vendor_id); $this->assignRef('vendor_currency', $currency->currency_symbol); if(Vmconfig::get('multix','none')!=='none'){ $vendorList= ShopFunctions::renderVendorList($shipment->virtuemart_vendor_id); $this->assignRef('vendorList', $vendorList); } $this->assignRef('pluginList', self::renderInstalledShipmentPlugins($shipment->shipment_jplugin_id)); $this->assignRef('shipment', $shipment); $this->assignRef('shopperGroupList', ShopFunctions::renderShopperGroupList($shipment->virtuemart_shoppergroup_ids,true)); $this->addStandardEditViewCommands($shipment->virtuemart_shipmentmethod_id); } else { JToolBarHelper::custom('cloneshipment', 'copy', 'copy', JText::_('COM_VIRTUEMART_SHIPMENT_CLONE'), true); $this->addStandardDefaultViewCommands(); $this->addStandardDefaultViewLists($model); $shipments = $model->getShipments(); $this->assignRef('shipments', $shipments); $pagination = $model->getPagination(); $this->assignRef('pagination', $pagination); } parent::display($tpl); } function renderInstalledShipmentPlugins($selected) { $db = JFactory::getDBO(); if (JVM_VERSION===1) { $table = '#__plugins'; $enable = 'published'; $ext_id = 'id'; } else { $table = '#__extensions'; $enable = 'enabled'; $ext_id = 'extension_id'; } $q = 'SELECT * FROM `'.$table.'` WHERE `folder` = "vmshipment" AND `state`="0" ORDER BY `ordering`,`name` ASC'; $db->setQuery($q); $result = $db->loadAssocList($ext_id); if(empty($result)){ $app = JFactory::getApplication(); $app -> enqueueMessage(JText::_('COM_VIRTUEMART_NO_SHIPMENT_PLUGINS_INSTALLED')); } foreach ($result as &$sh) { $sh['name'] = JText::_($sh['name']); } $attribs='style= "width: 300px;"'; return JHtml::_('select.genericlist', $result, 'shipment_jplugin_id', $attribs, $ext_id, 'name', $selected); } } // pure php no closing tag index.html000066600000000000151372160270006537 0ustar00