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


PHP showtagfooter函数代码示例

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


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

示例1: showtips

 if (!submitcheck('splitsubmit')) {
     showtips('postsplit_manage_tips');
     showformheader('postsplit&operation=split&tableid=' . $tableid);
     showtableheader();
     showsetting('postsplit_from', '', '', getposttable($tableid) . (!empty($posttable_info[$tableid]['memo']) ? '(' . $posttable_info[$tableid]['memo'] . ')' : ''));
     $tablelist = '<option value="-1">' . cplang('postsplit_create') . '</option>';
     foreach ($posttable_info as $tid => $info) {
         if ($tableid != $tid) {
             $tablestatus = gettablestatus(DB::table(getposttable($tid)));
             $tablelist .= '<option value="' . $tid . '">' . ($info['memo'] ? $info['memo'] : 'forum_post' . ($tid ? '_' . $tid : '')) . '(' . $tablestatus['Data_length'] . ')' . '</option>';
         }
     }
     showsetting('postsplit_to', '', '', '<select onchange="if(this.value >= 0) {$(\'tableinfo\').style.display = \'none\';} else {$(\'tableinfo\').style.display = \'\';}" name="targettable">' . $tablelist . '</select>');
     showtagheader('tbody', 'tableinfo', true, 'sub');
     showsetting('postsplit_manage_table_memo', "memo", '', 'text');
     showtagfooter('tbody');
     $datasize = round($status['Data_length'] / 1048576);
     $maxsize = round(($datasize - ($tableid ? 0 : 300)) / 100);
     $maxi = $maxsize > 10 ? 10 : ($maxsize < 1 ? 1 : $maxsize);
     for ($i = 1; $i <= $maxi; $i++) {
         $movesize = $i == 10 ? 1024 : $i * 100;
         $maxsizestr .= '<option value="' . $movesize . '">' . ($i == 10 ? sizecount($movesize * 1048576) : $movesize . 'MB') . '</option>';
     }
     showsetting('postsplit_move_size', '', '', '<select name="movesize">' . $maxsizestr . '</select>');
     showsubmit('splitsubmit', 'postsplit_manage_submit');
     showtablefooter();
     showformfooter();
 } else {
     $targettable = intval($_G['gp_targettable']);
     $createtable = false;
     if ($targettable == -1) {
开发者ID:v998,项目名称:discuzx-en,代码行数:31,代码来源:admincp_postsplit.php

示例2: foreach

                     foreach (C::t('forum_attachment_n')->fetch_all_by_id('tid:' . $thread['tid'], 'tid', $thread['tid']) as $attach) {
                         $_G['setting']['attachurl'] = $attach['remote'] ? $_G['setting']['ftp']['attachurl'] : $_G['setting']['attachurl'];
                         $attach['url'] = $attach['isimage'] ? " {$attach['filename']} (" . sizecount($attach['filesize']) . ")<br /><br /><img src=\"" . $_G['setting']['attachurl'] . "forum/{$attach['attachment']}\" onload=\"if(this.width > 100) {this.resized=true; this.width=100;}\">" : "<a href=\"" . $_G['setting']['attachurl'] . "forum/{$attach['attachment']}\" target=\"_blank\">{$attach['filename']}</a> (" . sizecount($attach['filesize']) . ")";
                         $thread['message'] .= "<br /><br />{$lang['attachment']}: " . attachtype(fileext($attach['filename']) . "\t") . $attach['url'];
                     }
                 }
                 showtablerow("id=\"mod_{$thread['tid']}_row1\"", array('rowspan="3" class="rowform threadopt" style="width:80px;"', 'class="threadtitle"'), array("<ul class=\"nofloat\"><li><input class=\"radio\" type=\"radio\" name=\"moderate[{$thread['tid']}]\" id=\"mod_{$thread['tid']}_1\" value=\"delete\" " . (empty($disabledstr) ? "checked=\"checked\"" : '') . " {$disabledstr} /><label for=\"mod_{$thread['tid']}_1\">{$lang['delete']}</label></li><li><input class=\"radio\" type=\"radio\" name=\"moderate[{$thread['tid']}]\" id=\"mod_{$thread['tid']}_2\" value=\"undelete\" {$disabledstr}/><label for=\"mod_{$thread['tid']}_2\">{$lang['undelete']}</label></li><li><input class=\"radio\" type=\"radio\" name=\"moderate[{$thread['tid']}]\" id=\"mod_{$thread['tid']}_3\" value=\"ignore\" {$disabledstr}/><label for=\"mod_{$thread['tid']}_3\">{$lang['ignore']}</label></li></ul>", "<h3><a href=\"forum.php?mod=forumdisplay&fid={$thread['fid']}\" target=\"_blank\">{$thread['forumname']}</a> &raquo; {$thread['subject']}</h3><p><span class=\"bold\">{$lang['author']}:</span> <a href=\"home.php?mod=space&uid={$thread['authorid']}\" target=\"_blank\">{$thread['author']}</a> &nbsp;&nbsp; <span class=\"bold\">{$lang['time']}:</span> {$thread['dateline']} &nbsp;&nbsp; {$lang['threads_replies']}: {$thread['replies']} {$lang['threads_views']}: {$thread['views']}</p>"));
                 showtablerow("id=\"mod_{$thread['tid']}_row2\"", 'colspan="2" style="padding: 10px; line-height: 180%;"', '<div style="overflow: auto; overflow-x: hidden; max-height:120px; height:auto !important; height:120px; word-break: break-all;">' . $thread['message'] . '</div>');
                 showtablerow("id=\"mod_{$thread['tid']}_row3\"", 'class="threadopt threadtitle" colspan="2"', "{$lang['operator']}: <a href=\"home.php?mod=space&uid={$thread['moduid']}\" target=\"_blank\">{$thread['modusername']}</a> &nbsp;&nbsp; {$lang['recyclebin_delete_time']}: {$thread['moddateline']}&nbsp;&nbsp; {$lang['reason']}: {$thread['reason']}");
             }
         }
         showsubmit('rbsubmit', 'submit', '', '<a href="#rb" onclick="checkAll(\'option\', $(\'rbform\'), \'delete\')">' . cplang('recyclebin_all_delete') . '</a> &nbsp;<a href="#rb" onclick="checkAll(\'option\', $(\'rbform\'), \'undelete\')">' . cplang('recyclebin_all_undelete') . '</a> &nbsp;<a href="#rb" onclick="checkAll(\'option\', $(\'rbform\'), \'ignore\')">' . cplang('recyclebin_all_ignore') . '</a> &nbsp;', $multi);
         showtablefooter();
         showformfooter();
         echo '<iframe name="rbframe" style="display:none"></iframe>';
         showtagfooter('div');
     }
 } else {
     $moderate = $_GET['moderate'];
     $moderation = array('delete' => array(), 'undelete' => array(), 'ignore' => array());
     if (is_array($moderate)) {
         foreach ($moderate as $tid => $action) {
             $moderation[$action][] = intval($tid);
         }
     }
     require_once libfile('function/delete');
     $threadsdel = deletethread($moderation['delete']);
     $threadsundel = undeletethreads($moderation['undelete']);
     if ($threadsdel || $threadsundel) {
         $cpmsg = cplang('recyclebin_succeed', array('threadsdel' => $threadsdel, 'threadsundel' => $threadsundel));
     } else {
开发者ID:tang86,项目名称:discuz-utf8,代码行数:31,代码来源:admincp_recyclebin.php

示例3: showsearchform


//.........这里部分代码省略.........
    showsetting('members_search_online', array('sid_noempty', array(array(1, $lang['yes']), array(0, $lang['no'])), 1), $_G['gp_online'], 'mradio');
    showsetting('members_search_lockstatus', array('status', array(array(-1, $lang['yes']), array(0, $lang['no'])), 1), $_G['gp_status'], 'mradio');
    showsetting('members_search_emailstatus', array('emailstatus', array(array(1, $lang['yes']), array(0, $lang['no'])), 1), $_G['gp_emailstatus'], 'mradio');
    showsetting('members_search_avatarstatus', array('avatarstatus', array(array(1, $lang['yes']), array(0, $lang['no'])), 1), $_G['gp_avatarstatus'], 'mradio');
    showsetting('members_search_email', 'email', $_G['gp_email'], 'text');
    showsetting("{$lang['credits']} {$lang['members_search_between']}", array("credits_low", "credits_high"), array($_G['gp_credits_low'], $_G['gp_credtis_high']), 'range');
    if (!empty($_G['setting']['extcredits'])) {
        foreach ($_G['setting']['extcredits'] as $id => $credit) {
            showsetting("{$credit['title']} {$lang['members_search_between']}", array("extcredits{$id}" . "_low", "extcredits{$id}" . "_high"), array($_G['gp_extcredits' . $id . '_low'], $_G['gp_extcredits' . $id . '_high']), 'range');
        }
    }
    showsetting('members_search_friendsrange', array('friends_low', 'friends_high'), array($_G['gp_friends_low'], $_G['gp_friends_high']), 'range');
    showsetting('members_search_postsrange', array('posts_low', 'posts_high'), array($_G['gp_posts_low'], $_G['gp_posts_high']), 'range');
    showsetting('members_search_regip', 'regip', $_G['gp_regip'], 'text');
    showsetting('members_search_lastip', 'lastip', $_G['gp_lastip'], 'text');
    showsetting('members_search_regdaterange', array('regdate_after', 'regdate_before'), array($_G['gp_regdate_after'], $_G['gp_regdate_before']), 'daterange');
    showsetting('members_search_lastvisitrange', array('lastvisit_after', 'lastvisit_before'), array($_G['gp_lastvisit_after'], $_G['gp_lastvisit_before']), 'daterange');
    showsetting('members_search_lastpostrange', array('lastpost_after', 'lastpost_before'), array($_G['gp_lastpost_after'], $_G['gp_lastpost_before']), 'daterange');
    showsetting('members_search_group_fid', 'fid', $_G['gp_fid'], 'text');
    if ($_G['setting']['verify']) {
        $verifydata = array();
        foreach ($_G['setting']['verify'] as $key => $value) {
            if ($value['available']) {
                $verifydata[] = array('verify' . $key, $value['title']);
            }
        }
        if (!empty($verifydata)) {
            showsetting('members_search_verify', array('verify', $verifydata), $_G['gp_verify'], 'mcheckbox');
        }
    }
    $yearselect = $monthselect = $dayselect = "<option value=\"\">" . cplang('nolimit') . "</option>\n";
    $yy = dgmdate(TIMESTAMP, 'Y');
    for ($y = $yy; $y >= $yy - 100; $y--) {
        $y = sprintf("%04d", $y);
        $yearselect .= "<option value=\"{$y}\" " . ($_G['gp_birthyear'] == $y ? 'selected' : '') . ">{$y}</option>\n";
    }
    for ($m = 1; $m <= 12; $m++) {
        $m = sprintf("%02d", $m);
        $monthselect .= "<option value=\"{$m}\" " . ($_G['gp_birthmonth'] == $m ? 'selected' : '') . ">{$m}</option>\n";
    }
    for ($d = 1; $d <= 31; $d++) {
        $d = sprintf("%02d", $d);
        $dayselect .= "<option value=\"{$d}\" " . ($_G['gp_birthday'] == $d ? 'selected' : '') . ">{$d}</option>\n";
    }
    showsetting('members_search_birthday', '', '', '<select class="txt" name="birthyear" style="width:75px; margin-right:0">' . $yearselect . '</select> ' . $lang['year'] . ' <select class="txt" name="birthmonth" style="width:75px; margin-right:0">' . $monthselect . '</select> ' . $lang['month'] . ' <select class="txt" name="birthday" style="width:75px; margin-right:0">' . $dayselect . '</select> ' . $lang['day']);
    loadcache('profilesetting');
    unset($_G['cache']['profilesetting']['uid']);
    unset($_G['cache']['profilesetting']['birthyear']);
    unset($_G['cache']['profilesetting']['birthmonth']);
    unset($_G['cache']['profilesetting']['birthday']);
    require_once libfile('function/profile');
    foreach ($_G['cache']['profilesetting'] as $fieldid => $value) {
        if (!$value['available'] || in_array($fieldid, array('birthprovince', 'birthdist', 'birthcommunity', 'resideprovince', 'residedist', 'residecommunity'))) {
            continue;
        }
        if ($fieldid == 'gender') {
            $select = "<option value=\"\">" . cplang('nolimit') . "</option>\n";
            $select .= "<option value=\"0\">" . cplang('members_edit_gender_secret') . "</option>\n";
            $select .= "<option value=\"1\">" . cplang('members_edit_gender_male') . "</option>\n";
            $select .= "<option value=\"2\">" . cplang('members_edit_gender_female') . "</option>\n";
            showsetting($value['title'], '', '', '<select class="txt" name="gender">' . $select . '</select>');
        } elseif ($fieldid == 'birthcity') {
            $elems = array('birthprovince', 'birthcity', 'birthdist', 'birthcommunity');
            showsetting($value['title'], '', '', '<div id="birthdistrictbox">' . showdistrict(array(0, 0, 0, 0), $elems, 'birthdistrictbox', 1) . '</div>');
        } elseif ($fieldid == 'residecity') {
            $elems = array('resideprovince', 'residecity', 'residedist', 'residecommunity');
            showsetting($value['title'], '', '', '<div id="residedistrictbox">' . showdistrict(array(0, 0, 0, 0), $elems, 'residedistrictbox', 1) . '</div>');
        } elseif ($fieldid == 'constellation') {
            $select = "<option value=\"\">" . cplang('nolimit') . "</option>\n";
            for ($i = 1; $i <= 12; $i++) {
                $name = lang('space', 'constellation_' . $i);
                $select .= "<option value=\"{$name}\">{$name}</option>\n";
            }
            showsetting($value['title'], '', '', '<select class="txt" name="constellation">' . $select . '</select>');
        } elseif ($fieldid == 'zodiac') {
            $select = "<option value=\"\">" . cplang('nolimit') . "</option>\n";
            for ($i = 1; $i <= 12; $i++) {
                $option = lang('space', 'zodiac_' . $i);
                $select .= "<option value=\"{$option}\">{$option}</option>\n";
            }
            showsetting($value['title'], '', '', '<select class="txt" name="zodiac">' . $select . '</select>');
        } elseif ($value['formtype'] == 'select' || $value['formtype'] == 'list') {
            $select = "<option value=\"\">" . cplang('nolimit') . "</option>\n";
            $value['choices'] = explode("\n", $value['choices']);
            foreach ($value['choices'] as $option) {
                $option = trim($option);
                $select .= "<option value=\"{$option}\">{$option}</option>\n";
            }
            showsetting($value['title'], '', '', '<select class="txt" name="' . $fieldid . '">' . $select . '</select>');
        } else {
            showsetting($value['title'], '', '', '<input class="txt" name="' . $fieldid . '" />');
        }
    }
    showtagfooter('tbody');
    $_G['showsetting_multirow'] = 0;
    showsubmit('submit', $operation == 'clean' ? 'members_delete' : 'search', '', 'more_options');
    showtablefooter();
    showformfooter();
    showtagfooter('div');
}
开发者ID:Jaedeok-seol,项目名称:discuz_template,代码行数:101,代码来源:sendsms.inc.php

示例4: searchgroups

function searchgroups($submit)
{
    global $_G;
    require_once libfile('function/group');
    empty($_GET['selectgroupid']) && ($_GET['selectgroupid'] = array());
    $groupselect = get_groupselect(0, $_GET['selectgroupid'], 0);
    $monthselect = $dayselect = $birthmonth = $birthday = '';
    for ($m = 1; $m <= 12; $m++) {
        $m = sprintf("%02d", $m);
        $monthselect .= "<option value=\"{$m}\" " . ($birthmonth == $m ? 'selected' : '') . ">{$m}</option>\n";
    }
    for ($d = 1; $d <= 31; $d++) {
        $d = sprintf("%02d", $d);
        $dayselect .= "<option value=\"{$d}\" " . ($birthday == $d ? 'selected' : '') . ">{$d}</option>\n";
    }
    showtagheader('div', 'searchgroups', !$submit);
    echo '<script src="static/js/calendar.js" type="text/javascript"></script>';
    showformheader("group&operation=manage");
    showtableheader();
    showsetting('groups_manage_name', 'srchname', $srchname, 'text');
    showsetting('groups_manage_id', 'srchfid', $srchfid, 'text');
    showsetting('groups_editgroup_category', '', '', '<select name="selectgroupid[]" multiple="multiple" size="10"><option value="all"' . (in_array('all', $_GET['selectgroupid']) ? ' selected' : '') . '>' . cplang('unlimited') . '</option>' . $groupselect . '</select>');
    showsetting('groups_manage_membercount', array('memberlower', 'memberhigher'), array($_GET['memberlower'], $_GET['memberhigher']), 'range');
    showsetting('groups_manage_threadcount', array('threadshigher', 'threadslower'), array($threadshigher, $threadslower), 'range');
    showsetting('groups_manage_replycount', array('postshigher', 'postslower'), array($postshigher, $postslower), 'range');
    showsetting('groups_manage_createtime', array('datelineafter', 'datelinebefore'), array($datelineafter, $datelinebefore), 'daterange');
    showsetting('groups_manage_updatetime', array('lastupdateafter', 'lastupdatebefore'), array($lastupdateafter, $lastupdatebefore), 'daterange');
    showsetting('groups_manage_founder', 'srchfounder', $srchfounder, 'text');
    showsetting('groups_manage_founder_uid', 'srchfounderid', $srchfounderid, 'text');
    showtagfooter('tbody');
    showsubmit('submit');
    showtablefooter();
    showformfooter();
    showtagfooter('div');
}
开发者ID:vanloswang,项目名称:discuzx-1,代码行数:35,代码来源:admincp_group.php

示例5: showimportdata

function showimportdata()
{
    showsetting('import_type', array('importtype', array(array('file', cplang('import_type_file'), array('importfile' => '', 'importtxt' => 'none')), array('txt', cplang('import_type_txt'), array('importfile' => 'none', 'importtxt' => '')))), 'file', 'mradio');
    showtagheader('tbody', 'importfile', TRUE);
    showsetting('import_file', 'importfile', '', 'file');
    showtagfooter('tbody');
    showtagheader('tbody', 'importtxt');
    showsetting('import_txt', 'importtxt', '', 'textarea');
    showtagfooter('tbody');
}
开发者ID:softhui,项目名称:discuz,代码行数:10,代码来源:function_admincp.php

示例6: shownewsletter

function shownewsletter()
{
    global $lang;
    showtableheader();
    showsetting('members_newsletter_subject', 'subject', '', 'text');
    showsetting('members_newsletter_message', 'message', '', 'textarea');
    if ($_GET['do'] == 'mobile') {
        showsetting('members_newsletter_system', 'system', 0, 'radio');
        showhiddenfields(array('notifymembers' => 'mobile'));
    } else {
        showsetting('members_newsletter_method', array('notifymembers', array(array('email', $lang['email'], array('pmextra' => 'none', 'posttype' => '')), array('notice', $lang['notice'], array('pmextra' => 'none', 'posttype' => '')), array('pm', $lang['grouppm'], array('pmextra' => '', 'posttype' => 'none')))), 'pm', 'mradio');
        showtagheader('tbody', 'posttype', '', 'sub');
        showsetting('members_newsletter_posttype', array('posttype', array(array(0, cplang('members_newsletter_posttype_text')), array(1, cplang('members_newsletter_posttype_html'))), TRUE), '0', 'mradio');
        showtagfooter('tbody');
        showtagheader('tbody', 'pmextra', true, 'sub');
        showsetting('members_newsletter_system', 'system', 0, 'radio');
        showtagfooter('tbody');
    }
    showsetting('members_newsletter_num', 'pertask', 100, 'text');
    showtablefooter();
}
开发者ID:MCHacker,项目名称:discuz-docker,代码行数:21,代码来源:admincp_members.php

示例7: showconsumemaker

/**
* 添加消費卷系統生成和個人上傳表單
*/
function showconsumemaker($radio = array(), $file = 'admin')
{
    global $_G, $_SGLOBAL, $_SSCONFIG, $editvalue;
    if (isset($editvalue['imagetype'])) {
        if ($editvalue['imagetype'] == 1 && empty($radio[0])) {
            $editvalue['imagetype'] = 0;
        } elseif ($editvalue['imagetype'] == 0 && empty($radio[1])) {
            $editvalue['imagetype'] = 1;
        }
    } else {
        $editvalue['imagetype'] = !empty($radio[0]) ? 1 : 0;
    }
    $editvalue['imagetype'] = isset($editvalue['imagetype']) ? $editvalue['imagetype'] : !empty($radio[0]) ? 1 : 0;
    showsetting('consume_subjectimage', array('imagetype', $radio, true), $editvalue['imagetype'], 'mradio');
    if (!empty($radio[0])) {
        showtagheader('tbody', 'uploadimg', $editvalue['imagetype'], 'sub');
        pklabel(array('type' => 'file', 'alang' => '', 'name' => 'subjectimage', 'value' => $editvalue['subjectimage'], 'fileurl' => A_URL . '/' . $editvalue['subjectimage']));
        showtagfooter('tbody');
    }
    if (!empty($radio[1])) {
        if ($_GET['action'] == 'add') {
            $shopid = $_SGLOBAL['panelinfo']['itemid'];
            $hotline = $_SGLOBAL['panelinfo']['tel'];
            $address = $_SGLOBAL['panelinfo']['address'];
        } else {
            $shopid = $editvalue['shopid'];
            $shopinfo = DB::fetch(DB::query("SELECT tel, address FROM " . tname('shopitems') . " WHERE itemid='{$shopid}'"));
            $hotline = $shopinfo['tel'];
            $address = $shopinfo['address'];
        }
        showtagheader('tbody', 'createimg', !$editvalue['imagetype'], 'sub');
        echo '<tr style="display:none;">
				<td class="vtop rowform">
					<textarea class="tarea" cols="50" id="address" name="address" rows="6">' . $address . '</textarea>
				</td>
				<td class="vtop tips2">
				</td>
			</tr>';
        $dir = opendir(B_ROOT . 'static/image/consume/thumb');
        echo '<tr class="noborder"><td colspan="2"><ul id="shop_album_list">';
        while ($consumeimgtpl = readdir($dir)) {
            if (strtolower(fileext($consumeimgtpl)) == 'jpg') {
                $imgtplvalue = substr($consumeimgtpl, 0, strpos($consumeimgtpl, '.'));
                echo '<li>
							<a target="_blank" href="static/image/consume/' . $imgtplvalue . '.jpg' . '"><img style="width: 192px; height: 119px;" alt="' . lang('theme_' . $entry . '_name') . '" src="static/image/consume/thumb/' . $imgtplvalue . '.jpg' . '"></a>
							<div class="album_desc">
								<input class="radio" type="radio" name="imgtplid" value="' . intval($imgtplvalue) . '"';
                if (!empty($editvalue['imgtplid'])) {
                    if ($editvalue['imgtplid'] == $imgtplvalue) {
                        echo 'checked';
                    }
                } else {
                    $checked = $imgtplvalue == 1 ? 'checked' : '';
                    echo $checked;
                }
                echo '>
							</div>
						</li>
				';
            }
        }
        echo '</ul></td></tr>';
        echo '<tr>
				<td colspan="15">
					<script type="text/javascript" charset="' . $_G['charset'] . '">
						function previewimg() {
							$("#previewimg").load("' . $file . '.php?action=ajax&opt=previewconsume&shopid=' . $shopid . '&id="+$("*[name=\'imgtplid\']:checked").val()+"&coupon_title="+encodeURIComponent($("*[name=\'subject\']").val())+"&brief="+encodeURIComponent($("*[name=\'message\']").val())+"&exception="+encodeURIComponent($("*[name=\'exception\']").val())+"&begin_date="+$("*[name=\'validity_start\']").val()+"&end_date="+$("*[name=\'validity_end\']").val());
						}
					</script>
					<div class="fixsel">
						<input type="button" value="' . lang('preview') . '" title="' . lang('consume_preview_title') . '" name="previewsubmit" id="previewsubmit" class="btn" onclick="previewimg();">
					</div>
					<div id="previewimg">
					</div>
				</td>
			</tr>';
        showtagfooter('tbody');
    }
}
开发者ID:pan289091315,项目名称:Discuz,代码行数:82,代码来源:tpl.func.php

示例8: searchmembers

function searchmembers($operation = '')
{
    global $db, $tablepre, $usergroupid, $username, $srchemail, $lower, $higher, $extcredits, $submit, $lang;
    $groupselect = array();
    $usergroupid = isset($usergroupid) && is_array($usergroupid) ? $usergroupid : array();
    $query = $db->query("SELECT type, groupid, grouptitle, radminid FROM {$tablepre}usergroups WHERE groupid NOT IN ('6', '7') ORDER BY (creditshigher<>'0' || creditslower<>'0'), creditslower, groupid");
    while ($group = $db->fetch_array($query)) {
        $group['type'] = $group['type'] == 'special' && $group['radminid'] ? 'specialadmin' : $group['type'];
        $groupselect[$group['type']] .= "<option value=\"{$group['groupid']}\" " . (in_array($group['groupid'], $usergroupid) ? 'selected' : '') . ">{$group['grouptitle']}</option>\n";
    }
    $groupselect = '<optgroup label="' . $lang['usergroups_member'] . '">' . $groupselect['member'] . '</optgroup>' . ($groupselect['special'] ? '<optgroup label="' . $lang['usergroups_special'] . '">' . $groupselect['special'] . '</optgroup>' : '') . ($groupselect['specialadmin'] ? '<optgroup label="' . $lang['usergroups_specialadmin'] . '">' . $groupselect['specialadmin'] . '</optgroup>' : '') . '<optgroup label="' . $lang['usergroups_system'] . '">' . $groupselect['system'] . '</optgroup>';
    $monthselect = $dayselect = '';
    for ($m = 1; $m <= 12; $m++) {
        $m = sprintf("%02d", $m);
        $monthselect .= "<option value=\"{$m}\" " . ($birthmonth == $m ? 'selected' : '') . ">{$m}</option>\n";
    }
    for ($d = 1; $d <= 31; $d++) {
        $d = sprintf("%02d", $d);
        $dayselect .= "<option value=\"{$d}\" " . ($birthday == $d ? 'selected' : '') . ">{$d}</option>\n";
    }
    showtagheader('div', 'searchmembers', !$submit);
    echo '<script src="include/js/calendar.js" type="text/javascript"></script>';
    showformheader("members&operation={$operation}", "onSubmit=\"if(\$('updatecredittype1') && \$('updatecredittype1').checked && !window.confirm('{$lang['members_reward_clean_alarm']}')){return false;} else {return true;}\"");
    showtableheader();
    showsetting('members_search_user', 'username', $username, 'text');
    showsetting('members_search_uid', 'uid', $uid, 'text');
    showsetting('members_search_group', '', '', '<select name="usergroupid[]" multiple="multiple" size="10"><option value="all"' . (in_array('all', $usergroupid) ? ' selected' : '') . '>' . lang('unlimited') . '</option>' . $groupselect . '</select>');
    showtagheader('tbody', 'advanceoption');
    showsetting('members_search_email', 'srchemail', $srchemail, 'text');
    showsetting("{$lang['credits']} {$lang['members_search_between']}", array("higher[credits]", "lower[credits]"), array($higher[credits], $lower[credits]), 'range');
    if (!empty($extcredits)) {
        foreach ($extcredits as $id => $credit) {
            showsetting("{$credit['title']} {$lang['members_search_between']}", array("higher[extcredits{$id}]", "lower[extcredits{$id}]"), array($higher['extcredits' . $id], $lower['extcredits' . $id]), 'range');
        }
    }
    showsetting('members_search_postsrange', array('postshigher', 'postslower'), array($postshigher, $postslower), 'range');
    showsetting('members_search_regip', 'regip', $regip, 'text');
    showsetting('members_search_lastip', 'lastip', $lastip, 'text');
    showsetting('members_search_regdaterange', array('regdateafter', 'regdatebefore'), array($regdateafter, $regdatebefore), 'daterange');
    showsetting('members_search_lastvisitrange', array('lastvisitafter', 'lastvisitbefore'), array($lastvisitafter, $lastvisitbefore), 'daterange');
    showsetting('members_search_lastpostrange', array('lastpostafter', 'lastpostbefore'), array($lastpostafter, $lastpostbefore), 'daterange');
    showsetting('members_search_birthday', '', '', '<input type="text" class="txt" name="birthyear" style="width:86px; margin-right:0" value="' . dhtmlspecialchars($year) . '"> ' . $lang['year'] . ' <input type="text" class="txt" name="birthmonth" style="width:45px; margin-right:0" value="' . dhtmlspecialchars($month) . '"> ' . $lang['month'] . ' <input type="text" class="txt" name="birthday" style="width:45px; margin-right:0" value="' . dhtmlspecialchars($day) . '"> ' . $lang['day']);
    showtagfooter('tbody');
    showsubmit('submit', $operation == 'clean' ? 'members_delete' : 'search', '', 'more_options');
    showtablefooter();
    showformfooter();
    showtagfooter('div');
}
开发者ID:evatlsong,项目名称:springside,代码行数:48,代码来源:members.inc.php

示例9: showModuleParamView

 public static function showModuleParamView()
 {
     $mid = (int) $_GET['moduleid'];
     $showSourceTypeFid = PortalModule::getSourceCount($mid, PortalModule::SOURCE_TYPE_NORMAL, array('idtype' => array(PortalModule::SOURCE_TYPE_FID))) > 0;
     $showSourceTypeCatid = PortalModule::getSourceCount($mid, PortalModule::SOURCE_TYPE_NORMAL, array('idtype' => array(PortalModule::SOURCE_TYPE_CATID))) > 0;
     !$showSourceTypeFid && !$showSourceTypeCatid && cpmsg(Appbyme::lang('mobcent_error_portal_module_param'), '', 'error');
     showtagheader('div', 'portal_module_param', true);
     showtableheader(Appbyme::lang('mobcent_portal_module_param_edit'));
     $digestLang = explode(',', Appbyme::lang('mobcent_portal_module_param_topic_digest'));
     $stickLang = explode(',', Appbyme::lang('mobcent_portal_module_param_topic_stick'));
     $specialLang = explode(',', Appbyme::lang('mobcent_portal_module_param_topic_special'));
     $otherLang = explode(',', Appbyme::lang('mobcent_portal_module_param_other_filter'));
     $topicOrderbyLang = explode(',', Appbyme::lang('mobcent_portal_module_param_topic_orderby'));
     $timeLang = explode(',', Appbyme::lang('mobcent_portal_module_param_time'));
     $topicStyleLang = explode(',', Appbyme::lang('mobcent_portal_module_param_topic_style'));
     $articleOrderbyLang = explode(',', Appbyme::lang('mobcent_portal_module_param_article_ordby'));
     $module = PortalModule::getModule($mid);
     $param = unserialize($module['param']);
     $param == false && ($param = PortalModule::initModuleParam());
     if ($showSourceTypeFid) {
         showsetting($digestLang[0], array('param[topic_digest]', array(array(1, $digestLang[1]), array(2, $digestLang[2]), array(3, $digestLang[3]), array(0, $digestLang[4]))), $param['topic_digest'], 'mcheckbox', '', 0, '', '', '', true);
         showsetting($stickLang[0], array('param[topic_stick]', array(array(1, $stickLang[1]), array(2, $stickLang[2]), array(3, $stickLang[3]), array(0, $stickLang[4]))), $param['topic_stick'], 'mcheckbox', '', 0, '', '', '', true);
         showsetting($specialLang[0], array('param[topic_special]', array(array(1, $specialLang[1]), array(2, $specialLang[2]), array(3, $specialLang[3]), array(4, $specialLang[4]), array(5, $specialLang[5]), array(0, $specialLang[6]))), $param['topic_special'], 'mcheckbox', '', 0, '', '', '', true);
         showsetting($otherLang[0], array('param[other_filter]', array(array('friend', $otherLang[1]), array('follow', $otherLang[2]), array('favoriteForum', $otherLang[3]))), $param['other_filter'], 'mcheckbox', '', 0, '', '', '', true);
         showsetting(Appbyme::lang('mobcent_portal_module_param_topic_picrequired'), 'param[topic_picrequired]', $param['topic_picrequired'], 'radio', '', 0, '', '', '', true);
         showsetting($topicOrderbyLang[0], array('param[topic_orderby]', array(array('lastpost', $topicOrderbyLang[1]), array('dateline', $topicOrderbyLang[2]), array('replies', $topicOrderbyLang[3]), array('views', $topicOrderbyLang[4]), array('heats', $topicOrderbyLang[5]), array('recommends', $topicOrderbyLang[6]), array('distance', $topicOrderbyLang[7]))), $param['topic_orderby'], 'select', '', 0, '', '', '', true);
         showsetting(Appbyme::lang('mobcent_portal_module_param_topic_postdateline'), array('param[topic_postdateline]', array(array(0, $timeLang[0]), array(3600, $timeLang[1]), array(86400, $timeLang[2]), array(604800, $timeLang[3]), array(2592000, $timeLang[4]))), $param['topic_postdateline'], 'select', '', 0, '', '', '', true);
         showsetting(Appbyme::lang('mobcent_portal_module_param_topic_lastpost'), array('param[topic_lastpost]', array(array(0, $timeLang[0]), array(3600, $timeLang[1]), array(86400, $timeLang[2]), array(604800, $timeLang[3]), array(2592000, $timeLang[4]))), $param['topic_lastpost'], 'select', '', 0, '', '', '', true);
         showsetting(Appbyme::lang('mobcent_portal_module_param_style'), array('param[topic_style]', array(array(1, $topicStyleLang[0]), array(2, $topicStyleLang[1]))), $param['topic_style'], 'select', '', 0, '', '', '', true);
     }
     if ($showSourceTypeCatid) {
         showsetting(Appbyme::lang('mobcent_portal_module_param_article_picrequired'), 'param[article_picrequired]', $param['article_picrequired'], 'radio', '', 0, '', '', '', true);
         showsetting(Appbyme::lang('mobcent_portal_module_param_article_starttime'), 'param[article_starttime]', $param['article_starttime'] ? dgmdate($param['article_starttime'], 'Y-n-j H:i') : '', 'calendar', '', 0, '', 1, '', true);
         showsetting(Appbyme::lang('mobcent_portal_module_param_article_endtime'), 'param[article_endtime]', $param['article_endtime'] ? dgmdate($param['article_endtime'], 'Y-n-j H:i') : '', 'calendar', '', 0, '', 1, '', true);
         showsetting($articleOrderbyLang[0], array('param[article_orderby]', array(array('dateline', $articleOrderbyLang[1]), array('viewnum', $articleOrderbyLang[2]), array('commentnum', $articleOrderbyLang[3]))), $param['article_orderby'], 'select', '', 0, '', '', '', true);
         showsetting(Appbyme::lang('mobcent_portal_module_param_article_publishdateline'), array('param[article_publishdateline]', array(array(0, $timeLang[0]), array(3600, $timeLang[1]), array(86400, $timeLang[2]), array(604800, $timeLang[3]), array(2592000, $timeLang[4]))), $param['article_publishdateline'], 'select', '', 0, '', '', '', true);
     }
     echo '<script type="text/javascript" src="static/js/calendar.js"></script>';
     showsubmit('portal_submit', 'submit');
     showtablefooter();
     showtagfooter('div');
 }
开发者ID:frogoscar,项目名称:mobcent-discuz,代码行数:42,代码来源:portal.inc.php

示例10: insenz_showsettings

function insenz_showsettings($do = '')
{
    global $insenz, $db, $tablepre, $discuz_user, $timestamp, $lang;
    $type = array('basic' => $lang['insenz_settings_basic'], 'softad' => $lang['insenz_settings_softad'], 'hardad' => $lang['insenz_settings_hardad'], 'relatedad' => $lang['insenz_settings_relatedad'], 'virtualforum' => $lang['insenz_settings_virtualforum']);
    if (!$do || $do == 'basic') {
        $insenz['notify'] = is_array($insenz['notify']) ? $insenz['notify'] : array();
        $insenz['notify'][2] = 1;
        $insenz_notify = bindec(intval($insenz['notify'][2]) . intval($insenz['notify'][1]));
        $msgto = '';
        if (!empty($insenz['msgtoid'])) {
            $query = $db->query("SELECT username FROM {$tablepre}members WHERE uid='{$insenz['msgtoid']}'");
            $msgto = $db->result($query, 0);
        }
        $msgto = $msgto ? $msgto : $discuz_userss;
        $disabled = $insenz['notify'][1] ? 0 : 1;
        if (!$do) {
            showtitle($type['basic']);
        } else {
            showtableheader();
            showtitle($type['basic']);
            if (empty($insenz['handle'])) {
                $response = insenz_request('<cmd id="queryhandle"></cmd>');
                if ($response['status']) {
                    $insenz['handle'] = '';
                } else {
                    $insenz['handle'] = $response['data']['response'][0]['handle'][0]['VALUE'];
                    $db->query("REPLACE INTO {$tablepre}settings (variable, value) VALUES ('insenz', '" . addslashes(serialize($insenz)) . "')");
                }
            }
            if ($insenz['handle']) {
                showsetting('insenz_username', '', '', $insenz['handle']);
            }
        }
        showsetting('insenz_settings_notify', array('notify', array($lang['insenz_settings_notify1'], $lang['insenz_settings_notify2']), array('onclick="this.form.msgto.disabled=this.checked?false:true;"', '')), $insenz_notify, 'binmcheckbox');
        showsetting('insenz_settings_msgto', 'msgto', $msgto, 'text', $disabled);
    }
    if (!$do || $do == 'softad') {
        $insenz['softadstatus'] = isset($insenz['softadstatus']) ? $insenz['softadstatus'] : 2;
        $softadstatus1 = $insenz['softadstatus'] ? 1 : 0;
        $softadstatus2 = $insenz['softadstatus'] == 2 ? 1 : 0;
        $nextmodified = gmdate("{$GLOBALS['dateformat']} {$GLOBALS['timeformat']}", (empty($insenz['lastmodified']) || $insenz['lastmodified'] + 14 * 86400 < $timestamp ? $timestamp : $insenz['lastmodified'] + 14 * 86400) + $GLOBALS['timeoffset'] * 3600);
        $admin_masks = $member_masks = array();
        if ($insenz['admin_masks'] && is_array($insenz['admin_masks'])) {
            $query = $db->query("SELECT username FROM {$tablepre}members WHERE uid IN ('" . implode("','", $insenz['admin_masks']) . "')");
            while ($member = $db->fetch_array($query)) {
                $admin_masks[] = $member['username'];
            }
        }
        $admin_masks = stripslashes(implode("\n", $admin_masks));
        if ($insenz['member_masks'] && is_array($insenz['member_masks'])) {
            $query = $db->query("SELECT username FROM {$tablepre}members WHERE uid IN ('" . implode("','", $insenz['member_masks']) . "')");
            while ($member = $db->fetch_array($query)) {
                $member_masks[] = $member['username'];
            }
        }
        $member_masks = stripslashes(implode("\n", $member_masks));
        if (!$do) {
            showtitle($type['softad']);
        } else {
            showtableheader();
            showtitle($type['softad']);
        }
        showsetting('insenz_settings_softadstatus1', 'softadstatus1', $softadstatus1, 'radio', '', 1);
        showsetting('insenz_settings_softadstatus2', 'softadstatus2', $softadstatus2, 'radio');
        showsetting('insenz_settings_admins', 'admins', $insenz['admin_masks'] ? $admin_masks : '', 'textarea');
        showsetting('insenz_settings_members', 'members', $insenz['member_masks'] ? $member_masks : '', 'textarea');
        showtagfooter('tbody');
    }
    if (!$do || $do == 'hardad') {
        $availableadvs = array(1 => $lang['insenz_settings_availableadvs1'], 2 => $lang['insenz_settings_availableadvs2'], 3 => $lang['insenz_settings_availableadvs3'], 4 => $lang['insenz_settings_availableadvs4'], 5 => $lang['insenz_settings_availableadvs5'], 6 => $lang['insenz_settings_availableadvs6'], 7 => $lang['insenz_settings_availableadvs7'], 8 => $lang['insenz_settings_availableadvs8']);
        $insenz['availableadvs'] = is_array($insenz['availableadvs']) ? $insenz['availableadvs'] : array(1, 2, 3, 4, 5);
        $insenz['hardadstatus'] = is_array($insenz['hardadstatus']) ? $insenz['hardadstatus'] : array(1, 2, 3, 4, 5);
        $insenz_availableadvs = array();
        foreach ($insenz['availableadvs'] as $ad) {
            $insenz_availableadvs[$ad] = $availableadvs[$ad];
        }
        if (!$do) {
            showtitle($type['hardad']);
        } else {
            showtableheader();
            showtitle($type['hardad']);
        }
        $insenz_hardadstatus = '';
        for ($i = count($insenz['availableadvs']); $i >= 1; $i--) {
            $insenz_hardadstatus .= in_array($i, $insenz['hardadstatus']) ? 1 : 0;
        }
        $insenz_hardadstatus = bindec($insenz_hardadstatus);
        showsetting('insenz_settings_hardadstatus', array('hardadstatus', $insenz_availableadvs), $insenz_hardadstatus, 'binmcheckbox');
    }
    if (!$do || $do == 'relatedad') {
        $insenz['relatedadstatus'] = isset($insenz['relatedadstatus']) ? $insenz['relatedadstatus'] : 1;
        if (!$do) {
            showtitle($type['relatedad']);
        } else {
            showtableheader();
            showtitle($type['relatedad']);
        }
        showsetting('insenz_settings_relatedadstatus', 'relatedadstatus', $insenz['relatedadstatus'], 'radio');
    }
    if (!$do || $do == 'virtualforum') {
//.........这里部分代码省略.........
开发者ID:BGCX067,项目名称:f2cont-svn-to-git,代码行数:101,代码来源:insenz.func.php

示例11: showsearchform

function showsearchform($operation = '')
{
    global $_G, $lang;
    $groupselect = array();
    $usergroupid = isset($_G['gp_usergroupid']) && is_array($_G['gp_usergroupid']) ? $_G['gp_usergroupid'] : array();
    $query = DB::query("SELECT type, groupid, grouptitle, radminid FROM " . DB::table('common_usergroup') . " WHERE groupid NOT IN ('6', '7') ORDER BY (creditshigher<>'0' || creditslower<>'0'), creditslower, groupid");
    while ($group = DB::fetch($query)) {
        $group['type'] = $group['type'] == 'special' && $group['radminid'] ? 'specialadmin' : $group['type'];
        $groupselect[$group['type']] .= "<option value=\"{$group['groupid']}\" " . (in_array($group['groupid'], $usergroupid) ? 'selected' : '') . ">{$group['grouptitle']}</option>\n";
    }
    $groupselect = '<optgroup label="' . $lang['usergroups_member'] . '">' . $groupselect['member'] . '</optgroup>' . ($groupselect['special'] ? '<optgroup label="' . $lang['usergroups_special'] . '">' . $groupselect['special'] . '</optgroup>' : '') . ($groupselect['specialadmin'] ? '<optgroup label="' . $lang['usergroups_specialadmin'] . '">' . $groupselect['specialadmin'] . '</optgroup>' : '') . '<optgroup label="' . $lang['usergroups_system'] . '">' . $groupselect['system'] . '</optgroup>';
    showtagheader('div', 'searchmembers', !$_G['gp_submit']);
    echo '<script src="static/js/forum_calendar.js" type="text/javascript"></script>';
    showformheader("members&operation={$operation}", "onSubmit=\"if(\$('updatecredittype1') && \$('updatecredittype1').checked && !window.confirm('{$lang['members_reward_clean_alarm']}')){return false;} else {return true;}\"");
    showtableheader();
    showsetting('members_search_user', 'username', $_G['gp_username'], 'text');
    showsetting('members_search_uid', 'uid', $_G['gp_uid'], 'text');
    showsetting('members_search_group', '', '', '<select name="groupid[]" multiple="multiple" size="10"><option value="all"' . (in_array('all', $usergroupid) ? ' selected' : '') . '>' . cplang('unlimited') . '</option>' . $groupselect . '</select>');
    showtagheader('tbody', 'advanceoption');
    showsetting('members_search_email', 'srchemail', $_G['gp_srchemail'], 'text');
    showsetting("{$lang['credits']} {$lang['members_search_between']}", array("credits_high", "credits_low"), array($_G['gp_credits_high'], $_G['gp_credtis_lower']), 'range');
    if (!empty($_G['setting']['extcredits'])) {
        foreach ($_G['setting']['extcredits'] as $id => $credit) {
            showsetting("{$credit['title']} {$lang['members_search_between']}", array("extcredits{$id}" . "_high", "extcredits{$id}" . "_low"), array($_G['gp_extcredits' . $id . '_high'], $_G['gp_extcredits' . $id . '_low']), 'range');
        }
    }
    showsetting('members_search_postsrange', array('postshigher', 'postslower'), array($_G['gp_postshigher'], $_G['gp_postslower']), 'range');
    showsetting('members_search_regip', 'regip', $_G['gp_regip'], 'text');
    showsetting('members_search_lastip', 'lastip', $_G['gp_lastip'], 'text');
    showsetting('members_search_regdaterange', array('regdateafter', 'regdatebefore'), array($_G['gp_regdateafter'], $_G['gp_regdatebefore']), 'daterange');
    showsetting('members_search_lastvisitrange', array('lastvisitafter', 'lastvisitbefore'), array($_G['gp_lastvisitafter'], $_G['gp_lastvisitbefore']), 'daterange');
    showsetting('members_search_lastpostrange', array('lastpostafter', 'lastpostbefore'), array($_G['gp_lastpostafter'], $_G['gp_lastpostbefore']), 'daterange');
    $yearselect = $monthselect = $dayselect = "<option value=\"\">" . cplang('nolimit') . "</option>\n";
    $yy = dgmdate(TIMESTAMP, 'Y');
    for ($y = $yy; $y >= $yy - 100; $y--) {
        $y = sprintf("%04d", $y);
        $yearselect .= "<option value=\"{$y}\" " . ($_G['gp_birthyear'] == $y ? 'selected' : '') . ">{$y}</option>\n";
    }
    for ($m = 1; $m <= 12; $m++) {
        $m = sprintf("%02d", $m);
        $monthselect .= "<option value=\"{$m}\" " . ($_G['gp_birthmonth'] == $m ? 'selected' : '') . ">{$m}</option>\n";
    }
    for ($d = 1; $d <= 31; $d++) {
        $d = sprintf("%02d", $d);
        $dayselect .= "<option value=\"{$d}\" " . ($_G['gp_birthday'] == $d ? 'selected' : '') . ">{$d}</option>\n";
    }
    showsetting('members_search_birthday', '', '', '<select class="txt" name="birthyear" style="width:75px; margin-right:0">' . $yearselect . '</select> ' . $lang['year'] . ' <select class="txt" name="birthmonth" style="width:75px; margin-right:0">' . $monthselect . '</select> ' . $lang['month'] . ' <select class="txt" name="birthday" style="width:75px; margin-right:0">' . $dayselect . '</select> ' . $lang['day']);
    loadcache('profilesetting');
    unset($_G['cache']['profilesetting']['uid']);
    unset($_G['cache']['profilesetting']['birthyear']);
    unset($_G['cache']['profilesetting']['birthmonth']);
    unset($_G['cache']['profilesetting']['birthday']);
    foreach ($_G['cache']['profilesetting'] as $fieldid => $value) {
        if ($fieldid == 'gender') {
            $select = "<option value=\"\">" . cplang('nolimit') . "</option>\n";
            $select .= "<option value=\"0\">" . cplang('members_edit_gender_secret') . "</option>\n";
            $select .= "<option value=\"1\">" . cplang('members_edit_gender_male') . "</option>\n";
            $select .= "<option value=\"2\">" . cplang('members_edit_gender_female') . "</option>\n";
            showsetting($value['title'], '', '', '<select class="txt" name="gender">' . $select . '</select>');
        } elseif ($fieldid == 'constellation') {
            $select = "<option value=\"\">" . cplang('nolimit') . "</option>\n";
            for ($i = 1; $i <= 12; $i++) {
                $name = lang('space', 'constellation_' . $i);
                $select .= "<option value=\"{$name}\">{$name}</option>\n";
            }
            showsetting($value['title'], '', '', '<select class="txt" name="constellation">' . $select . '</select>');
        } elseif ($fieldid == 'zodiac') {
            $select = "<option value=\"\">" . cplang('nolimit') . "</option>\n";
            for ($i = 1; $i <= 12; $i++) {
                $option = lang('space', 'zodiac_' . $i);
                $select .= "<option value=\"{$option}\">{$option}</option>\n";
            }
            showsetting($value['title'], '', '', '<select class="txt" name="zodiac">' . $select . '</select>');
        } elseif ($value['formtype'] == 'select' || $value['formtype'] == 'list') {
            $select = "<option value=\"\">" . cplang('nolimit') . "</option>\n";
            $value['choices'] = explode("\n", $value['choices']);
            foreach ($value['choices'] as $option) {
                $option = trim($option);
                $select .= "<option value=\"{$option}\">{$option}</option>\n";
            }
            showsetting($value['title'], '', '', '<select class="txt" name="' . $fieldid . '">' . $select . '</select>');
        } else {
            showsetting($value['title'], '', '', '<input class="txt" name="' . $fieldid . '" />');
        }
    }
    showtagfooter('tbody');
    showsubmit('submit', $operation == 'clean' ? 'members_delete' : 'search', '', 'more_options');
    showtablefooter();
    showformfooter();
    showtagfooter('div');
}
开发者ID:Kingson4Wu,项目名称:php_demo,代码行数:91,代码来源:admincp_members.php

示例12: anchorfooter

	function anchorfooter(){
		showtablefooter();
		showtagfooter('div');
	}
开发者ID:xiao2ww,项目名称:Bjwlkjc,代码行数:4,代码来源:dx_core.php

示例13: cpmsg

 $group = $db->fetch_first("SELECT a.*, aa.disabledactions, u.radminid, u.grouptitle FROM {$tablepre}admingroups a\r\n\t\t\tLEFT JOIN {$tablepre}usergroups u ON u.groupid=a.admingid\r\n\t\t\tLEFT JOIN {$tablepre}adminactions aa ON aa.admingid=a.admingid\r\n\t\t\tWHERE a.admingid='{$id}'");
 if (!$group) {
     cpmsg('undefined_action', '', 'error');
 }
 showsubmenu($lang['admingroups_edit'] . ' - ' . $group['grouptitle']);
 showformheader("admingroups&operation=edit&id={$id}");
 showtableheader();
 if ($group['radminid'] == 1) {
     $group['disabledactions'] = $group['disabledactions'] ? unserialize($group['disabledactions']) : array();
     foreach ($actionarray as $actionstr => $operationstr) {
         showsetting('admingroups_edit_action_' . $actionstr, 'disabledactionnew[' . $actionstr . ']', !in_array($actionstr, $group['disabledactions']), 'radio', $id == 1, $operationstr);
         foreach ($operationstr as $opstr) {
             $str = $actionstr . '_' . $opstr;
             showsetting('admingroups_edit_action_' . $str, 'disabledactionnew[' . $str . ']', !in_array($str, $group['disabledactions']), 'radio', $id == 1);
         }
         $operationstr && showtagfooter('tbody');
     }
 } else {
     $checkstick = array($group['allowstickthread'] => 'checked');
     showsetting('admingroups_edit_edit_post', 'alloweditpostnew', $group['alloweditpost'], 'radio');
     showsetting('admingroups_edit_edit_poll', 'alloweditpollnew', $group['alloweditpoll'], 'radio');
     showsetting('admingroups_edit_stick_thread', '', '', '<input class="radio" type="radio" name="allowstickthreadnew" value="0" ' . $checkstick[0] . '> ' . $lang['admingroups_edit_stick_thread_none'] . '<br /><input class="radio" type="radio" name="allowstickthreadnew" value="1" ' . $checkstick[1] . '> ' . $lang['admingroups_edit_stick_thread_1'] . '<br /><input class="radio" type="radio" name="allowstickthreadnew" value="2" ' . $checkstick[2] . '> ' . $lang['admingroups_edit_stick_thread_2'] . '<br /><input class="radio" type="radio" name="allowstickthreadnew" value="3" ' . $checkstick[3] . '> ' . $lang['admingroups_edit_stick_thread_3'] . '');
     showsetting('admingroups_edit_mod_post', 'allowmodpostnew', $group['allowmodpost'], 'radio');
     showsetting('admingroups_edit_del_post', 'allowdelpostnew', $group['allowdelpost'], 'radio');
     showsetting('admingroups_edit_mass_prune', 'allowmassprunenew', $group['allowmassprune'], 'radio');
     showsetting('admingroups_edit_ban_post', 'allowbanpostnew', $group['allowbanpost'], 'radio');
     showsetting('admingroups_edit_refund', 'allowrefundnew', $group['allowrefund'], 'radio');
     showsetting('admingroups_edit_view_ip', 'allowviewipnew', $group['allowviewip'], 'radio');
     showsetting('admingroups_edit_ban_ip', 'allowbanipnew', $group['allowbanip'], 'radio');
     showsetting('admingroups_edit_edit_user', 'alloweditusernew', $group['allowedituser'], 'radio');
     showsetting('admingroups_edit_mod_user', 'allowmodusernew', $group['allowmoduser'], 'radio');
开发者ID:BGCX067,项目名称:f2cont-svn-to-git,代码行数:31,代码来源:admingroups.inc.php


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