本文整理汇总了PHP中osCommerce\OM\Core\HTML::iconRaw方法的典型用法代码示例。如果您正苦于以下问题:PHP HTML::iconRaw方法的具体用法?PHP HTML::iconRaw怎么用?PHP HTML::iconRaw使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类osCommerce\OM\Core\HTML
的用法示例。
在下文中一共展示了HTML::iconRaw方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
?>
</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;">
示例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="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;">
示例3: alert
$('#ab_state').val(state);
}
}
} else {
alert('Error: The country zones list could not be populated.'); // HPDL improve
}
});
});
});
var gender_male_icon = '<?php
echo HTML::iconRaw('user_male.png', '32x32');
?>
';
var gender_female_icon = '<?php
echo HTML::iconRaw('user_female.png', '32x32');
?>
';
var telephone_icon = '<?php
echo HTML::icon('telephone.png', null, null, 'style="margin-right: 6px;"');
?>
';
var fax_icon = '<?php
echo HTML::icon('fax.png', null, null, 'style="margin-right: 6px;"');
?>
';
var edit_icon = '<?php
echo HTML::icon('edit.png');
?>
';
var trash_icon = '<?php
示例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: get
/**
* Get the messages belonging to a group. The messages are placed into an
* unsorted list wrapped in a DIV element with the "messageStack" style sheet
* class.
*
* @param string $group The name of the group to get the messages from
* @since v3.0.0
*/
public function get($group = null)
{
if (!isset($group)) {
$group = OSCOM::getSiteApplication();
}
$result = false;
if ($this->exists($group)) {
$result = '<div class="messageStack"><ul>';
foreach ($this->_data[$group] as $message) {
switch ($message['type']) {
case 'error':
$bullet_image = 'error.gif';
break;
case 'warning':
$bullet_image = 'warning.gif';
break;
case 'success':
default:
$bullet_image = 'success.gif';
break;
}
$result .= '<li style="list-style-image: url(\'' . HTML::iconRaw($bullet_image) . '\')">' . HTML::output($message['text']) . '</li>';
}
$result .= '</ul></div>';
unset($this->_data[$group]);
}
return $result;
}
示例7: 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"'));
}
示例8:
<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>