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


PHP print_radio_row函数代码示例

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


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

示例1: print_move_prune_rows

function print_move_prune_rows($permcheck = '')
{
    global $vbphrase;
    print_description_row($vbphrase['date_options'], 0, 2, 'thead', 'center');
    print_input_row($vbphrase['original_post_date_is_at_least_xx_days_ago'], 'thread[originaldaysolder]', 0, 1, 5);
    print_input_row($vbphrase['original_post_date_is_at_most_xx_days_ago'] . '<dfn>' . construct_phrase($vbphrase['note_leave_x_specify_no_limit'], '0') . '</dfn>', 'thread[originaldaysnewer]', 0, 1, 5);
    print_input_row($vbphrase['last_post_date_is_at_least_xx_days_ago'], 'thread[lastdaysolder]', 0, 1, 5);
    print_input_row($vbphrase['last_post_date_is_at_most_xx_days_ago'] . '<dfn>' . construct_phrase($vbphrase['note_leave_x_specify_no_limit'], '0') . '</dfn>', 'thread[lastdaysnewer]', 0, 1, 5);
    print_description_row($vbphrase['view_options'], 0, 2, 'thead', 'center');
    print_input_row($vbphrase['thread_has_at_least_xx_replies'], 'thread[repliesleast]', 0, 1, 5);
    print_input_row($vbphrase['thread_has_at_most_xx_replies'] . '<dfn>' . construct_phrase($vbphrase['note_leave_x_specify_no_limit'], '-1') . '</dfn>', 'thread[repliesmost]', -1, 1, 5);
    print_input_row($vbphrase['thread_has_at_least_xx_views'], 'thread[viewsleast]', 0, 1, 5);
    print_input_row($vbphrase['thread_has_at_most_xx_views'] . '<dfn>' . construct_phrase($vbphrase['note_leave_x_specify_no_limit'], '-1') . '</dfn>', 'thread[viewsmost]', -1, 1, 5);
    print_description_row($vbphrase['status_options'], 0, 2, 'thead', 'center');
    print_yes_no_other_row($vbphrase['thread_is_sticky'], 'thread[issticky]', $vbphrase['either'], 0);
    $state = array('visible' => $vbphrase['visible'], 'moderation' => $vbphrase['awaiting_moderation'], 'deleted' => $vbphrase['deleted'], 'any' => $vbphrase['any']);
    print_radio_row($vbphrase['thread_state'], 'thread[state]', $state, 'any');
    $status = array('open' => $vbphrase['open'], 'closed' => $vbphrase['closed'], 'redirect' => $vbphrase['redirect'], 'not_redirect' => $vbphrase['not_redirect'], 'any' => $vbphrase['any']);
    print_radio_row($vbphrase['thread_status'], 'thread[status]', $status, 'not_redirect');
    print_description_row($vbphrase['other_options'], 0, 2, 'thead', 'center');
    print_input_row($vbphrase['username'], 'thread[posteduser]');
    print_input_row($vbphrase['title'], 'thread[titlecontains]');
    print_moderator_forum_chooser('thread[forumid]', -1, $vbphrase['all_forums'], $vbphrase['forum'], true, false, true, $permcheck);
    print_yes_no_row($vbphrase['include_child_forums'], 'thread[subforums]');
    if ($prefix_options = construct_prefix_options(0, '', true, true)) {
        print_label_row($vbphrase['prefix'], '<select name="thread[prefixid]" class="bginput">' . $prefix_options . '</select>', '', 'top', 'prefixid');
    }
}
开发者ID:holandacz,项目名称:nb4,代码行数:28,代码来源:thread.php

示例2: print_table_header

 if ($db->num_rows($product_dependencies)) {
     print_table_header($vbphrase['existing_product_dependencies'], 4);
     print_cells_row(array($vbphrase['dependency_type'], $vbphrase['compatibility_starts'], $vbphrase['incompatible_with'], $vbphrase['delete']), 1);
     while ($product_dependency = $db->fetch_array($product_dependencies)) {
         if ($product_dependency['dependencytype'] != 'product') {
             $dep_type = $dependency_types["{$product_dependency['dependencytype']}"];
         } else {
             $dep_type = $vbphrase['product'] . ' - ' . htmlspecialchars_uni($product_dependency['parentproductid']);
         }
         $depid = $product_dependency['productdependencyid'];
         print_cells_row(array($dep_type, "<input type=\"text\" name=\"productdependency[{$depid}][minversion]\" value=\"" . htmlspecialchars_uni($product_dependency['minversion']) . "\" size=\"25\" maxlength=\"50\" tabindex=\"1\" />", "<input type=\"text\" name=\"productdependency[{$depid}][maxversion]\" value=\"" . htmlspecialchars_uni($product_dependency['maxversion']) . "\" size=\"25\" maxlength=\"50\" tabindex=\"1\" />", "<input type=\"checkbox\" name=\"productdependency[{$depid}][delete]\" value=\"1\" />"));
     }
     print_table_break();
 }
 print_table_header($vbphrase['add_new_product_dependency']);
 print_radio_row($vbphrase['dependency_type'], 'dependencytype', $dependency_types);
 print_input_row($vbphrase['compatibility_starts_with_version'], 'minversion', '', true, 25, 50);
 print_input_row($vbphrase['incompatible_with_version_and_newer'], 'maxversion', '', true, 25, 50);
 print_submit_row();
 // #############################################
 echo '<hr />';
 print_form_header('plugin', 'productcode');
 construct_hidden_code('productid', $vbulletin->GPC['productid']);
 $productcodes = $db->query_read("\r\n\t\t\tSELECT *\r\n\t\t\tFROM " . TABLE_PREFIX . "productcode\r\n\t\t\tWHERE productid = '" . $db->escape_string($vbulletin->GPC['productid']) . "'\r\n\t\t\tORDER BY version\r\n\t\t");
 if ($db->num_rows($productcodes)) {
     print_table_header($vbphrase['existing_install_uninstall_code'], 4);
     print_cells_row(array($vbphrase['version'], $vbphrase['install_code'], $vbphrase['uninstall_code'], $vbphrase['delete']), 1);
     $productcodes_grouped = array();
     $productcodes_versions = array();
     while ($productcode = $db->fetch_array($productcodes)) {
         // have to be careful here, as version numbers are not necessarily unique
开发者ID:Kheros,项目名称:MMOver,代码行数:31,代码来源:plugin.php

示例3: print_form_header

// ###################### Swap from database to file system and vice versa ##########
if ($_REQUEST['do'] == 'storage') {
    if ($vbulletin->options['usefileavatar']) {
        print_form_header('avatar', 'switchtype');
        print_table_header("{$vbphrase['storage_type']}: <span class=\"normal\">{$vbphrase['user_pictures']}</span>");
        print_description_row(construct_phrase($vbphrase['avatars_are_currently_being_served_from_the_filesystem_at_x'], '<b>' . $vbulletin->options['avatarpath'] . '</b>'));
        print_description_row(construct_phrase($vbphrase['profilepics_are_currently_being_served_from_the_filesystem_at_x'], '<b>' . $vbulletin->options['profilepicpath'] . '</b>'));
        print_description_row(construct_phrase($vbphrase['sigpics_are_currently_being_served_from_the_filesystem_at_x'], '<b>' . $vbulletin->options['sigpicpath'] . '</b>'));
        print_table_break();
        print_table_header('&nbsp;');
        print_radio_row($vbphrase['move_items_from_filesystem_into_database'], 'dowhat', array('FS_to_DB' => ''), 'FS_to_DB');
        print_table_break();
        print_table_header('&nbsp;');
        print_radio_row($vbphrase['move_avatars_to_a_different_directory'], 'dowhat', array('FS_to_FS1' => ''));
        print_radio_row($vbphrase['move_profilepics_to_a_different_directory'], 'dowhat', array('FS_to_FS2' => ''));
        print_radio_row($vbphrase['move_sigpics_to_a_different_directory'], 'dowhat', array('FS_to_FS3' => ''));
        print_submit_row($vbphrase['go'], 0);
    } else {
        $vbulletin->GPC['dowhat'] = 'DB_to_FS';
        $_REQUEST['do'] = 'switchtype';
    }
}
// ###################### Swap from database to file system and vice versa ##########
if ($_REQUEST['do'] == 'switchtype') {
    if ($vbulletin->GPC['dowhat'] == 'FS_to_DB') {
        // redirect straight through to image mover
        $vbulletin->GPC['avatarpath'] = $vbulletin->options['avatarpath'];
        $vbulletin->GPC['avatarurl'] = $vbulletin->options['avatarurl'];
        $vbulletin->GPC['profilepicpath'] = $vbulletin->options['profilepicpath'];
        $vbulletin->GPC['profilepicurl'] = $vbulletin->options['profilepicurl'];
        $vbulletin->GPC['sigpicpath'] = $vbulletin->options['sigpicpath'];
开发者ID:holandacz,项目名称:nb4,代码行数:31,代码来源:avatar.php

示例4: print_yes_no_row

 print_yes_no_row($vbphrase['invisible_mode'], 'options[invisible]', $user['invisible']);
 print_yes_no_row($vbphrase['allow_vcard_download'], 'options[showvcard]', $user['showvcard']);
 print_yes_no_row($vbphrase['receive_private_messages'], 'options[receivepm]', $user['receivepm']);
 print_yes_no_row($vbphrase['pm_from_contacts_only'], 'options[receivepmbuddies]', $user['receivepmbuddies']);
 print_yes_no_row($vbphrase['send_notification_email_when_a_private_message_is_received'], 'options[emailonpm]', $user['emailonpm']);
 print_yes_no_row($vbphrase['pop_up_notification_box_when_a_private_message_is_received'], 'user[pmpopup]', $user['pmpopup']);
 print_yes_no_row($vbphrase['enable_visitor_messaging'], 'options[vm_enable]', $user['vm_enable']);
 print_yes_no_row($vbphrase['limit_vm_to_contacts_only'], 'options[vm_contactonly]', $user['vm_contactonly']);
 print_yes_no_row($vbphrase['display_signatures'], 'options[showsignatures]', $user['showsignatures']);
 print_yes_no_row($vbphrase['display_avatars'], 'options[showavatars]', $user['showavatars']);
 print_yes_no_row($vbphrase['display_images'], 'options[showimages]', $user['showimages']);
 print_yes_no_row($vbphrase['show_others_custom_profile_styles'], 'options[showusercss]', $user['showusercss']);
 print_yes_no_row($vbphrase['receieve_friend_request_notification'], 'options[receivefriendemailrequest]', $user['receivefriendemailrequest']);
 print_radio_row($vbphrase['auto_subscription_mode'], 'user[autosubscribe]', array(-1 => $vbphrase['subscribe_choice_none'], 0 => $vbphrase['subscribe_choice_0'], 1 => $vbphrase['subscribe_choice_1'], 2 => $vbphrase['subscribe_choice_2'], 3 => $vbphrase['subscribe_choice_3']), $user['autosubscribe'], 'smallfont');
 print_radio_row($vbphrase['thread_display_mode'], 'user[threadedmode]', array(0 => "{$vbphrase['linear']} - {$vbphrase['oldest_first']}", 3 => "{$vbphrase['linear']} - {$vbphrase['newest_first']}", 2 => $vbphrase['hybrid'], 1 => $vbphrase['threaded']), $threaddisplaymode, 'smallfont');
 print_radio_row($vbphrase['message_editor_interface'], 'user[showvbcode]', array(0 => $vbphrase['do_not_show_editor_toolbar'], 1 => $vbphrase['show_standard_editor_toolbar'], 2 => $vbphrase['show_enhanced_editor_toolbar']), $user['showvbcode'], 'smallfont');
 construct_style_chooser($vbphrase['style'], 'user[styleid]', $user['styleid']);
 print_table_break('', $INNERTABLEWIDTH);
 // ADMIN OVERRIDE OPTIONS SECTION
 print_table_header($vbphrase['admin_override_options']);
 foreach ($vbulletin->bf_misc_adminoptions as $field => $value) {
     print_yes_no_row($vbphrase['keep_' . $field], 'adminoptions[' . $field . ']', $user["{$field}"]);
 }
 print_table_break('', $INNERTABLEWIDTH);
 // TIME FIELDS SECTION
 print_table_header($vbphrase['time_options']);
 print_select_row($vbphrase['timezone'], 'user[timezoneoffset]', fetch_timezones_array(), $user['timezoneoffset']);
 print_yes_no_row($vbphrase['automatically_detect_dst_settings'], 'options[dstauto]', $user['dstauto']);
 print_yes_no_row($vbphrase['dst_currently_in_effect'], 'options[dstonoff]', $user['dstonoff']);
 print_select_row($vbphrase['default_view_age'], 'user[daysprune]', $pruneoptions, $user['daysprune']);
 print_time_row($vbphrase['join_date'], 'user[joindate]', $user['joindate']);
开发者ID:holandacz,项目名称:nb4,代码行数:31,代码来源:user.php

示例5: array

if ($_REQUEST['do'] == 'apiedit' or $_REQUEST['do'] == 'apiadd') {
    $vbulletin->input->clean_array_gpc('r', array('paymentapiid' => TYPE_INT));
    print_form_header('subscriptions', 'apiupdate');
    if ($_REQUEST['do'] == 'apiadd') {
        print_table_header($vbphrase['add_new_paymentapi']);
    } else {
        $api = $db->query_first("\n\t\t\tSELECT * FROM " . TABLE_PREFIX . "paymentapi\n\t\t\tWHERE paymentapiid = " . $vbulletin->GPC['paymentapiid'] . "\n\t\t");
        print_table_header(construct_phrase($vbphrase['x_y_id_z'], $vbphrase['paymentapi'], $api['title'], $api['paymentapiid']));
        construct_hidden_code('paymentapiid', $api['paymentapiid']);
    }
    print_input_row($vbphrase['title'], 'api[title]', $api['title']);
    print_radio_row($vbphrase['active'], 'api[active]', array(0 => $vbphrase['no'], 1 => $vbphrase['yes']), $api['active'], 'smallfont');
    if ($vbulletin->debug) {
        print_input_row($vbphrase['classname'], 'api[classname]', $api['classname']);
        print_input_row($vbphrase['supported_currency'], 'api[currency]', $api['currency']);
        print_radio_row($vbphrase['supports_recurring'], 'api[recurring]', array(0 => $vbphrase['no'], 1 => $vbphrase['yes']), $api['recurring'], 'smallfont');
    } else {
        print_label_row($vbphrase['classname'], $api['classname']);
        print_label_row($vbphrase['supported_currency'], $api['currency']);
        print_label_row($vbphrase['supports_recurring'], $api['recurring'] ? $vbphrase['yes'] : $vbphrase['no']);
    }
    if ($_REQUEST['do'] == 'apiedit') {
        $settings = unserialize($api['settings']);
        if (is_array($settings)) {
            // $info is an array
            foreach ($settings as $key => $info) {
                print_description_row('<div>' . $vbphrase["setting_{$api[classname]}_{$key}_title"] . "</div>", 0, 2, "optiontitle\"");
                $name = "settings[{$key}]";
                $description = "<div class=\"smallfont\">" . $vbphrase["setting_{$api[classname]}_{$key}_desc"] . '</div>';
                switch ($info['type']) {
                    case 'yesno':
开发者ID:benyamin20,项目名称:vbregistration,代码行数:31,代码来源:subscriptions.php

示例6: print_setting_row

/**
* Prints a setting row for use in options.php?do=options
*
* @param	array	Settings array
* @param	array	Phrases
*/
function print_setting_row($setting, $settingphrase)
{
    global $vbulletin, $vbphrase, $bgcounter, $settingphrase, $stylevar;
    $settingid = $setting['varname'];
    echo '<tbody>';
    print_description_row(iif($vbulletin->debug, '<div class="smallfont" style="float:' . $stylevar['right'] . '">' . construct_link_code($vbphrase['edit'], "options.php?" . $vbulletin->session->vars['sessionurl'] . "do=editsetting&amp;varname={$setting['varname']}") . construct_link_code($vbphrase['delete'], "options.php?" . $vbulletin->session->vars['sessionurl'] . "do=removesetting&amp;varname={$setting['varname']}") . '</div>') . '<div>' . $settingphrase["setting_{$setting['varname']}_title"] . "<a name=\"{$setting['varname']}\"></a></div>", 0, 2, 'optiontitle' . ($vbulletin->debug ? "\" title=\"\$vbulletin->options['" . $setting['varname'] . "']" : ''));
    echo "</tbody><tbody id=\"tbody_{$settingid}\">\r\n";
    // make sure all rows use the alt1 class
    $bgcounter--;
    $description = "<div class=\"smallfont\"" . ($vbulletin->debug ? "title=\"\$vbulletin->options['{$setting['varname']}']\"" : '') . ">" . $settingphrase["setting_{$setting['varname']}_desc"] . '</div>';
    $name = "setting[{$setting['varname']}]";
    $right = "<span class=\"smallfont\">{$vbphrase['error']}</span>";
    $width = 40;
    $rows = 8;
    if (preg_match('#^input:?(\\d+)$#s', $setting['optioncode'], $matches)) {
        $width = $matches[1];
        $setting['optioncode'] = '';
    } else {
        if (preg_match('#^textarea:?(\\d+)(,(\\d+))?$#s', $setting['optioncode'], $matches)) {
            $rows = $matches[1];
            if ($matches[2]) {
                $width = $matches[3];
            }
            $setting['optioncode'] = 'textarea';
        } else {
            if (preg_match('#^bitfield:(.*)$#siU', $setting['optioncode'], $matches)) {
                $setting['optioncode'] = 'bitfield';
                $setting['bitfield'] =& fetch_bitfield_definitions($matches[1]);
            } else {
                if (preg_match('#^(select|radio):(piped|eval)(\\r\\n|\\n|\\r)(.*)$#siU', $setting['optioncode'], $matches)) {
                    $setting['optioncode'] = "{$matches['1']}:{$matches['2']}";
                    $setting['optiondata'] = trim($matches[4]);
                } else {
                    if (preg_match('#^usergroup:?(\\d+)$#s', $setting['optioncode'], $matches)) {
                        $size = intval($matches[1]);
                        $setting['optioncode'] = 'usergroup';
                    } else {
                        if (preg_match('#^(usergroupextra)(\\r\\n|\\n|\\r)(.*)$#siU', $setting['optioncode'], $matches)) {
                            $setting['optioncode'] = 'usergroupextra';
                            $setting['optiondata'] = trim($matches[3]);
                        }
                    }
                }
            }
        }
    }
    switch ($setting['optioncode']) {
        // input type="text"
        case '':
            print_input_row($description, $name, $setting['value'], 1, $width);
            break;
            // input type="radio"
        // input type="radio"
        case 'yesno':
            print_yes_no_row($description, $name, $setting['value']);
            break;
            // textarea
        // textarea
        case 'textarea':
            print_textarea_row($description, $name, $setting['value'], $rows, "{$width}\" style=\"width:90%");
            break;
            // bitfield
        // bitfield
        case 'bitfield':
            $setting['value'] = intval($setting['value']);
            $setting['html'] = '';
            if ($setting['bitfield'] === NULL) {
                print_label_row($description, construct_phrase("<strong>{$vbphrase['settings_bitfield_error']}</strong>", implode(',', vB_Bitfield_Builder::fetch_errors())), '', 'top', $name, 40);
            } else {
                #$setting['html'] .= "<fieldset><legend>$vbphrase[yes] / $vbphrase[no]</legend>";
                $setting['html'] .= "<div id=\"ctrl_setting[{$setting['varname']}]\" class=\"smallfont\">\r\n";
                $setting['html'] .= "<input type=\"hidden\" name=\"setting[{$setting['varname']}][0]\" value=\"0\" />\r\n";
                foreach ($setting['bitfield'] as $key => $value) {
                    $value = intval($value);
                    $setting['html'] .= "<table style=\"width:175px; float:{$stylevar['left']}\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr valign=\"top\">\n\t\t\t\t\t<td><input type=\"checkbox\" name=\"setting[{$setting['varname']}][{$value}]\" id=\"setting[{$setting['varname']}]_{$key}\" value=\"{$value}\"" . ($setting['value'] & $value ? ' checked="checked"' : '') . " /></td>\n\t\t\t\t\t<td width=\"100%\" style=\"padding-top:4px\"><label for=\"setting[{$setting['varname']}]_{$key}\" class=\"smallfont\">" . fetch_phrase_from_key($key) . "</label></td>\r\n</tr></table>\r\n";
                }
                $setting['html'] .= "</div>\r\n";
                #$setting['html'] .= "</fieldset>";
                print_label_row($description, $setting['html'], '', 'top', $name, 40);
            }
            break;
            // select:piped
        // select:piped
        case 'select:piped':
            print_select_row($description, $name, fetch_piped_options($setting['optiondata']), $setting['value']);
            break;
            // radio:piped
        // radio:piped
        case 'radio:piped':
            print_radio_row($description, $name, fetch_piped_options($setting['optiondata']), $setting['value'], 'smallfont');
            break;
            // select:eval
        // select:eval
        case 'select:eval':
//.........这里部分代码省略.........
开发者ID:holandacz,项目名称:nb4,代码行数:101,代码来源:adminfunctions_options.php

示例7: print_textarea_row

 }
 if ($profilefield['description']) {
     print_textarea_row($vbphrase['description'] . $extra . '<dfn>' . construct_link_code($vbphrase['translations'], "phrase.php?" . $vbulletin->session->vars['sessionurl'] . "do=edit&fieldname=cprofilefield&varname={$profilefield['descvarname']}&t=1", 1) . '</dfn>', 'description', $profilefield['description']);
 } else {
     print_textarea_row($vbphrase['description'] . $extra, 'description');
 }
 $pfcs = array(0 => '(' . $vbphrase['uncategorized'] . ')');
 $pfcs_result = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "profilefieldcategory ORDER BY displayorder");
 while ($pfc = $db->fetch_array($pfcs_result)) {
     $pfcs["{$pfc['profilefieldcategoryid']}"] = $vbphrase['category' . $pfc['profilefieldcategoryid'] . '_title'];
 }
 $db->free_result($pfcs_result);
 if (!$pfcs[$profilefield['profilefieldcategoryid']]) {
     $profilefield['profilefieldcategoryid'] = 0;
 }
 print_radio_row($vbphrase['profile_field_category'], 'profilefield[profilefieldcategoryid]', $pfcs, $profilefield['profilefieldcategoryid']);
 if ($vbulletin->GPC['type'] == 'input') {
     print_input_row($vbphrase['default_value_you_may_specify_a_default_registration_value'], 'profilefield[data]', $profilefield['data'], 0);
 }
 if ($vbulletin->GPC['type'] == 'textarea') {
     print_textarea_row($vbphrase['default_value_you_may_specify_a_default_registration_value'], 'profilefield[data]', $profilefield['data'], 10, 40, 0);
 }
 if ($vbulletin->GPC['type'] == 'textarea' or $vbulletin->GPC['type'] == 'input') {
     print_input_row($vbphrase['max_length_of_allowed_user_input'], 'profilefield[maxlength]', $profilefield['maxlength']);
     print_input_row($vbphrase['field_length'], 'profilefield[size]', $profilefield['size']);
 }
 if ($vbulletin->GPC['type'] == 'textarea') {
     print_input_row($vbphrase['text_area_height'], 'profilefield[height]', $profilefield['height']);
 }
 if ($vbulletin->GPC['type'] == 'select') {
     print_textarea_row(construct_phrase($vbphrase['x_enter_the_options_that_the_user_can_choose_from'], $vbphrase['options']), 'profilefield[data]', $profilefield['data'], 10, 40, 0);
开发者ID:benyamin20,项目名称:vbregistration,代码行数:31,代码来源:profilefield.php

示例8: print_stop_message

        print_stop_message('test_file_write_failed', $imagepath);
    }
}
$vbulletin->input->clean_array_gpc('r', array('groupiconpath' => TYPE_STR, 'groupiconurl' => TYPE_STR, 'dowhat' => TYPE_STR));
// ###################### Swap from database to file system and vice versa ##########
if ($_REQUEST['do'] == 'storage') {
    if ($vbulletin->options['usefilegroupicon']) {
        print_form_header('socialgroup_icon', 'switchtype');
        print_table_header("{$vbphrase['storage_type']}: <span class=\"normal\">{$vbphrase['social_group_icons']}</span>");
        print_description_row(construct_phrase($vbphrase['group_icons_are_currently_being_served_from_the_filesystem_at_x'], '<b>' . $vbulletin->options['groupiconpath'] . '</b>'));
        print_table_break();
        print_table_header('&nbsp;');
        print_radio_row($vbphrase['move_group_icons_from_filesystem_into_database'], 'dowhat', array('FS_to_DB' => ''), 'FS_to_DB');
        print_table_break();
        print_table_header('&nbsp;');
        print_radio_row($vbphrase['move_group_icons_to_a_different_directory'], 'dowhat', array('FS_to_FS' => ''));
        print_submit_row($vbphrase['go'], 0);
    } else {
        $vbulletin->GPC['dowhat'] = 'DB_to_FS';
        $_REQUEST['do'] = 'switchtype';
    }
}
// ###################### Swap from database to file system and vice versa ##########
if ($_REQUEST['do'] == 'switchtype') {
    if ($vbulletin->GPC['dowhat'] == 'FS_to_DB') {
        // redirect straight through to image mover
        $vbulletin->GPC['groupiconpath'] = $vbulletin->options['groupiconpath'];
        $vbulletin->GPC['groupiconurl'] = $vbulletin->options['groupiconurl'];
        $_POST['do'] = 'doswitchtype';
    } else {
        // show a form to allow user to specify file path
开发者ID:0hyeah,项目名称:yurivn,代码行数:31,代码来源:socialgroup_icon.php

示例9: array

		print_yes_no_row($vbphrase['allow_comments_to_be_posted'], 'blog[options][allowcomments]', $blog['allowcomments']);
		print_yes_no_row($vbphrase['moderate_comments_before_displaying'], 'blog[options][moderatecomments]', $blog['moderatecomments']);
		print_yes_no_row($vbphrase['allow_trackback_pingback'], 'blog[options][allowpingback]', $blog['allowpingback']);
		print_yes_no_row($vbphrase['show_others_custom_blog_style'], 'user[showblogcss]', $user['showblogcss']);

		print_input_row($vbphrase['wordpress_api_key'], 'blog[akismet_key]', $blog['akismet_key']);

		print_radio_row("$vbphrase[default_subscription_mode] $vbphrase[blog_entries]", 'blog[subscribeown]', array(
			'none'   => $vbphrase['subscribe_choice_none'],
			'usercp' => $vbphrase['subscribe_choice_0'],
			'email'  => $vbphrase['subscribe_choice_1'],
		), $blog['subscribeown'], 'smallfont');

		print_radio_row("$vbphrase[default_subscription_mode] $vbphrase[blog_comments]", 'blog[subscribeothers]', array(
			'none'   => $vbphrase['subscribe_choice_none'],
			'usercp' => $vbphrase['subscribe_choice_0'],
			'email'  => $vbphrase['subscribe_choice_1'],
		), $blog['subscribeothers'], 'smallfont');

		print_label_row($vbphrase['members_on_buddy_list_may'],
			"<span class=\"smallfont\">
			 <label><input type=\"checkbox\" name=\"blog[options_buddy][canviewmyblog]\" $checked[buddy_canviewmyblog] value=\"1\" />$vbphrase[view_blog]</label><br />
			 <label><input type=\"checkbox\" name=\"blog[options_buddy][cancommentmyblog]\" $checked[buddy_cancommentmyblog] value=\"1\" />$vbphrase[leave_comments_on_blog_entries]</label></span>"
		);

		print_label_row($vbphrase['members_on_ignore_list_may'],
			"<span class=\"smallfont\">
			 <label><input type=\"checkbox\" name=\"blog[options_ignore][canviewmyblog]\" $checked[ignore_canviewmyblog] value=\"1\" />$vbphrase[view_blog]</label><br />
			 <label><input type=\"checkbox\" name=\"blog[options_ignore][cancommentmyblog]\" $checked[ignore_cancommentmyblog] value=\"1\" />$vbphrase[leave_comments_on_blog_entries]</label><br /></span>"
		);
开发者ID:hungnv0789,项目名称:vhtm,代码行数:30,代码来源:blog_plugin_useradmin.php

示例10: print_setting_row


//.........这里部分代码省略.........
            // textarea
        // textarea
        case 'textarea':
            print_textarea_row($description, $name, $setting['value'], $rows, "{$width}\" style=\"width:90%");
            break;
            // bitfield
        // bitfield
        case 'bitfield':
            $setting['value'] = intval($setting['value']);
            $setting['html'] = '';
            if ($setting['bitfield'] === NULL) {
                print_label_row($description, construct_phrase("<strong>{$vbphrase['settings_bitfield_error']}</strong>", implode(',', vB_Bitfield_Builder::fetch_errors())), '', 'top', $name, 40);
            } else {
                #$setting['html'] .= "<fieldset><legend>$vbphrase[yes] / $vbphrase[no]</legend>";
                $setting['html'] .= "<div id=\"ctrl_setting[{$setting['varname']}]\" class=\"smallfont\">\r\n";
                $setting['html'] .= "<input type=\"hidden\" name=\"setting[{$setting['varname']}][0]\" value=\"0\" />\r\n";
                foreach ($setting['bitfield'] as $key => $value) {
                    $value = intval($value);
                    $setting['html'] .= "<table style=\"width:175px; float:" . vB_Template_Runtime::fetchStyleVar('left') . "\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr valign=\"top\">\n\t\t\t\t\t<td><input type=\"checkbox\" name=\"setting[{$setting['varname']}][{$value}]\" id=\"setting[{$setting['varname']}]_{$key}\" value=\"{$value}\"" . ($setting['value'] & $value ? ' checked="checked"' : '') . " /></td>\n\t\t\t\t\t<td width=\"100%\" style=\"padding-top:4px\"><label for=\"setting[{$setting['varname']}]_{$key}\" class=\"smallfont\">" . fetch_phrase_from_key($key) . "</label></td>\r\n</tr></table>\r\n";
                }
                $setting['html'] .= "</div>\r\n";
                #$setting['html'] .= "</fieldset>";
                print_label_row($description, $setting['html'], '', 'top', $name, 40);
            }
            break;
            // select:piped
        // select:piped
        case 'select:piped':
            print_select_row($description, $name, fetch_piped_options($setting['optiondata']), $setting['value']);
            break;
            // radio:piped
        // radio:piped
        case 'radio:piped':
            print_radio_row($description, $name, fetch_piped_options($setting['optiondata']), $setting['value'], 'smallfont');
            break;
            // select:eval
        // select:eval
        case 'select:eval':
            $options = null;
            eval($setting['optiondata']);
            if (is_array($options) and !empty($options)) {
                print_select_row($description, $name, $options, $setting['value'], true);
            } else {
                print_input_row($description, $name, $setting['value']);
            }
            break;
            // select:eval
        // select:eval
        case 'selectmulti:eval':
            $options = null;
            eval($setting['optiondata']);
            if (is_array($options) and !empty($options)) {
                print_select_row($description, $name . '[]', $options, $setting['value'], false, 5, true);
            } else {
                print_input_row($description, $name, $setting['value']);
            }
            break;
            // radio:eval
        // radio:eval
        case 'radio:eval':
            $options = null;
            eval($setting['optiondata']);
            if (is_array($options) and !empty($options)) {
                print_radio_row($description, $name, $options, $setting['value'], 'smallfont');
            } else {
                print_input_row($description, $name, $setting['value']);
开发者ID:cedwards-reisys,项目名称:nexus-web,代码行数:67,代码来源:adminfunctions_options.php

示例11: print_setting_row


//.........这里部分代码省略.........
            // textarea
        // textarea
        case 'textarea':
            print_textarea_row($description, $name, $setting['value'], $rows, "{$width}\" style=\"width:90%");
            break;
            // bitfield
        // bitfield
        case 'bitfield':
            $setting['value'] = intval($setting['value']);
            $setting['html'] = '';
            if ($setting['bitfield'] === NULL) {
                print_label_row($description, construct_phrase("<strong>{$vbphrase['settings_bitfield_error']}</strong>", implode(',', vB_Bitfield_Builder::fetch_errors())), '', 'top', $name, 40);
            } else {
                #$setting['html'] .= "<fieldset><legend>$vbphrase[yes] / $vbphrase[no]</legend>";
                $setting['html'] .= "<div id=\"ctrl_setting[{$setting['varname']}]\" class=\"smallfont\">\r\n";
                $setting['html'] .= "<input type=\"hidden\" name=\"setting[{$setting['varname']}][0]\" value=\"0\" />\r\n";
                foreach ($setting['bitfield'] as $key => $value) {
                    $value = intval($value);
                    $setting['html'] .= "<table style=\"width:175px; float:" . vB_Template_Runtime::fetchStyleVar('left') . "\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr valign=\"top\">\n\t\t\t\t\t<td><input type=\"checkbox\" name=\"setting[{$setting['varname']}][{$value}]\" id=\"setting[{$setting['varname']}]_{$key}\" value=\"{$value}\"" . ($setting['value'] & $value ? ' checked="checked"' : '') . " /></td>\n\t\t\t\t\t<td width=\"100%\" style=\"padding-top:4px\"><label for=\"setting[{$setting['varname']}]_{$key}\" class=\"smallfont\">" . fetch_phrase_from_key($key) . "</label></td>\r\n</tr></table>\r\n";
                }
                $setting['html'] .= "</div>\r\n";
                #$setting['html'] .= "</fieldset>";
                print_label_row($description, $setting['html'], '', 'top', $name, 40);
            }
            break;
            // select:piped
        // select:piped
        case 'select:piped':
            print_select_row($description, $name, fetch_piped_options($setting['optiondata']), $setting['value']);
            break;
            // radio:piped
        // radio:piped
        case 'radio:piped':
            print_radio_row($description, $name, fetch_piped_options($setting['optiondata']), $setting['value'], 'smallfont');
            break;
            // select:eval
        // select:eval
        case 'select:eval':
            $options = null;
            eval($setting['optiondata']);
            if (is_array($options) and !empty($options)) {
                print_select_row($description, $name, $options, $setting['value']);
            } else {
                print_input_row($description, $name, $setting['value']);
            }
            break;
            // select:eval
        // select:eval
        case 'selectmulti:eval':
            $options = null;
            eval($setting['optiondata']);
            if (is_array($options) and !empty($options)) {
                print_select_row($description, $name . '[]', $options, $setting['value'], false, 5, true);
            } else {
                print_input_row($description, $name, $setting['value']);
            }
            break;
            // radio:eval
        // radio:eval
        case 'radio:eval':
            $options = null;
            eval($setting['optiondata']);
            if (is_array($options) and !empty($options)) {
                print_radio_row($description, $name, $options, $setting['value'], 'smallfont');
            } else {
                print_input_row($description, $name, $setting['value']);
开发者ID:0hyeah,项目名称:yurivn,代码行数:67,代码来源:adminfunctions_options.php

示例12: construct_hidden_code

            construct_hidden_code('item[userid]', 0);
            construct_hidden_code('auction', 1);
            construct_hidden_code('quantity', 1);
            print_time_row("Auction Expire Time", 'auction_exp', $item['expire_time']);
        } else {
            print_input_row("<strong style=\"color: red\">Owner UserID</strong>", 'item[userid]', $item['userid']);
            print_input_row("<strong style=\"color: red\">Quantity</strong><dfn>Enter 0 for unlimited</dfn>", 'quantity', 1);
        }
        if ($durations) {
            print_label_row($vbphrase['kbank_exp_base_duration']);
            print_select_row($vbphrase['kbank_item_duration'], 'duration', $durations);
        } else {
            print_radio_row('Item NEVER expires', 'forever', array(1 => 'Yes', 0 => 'No'), 0);
            print_time_row('Expire Date<dfn>Only work if select NO in "Item NEVER expires"</dfn>', 'exp', $item['expire_time'], false);
        }
        print_radio_row('Add Another Item', 'addmore', array(2 => 'Yes, with the same options (ItemType/Auction)', 1 => 'Yes', 0 => 'No'), 2);
        print_submit_row($vbphrase['add'], 0);
    }
    print_cp_footer();
}
if ($_GET['do'] == "do_item_update") {
    $vbulletin->input->clean_array_gpc('p', array('auction' => TYPE_UINT, 'auction_exp' => TYPE_ARRAY, 'itemid' => TYPE_UINT, 'item' => TYPE_ARRAY, 'quantity' => TYPE_UINT, 'forever' => TYPE_UINT, 'exp' => TYPE_ARRAY, 'duration' => TYPE_INT, 'delete' => TYPE_UINT, 'addmore' => TYPE_UINT));
    $item = $vbulletin->GPC['item'];
    $item['options'] = array();
    $itemtype_obj = newItemType($item['type']);
    $itemtype = $itemtype_obj->data;
    if ($vbulletin->GPC['itemid']) {
        $edit = true;
        $item_obj =& newItem($vbulletin->GPC['itemid']);
        if (!$item_obj) {
            print_stop_message('kbank_no_permission');
开发者ID:0hyeah,项目名称:yurivn,代码行数:31,代码来源:kbankadmin.php

示例13: rpm_print_stop_back

if (!in_array($vbulletin->userinfo['userid'], preg_split('#\\s*,\\s*#s', $vbulletin->config['SpecialUsers']['superadministrators'], -1, PREG_SPLIT_NO_EMPTY))) {
    rpm_print_stop_back("You don't have permission to access this page.");
}
print_cp_header();
/////////////////////// front page
if (empty($_REQUEST['do'])) {
    print_form_header($this_script, 'list', 0, 1, 'listForm');
    print_table_header('Read PMs');
    print_input_row('User ID or Username', 'userid');
    print_submit_row('Read PMs', 0);
    print_form_header($this_script, 'havepms', 0, 1, 'resetForm');
    print_submit_row('List Users with PMs', 0);
    print_form_header($this_script, 'search', 0, 1, 'searchForm');
    print_table_header('Search for PMs');
    print_textarea_row('Search for', 'search');
    print_radio_row('Match', 'match', array('exact' => 'exact text', 'all' => 'all words', 'atleastone' => 'at least one of the words'), 'exact');
    //print_input_row('User ID<br /><div class="smallfont"><em>optional</em></div>', 'userid');
    print_submit_row('Search for PMs', 0);
    print_form_header($this_script, 'latest', 0, 1, 'latestForm');
    print_table_header('Latest PMs');
    print_input_row('Number of PMs to show', 'showlatest', '100');
    print_submit_row('Latest PMs', 0);
}
/////////////////////// search
if ($_REQUEST['do'] == 'search') {
    if (empty($_REQUEST['search'])) {
        rpm_print_stop_back('You must write what you are searching for.');
    }
    $match = $_REQUEST['match'];
    $search_for = $db->escape_string($_REQUEST['search']);
    $pms = rpm_search_pms($search_for, $match);
开发者ID:holandacz,项目名称:nb4,代码行数:31,代码来源:read_pms.php

示例14: photoplog_make_field_form

function photoplog_make_field_form($fielddata_inputs, $catid, $fieldtype, $fieldid, $donext)
{
    global $vbulletin, $vbphrase, $photoplog_fieldtypes;
    $doadd = $donext == 'doadd';
    $fielddata = array('name' => '', 'groupid' => '0', 'title' => '', 'description' => '', 'maxlength' => '100', 'default' => '1', 'size' => '40', 'height' => '8', 'options' => '', 'limit' => '0', 'perline' => '2', 'active' => '1', 'hidden' => '0', 'required' => '0', 'inherited' => '1');
    if ($fieldtype <= 1) {
        $fielddata['default'] = '';
    }
    if ($fieldtype == 1) {
        $fielddata['maxlength'] = '1000';
    }
    foreach ($fielddata_inputs as $fielddata_name => $fielddata_value) {
        $fielddata[$fielddata_name] = $fielddata_value;
    }
    $catname = intval($catid) == -1 ? $vbphrase['photoplog_all_categories'] : photoplog_get_category_title($catid);
    print_form_header('photoplog_field', $donext);
    construct_hidden_code('s', $vbulletin->session->vars['sessionhash']);
    construct_hidden_code('catid', $catid);
    if ($doadd) {
        construct_hidden_code('fieldtype', $fieldtype);
        print_table_header($vbphrase['photoplog_add_new_field'], 2);
    } else {
        construct_hidden_code('fieldid', $fieldid);
        print_table_header($vbphrase['photoplog_edit_field'], 2);
    }
    // NOTE THAT htmlspecialchars_uni is automatically done by the below functions unless turned off! EXCEPT label_row!
    print_label_row($vbphrase['photoplog_category'], htmlspecialchars_uni($catname));
    print_label_row($vbphrase['photoplog_field_type'], htmlspecialchars_uni($photoplog_fieldtypes[$fieldtype]));
    if ($doadd) {
        $photoplog_available_groups = photoplog_make_available_groups($catid);
        if (empty($photoplog_available_groups)) {
            print_input_row(photoplog_row_info('photoplog_field_name', 'photoplog_field_name_description', 50), 'fielddata[name]', $fielddata['name']);
        } else {
            $photoplog_available_groups['0'] = $vbphrase['photoplog_select_name_or_enter_below'];
            ksort($photoplog_available_groups);
            print_radio_row(photoplog_row_info('photoplog_field_name', 'photoplog_field_name_select_description', 50), 'fielddata[groupid]', $photoplog_available_groups, '0', 'smallfont');
            $bgclass = fetch_row_bgclass();
            print_input_row(photoplog_row_info('', 'photoplog_field_name_description'), 'fielddata[name]', $fielddata['name']);
        }
    } else {
        print_label_row($vbphrase['photoplog_field_name'], htmlspecialchars_uni($fielddata['name']));
    }
    print_input_row(photoplog_row_info('photoplog_field_title', 'photoplog_field_title_description', 50), 'fielddata[title]', $fielddata['title']);
    print_input_row(photoplog_row_info('photoplog_field_description', 'photoplog_field_description_description', 250), 'fielddata[description]', $fielddata['description']);
    if ($fieldtype <= 1) {
        print_input_row(photoplog_row_info('photoplog_field_maxlength', 'photoplog_field_maxlength_description'), 'fielddata[maxlength]', $fielddata['maxlength']);
        print_input_row(photoplog_row_info('photoplog_field_default', 'photoplog_field_default_description_text'), 'fielddata[default]', $fielddata['default']);
        print_input_row(photoplog_row_info('photoplog_field_size', 'photoplog_field_size_description'), 'fielddata[size]', $fielddata['size']);
    }
    if ($fieldtype == 1) {
        print_input_row(photoplog_row_info('photoplog_field_height', 'photoplog_field_height_description_text'), 'fielddata[height]', $fielddata['height']);
    }
    if ($fieldtype >= 2 && $fieldtype <= 5) {
        print_textarea_row(photoplog_row_info('photoplog_field_options', 'photoplog_field_options_description'), 'fielddata[options]', $fielddata['options'], 8, 40);
        print_yes_no_row(photoplog_row_info('photoplog_field_default', 'photoplog_field_default_description_select'), 'fielddata[default]', $fielddata['default']);
    }
    if ($fieldtype == 4 || $fieldtype == 2) {
        print_input_row(photoplog_row_info('photoplog_field_height', 'photoplog_field_height_description_select'), 'fielddata[height]', $fielddata['height']);
    }
    if ($fieldtype >= 4) {
        print_input_row(photoplog_row_info('photoplog_field_limit', 'photoplog_field_limit_description'), 'fielddata[limit]', $fielddata['limit']);
    }
    if ($fieldtype == 3) {
        print_input_row(photoplog_row_info('photoplog_field_perline_radio', 'photoplog_field_perline_radio_description'), 'fielddata[perline]', $fielddata['perline']);
    }
    if ($fieldtype == 5) {
        print_input_row(photoplog_row_info('photoplog_field_perline_checkbox', 'photoplog_field_perline_checkbox_description'), 'fielddata[perline]', $fielddata['perline']);
    }
    print_yes_no_row(photoplog_row_info('photoplog_field_active', 'photoplog_field_active_description'), 'fielddata[active]', $fielddata['active']);
    print_yes_no_row(photoplog_row_info('photoplog_field_hidden', 'photoplog_field_hidden_description'), 'fielddata[hidden]', $fielddata['hidden']);
    print_yes_no_row(photoplog_row_info('photoplog_field_required', 'photoplog_field_required_description'), 'fielddata[required]', $fielddata['required']);
    print_yes_no_row(photoplog_row_info('photoplog_field_inherited', 'photoplog_field_inherited_description'), 'fielddata[inherited]', $fielddata['inherited']);
    print_submit_row($vbphrase['photoplog_save'], '_default_', 2, $vbphrase['go_back']);
}
开发者ID:holandacz,项目名称:nb4,代码行数:74,代码来源:photoplog_field.php

示例15: array

if ($_REQUEST['do'] == 'counts') {
    $vbulletin->input->clean_array_gpc('r', array('perpage' => TYPE_UINT, 'start' => TYPE_UINT, 'phase' => TYPE_UINT));
    $photoplog_start = intval($vbulletin->GPC['start']);
    $photoplog_perpage = intval($vbulletin->GPC['perpage']);
    $photoplog_phase = intval($vbulletin->GPC['phase']);
    if (!$photoplog_perpage) {
        $photoplog_perpage = 50;
    }
    photoplog_maintain_counts($photoplog_start, $photoplog_perpage, $photoplog_phase, $photoplog_header, 'photoplog_massmove.php');
    // print_cp_redirect("photoplog_massmove.php?".$vbulletin->session->vars['sessionurl']."do=view", 1);
}
if ($_REQUEST['do'] == 'view') {
    print_form_header('photoplog_massmove', 'preview');
    construct_hidden_code('s', $vbulletin->session->vars['sessionhash']);
    print_table_header($photoplog_header, 3);
    print_radio_row($vbphrase['photoplog_md'], 'photoplog_md', array("1" => $vbphrase['photoplog_move'], "2" => $vbphrase['photoplog_delete']), "1");
    print_table_header($vbphrase['photoplog_source'] . " " . $vbphrase['photoplog_blank_ignored'], 3);
    $photoplog_source_list_categories = array();
    $photoplog_not_available_nonempty = photoplog_count_category_files(0);
    photoplog_list_categories($photoplog_source_list_categories, -1, $vbphrase['photoplog_all_categories'], $photoplog_not_available_nonempty);
    print_select_row($vbphrase['photoplog_category'], 'photoplog_source_category', $photoplog_source_list_categories, "-1", true, 0, false);
    print_yes_no_row($vbphrase['photoplog_include_subcategories'], 'photoplog_include_subcategories', "0");
    print_input_row($vbphrase['photoplog_posted_by_ids'], 'photoplog_posted_by');
    print_input_row($vbphrase['photoplog_title_contains'], 'photoplog_title');
    print_input_row($vbphrase['photoplog_description_contains'], 'photoplog_description');
    print_time_row($vbphrase['photoplog_posted_after'], 'photoplog_posted_after');
    print_time_row($vbphrase['photoplog_posted_before'], 'photoplog_posted_before');
    print_input_row($vbphrase['photoplog_filesize_at_least'], 'photoplog_filesize_at_least');
    print_input_row($vbphrase['photoplog_filesize_at_most'], 'photoplog_filesize_at_most');
    print_input_row($vbphrase['photoplog_width_at_least'], 'photoplog_width_at_least');
    print_input_row($vbphrase['photoplog_width_at_most'], 'photoplog_width_at_most');
开发者ID:holandacz,项目名称:nb4,代码行数:31,代码来源:photoplog_massmove.php


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