本文整理汇总了PHP中osCommerce\OM\Core\HTML::submitImage方法的典型用法代码示例。如果您正苦于以下问题:PHP HTML::submitImage方法的具体用法?PHP HTML::submitImage怎么用?PHP HTML::submitImage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类osCommerce\OM\Core\HTML
的用法示例。
在下文中一共展示了HTML::submitImage方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: initialize
public function initialize()
{
$OSCOM_Product = Registry::exists('Product') ? Registry::get('Product') : null;
if (isset($OSCOM_Product) && $OSCOM_Product instanceof \osCommerce\OM\Site\Shop\Product && $OSCOM_Product->isValid()) {
// HPDL && ($osC_Template->getModule() != 'tell_a_friend')) {
$this->_content = '<form name="tell_a_friend" action="' . OSCOM::getLink(null, null, 'TellAFriend&' . $OSCOM_Product->getKeyword()) . '" method="post">' . "\n" . HTML::inputField('to_email_address', null, 'style="width: 80%;"') . ' ' . HTML::submitImage('button_tell_a_friend.gif', OSCOM::getDef('box_tell_a_friend_text')) . '<br />' . OSCOM::getDef('box_tell_a_friend_text') . "\n" . '</form>' . "\n";
}
}
示例2:
?>
</th>
<th width="150"><?php
echo OSCOM::getDef('table_heading_action');
?>
</th>
<th align="center" width="20"><?php
echo HTML::checkboxField('batchFlag', null, null, 'onclick="flagCheckboxes(this);"');
?>
</th>
</tr>
</thead>
<tfoot>
<tr>
<th align="right" colspan="4"><?php
echo HTML::submitImage(HTML::iconRaw('trash.png'), OSCOM::getDef('icon_trash'), 'onclick="document.batch.action=\'' . OSCOM::getLink(null, null, 'BatchDelete') . '\';"');
?>
</th>
<th align="center" width="20"><?php
echo HTML::checkboxField('batchFlag', null, null, 'onclick="flagCheckboxes(this);"');
?>
</th>
</tr>
</tfoot>
<tbody>
</tbody>
</table>
</form>
<div style="padding: 2px;">
示例3:
?>
</th>
<th width="150"><?php
echo OSCOM::getDef('table_heading_action');
?>
</th>
<th align="center" width="20"><?php
echo HTML::checkboxField('batchFlag', null, null, 'onclick="flagCheckboxes(this);"');
?>
</th>
</tr>
</thead>
<tfoot>
<tr>
<th align="right" colspan="2"><?php
echo HTML::submitImage(HTML::iconRaw('move.png'), OSCOM::getDef('icon_move'), 'onclick="document.batch.action=\'' . OSCOM::getLink(null, null, 'BatchMove&cid=' . $OSCOM_Application->getCurrentCategoryID()) . '\';"') . ' <a href="#" onclick="$(\'#dialogBatchDeleteConfirm\').dialog(\'open\'); return false;">' . HTML::icon('trash.png') . '</a>';
?>
</th>
<th align="center" width="20"><?php
echo HTML::checkboxField('batchFlag', null, null, 'onclick="flagCheckboxes(this);"');
?>
</th>
</tr>
</tfoot>
<tbody>
</tbody>
</table>
</form>
<div style="padding: 2px;">
示例4:
?>
</th>
<th width="150"><?php
echo OSCOM::getDef('table_heading_action');
?>
</th>
<th align="center" width="20"><?php
echo HTML::checkboxField('batchFlag', null, null, 'onclick="flagCheckboxes(this);"');
?>
</th>
</tr>
</thead>
<tfoot>
<tr>
<th align="right" colspan="3"><?php
echo HTML::submitImage(HTML::iconRaw('edit.png'), OSCOM::getDef('icon_edit'), 'onclick="document.batch.action=\'' . OSCOM::getLink(null, null, 'BatchSaveDefinitions&id=' . $_GET['id'] . '&group=' . $_GET['group']) . '\';"') . ' ' . HTML::submitImage(HTML::iconRaw('trash.png'), OSCOM::getDef('icon_trash'), 'onclick="document.batch.action=\'' . OSCOM::getLink(null, null, 'BatchDeleteDefinitions&id=' . $_GET['id'] . '&group=' . $_GET['group']) . '\';"');
?>
</th>
<th align="center" width="20"><?php
echo HTML::checkboxField('batchFlag', null, null, 'onclick="flagCheckboxes(this);"');
?>
</th>
</tr>
</tfoot>
<tbody>
</tbody>
</table>
</form>
<div style="padding: 2px;">
示例5:
?>
</th>
<th width="150"><?php
echo OSCOM::getDef('table_heading_action');
?>
</th>
<th align="center" width="20"><?php
echo HTML::checkboxField('batchFlag', null, null, 'onclick="flagCheckboxes(this);"');
?>
</th>
</tr>
</thead>
<tfoot>
<tr>
<th align="right" colspan="3"><?php
echo HTML::submitImage(HTML::iconRaw('edit.png'), OSCOM::getDef('icon_edit'), 'onclick="document.batch.action=\'' . OSCOM::getLink(null, null, 'BatchSaveEntries&id=' . $_GET['id']) . '\';"');
?>
</th>
<th align="center" width="20"><?php
echo HTML::checkboxField('batchFlag', null, null, 'onclick="flagCheckboxes(this);"');
?>
</th>
</tr>
</tfoot>
<tbody>
</tbody>
</table>
</form>
<div style="padding: 2px; min-height: 16px;">
示例6: testSubmitImage
public function testSubmitImage()
{
$this->assertEquals('<input type="image" src="public/sites/Shop/templates/oscom/images/icons/16x16/edit.png" title="Edit" id="editSubmitImage" />', HTML::submitImage(HTML::iconRaw('edit.png'), 'Edit', 'id="editSubmitImage"'));
}
示例7:
<form name="batch" action="#" method="post">
<table border="0" width="100%" cellspacing="0" cellpadding="2" class="dataTable" id="productsDataTable">
<thead>
<tr>
<th><?php echo OSCOM::getDef('table_heading_products'); ?></th>
<th><?php echo OSCOM::getDef('table_heading_price'); ?></th>
<th><?php echo OSCOM::getDef('table_heading_quantity'); ?></th>
<th width="150"><?php echo OSCOM::getDef('table_heading_action'); ?></th>
<th align="center" width="20"><?php echo HTML::checkboxField('batchFlag', null, null, 'onclick="flagCheckboxes(this);"'); ?></th>
</tr>
</thead>
<tfoot>
<tr>
<th align="right" colspan="4"><?php echo HTML::submitImage(HTML::iconRaw('copy.png'), OSCOM::getDef('icon_copy'), 'onclick="document.batch.action=\'' . OSCOM::getLink(null, null, 'BatchCopy&cid=' . $OSCOM_Application->getCurrentCategoryID()) . '\';"') . ' <a href="#" onclick="$(\'#dialogBatchDeleteConfirm\').dialog(\'open\'); return false;">' . HTML::icon('trash.png') . '</a>'; ?></th>
<th align="center" width="20"><?php echo HTML::checkboxField('batchFlag', null, null, 'onclick="flagCheckboxes(this);"'); ?></th>
</tr>
</tfoot>
<tbody>
</tbody>
</table>
</form>
<div style="padding: 2px;">
<span id="dataTableLegend"><?php echo '<b>' . OSCOM::getDef('table_action_legend') . '</b> ' . HTML::icon('edit.png') . ' ' . OSCOM::getDef('icon_edit') . ' ' . HTML::icon('copy.png') . ' ' . OSCOM::getDef('icon_copy') . ' ' . HTML::icon('trash.png') . ' ' . OSCOM::getDef('icon_trash'); ?></span>
<span id="batchPullDownMenu"></span>
</div>
<script>