当前位置: 首页>>代码示例>>PHP>>正文


PHP print_submit_row函数代码示例

本文整理汇总了PHP中print_submit_row函数的典型用法代码示例。如果您正苦于以下问题:PHP print_submit_row函数的具体用法?PHP print_submit_row怎么用?PHP print_submit_row使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了print_submit_row函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: print_statistic_code

function print_statistic_code($title, $name, $start, $end, $nullvalue = true, $scope = 'daily', $sort = 'date_desc')
{

	global $vbphrase;

	print_form_header('stats', $name);
	print_table_header($title);

	print_time_row($vbphrase['start_date'], 'start', $start, false);
	print_time_row($vbphrase['end_date'], 'end', $end, false);

	if ($name != 'activity')
	{
		print_select_row($vbphrase['scope'], 'scope', array('daily' => $vbphrase['daily'], 'weekly' => $vbphrase['weekly'], 'monthly' => $vbphrase['monthly']), $scope);
	}
	else
	{
		construct_hidden_code('scope', 'daily');
	}
	print_select_row($vbphrase['order_by'], 'sort', array(
		'date_asc'   => $vbphrase['date_ascending'],
		'date_desc'  => $vbphrase['date_descending'],
		'total_asc'  => $vbphrase['total_ascending'],
		'total_desc' => $vbphrase['total_descending'],
	), $sort);
	print_yes_no_row($vbphrase['include_empty_results'], 'nullvalue', $nullvalue);
	print_submit_row($vbphrase['go']);
}
开发者ID:hungnv0789,项目名称:vhtm,代码行数:28,代码来源:adminfunctions_stats.php

示例2: print_stop_message

            $feeds["{$feed['rssfeedid']}"] = $feed;
        }
    }
    $db->free_result($feeds_result);
    if (empty($feeds)) {
        print_stop_message('no_feeds_defined', $vbulletin->session->vars['sessionurl']);
    } else {
        print_form_header('rssposter', 'updatestatus');
        print_table_header($vbphrase['rss_feed_manager'], 5);
        print_cells_row(array('', $vbphrase['rss_feed'], $vbphrase['forum'] . ' / ' . $vbphrase['username'], $vbphrase['last_checked'], $vbphrase['controls']), true, '', -4);
        foreach ($feeds as $rssfeedid => $feed) {
            $x = @parse_url($feed['url']);
            if ($feed['lastrun'] > 0) {
                $date = vbdate($vbulletin->options['dateformat'], $feed['lastrun'], true);
                $time = vbdate($vbulletin->options['timeformat'], $feed['lastrun']);
                $datestring = $date . ($vbulletin->options['yestoday'] == 2 ? '' : ", {$time}");
            } else {
                $datestring = '-';
            }
            print_cells_row(array("<input type=\"checkbox\" name=\"enabled[{$rssfeedid}]\" value=\"{$rssfeedid}\" title=\"{$vbphrase['enabled']}\"" . ($feed['options'] & $vbulletin->bf_misc_feedoptions['enabled'] ? ' checked="checked"' : '') . " />", "<div><a href=\"rssposter.php?" . $vbulletin->session->vars['sessionurl'] . "do=edit&amp;rssfeedid={$feed['rssfeedid']}\" title=\"" . htmlspecialchars_uni($feed['url']) . "\"><strong>{$feed['title']}</strong></a></div>\r\n\t\t\t\t<div class=\"smallfont\"><a href=\"" . htmlspecialchars_uni($feed['url']) . "\" target=\"feed\">{$x['host']}</a></div>", "<div><a href=\"forum.php?" . $vbulletin->session->vars['sessionurl'] . "do=edit&amp;forumid={$feed['forumid']}\">{$feed['forumtitle']}</a></div>\r\n\t\t\t\t<div class=\"smallfont\"><a href=\"user.php?" . $vbulletin->session->vars['sessionurl'] . "do=edit&amp;userid={$feed['userid']}\">{$feed['username']}</a></div>", "<span class=\"smallfont\">{$datestring}</span>", construct_link_code($vbphrase['edit'], "rssposter.php?" . $vbulletin->session->vars['sessionurl'] . "do=edit&amp;rssfeedid={$feed['rssfeedid']}") . construct_link_code($vbphrase['delete'], "rssposter.php?" . $vbulletin->session->vars['sessionurl'] . "do=delete&amp;rssfeedid={$feed['rssfeedid']}")), false, '', -4);
        }
        print_submit_row($vbphrase['save_enabled_status'], false, 5, '', "\r\n\t\t\t\t<input type=\"button\" class=\"button\" value=\"{$vbphrase['run_scheduled_task_now']}\" onclick=\"window.location='cronadmin.php?" . $vbulletin->session->vars['sessionurl'] . "do=runcron&amp;varname=rssposter'\" />\r\n\t\t\t\t<input type=\"button\" class=\"button\" value=\"{$vbphrase['add_new_rss_feed']}\" onclick=\"window.location='rssposter.php?" . $vbulletin->session->vars['sessionurl'] . "do=edit'\" />\r\n\t\t\t");
    }
}
print_cp_footer();
/*======================================================================*\
|| ####################################################################
|| # Downloaded: 23:48, Wed Mar 24th 2010
|| # CVS: $RCSfile$ - $Revision: 32878 $
|| ####################################################################
\*======================================================================*/
开发者ID:Kheros,项目名称:MMOver,代码行数:31,代码来源:rssposter.php

示例3: array

if ($_REQUEST['do'] == 'index')
{
	print_form_header('resources', 'view');
	print_table_header($vbphrase['view_forum_permissions']);
	print_forum_chooser($vbphrase['forum'], 'forumid', -1, "($vbphrase[forum])");
	print_chooser_row($vbphrase['usergroup'], 'usergroupid', 'usergroup', '', "($vbphrase[usergroup])");
	print_label_row(
		$vbphrase['forum_permissions'],
		'<label for="cb_checkall"><input type="checkbox" id="cb_checkall" name="allbox" onclick="js_check_all(this.form)" />' . $vbphrase['check_all'] . '</label>',
		'thead'
	);
	foreach ($vbulletin->bf_ugp_forumpermissions AS $field => $value)
	{
		print_checkbox_row($perm_phrase["$field"], "checkperm[$value]", false, $value);
	}
	print_submit_row($vbphrase['find']);

}

// ###################### Start viewing resources for forums or usergroups ########################
if ($_REQUEST['do'] == 'view')
{
	$vbulletin->input->clean_array_gpc('r', array(
		'checkperm' => TYPE_ARRAY_INT,
	));

	if ($vbulletin->GPC['forumid'] == -1 AND $vbulletin->GPC['usergroupid'] == -1)
	{
		print_stop_message('you_must_pick_a_usergroup_or_forum_to_check_permissions');
	}
	if (empty($vbulletin->GPC['checkperm']))
开发者ID:hungnv0789,项目名称:vhtm,代码行数:31,代码来源:resources.php

示例4: microtime

                $time_before = microtime();
                $db->query_write($query);
                $time_taken = fetch_microtime_difference($time_before);
                print_form_header('queries', 'doquery');
                print_table_header($vbphrase['vbulletin_message']);
                if ($errornum = $db->errno()) {
                    print_description_row(construct_phrase($vbphrase['an_error_occured_while_attempting_to_run_your_query'], $errornum, nl2br(htmlspecialchars_uni($db->error()))));
                } else {
                    print_description_row(construct_phrase($vbphrase['affected_rows'], vb_number_format($db->affected_rows()), vb_number_format($time_taken, 4)));
                }
                print_table_footer();
            }
            break;
    }
}
// ##################### START MODIFY #####################
if ($_REQUEST['do'] == 'modify') {
    print_form_header('queries', 'doquery');
    print_table_header($vbphrase['execute_sql_query']);
    print_select_row($vbphrase['auto_query'], 'autoquery', $queryoptions, -1);
    print_textarea_row($vbphrase['manual_query'], 'query', '', 10, 55);
    print_input_row($vbphrase['results_to_show_per_page'], 'perpage', 20);
    print_submit_row($vbphrase['continue']);
}
print_cp_footer();
/*======================================================================*\
|| ####################################################################
|| # Downloaded: 03:13, Sat Sep 7th 2013
|| # CVS: $RCSfile$ - $Revision: 37230 $
|| ####################################################################
\*======================================================================*/
开发者ID:0hyeah,项目名称:yurivn,代码行数:31,代码来源:queries.php

示例5: define

    $db->query_write("\n\t\tDELETE FROM " . TABLE_PREFIX . "reputation\n\t\tWHERE reputationid = " . $vbulletin->GPC['reputationid']);
    define('CP_REDIRECT', "adminreputation.php?do=list&amp;u={$repinfo['userid']}");
    print_stop_message('deleted_reputation_successfully');
}
// *************************************************************************************************
if ($_REQUEST['do'] == 'deletereputation') {
    $vbulletin->input->clean_array_gpc('r', array('reputationid' => TYPE_INT));
    print_delete_confirmation('reputation', $vbulletin->GPC['reputationid'], 'adminreputation', 'killreputation');
}
if ($_REQUEST['do'] == 'modify') {
    $reputationlevels = $db->query_read("\n\t\tSELECT *\n\t\tFROM " . TABLE_PREFIX . "reputationlevel\n\t\tORDER BY minimumreputation\n\t");
    print_form_header('adminreputation', 'updateminimums');
    print_table_header($vbphrase['user_reputation_manager'], 3);
    print_cells_row(array($vbphrase['reputation_level'], $vbphrase['minimum_reputation_level'], $vbphrase['controls']), 1);
    while ($reputationlevel = $db->fetch_array($reputationlevels)) {
        $reputationlevel['level'] = htmlspecialchars_uni($vbphrase['reputation' . $reputationlevel['reputationlevelid']]);
        $cell = array();
        $cell[] = "{$vbphrase['user']} <b>{$reputationlevel['level']}</b>";
        $cell[] = "<input type=\"text\" class=\"bginput\" tabindex=\"1\" name=\"reputation[{$reputationlevel['reputationlevelid']}]\" value=\"{$reputationlevel['minimumreputation']}\" size=\"5\" />";
        $cell[] = construct_link_code($vbphrase['edit'], "adminreputation.php?" . $vbulletin->session->vars['sessionurl'] . "do=edit&reputationlevelid={$reputationlevel['reputationlevelid']}") . construct_link_code($vbphrase['delete'], "adminreputation.php?" . $vbulletin->session->vars['sessionurl'] . "do=remove&minimumreputation={$reputationlevel['minimumreputation']}");
        print_cells_row($cell);
    }
    print_submit_row($vbphrase['update'], $vbphrase['reset'], 3);
}
print_cp_footer();
/*======================================================================*\
|| ####################################################################
|| # Downloaded: 03:13, Sat Sep 7th 2013
|| # CVS: $RCSfile$ - $Revision: 40911 $
|| ####################################################################
\*======================================================================*/
开发者ID:0hyeah,项目名称:yurivn,代码行数:31,代码来源:adminreputation.php

示例6: print_stop_message

        print_stop_message('please_complete_required_fields');
    }
    if (empty($vbulletin->GPC['infractionbanid'])) {
        $db->query_write("INSERT INTO " . TABLE_PREFIX . "infractionban (amount) VALUES (0)");
        $vbulletin->GPC['infractionbanid'] = $db->insert_id();
    }
    $db->query_write("\n\t\tUPDATE " . TABLE_PREFIX . "infractionban\n\t\tSET amount = " . $vbulletin->GPC['amount'] . ",\n\t\t\tmethod = '" . $db->escape_string($vbulletin->GPC['method']) . "',\n\t\t\tusergroupid = " . $vbulletin->GPC['usergroupid'] . ",\n\t\t\tbanusergroupid = " . $vbulletin->GPC['banusergroupid'] . ",\n\t\t\tperiod = '" . $db->escape_string($vbulletin->GPC['period']) . "'\n\t\tWHERE infractionbanid = " . $vbulletin->GPC['infractionbanid'] . "\n\t");
    define('CP_REDIRECT', 'admininfraction.php?do=modify');
    print_stop_message('saved_automatic_ban_successfully');
}
// ###################### Start Remove #######################
if ($_REQUEST['do'] == 'removebangroup') {
    print_form_header('admininfraction', 'killbangroup');
    construct_hidden_code('infractionbanid', $vbulletin->GPC['infractionbanid']);
    print_table_header(construct_phrase($vbphrase['confirm_deletion_x'], $vbphrase['automatic_ban']));
    print_description_row($vbphrase['are_you_sure_you_want_to_delete_this_automatic_ban']);
    print_submit_row($vbphrase['yes'], '', 2, $vbphrase['no']);
}
// ###################### Start Kill #######################
if ($_POST['do'] == 'killbangroup') {
    $db->query_write("DELETE FROM " . TABLE_PREFIX . "infractionban WHERE infractionbanid = " . $vbulletin->GPC['infractionbanid']);
    define('CP_REDIRECT', 'admininfraction.php?do=modify');
    print_stop_message('deleted_automatic_ban_successfully');
}
print_cp_footer();
/*======================================================================*\
|| ####################################################################
|| # Downloaded: 12:39, Wed May 30th 2012
|| # CVS: $RCSfile$ - $Revision: 39862 $
|| ####################################################################
\*======================================================================*/
开发者ID:benyamin20,项目名称:vbregistration,代码行数:31,代码来源:admininfraction.php

示例7: check_template_errors

    if (empty($vbulletin->GPC['confirmerrors'])) {
        $errors = check_template_errors($template);
        if (!empty($errors)) {
            print_form_header('ad', 'update', 0, 1, '', '75%');
            construct_hidden_code('confirmerrors', 1);
            construct_hidden_code('adid', intval($vbulletin->GPC['adid']));
            construct_hidden_code('title', $vbulletin->GPC['title']);
            construct_hidden_code('ad_location', $vbulletin->GPC['ad_location']);
            construct_hidden_code('ad_html', $vbulletin->GPC['ad_html']);
            construct_hidden_code('displayorder', intval($vbulletin->GPC['displayorder']));
            construct_hidden_code('active', $vbulletin->GPC['active']);
            construct_hidden_code('criteria_serialized', $criterion);
            print_table_header($vbphrase['vbulletin_message']);
            print_description_row(construct_phrase($vbphrase['template_eval_error'], $errors));
            print_description_row(construct_phrase($template_un, $errors));
            print_submit_row($vbphrase['continue'], 0, 2, $vbphrase['go_back']);
            print_cp_footer();
            exit;
        }
    }
    // The insert of the template.
    replace_ad_template(0, $vbulletin->GPC['ad_location'], $template, $template_un, $vbulletin->userinfo['username'], $vbulletin->options['templateversion']);
    replace_ad_template(-1, $vbulletin->GPC['ad_location'], $template, $template_un, $vbulletin->userinfo['username'], $vbulletin->options['templateversion']);
    build_all_styles();
    define('CP_REDIRECT', 'ad.php');
    print_stop_message('saved_ad_x_successfully', $vbulletin->GPC['title']);
}
// #############################################################################
// confirm deletion of a ad
if ($_REQUEST['do'] == 'delete') {
    print_delete_confirmation('ad', $vbulletin->GPC['adid'], 'ad', 'remove');
开发者ID:Kheros,项目名称:MMOver,代码行数:31,代码来源:ad.php

示例8: updatetemplate_print_error_page

	function updatetemplate_print_error_page($template_un, $error)
	{
		global $vbulletin, $vbphrase;
		print_form_header('template', 'updatetemplate', 0, 1, '', '75%');
		construct_hidden_code('confirmerrors', 1);
		construct_hidden_code('title', $vbulletin->GPC['title']);
		construct_hidden_code('template', $template_un);
		construct_hidden_code('templateid', $vbulletin->GPC['templateid']);
		construct_hidden_code('group', $vbulletin->GPC['group']);
		construct_hidden_code('searchstring', $vbulletin->GPC['searchstring']);
		construct_hidden_code('dostyleid', $vbulletin->GPC['dostyleid']);
		construct_hidden_code('product', $vbulletin->GPC['product']);
		construct_hidden_code('savehistory', intval($vbulletin->GPC['savehistory']));
		construct_hidden_code('histcomment', $vbulletin->GPC['histcomment']);
		print_table_header($vbphrase['vbulletin_message']);
		print_description_row($error);
		print_submit_row($vbphrase['continue'], 0, 2, $vbphrase['go_back']);
		print_cp_footer();
	}
开发者ID:hungnv0789,项目名称:vhtm,代码行数:19,代码来源:template.php

示例9: fetch_reminders_array2

function fetch_reminders_array2()
{
    // prints out all reminders for the appropriate control panel
    global $vbulletin, $permissions, $vbphrase;
    if ($permissions['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions['cancontrolpanel']) {
        $condition = '';
    } else {
        $condition = 'AND allowmodcp = 1';
    }
    $reminders = $vbulletin->db->query_read("\n\t\tSELECT * FROM " . TABLE_PREFIX . "adminreminder\n\t\tWHERE duedate < " . (TIMENOW + 7 * 86400) . "\n\t\t{$condition} ORDER BY duedate\n\t");
    if ($vbulletin->db->num_rows($reminders)) {
        print_form_header(iif(VB_AREA == 'AdminCP', '../modcp/reminder', 'reminder'), 'docompleted');
        print_table_header($vbphrase['adminfunctions_getreminders2_header'], 4);
        print_cells_row(array($vbphrase['adminfunctions_getreminders2_duedate'], $vbphrase['event'], $vbphrase['edit'], $vbphrase['status']), 1, 0, -1);
        while ($reminder = $vbulletin->db->fetch_array($reminders)) {
            if ($reminder['completed'] == 0) {
                if ($reminder['duedate'] < TIMENOW) {
                    $date = '<b class="col-i">%s</b>';
                    $status = '<b>' . $vbphrase['adminfunctions_getreminders2_overdue'] . '</b>';
                    $hint = $vbphrase['adminfunctions_getreminders2_completed'];
                    $checkbox = '';
                } else {
                    $date = '%s';
                    $status = 'Pending';
                    $hint = $vbphrase['adminfunctions_getreminders2_completed'];
                    $checkbox = '';
                }
            } else {
                $date = '%s';
                $status = $vbphrase['adminfunctions_getreminders2_complete'];
                $hint = $vbphrase['adminfunctions_getreminders2_delete'];
                $checkbox = ' checked="checked" disabled="disabled"';
            }
            $cell = array();
            $cell[] = '<p class="smallfont" style="white-space:nowrap">' . sprintf($date, vbdate("M jS 'y", $reminder['duedate'])) . '</p>';
            $cell[] = '<p class="smallfont">' . $reminder['title'] . '</p>';
            //$cell[] = '<span class="smallfont">'.construct_link_code($status, $link, 0, $hint) . '</span>';
            $cell[] = '<p class="smallfont">' . construct_link_code($vbphrase['edit'], "reminder.php?" . $vbulletin->session->vars['sessionurl'] . "do=edit&amp;id[{$reminder['adminreminderid']}]=1") . '</p>';
            $cell[] = '<p class="smallfont" style="text-align:' . vB_Template_Runtime::fetchStyleVar('right') . '">' . $status . '<input type="checkbox" name="id[' . $reminder['adminreminderid'] . ']" value="1" tabindex="1"' . $checkbox . ' /></p>';
            print_cells_row($cell, 0, '', -2);
        }
        print_submit_row($vbphrase['adminfunctions_getreminders2_delcomplete'], 0, 4);
    }
    unset($reminder);
    $vbulletin->db->free_result($reminders);
}
开发者ID:0hyeah,项目名称:yurivn,代码行数:46,代码来源:adminfunctions_reminder.php

示例10: print_cp_redirect

            print_cp_redirect("photoplog_category.php?" . $vbulletin->session->vars['sessionurl'] . "do=modify", 1);
        } else {
            print_stop_message('generic_error_x', $vbphrase['photoplog_bad_order_update']);
        }
    } else {
        print_stop_message('no_results_matched_your_query');
    }
}
if ($_REQUEST['do'] == 'delete') {
    $vbulletin->input->clean_array_gpc('g', array('catid' => TYPE_UINT));
    print_form_header('photoplog_category', 'dodelete');
    construct_hidden_code('s', $vbulletin->session->vars['sessionhash']);
    construct_hidden_code('catid', $vbulletin->GPC['catid']);
    print_table_header($vbphrase['photoplog_confirm_deletion']);
    print_description_row($vbphrase['photoplog_confirm_delete_category']);
    print_submit_row($vbphrase['photoplog_yes'], '', 2, $vbphrase['photoplog_no']);
}
if ($_REQUEST['do'] == 'dodelete') {
    $vbulletin->input->clean_array_gpc('p', array('catid' => TYPE_UINT));
    $photoplog_catid = $vbulletin->GPC['catid'];
    $photoplog_dscatopts = $photoplog_ds_catopts;
    $photoplog_child_list = array();
    $photoplog_parent_list = array();
    photoplog_child_list($photoplog_child_list, $photoplog_parent_list, $photoplog_catid);
    $photoplog_catids_array = array_merge(array($photoplog_catid), $photoplog_child_list, $photoplog_parent_list);
    $photoplog_sql = "WHERE catid = " . intval($photoplog_catid);
    unset($photoplog_dscatopts["{$photoplog_catid}"]);
    if (!empty($photoplog_child_list)) {
        $photoplog_sql = "WHERE catid IN (" . intval($photoplog_catid) . "," . implode(",", $photoplog_child_list) . ")";
        foreach ($photoplog_child_list as $photoplog_childid) {
            unset($photoplog_dscatopts["{$photoplog_childid}"]);
开发者ID:holandacz,项目名称:nb4,代码行数:31,代码来源:photoplog_category.php

示例11: print_form_header

if ($_REQUEST['do'] == 'edit') {
    print_form_header('subscriptionpermission', 'doupdate');
    if (empty($subobj->subscriptioncache[$vbulletin->GPC['subscriptionid']])) {
        print_stop_message('invalid_x_specified', $vbphrase['subscription']);
    }
    if (empty($vbulletin->usergroupcache[$vbulletin->GPC['usergroupid']])) {
        print_stop_message('invalid_x_specified', $vbphrase['usergroup']);
    }
    $getperms = $db->query_first("\n\t\tSELECT subscriptionpermission.*\n\t\tFROM " . TABLE_PREFIX . "subscriptionpermission AS subscriptionpermission\n\t\tINNER JOIN " . TABLE_PREFIX . "usergroup AS usergroup ON (usergroup.usergroupid = subscriptionpermission.usergroupid)\n\t\tWHERE subscriptionid = " . $vbulletin->GPC['subscriptionid'] . " AND subscriptionpermission.usergroupid = " . $vbulletin->GPC['usergroupid']);
    $usergroup = $vbulletin->usergroupcache[$vbulletin->GPC['usergroupid']];
    $subtitle = $vbphrase['sub' . $vbulletin->GPC['subscriptionid'] . '_title'];
    construct_hidden_code('subscriptionid', $vbulletin->GPC['subscriptionid']);
    construct_hidden_code('usergroupid', $vbulletin->GPC['usergroupid']);
    print_table_header(construct_phrase($vbphrase['edit_usergroup_permissions_for_usergroup_x_in_subscription_y'], $usergroup['title'], $subtitle));
    print_yes_no_row($vbphrase['can_use_subscription'], 'usesub', !$getperms);
    print_submit_row($vbphrase['save']);
}
// ###################### Start do update #######################
if ($_POST['do'] == 'doupdate') {
    $vbulletin->input->clean_array_gpc('p', array('usesub' => TYPE_BOOL, 'subscriptionpermissionid' => TYPE_INT, 'subscriptionid' => TYPE_INT, 'usergroupid' => TYPE_INT));
    if (empty($subobj->subscriptioncache[$vbulletin->GPC['subscriptionid']])) {
        print_stop_message('invalid_x_specified', $vbphrase['subscription']);
    }
    if (empty($vbulletin->usergroupcache[$vbulletin->GPC['usergroupid']])) {
        print_stop_message('invalid_x_specified', $vbphrase['usergroup']);
    }
    define('CP_REDIRECT', "subscriptionpermission.php?do=modify#subscription" . $vbulletin->GPC['subscriptionid']);
    if ($vbulletin->GPC['usesub']) {
        $db->query_write("\n\t\t\tDELETE FROM " . TABLE_PREFIX . "subscriptionpermission\n\t\t\tWHERE subscriptionid = " . $vbulletin->GPC['subscriptionid'] . " AND usergroupid = " . $vbulletin->GPC['usergroupid']);
        if ($db->affected_rows()) {
            print_stop_message('deleted_subscription_permissions_successfully');
开发者ID:holandacz,项目名称:nb4,代码行数:31,代码来源:subscriptionpermission.php

示例12: vbdate

        $cells[] = "<input type=\"checkbox\" name=\"thread[{$thread['threadid']}]\" tabindex=\"1\" checked=\"checked\" />";
        $cells[] = $thread['prefix_plain_html'] . ' <a href="../showthread.php?' . $vbulletin->session->vars['sessionurl'] . "t={$thread['threadid']}\" target=\"_blank\">{$thread['title']}</a>";
        if ($thread['postuserid']) {
            $cells[] = '<span class="smallfont"><a href="../member.php?' . $vbulletin->session->vars['sessionurl'] . "u={$thread['postuserid']}\">{$thread['postusername']}</a></span>";
        } else {
            $cells[] = '<span class="smallfont">' . $thread['postusername'] . '</span>';
        }
        $cells[] = "<span class=\"smallfont\">{$thread['replycount']}</span>";
        $cells[] = '<span class="smallfont">' . vbdate($vbulletin->options['dateformat'] . ' ' . $vbulletin->options['timeformat'], $thread['lastpost']) . '</span>';
        print_cells_row($cells, 0, 0, -1);
    }
    if ($vbulletin->GPC['type'] == 'prune') {
        print_submit_row($vbphrase['prune_threads'], NULL, 5);
    } else {
        if ($vbulletin->GPC['type'] == 'move') {
            print_submit_row($vbphrase['move_threads'], NULL, 5);
        }
    }
}
// ###################### Start move/prune select - finish! #######################
if ($_POST['do'] == 'dothreadsselfinish') {
    $vbulletin->input->clean_array_gpc('p', array('thread' => TYPE_ARRAY, 'destforumid' => TYPE_INT));
    if (!empty($vbulletin->GPC['thread'])) {
        require_once DIR . '/includes/functions_databuild.php';
        if ($vbulletin->GPC['type'] == 'prune') {
            echo '<p>' . $vbphrase['deleting_threads'];
            foreach ($vbulletin->GPC['thread'] as $threadid => $confirm) {
                $threadinfo = fetch_threadinfo($threadid);
                if (empty($forumids["{$threadinfo['forumid']}"])) {
                    // make sure we have access to prune / move this thread, if not then skip it
                    continue;
开发者ID:holandacz,项目名称:nb4,代码行数:31,代码来源:thread.php

示例13: construct_hidden_code

                construct_hidden_code('currency', $vbulletin->GPC['currency']);
                construct_hidden_code('type', $vbulletin->GPC['type']);
                construct_hidden_code('subscriptionid', $vbulletin->GPC['subscriptionid']);
                construct_hidden_code('state', $vbulletin->GPC['state']);
                construct_hidden_code('userid', $userinfo['userid']);
                construct_hidden_code('scope', 1);
                if ($vbulletin->GPC['limitstart'] == 0 and $counttrans['trans'] > $vbulletin->GPC['limitnumber']) {
                    construct_hidden_code('limitstart', $vbulletin->GPC['limitstart'] + $vbulletin->GPC['limitnumber'] + 1);
                    print_submit_row($vbphrase['next_page'], 0, 7);
                } else {
                    if ($limitfinish < $counttrans['trans']) {
                        construct_hidden_code('limitstart', $vbulletin->GPC['limitstart'] + $vbulletin->GPC['limitnumber'] + 1);
                        print_submit_row($vbphrase['next_page'], 0, 7, $vbphrase['prev_page'], '', true);
                    } else {
                        if ($vbulletin->GPC['limitstart'] > 0 and $limitfinish >= $counttrans['trans']) {
                            print_submit_row($vbphrase['first_page'], 0, 7, $vbphrase['prev_page'], '', true);
                        } else {
                            print_table_footer();
                        }
                    }
                }
            }
        }
    }
}
print_cp_footer();
// ###################### Start toggle_subs #######################
// Function disables subs if there isn't an active API or active SUB (and vice versa)
function toggle_subs()
{
    global $vbulletin;
开发者ID:benyamin20,项目名称:vbregistration,代码行数:31,代码来源:subscriptions.php

示例14: 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&amp;sort=dateline">' . $vbphrase['display_newest'] . '</a>';
		$sort_links['alphaall'] = '<a href="tag.php?do=tags&amp;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("&nbsp;&nbsp;" , $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[] = '&nbsp;';
			}
		}

		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();
}
开发者ID:hungnv0789,项目名称:vhtm,代码行数:101,代码来源:tag.php

示例15: array

    }
}
// ###################### Start Reputation Edit Form #######################
if ($_REQUEST['do'] == 'editreputation') {
    $vbulletin->input->clean_array_gpc('r', array('reputationid' => TYPE_INT));
    if (!can_moderate(0, 'caneditreputation') or !$vbulletin->options['reputationenable']) {
        print_stop_message('no_permission');
    }
    $reputation = $db->query_first("\n\t\tSELECT reason, dateline, userid\n\t\tFROM " . TABLE_PREFIX . "reputation\n\t\tWHERE reputationid = " . $vbulletin->GPC['reputationid'] . "\n\t");
    print_form_header('user', 'doeditreputation');
    construct_hidden_code('reputationid', $vbulletin->GPC['reputationid']);
    construct_hidden_code('userid', $reputation['userid']);
    print_table_header($vbphrase['edit_reputation_comment']);
    print_label_row($vbphrase['date'], vbdate($vbulletin->options['logdateformat'], $reputation['dateline']));
    print_textarea_row($vbphrase['reason'], 'reason', $reputation['reason'], 4, 40, 1, 0);
    print_submit_row($vbphrase['update'], 0);
}
// ###################### Start Actual Reputation Editing #######################
if ($_POST['do'] == 'doeditreputation') {
    $vbulletin->input->clean_array_gpc('p', array('reputationid' => TYPE_INT, 'reason' => TYPE_STR));
    if (!can_moderate(0, 'caneditreputation') or !$vbulletin->options['reputationenable']) {
        print_stop_message('no_permission');
    }
    $db->query_write("\n\t\tUPDATE " . TABLE_PREFIX . "reputation\n\t\tSET reason = '" . $db->escape_string($vbulletin->GPC['reason']) . "'\n\t\tWHERE reputationid = " . $vbulletin->GPC['reputationid'] . "\n\t");
    define('CP_REDIRECT', 'user.php?do=reputation&amp;u=' . $vbulletin->GPC['userid']);
    print_stop_message('updated_reason_successfully');
}
print_cp_footer();
/*======================================================================*\
|| ####################################################################
|| # Downloaded: 12:56, Sat Oct 11th 2008
开发者ID:holandacz,项目名称:nb4,代码行数:31,代码来源:user.php


注:本文中的print_submit_row函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。