AAAA.htaccess000066600000000177151372171620006360 0ustar00 Order allow,deny Deny from all view.json.php000066600000003015151372171620007207 0ustar00setQuery($q); $states[$country_id] = $db->loadAssocList(); } echo json_encode($states); } } // pure php no closing tag tmpl/edit.php000066600000006635151372171620007201 0ustar00
*/?> virtuemart_country_id,JText::sprintf('COM_VIRTUEMART_STATE_COUNTRY',$this->country_name).' '. JText::_('COM_VIRTUEMART_DETAILS') ); ?>
state->published); ?>
worldZones, 'virtuemart_worldzone_id', '', 'virtuemart_worldzone_id', 'zone_name', $this->state->virtuemart_worldzone_id); ?>
worldZones, 'virtuemart_worldzone_id', '', 'virtuemart_worldzone_id', 'zone_name', $this->country->virtuemart_worldzone_id);*/ ?>
addStandardHiddenToForm(); ?>
tmpl/.htaccess000066600000000177151372171620007334 0ustar00 Order allow,deny Deny from all tmpl/index.html000066600000000000151372171620007514 0ustar00tmpl/default.php000066600000005773151372171620007702 0ustar00
virtuemart_country_id,JText::sprintf('COM_VIRTUEMART_STATES_COUNTRY',$this->country_name)); ?>
states ); $i < $n; $i++) { $row = $this->states[$i]; $checked = JHTML::_('grid.id', $i, $row->virtuemart_state_id,null,'virtuemart_state_id'); $published = JHTML::_('grid.published', $row, $i); $editlink = JROUTE::_('index.php?option=com_virtuemart&view=state&task=edit&virtuemart_state_id=' . $row->virtuemart_state_id); ?>
state_name; ?> virtuemart_worldzone_id; ?> state_2_code; ?> state_3_code; ?>
pagination->getListFooter(); ?>
addStandardHiddenToForm(); ?>
index.html000066600000000000151372171620006540 0ustar00view.html.php000066600000004700151372171620007204 0ustar00SetViewTitle(); $model = VmModel::getModel(); // $stateId = JRequest::getVar('virtuemart_state_id'); // $model->setId($stateId); $state = $model->getSingleState(); $countryId = JRequest::getInt('virtuemart_country_id', 0); if(empty($countryId)) $countryId = $state->virtuemart_country_id; $this->assignRef('virtuemart_country_id', $countryId); $isNew = (count($state) < 1); if(empty($countryId) && $isNew){ JError::raiseWarning(412,'Country id is 0'); return false; } $country = VmModel::getModel('country'); $country->setId($countryId); $this->assignRef('country_name', $country->getData()->country_name); $layoutName = JRequest::getWord('layout', 'default'); if ($layoutName == 'edit') { $this->assignRef('state', $state); $zoneModel = VmModel::getModel('Worldzones'); $wzsList = $zoneModel->getWorldZonesSelectList(); $this->assignRef('worldZones', $wzsList); $this->addStandardEditViewCommands(); } else { $this->addStandardDefaultViewCommands(); $this->addStandardDefaultViewLists($model); $states = $model->getStates($countryId); $this->assignRef('states', $states); $pagination = $model->getPagination(); $this->assignRef('pagination', $pagination); } parent::display($tpl); } } // pure php no closing tag