当前位置: 首页>>代码示例>>PHP>>正文


PHP VmHTML::selectList方法代码示例

本文整理汇总了PHP中VmHTML::selectList方法的典型用法代码示例。如果您正苦于以下问题:PHP VmHTML::selectList方法的具体用法?PHP VmHTML::selectList怎么用?PHP VmHTML::selectList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在VmHTML的用法示例。


在下文中一共展示了VmHTML::selectList方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: display

 function display($tpl = null)
 {
     if (!class_exists('VmHTML')) {
         require VMPATH_ADMIN . DS . 'helpers' . DS . 'html.php';
     }
     $this->vendorId = VmConfig::isSuperVendor();
     // TODO add icon for media view
     $this->SetViewTitle();
     $model = VmModel::getModel('media');
     $layoutName = vRequest::getCmd('layout', 'default');
     if ($layoutName == 'edit') {
         $this->media = $model->getFile();
         $this->addStandardEditViewCommands();
     } else {
         $virtuemart_product_id = vRequest::getInt('virtuemart_product_id');
         if (is_array($virtuemart_product_id) && count($virtuemart_product_id) > 0) {
             $virtuemart_product_id = (int) $virtuemart_product_id[0];
         } else {
             $virtuemart_product_id = (int) $virtuemart_product_id;
         }
         $cat_id = vRequest::getInt('virtuemart_category_id', 0);
         JToolBarHelper::custom('synchronizeMedia', 'new', 'new', vmText::_('COM_VIRTUEMART_TOOLS_SYNC_MEDIA_FILES'), false);
         $this->addStandardDefaultViewCommands();
         $this->addStandardDefaultViewLists($model, null, null, 'searchMedia');
         $options = array('' => vmText::_('COM_VIRTUEMART_LIST_ALL_TYPES'), 'product' => vmText::_('COM_VIRTUEMART_PRODUCT'), 'category' => vmText::_('COM_VIRTUEMART_CATEGORY'), 'manufacturer' => vmText::_('COM_VIRTUEMART_MANUFACTURER'), 'vendor' => vmText::_('COM_VIRTUEMART_VENDOR'));
         $this->lists['search_type'] = VmHTML::selectList('search_type', vRequest::getVar('search_type'), $options, 1, '', 'onchange="this.form.submit();"');
         $options = array('' => vmText::_('COM_VIRTUEMART_LIST_ALL_ROLES'), 'file_is_displayable' => vmText::_('COM_VIRTUEMART_FORM_MEDIA_DISPLAYABLE'), 'file_is_downloadable' => vmText::_('COM_VIRTUEMART_FORM_MEDIA_DOWNLOADABLE'), 'file_is_forSale' => vmText::_('COM_VIRTUEMART_FORM_MEDIA_SET_FORSALE'));
         $this->lists['search_role'] = VmHTML::selectList('search_role', vRequest::getVar('search_role'), $options, 1, '', 'onchange="this.form.submit();"');
         $this->files = $model->getFiles(false, false, $virtuemart_product_id, $cat_id);
         $this->pagination = $model->getPagination();
     }
     parent::display($tpl);
 }
开发者ID:naka211,项目名称:studiekorrektur,代码行数:33,代码来源:view.html.php

示例2: display

 function display($tpl = null)
 {
     $this->loadHelper('html');
     $this->loadHelper('permissions');
     //@todo should be depended by loggedVendor
     $this->vendorId = 1;
     $titleMsg = '';
     $model = VmModel::getModel();
     $this->perms = Permissions::getInstance();
     // to add in vmview ?
     $multivendor = Vmconfig::get('multix', 'none');
     $this->multiX = $multivendor !== 'none' && $multivendor != '' ? true : false;
     $layoutName = JRequest::getWord('layout', 'default');
     if ($layoutName == 'edit') {
         $this->media = $model->getFile();
         $this->addStandardEditViewCommands();
     } else {
         $this->cat_id = 0;
         if ($this->product_id = JRequest::getInt('virtuemart_product_id', 0)) {
             $product = VmModel::getModel('product')->getProductSingle($this->product_id, false, false);
             $this->link = $this->editLink($this->product_id, '<i class="icon-edit"></i> ' . $product->product_name, 'virtuemart_product_id', array('class' => 'hasTooltip btn btn-inverse', 'title' => JText::_('COM_VIRTUEMART_EDIT') . ' ' . $product->product_name), 'product');
             $titleMsg = $product->product_name;
         } else {
             if ($this->cat_id = JRequest::getInt('virtuemart_category_id', 0)) {
                 $category = VmModel::getModel('category')->getCategory($this->cat_id, false);
                 $this->link = $this->editLink($this->cat_id, '<i class="icon-edit"></i> ' . $category->category_name, 'virtuemart_category_id', array('class' => 'hasTooltip btn btn-inverse', 'title' => JText::_('COM_VIRTUEMART_EDIT') . ' ' . $category->category_name), 'category');
                 $titleMsg = $category->category_name;
             }
         }
         // RAW render
         if (JRequest::getWord('format', '') === 'raw') {
             $tpl = 'results';
         } else {
             if ($this->adminVendor == 1) {
                 JToolBarHelper::custom('synchronizeMedia', 'new', 'new', JText::_('COM_VIRTUEMART_TOOLS_SYNC_MEDIA_FILES'), false);
                 if ($this->multiX) {
                     JToolBarHelper::custom('toggle.shared.1', 'ok', 'yes', JText::_('COM_VIRTUEMART_SHARED'), true);
                     JToolBarHelper::custom('toggle.shared.0', 'cancel', 'no', JText::_('COM_VIRTUEMART_SHARED'), true);
                 }
             }
             $this->addStandardDefaultViewCommands();
         }
         $this->addStandardDefaultViewLists($model, null, null, 'searchMedia');
         $options = array('' => '- ' . JText::_('COM_VIRTUEMART_TYPE') . ' -', 'product' => JText::_('COM_VIRTUEMART_PRODUCT'), 'category' => JText::_('COM_VIRTUEMART_CATEGORY'), 'manufacturer' => JText::_('COM_VIRTUEMART_MANUFACTURER'), 'vendor' => JText::_('COM_VIRTUEMART_VENDOR'));
         $this->lists['search_type'] = VmHTML::selectList('search_type', JRequest::getVar('search_type'), $options, 1, '', 'onchange="Joomla.ajaxSearch(this); return false;"');
         $options = array('' => JText::_('COM_VIRTUEMART_LIST_ALL_ROLES'), 'file_is_displayable' => JText::_('COM_VIRTUEMART_FORM_MEDIA_DISPLAYABLE'), 'file_is_downloadable' => JText::_('COM_VIRTUEMART_FORM_MEDIA_DOWNLOADABLE'), 'file_is_forSale' => JText::_('COM_VIRTUEMART_FORM_MEDIA_SET_FORSALE'));
         $this->lists['search_role'] = VmHTML::selectList('search_role', JRequest::getVar('search_role'), $options, 1, '', 'onchange="this.form.submit();"');
         $this->files = $model->getFiles(false, false, $this->product_id, $this->cat_id);
         $this->pagination = $model->getPagination();
     }
     // TODO add icon for media view
     $this->SetViewTitle('', $titleMsg);
     parent::display($tpl);
 }
开发者ID:denis1001,项目名称:Virtuemart-2-Joomla-3-Bootstrap,代码行数:54,代码来源:view.html.php

示例3: display

 function display($tpl = null)
 {
     $this->loadHelper('html');
     $this->loadHelper('permissions');
     //@todo should be depended by loggedVendor
     $vendorId = 1;
     $this->assignRef('vendorId', $vendorId);
     // TODO add icon for media view
     $this->SetViewTitle();
     $model = VmModel::getModel();
     $perms = Permissions::getInstance();
     $this->assignRef('perms', $perms);
     $layoutName = JRequest::getWord('layout', 'default');
     if ($layoutName == 'edit') {
         $media = $model->getFile();
         $this->assignRef('media', $media);
         $isNew = $media->virtuemart_media_id < 1;
         /*			if ($isNew) {
         				if(!Permissions::getInstance()->check('admin')) {
         					$usermodel = VmModel::getModel('user');
         // 					$usermodel->setCurrent();
         					$userDetails = $usermodel->getUser();
         					if(empty($userDetails->virtuemart_vendor_id)){
         						JError::raiseError(403,'Forbidden for non vendors');
         					}
         				} else $media->virtuemart_vendor_id = 1;
         				if(empty($media->virtuemart_vendor_id))$media->virtuemart_vendor_id = $userDetails->virtuemart_vendor_id;
         			}
         */
         $this->addStandardEditViewCommands();
     } else {
         $virtuemart_product_id = JRequest::getInt('virtuemart_product_id', 0);
         $cat_id = JRequest::getInt('virtuemart_category_id', 0);
         JToolBarHelper::customX('synchronizeMedia', 'new', 'new', JText::_('COM_VIRTUEMART_TOOLS_SYNC_MEDIA_FILES'), false);
         $this->addStandardDefaultViewCommands();
         $this->addStandardDefaultViewLists($model, null, null, 'searchMedia');
         $options = array('' => JText::_('COM_VIRTUEMART_LIST_EMPTY_OPTION'), 'product' => JText::_('COM_VIRTUEMART_PRODUCT'), 'category' => JText::_('COM_VIRTUEMART_CATEGORY'), 'manufacturer' => JText::_('COM_VIRTUEMART_MANUFACTURER'), 'vendor' => JText::_('COM_VIRTUEMART_VENDOR'));
         $this->lists['search_type'] = VmHTML::selectList('search_type', JRequest::getVar('search_type'), $options, 1, '', 'onchange="this.form.submit();"');
         $files = $model->getFiles(false, false, $virtuemart_product_id, $cat_id);
         $this->assignRef('files', $files);
         $pagination = $model->getPagination();
         $this->assignRef('pagination', $pagination);
     }
     parent::display($tpl);
 }
开发者ID:rubengarcia0510,项目名称:tienda,代码行数:45,代码来源:view.html.php

示例4: display

 function display($tpl = null)
 {
     if (!class_exists('VmHTML')) {
         require JPATH_VM_ADMINISTRATOR . DS . 'helpers' . DS . 'html.php';
     }
     if (!class_exists('Permissions')) {
         require JPATH_VM_ADMINISTRATOR . DS . 'helpers' . DS . 'permissions.php';
     }
     //@todo should be depended by loggedVendor
     $vendorId = 1;
     $this->assignRef('vendorId', $vendorId);
     // TODO add icon for media view
     $this->SetViewTitle();
     $model = VmModel::getModel('media');
     $perms = Permissions::getInstance();
     $this->assignRef('perms', $perms);
     $layoutName = JRequest::getWord('layout', 'default');
     if ($layoutName == 'edit') {
         $media = $model->getFile();
         $this->assignRef('media', $media);
         $isNew = $media->virtuemart_media_id < 1;
         $this->addStandardEditViewCommands();
     } else {
         $virtuemart_product_id = JRequest::getVar('virtuemart_product_id', array(), '', 'array');
         if (is_array($virtuemart_product_id) && count($virtuemart_product_id) > 0) {
             $virtuemart_product_id = (int) $virtuemart_product_id[0];
         } else {
             $virtuemart_product_id = (int) $virtuemart_product_id;
         }
         $cat_id = JRequest::getInt('virtuemart_category_id', 0);
         JToolBarHelper::customX('synchronizeMedia', 'new', 'new', JText::_('COM_VIRTUEMART_TOOLS_SYNC_MEDIA_FILES'), false);
         $this->addStandardDefaultViewCommands();
         $this->addStandardDefaultViewLists($model, null, null, 'searchMedia');
         $options = array('' => JText::_('COM_VIRTUEMART_LIST_ALL_TYPES'), 'product' => JText::_('COM_VIRTUEMART_PRODUCT'), 'category' => JText::_('COM_VIRTUEMART_CATEGORY'), 'manufacturer' => JText::_('COM_VIRTUEMART_MANUFACTURER'), 'vendor' => JText::_('COM_VIRTUEMART_VENDOR'));
         $this->lists['search_type'] = VmHTML::selectList('search_type', JRequest::getVar('search_type'), $options, 1, '', 'onchange="this.form.submit();"');
         $options = array('' => JText::_('COM_VIRTUEMART_LIST_ALL_ROLES'), 'file_is_displayable' => JText::_('COM_VIRTUEMART_FORM_MEDIA_DISPLAYABLE'), 'file_is_downloadable' => JText::_('COM_VIRTUEMART_FORM_MEDIA_DOWNLOADABLE'), 'file_is_forSale' => JText::_('COM_VIRTUEMART_FORM_MEDIA_SET_FORSALE'));
         $this->lists['search_role'] = VmHTML::selectList('search_role', JRequest::getVar('search_role'), $options, 1, '', 'onchange="this.form.submit();"');
         $files = $model->getFiles(false, false, $virtuemart_product_id, $cat_id);
         $this->assignRef('files', $files);
         $pagination = $model->getPagination();
         $this->assignRef('pagination', $pagination);
     }
     parent::display($tpl);
 }
开发者ID:Arturogcalleja,项目名称:herbolario,代码行数:44,代码来源:view.html.php

示例5: array

<span class="hasTip" title="<?php 
echo vmText::_('COM_VIRTUEMART_COUPONS_EXPIRE_EXPLAIN');
?>
">
	<label for="coupons_default_expire">
		<?php 
echo vmText::_('COM_VIRTUEMART_COUPONS_EXPIRE');
?>
	</label>
</span>
	</td>
	<td>
		<?php 
// TODO This must go to the view.html.php.... but then... that goes for most of the config sruff I'ld say :-S
$_defaultExpTime = array('1,D' => '1 ' . vmText::_('COM_VIRTUEMART_DAY'), '1,W' => '1 ' . vmText::_('COM_VIRTUEMART_WEEK'), '2,W' => '2 ' . vmText::_('COM_VIRTUEMART_WEEK_S'), '1,M' => '1 ' . vmText::_('COM_VIRTUEMART_MONTH'), '3,M' => '3 ' . vmText::_('COM_VIRTUEMART_MONTH_S'), '6,M' => '6 ' . vmText::_('COM_VIRTUEMART_MONTH_S'), '1,Y' => '1 ' . vmText::_('COM_VIRTUEMART_YEAR'));
echo VmHTML::selectList('coupons_default_expire', VmConfig::get('coupons_default_expire'), $_defaultExpTime);
?>
	</td>
</tr>
	<tr>
		<td class="key">
            	<span class="hasTip" title="<?php 
echo vmText::_('COM_VIRTUEMART_COUPONS_REMOVE_TIP');
?>
">
					<?php 
echo vmText::_('COM_VIRTUEMART_COUPONS_REMOVE');
?>
				 </span>
		</td>
		<td>
开发者ID:lenard112,项目名称:cms,代码行数:31,代码来源:default_shopfront.php

示例6: list_perms

 /**
  * lists the permission levels in a select box
  * @author pablo
  * @param string $name The name of the select element
  * @param string $group_name The preselected key
  */
 function list_perms($name, $group_name, $size = 1, $multi = false)
 {
     $auth = $_SESSION['auth'];
     if ($multi) {
         $multi = 'multiple="multiple"';
     }
     // Get users current permission value
     $dvalue = $this->user_groups[$this->_perms];
     $perms = $this->getUserGroups();
     arsort($perms);
     if ($size == 1) {
         $values[0] = JText::_('COM_VIRTUEMART_SELECT');
     }
     foreach ($perms as $key => $value) {
         // Display only those permission that this user can set
         if ($value >= $dvalue) {
             $values[$key] = $key;
         }
     }
     if ($size > 1) {
         $name .= '[]';
         $values['none'] = JText::_('COM_VIRTUEMART_NO_RESTRICTION');
     }
     echo VmHTML::selectList($name, $group_name, $values, $size, $multi);
 }
开发者ID:Arturogcalleja,项目名称:herbolario,代码行数:31,代码来源:permissions.php

示例7: array

echo VmHTML::row('checkbox', 'com_tsmart_ASK_QUESTION_SHOW', 'ask_question', tsmConfig::get('ask_question', 0));
echo VmHTML::row('input', 'com_tsmart_ASK_QUESTION_MIN_LENGTH', 'asks_minimum_comment_length', tsmConfig::get('asks_minimum_comment_length', 50), 'class="inputbox"', '', 4, 4);
echo VmHTML::row('input', 'com_tsmart_ASK_QUESTION_MAX_LENGTH', 'asks_maximum_comment_length', tsmConfig::get('asks_maximum_comment_length', 2000), 'class="inputbox"', '', 5, 5);
?>
</table>
</fieldset>
<fieldset>
<legend><?php 
echo tsmText::_('com_tsmart_COUPONS_ENABLE');
?>
</legend>
	<table class="admintable">
		<?php 
echo VmHTML::row('checkbox', 'com_tsmart_COUPONS_ENABLE', 'coupons_enable', tsmConfig::get('coupons_enable', 0));
$_defaultExpTime = array('1,D' => '1 ' . tsmText::_('com_tsmart_DAY'), '1,W' => '1 ' . tsmText::_('com_tsmart_WEEK'), '2,W' => '2 ' . tsmText::_('com_tsmart_WEEK_S'), '1,M' => '1 ' . tsmText::_('com_tsmart_MONTH'), '3,M' => '3 ' . tsmText::_('com_tsmart_MONTH_S'), '6,M' => '6 ' . tsmText::_('com_tsmart_MONTH_S'), '1,Y' => '1 ' . tsmText::_('com_tsmart_YEAR'));
echo VmHTML::row('raw', 'com_tsmart_COUPONS_EXPIRE', VmHTML::selectList('coupons_default_expire', tsmConfig::get('coupons_default_expire'), $_defaultExpTime));
$attrlist = 'class="inputbox" multiple="multiple" ';
echo VmHTML::row('genericlist', 'com_tsmart_COUPONS_REMOVE', $this->os_Options, 'cp_rm[]', $attrlist, 'order_status_code', 'order_status_name', tsmConfig::get('cp_rm', array('C')), 'cp_rm', true);
?>
	</table>
</fieldset>
<fieldset>
<legend><?php 
echo tsmText::_('com_tsmart_ADMIN_CFG_PRODUCT_LISTING');
?>
</legend>
<table class="admintable">
<?php 
echo VmHTML::row('checkbox', 'com_tsmart_PRODUCT_NAVIGATION_SHOW', 'product_navigation', tsmConfig::get('product_navigation', 1));
echo VmHTML::row('checkbox', 'com_tsmart_DISPLAY_STOCK', 'display_stock', tsmConfig::get('display_stock', 1));
echo VmHTML::row('checkbox', 'com_tsmart_SHOW_PRODUCT_CUSTOMS', 'show_pcustoms', tsmConfig::get('show_pcustoms', 1));
开发者ID:cuongnd,项目名称:etravelservice,代码行数:31,代码来源:default_shopfront.php

示例8: display

 function display($tpl = null)
 {
     // Get the task
     $this->task = JRequest::getWord('task', $this->getLayout());
     // Load helpers
     $this->loadHelper('currencydisplay');
     $this->loadHelper('html');
     $this->loadHelper('image');
     $this->loadHelper('permissions');
     $this->perms = Permissions::getInstance();
     $model = VmModel::getModel();
     switch ($this->task) {
         case 'massxref_cats':
         case 'massxref_cats_exe':
             $this->addTemplatePath(JPATH_VM_ADMINISTRATOR . '/views/category/tmpl');
             $this->showVendors = $this->perms->check('admin');
             $keyWord = '';
             $catmodel = VmModel::getModel('category');
             $this->catmodel = $catmodel;
             //$this->addStandardDefaultViewCommands();
             $this->addStandardDefaultViewLists($catmodel, 'category_name');
             $this->categories = $catmodel->getCategoryTree(0, 0, false, $this->lists['search']);
             $this->pagination = $catmodel->getPagination();
             break;
         case 'massxref_sgrps':
         case 'massxref_sgrps_exe':
             $this->addTemplatePath(JPATH_VM_ADMINISTRATOR . '/views/shoppergroup/tmpl');
             $this->showVendors = $this->perms->check('admin');
             $sgrpmodel = VmModel::getModel('shoppergroup');
             $this->addStandardDefaultViewLists($sgrpmodel);
             $this->shoppergroups = $sgrpmodel->getShopperGroups(false, true);
             $this->pagination = $sgrpmodel->getPagination();
             break;
         default:
             if ($product_parent_id = JRequest::getInt('product_parent_id', false)) {
                 $product_parent = $model->getProductSingle($product_parent_id, false);
                 if ($product_parent) {
                     $title = 'PRODUCT_CHILDREN_LIST';
                     $link_to_parent = JHTML::_('link', JRoute::_('index.php?view=product&task=edit&virtuemart_product_id=' . $product_parent->virtuemart_product_id . '&option=com_virtuemart'), $product_parent->product_name, array('title' => JText::_('COM_VIRTUEMART_EDIT_PARENT') . ' ' . $product_parent->product_name));
                     $msg = JText::_('COM_VIRTUEMART_PRODUCT_OF') . " " . $link_to_parent;
                 } else {
                     $title = 'PRODUCT_CHILDREN_LIST';
                     $msg = 'Parent with product_parent_id ' . $product_parent_id . ' not found';
                 }
             } else {
                 $title = 'PRODUCT';
                 $msg = "";
             }
             $this->db = JFactory::getDBO();
             $this->addStandardDefaultViewLists($model, 'created_on');
             $vendor = $this->adminVendor;
             if ($vendor == 1) {
                 $vendor = null;
             }
             /* Get the list of products */
             $productlist = $model->getProductListing(false, false, false, false, true, true, 0, $vendor);
             //The pagination must now always set AFTER the model load the listing
             $this->pagination = $model->getPagination();
             /* Get the category tree */
             $categoryId = $model->virtuemart_category_id;
             //OSP switched to filter in model, was JRequest::getInt('virtuemart_category_id');
             $this->category_tree = ShopFunctions::categoryListTree(array($categoryId));
             /* Load the product price */
             $this->loadHelper('calculationh');
             $vendor_model = VmModel::getModel('vendor');
             $productreviews = VmModel::getModel('ratings');
             foreach ($productlist as $virtuemart_product_id => $product) {
                 if (isset($product->virtuemart_media_id)) {
                     $product->mediaitems = count($product->virtuemart_media_id);
                 } else {
                     $product->mediaitems = 'none';
                 }
                 $product->reviews = $productreviews->countReviewsForProduct($product->virtuemart_product_id);
                 $vendor_model->setId($product->virtuemart_vendor_id);
                 $vendor = $vendor_model->getVendor();
                 $currencyDisplay = CurrencyDisplay::getInstance($vendor->vendor_currency, $vendor->virtuemart_vendor_id);
                 if (!empty($product->product_price) && !empty($product->product_currency)) {
                     $product->product_price_display = $currencyDisplay->priceDisplay($product->product_price, (int) $product->product_currency, 1, true);
                 }
                 /* Write the first 5 categories in the list */
                 $product->categoriesList = shopfunctions::renderGuiList('virtuemart_category_id', '#__virtuemart_product_categories', 'virtuemart_product_id', $product->virtuemart_product_id, 'category_name', '#__virtuemart_categories', 'virtuemart_category_id', 'category');
             }
             $mf_model = VmModel::getModel('manufacturer');
             $this->manufacturers = $mf_model->getManufacturerDropdown();
             /* add Search filter in lists*/
             /* Search type */
             $options = array('' => JText::_('COM_VIRTUEMART_LIST_EMPTY_OPTION'), 'parent' => JText::_('COM_VIRTUEMART_PRODUCT_LIST_SEARCH_BY_PARENT_PRODUCT'), 'product' => JText::_('COM_VIRTUEMART_PRODUCT_LIST_SEARCH_BY_DATE_TYPE_PRODUCT'), 'price' => JText::_('COM_VIRTUEMART_PRODUCT_LIST_SEARCH_BY_DATE_TYPE_PRICE'), 'withoutprice' => JText::_('COM_VIRTUEMART_PRODUCT_LIST_SEARCH_BY_DATE_TYPE_WITHOUTPRICE'));
             $this->lists['search_type'] = VmHTML::selectList('search_type', JRequest::getVar('search_type'), $options, 1, '', '', 'input-medium');
             /* Search order */
             $options = array('bf' => JText::_('COM_VIRTUEMART_PRODUCT_LIST_SEARCH_BY_DATE_BEFORE'), 'af' => JText::_('COM_VIRTUEMART_PRODUCT_LIST_SEARCH_BY_DATE_AFTER'));
             $this->lists['search_order'] = VmHTML::selectList('search_order', JRequest::getVar('search_order'), $options, 1, '', '', 'input-small');
             $this->productlist = $productlist;
             $this->virtuemart_category_id = $categoryId;
             $this->model = $model;
             break;
     }
     $tpl = 'results';
     parent::display($tpl);
     echo $this->AjaxScripts();
 }
开发者ID:denis1001,项目名称:Virtuemart-2-Joomla-3-Bootstrap,代码行数:100,代码来源:view.raw.php

示例9: array

					</td>
			</tr>
			<tr>
				<td colspan=2><div
					class="hasTooltip"
					title="<?php 
echo JText::_('COM_VIRTUEMART_ADMIN_CFG_RATING_EXPLAIN');
?>
">
						<?php 
echo JText::_('COM_VIRTUEMART_ADMIN_CFG_RATING');
?>
					</div>
						<?php 
$showReviewFor = array('none' => JText::_('COM_VIRTUEMART_ADMIN_CFG_RATING_MODE_NONE'), 'bought' => JText::_('COM_VIRTUEMART_ADMIN_CFG_RATING_MODE_BOUGHT_PRODUCT'), 'registered' => JText::_('COM_VIRTUEMART_ADMIN_CFG_RATING_MODE_REGISTERED'));
echo VmHTML::selectList('ratingMode', VmConfig::get('ratingMode', 2), $showReviewFor, 1, '', '', 'input-xlarge');
?>
				</td>
			</tr>

		</table>
	</fieldset>
</div>

<script type="text/javascript">
	jQuery('#image').change( function() {
		var $newimage = jQuery(this).val();
		jQuery('#product_availability').val($newimage);
		jQuery('#imagelib').attr({ src:'<?php 
echo JURI::root(true) . $this->imagePath;
?>
开发者ID:denis1001,项目名称:Virtuemart-2-Joomla-3-Bootstrap,代码行数:31,代码来源:default_shopfront.php

示例10: array

			<tr>
	    	<td class="key">
				<span class="hasTip" title="<?php 
echo JText::_('COM_VIRTUEMART_LATEST_PRODUCTS_ORDERBY_EXPLAIN');
?>
">
				<label for="latest_products_orderBy"><?php 
echo JText::_('COM_VIRTUEMART_LATEST_PRODUCTS_ORDERBY');
?>
</label>
				</span>
	    	</td>
			<td>
				<?php 
$latest_products_orderBy = array('modified_on' => JText::_('COM_VIRTUEMART_LATEST_PRODUCTS_ORDERBY_MODIFIED'), 'created_on' => JText::_('COM_VIRTUEMART_LATEST_PRODUCTS_ORDERBY_CREATED'));
echo VmHTML::selectList('latest_products_orderBy', $this->config->get('latest_products_orderBy', 'created_on'), $latest_products_orderBy);
?>
			</td>
			</tr>

		</table>
	</fieldset>

<td>
			<fieldset class="checkboxes">
				<legend><span class="hasTip" title="<?php 
echo JText::_('COM_VIRTUEMART_CFG_POOS_ENABLE_EXPLAIN');
?>
">
					<?php 
echo JText::_('COM_VIRTUEMART_CFG_POOS_ENABLE');
开发者ID:Gskflute,项目名称:joomla25,代码行数:31,代码来源:default_shopfront.php

示例11: array

	<td class="key">
<span class="hasTip" title="<?php 
echo JText::_('COM_VIRTUEMART_LATEST_PRODUCTS_ORDERBY_EXPLAIN');
?>
">
	<label for="latest_products_orderBy">
		<?php 
echo JText::_('COM_VIRTUEMART_LATEST_PRODUCTS_ORDERBY');
?>
	</label>
</span>
	</td>
	<td>
		<?php 
$latest_products_orderBy = array('modified_on' => JText::_('COM_VIRTUEMART_LATEST_PRODUCTS_ORDERBY_MODIFIED'), 'created_on' => JText::_('COM_VIRTUEMART_LATEST_PRODUCTS_ORDERBY_CREATED'));
echo VmHTML::selectList('latest_products_orderBy', VmConfig::get('latest_products_orderBy', 'created_on'), $latest_products_orderBy);
?>
	</td>
</tr>
</table>
</fieldset>
</td>
<td>
	<fieldset class="checkboxes">
		<legend>
			<span class="hasTip" title="<?php 
echo JText::_('COM_VIRTUEMART_CFG_POOS_ENABLE_EXPLAIN');
?>
">
				<?php 
echo JText::_('COM_VIRTUEMART_CFG_POOS_ENABLE');
开发者ID:juanmcortez,项目名称:Lectorum,代码行数:31,代码来源:default_shopfront.php

示例12:

		<tr>
			<td class="key"><span
				class="hasTip"
				title="<?php 
echo JText::_('COM_VIRTUEMART_ADMIN_CFG_STATUS_PDF_INVOICES_EXPLAIN');
?>
">
					 <?php 
echo JText::_('COM_VIRTUEMART_ADMIN_CFG_STATUS_PDF_INVOICES');
?>
				 </span>
			</td>
			<td>
					<?php 
echo VmHTML::selectList('inv_os', $this->config->get('inv_os', 'C'), $this->orderStatusList);
?>
			</td>
		</tr>
	</table>
</fieldset>
</td>

<?php 
/*		<td valign="top">

<fieldset>
<legend><?php echo JText::_('COM_VIRTUEMART_ADMIN_CFG_TITLES') ?></legend>
<table class="admintable">
<tr>
<td class="key">
开发者ID:joselapria,项目名称:virtuemart,代码行数:30,代码来源:default_checkout.php

示例13: array

	    	<td class="key">
				<span class="hasTip" title="<?php 
echo JText::_('COM_VIRTUEMART_COUPONS_EXPIRE_EXPLAIN');
?>
">
				<label for="coupons_default_expire"><?php 
echo JText::_('COM_VIRTUEMART_COUPONS_EXPIRE');
?>
</label>
				</span>
	    	</td>
			<td>
				<?php 
// TODO This must go to the view.html.php.... but then... that goes for most of the config sruff I'ld say :-S
$_defaultExpTime = array('1,D' => '1 ' . JText::_('COM_VIRTUEMART_DAY'), '1,W' => '1 ' . JText::_('COM_VIRTUEMART_WEEK'), '2,W' => '2 ' . JText::_('COM_VIRTUEMART_WEEK_S'), '1,M' => '1 ' . JText::_('COM_VIRTUEMART_MONTH'), '3,M' => '3 ' . JText::_('COM_VIRTUEMART_MONTH_S'), '6,M' => '6 ' . JText::_('COM_VIRTUEMART_MONTH_S'), '1,Y' => '1 ' . JText::_('COM_VIRTUEMART_YEAR'));
echo VmHTML::selectList('coupons_default_expire', $this->config->get('coupons_default_expire'), $_defaultExpTime);
?>
			</td>
</tr>
<tr>
	    	<td class="key">
				<span class="hasTip" title="<?php 
echo JText::_('COM_VIRTUEMART_WEIGHT_UNIT_DEFAULT_EXPLAIN');
?>
">
				<label for="weight_unit_default"><?php 
echo JText::_('COM_VIRTUEMART_WEIGHT_UNIT_DEFAULT');
?>
</label>
				</span>
	    	</td>
开发者ID:joselapria,项目名称:virtuemart,代码行数:31,代码来源:default_shopfront.php

示例14: DisplayFilterPublish

 function DisplayFilterPublish()
 {
     $options = array('' => JText::_('JOPTION_SELECT_PUBLISHED'), '1' => JText::_('JPUBLISHED'), '0' => JText::_('JUNPUBLISHED'));
     return VmHTML::selectList('filter_published', JRequest::getVar('filter_published'), $options, 1, '', 'onchange="Joomla.ajaxSearch(this); return false;"');
     // return JHTML::_('select.genericlist', $options, 'filter.published', 'onChange="Joomla.ajaxSearch(this); return false;"', 'value', 'text', JRequest::getVar('filter.published'));
 }
开发者ID:denis1001,项目名称:Virtuemart-2-Joomla-3-Bootstrap,代码行数:6,代码来源:vmview.php

示例15: _form_filelist

 /**
  * @param string The name of the form element
  * @param string The value of the element
  * @param object The xml element for the parameter
  * @param string The control name
  * @return string The html for the element
  */
 function _form_filelist($name, $value, &$node, $control_name)
 {
     // path to images directory
     $path = JPATH_SITE . $node->attributes('directory');
     $filter = $node->attributes('filter');
     $files = vmReadDirectory($path, $filter);
     $options = array();
     foreach ($files as $file) {
         $options[$file] = $file;
     }
     if (!$node->attributes('hide_none')) {
         array_unshift($options, array('-1', '- ' . 'Do Not Use' . ' -'));
     }
     if (!$node->attributes('hide_default')) {
         array_unshift($options, array('', '- ' . 'Use Default' . ' -'));
     }
     return VmHTML::selectList('' . $control_name . '[' . $name . ']', $value, $options, 1, '', 'class="inputbox"');
 }
开发者ID:juanmcortez,项目名称:Lectorum,代码行数:25,代码来源:parameterparser.php


注:本文中的VmHTML::selectList方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。