本文整理匯總了PHP中print_table_footer函數的典型用法代碼示例。如果您正苦於以下問題:PHP print_table_footer函數的具體用法?PHP print_table_footer怎麽用?PHP print_table_footer使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了print_table_footer函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: print_diagnostic_test_result
function print_diagnostic_test_result($status, $reasons = array(), $exit = 1)
{
// $status values = -1: indeterminate; 0: failed; 1: passed
// $reasons a list of reasons why the test passed/failed
// $exit values = 0: continue execution; 1: stop here
global $vbphrase;
print_form_header('', '');
print_table_header($vbphrase['results']);
if (is_array($reasons))
{
foreach ($reasons AS $reason)
{
print_description_row($reason);
}
}
else if (!empty($reasons))
{
print_description_row($reasons);
}
print_table_footer();
if ($exit == 1)
{
print_cp_footer();
}
}
示例2: rpm_print_stop_back
function rpm_print_stop_back($text = 'error')
{
global $vbphrase;
if (!defined('DONE_CPHEADER')) {
print_cp_header($vbphrase['vbulletin_message']);
}
echo '<p> </p><p> </p>';
print_form_header('', '', 0, 1, 'messageform', '65%');
print_table_header($vbphrase['vbulletin_message']);
print_description_row("<blockquote><br />{$text}<br /><br /></blockquote>");
print_table_footer(2, construct_button_code($vbphrase['go_back'], 'javascript:history.back(1)'));
rpm_print_footer();
print_cp_footer();
}
示例3: fetch_seo_url
//in any of the tables in our result set) and we'll catch it on redirect.
//Plus the admincp isn't a big SEO issue -- we just want to get the links
//on the classes so that they work and centralize logic for future changes.
$postlink = fetch_seo_url('thread|bburl', $comment, array('p' => $comment['postid'])) . "#post{$comment['postid']}";
}
$cell = array();
$cell[] = "<a href=\"user.php?" . $vbulletin->session->vars['sessionurl'] . "do=edit&u={$comment['whoadded']}\"><b>{$comment['leftby_username']}</b></a>";
$cell[] = "<a href=\"user.php?" . $vbulletin->session->vars['sessionurl'] . "do=edit&u={$comment['userid']}\"><b>{$comment['leftfor_username']}</b></a>";
$cell[] = '<span class="smallfont">' . vbdate($vbulletin->options['logdateformat'], $comment['dateline']) . '</span>';
$cell[] = $comment['reputation'];
$cell[] = !empty($comment['reason']) ? '<span class="smallfont">' . htmlspecialchars_uni($comment['reason']) . '</span>' : '';
$cell[] = $postlink ? construct_link_code(htmlspecialchars_uni($vbphrase['post']), $postlink, true, '', true) : ' ';
$cell[] = construct_link_code($vbphrase['edit'], "adminreputation.php?" . $vbulletin->session->vars['sessionurl'] . "do=editreputation&reputationid={$comment['reputationid']}", false, '', true) . ' ' . construct_link_code($vbphrase['delete'], "adminreputation.php?" . $vbulletin->session->vars['sessionurl'] . "do=deletereputation&reputationid={$comment['reputationid']}", false, '', true);
print_cells_row($cell);
}
print_table_footer(7, "{$firstpage} {$prevpage} {$nextpage} {$lastpage}");
}
// *************************************************************************************************
if ($_REQUEST['do'] == 'editreputation') {
$vbulletin->input->clean_array_gpc('r', array('reputationid' => TYPE_INT));
if ($repinfo = $db->query_first("\n\t\tSELECT rep.*, whoadded.username as whoadded_username, user.username, thread.title, thread.threadid\n\t\tFROM " . TABLE_PREFIX . "reputation AS rep\n\t\tLEFT JOIN " . TABLE_PREFIX . "user AS user ON (rep.userid = user.userid)\n\t\tLEFT JOIN " . TABLE_PREFIX . "user AS whoadded ON (rep.whoadded = whoadded.userid)\n\t\tLEFT JOIN " . TABLE_PREFIX . "post AS post ON (rep.postid = post.postid)\n\t\tLEFT JOIN " . TABLE_PREFIX . "thread AS thread ON (thread.threadid = post.threadid)\n\t\tWHERE reputationid = " . $vbulletin->GPC['reputationid'])) {
print_form_header('adminreputation', 'doeditreputation');
print_table_header($vbphrase['edit_reputation']);
print_label_row($vbphrase['thread'], $repinfo['title'] ? "<a href=\"" . fetch_seo_url('thread|bburl', $repinfo, array('p' => $repinfo['postid'])) . "#post{$repinfo['postid']}" . "\">{$repinfo['title']}</a>" : '');
print_label_row($vbphrase['leftby'], $repinfo['whoadded_username']);
print_label_row($vbphrase['leftfor'], $repinfo['username']);
print_input_row($vbphrase['comment'], 'reputation[reason]', $repinfo['reason']);
print_input_row($vbphrase['reputation'], 'reputation[reputation]', $repinfo['reputation'], 0, 5);
construct_hidden_code('reputationid', $vbulletin->GPC['reputationid']);
construct_hidden_code('oldreputation', $repinfo[reputation]);
construct_hidden_code('userid', $repinfo['userid']);
示例4: print_cp_message
/**
* Halts execution and shows the specified message
*
* @param string Message to display
* @param mixed If specified, a redirect will be performed to the URL in this parameter
* @param integer If redirect is specified, this is the time in seconds to delay before redirect
* @param string If specified, will provide a specific URL for "Go Back". If empty, no button will be displayed!
* @param bool If true along with redirect, 'CONTINUE' button will be used instead of automatic redirect
*/
function print_cp_message($text = '', $redirect = NULL, $delay = 1, $backurl = NULL, $continue = false)
{
global $vbulletin, $vbphrase;
if ($redirect and $vbulletin->session->vars['sessionurl']) {
if (strpos($redirect, '?') === false) {
$redirect .= '?';
}
$redirect .= '&' . $vbulletin->session->vars['sessionurl'];
}
if (!defined('DONE_CPHEADER')) {
print_cp_header($vbphrase['vbulletin_message']);
}
echo '<p> </p><p> </p>';
print_form_header('', '', 0, 1, 'messageform', '65%');
print_table_header($vbphrase['vbulletin_message']);
print_description_row("<blockquote><br />{$text}<br /><br /></blockquote>");
if ($redirect and $redirect !== NULL) {
// redirect to the new page
if ($continue) {
$continueurl = str_replace('&', '&', $redirect);
print_table_footer(2, construct_button_code($vbphrase['continue'], create_full_url($continueurl)));
} else {
print_table_footer();
$redirect_click = create_full_url($redirect);
$redirect_click = str_replace('"', '', $redirect_click);
echo '<p align="center" class="smallfont">' . construct_phrase($vbphrase['if_you_are_not_automatically_redirected_click_here_x'], $redirect_click) . "</p>\n";
print_cp_redirect($redirect, $delay);
}
} else {
// end the table and halt
if ($backurl === NULL) {
$backurl = 'javascript:history.back(1)';
}
if (strpos($backurl, 'history.back(') !== false) {
//if we are attempting to run a history.back(1), check we have a history to go back to, otherwise attempt to close the window.
$back_button = '
<input type="button" id="backbutton" class="button" value="' . $vbphrase['go_back'] . '" title="" tabindex="1" onclick="if (history.length) { history.back(1); } else { self.close(); }"/>
<script type="text/javascript">
<!--
if (history.length < 1 || ((is_saf || is_moz) && history.length <= 1)) // safari + gecko start at 1
{
document.getElementById("backbutton").parentNode.removeChild(document.getElementById("backbutton"));
}
//-->
</script>';
} else {
if ($backurl !== '') {
// regular window.location=url call
$backurl = create_full_url($backurl);
$backurl = str_replace(array('"', "'"), '', $backurl);
$back_button = '<input type="button" class="button" value="' . $vbphrase['go_back'] . '" title="" tabindex="1" onclick="window.location=\'' . $backurl . '\';"/>';
} else {
$back_button = '';
}
}
print_table_footer(2, $back_button);
}
// and now terminate the script
print_cp_footer();
}
示例5: fetch_phrasetypes_array
$phrasetypes = fetch_phrasetypes_array();
foreach($phrasetypes AS $fieldname => $type)
{
$typeoptions["$fieldname"] = construct_phrase($vbphrase['x_phrases'], $type['title']);
}
*/
print_form_header('language', 'add');
construct_hidden_code('goto', "language.php?" . $vbulletin->session->vars['sessionurl']);
print_table_header($vbphrase['language_manager'], 4);
print_cells_row(array($vbphrase['language'], '', '', $vbphrase['default']), 1);
if ($vbulletin->debug) {
print_language_row(array('languageid' => -1, 'title' => "<i>{$vbphrase['master_language']}</i>"));
}
$languages = fetch_languages_array();
foreach ($languages as $_languageid => $language) {
print_language_row($language);
}
print_description_row(construct_link_code($vbphrase['search_phrases'], "phrase.php?" . $vbulletin->session->vars['sessionurl'] . "do=search") . construct_link_code($vbphrase['view_quickref'], "javascript:js_open_phrase_ref(0,0);") . construct_link_code($vbphrase['rebuild_all_languages'], "language.php?" . $vbulletin->session->vars['sessionurl'] . "do=rebuild&goto=language.php?" . $vbulletin->session->vars['sessionurl']), 0, 4, 'thead" style="text-align:center; font-weight:normal');
print_table_footer(4, '
<input type="submit" class="button" value="' . $vbphrase['add_new_language'] . '" tabindex="1" />
<input type="button" class="button" value="' . $vbphrase['download_upload_language'] . '" tabindex="1" onclick="window.location=\'language.php?do=files\';" />
');
print_phrase_ref_popup_javascript();
}
print_cp_footer();
/*======================================================================*\
|| ####################################################################
|| # Downloaded: 12:56, Sat Oct 11th 2008
|| # CVS: $RCSfile$ - $Revision: 26900 $
|| ####################################################################
\*======================================================================*/
示例6: print_reminder
function print_reminder($event)
{
global $vbulletin, $vbphrase;
print_form_header('reminder', 'redirecter');
construct_hidden_code('reminderid', $event['reminderid']);
print_table_header(construct_phrase($vbphrase['adminfunctions_reminder_showevent_adminreminderdue'], vbdate($vbphrase['adminfunctions_reminder_showevent_date'], $event['duedate']), $event[reminderid]));
print_label_row($vbphrase['adminfunctions_reminder_showevent_postedby'], "<a href=\"../member.php?" . $vbulletin->session->vars['sessionurl'] . "u={$event['userid']}\" target=\"_blank\">{$event['username']}</a>");
print_label_row($vbphrase['title'], $event['title']);
if (!empty($event['text'])) {
print_label_row($vbphrase['adminfunctions_reminder_showevent_extrainfo'], nl2br(htmlspecialchars_uni($event['text'])));
}
print_label_row($vbphrase['status'], fetch_reminder_status($event));
print_table_footer(2, '
<input type="button" class="button" value="' . $vbphrase['completed'] . '" onclick="js_confirm_completion(' . $event['reminderid'] . ')" tabindex="1" />
<input type="submit" class="button" name="dodelete" value="' . $vbphrase['delete'] . '" tabindex="1" />
<input type="submit" class="button" name="doedit" value="' . construct_phrase($vbphrase['edit_x'], $vbphrase['event']) . '" tabindex="1" />
<input type="button" class="button" value="' . $vbphrase['adminfunctions_reminder_showevent_newevent'] . '" tabindex="1" onclick="' . "window.location='reminder.php?" . $vbulletin->session->vars['sessionurl'] . "do=add&year=" . vbdate('Y', $event['duedate']) . "&month=" . vbdate('n', $event['duedate']) . "&add_day=" . vbdate('j', $event['duedate']) . "';" . '" />
');
}
示例7: displaytags
//.........這裏部分代碼省略.........
$vbulletin->GPC['sort']);
$sort_links[''] = '<a href="tag.php?do=tags">' . $vbphrase['display_alphabetically'] . '</a>';
$sort_links['dateline'] = '<a href="tag.php?do=tags&sort=dateline">' . $vbphrase['display_newest'] . '</a>';
$sort_links['alphaall'] = '<a href="tag.php?do=tags&sort=alphaall">' . $vbphrase['display_alphabetically_all'] . '</a>';
//dont show the current sort
unset($sort_links[$vbulletin->GPC['sort']]);
print_description_row(
"<div style=\"float: " . vB_Template_Runtime::fetchStyleVar('left') . "\">" . implode(" " , $sort_links) . "</div>$pagenav",
false, 3, 'thead', 'right'
);
// build columns
while ($tag = $db->fetch_array($tags))
{
$columnid = floor($counter++ / $max_per_column);
$columns["$columnid"][] = tagcp_format_tag_entry($tag, $synonyms_in_list);
}
// make column values printable
$cells = array();
for ($i = 0; $i < $column_count; $i++)
{
if ($columns["$i"])
{
$cells[] = implode("<br />\n", $columns["$i"]);
}
else
{
$cells[] = ' ';
}
}
print_column_style_code(array(
'width: 33%',
'width: 33%',
'width: 34%'
));
print_cells_row($cells, false, false, -3);
?>
<tr>
<td colspan="<?php echo $column_count; ?>" align="center" class="tfoot">
<select id="select_tags" name="do">
<option value="tagmerge" id="select_tags_merge"><?php echo $vbphrase['merge_selected_synonym']; ?></option>
<option value="tagdopromote" id="select_tags_delete"><?php echo $vbphrase['promote_synonyms_selected']; ?></option>
<option value="tagkill" id="select_tags_delete"><?php echo $vbphrase['delete_selected']; ?></option>
<optgroup label="____________________">
<option value="tagclear"><?php echo $vbphrase[deselect_all_tags]; ?></option>
</optgroup>
</select>
<input type="hidden" name="page" value="<?php echo $vbulletin->GPC['pagenumber']; ?>" />
<input type="hidden" name="sort" value="<?php echo $vbulletin->GPC['sort']; ?>" />
<input type="submit" value="<?php echo $vbphrase[go]; ?>" id="tag_inlinego" class="button" />
</td>
</tr>
</table>
<script type="text/javascript" src="../clientscript/vbulletin_inlinemod.js?v=<?php echo $vboptions[simpleversion]; ?>"></script>
<script type="text/javascript">
<!--
inlineMod_tags = new vB_Inline_Mod('inlineMod_tags', 'tag', 'tagsform', '<?php echo $vbphrase[go_x]; ?>', 'vbulletin_inline', 'tag');
/* vBmenu.register("inlinemodsel"); */
//-->
function js_show_synlist(trigger, listid)
{
list = document.getElementById(listid);
list.style.display = 'block';
trigger.onclick = function() {return js_hide_synlist(trigger, listid)};
trigger.getElementsByTagName('img')[0].src = '../cpstyles/<?php echo $vbulletin->options['cpstylefolder'] ?>/collapse_generic.gif';
return false;
}
function js_hide_synlist(trigger, listid)
{
list = document.getElementById(listid);
list.style.display = 'none';
trigger.onclick = function() {return js_show_synlist(trigger, listid)};
trigger.getElementsByTagName('img')[0].src = '../cpstyles/<?php echo $vbulletin->options['cpstylefolder'] ?>/collapse_generic_collapsed.gif';
return false;
}
</script>
</form>
<?php
}
else
{
print_description_row($vbphrase['no_tags_defined'], false, 3, '', 'center');
print_table_footer();
}
construct_hidden_code('page', $vbulletin->GPC['pagenumber']);
construct_hidden_code('sort', $vbulletin->GPC['sort']);
print_form_header('tag', 'taginsert');
print_input_row($vbphrase['add_tag'], 'tagtext');
print_submit_row();
}
示例8: print_cells_row
$headings[] = "<a href=\"javascript:js_open_phrase_ref({$language['languageid']},'{$_fieldname}');\" title=\"" . $vbphrase['view_quickref'] . ": {$language['title']}\">{$language['title']}</a>";
}
$headings[] = '';
print_cells_row($headings, 0, 'thead');
ksort($varnames);
foreach ($varnames as $varname => $phrase) {
$cell = array(construct_wrappable_varname($varname, 'font-weight:bold;', 'smallfont', 'span'));
if (isset($phrase['-1'])) {
$phraseid = $phrase['-1'];
$custom = 0;
} else {
$phraseid = $phrase['0'];
$custom = 1;
}
foreach (array_keys($languages) as $_languageid) {
$cell[] = "<img src=\"../cpstyles/" . $vbulletin->options['cpstylefolder'] . "/cp_tick_" . iif(isset($phrase["{$_languageid}"]), 'yes', 'no') . ".gif\" alt=\"\" />";
}
$cell[] = '<span class="smallfont">' . construct_link_code(fetch_tag_wrap($vbphrase['edit'], 'span class="col-i"', $custom == 1), "phrase.php?" . $vbulletin->session->vars['sessionurl'] . "do=edit&phraseid={$phraseid}&page=" . $vbulletin->GPC['pagenumber'] . "&pp=" . $vbulletin->GPC['perpage'] . "&fieldname=" . $vbulletin->GPC['fieldname']) . iif($custom or $vbulletin->debug, construct_link_code(fetch_tag_wrap($vbphrase['delete'], 'span class="col-i"', $custom == 1), "phrase.php?" . $vbulletin->session->vars['sessionurl'] . "do=delete&phraseid={$phraseid}&page=" . $vbulletin->GPC['pagenumber'] . "&pp=" . $vbulletin->GPC['perpage'] . "&fieldname=" . $vbulletin->GPC['fieldname']), '') . '</span>';
print_cells_row($cell, 0, 0, 0, 'top', 0);
}
}
print_table_footer($colspan, "\n\t\t<input type=\"button\" class=\"button\" value=\"" . $vbphrase['search_in_phrases'] . "\" tabindex=\"1\" onclick=\"window.location='phrase.php?" . $vbulletin->session->vars['sessionurl'] . "&do=search';\" />\n\t\t \n\t\t<input type=\"button\" class=\"button\" value=\"" . $vbphrase['add_new_phrase'] . "\" tabindex=\"1\" onclick=\"window.location='phrase.php?" . $vbulletin->session->vars['sessionurl'] . "do=add&fieldname=" . $vbulletin->GPC['fieldname'] . "&page=" . $vbulletin->GPC['pagenumber'] . "&pp=" . $vbulletin->GPC['perpage'] . "';\" />\n\t\t \n\t\t<input type=\"button\" class=\"button\" value=\"" . $vbphrase['find_orphan_phrases'] . "\" tabindex=\"1\" onclick=\"window.location='phrase.php?" . $vbulletin->session->vars['sessionurl'] . "do=findorphans';\" />\n\t");
}
// #############################################################################
print_cp_footer();
/*======================================================================*\
|| ####################################################################
|| # Downloaded: 09:39, Wed Nov 5th 2008
|| # CVS: $RCSfile$ - $Revision: 27619 $
|| ####################################################################
\*======================================================================*/
示例9: print_table_footer
print_table_footer(4, "<input type=\"submit\" class=\"button\" tabindex=\"1\" value=\"" . $vbphrase['save_display_order'] . "\" accesskey=\"s\" />" . construct_button_code($vbphrase['add_new_forum_gforum'], "forum.php?" . vB::getCurrentSession()->get('sessionurl') . "do=add"));
if ($vbulletin->options['cp_collapse_forums']) {
echo '<p class="smallfont" align="center">' . construct_link_code($vbphrase['expand_all'], "forum.php?" . vB::getCurrentSession()->get('sessionurl') . "do=modify&expandid=-2") . '</p>';
}
} else {
print_form_header('forum', 'doorder');
print_table_header($vbphrase['channel_manager_gforum'], 2);
print_cells_row(array($vbphrase['channel'], $vbphrase['controls']), 1, 'tcat');
$cell = array();
$select = '<select name="nodeid" id="sel_foruid" tabindex="1" class="bginput">';
$select .= construct_channel_chooser($vbulletin->GPC['nodeid'], true);
$select .= "</select>\n";
$cell[] = $select;
$cell[] = "\n\t<select name=\"controls\" class=\"bginput\">\n" . construct_select_options($channeloptions) . "\t</select><input type=\"button\" class=\"button\" value=\"" . $vbphrase['go'] . "\" onclick=\"js_channel_jump(js_returnid());\" />\n\t";
print_cells_row($cell);
print_table_footer(2, construct_button_code($vbphrase['add_new_forum_gforum'], "forum.php?" . vB::getCurrentSession()->get('sessionurl') . "do=add"));
}
}
// ###################### Start update #######################
if ($_REQUEST['do'] == 'view') {
$vbulletin->input->clean_array_gpc('r', array('nodeid' => vB_Cleaner::TYPE_UINT));
$channel = vB_Api::instanceInternal('node')->getNode($vbulletin->GPC['nodeid']);
if (empty($channel)) {
print_stop_message2('invalid_channel_specified');
}
$path = vB_Api::instanceInternal('route')->getUrl($channel['routeid'], array(), array());
$baseurl = vB::getDatastore()->getOption('frontendurl');
print_cp_redirect($baseurl . $path);
}
print_cp_footer();
/*=========================================================================*\
示例10: printUpload
function printUpload($sessionid)
{
global $vbphrase;
print_cp_header($vbphrase['verticalresponse']);
require_once DIR . '/includes/adminfunctions_user.php';
require_once DIR . '/includes/adminfunctions_profilefield.php';
print_form_header('verticalresponse', 'confirm_upload', false, true, 'verticalresponse');
print_table_header($vbphrase['upload_list'], 2);
//get the current lists
if ($sessionid) {
$client = new vB_VerticalResponse();
if (!$client->checkStatus($sessionid)) {
printLogin($vbphrase['vr_login_first_desc']);
return;
}
$lists = $client->enumerateLists($sessionid);
}
if ($lists) {
$current_lists = '';
foreach ($lists as $list) {
if ($list->status == 'active') {
$current_lists .= "<option value=\"" . $list->id . "\">" . htmlspecialchars_uni($list->name) . '- ' . '- ' . $list->size . "</option>" . "\n";
}
}
if (!empty($current_lists)) {
$current_lists = "<option value=\"\"> </option>" . "\n" . $current_lists;
print_cells_row(array($vbphrase['select_vr_list_desc'], "<select id=\"listid\" name=\"listid\"/>{$current_lists}</select>"));
}
}
print_cells_row(array($vbphrase['verticalresponse_list_desc'], "<input id=\"listname\" type=\"text\" name=\"listname\"/ value=\"\">"));
print_cells_row(array($vbphrase['vr_dopercycle_desc'], "<input id=\"do_percycle\" type=\"text\" name=\"do_percycle\"/ value=\"1000\">"));
print_table_break();
print_user_search_rows(true);
print_submit_row($vbphrase['submit']);
print_table_footer();
}
示例11: iif
for ($i = 1; $i <= $totalpages; $i++) {
$pagebuttons .= "\t<input type=\"submit\" class=\"button\" name=\"pagesub\" value=\" {$i} \"" . iif($i == $page, ' disabled="disabled"') . " tabindex=\"1\" />\n";
}
$pagebuttons .= "\t ";
} else {
$pagebuttons = '';
}
if ($vbulletin->GPC['massmove']) {
$categories = '<option value="0"></option>';
$categories .= construct_select_options(fetch_image_categories_array($catid));
$categories = '<select name="selectall" class="bginput" onchange="js_select_all(this.form);">' . $categories . '</select>';
$buttontext = $vbphrase['mass_move'];
} else {
$buttontext = $vbphrase['save_display_order'];
}
print_table_footer($img_per_row, "\n\t{$categories} <input type=\"submit\" class=\"button\" name=\"doorder\" value=\"" . $buttontext . "\" tabindex=\"1\" />\n\t {$pagebuttons}\n\t" . $vbphrase['per_page'] . "\n\t<input type=\"text\" name=\"perpage\" value=\"" . $vbulletin->GPC['perpage'] . "\" size=\"3\" tabindex=\"1\" />\n\t<input type=\"submit\" class=\"button\" value=\"" . $vbphrase['go'] . "\" tabindex=\"1\" />\n\t");
echo "<p align=\"center\">" . construct_link_code($vbphrase["add_{$itemtype}"], "image.php?" . $vbulletin->session->vars['sessionurl'] . "do=add&table=" . $vbulletin->GPC['table']) . construct_link_code($vbphrase["edit_{$itemtype}_categories"], "image.php?" . $vbulletin->session->vars['sessionurl'] . "do=modify&table=" . $vbulletin->GPC['table']) . "</p>";
}
// ###################### Start Modify Categories #######################
if ($_REQUEST['do'] == 'modify') {
$categories = $db->query_read("\n\t\tSELECT imagecategory.*, COUNT(" . $vbulletin->GPC['table'] . ".{$itemid}) AS items\n\t\tFROM " . TABLE_PREFIX . "imagecategory AS imagecategory\n\t\tLEFT JOIN " . TABLE_PREFIX . $vbulletin->GPC['table'] . " AS " . $vbulletin->GPC['table'] . " USING(imagecategoryid)\n\t\tWHERE imagetype = {$catid}\n\t\tGROUP BY imagecategoryid\n\t\tORDER BY displayorder\n\t");
if ($db->num_rows($categories)) {
print_form_header('image', 'docategorydisplayorder');
construct_hidden_code('table', $vbulletin->GPC['table']);
print_table_header($vbphrase["edit_{$itemtype}_categories"], 4);
print_cells_row(array($vbphrase['title'], $vbphrase['contains'], $vbphrase['display_order'], $vbphrase['controls']), 1);
while ($category = $db->fetch_array($categories)) {
$cell = array();
$cell[] = "<a href=\"image.php?" . $vbulletin->session->vars['sessionurl'] . "do=viewimages&table=" . $vbulletin->GPC['table'] . "&imagecategoryid={$category['imagecategoryid']}\">{$category['title']}</a>";
$cell[] = vb_number_format($category['items']) . ' ' . $vbphrase["{$itemtypeplural}"];
$cell[] = "<input type=\"text\" class=\"bginput\" name=\"order[{$category['imagecategoryid']}]\" value=\"{$category['displayorder']}\" tabindex=\"1\" size=\"3\" />";
示例12: print_cp_header
print_cp_header($vbphrase['market_maintenance']);
print_form_header('market', '');
print_table_header($vbphrase['market_error_checker'], 4);
echo '<tr>
<td class="thead" width="15%">' . $vbphrase['market_version'] . '</td>
<td class="thead" width="5%" align="center"><img src="' . $icon1 . '"></td>
<td class="thead" width="15%">' . $currentVersion . ' / ' . $latestVersion . '</td>
<td class="thead" width="65%" align="left">' . $text1 . '</td>
</tr>';
echo '<tr>
<td class="thead">' . $vbphrase['market_point_field'] . '</td>
<td class="thead" align="center"><img src="' . $icon2 . '"></td>
<td class="thead">' . $vbulletin->options['market_point_name'] . '</td>
<td class="thead" align="left">' . $text2 . '</td>
</tr>';
print_table_footer(4, "", 0);
// Update Purchase Count
print_form_header('market', 'updatecount');
print_table_header($vbphrase['market_transaction_count'], 2);
print_description_row($vbphrase['market_transaction_count_desc'], 0, 2);
print_input_row($vbphrase['market_user_cycle'], 'user_cycle', 50);
print_submit_row($vbphrase['update'], $vbphrase['reset'], 2);
// Update Refund Count
print_form_header('market', 'updaterefund');
print_table_header($vbphrase['market_refund_count'], 2);
print_description_row($vbphrase['market_transaction_refund_desc'], 0, 2);
print_input_row($vbphrase['market_user_cycle'], 'user_cycle', 50);
print_submit_row($vbphrase['update'], $vbphrase['reset'], 2);
// Update Use Titles
print_form_header('market', 'updateusertitle');
print_table_header($vbphrase['market_usertitle_fix'], 2);
示例13: displaytags
//.........這裏部分代碼省略.........
<td colspan="<?php
echo $column_count;
?>
" align="center" class="tfoot">
<select id="select_tags" name="do">
<option value="tagmerge" id="select_tags_merge"><?php
echo $vbphrase['merge_selected_synonym'];
?>
</option>
<option value="tagdopromote" id="select_tags_delete"><?php
echo $vbphrase['promote_synonyms_selected'];
?>
</option>
<option value="tagkill" id="select_tags_delete"><?php
echo $vbphrase['delete_selected'];
?>
</option>
<optgroup label="____________________">
<option value="tagclear"><?php
echo $vbphrase[deselect_all_tags];
?>
</option>
</optgroup>
</select>
<input type="hidden" name="page" value="<?php
echo $vbulletin->GPC['pagenumber'];
?>
" />
<input type="hidden" name="sort" value="<?php
echo $vbulletin->GPC['sort'];
?>
" />
<input type="submit" value="<?php
echo $vbphrase[go];
?>
" id="tag_inlinego" class="button" />
</td>
</tr>
<?php
echo '</table>';
?>
<script type="text/javascript" src="<?php
echo $vboptions['bburl'];
?>
/clientscript/vbulletin_inlinemod.js?v=<?php
echo $vboptions['simpleversion'];
?>
"></script>
<script type="text/javascript">
<!--
inlineMod_tags = new vB_Inline_Mod('inlineMod_tags', 'tag', 'tagsform', '<?php
echo $vbphrase[go_x];
?>
', 'vbulletin_inline', 'tag');
/* vBmenu.register("inlinemodsel"); */
//-->
function js_show_synlist(trigger, listid)
{
list = document.getElementById(listid);
list.style.display = 'block';
trigger.onclick = function() {return js_hide_synlist(trigger, listid)};
trigger.getElementsByTagName('img')[0].src = '<?php
echo $vbulletin->options['bburl'];
?>
/cpstyles/<?php
echo $vbulletin->options['cpstylefolder'];
?>
/collapse_generic.gif';
return false;
}
function js_hide_synlist(trigger, listid)
{
list = document.getElementById(listid);
list.style.display = 'none';
trigger.onclick = function() {return js_show_synlist(trigger, listid)};
trigger.getElementsByTagName('img')[0].src = '<?php
echo $vbulletin->options['bburl'];
?>
/cpstyles/<?php
echo $vbulletin->options['cpstylefolder'];
?>
/collapse_generic_collapsed.gif';
return false;
}
</script>
<?php
echo '</form>';
} else {
print_description_row($vbphrase['no_tags_defined'], false, 3, '', 'center');
print_table_footer();
}
construct_hidden_code('page', $vbulletin->GPC['pagenumber']);
construct_hidden_code('sort', $vbulletin->GPC['sort']);
print_form_header('tag', 'taginsert');
print_input_row($vbphrase['add_tag'], 'tagtext');
print_submit_row();
}
示例14: print_form_header
if ($_REQUEST['do'] == 'modify') {
print_form_header('block', 'doorder');
print_column_style_code(array('width:25%', 'width:50%', 'width:10%', 'width:15%'));
print_table_header($vbphrase['forum_blocks'], 4);
print_cells_row(array($vbphrase['block'], $vbphrase['description'], $vbphrase['display_order'], $vbphrase['controls']), 1, false, -1);
$blocks = $blockmanager->getBlocks(false, false);
foreach ($blocks as $blockid => $block) {
$cell = array();
$cell[] = $block['active'] ? htmlspecialchars_uni($block['title']) : '<strike>' . htmlspecialchars_uni($block['title']) . '</strike>';
$cell[] = $block['active'] ? htmlspecialchars_uni($block['description']) : '<strike>' . htmlspecialchars_uni($block['description']) . '</strike>';
$cell[] = '<input type="text" name="order[' . $blockid . ']" value="' . $block['displayorder'] . '" size="2" title="' . $vbphrase['display_order'] . '" />';
$cell[] = construct_link_code($vbphrase['edit'], "block.php?" . $vbulletin->session->vars['sessionurl'] . "do=editblock&blockid=" . $block['blockid'], false) . construct_link_code($vbphrase['delete'], "block.php?" . $vbulletin->session->vars['sessionurl'] . "do=deleteblock&blockid=" . $block['blockid'], false);
print_cells_row($cell, false, false, -1);
}
print_table_footer(4, '
<input type="submit" class="button" value="' . $vbphrase['save_display_order'] . '" tabindex="1" />
<input type="button" class="button" value="' . $vbphrase['add_block'] . '" tabindex="1" onclick="window.location=\'block.php?' . $vbulletin->session->vars['sessionurl'] . 'do=addblock\';" />
');
echo '<p align="center" class="smallfont">' . construct_link_code($vbphrase['reload_block_types'], "block.php?" . $vbulletin->session->vars['sessionurl'] . "do=reload", false, $vbphrase['do_this_when_upload_block']) . construct_link_code($vbphrase['purge_cache'], "block.php?" . $vbulletin->session->vars['sessionurl'] . "do=purgecache", false);
echo "</p>\n";
}
// #############################################################################
// Reload block types from disk and insert into db
if ($_REQUEST['do'] == 'reload') {
$vbulletin->input->clean_array_gpc('r', array('raction' => TYPE_STR));
if ($vbulletin->GPC['raction']) {
$raction = $vbulletin->GPC['raction'];
} else {
$raction = 'modify';
}
$blockmanager->reloadBlockTypes(true);
print_cp_message($vbphrase['block_type_reloaded'], "block.php?" . $vbulletin->session->vars['sessionurl'] . "do=" . rawurlencode($raction), 1, null, true);
示例15: print_table_start
$_REQUEST['do'] = 'list';
}
// ###################### Start list #######################
if ($_REQUEST['do'] == 'list') {
$getusergroups = $db->query_read("\r\n\t\tSELECT usergroupid, title, ei_forumid\r\n\t\tFROM " . TABLE_PREFIX . "usergroup\r\n\t\tWHERE ei_auto = 1\r\n\t\tORDER BY `usergroupid`\r\n\t");
print_table_start('admin_ei');
print_table_header($vbphrase['ei_header_auto'], 2);
print_description_row($vbphrase['ei_auto_how_to'], 0, 2);
while ($getusergroup = $db->fetch_array($getusergroups)) {
print_table_header($getusergroup['title'], 2);
$forumlist = explode(",", $getusergroup['ei_forumid']);
foreach ($forumlist as $key => $forumupdateid) {
$getforuminfo = $db->query_read("SELECT title FROM " . TABLE_PREFIX . "forum WHERE forumid = {$forumupdateid}");
while ($foruminfo = $db->fetch_array($getforuminfo)) {
$bg = fetch_row_bgclass();
echo "<tr><td class=\"" . $bg . "\">" . $foruminfo['title'] . "</td><td class=\"" . $bg . "\"><a href=\"admin_ei.php?" . $vbulletin->session->vars['sessionurl'] . "do=autosub&f=" . $forumupdateid . "&ug=" . $getusergroup['usergroupid'] . "\">" . $vbphrase['ei_update_sub'] . "</a></td></tr>";
}
}
}
print_table_footer(2, '', '', 0);
}
// ###################### Start list #######################
if ($_REQUEST['do'] == 'autosub') {
$vbulletin->input->clean_array_gpc('r', array('f' => TYPE_UINT, 'ug' => TYPE_UINT));
$users = $db->query_read("\r\n\t\tSELECT userid, username\r\n\t\tFROM " . TABLE_PREFIX . "user\r\n\t\tWHERE usergroupid = '" . $vbulletin->GPC['ug'] . "' OR membergroupids REGEXP '^" . $vbulletin->GPC['ug'] . "\$|^" . $vbulletin->GPC['ug'] . ",|," . $vbulletin->GPC['ug'] . ",|," . $vbulletin->GPC['ug'] . "\$'\r\n\t\tORDER BY `userid`\r\n\t");
while ($user = $db->fetch_array($users)) {
$db->query_write("\r\n\t\t\t\t\t\t\t\tREPLACE INTO " . TABLE_PREFIX . "subscribeforum (userid, emailupdate, forumid)\r\n\t\t\t\t\t\t\t\tVALUES ('" . $user['userid'] . "', 1, '" . $vbulletin->GPC['f'] . "')\r\n\t\t\t\t\t\t\t");
echo $vbphrase['ei_auto_updated'] . $user['username'] . "<br>";
}
}
print_cp_footer();