本文整理汇总了PHP中VmHTML::inputHidden方法的典型用法代码示例。如果您正苦于以下问题:PHP VmHTML::inputHidden方法的具体用法?PHP VmHTML::inputHidden怎么用?PHP VmHTML::inputHidden使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类VmHTML
的用法示例。
在下文中一共展示了VmHTML::inputHidden方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: displayCustomFields
/**
* This displays a custom handler.
*
* @param string $html atttributes, Just for displaying the fullsized image
*/
public function displayCustomFields($datas)
{
JLoader::register('VmHTML', JPATH_VM_ADMINISTRATOR . '/helpers/html.php');
if ($datas->field_type) {
$this->addHidden('field_type', $datas->field_type);
}
$this->addHiddenByType($datas);
$html = "";
// Note stuio42 : never used
// JLoader::register('Permissions', JPATH_VM_ADMINISTRATOR.'/helpers/permissions.php');
// if (!Permissions::getInstance ()->check ('admin')) {
// $readonly = 'readonly';
// }
// else {
// $readonly = '';
// }
// only input when not set else display
if ($datas->field_type) {
if ($datas->field_type == 'E') {
if (jText::_('custom_' . $datas->custom_element) !== 'vmcustom_' . $datas->custom_element) {
$plugin = ' (' . jText::_('vmcustom_' . $datas->custom_element) . ')';
} else {
$plugin = ' (' . $datas->custom_element . ')';
}
} else {
$plugin = '';
}
$typeName = jText::_($datas->field_types[$datas->field_type]) . $plugin;
$html .= VmHTML::row('value', 'COM_VIRTUEMART_CUSTOM_FIELD_TYPE', $typeName);
} else {
$html .= VmHTML::row('select', 'COM_VIRTUEMART_CUSTOM_FIELD_TYPE', 'field_type', $this->getOptions($datas->field_types), $datas->field_type, VmHTML::validate('R'));
}
$html .= VmHTML::row('input', 'COM_VIRTUEMART_TITLE', 'custom_title', $datas->custom_title, VmHTML::validate('S'));
$html .= VmHTML::row('booleanlist', 'COM_VIRTUEMART_SHOW_TITLE', 'show_title', $datas->show_title);
$html .= VmHTML::row('booleanlist', 'COM_VIRTUEMART_PUBLISHED', 'published', $datas->published);
$html .= VmHTML::row('select', 'COM_VIRTUEMART_CUSTOM_PARENT', 'custom_parent_id', $this->getParentList($datas->virtuemart_custom_id), $datas->custom_parent_id, '');
$html .= VmHTML::row('booleanlist', 'COM_VIRTUEMART_CUSTOM_IS_CART_ATTRIBUTE', 'is_cart_attribute', $datas->is_cart_attribute);
$html .= VmHTML::row('input', 'COM_VIRTUEMART_DESCRIPTION', 'custom_field_desc', $datas->custom_field_desc);
// change input by type
$html .= VmHTML::row('input', 'COM_VIRTUEMART_DEFAULT', 'custom_value', $datas->custom_value);
$html .= VmHTML::row('input', 'COM_VIRTUEMART_CUSTOM_TIP', 'custom_tip', $datas->custom_tip);
$html .= VmHTML::row('input', 'COM_VIRTUEMART_CUSTOM_LAYOUT_POS', 'layout_pos', $datas->layout_pos);
//$html .= VmHTML::row('booleanlist','COM_VIRTUEMART_CUSTOM_PARENT','custom_parent_id',$this->getCustomsList(), $datas->custom_parent_id,'');
$html .= VmHTML::row('booleanlist', 'COM_VIRTUEMART_CUSTOM_ADMIN_ONLY', 'admin_only', $datas->admin_only);
if ($datas->field_type !== 'E') {
$html .= VmHTML::row('booleanlist', 'COM_VIRTUEMART_CUSTOM_IS_LIST', 'is_list', $datas->is_list);
}
$html .= VmHTML::row('booleanlist', 'COM_VIRTUEMART_CUSTOM_IS_HIDDEN', 'is_hidden', $datas->is_hidden);
$html .= VmHTML::inputHidden($this->_hidden);
return $html;
}
示例2: displayCustomFields
/**
* This displays a custom handler.
*
* @param string $html atttributes, Just for displaying the fullsized image
*/
public function displayCustomFields($datas)
{
$identify = '';
// ':'.$this->virtuemart_custom_id;
if (!class_exists('VmHTML')) {
require JPATH_VM_ADMINISTRATOR . DS . 'helpers' . DS . 'html.php';
}
if ($datas->field_type) {
$this->addHidden('field_type', $datas->field_type);
}
$this->addHiddenByType($datas);
//$html = '<div id="custom_title">'.$datas->custom_title.'</div>';
$html = "";
//$html = ' <table class="admintable"> ';
if (!class_exists('Permissions')) {
require JPATH_VM_ADMINISTRATOR . DS . 'helpers' . DS . 'permissions.php';
}
if (!Permissions::getInstance()->check('admin')) {
$readonly = 'readonly';
} else {
$readonly = '';
}
// only input when not set else display
if ($datas->field_type) {
$html .= VmHTML::row('value', 'COM_VIRTUEMART_CUSTOM_FIELD_TYPE', $datas->field_types[$datas->field_type]);
} else {
$html .= VmHTML::row('select', 'COM_VIRTUEMART_CUSTOM_FIELD_TYPE', 'field_type', $this->getOptions($datas->field_types), $datas->field_type, VmHTML::validate('R'));
}
$html .= VmHTML::row('input', 'COM_VIRTUEMART_TITLE', 'custom_title', $datas->custom_title, VmHTML::validate('S'));
$html .= VmHTML::row('booleanlist', 'COM_VIRTUEMART_SHOW_TITLE', 'show_title', $datas->show_title);
$html .= VmHTML::row('booleanlist', 'COM_VIRTUEMART_PUBLISHED', 'published', $datas->published);
$html .= VmHTML::row('select', 'COM_VIRTUEMART_CUSTOM_PARENT', 'custom_parent_id', $this->getParentList($datas->virtuemart_custom_id), $datas->custom_parent_id, '');
$html .= VmHTML::row('booleanlist', 'COM_VIRTUEMART_CUSTOM_IS_CART_ATTRIBUTE', 'is_cart_attribute', $datas->is_cart_attribute);
$html .= VmHTML::row('input', 'COM_VIRTUEMART_DESCRIPTION', 'custom_field_desc', $datas->custom_field_desc);
// change input by type
$html .= VmHTML::row('input', 'COM_VIRTUEMART_DEFAULT', 'custom_value', $datas->custom_value);
$html .= VmHTML::row('input', 'COM_VIRTUEMART_CUSTOM_TIP', 'custom_tip', $datas->custom_tip);
$html .= VmHTML::row('input', 'COM_VIRTUEMART_CUSTOM_LAYOUT_POS', 'layout_pos', $datas->layout_pos);
//$html .= VmHTML::row('booleanlist','COM_VIRTUEMART_CUSTOM_PARENT','custom_parent_id',$this->getCustomsList(), $datas->custom_parent_id,'');
$html .= VmHTML::row('booleanlist', 'COM_VIRTUEMART_CUSTOM_ADMIN_ONLY', 'admin_only', $datas->admin_only);
$html .= VmHTML::row('booleanlist', 'COM_VIRTUEMART_CUSTOM_IS_LIST', 'is_list', $datas->is_list);
$html .= VmHTML::row('booleanlist', 'COM_VIRTUEMART_CUSTOM_IS_HIDDEN', 'is_hidden', $datas->is_hidden);
// $html .= '</table>'; removed
$html .= VmHTML::inputHidden($this->_hidden);
return $html;
}
示例3: displayCustomFields
/**
* This displays a custom handler.
*
* @param string $html atttributes, Just for displaying the fullsized image
*/
public function displayCustomFields($datas)
{
$identify = '';
// ':'.$this->virtuemart_custom_id;
if (!class_exists('VmHTML')) {
require VMPATH_ADMIN . DS . 'helpers' . DS . 'html.php';
}
if ($datas->field_type) {
$this->addHidden('field_type', $datas->field_type);
}
$this->addHiddenByType($datas);
$html = "";
$model = VmModel::getModel('custom');
// only input when not set else display
if ($datas->field_type) {
$html .= VmHTML::row('value', 'COM_VIRTUEMART_CUSTOM_FIELD_TYPE', $this->fieldTypes[$datas->field_type]);
} else {
$html .= VmHTML::row('select', 'COM_VIRTUEMART_CUSTOM_FIELD_TYPE', 'field_type', $this->getOptions($this->fieldTypes), $datas->field_type, VmHTML::validate('R'));
}
$html .= VmHTML::row('input', 'COM_VIRTUEMART_TITLE', 'custom_title', $datas->custom_title);
$html .= VmHTML::row('booleanlist', 'COM_VIRTUEMART_SHOW_TITLE', 'show_title', $datas->show_title);
$html .= VmHTML::row('booleanlist', 'COM_VIRTUEMART_PUBLISHED', 'published', $datas->published);
$html .= VmHTML::row('select', 'COM_VIRTUEMART_CUSTOM_GROUP', 'custom_parent_id', $model->getParentList($datas->virtuemart_custom_id), $datas->custom_parent_id, '');
$html .= VmHTML::row('booleanlist', 'COM_VIRTUEMART_CUSTOM_IS_CART_ATTRIBUTE', 'is_cart_attribute', $datas->is_cart_attribute);
$html .= VmHTML::row('booleanlist', 'COM_VIRTUEMART_CUSTOM_IS_CART_INPUT', 'is_input', $datas->is_input);
$html .= VmHTML::row('input', 'COM_VIRTUEMART_DESCRIPTION', 'custom_desc', $datas->custom_desc);
// change input by type
$html .= VmHTML::row('textarea', 'COM_VIRTUEMART_CUSTOM_DEFAULT', 'custom_value', $datas->custom_value);
$html .= VmHTML::row('input', 'COM_VIRTUEMART_CUSTOM_TIP', 'custom_tip', $datas->custom_tip);
$html .= VmHTML::row('input', 'COM_VIRTUEMART_CUSTOM_LAYOUT_POS', 'layout_pos', $datas->layout_pos);
//$html .= VmHTML::row('booleanlist','COM_VIRTUEMART_CUSTOM_GROUP','custom_parent_id',$this->getCustomsList(), $datas->custom_parent_id,'');
$html .= VmHTML::row('booleanlist', 'COM_VIRTUEMART_CUSTOM_ADMIN_ONLY', 'admin_only', $datas->admin_only);
$html .= VmHTML::row('booleanlist', 'COM_VIRTUEMART_CUSTOM_IS_LIST', 'is_list', $datas->is_list);
$html .= VmHTML::row('booleanlist', 'COM_VIRTUEMART_CUSTOM_IS_HIDDEN', 'is_hidden', $datas->is_hidden);
$html .= $this->ordering;
// $html .= '</table>'; removed
$html .= VmHTML::inputHidden($this->_hidden);
return $html;
}
示例4:
-->
<td align="center">
<?php
if ($show_edit) {
?>
<?php
echo $add_new ? '' : $published;
?>
<?php
echo $save;
?>
<?php
echo $cancel;
?>
<?php
echo VmHTML::inputHidden(array(published => $row->published));
?>
<?php
} else {
?>
<?php
echo $published;
?>
<?php
echo $edit;
?>
<?php
echo $delete;
?>
<?php
示例5: array
<?php
// Loading Templates in Tabs
$tabarray = array();
$tabarray['edit'] = 'com_tsmart_ADMIN_PAYMENT_FORM';
$tabarray['config'] = 'com_tsmart_ADMIN_PAYMENT_CONFIGURATION';
AdminUIHelper::buildTabs($this, $tabarray, $this->payment->tsmart_paymentmethod_id);
// Loading Templates in Tabs END
?>
<!-- Hidden Fields -->
<input type="hidden" name="option" value="com_tsmart" />
<input type="hidden" name="tsmart_paymentmethod_id" value="<?php
echo $this->payment->tsmart_paymentmethod_id;
?>
" />
<input type="hidden" name="task" value="" />
<?php
echo VmHTML::inputHidden(array(show_in_parent_window => $this->show_in_parent_window));
?>
<input type="hidden" name="boxchecked" value="0" />
<input type="hidden" name="xxcontroller" value="paymentmethod" />
<input type="hidden" name="view" value="paymentmethod" />
<?php
echo JHtml::_('form.token');
?>
</form>
<?php
AdminUIHelper::endAdminArea();
示例6:
</div>
</div>
</div>
</div>
</div>
<input type="hidden" name="tsmart_vendor_id" value="<?php
echo $this->item->tsmart_vendor_id;
?>
"/>
<input type="hidden" name="tsmart_supplier_id"
value="<?php
echo $this->item->tsmart_supplier_id;
?>
"/>
<?php
echo VmHTML::inputHidden(array('key[tsmart_product_id]' => $this->tsmart_product_id));
?>
<?php
echo $this->addStandardHiddenToForm();
?>
</form>
</div>
<?php
AdminUIHelper::imitateTabs('end');
AdminUIHelper::endAdminArea();
示例7:
?>
</div>
</div>
<div class="row-fluid">
<div class="span12">
<?php
echo VmHTML::row_basic('list_checkbox', 'select tour apply', 'list_tour_id', $this->list_tour, $this->item->list_tour_id, '', 'tsmart_product_id', 'product_name', false);
?>
</div>
</div>
<?php
echo VmHTML::inputHidden(array(show_in_parent_window => $this->show_in_parent_window));
?>
<?php
echo VmHTML::inputHidden(array(tsmart_excursion_addon_id => $this->item->tsmart_excursion_addon_id));
?>
<input type="hidden" value="1" name="published">
<input type="hidden" value="com_tsmart" name="option">
<input type="hidden" value="excursionaddon" name="controller">
<input type="hidden" value="excursionaddon" name="view">
<input type="hidden" value="save" name="task">
<?php
echo JHtml::_('form.token');
?>
<div class="toolbar pull-right">
<button class="btn btn-small btn-success save" type="submit"><span class="icon-save icon-white"></span>Save</button>
<button class="btn btn-small btn-success reset" ><span class="icon-new icon-white"></span>Reset</button>
<button class="btn btn-small btn-success cancel" ><span class="icon-new icon-white"></span>cancel</button>
</div>
示例8:
?>
</div>
</div>
<div class="row-fluid">
<div class="span12">
<?php
echo VmHTML::row_basic('list_checkbox', 'select tour apply', 'list_tour_id', $this->list_tour, $this->item->list_tour_id, '', 'tsmart_product_id', 'product_name', false);
?>
</div>
</div>
<?php
echo VmHTML::inputHidden(array(show_in_parent_window => $this->show_in_parent_window));
?>
<?php
echo VmHTML::inputHidden(array(tsmart_transfer_addon_id => $this->item->tsmart_transfer_addon_id));
?>
<input type="hidden" value="1" name="published">
<input type="hidden" value="com_tsmart" name="option">
<input type="hidden" value="transferaddon" name="controller">
<input type="hidden" value="transferaddon" name="view">
<input type="hidden" value="save" name="task">
<?php
echo JHtml::_('form.token');
?>
<div class="toolbar pull-right">
<button class="btn btn-small btn-success save" type="submit"><span class="icon-save icon-white"></span>Save</button>
<button class="btn btn-small btn-success reset" ><span class="icon-new icon-white"></span>Reset</button>
<button class="btn btn-small btn-success cancel" ><span class="icon-new icon-white"></span>cancel</button>
</div>
示例9:
?>
</div>
</div>
<div class="row-fluid">
<div class="span12">
<?php
echo VmHTML::row_basic('list_checkbox', 'select tour apply', 'list_tour_id', $this->list_tour, $this->tour_id_seletecd, '', 'tsmart_product_id', 'product_name', false);
?>
</div>
</div>
<?php
echo VmHTML::inputHidden(array(show_in_parent_window => $this->show_in_parent_window));
?>
<?php
echo VmHTML::inputHidden(array(tsmart_hotel_addon_id => $this->item->tsmart_hotel_addon_id));
?>
<input type="hidden" value="1" name="published">
<input type="hidden" value="com_tsmart" name="option">
<input type="hidden" value="hoteladdon" name="controller">
<input type="hidden" value="hoteladdon" name="view">
<input type="hidden" value="save" name="task">
<?php
echo JHtml::_('form.token');
?>
<div class="toolbar pull-right">
<button class="btn btn-small btn-success save" type="submit"><span class="icon-save icon-white"></span>Save</button>
<button class="btn btn-small btn-success reset" ><span class="icon-new icon-white"></span>Reset</button>
<button class="btn btn-small btn-success cancel" ><span class="icon-new icon-white"></span>cancel</button>
</div>
示例10:
</div>
</div>
<input type="hidden" name="tsmart_vendor_id" value="<?php
echo $this->item->tsmart_vendor_id;
?>
"/>
<input type="hidden" name="tsmart_itinerary_id"
value="<?php
echo $this->item->tsmart_itinerary_id;
?>
"/>
<?php
echo VmHTML::inputHidden(array('key[tsmart_product_id]' => $tsmart_product_id));
?>
<?php
echo VmHTML::inputHidden(array('tsmart_product_id' => $tsmart_product_id));
?>
<?php
echo $this->addStandardHiddenToForm();
?>
</form>
</div>
<?php
AdminUIHelper::imitateTabs('end');
AdminUIHelper::endAdminArea();