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


PHP TiendaSelect类代码示例

本文整理汇总了PHP中TiendaSelect的典型用法代码示例。如果您正苦于以下问题:PHP TiendaSelect类的具体用法?PHP TiendaSelect怎么用?PHP TiendaSelect使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: btbooleanlist

 /**
  * A boolean radiolist that uses bootstrap
  *  
  * @param unknown_type $name
  * @param unknown_type $attribs
  * @param unknown_type $selected
  * @param unknown_type $yes
  * @param unknown_type $no
  * @param unknown_type $id
  * @return string
  */
 public static function btbooleanlist($name, $attribs = null, $selected = null, $yes = 'JYES', $no = 'JNO', $id = false)
 {
     JHTML::_('script', 'bootstrapped-advanced-ui.js', 'media/com_tienda/js/');
     JHTML::_('stylesheet', 'bootstrapped-advanced-ui.css', 'media/com_tienda/css/');
     $arr = array(JHtml::_('select.option', '0', JText::_($no)), JHtml::_('select.option', '1', JText::_($yes)));
     $html = '<div class="control-group"><div class="controls"><fieldset id="' . $name . '" class="radio btn-group">';
     $html .= TiendaSelect::btradiolist($arr, $name, $attribs, 'value', 'text', (int) $selected, $id);
     $html .= '</fieldset></div></div>';
     return $html;
 }
开发者ID:annggeel,项目名称:tienda,代码行数:21,代码来源:select.php

示例2: getProductAttributeOptions

 /**
  * Expected to be called from ajax
  */
 public function getProductAttributeOptions()
 {
     $attribute_id = JRequest::getInt('attribute_id', 0);
     $name = JRequest::getVar('select_name', 'parent');
     $id = JRequest::getVar('select_id', '0');
     $response = array();
     $response['msg'] = '';
     $response['error'] = '';
     if ($attribute_id) {
         Tienda::load('TiendaSelect', 'library.select');
         $response['msg'] = TiendaSelect::productattributeoptions($attribute_id, 0, $name . "[" . $id . "]");
     } else {
         $response['msg'] = '<input type="hidden" name="' . $name . "[" . $id . "]" . '" />';
     }
     echo json_encode($response);
 }
开发者ID:annggeel,项目名称:tienda,代码行数:19,代码来源:productattributeoptions.php

示例3: fetchElement

 function fetchElement($name, $value, &$node, $control_name)
 {
     $mainframe = JFactory::getApplication();
     Tienda::load('TiendaSelect', 'library.select');
     $id = JRequest::getInt('cid');
     if ($id) {
         $K2Item = JTable::getInstance('K2Item', 'Table');
         $K2Item->load($id);
         $params = new K2Parameter($K2Item->plugins, JPATH_PLUGINS . '/k2/tienda.xml', 'tienda');
         $id = $params->get('productID');
         $db = JFactory::getDBO();
         $query = "SELECT manufacturer_id FROM #__tienda_products WHERE product_id=" . (int) $id;
         $db->setQuery($query);
         $manufacturer = $db->loadResult();
     }
     return TiendaSelect::manufacturer(@$manufacturer, 'plugins[tiendaproductManufacturer]', '', 'pluginstiendaproductManufacturer', false, true);
 }
开发者ID:annggeel,项目名称:tienda,代码行数:17,代码来源:manufacturer.php

示例4: getZones

 /**
  * Returns a selectlist of zones
  * Called via Ajax
  * 
  * @return unknown_type
  */
 function getZones()
 {
     Tienda::load('TiendaSelect', 'library.select');
     $html = '';
     $text = '';
     $country_id = JRequest::getVar('country_id');
     $name = JRequest::getVar('name', 'zone_id');
     if (empty($country_id)) {
         $html = JText::_('COM_TIENDA_SELECT_COUNTRY_FIRST');
     } else {
         $html = TiendaSelect::zone('', $name, $country_id);
     }
     $response = array();
     $response['msg'] = $html;
     $response['error'] = '';
     // encode and echo (need to echo to send back to browser)
     echo json_encode($response);
     return;
 }
开发者ID:annggeel,项目名称:tienda,代码行数:25,代码来源:addresses.php

示例5: filterZones

 /**
  * 
  * @return unknown_type
  */
 function filterZones()
 {
     JLoader::import('com_tienda.library.json', JPATH_ADMINISTRATOR . '/components');
     Tienda::load('TiendaSelect', 'library.select');
     $idtag = 'zone_id';
     $countryid = JRequest::getVar('countryid', '', 'request', 'int');
     $idprefix = JRequest::getVar('idprefix', '', 'request');
     if (count($idprefix) > 0) {
         $idtag = $idprefix . $idtag;
     }
     $url = "index.php?option=com_tienda&format=raw&controller=zones&task=addZone&geozoneid=";
     $attribs = array('class' => 'inputbox', 'size' => '1');
     $hookgeozone = JRequest::getVar('hookgeozone', TRUE, 'request', 'boolean');
     if ($hookgeozone) {
         $attribs['onchange'] = 'tiendaDoTask( \'' . $url . '\'+document.getElementById(\'geozone_id\').value+\'&zoneid=\'+this.options[this.selectedIndex].value, \'current_zones_wrapper\', \'\');';
     }
     $html = TiendaSelect::zone('', $idtag, $countryid, $attribs, $idtag, true);
     // set response array
     $response = array();
     $response['msg'] = $html;
     // encode and echo (need to echo to send back to browser)
     echo json_encode($response);
     return;
 }
开发者ID:annggeel,项目名称:tienda,代码行数:28,代码来源:zones.php

示例6:

	                	<div class="rangeline">
	                		<span class="label"><?php 
echo JText::_('COM_TIENDA_TO');
?>
:</span> <input type="text" id="filter_quantity_to" name="filter_quantity_to" value="<?php 
echo @$state->filter_quantity_to;
?>
" size="5" class="input input-tiny" />
	                	</div>
                	</div>
                </th>
                <th>
                </th>
                <th>
    	            <?php 
echo TiendaSelect::booleans(@$state->filter_enabled, 'filter_enabled', $attribs, 'enabled', true, 'COM_TIENDA_ENABLED_STATE');
?>
                </th>
            </tr>
			<tr>
				<th colspan="20" style="font-weight: normal;">
					<div style="float: right; padding: 5px;"><?php 
echo @$this->pagination->getResultsCounter();
?>
</div>
					<div style="float: left;"><?php 
echo @$this->pagination->getListFooter();
?>
</div>
				</th>
			</tr>
开发者ID:annggeel,项目名称:tienda,代码行数:31,代码来源:default.php

示例7:

</div></li>
	            <li class="divider-vertical"></li>
      <li> 
	            <div class="input-prepend input-append">
	            	<span class="add-on"><?php 
echo JText::_('COM_TIENDA_TO');
?>
:</span>
	            	<?php 
echo JHTML::calendar(@$state->filter_date_to, "filter_date_to", "filter_date_to", '%Y-%m-%d 00:00:00');
?>
</div></li>
	           
	            <li class="divider-vertical"></li>
	            <li>  <?php 
//$attribs = array('class' => '',  'onchange' => 'javascript:submitbutton(\'view\').click;');
?>
<span class="label pull-left"><?php 
echo JText::_('LIMIT');
?>
</span>
	            <?php 
echo TiendaSelect::limit(@$state->limit ? $state->limit : '20', 'limit', $attribs, 'limit', true);
?>
</li>
    </ul></li>


  </div>
</div>
开发者ID:annggeel,项目名称:tienda,代码行数:30,代码来源:form.php

示例8:

echo $this->row->get('subscriptions_expiring_notice_days', '14');
?>
" type="text" />
            </td>
            <td><?php 
echo JText::_('COM_TIENDA_EXPIRATION_NOTICE_DESC');
?>
            </td>
        </tr>
        <tr>
            <th style="width: 25%;"><?php 
echo JText::_('COM_TIENDA_DISPLAY_SUBSCRIPTION_NUMBER');
?>
            </th>
            <td><?php 
echo TiendaSelect::btbooleanlist('display_subnum', 'class="inputbox"', $this->row->get('display_subnum', '0'));
?>
            </td>
            <td></td>
        </tr>
        <tr>
            <th style="width: 25%;"><?php 
echo JText::_('COM_TIENDA_DISPLAY_SUBSCRIPTION_NUMBER_DIGITS');
?>
            </th>
            <td><input type="text" name="sub_num_digits" value="<?php 
echo $this->row->get('sub_num_digits', '');
?>
" class="inputbox" size="10" />
            </td>
            <td></td>
开发者ID:annggeel,项目名称:tienda,代码行数:31,代码来源:products_subscriptions.php

示例9:

						<input type="text" name="shipping_method_weightbased_name" id="shipping_method_weightbased_name" value="<?php 
echo @$row->shipping_method_weightbased_name;
?>
" size="48" maxlength="250" />
					</td>
				</tr>
				<tr>
					<td width="100" align="right" class="key"><label for="tax_class_id">
						<?php 
echo JText::_('COM_TIENDA_TAX_CLASS');
?>
: </label>
					</td>
					<td>
						<?php 
echo TiendaSelect::taxclass(@$row->tax_class_id, 'tax_class_id', '', 'tax_class_id', false);
?>
					</td>
				</tr>
				<tr>
					<td width="100" align="right" class="key">
						<label for="shipping_method_weightbased_enabled"> <?php 
echo JText::_('COM_TIENDA_ENABLED');
?>
:</label>
					</td>
					<td>
						<?php 
echo JHTML::_('select.booleanlist', 'shipping_method_weightbased_enabled', '', @$row->shipping_method_weightbased_enabled);
?>
					</td>
开发者ID:annggeel,项目名称:tienda,代码行数:31,代码来源:view.php

示例10: array

        </tr>
    </table>

    <table class="adminlist" style="clear: both;" >
        <thead>
            <tr class="filterline">
                <th>
                    <?php 
$attribs = array('class' => 'inputbox', 'size' => '1', 'onchange' => 'document.adminForm.submit();');
?>
                </th>
                <th>
                </th>
                <th>
                    <?php 
echo TiendaSelect::downloadableproduct(JFactory::getUser()->id, @$state->filter_product_id, 'filter_product_id', $attribs);
?>
                </th>
                <th>
                </th>                
            </tr>
            <tr>
                <th style="width: 50px;">
                </th>
                <th style="width: 200px; text-align: left;">
                    <?php 
echo TiendaGrid::sort('COM_TIENDA_FILE', "filename", @$state->direction, @$state->order);
?>
                </th>
                <th style="width: 200px;">
                    <?php 
开发者ID:annggeel,项目名称:tienda,代码行数:31,代码来源:default.php

示例11:

?>
				</td>
			</tr>
			<tr>
				<th style="width: 100px; text-align: right;" class="key">
				<?php 
echo JText::_('ZONE');
?>
				</th>
				<td>
				<div id="zones_wrapper">
					<?php 
if (empty($row->zone_id)) {
    echo JText::_("SELECT COUNTRY FIRST");
} else {
    echo TiendaSelect::zone($row->zone_id, 'zone_id', $row->country_id);
}
?>
				</div>
				</td>
			</tr>
			<tr>
				<th style="width: 100px; text-align: right;" class="key">
				<?php 
echo JText::_('POSTAL CODE');
?>
				</th>
				<td>
				<input type="text" name="postal_code"
				id="postal_code" size="25" maxlength="250"
				value="<?php 
开发者ID:annggeel,项目名称:tienda,代码行数:31,代码来源:address.php

示例12: array

?>
				<?php 
echo TiendaSelect::reportrange(@$state->filter_range ? $state->filter_range : 'custom', 'filter_range', $attribs, 'range', true);
?>
				<span class="label"><?php 
echo JText::_('COM_TIENDA_FROM');
?>
:</span>
				<?php 
echo JHTML::calendar(@$state->filter_date_from, "filter_date_from", "filter_date_from", '%Y-%m-%d %H:%M:%S');
?>
				<span class="label"><?php 
echo JText::_('COM_TIENDA_TO');
?>
:</span>
				<?php 
echo JHTML::calendar(@$state->filter_date_to, "filter_date_to", "filter_date_to", '%Y-%m-%d %H:%M:%S');
?>
				<input type="hidden" name="filter_datetype" value="created" />
			</th>
			<th align="left" style="text-align: left;" class="key">
				<?php 
$attribs = array('class' => 'inputbox', 'size' => '1', 'onchange' => 'document.adminForm.submit();');
echo TiendaSelect::orderstate(@$state->filter_orderstate, 'filter_orderstate', $attribs, 'order_state_id', true);
?>
			</th>
		</tr>
    </thead>
	</table>
</div>
        
开发者ID:annggeel,项目名称:tienda,代码行数:30,代码来源:form.php

示例13: TiendaHelperProduct

$row = @$this->row;
$helper_product = new TiendaHelperProduct();
?>

<div style="width: 100%;">
    <div class="well options">
        <legend>
            <?php 
echo JText::_('COM_TIENDA_ADD_NEW_RELATIONSHIP');
?>
        </legend>
        <div id="new_relationship" class="dsc-wrap dsc-table">
            <div class="dsc-row">
                <div class="dsc-cell">
                    <?php 
echo TiendaSelect::relationship('', 'new_relationship_type');
?>
                </div>
                <div class="dsc-cell">
                    <?php 
DSCModel::addIncludePath(JPATH_ADMINISTRATOR . '/components/com_tienda/models');
$model = DSCModel::getInstance('ElementProduct', 'TiendaModel');
echo $model->fetchElement('new_relationship_productid_to');
echo $model->clearElement('new_relationship_productid_to');
//<input name="new_relationship_productid_to" size="15" type="text" />
?>

                    <input name="new_relationship_productid_from" value="<?php 
echo @$row->product_id;
?>
" type="hidden" />
开发者ID:annggeel,项目名称:tienda,代码行数:31,代码来源:form_relationships.php

示例14: array

echo JRoute::_(@$form['action'] . $tmpl);
?>
" method="post" name="adminForm" enctype="multipart/form-data">

    <?php 
echo TiendaGrid::pagetooltip(JRequest::getVar('view'));
?>
    
    <table>
        <tr>
            <td align="left" width="100%">
                <?php 
$attribs = array('class' => 'inputbox', 'size' => '1', 'onchange' => "document.getElementById('task').value=this.options[this.selectedIndex].value; document.adminForm.submit();");
?>
                <?php 
echo TiendaSelect::addressaction('', 'apply_action', $attribs, 'apply_action', true, false, 'COM_TIENDA_SELECT_ACTION');
?>
            </td>
            <td nowrap="nowrap">
                <a href="<?php 
echo JRoute::_("index.php?option=com_tienda&view=addresses&task=edit" . $tmpl);
?>
">
                    <?php 
echo JText::_('COM_TIENDA_ENTER_A_NEW_ADDRESS');
?>
                </a>
            </td>
        </tr>
    </table>
    
开发者ID:annggeel,项目名称:tienda,代码行数:30,代码来源:default.php

示例15:

	            size="25" maxlength="250" 
	            value="<?php 
echo @$row->fax;
?>
" />
	        </td>
	    </tr>
        <tr>
            <th style="width: 100px; text-align: right;" class="key">
                <?php 
echo JText::_('COM_TIENDA_EMAIL_FORMAT');
?>
            </th>
            <td>
                <?php 
echo TiendaSelect::booleans(@$row->html_emails, 'html_emails', '', '', '', '', JText::_('COM_TIENDA_HTML'), JText::_('COM_TIENDA_PLAIN_TEXT'));
?>
            </td>
        </tr>
	    </tbody>
	</table>

    <input type="button" onclick="tiendaSubmitForm('save');" value="<?php 
echo JText::_('COM_TIENDA_SUBMIT');
?>
" />

    <input type="hidden" name="id" value="<?php 
echo @$row->user_id;
?>
" />
开发者ID:annggeel,项目名称:tienda,代码行数:31,代码来源:form.php


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