本文整理汇总了PHP中VmHTML::checkbox方法的典型用法代码示例。如果您正苦于以下问题:PHP VmHTML::checkbox方法的具体用法?PHP VmHTML::checkbox怎么用?PHP VmHTML::checkbox使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类VmHTML
的用法示例。
在下文中一共展示了VmHTML::checkbox方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<input type="text" size="7" class="text_area" value="<?php
echo $this->vendor->vendor_letter_footer_cell_height_ratio;
?>
" id="vendor_letter_footer_cell_height_ratio" name="vendor_letter_footer_cell_height_ratio">
</td>
</tr>
<tr>
<td class="key">
<label for="vendor_letter_footer_line"><?php
echo JText::_('COM_VIRTUEMART_VENDOR_LETTER_FOOTER_LINE');
?>
:</label>
</td>
<td >
<?php
echo VmHTML::checkbox('vendor_letter_footer_line', $this->vendor->vendor_letter_footer_line);
?>
</td>
<td class="key">
<?php
echo JText::_('COM_VIRTUEMART_VENDOR_LETTER_FOOTER_LINE_COLOR');
?>
:
</td>
<td >
<input type="text" size="7" class="text_area" value="<?php
echo $this->vendor->vendor_letter_footer_line_color;
?>
" id="vendor_letter_footer_line_color" name="vendor_letter_footer_line_color">
</td>
</tr>
示例2: displayProductCustomfieldBE
/**
* Formatting admin display by roles
* input Types for product only !
* $field->is_cart_attribute if can have a price
*/
public function displayProductCustomfieldBE($field, $product_id, $row)
{
// $vendor_currency as static, because is called for same user session
static $vendor_currency = null;
$field->custom_value = empty($field->custom_value) ? $field->value : $field->custom_value;
if ($field->is_cart_attribute) {
if ($vendor_currency === null) {
JLoader::register('VmModel', JPATH_VM_ADMINISTRATOR . 'helpers/vmmodel.php');
$vendor_model = VmModel::getModel('vendor');
$vendor_model->setId(1);
// todo SUTDIO42, perhaps check the vendors ?
$vendor = $vendor_model->getVendor();
$currencyModel = VmModel::getModel('currency');
$currencyModel->setId($vendor->vendor_currency);
$vendor_currency = $currencyModel->getData();
}
$priceInput = '<div class="input-append"><input class="input-mini" type="text" size="4" style="text-align:right;" value="' . (isset($field->custom_price) ? $field->custom_price : '0') . '" name="field[' . $row . '][custom_price]" /><span class="add-on">' . $vendor_currency->currency_symbol . "</span></div>";
} else {
$priceInput = ' ';
}
if ($field->is_list) {
$options = array();
$values = explode(';', $field->value);
foreach ($values as $key => $val) {
$options[] = array('value' => $val, 'text' => $val);
}
$currentValue = $field->custom_value;
return JHTML::_('select.genericlist', $options, 'field[' . $row . '][custom_value]', null, 'value', 'text', $currentValue) . '</td><td>' . $priceInput;
} else {
switch ($field->field_type) {
case 'A':
//vmdebug('displayProductCustomfieldBE $field',$field);
if (!isset($field->withParent)) {
$field->withParent = 0;
}
if (!isset($field->parentOrderable)) {
$field->parentOrderable = 0;
}
//vmdebug('displayProductCustomfieldFE',$field);
JLoader::register('VmHTML', JPATH_VM_ADMINISTRATOR . 'helpers/html.php');
$html = JText::_('COM_VIRTUEMART_CUSTOM_WP') . VmHTML::checkbox('field[' . $row . '][withParent]', $field->withParent, 1, 0, '') . '<br />';
$html .= JText::_('COM_VIRTUEMART_CUSTOM_PO') . VmHTML::checkbox('field[' . $row . '][parentOrderable]', $field->parentOrderable, 1, 0, '');
$options = array();
// $options[] = array( 'value' => 'product_name' ,'text' =>JText::_('COM_VIRTUEMART_PRODUCT_FORM_NAME')); Is anyway displayed there
$options[] = array('value' => 'product_sku', 'text' => JText::_('COM_VIRTUEMART_PRODUCT_SKU'));
$options[] = array('value' => 'slug', 'text' => JText::_('COM_VIRTUEMART_PRODUCT_ALIAS'));
$options[] = array('value' => 'product_length', 'text' => JText::_('COM_VIRTUEMART_PRODUCT_LENGTH'));
$options[] = array('value' => 'product_width', 'text' => JText::_('COM_VIRTUEMART_PRODUCT_WIDTH'));
$options[] = array('value' => 'product_height', 'text' => JText::_('COM_VIRTUEMART_PRODUCT_HEIGHT'));
$options[] = array('value' => 'product_weight', 'text' => JText::_('COM_VIRTUEMART_PRODUCT_WEIGHT'));
$html .= JHTML::_('select.genericlist', $options, 'field[' . $row . '][custom_value]', '', 'value', 'text', $field->custom_value) . '</td><td>' . $priceInput;
return $html;
// return 'Automatic Childvariant creation (later you can choose here attributes to show, now product name) </td><td>';
break;
// variants
// variants
case 'V':
return '<input type="text" class="input-medium" value="' . $field->custom_value . '" name="field[' . $row . '][custom_value]" /></td><td>' . $priceInput;
break;
/*
* Stockable (group of) child variants
* Special type setted by the plugin
*/
/*
* Stockable (group of) child variants
* Special type setted by the plugin
*/
case 'G':
return;
break;
/*Extended by plugin*/
/*Extended by plugin*/
case 'E':
$html = '<input type="hidden" value="' . $field->value . '" name="field[' . $row . '][custom_value]" />';
JLoader::register('vmCustomPlugin', JPATH_VM_PLUGINS . '/vmcustomplugin.php');
JPluginHelper::importPlugin('vmcustom', $field->custom_element);
$dispatcher = JDispatcher::getInstance();
$retValue = '';
$dispatcher->trigger('plgVmOnProductEdit', array($field, $product_id, &$row, &$retValue));
return $html . $retValue . '</td><td>' . $priceInput;
break;
case 'D':
return vmJsApi::jDate($field->custom_value, 'field[' . $row . '][custom_value]', 'field_' . $row . '_customvalue') . '</td><td>' . $priceInput;
break;
case 'T':
//TODO Patrick
return '<input type="text" class="input-medium" value="' . $field->custom_value . '" name="field[' . $row . '][custom_value]" /></td><td>' . $priceInput;
break;
/* string or integer */
/* string or integer */
case 'S':
case 'I':
// FIX studio42 tmlspecialchars: "
return '<input type="text" class="input-medium" value="' . htmlspecialchars($field->custom_value) . '" name="field[' . $row . '][custom_value]" /></td><td>' . $priceInput;
break;
//.........这里部分代码省略.........
示例3:
<td>
<?php
echo VmHTML::checkbox('jchosen', VmConfig::get('jchosen', 0));
?>
</td>
</tr>
<tr>
<td class="key">
<span class="hasTip" title="<?php
echo JText::_('COM_VIRTUEMART_ADMIN_CFG_ENABLE_GOOGLE_JQUERY_TIP');
?>
">
<label for="google_jquery">
<?php
echo JText::_('COM_VIRTUEMART_ADMIN_CFG_ENABLE_GOOGLE_JQUERY');
?>
</label>
</span>
</td>
<td>
<?php
echo VmHTML::checkbox('google_jquery', VmConfig::get('google_jquery', '1'));
?>
</td>
</tr>
</table>
</fieldset>
</td>
</tr>
</table>
示例4: foreach
<tr class="row<?php
echo $row % 2;
?>
">
<td>
<?php
echo $shipmentMethod->shipment_name;
?>
</td>
<?php
foreach ($this->paymentMethods as $paymentMethod) {
?>
<td>
<?php
$configRecordName = 'zasilkovna_combination_payment_' . $paymentMethod->virtuemart_paymentmethod_id . '_shipment_' . $shipmentMethod->virtuemart_shipmentmethod_id;
echo VmHTML::checkbox($configRecordName, isset($zasConfig[$configRecordName]) ? $zasConfig[$configRecordName] : '1');
?>
</td>
<?php
$row++;
}
?>
</tr>
<?php
}
?>
</table>
<br>
Jak nainstalovat omezení: <br>
1. v souboru <i>/components/com_virtuemart/views/cart/tmpl/select_payment.php</i> najít tuto část kodu: (řádek cca 60)<br>
<textarea onfocus="this.select();" onclick="this.select();" readonly="" rows="3" cols="80">
示例5:
echo JText::_('COM_VIRTUEMART_ADMIN_CFG_SEO_TRANSLATE');
?>
</label>
</span>
</td>
<td>
<?php
echo VmHTML::checkbox('seo_translate', $this->config->get('seo_translate'));
?>
</td>
</tr>
<tr>
<td class="key">
<span class="hasTip" title="<?php
echo JText::_('COM_VIRTUEMART_ADMIN_CFG_SEO_USE_ID_TIP');
?>
">
<label for="seo_use_id"><?php
echo JText::_('COM_VIRTUEMART_ADMIN_CFG_SEO_USE_ID');
?>
</label>
</span>
</td>
<td>
<?php
echo VmHTML::checkbox('seo_use_id', $this->config->get('seo_use_id'));
?>
</td>
</tr>
</table>
</fieldset>
示例6:
?>
</label>
</span>
</td>
<td>
<?php
echo VmHTML::checkbox('seo_translate', VmConfig::get('seo_translate', 1));
?>
</td>
</tr>
<tr>
<td class="key">
<span class="hasTip" title="<?php
echo JText::_('COM_VIRTUEMART_ADMIN_CFG_SEO_USE_ID_TIP');
?>
">
<label for="seo_use_id">
<?php
echo JText::_('COM_VIRTUEMART_ADMIN_CFG_SEO_USE_ID');
?>
</label>
</span>
</td>
<td>
<?php
echo VmHTML::checkbox('seo_use_id', VmConfig::get('seo_use_id'));
?>
</td>
</tr>
</table>
</fieldset>
示例7: array
<tr class="not_opc_param">
<td class="key">
<span class="hasTip" title="<?php
echo vmText::_('COM_VIRTUEMART_ADMIN_ONCHECKOUT_SHOW_STEPS_TIP');
?>
">
<label for="oncheckout_show_steps">
<?php
echo vmText::_('COM_VIRTUEMART_ADMIN_ONCHECKOUT_SHOW_STEPS');
?>
</label>
</span>
</td>
<td>
<?php
echo VmHTML::checkbox('oncheckout_show_steps', VmConfig::get('oncheckout_show_steps', 0));
?>
</td>
</tr> <?php
echo VmHTML::row('genericlist', 'COM_VIRTUEMART_ADMIN_CFG_AUTOMATIC_SHIPMENT', $this->listShipment, 'set_automatic_shipment', '', 'virtuemart_shipmentmethod_id', 'shipment_name', VmConfig::get('set_automatic_shipment', 0));
echo VmHTML::row('genericlist', 'COM_VIRTUEMART_ADMIN_CFG_AUTOMATIC_PAYMENT', $this->listPayment, 'set_automatic_payment', '', 'virtuemart_paymentmethod_id', 'payment_name', VmConfig::get('set_automatic_payment', 0));
echo VmHTML::row('checkbox', 'COM_VIRTUEMART_ADMIN_CFG_AGREE_TERMS_ONORDER', 'agree_to_tos_onorder', VmConfig::get('agree_to_tos_onorder', 1));
echo VmHTML::row('checkbox', 'COM_VIRTUEMART_ADMIN_ONCHECKOUT_SHOW_LEGALINFO', 'oncheckout_show_legal_info', VmConfig::get('oncheckout_show_legal_info', 1));
echo VmHTML::row('checkbox', 'COM_VIRTUEMART_ADMIN_ONCHECKOUT_SHOW_REGISTER', 'oncheckout_show_register', VmConfig::get('oncheckout_show_register', 1));
echo VmHTML::row('checkbox', 'COM_VIRTUEMART_ADMIN_ONCHECKOUT_ONLY_REGISTERED', 'oncheckout_only_registered', VmConfig::get('oncheckout_only_registered', 0));
echo VmHTML::row('checkbox', 'COM_VIRTUEMART_ADMIN_ONCHECKOUT_SHOW_PRODUCTIMAGES', 'oncheckout_show_images', VmConfig::get('oncheckout_show_images', 0));
$attrlist = 'class="inputbox" multiple="multiple" ';
echo VmHTML::row('genericlist', 'COM_VIRTUEMART_ADMIN_CFG_STATUS_PDF_INVOICES', $this->osWoP_Options, 'inv_os[]', $attrlist, 'order_status_code', 'order_status_name', VmConfig::get('inv_os', array('C')), 'inv_os', true);
echo VmHTML::row('genericlist', 'COM_VIRTUEMART_CFG_OSTATUS_EMAILS_SHOPPER', $this->osWoP_Options, 'email_os_s[]', $attrlist, 'order_status_code', 'order_status_name', VmConfig::get('email_os_s', array('U', 'C', 'S', 'R', 'X')), 'email_os_s', true);
echo VmHTML::row('genericlist', 'COM_VIRTUEMART_CFG_OSTATUS_EMAILS_VENDOR', $this->os_Options, 'email_os_v[]', $attrlist, 'order_status_code', 'order_status_name', VmConfig::get('email_os_v', array('U', 'C', 'R', 'X')), 'email_os_v', true);
echo VmHTML::row('checkbox', 'COM_VIRTUEMART_ADMIN_CFG_LANGFIX', 'vmlang_js', VmConfig::get('vmlang_js', 0));
示例8:
</tr>
<tr>
<td class="key"><span
class="hasTip"
title="<?php
echo JText::_('COM_VIRTUEMART_ADMIN_ONCHECKOUT_SHOW_PRODUCTIMAGES_TIP');
?>
">
<label for="oncheckout_show_images"><?php
echo JText::_('COM_VIRTUEMART_ADMIN_ONCHECKOUT_SHOW_PRODUCTIMAGES');
?>
</label> </span>
</td>
<td>
<?php
echo VmHTML::checkbox('oncheckout_show_images', $this->config->get('oncheckout_show_images', 0));
?>
</td>
</tr>
<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>
示例9: array
'none' => JText::_('COM_VIRTUEMART_ADMIN_CFG_ENABLE_DEBUG_NONE'),
'admin' => JText::_('COM_VIRTUEMART_ADMIN_CFG_ENABLE_DEBUG_ADMIN'),
'all' => JText::_('COM_VIRTUEMART_ADMIN_CFG_ENABLE_DEBUG_ALL')
);
echo VmHTML::radioList('debug_enable', $this->config->get('debug_enable','none'),$options);
?>
</td>
</tr>
<tr>
<td class="key">
<span class="hasTip" title="<?php echo JText::_('COM_VIRTUEMART_ADMIN_CFG_DANGEROUS_TOOLS_EXPLAIN'); ?>">
<label for="dangeroustools"><?php echo JText::_('COM_VIRTUEMART_ADMIN_CFG_DANGEROUS_TOOLS') ?>
</span>
</td>
<td>
<?php echo VmHTML::checkbox('dangeroustools', $this->config->get('dangeroustools')); ?>
</td>
</tr>
<tr>
<td class="key">
<span class="hasTip" title="<?php echo JText::_('COM_VIRTUEMART_ADMIN_CFG_ENABLE_MULTIX_EXPLAIN'); ?>">
<?php echo JText::_('COM_VIRTUEMART_ADMIN_CFG_ENABLE_MULTIX') ?>
</span>
</td>
<td>
<?php
$options = array(
'none' => JText::_('COM_VIRTUEMART_ADMIN_CFG_ENABLE_MULTIX_NONE'),
'admin' => JText::_('COM_VIRTUEMART_ADMIN_CFG_ENABLE_MULTIX_ADMIN')
// 'all' => JText::_('COM_VIRTUEMART_ADMIN_CFG_ENABLE_DEBUG_ALL')
);
示例10: array
($this->product_parent->product_name), array('title' => vmText::_('COM_VIRTUEMART_EDIT').' '.htmlentities($this->product_parent->product_name))).' => ');
}
echo vmText::sprintf('COM_VIRTUEMART_PRODUCT_INFORMATION',$parentRel);
echo ' id: '.$this->product->virtuemart_product_id ?>
</legend>
<table class="adminform" width="100%">
<tr class="row<?php echo $i?>">
<td style="min-width:75px;max-width:200px;width:130px;">
<?php echo vmText::_('COM_VIRTUEMART_PRODUCT_FORM_NAME') ?>
</td>
<td>
<input type="text" class="inputbox" name="product_name" id="product_name" value="<?php echo $this->product->product_name; ?>" size="32" maxlength="255" />
</td>
<td colspan="2">
<label><?php echo VmHTML::checkbox('published', $this->product->published); ?><?php echo vmText::_('COM_VIRTUEMART_PUBLISHED') ?></label>
<label><?php echo VmHTML::checkbox('product_special', $this->product->product_special); ?> <?php echo vmText::_('COM_VIRTUEMART_PRODUCT_FORM_SPECIAL') ?></label>
</td>
<td>
<span class="hastip" title="<?php echo vmText::_('COM_VIRTUEMART_PRODUCT_FORM_ALIAS_TIP');?>"><?php echo vmText::_('COM_VIRTUEMART_PRODUCT_FORM_ALIAS') ?></span>
</td>
<td height="18">
<input type="text" class="inputbox" name="slug" id="slug" value="<?php echo $this->product->slug; ?>" size="32" maxlength="255" />
</td>
</tr>
<?php $i = 1 - $i; ?>
<tr class="row<?php echo $i?>">
<td>
<span class="hastip" title="<?php echo vmText::_('COM_VIRTUEMART_PRODUCT_SKU_TIP') ?>"><?php echo vmText::_('COM_VIRTUEMART_PRODUCT_SKU') ?></span>
</td>
<td>
示例11:
</tr>
</table>
<table class="admintable" id="show_hide_prices">
<tr>
<td>
<span class="hasTip" title="<?php
echo tsmText::_('com_tsmart_ADMIN_CFG_SHOW_PRICES_EXPLAIN');
?>
">
<?php
echo tsmText::_('com_tsmart_ADMIN_CFG_SHOW_PRICES');
?>
</td>
<td>
<?php
echo VmHTML::checkbox('show_prices', $this->shoppergroup->show_prices);
?>
</td>
</tr>
<tr>
<th></th>
<th><?php
echo tsmText::_('com_tsmart_ADMIN_CFG_PRICES_LABEL');
?>
</th>
<th><?php
echo tsmText::_('com_tsmart_ADMIN_CFG_PRICES_TEXT');
?>
</th>
<th><?php
示例12:
<tr>
<td class="key">
<span class="hasTip" title="<?php
echo vmText::_('COM_VIRTUEMART_ADMIN_CFG_AUTOMATIC_PAYMENT_TIP');
?>
">
<label for="automatic_payment">
<?php
echo vmText::_('COM_VIRTUEMART_ADMIN_CFG_AUTOMATIC_PAYMENT');
?>
</label>
</span>
</td>
<td>
<?php
echo VmHTML::checkbox('automatic_payment', VmConfig::get('automatic_payment', 1));
?>
</td>
</tr>
<?php
echo VmHTML::row('checkbox', 'COM_VIRTUEMART_ADMIN_CFG_AGREE_TERMS_ONORDER', 'agree_to_tos_onorder', VmConfig::get('agree_to_tos_onorder', 1));
echo VmHTML::row('checkbox', 'COM_VIRTUEMART_ADMIN_ONCHECKOUT_SHOW_LEGALINFO', 'oncheckout_show_legal_info', VmConfig::get('oncheckout_show_legal_info', 1));
echo VmHTML::row('checkbox', 'COM_VIRTUEMART_ADMIN_ONCHECKOUT_SHOW_REGISTER', 'oncheckout_show_register', VmConfig::get('oncheckout_show_register', 1));
echo VmHTML::row('checkbox', 'COM_VIRTUEMART_ADMIN_ONCHECKOUT_ONLY_REGISTERED', 'oncheckout_only_registered', VmConfig::get('oncheckout_only_registered', 0));
echo VmHTML::row('checkbox', 'COM_VIRTUEMART_ADMIN_ONCHECKOUT_SHOW_PRODUCTIMAGES', 'oncheckout_show_images', VmConfig::get('oncheckout_show_images', 0));
?>
<tr>
<td class="key">
<span class="hasTip" title="<?php
示例13: array
<tr>
<td class="key">
<span class="hasTip" title="<?php
echo JText::_('COM_VIRTUEMART_ADMIN_CFG_LANGFIX_EXPLAIN');
?>
">
<label for="addtocart_popup">
<?php
echo JText::_('COM_VIRTUEMART_ADMIN_CFG_LANGFIX');
?>
</label>
</span>
</td>
<td>
<?php
echo VmHTML::checkbox('vmlang_js', VmConfig::get('vmlang_js', 0));
?>
</td>
</tr>
<?php
echo VmHTML::row('input', 'COM_VIRTUEMART_CFG_ATTACH', 'attach', VmConfig::get('attach', ''));
$this->os_Options = $this->orderStatusModel->getOrderStatusNames();
$emptyOption = JHtml::_('select.option', -1, vmText::_('COM_VIRTUEMART_NONE'), 'order_status_code', 'order_status_name');
array_unshift($this->os_Options, $emptyOption);
$attrlist = 'class="inputbox" multiple="multiple" ';
echo VmHTML::row('genericlist', 'COM_VIRTUEMART_CFG_ATTACH_OS', $this->os_Options, 'attach_os[]', $attrlist, 'order_status_code', 'order_status_name', VmConfig::get('attach_os', array('U', 'C', 'R', 'X')), 'attach_os', true);
?>
</table>
</fieldset>
示例14:
<?php
echo JText::_('COM_VIRTUEMART_ADMIN_CFG_DOWNLOAD_EXPIRE');
?>
</span>
</td>
<td>
<input size="8" type="text" name="download_expire" class="inputbox" value="<?php
echo $this->config->get('download_expire');
?>
" />
</td>
</tr>
<tr>
<td class="key">
<span class="hasTip" title="<?php
echo JText::_('COM_VIRTUEMART_ADMIN_CFG_DOWNLOAD_KEEP_STOCKLEVEL_TIP');
?>
">
<?php
echo JText::_('COM_VIRTUEMART_ADMIN_CFG_DOWNLOAD_KEEP_STOCKLEVEL');
?>
</span>
</td>
<td>
<?php
echo VmHTML::checkbox('downloadable_products_keep_stocklevel', $this->config->get('downloadable_products_keep_stocklevel'));
?>
</td>
</tr>
</table>
</fieldset>
示例15:
?>
</td>
<td><br />
<?php
echo VmHTML::checkbox('include_comment', true);
?>
</td>
</tr>
<tr>
<td class="key"><?php
echo tsmText::_('com_tsmart_ORDER_UPDATE_LINESTATUS');
?>
</td>
<td><br />
<?php
echo VmHTML::checkbox('orders[' . $this->orderID . '][update_lines]', true);
?>
</td>
</tr>
<tr>
<td colspan="2" align="center" class="key">
<a href="#" class="orderStatFormSubmit" >
<span class="icon-nofloat vmicon vmicon-16-save"></span> <?php
echo tsmText::_('com_tsmart_SAVE');
?>
</a>
<a href="#" title="<?php
echo tsmText::_('com_tsmart_CANCEL');
?>
" onClick="javascript:cancelOrderStatFormEdit(event);" class="show_element[updateOrderStatus]">
<span class="icon-nofloat vmicon vmicon-16-remove"></span> <?php