本文整理汇总了PHP中VirtueMartModelCustomfields::setEditCustomHidden方法的典型用法代码示例。如果您正苦于以下问题:PHP VirtueMartModelCustomfields::setEditCustomHidden方法的具体用法?PHP VirtueMartModelCustomfields::setEditCustomHidden怎么用?PHP VirtueMartModelCustomfields::setEditCustomHidden使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类VirtueMartModelCustomfields
的用法示例。
在下文中一共展示了VirtueMartModelCustomfields::setEditCustomHidden方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: htmlentities
$titel = vmText::_('COM_VIRTUEMART_CUSTOM_INHERITED') . '</br>';
}
}
if (!empty($titel)) {
$text = '<span style="white-space: nowrap;" class="hasTip" title="' . htmlentities(vmText::_('COM_VIRTUEMART_CUSTOMFLD_DIS_DER_TIP')) . '">d:' . VmHtml::checkbox('field[' . $i . '][disabler]', $customfield->disabler, $checkValue) . '</span>
<span style="white-space: nowrap;" class="hasTip" title="' . htmlentities(vmText::_('COM_VIRTUEMART_DIS_DER_CUSTOMFLD_OVERR_DER_TIP')) . '">o:' . VmHtml::checkbox('field[' . $i . '][override]', $customfield->override, $checkValue) . '</span>';
}
$tables['fields'] .= '<tr class="removable">
<td >
<b>' . vmText::_($type) . '</b> ' . vmText::_($customfield->custom_title) . '</span><br/>
' . $titel . ' ' . $text . '
<span class="vmicon vmicon-16-' . $cartIcone . '"></span>
<span class="vmicon vmicon-16-move"></span>
<span class="vmicon vmicon-16-remove"></span>
' . VirtueMartModelCustomfields::setEditCustomHidden($customfield, $i) . '</td>
<td ' . $colspan . '>' . $customfield->display . '</td>
</tr>';
}
$i++;
}
}
$emptyTable = '
<tr>
<td colspan="8">' . vmText::_('COM_VIRTUEMART_CUSTOM_NO_TYPES') . '</td>
<tr>';
?>
<fieldset style="background-color:#F9F9F9;">
<legend><?php
echo vmText::_('COM_VIRTUEMART_RELATED_CATEGORIES');
?>
示例2: htmlentities
}
}
if (!empty($title)) {
$text = '<span style="white-space: nowrap;" class="hasTip" title="' . htmlentities(vmText::_('COM_VIRTUEMART_CUSTOMFLD_DIS_DER_TIP')) . '">d:' . VmHtml::checkbox('field[' . $i . '][disabler]', $customfield->disabler, $checkValue) . '</span>
<span style="white-space: nowrap;" class="hasTip" title="' . htmlentities(vmText::_('COM_VIRTUEMART_DIS_DER_CUSTOMFLD_OVERR_DER_TIP')) . '">o:' . VmHtml::checkbox('field[' . $i . '][override]', $customfield->override, $checkValue) . '</span>';
}
$tables['fields'] .= '<tr class="removable">
<td >
<b>' . vmText::_($type) . '</b> ' . vmText::_($customfield->custom_title) . '</span><br/>
' . $title . ' ' . $text . '
<span class="vmicon vmicon-16-' . $cartIcone . '"></span>';
if ($customfield->virtuemart_product_id == $this->product->virtuemart_product_id or $customfield->override != 0) {
$tables['fields'] .= '<span class="vmicon vmicon-16-move"></span>
<span class="vmicon vmicon-16-remove"></span>';
}
$tables['fields'] .= VirtueMartModelCustomfields::setEditCustomHidden($customfield, $i) . '</td>
<td ' . $colspan . '>' . $customfield->display . '</td>
</tr>';
}
$i++;
}
}
$emptyTable = '
<tr>
<td colspan="8">' . vmText::_('COM_VIRTUEMART_CUSTOM_NO_TYPES') . '</td>
<tr>';
?>
<fieldset style="background-color:#F9F9F9;">
<legend><?php
echo vmText::_('COM_VIRTUEMART_RELATED_CATEGORIES');
?>
示例3:
if ($customfield->override != 0) {
$titel = vmText::sprintf('COM_VIRTUEMART_CUSTOM_OVERRIDE', $checkValue);
}
} else {
if ($customfield->virtuemart_product_id == $this->product->product_parent_id) {
$titel = vmText::_('COM_VIRTUEMART_CUSTOM_INHERITED') . '<br/>';
}
}
if (!empty($titel)) {
$text = '<span style="white-space: nowrap;" > d:' . VmHtml::checkbox('field[' . $i . '][disabler]', $customfield->disabler, $checkValue) . ' o:' . VmHtml::checkbox('field[' . $i . '][override]</span>', $customfield->override, $checkValue);
}
$tables['fields'] .= '<tr class="removable">
<td><span >' . $titel . $text . '<br />' . vmText::_($customfield->custom_title) . '</span></td>
<td>' . $customfield->display . '</td>
<td>
<span class="vmicon vmicon-16-' . $cartIcone . '"></span>' . vmText::_($this->fieldTypes[$customfield->field_type]) . VirtueMartModelCustomfields::setEditCustomHidden($customfield, $i) . '</td>
<td><span class="vmicon vmicon-16-move"></span>
<span class="vmicon vmicon-16-remove"></span>' . '</td>
</tr>';
}
$i++;
}
}
$emptyTable = '
<tr>
<td colspan="8">' . vmText::_('COM_VIRTUEMART_CUSTOM_NO_TYPES') . '</td>
<tr>';
?>
<fieldset style="background-color:#F9F9F9;">
<legend><?php
echo vmText::_('COM_VIRTUEMART_RELATED_CATEGORIES');
示例4: foreach
foreach ($product->customfields as $customRow) {
?>
<?php
if ($customRow->field_type == 'E') {
?>
<fieldset class="removable">
<legend><?php
echo JText::_($customRow->custom_title);
?>
</legend>
<span><?php
echo $customRow->display . $customRow->custom_tip;
?>
</span>
<?php
echo VirtueMartModelCustomfields::setEditCustomHidden($customRow, $i);
?>
<span class="vmicon icon-nofloat vmicon-16-<?php
echo $customRow->is_cart_attribute ? 'default' : 'default-off';
?>
"></span>
<span class="vmicon vmicon-16-remove"></span>
</fieldset>
<?php
}
?>
<?php
$i++;
}
?>
</div>
示例5:
<td ><span class="vmicon vmicon-16-move"></span></td>
</tr>';
/*$tables['fields'] .= '
<tr class="removable">
<td>'.JText::_($customfield->custom_title).'</td>
<td colspan="3"><span>'.$customfield->display.$customfield->custom_tip.'</span>'.
VirtueMartModelCustomfields::setEditCustomHidden($customfield, $i)
.'</td><span class="vmicon icon-nofloat vmicon-16-'.$cartIcone.'"></span>
<span class="vmicon vmicon-16-remove"></span>
</tr>';*/
} else {
$tables['fields'] .= '<tr class="removable">
<td>' . JText::_($customfield->custom_title) . '</td>
<td>' . $customfield->custom_tip . '</td>
<td>' . $customfield->display . '</td>
<td>' . JText::_($this->fieldTypes[$customfield->field_type]) . VirtueMartModelCustomfields::setEditCustomHidden($customfield, $i) . '</td>
<td>
<span class="vmicon vmicon-16-' . $cartIcone . '"></span>
</td>
<td><span class="vmicon vmicon-16-remove"></span><input class="ordering" type="hidden" value="' . $customfield->ordering . '" name="field[' . $i . '][ordering]" /></td>
<td ><span class="vmicon vmicon-16-move"></span></td>
</tr>';
}
$i++;
}
}
$emptyTable = '
<tr>
<td colspan="8">' . JText::_('COM_VIRTUEMART_CUSTOM_NO_TYPES') . '</td>
<tr>';
?>