本文整理汇总了PHP中html_style_image函数的典型用法代码示例。如果您正苦于以下问题:PHP html_style_image函数的具体用法?PHP html_style_image怎么用?PHP html_style_image使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了html_style_image函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: light_pm_display
function light_pm_display($message_data, $preview = false)
{
$webtag = get_webtag();
forum_check_webtag_available($webtag);
if (!$preview) {
if (strlen(trim($message_data['SUBJECT'])) > 0) {
echo "<h3 class=\"message_subject\">", word_filter_add_ob_tags($message_data['SUBJECT'], true), "</h3>\n";
} else {
echo "<h3 class=\"message_subject\">", gettext("No Subject"), "</h3>\n";
}
}
echo "<div class=\"message\">\n";
echo "<div class=\"message_header\">\n";
echo "<div class=\"message_from\">\n";
echo gettext("From"), ": ", word_filter_add_ob_tags(format_user_name($message_data['FROM_LOGON'], $message_data['FROM_NICKNAME']), true), "\n";
echo "<span class=\"message_time\">", format_date_time($message_data['CREATED']), "</span>\n";
echo "<div class=\"clearer\"></div>\n";
echo "</div>\n";
echo "<div class=\"message_to\">", gettext("To"), ": ";
if (isset($message_data['RECIPIENTS']) && sizeof($message_data['RECIPIENTS']) > 0) {
foreach ($message_data['RECIPIENTS'] as $recipient) {
echo "<span>", word_filter_add_ob_tags(format_user_name($recipient['LOGON'], $recipient['NICKNAME']), true), "</span>\n";
}
} else {
echo gettext('Unknown User');
}
echo "<div class=\"clearer\"></div>\n";
echo "</div>\n";
echo "</div>\n";
$message_data['CONTENT'] = message_apply_formatting($message_data['CONTENT']);
$message_data['CONTENT'] = word_filter_add_ob_tags($message_data['CONTENT']);
echo "<div class=\"message_links\"> </div>\n";
echo "<div class=\"message_body\">", $message_data['CONTENT'], "</div>\n";
if (isset($message_data['ATTACHMENTS']) && sizeof($message_data['ATTACHMENTS']) > 0) {
if (($attachments_array = attachments_get($message_data['FROM_UID'], $message_data['ATTACHMENTS'])) !== false) {
echo "<div class=\"message_attachments\">\n";
echo " <span>", gettext("Attachments"), ":</span>\n";
echo " <ul>\n";
foreach ($attachments_array as $attachment) {
if (($attachment_link = light_attachments_make_link($attachment)) !== false) {
echo "<li>", html_style_image('attach'), $attachment_link, "</li>\n";
}
}
echo " </ul>\n";
echo "</div>\n";
}
}
if ($preview === false) {
$links_array = array();
if (($message_data['TYPE'] & PM_INBOX_ITEMS) > 0) {
$links_array[] = "<a href=\"lpm_write.php?webtag={$webtag}&reply_to={$message_data['MID']}\" class=\"reply\">" . html_style_image('post') . gettext("Reply") . "</a>";
if (isset($message_data['RECIPIENTS']) && sizeof($message_data['RECIPIENTS']) > 1) {
$links_array[] = "<a href=\"lpm_write.php?webtag={$webtag}&replyall={$message_data['MID']}\" class=\"replyall\">" . html_style_image('reply_all') . gettext("Reply All") . "</a>";
}
$links_array[] = "<a href=\"lpm_write.php?webtag={$webtag}&fwdmsg={$message_data['MID']}\" class=\"forward\">" . html_style_image('forward') . gettext("Forward") . "</a>";
$links_array[] = "<a href=\"lpm.php?webtag={$webtag}&delete_msg={$message_data['MID']}\" class=\"delete\">" . html_style_image('delete') . gettext("Delete") . "</a>";
} else {
if (($message_data['TYPE'] & PM_OUTBOX_ITEMS) > 0) {
$links_array[] = "<a href=\"lpm_edit.php?webtag={$webtag}&mid={$message_data['MID']}\" class=\"edit\">" . html_style_image('edit') . gettext("Edit") . "</a>";
$links_array[] = "<a href=\"lpm_write.php?webtag={$webtag}&fwdmsg={$message_data['MID']}\" class=\"forward\">" . html_style_image('forward') . gettext("Forward") . "</a>";
$links_array[] = "<a href=\"lpm.php?webtag={$webtag}&delete_msg={$message_data['MID']}\" class=\"delete\">" . html_style_image('delete') . gettext("Delete") . "</a>";
} else {
if (($message_data['TYPE'] & PM_DRAFT_ITEMS) > 0) {
$links_array[] = "<a href=\"lpm_write.php?webtag={$webtag}&editmsg={$message_data['MID']}\" class=\"edit\">" . html_style_image('edit') . gettext("Edit") . "</a>";
$links_array[] = "<a href=\"lpm.php?webtag={$webtag}&delete_msg={$message_data['MID']}\" class=\"delete\">" . html_style_image('delete') . gettext("Delete") . "</a>";
} else {
$links_array[] = "<a href=\"lpm_write.php?webtag={$webtag}&fwdmsg={$message_data['MID']}\" class=\"forward\">" . html_style_image('forward') . gettext("Forward") . "</a>";
$links_array[] = "<a href=\"lpm.php?webtag={$webtag}&delete_msg={$message_data['MID']}\" class=\"delete\">" . html_style_image('delete') . gettext("Delete") . "</a>";
}
}
}
if (sizeof($links_array) > 0) {
echo "<div class=\"message_footer_links\">", implode(' ', $links_array), "</div>\n";
}
}
echo "</div>";
}
示例2: forum_update_unread_data
}
if (forum_save_global_settings($new_forum_settings)) {
if (isset($_POST['confirm_unread_cutoff'])) {
forum_update_unread_data($unread_cutoff_stamp);
}
header_redirect("admin_default_forum_settings.php?webtag={$webtag}&updated=true", gettext("Forum settings successfully updated"));
} else {
$valid = false;
$error_msg_array[] = gettext("Failed to update forum settings. Please try again later.");
}
}
$forum_global_settings = array_merge($forum_global_settings, $new_forum_settings);
}
// Start Output Here
html_draw_top(sprintf('title=%s', gettext("Admin - Global Forum Settings")), 'class=window_title', "admin.js", "emoticons.js");
echo "<h1>", gettext("Admin"), "<img src=\"", html_style_image('separator.png'), "\" alt=\"\" border=\"0\" />", gettext("Global Forum Settings"), "</h1>\n";
if (isset($error_msg_array) && sizeof($error_msg_array) > 0) {
html_display_error_array($error_msg_array, '600', 'center');
} else {
if (isset($_GET['updated'])) {
html_display_success_msg(gettext("Preferences were successfully updated."), '600', 'center');
} else {
html_display_warning_msg(gettext("<b>Note:</b> These settings affect all forums. Where the setting is duplicated on the individual Forum's settings page that will take precedence over the settings you change here."), '600', 'center');
}
}
echo "<br />\n";
echo "<div align=\"center\">\n";
echo "<form accept-charset=\"utf-8\" name=\"prefsform\" action=\"admin_default_forum_settings.php\" method=\"post\" target=\"_self\">\n";
echo " ", form_input_hidden('webtag', htmlentities_array($webtag)), "\n";
echo " <table cellpadding=\"0\" cellspacing=\"0\" width=\"600\">\n";
echo " <tr>\n";
示例3: links_get_comment_uid
if (isset($_GET['delete_comment']) && is_numeric($_GET['delete_comment'])) {
$comment_id = $_GET['delete_comment'];
$comment_uid = links_get_comment_uid($comment_id);
if ($user_perm_links_moderate || $comment_uid == $_SESSION['UID']) {
if (links_delete_comment($comment_id)) {
$success_msg = gettext("Comment was deleted.");
} else {
$error_msg_array[] = gettext("Comment could not be deleted.");
$valid = false;
}
}
}
$folders = links_folders_get(!$user_perm_links_moderate);
$page_title = links_get_folder_page_title($link['FID'], $folders, $link['TITLE']);
html_draw_top(array('title' => $page_title, 'class' => 'window_title'));
echo "<h1>", links_get_folder_path_links($link['FID'], $folders, true, true), html_style_image('separator'), "<a href=\"links.php?webtag={$webtag}&lid={$lid}&action=go\" target=\"_blank\">", word_filter_add_ob_tags($link['TITLE'], true), "</a></h1>\n";
if (isset($error_msg_array) && sizeof($error_msg_array) > 0) {
html_display_error_array($error_msg_array, '600', 'center');
} else {
if (isset($success_msg) && strlen($success_msg) > 0) {
html_display_success_msg($success_msg, '600', 'center');
}
}
echo "<br />\n";
echo "<div align=\"center\">\n";
echo "<table cellpadding=\"0\" cellspacing=\"0\" width=\"600\">\n";
echo " <tr>\n";
echo " <td align=\"left\">\n";
echo " <table class=\"box\" width=\"100%\">\n";
echo " <tr>\n";
echo " <td align=\"left\" class=\"posthead\">\n";
示例4: html_style_image
echo " <td align=\"left\" class=\"postbody\"><hr /></td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td align=\"left\" class=\"postbody\"><img src=\"", html_style_image('bullet.png'), "\" border=\"0\" alt=\"\" /> <a href=\"edit_email.php?webtag={$webtag}\" target=\"", html_get_frame_name('right'), "\">", htmlentities_array(gettext("Email & Privacy")), "</a></td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td align=\"left\" class=\"postbody\"><img src=\"", html_style_image('bullet.png'), "\" border=\"0\" alt=\"\" /> <a href=\"forum_options.php?webtag={$webtag}\" target=\"", html_get_frame_name('right'), "\">", gettext("Forum Options"), "</a></td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td align=\"left\" class=\"postbody\"><img src=\"", html_style_image('bullet.png'), "\" border=\"0\" alt=\"\" /> <a href=\"pm_options.php?webtag={$webtag}\" target=\"", html_get_frame_name('right'), "\">", gettext("Private Message Options"), "</a></td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td align=\"left\" class=\"postbody\"><img src=\"", html_style_image('bullet.png'), "\" border=\"0\" alt=\"\" /> <a href=\"edit_attachments.php?webtag={$webtag}\" target=\"", html_get_frame_name('right'), "\">", gettext("Attachments"), "</a></td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td align=\"left\" class=\"postbody\"><img src=\"", html_style_image('bullet.png'), "\" border=\"0\" alt=\"\" /> <a href=\"edit_signature.php?webtag={$webtag}\" target=\"", html_get_frame_name('right'), "\">", gettext("Signature"), "</a></td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td align=\"left\" class=\"postbody\"><img src=\"", html_style_image('bullet.png'), "\" border=\"0\" alt=\"\" /> <a href=\"edit_relations.php?webtag={$webtag}\" target=\"", html_get_frame_name('right'), "\">", gettext("Relationships"), "</a></td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td align=\"left\" class=\"postbody\"><img src=\"", html_style_image('bullet.png'), "\" border=\"0\" alt=\"\" /> <a href=\"edit_wordfilter.php?webtag={$webtag}\" target=\"", html_get_frame_name('right'), "\">", gettext("Word Filter"), "</a></td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td align=\"left\" class=\"postbody\"><img src=\"", html_style_image('bullet.png'), "\" border=\"0\" alt=\"\" /> <a href=\"edit_subscriptions.php?webtag={$webtag}\" target=\"", html_get_frame_name('right'), "\">", gettext("Thread Subscriptions"), "</a></td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td align=\"left\" class=\"postbody\"><img src=\"", html_style_image('bullet.png'), "\" border=\"0\" alt=\"\" /> <a href=\"folder_subscriptions.php?webtag={$webtag}\" target=\"", html_get_frame_name('right'), "\">", gettext("Folder Subscriptions"), "</a></td>\n";
echo " </tr>\n";
echo "</table>\n";
html_draw_bottom();
示例5: form_input_text
} else {
echo " <li>", form_input_text("poll_questions[{$question_id}][options][0]", '', 45, 255), " ", form_button_html("delete_option[{$question_id}][0]", 'submit', 'button_image delete_option', sprintf("<img src=\"%s\" alt=\"\"/>", html_style_image('delete.png')), sprintf('title="%s"', gettext("Delete option"))), "</li>\n";
if (isset($_POST['add_option'][$question_id])) {
echo poll_get_option_html($question_id, 1);
}
}
echo " </ol>\n";
echo " </div>\n";
echo " </div>\n";
echo " ", form_button_html("add_option[{$question_id}]", 'submit', 'button_image add_option', sprintf("<img src=\"%s\" alt=\"\" /> %s", html_style_image('add.png'), gettext("Add new option"))), "\n";
echo " </fieldset>\n";
}
echo " </div>\n";
echo " <table width=\"100%\">\n";
echo " <tr>\n";
echo " <td>", form_button_html('add_question', 'submit', 'button_image add_question', sprintf("<img src=\"%s\" alt=\"\" /> %s", html_style_image('add.png'), gettext("Add new question"))), "</td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td align=\"left\"> </td>\n";
echo " </tr>\n";
echo " </table>\n";
echo " <table width=\"100%\">\n";
echo " <tr>\n";
echo " <td>\n";
echo " <table border=\"0\" cellspacing=\"0\" width=\"100%\">\n";
echo " <tr>\n";
echo " <td align=\"left\" class=\"subhead\">", gettext("Advanced Options"), "</td>\n";
if (($page_prefs & POLL_ADVANCED_DISPLAY) > 0) {
echo " <td class=\"subhead\" align=\"right\">", form_submit_image('hide.png', 'poll_advanced_toggle', 'hide', '', 'button_image toggle_button'), " </td>\n";
} else {
echo " <td class=\"subhead\" align=\"right\">", form_submit_image('show.png', 'poll_advanced_toggle', 'show', '', 'button_image toggle_button'), " </td>\n";
示例6: mb_substr
$user['SESSION_REFERER_FULL'] = $user['SESSION_REFERER'];
if (!($user['SESSION_REFERER'] = split_url($user['SESSION_REFERER']))) {
if (mb_strlen($user['SESSION_REFERER_FULL']) > 25) {
$user['SESSION_REFERER'] = mb_substr($user['SESSION_REFERER_FULL'], 0, 25);
$user['SESSION_REFERER'] .= "…";
}
}
if (referer_is_banned($user['SESSION_REFERER'])) {
echo " <tr>\n";
echo " <td align=\"left\" width=\"150\">", gettext("Session Referer"), "</td>\n";
echo " <td align=\"left\"><a href=\"admin_banned.php?webtag={$webtag}&unban_referer=", rawurlencode($user['SESSION_REFERER_FULL']), "&ret=", rawurlencode(get_request_uri(true, false)), "\" title=\"{$user['SESSION_REFERER_FULL']}\">{$user['SESSION_REFERER']}</a> <a href=\"{$user['SESSION_REFERER_FULL']}\" target=\"_blank\"><img src=\"", html_style_image('link.png'), "\" border=\"0\" align=\"top\" alt=\"", gettext("External Link"), "\" title=\"", gettext("External Link"), "\" /></a> (", gettext("Banned"), ")</td>\n";
echo " </tr>\n";
} else {
echo " <tr>\n";
echo " <td align=\"left\" width=\"150\">", gettext("Session Referer"), "</td>\n";
echo " <td align=\"left\"><a href=\"admin_banned.php?webtag={$webtag}&ban_referer=", rawurlencode($user['SESSION_REFERER_FULL']), "&ret=", rawurlencode(get_request_uri(true, false)), "\" title=\"{$user['SESSION_REFERER_FULL']}\">{$user['SESSION_REFERER']}</a> <a href=\"{$user['SESSION_REFERER_FULL']}\" target=\"_blank\"><img src=\"", html_style_image('link.png'), "\" border=\"0\" align=\"top\" alt=\"", gettext("External Link"), "\" title=\"", gettext("External Link"), "\" /></a></td>\n";
echo " </tr>\n";
}
} else {
echo " <tr>\n";
echo " <td align=\"left\" width=\"150\">", gettext("Session Referer"), "</td>\n";
echo " <td align=\"left\">", gettext("Unknown"), "</td>\n";
echo " </tr>\n";
}
echo " <tr>\n";
echo " <td align=\"left\" width=\"150\">", gettext("Last IP Address"), ":</td>\n";
if (ip_is_banned($user['IPADDRESS'])) {
echo " <td align=\"left\"><a href=\"admin_banned.php?webtag={$webtag}&unban_ipaddress={$user['IPADDRESS']}&ret=", rawurlencode(get_request_uri(true, false)), "\" target=\"_self\">{$user['IPADDRESS']}</a> (", gettext("Banned"), ")</td>\n";
} else {
if (strlen(trim($user['IPADDRESS'])) > 0) {
echo " <td align=\"left\"><a href=\"admin_banned.php?webtag={$webtag}&ban_ipaddress={$user['IPADDRESS']}&ret=", rawurlencode(get_request_uri(true, false)), "\" target=\"_self\">{$user['IPADDRESS']}</a></td>\n";
示例7: html_draw_top
}
}
if (isset($_GET['reset']) || isset($_POST['reset'])) {
$user_search = "";
}
if (isset($_GET['filter']) && is_numeric($_GET['filter'])) {
$filter = $_GET['filter'];
} else {
if (isset($_POST['filter']) && is_numeric($_POST['filter'])) {
$filter = $_POST['filter'];
} else {
$filter = ADMIN_USER_FILTER_NONE;
}
}
html_draw_top(sprintf('title=%s', gettext("Admin - Manage Users")), 'class=window_title');
echo "<h1>", gettext("Admin"), "<img src=\"", html_style_image('separator.png'), "\" alt=\"\" border=\"0\" />", gettext("Manage Users"), "</h1>\n";
if (session::check_perm(USER_PERM_ADMIN_TOOLS, 0, 0)) {
if (isset($_POST['select_action'])) {
if (isset($_POST['action']) && is_numeric($_POST['action'])) {
if ($_POST['action'] == ADMIN_USER_OPTION_END_SESSION) {
$valid = true;
if (isset($_POST['user_update']) && is_array($_POST['user_update'])) {
$kick_users = array_filter(array_keys($_POST['user_update']), 'is_numeric');
$kick_user_success_array = array();
foreach ($kick_users as $user_uid) {
if ($valid && ($user_logon = user_get_logon($user_uid))) {
if (!admin_session_end($user_uid)) {
$error_msg_array[] = sprintf(gettext("Failed to end session for user %s"), $user_logon);
$valid = false;
}
}
示例8: list
}
}
if (isset($_POST['move_down']) && is_array($_POST['move_down'])) {
list($fid) = array_keys($_POST['move_down']);
if (folder_move_down($fid)) {
header_redirect("admin_folders.php?webtag={$webtag}&page={$page}");
exit;
}
}
if (isset($_POST['move_up_disabled']) || isset($_POST['move_down_disabled'])) {
header_redirect("admin_folders.php?webtag={$webtag}&page={$page}");
exit;
}
html_draw_top(array('title' => gettext('Admin - Manage Folders'), 'class' => 'window_title', 'main_css' => 'admin.css'));
$folder_array = folder_get_all_by_page($page);
echo "<h1>", gettext("Admin"), html_style_image('separator'), gettext("Manage Folders"), "</h1>\n";
if (isset($error_msg_array) && sizeof($error_msg_array) > 0) {
html_display_error_array($error_msg_array, '86%', 'center');
} else {
if (isset($_GET['added'])) {
html_display_success_msg(gettext("Successfully added new folder"), '86%', 'center');
} else {
if (isset($_GET['edited'])) {
html_display_success_msg(gettext("Successfully edited folder"), '86%', 'center');
} else {
if (isset($_GET['deleted'])) {
html_display_success_msg(gettext("Successfully removed selected folders"), '86%', 'center');
} else {
if (sizeof($folder_array['folder_array']) < 1) {
html_display_warning_msg(gettext("No existing folders found. To add a folder click the 'Add New' button below."), '86%', 'center');
} else {
示例9: form_input_text
} else {
echo " <li>", form_input_text("poll_questions[{$question_id}][options][0]", null, 45, 255), " ", form_button_html("delete_option[{$question_id}][0]", 'submit', 'button_image delete_option', html_style_image('delete'), sprintf('title="%s"', gettext("Delete option"))), "</li>\n";
if (isset($_POST['add_option'][$question_id])) {
echo poll_get_option_html($question_id, 1);
}
}
echo " </ol>\n";
echo " </div>\n";
echo " </div>\n";
echo " ", form_button_html("add_option[{$question_id}]", 'submit', 'button_image add_option', html_style_image('add', gettext("Add new option")) . ' ' . gettext("Add new option")), "\n";
echo " </fieldset>\n";
}
echo " </div>\n";
echo " <table width=\"100%\">\n";
echo " <tr>\n";
echo " <td>", form_button_html('add_question', 'submit', 'button_image add_question', html_style_image('add', gettext("Add new question")) . ' ' . gettext("Add new question")), "</td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td align=\"left\"> </td>\n";
echo " </tr>\n";
echo " </table>\n";
echo " <table width=\"100%\">\n";
echo " <tr>\n";
echo " <td>\n";
echo " <table border=\"0\" cellspacing=\"0\" width=\"100%\">\n";
echo " <tr>\n";
echo " <td align=\"left\" class=\"subhead\">", gettext("Advanced Options"), "</td>\n";
if (($page_prefs & POLL_ADVANCED_DISPLAY) > 0) {
echo " <td class=\"subhead\" align=\"right\">", form_submit_image('hide', 'poll_advanced_toggle', 'hide', null, 'button_image toggle_button'), " </td>\n";
} else {
echo " <td class=\"subhead\" align=\"right\">", form_submit_image('show', 'poll_advanced_toggle', 'show', null, 'button_image toggle_button'), " </td>\n";
示例10: form_submit
echo " </td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td align=\"left\"> </td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td align=\"center\">", form_submit("editfeedsubmit", gettext("Save")), " ", form_submit("viewitems[{$psid}]", gettext("View items")), " ", form_submit("cancel", gettext("Back")), "</td>\n";
echo " </tr>\n";
echo " </table>\n";
echo " </form>\n";
echo "</div>\n";
html_draw_bottom();
} else {
html_draw_top(array('title' => gettext('Admin - Manage Profile Sections'), 'class' => 'window_title', 'main_css' => 'admin.css'));
$profile_sections = profile_sections_get_by_page($page);
echo "<h1>", gettext("Admin"), html_style_image('separator'), gettext("Manage Profile Sections"), "</h1>\n";
if (isset($error_msg_array) && sizeof($error_msg_array) > 0) {
html_display_error_array($error_msg_array, '86%', 'center');
} else {
if (isset($_GET['added'])) {
html_display_success_msg(gettext("Successfully added profile section"), '86%', 'center');
} else {
if (isset($_GET['edited'])) {
html_display_success_msg(gettext("Successfully edited profile section"), '86%', 'center');
} else {
if (isset($_GET['deleted'])) {
html_display_success_msg(gettext("Successfully removed selected profile sections"), '86%', 'center');
} else {
if (sizeof($profile_sections['profile_sections_array']) < 1) {
html_display_warning_msg(gettext("No existing profile sections found. To add a profile section click the 'Add New' button below."), '86%', 'center');
}
示例11: gettext
echo " <td align=\"left\" class=\"posthead\">\n";
echo " <table class=\"subhead\" width=\"100%\">\n";
echo " <tr>\n";
echo " <td align=\"left\">", gettext("Forthcoming Birthdays"), "</td>\n";
echo " </tr>\n";
echo " </table>\n";
echo " <table class=\"posthead\" width=\"100%\">\n";
echo " <tr>\n";
echo " <td align=\"center\">\n";
echo " <table class=\"posthead\" width=\"100%\">\n";
echo " <tr>\n";
echo " <td align=\"center\">\n";
echo " <table class=\"posthead\" border=\"0\" width=\"100%\" cellpadding=\"2\" cellspacing=\"0\">\n";
foreach ($user_birthdays_array as $user_birthday) {
echo " <tr>\n";
echo " <td valign=\"top\" align=\"center\" style=\"white-space: nowrap\" width=\"25\"><img src=\"", html_style_image('bullet.png'), "\" alt=\"", gettext("User"), "\" title=\"", gettext("User"), "\" /></td>\n";
echo " <td align=\"left\" valign=\"top\"><a href=\"user_profile.php?webtag={$webtag}&uid={$user_birthday['UID']}\" target=\"_blank\" class=\"popup 650x500\">", word_filter_add_ob_tags(format_user_name($user_birthday['LOGON'], $user_birthday['NICKNAME']), true), "</a></td>\n";
echo " <td align=\"right\" style=\"white-space: nowrap\" valign=\"top\"><span class=\"threadtime\">", format_birthday($user_birthday['DOB']), " </span></td>\n";
echo " </tr>\n";
}
echo " </table>\n";
echo " </td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td align=\"left\"> </td>\n";
echo " </tr>\n";
echo " </table>\n";
echo " </td>\n";
echo " </tr>\n";
echo " </table>\n";
echo " </td>\n";
示例12: gettext
exit;
} else {
$error_msg_array[] = gettext("Relationship updated failed!");
$valid = false;
}
}
if (isset($_POST['reset_nickname_x']) || isset($_POST['reset_nickname_y'])) {
$peer_nickname = user_get_nickname($peer_uid);
$peer_relationship = user_get_peer_relationship($_SESSION['UID'], $peer_uid);
user_rel_update($_SESSION['UID'], $peer_uid, $peer_relationship, $peer_nickname);
}
$peer_user_display = format_user_name($user_peer['LOGON'], $user_peer['NICKNAME']);
html_draw_top(array('title' => sprintf(gettext('User Relationship - %s'), $peer_user_display), 'class' => 'window_title'));
$peer_relationship = user_get_relationship($_SESSION['UID'], $peer_uid);
$peer_nickname = user_get_peer_nickname($_SESSION['UID'], $peer_uid);
echo "<h1>", gettext("User Relationship"), html_style_image('separator'), "<a href=\"user_profile.php?webtag={$webtag}&uid={$peer_uid}\" target=\"_blank\" class=\"popup 650x500\">", word_filter_add_ob_tags($peer_user_display, true), "</a></h1>\n";
if (isset($error_msg_array) && sizeof($error_msg_array) > 0) {
html_display_error_array($error_msg_array, '600', 'left');
} else {
if ($peer_perms & USER_PERM_FOLDER_MODERATE && !session::check_perm(USER_PERM_CAN_IGNORE_ADMIN, 0)) {
html_display_warning_msg(gettext("You cannot ignore this user, as they are a moderator."), '600', 'left');
}
}
if (isset($_POST['preview_signature'])) {
if (($t_sig_content = user_get_sig($peer_uid)) !== false) {
$preview_message['RECIPIENTS'] = array();
$preview_from_user = user_get($peer_uid);
$preview_message['FROM_LOGON'] = $preview_from_user['LOGON'];
$preview_message['FROM_NICKNAME'] = $preview_from_user['NICKNAME'];
$preview_message['FROM_UID'] = $preview_from_user['UID'];
$preview_message['CONTENT'] = gettext("Signature Preview");
示例13: form_submit
echo " </table>\n";
echo " </td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td align=\"left\"> </td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td align=\"center\">", form_submit("add", gettext("Add")), " ", form_submit("cancel", gettext("Cancel")), "</td>\n";
echo " </tr>\n";
echo " </table>\n";
echo "</form>\n";
html_draw_bottom();
} else {
if ($mode == LINKS_ADD_FOLDER) {
html_draw_top(array('title' => gettext("Links - Add a New Folder"), 'class' => 'window_title'));
echo "<h1>", gettext("Links"), html_style_image('separator'), gettext("Add a new folder"), "</h1>\n";
echo "<p>", gettext("Adding new folder under"), ": <b>" . links_get_folder_path_links($fid, $folders, false) . "</b></p>\n";
if (isset($error_msg_array) && sizeof($error_msg_array) > 0) {
html_display_error_array($error_msg_array, '500', 'left');
}
echo "<form accept-charset=\"utf-8\" name=\"folderadd\" action=\"links_add.php\" method=\"post\" target=\"_self\">\n";
echo " ", form_csrf_token_field(), "\n";
echo " ", form_input_hidden('webtag', htmlentities_array($webtag)), "\n";
echo " ", form_input_hidden("fid", htmlentities_array($fid)) . "\n";
echo " ", form_input_hidden("mode", LINKS_ADD_FOLDER) . "\n";
echo " <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"500\">\n";
echo " <tr>\n";
echo " <td align=\"left\">\n";
echo " <table class=\"box\" width=\"100%\">\n";
echo " <tr>\n";
echo " <td align=\"left\" class=\"posthead\">\n";
示例14: gettext
echo " <td align=\"left\" class=\"posthead\">\n";
echo " <table class=\"posthead\" width=\"100%\">\n";
echo " <tr>\n";
echo " <td align=\"left\" colspan=\"3\" class=\"subhead\">", gettext("Upload a file for attachment to the message"), "</td>\n";
echo " </tr>\n";
echo " </table>\n";
echo " <table class=\"posthead\" width=\"100%\">\n";
echo " <tr>\n";
echo " <td align=\"center\">\n";
echo " <table class=\"posthead\" width=\"95%\">\n";
echo " <tr>\n";
echo " <td align=\"left\" width=\"220\" class=\"postbody\" valign=\"top\">", gettext("Enter filename(s) to upload"), " :</td>\n";
echo " <td align=\"left\" class=\"postbody\">\n";
echo " ", form_input_file("userfile[]", "", 30, 0), "\n";
echo " <div class=\"upload_fields\">\n";
echo " <img src=\"", html_style_image('attach.png'), "\" border=\"0\" alt=\"", gettext("Attachment"), "\" title=\"", gettext("Attachment"), "\" />";
echo " <a class=\"add_upload_field\">", gettext("Upload another attachment"), "</a>\n";
echo " </div>\n";
echo " </td>\n";
echo " <td align=\"left\" class=\"postbody\" valign=\"top\">", form_submit("upload", gettext("Upload")), "</td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td align=\"left\" width=\"220\"> </td>\n";
echo " <td align=\"left\" colspan=\"2\" class=\"smalltext\"><div id=\"upload_fields_link\"></div></td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td align=\"left\" colspan=\"3\"> </td>\n";
echo " </tr>\n";
echo " </table>\n";
echo " </td>\n";
echo " </tr>\n";
示例15: foreach
foreach ($_POST['remove_user'] as $uid) {
if (perm_user_in_group($uid, $gid)) {
perm_remove_user_from_group($uid, $gid);
if (($user_logon = user_get_logon($uid)) && ($group_name = perm_get_group_name($gid))) {
admin_add_log_entry(REMOVE_USER_FROM_GROUP, array($user_logon, $group_name));
}
}
}
}
}
if (!($group = perm_get_group($gid))) {
html_draw_error(gettext("Supplied GID is not a user group"), 'admin_user_groups.php', 'get', array('back' => gettext("Back")));
}
html_draw_top(array('title' => sprintf(gettext('Admin - Manage User Groups - %s - Add/Remove Users'), $group['GROUP_NAME']), 'class' => 'window_title', 'main_css' => 'admin.css'));
$group_users_array = perm_group_get_users($gid, $start_main);
echo "<h1>", gettext("Admin"), html_style_image('separator'), gettext("Manage User Groups"), html_style_image('separator'), "{$group['GROUP_NAME']}", html_style_image('separator'), "", gettext("Add/Remove Users"), "</h1>\n";
if (isset($_GET['added'])) {
html_display_success_msg(gettext("Successfully added group. Add users to this group by searching for them below."), '800', 'center');
} else {
if (sizeof($group_users_array['user_array']) < 1) {
html_display_warning_msg(gettext("There are no users in this group. Add users to this group by searching for them below."), '800', 'center');
}
}
echo "<br />\n";
echo "<div align=\"center\">\n";
echo "<form accept-charset=\"utf-8\" name=\"f_folders\" action=\"admin_user_groups_edit_users.php\" method=\"post\">\n";
echo " ", form_csrf_token_field(), "\n";
echo " ", form_input_hidden('webtag', htmlentities_array($webtag)), "\n";
echo " ", form_input_hidden('gid', htmlentities_array($gid)), "\n";
echo " ", form_input_hidden("main_page", htmlentities_array($main_page)), "\n";
echo " ", form_input_hidden("search_page", htmlentities_array($search_page)), "\n";