本文整理汇总了PHP中html_icon函数的典型用法代码示例。如果您正苦于以下问题:PHP html_icon函数的具体用法?PHP html_icon怎么用?PHP html_icon使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了html_icon函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Output
function Output($params)
{
global $db;
$contents = '';
$control = '';
// Build control box form data
$control = '<div class="row">';
$control .= '<div style="white-space:nowrap">';
$control .= TEXT_TITLE . ' ' . html_input_field('personal_links_field_0', '', 'size="40"') . '<br />';
$control .= TEXT_URL . ' ' . html_input_field('personal_links_field_1', '', 'size="64"');
$control .= ' ';
$control .= html_submit_field('sub_personal_links', TEXT_ADD);
$control .= html_hidden_field('personal_links_rId', '');
$control .= '</div></div>';
// Build content box
$contents = '';
if (is_array($params)) {
$index = 1;
foreach ($params as $title => $hyperlink) {
$contents .= '<div style="float:right; height:16px;">';
$contents .= html_icon('phreebooks/dashboard-remove.png', TEXT_REMOVE, 'small', 'onclick="return del_index(\'' . $this->dashboard_id . '\', ' . $index . ')"');
$contents .= '</div>';
$contents .= '<div style="min-height:16px;">';
$contents .= '<a href="' . $hyperlink . '" target="_blank">' . $title . '</a>' . chr(10);
$contents .= '</div>';
$index++;
}
} else {
$contents = ACT_NO_RESULTS;
}
return $this->build_div('', $contents, $control);
}
示例2: Output
function Output($params)
{
global $db;
$contents = '';
$control = '';
// Build control box form data
$control = ' <div class="row">' . chr(10);
$control .= ' <div style="white-space:nowrap">';
$control .= TEXT_NOTE . ' ' . html_input_field('my_notes_field_0', '', 'size="64"') . '<br />';
$control .= ' ';
$control .= html_submit_field('sub_my_notes', TEXT_ADD);
$control .= html_hidden_field('my_notes_rId', '');
$control .= ' </div>' . chr(10);
$control .= ' </div>' . chr(10);
// Build content box
$contents = '';
if (is_array($params)) {
$index = 1;
foreach ($params as $my_note) {
$contents .= ' <div>';
$contents .= ' <div style="float:right; height:16px;">';
$contents .= html_icon('phreebooks/dashboard-remove.png', TEXT_REMOVE, 'small', 'onclick="return del_index(\'' . $this->dashboard_id . '\', ' . $index . ')"');
$contents .= ' </div>' . chr(10);
$contents .= ' <div style="min-height:16px;">● ' . $my_note . '</div>' . chr(10);
$contents .= ' </div>' . chr(10);
$index++;
}
} else {
$contents = ACT_NO_RESULTS;
}
return $this->build_div('', $contents, $control);
}
示例3: create_menu
function create_menu(array $array)
{
if ($array['security_id'] != 1 && $_SESSION['admin_id'] != 1) {
if (isset($array['security_id']) && $array['security_id'] != '') {
if (array_key_exists($array['security_id'], $_SESSION['admin_security']) == false || $_SESSION['admin_security'][$array['security_id']] < 1) {
return '';
}
}
}
if (isset($array['submenu'])) {
usort($array['submenu'], 'sortByOrder');
if (check_permission($array['submenu'])) {
echo ' <li><a href="' . $array['link'] . '" ' . $array['params'] . '>' . (isset($array['icon']) ? $array['icon'] . ' ' . $array['text'] : $array['text']) . '</a>' . chr(10);
echo ' <ul>' . chr(10);
foreach ($array['submenu'] as $menu_item) {
create_menu($menu_item);
}
echo ' </ul>' . chr(10);
echo ' </li>' . chr(10);
}
} else {
echo ' <li><a href="' . $array['link'] . '" ' . $array['params'] . '>' . chr(10);
if ($array['text'] == TEXT_HOME && ENABLE_ENCRYPTION && strlen($_SESSION['admin_encrypt']) > 0) {
echo html_icon('emblems/emblem-readonly.png', TEXT_ENCRYPTION_ENABLED, 'small');
}
echo (isset($array['icon']) ? $array['icon'] . ' ' . $array['text'] : $array['text']) . '</a> </li>' . chr(10);
}
return true;
}
示例4: Output
function Output($params)
{
global $db;
// Build control box form data
$control = '<div class="row">';
$control .= '<div style="white-space:nowrap">';
$control .= TEXT_NOTE . ' ' . html_input_field('my_note', '', 'size="50"') . '<br />';
$control .= ' ';
$control .= html_submit_field('my_note_submit', TEXT_ADD);
$control .= html_hidden_field($this->module_id . '_rId', '');
$control .= '</div></div>';
// Build content box
$contents = '';
if (is_array($params)) {
$index = 1;
foreach ($params as $my_note) {
if ($_SESSION['admin_security'][SECURITY_ID_USERS] > 3) {
// only let delete if user permission is full
$contents .= '<div style="float:right; height:16px;">';
$contents .= html_icon('phreebooks/dashboard-remove.png', TEXT_REMOVE, 'small', 'onclick="return del_index(\'' . $this->module_id . '\', ' . $index . ')"');
$contents .= '</div>';
}
$contents .= '<div style="height:16px;">- ' . $my_note . '</div>' . chr(10);
$index++;
}
} else {
$contents = CP_MY_NOTES_NO_RESULTS;
}
return $this->build_div($this->title, $contents, $control);
}
示例5: add_extra_action_bar_buttons
function add_extra_action_bar_buttons($query_fields)
{
$output = '';
if (defined('ZENCART_URL') && $_SESSION['admin_security'][SECURITY_ID_MAINTAIN_INVENTORY] > 1 && $query_fields['catalog'] == '1') {
$output .= html_icon('../../../../my_files/custom/zencart/images/zencart.gif', ZENCART_IVENTORY_UPLOAD, 'small', 'onclick="submitSeq(' . $query_fields['id'] . ', \'upload\')"', '16', '16') . chr(10);
}
return $output;
}
示例6: add
function add($message, $type = 'error')
{
if ($type == 'error') {
$this->errors[] = array('params' => 'class="messageStackError"', 'text' => html_icon('emblems/emblem-unreadable.png', TEXT_ERROR) . ' ' . $message);
} elseif ($type == 'warning') {
$this->errors[] = array('params' => 'class="messageStackWarning"', 'text' => html_icon('emblems/emblem-important.png', TEXT_CAUTION) . ' ' . $message);
} elseif ($type == 'success') {
if (!HIDE_SUCCESS_MESSAGES) {
$this->errors[] = array('params' => 'class="messageStackSuccess"', 'text' => html_icon('emotes/face-smile.png', TEXT_SUCCESS) . ' ' . $message);
}
} elseif ($type == 'caution') {
$this->errors[] = array('params' => 'class="messageStackCaution"', 'text' => html_icon('emblems/emblem-important.png', TEXT_CAUTION) . ' ' . $message);
} else {
$this->errors[] = array('params' => 'class="messageStackError"', 'text' => $message);
}
$this->size++;
return true;
}
示例7: Output
function Output($params)
{
global $db;
$contents = '';
$control = '';
// load the report list
$result = $db->Execute("select id, security, doc_title from " . TABLE_PHREEFORM . " \n\t\t where doc_ext in ('rpt','frm') order by doc_title");
$data_array = array(array('id' => '', 'text' => GEN_HEADING_PLEASE_SELECT));
$type_array = array();
while (!$result->EOF) {
if (security_check($result->fields['security'])) {
$data_array[] = array('id' => $result->fields['id'], 'text' => $result->fields['doc_title']);
}
$result->MoveNext();
}
// Build control box form data
$control = '<div class="row">';
$control .= '<div style="white-space:nowrap">';
$control .= TEXT_REPORT . ' ' . html_pull_down_menu('report_id', $data_array);
$control .= ' ';
$control .= html_submit_field('sub_favorite_reports', TEXT_ADD);
$control .= html_hidden_field('favorite_reports_rId', '');
$control .= '</div></div>';
// Build content box
$contents = '';
if (is_array($params)) {
$index = 1;
foreach ($params as $id => $description) {
$contents .= '<div style="float:right; height:16px;">';
$contents .= html_icon('phreebooks/dashboard-remove.png', TEXT_REMOVE, 'small', 'onclick="return del_index(\'' . $this->dashboard_id . '\', ' . $index . ')"');
$contents .= '</div>';
$contents .= '<div style="height:16px;">';
$contents .= ' <a href="index.php?module=phreeform&page=popup_gen&rID=' . $id . '" target="_blank">' . $description . '</a>' . chr(10);
$contents .= '</div>';
$index++;
}
} else {
$contents = ACT_NO_RESULTS;
}
return $this->build_div('', $contents, $control);
}
示例8: build_main_html
function build_main_html()
{
global $db, $messageStack;
$content = array();
$content['thead'] = array('value' => array(TEXT_TITLE, TEXT_DESCRIPTION, TEXT_SORT_ORDER, TEXT_ACTION), 'params' => 'width="100%" cellspacing="0" cellpadding="1"');
$result = $db->Execute("select id, tab_name, description, sort_order from " . TABLE_EXTRA_TABS . " where module_id='assets'");
$rowCnt = 0;
while (!$result->EOF) {
$actions = '';
if ($_SESSION['admin_security'][SECURITY_ID_CONFIGURATION] > 1) {
$actions .= html_icon('actions/edit-find-replace.png', TEXT_EDIT, 'small', 'onclick="loadPopUp(\'tabs_edit\', \'' . $result->fields['id'] . '\')"') . chr(10);
}
if ($_SESSION['admin_security'][SECURITY_ID_CONFIGURATION] > 3) {
$actions .= html_icon('emblems/emblem-unreadable.png', TEXT_DELETE, 'small', 'onclick="if (confirm(\'' . EXTRA_TABS_DELETE_INTRO . '\')) subjectDelete(\'tabs\', ' . $result->fields['id'] . ')"') . chr(10);
}
$content['tbody'][$rowCnt] = array(array('value' => htmlspecialchars($result->fields['tab_name']), 'params' => 'style="cursor:pointer" onclick="loadPopUp(\'tabs_edit\',\'' . $result->fields['id'] . '\')"'), array('value' => htmlspecialchars($result->fields['description']), 'params' => 'style="cursor:pointer" onclick="loadPopUp(\'tabs_edit\',\'' . $result->fields['id'] . '\')"'), array('value' => $result->fields['sort_order'], 'params' => 'style="cursor:pointer" onclick="loadPopUp(\'tabs_edit\',\'' . $result->fields['id'] . '\')"'), array('value' => $actions, 'params' => 'align="right"'));
$result->MoveNext();
$rowCnt++;
}
return html_datatable('tab_table', $content);
}
示例9: build_main_html
function build_main_html()
{
global $db, $messageStack, $currencies;
$content = array();
$content['thead'] = array('value' => array(TEXT_DESCRIPTION, TEXT_GL_ACCOUNT, TEXT_BANK_ACCOUNT, TEXT_ACTION), 'params' => 'width="100%" cellspacing="0" cellpadding="1"');
$result = $db->Execute("select * from " . $this->db_table);
$rowCnt = 0;
while (!$result->EOF) {
$actions = '';
if ($this->security_id > 1) {
$actions .= html_icon('actions/edit-find-replace.png', TEXT_EDIT, 'small', 'onclick="loadPopUp(\'' . $this->code . '_edit\', ' . $result->fields['kt_id'] . ')"') . chr(10);
}
if ($this->security_id > 3) {
$actions .= html_icon('emblems/emblem-unreadable.png', TEXT_DELETE, 'small', 'onclick="if (confirm(\'' . SETUP_TILL_DELETE_INTRO . '\')) subjectDelete(\'' . $this->code . '\', ' . $result->fields['kt_id'] . ')"') . chr(10);
}
$content['tbody'][$rowCnt] = array(array('value' => htmlspecialchars($result->fields['description']), 'params' => 'style="cursor:pointer" onclick="loadPopUp(\'' . $this->code . '_edit\',\'' . $result->fields['kt_id'] . '\')"'), array('value' => gen_get_type_description(TABLE_CHART_OF_ACCOUNTS, $result->fields['gl_acct_id']), 'params' => 'style="cursor:pointer" onclick="loadPopUp(\'' . $this->code . '_edit\',\'' . $result->fields['kt_id'] . '\')"'), array('value' => $result->fields['bank_account'], 'params' => 'style="cursor:pointer" onclick="loadPopUp(\'' . $this->code . '_edit\',\'' . $result->fields['kt_id'] . '\')"'), array('value' => $actions, 'params' => 'align="right"'));
$result->MoveNext();
$rowCnt++;
}
return html_datatable('' . $this->code . '_table', $content);
}
示例10: build_main_html
function build_main_html()
{
global $db, $messageStack;
$tax_authorities_array = gen_build_tax_auth_array();
$content = array();
$content['thead'] = array('value' => array(SETUP_TAX_DESC_SHORT, TEXT_DESCRIPTION, SETUP_HEADING_TOTAL_TAX, SETUP_HEADING_TAX_FREIGHT, TEXT_ACTION), 'params' => 'width="100%" cellspacing="0" cellpadding="1"');
$result = $db->Execute("select tax_rate_id, description_short, description_long, rate_accounts, freight_taxable \n\t\tfrom " . $this->db_table . " where type = '" . $this->type . "'");
$rowCnt = 0;
while (!$result->EOF) {
$actions = '';
if ($this->security_id > 1) {
$actions .= html_icon('actions/edit-find-replace.png', TEXT_EDIT, 'small', 'onclick="loadPopUp(\'' . $this->code . '_edit\', ' . $result->fields['tax_rate_id'] . ')"') . chr(10);
}
if ($this->security_id > 3) {
$actions .= html_icon('emblems/emblem-unreadable.png', TEXT_DELETE, 'small', 'onclick="if (confirm(\'' . SETUP_TAX_DELETE_INTRO . '\')) subjectDelete(\'' . $this->code . '\', ' . $result->fields['tax_rate_id'] . ')"') . chr(10);
}
$content['tbody'][$rowCnt] = array(array('value' => htmlspecialchars($result->fields['description_short']), 'params' => 'style="cursor:pointer" onclick="loadPopUp(\'' . $this->code . '_edit\',\'' . $result->fields['tax_rate_id'] . '\')"'), array('value' => htmlspecialchars($result->fields['description_long']), 'params' => 'style="cursor:pointer" onclick="loadPopUp(\'' . $this->code . '_edit\',\'' . $result->fields['tax_rate_id'] . '\')"'), array('value' => gen_calculate_tax_rate($result->fields['rate_accounts'], $tax_authorities_array), 'params' => 'style="cursor:pointer" onclick="loadPopUp(\'' . $this->code . '_edit\',\'' . $result->fields['tax_rate_id'] . '\')"'), array('value' => $result->fields['freight_taxable'] ? TEXT_YES : TEXT_NO, 'params' => 'style="cursor:pointer" onclick="loadPopUp(\'' . $this->code . '_edit\',\'' . $result->fields['tax_rate_id'] . '\')"'), array('value' => $actions, 'params' => 'style="cursor:pointer" align="right"'));
$result->MoveNext();
$rowCnt++;
}
return html_datatable('' . $this->code . '_' . $this->type . '_table', $content);
}
示例11: Output
function Output($params)
{
global $db;
$contents = '';
$control = '';
// Build control box form data
$control = '<div class="row">';
$control .= '<div style="white-space:nowrap">';
if ($_SESSION['admin_security'][SECURITY_ID_USERS] > 1) {
// only show add new if user permission is set to add
$control .= TEXT_TITLE . ' ' . html_input_field('company_links_field_0', '', 'size="40"') . '<br />';
$control .= TEXT_URL . ' ' . html_input_field('company_links_field_1', '', 'size="64"');
$control .= ' ';
$control .= html_submit_field('sub_company_links', TEXT_ADD);
}
$control .= html_hidden_field('company_links_rId', '');
$control .= '</div></div>';
// Build content box
$contents = '';
if (is_array($params)) {
$index = 1;
foreach ($params as $title => $hyperlink) {
if ($_SESSION['admin_security'][SECURITY_ID_USERS] > 3) {
// only let delete if user permission is full
$contents .= '<div style="float:right; height:16px;">';
$contents .= html_icon('phreebooks/dashboard-remove.png', TEXT_REMOVE, 'small', 'onclick="return del_index(\'' . $this->dashboard_id . '\', ' . $index . ')"');
$contents .= '</div>';
}
$contents .= '<div style="height:16px;">';
$contents .= ' <a href="' . $hyperlink . '" target="_blank">' . $title . '</a>' . chr(10);
$contents .= '</div>';
$index++;
}
} else {
$contents = ACT_NO_RESULTS;
}
return $this->build_div('', $contents, $control);
}
示例12: build_form_href
function build_form_href($array_tree, $ref = '')
{
$entry_string = '';
if (is_array($array_tree)) {
foreach ($array_tree as $key => $entry) {
$new_ref = $ref . $key;
$entry_string .= '<table border="0" cellpadding="1" cellspacing="1"><tr>' . chr(10);
if (isset($entry['children'])) {
$entry_string .= '<td><a id="rpt_' . $new_ref . '" href="javascript:Toggle(\'' . $new_ref . '\');">';
$entry_string .= html_icon('status/folder-open.png', TEXT_EXPAND, 'small', $params = 'hspace="0" vspace="0"') . '</a>';
} else {
$entry_string .= '<td>' . html_radio_field('id', 'f' . $key, false);
}
$entry_string .= ' ' . $entry['desc'] . '</td>' . chr(10);
$entry_string .= '</tr></table>' . chr(10);
if (isset($entry['children'])) {
$entry_string .= '<div id="' . $new_ref . '" style="display:none; margin-left:1em;">' . chr(10) . chr(10);
$entry_string .= build_form_href($entry['children'], $new_ref) . chr(10);
$entry_string .= '</div>' . chr(10);
}
}
}
return $entry_string;
}
示例13: html_input_field
?>
</td></tr>
<tr><th colspan="2"><?php
echo ACT_PAYMENT_MESSAGE;
?>
</th></tr>
<tr>
<td><?php
echo ACT_CARDHOLDER_NAME;
?>
</td>
<td><?php
echo html_input_field('payment_cc_name', $cInfo->payment_cc_name, 'size="50" maxlength="48"');
?>
<?php
echo html_icon('actions/view-refresh.png', TEXT_RESET, 'small', 'onclick="clearPmtForm()"');
?>
</td>
</tr>
<tr>
<td><?php
echo ACT_PAYMENT_CREDIT_CARD_NUMBER;
?>
</td>
<td><?php
echo html_input_field('payment_cc_number', $cInfo->payment_cc_number, 'size="20" maxlength="19"');
?>
</td>
</tr>
<tr>
<td><?php
示例14: html_input_field
?>
';
var item_col_1_enable = '<?php
echo $item_col_1_enable ? '1' : '0';
?>
';
var item_col_2_enable = '<?php
echo $item_col_2_enable ? '1' : '0';
?>
';
var ship_search_HTML = '<?php
echo GEN_CUSTOMER_ID . " " . html_input_field("ship_search", $order->ship_short_name) . " " . html_icon("status/folder-open.png", TEXT_SEARCH, "small", 'align="top" style="cursor:pointer" title="' . TEXT_SEARCH . '" onclick="DropShipList(this)"');
?>
';
var delete_icon_HTML = '<?php
echo substr(html_icon("emblems/emblem-unreadable.png", TEXT_DELETE, "small", "onclick=\"if (confirm(\\'" . ORD_ROW_DELETE_ALERT . "\\')) removeInvRow("), 0, -2);
?>
';
var payments_installed = <?php
echo count($payment_choices) ? 'true' : 'false';
?>
;
var serial_num_prompt = '<?php
echo ORD_JS_SERIAL_NUM_PROMPT;
?>
';
var no_stock_a = '<?php
echo ORD_JS_NO_STOCK_A;
?>
';
var no_stock_b = '<?php
示例15: add_search
function add_search()
{
$output = '<div id="tb_search_' . $this->id . '" class="toolbar_right">' . "\n";
$output .= HEADING_TITLE_SEARCH_DETAIL . '<br />';
$output .= html_input_field('search_text', $this->search_text, $params = '');
if ($this->search_text) {
$output .= ' ' . html_icon('actions/view-refresh.png', TEXT_RESET, 'small', 'onclick="location.href = \'index.php?' . gen_get_all_get_params(array('search_text', 'search_period', 'search_date', 'page', 'action')) . '\';" style="cursor:pointer;"');
}
$output .= ' ' . html_icon('actions/system-search.png', TEXT_SEARCH, 'small', 'onclick="searchPage(\'' . gen_get_all_get_params(array('search_text', 'page', 'action')) . '\')" style="cursor:pointer;" id="search_mini_icon" ');
$output .= '</div>' . "\n";
return $output;
}