本文整理汇总了PHP中get_groupselect函数的典型用法代码示例。如果您正苦于以下问题:PHP get_groupselect函数的具体用法?PHP get_groupselect怎么用?PHP get_groupselect使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了get_groupselect函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: 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');
}
示例2: dunlink
}
if ($attach && ($attach['pid'] && $attach['pid'] == $_GET['pid'] && $_G['uid'] == $attach['uid'] || $_G['forum']['ismoderator'] || !$attach['pid'] && $_G['uid'] == $attach['uid'])) {
C::t('forum_attachment_n')->delete('aid:' . $aid, $aid);
C::t('forum_attachment')->delete($aid);
dunlink($attach);
$count++;
}
}
}
include template('common/header_ajax');
echo $count;
include template('common/footer_ajax');
dexit();
} elseif ($_GET['action'] == 'secondgroup') {
require_once libfile('function/group');
$groupselect = get_groupselect($_GET['fupid'], $_GET['groupid']);
include template('common/header_ajax');
include template('forum/ajax_secondgroup');
include template('common/footer_ajax');
dexit();
} elseif ($_GET['action'] == 'displaysearch_adv') {
$display = $_GET['display'] == 1 ? 1 : '';
dsetcookie('displaysearch_adv', $display);
} elseif ($_GET['action'] == 'checkgroupname') {
$groupname = trim($_GET['groupname']);
if (empty($groupname)) {
showmessage('group_name_empty', '', array(), array('msgtype' => 3));
}
$tmpname = cutstr($groupname, 20, '');
if ($tmpname != $groupname) {
showmessage('group_name_oversize', '', array(), array('msgtype' => 3));
示例3: elseif
$iconsql .= ", banner='{$bannernew}'";
} elseif ($deletebanner) {
$iconsql .= ", banner=''";
@unlink($_G['forum']['banner']);
}
$_G['gp_descriptionnew'] = nl2br(dhtmlspecialchars(censor(trim($_G['gp_descriptionnew']))));
$_G['gp_jointypenew'] = intval($_G['gp_jointypenew']);
if ($_G['gp_jointypenew'] == '-1' && $_G['uid'] != $_G['forum']['founderuid']) {
showmessage('group_close_only_founder');
}
$_G['gp_gviewpermnew'] = intval($_G['gp_gviewpermnew']);
DB::query("UPDATE " . DB::table('forum_forumfield') . " SET description='{$_G['gp_descriptionnew']}', jointype='{$_G['gp_jointypenew']}', gviewperm='{$_G['gp_gviewpermnew']}'{$iconsql} WHERE fid='{$_G['fid']}'");
showmessage('group_setup_succeed', $url);
} else {
$firstgid = $_G['cache']['grouptype']['second'][$_G['forum']['fup']]['fup'];
$groupselect = get_groupselect($firstgid, $_G['forum']['fup']);
$gviewpermselect = $jointypeselect = array('', '', '');
$_G['forum']['descriptionnew'] = str_replace("<br />", '', $_G['forum']['description']);
$jointypeselect[$_G['forum']['jointype']] = 'checked="checked"';
$gviewpermselect[$_G['forum']['gviewperm']] = 'checked="checked"';
if ($_G['setting']['allowgroupdomain'] && !empty($_G['setting']['domain']['root']['group']) && $domainlength) {
loadcache('creditrule');
getuserprofile('extcredits1');
$rule = $_G['cache']['creditrule']['modifydomain'];
$credits = $consume = $common = '';
for ($i = 1; $i <= 8; $i++) {
if ($_G['setting']['extcredits'][$i] && $rule['extcredits' . $i]) {
$consume .= $common . $_G['setting']['extcredits'][$i]['title'] . $rule['extcredits' . $i] . $_G['setting']['extcredits'][$i]['unit'];
$credits .= $common . $_G['setting']['extcredits'][$i]['title'] . $_G['member']['extcredits' . $i] . $_G['setting']['extcredits'][$i]['unit'];
$common = ',';
}
示例4: isset
$_G['group']['maxprice'] = isset($_G['setting']['extcredits'][$_G['setting']['creditstrans']]) ? $_G['group']['maxprice'] : 0;
include template('common/header_ajax');
include template('forum/ajax_attachlist');
include template('common/footer_ajax');
dexit();
} elseif ($_G['gp_action'] == 'imagelist') {
require_once libfile('function/post');
$attachlist = getattach($_G['gp_pid']);
$imagelist = $attachlist['imgattachs']['unused'];
include template('common/header_ajax');
include template('forum/ajax_imagelist');
include template('common/footer_ajax');
dexit();
} elseif ($_G['gp_action'] == 'secondgroup') {
require_once libfile('function/group');
$groupselect = get_groupselect($_G['gp_fupid'], $_G['gp_groupid']);
include template('common/header_ajax');
include template('forum/ajax_secondgroup');
include template('common/footer_ajax');
dexit();
} elseif ($_G['gp_action'] == 'displaysearch_adv') {
$display = $_G['gp_display'] == 1 ? 1 : '';
dsetcookie('displaysearch_adv', $display);
} elseif ($_G['gp_action'] == 'checkgroupname') {
$groupname = stripslashes(trim($_G['gp_groupname']));
if (empty($groupname)) {
showmessage('group_name_empty', '', array(), array('msgtype' => 3));
}
$tmpname = cutstr($groupname, 20, '');
if ($tmpname != $groupname) {
showmessage('group_name_oversize', '', array(), array('msgtype' => 3));
示例5: forumselect
$targetsselect = '<select name="forumsticktargets[]" size="10" multiple="multiple">' . forumselect(FALSE, 0, 0, TRUE) . '</select>';
require_once libfile('function/group');
$groupselect = '<select name="forumsticktargets[]" size="10" multiple="multiple">' . get_groupselect(0, 0, 0) . '</select>';
showsetting('threads_forumstick_targets', '', '', $targetsselect);
showsetting('threads_forumstick_targetgroups', '', '', $groupselect);
echo '<input type="hidden" value="add" name="do" />';
showsubmit('forumsticksubmit', 'submit');
showtablefooter();
showformfooter();
} elseif ($do == 'edit') {
require_once libfile('function/forumlist');
showformheader("threads&operation=forumstick&do=edit&id={$_G['gp_id']}");
showtableheader('edit', 'fixpadding');
$targetsselect = '<select name="forumsticktargets[]" size="10" multiple="multiple">' . forumselect(FALSE, 0, 0, TRUE) . '</select>';
require_once libfile('function/group');
$groupselect = '<select name="forumsticktargets[]" size="10" multiple="multiple">' . get_groupselect(0, 0, 0) . '</select>';
foreach ($forumstickthreads[$_G['gp_id']]['forums'] as $target) {
$targetsselect = preg_replace("/(\\<option value=\"{$target}\")([^\\>]*)(\\>)/", "\\1 \\2 selected=\"selected\" \\3", $targetsselect);
$groupselect = preg_replace("/(\\<option value=\"{$target}\")([^\\>]*)(\\>)/", "\\1 \\2 selected=\"selected\" \\3", $groupselect);
}
showsetting('threads_forumstick_targets', '', '', $targetsselect);
showsetting('threads_forumstick_targetgroups', '', '', $groupselect);
echo '<input type="hidden" value="edit" name="do" />';
echo "<input type=\"hidden\" value=\"{$_G['gp_id']}\" name=\"id\" />";
showsubmit('forumsticksubmit', 'submit');
showtablefooter();
showformfooter();
}
} else {
if (!$do) {
$do = 'del';
示例6: showtableheader
?>
" type="text" class="txt" /></div>', 'td26'],[2,'<?php
echo $n;
?>
', 'td25']],
];
</script>
<?php
showtableheader($langs['telcate'], 'nobottom');
showsubtitle(array('', $langs['showorder'], $langs['catename'], $langs['syngroupidstr'], $langs['status'], $langs['count'], 'operation'));
$category = C::t('#sanree_brand#sanree_brand_category')->getcategory_by_pcateid(0);
foreach ($category as $group) {
$count = C::t('#sanree_brand#sanree_brand_businesses')->count_by_cateid($group['cateid']);
$ststr = $group['keywords'] && $group['description'] ? $langs['yes'] : '';
$statusstr = $group[status] == 1 ? ' checked="checked"' : '';
showtablerow('', array('', 'class="td25"', 'class="td26"', 'class="td25"'), array("<input class=\"checkbox\" type=\"checkbox\" name=\"delete[{$group['cateid']}]\" value=\"{$group['cateid']}\">", "<input type=\"text\" class=\"txt\" name=\"group_order[{$group['cateid']}]\" value=\"{$group['displayorder']}\">", "<input type=\"text\" class=\"txt\" name=\"group_title[{$group['cateid']}]\" value=\"{$group['name']}\">" . $ststr, "<select name=\"group_syngroupid[{$group['cateid']}]\">" . get_groupselect(0, $group['syngroupid'], 0) . "</select>", "<input type=\"checkbox\" size=\"12\" name=\"group_status[{$group['cateid']}]\" value=\"1\" {$statusstr}>", $count, '<a href="###" onclick="location.href=\'' . ADMINSCRIPT . '?action=plugins&operation=config&act=list&do=upgrading&identifier=sanree_brand&pmod=admincp&do=upgrading&cateid=' . $group['cateid'] . "&page=" . $_G['sr_page'] . '\'">' . $lang['edit'] . '</a>', '<a href="###" onclick="location.href=\'' . ADMINSCRIPT . '?action=plugins&operation=config&act=businesseslist&identifier=sanree_brand&pmod=admincp&cateid=' . $group[cateid] . '\'">' . cplang('view') . '</a>'));
$subcategory = C::t('#sanree_brand#sanree_brand_category')->getcategory_by_pcateid($group[cateid]);
foreach ($subcategory as $subgroup) {
$subcount = C::t('#sanree_brand#sanree_brand_businesses')->count_by_cateid($subgroup['cateid']);
$subststr = $subgroup['keywords'] && $subgroup['description'] ? $langs['yes'] : '';
$substatusstr = $subgroup[status] == 1 ? ' checked="checked"' : '';
showtablerow('', array('', 'class="td25"', 'class="td26"', 'class="td25"'), array("<input class=\"checkbox\" type=\"checkbox\" name=\"delete[{$subgroup['cateid']}]\" value=\"{$subgroup['cateid']}\">", "<input type=\"text\" class=\"txt\" name=\"group_order[{$subgroup['cateid']}]\" value=\"{$subgroup['displayorder']}\">", "<div class=\"board\"><input type=\"text\" class=\"txt\" name=\"group_title[{$subgroup['cateid']}]\" value=\"{$subgroup['name']}\">{$subststr}</div>", "<select name=\"group_syngroupid[{$subgroup['cateid']}]\">" . get_groupselect(0, $subgroup['syngroupid'], 0) . "</select>", "<input type=\"checkbox\" size=\"12\" name=\"group_status[{$subgroup['cateid']}]\" value=\"1\" {$substatusstr}>", $subcount, '<a href="###" onclick="location.href=\'' . ADMINSCRIPT . '?action=plugins&operation=config&act=list&do=upgrading&identifier=sanree_brand&pmod=admincp&do=upgrading&cateid=' . $subgroup['cateid'] . "&page=" . $_G['sr_page'] . '\'">' . $lang['edit'] . '</a>', '<a href="###" onclick="location.href=\'' . ADMINSCRIPT . '?action=plugins&operation=config&act=businesseslist&identifier=sanree_brand&pmod=admincp&cateid=' . $subgroup[cateid] . '\'">' . cplang('view') . '</a>'));
}
echo '<tr><td> </td><td> </td><td><div><a href="###" onclick="addrow(this, 1, ' . $group['cateid'] . ')" class="addtr">' . $langs['addsubcate'] . '</a></div></td></tr>';
}
echo '<tr><td> </td><td colspan="5"><div><a href="###" onclick="addrow(this, 0)" class="addtr">' . $langs['addcate'] . '</a></div></td></tr>';
showsubmit('submit', 'submit', 'del', '', $multipage);
showtablefooter();
showformfooter();
}
}