AAAAPK '>\ tmpl/index.htmlnu W+A PK '>\X tmpl/edit_edit.phpnu W+A
langList; ?>
PK '>\<% tmpl/edit_config.phpnu W+A shipment->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');
}
/*
*/
PK '>\F/
kw
w
tmpl/default.phpnu W+A
PK '>\
tmpl/edit.phpnu W+A
PK '>\) tmpl/.htaccessnu W+A
Order allow,deny
Deny from all
PK '>\) .htaccessnu W+A
Order allow,deny
Deny from all
PK '>\fUߙ
view.html.phpnu W+A addHelperPath(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
PK '>\
index.htmlnu W+A PK '>\ tmpl/index.htmlnu W+A PK '>\X ? tmpl/edit_edit.phpnu W+A PK '>\<% @ tmpl/edit_config.phpnu W+A PK '>\F/
kw
w
tmpl/default.phpnu W+A PK '>\
P tmpl/edit.phpnu W+A PK '>\) u$ tmpl/.htaccessnu W+A PK '>\) 2% .htaccessnu W+A PK '>\fUߙ
% view.html.phpnu W+A PK '>\
5 index.htmlnu W+A PK 5