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


PHP showsubmenuanchors函数代码示例

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


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

示例1: elseif

     } elseif ($forums['type'] == 'forum') {
         $forumselect .= '<input class="left checkbox ck" chkvalue="' . $sgid . '" name="multi[]" value="' . $forums['fid'] . '" type="checkbox" ' . ($checked ? 'checked="checked" ' : '') . '/><a class="f' . ($checked ? ' current"' : '') . '" href="###" onclick="location.href=\'' . ADMINSCRIPT . '?action=forums&operation=edit&switch=yes&fid=' . $forums['fid'] . ($mforum[0]['type'] != 'group' ? '&anchor=\'+currentAnchor' : '\'') . '+\'&scrolltop=\'+scrollTopBody()">' . $forums['name'] . '</a>';
     } elseif ($forums['type'] == 'sub') {
         $forumselect .= '<input class="left checkbox ck" chkvalue="' . $sgid . '" name="multi[]" value="' . $forums['fid'] . '" type="checkbox" ' . ($checked ? 'checked="checked" ' : '') . '/><a class="s' . ($checked ? ' current"' : '') . '" href="###" onclick="location.href=\'' . ADMINSCRIPT . '?action=forums&operation=edit&switch=yes&fid=' . $forums['fid'] . ($mforum[0]['type'] != 'group' ? '&anchor=\'+currentAnchor' : '\'') . '+\'&scrolltop=\'+scrollTopBody()">' . $forums['name'] . '</a>';
     }
 }
 $forumselect = '<span id="fselect" class="right popupmenu_dropmenu" onmouseover="showMenu({\'ctrlid\':this.id,\'pos\':\'34\'});$(\'fselect_menu\').style.top=(parseInt($(\'fselect_menu\').style.top)-scrollTopBody())+\'px\';$(\'fselect_menu\').style.left=(parseInt($(\'fselect_menu\').style.left)-document.documentElement.scrollLeft-20)+\'px\'">' . cplang('forums_edit_switch') . '<em>&nbsp;&nbsp;</em></span>' . '<div id="fselect_menu" class="popupmenu_popup" style="display:none"><div class="fsel"><div>' . $forumselect . '</div></div><div class="cl"><input type="button" class="btn right" onclick="$(\'menuform\').submit()" value="' . cplang('forums_multiedit') . '" /></div></div>';
 showformheader('', '', 'menuform', 'get');
 showhiddenfields(array('action' => 'forums', 'operation' => 'edit'));
 if (count($mforum) == 1 && $mforum[0]['type'] == 'group') {
     showsubmenu(cplang('forums_cat_detail') . (count($mforum) == 1 ? ' - ' . $mforum[0]['name'] . '(gid:' . $mforum[0]['fid'] . ')' : ''), array(), $forumselect);
 } else {
     if ($multiset && !in_array($anchor, array('basic', 'extend', 'posts', 'perm', 'plugin'))) {
         $anchor = 'basic';
     }
     showsubmenuanchors(cplang('forums_edit') . (count($mforum) == 1 ? ' - ' . $mforum[0]['name'] . '(fid:' . $mforum[0]['fid'] . ')' : ''), array(array('forums_edit_basic', 'basic', $anchor == 'basic'), array('forums_edit_extend', 'extend', $anchor == 'extend'), array('forums_edit_posts', 'posts', $anchor == 'posts'), array('forums_edit_perm', 'perm', $anchor == 'perm'), !$multiset ? array('forums_edit_credits', 'credits', $anchor == 'credits') : array(), !$multiset ? array(array('menu' => 'usergroups_edit_other', 'submenu' => array(array('forums_edit_threadtypes', 'threadtypes', $anchor == 'threadtypes'), array('forums_edit_threadsorts', 'threadsorts', $anchor == 'threadsorts'), !$multiset ? array('forums_edit_attachtype', 'attachtype', $anchor == 'attachtype') : array(), !$pluginsetting ? array() : array('forums_edit_plugin', 'plugin', $anchor == 'plugin')))) : array(), $multiset && $pluginsetting ? array('forums_edit_plugin', 'plugin', $anchor == 'plugin') : array()), $forumselect);
 }
 showformfooter();
 $groups = array();
 $query = C::t('common_usergroup')->range_orderby_credit();
 foreach ($query as $group) {
     $group['type'] = $group['type'] == 'special' && $group['radminid'] ? 'specialadmin' : $group['type'];
     $groups[$group['type']][] = $group;
 }
 $styleselect = "<select name=\"styleidnew\"><option value=\"0\">{$lang['use_default']}</option>";
 foreach (C::t('common_style')->fetch_all_data(false, false) as $style) {
     $styleselect .= "<option value=\"{$style['styleid']}\" " . ($style['styleid'] == $mforum[0]['styleid'] ? 'selected="selected"' : NULL) . ">{$style['name']}</option>\n";
 }
 $styleselect .= '</select>';
 if (!$multiset) {
     $attachtypes = '';
开发者ID:tang86,项目名称:discuz-utf8,代码行数:31,代码来源:admincp_forums.php

示例2: foreach

 		}*/
 $grouplist = $gutype = '';
 foreach (C::t('common_admingroup')->fetch_all_order() as $ggroup) {
     $checked = $_GET['id'] == $ggroup['groupid'] || in_array($ggroup['groupid'], $_GET['multi']);
     if ($gutype != $ggroup['radminid']) {
         $grouplist .= '<em><span class="right"><input name="checkall_' . $ggroup['radminid'] . '" onclick="checkAll(\'value\', this.form, \'g' . $ggroup['radminid'] . '\', \'checkall_' . $ggroup['radminid'] . '\')" type="checkbox" class="vmiddle checkbox" /></span>' . ($ggroup['radminid'] == 1 ? $lang['usergroups_system_1'] : ($ggroup['radminid'] == 2 ? $lang['usergroups_system_2'] : $lang['usergroups_system_3'])) . '</em>';
         $gutype = $ggroup['radminid'];
     }
     $grouplist .= '<input class="left checkbox ck" chkvalue="g' . $ggroup['radminid'] . '" name="multi[]" value="' . $ggroup['groupid'] . '" type="checkbox" ' . ($checked ? 'checked="checked" ' : '') . '/>' . '<a href="###" onclick="location.href=\'' . ADMINSCRIPT . '?action=admingroup&operation=edit&switch=yes&id=' . $ggroup['groupid'] . '&anchor=\'+currentAnchor+\'&scrolltop=\'+document.documentElement.scrollTop"' . ($checked ? ' class="current"' : '') . '>' . $ggroup['grouptitle'] . '</a>';
 }
 $gselect = '<span id="ugselect" class="right popupmenu_dropmenu" onmouseover="showMenu({\'ctrlid\':this.id,\'pos\':\'34\'});$(\'ugselect_menu\').style.top=(parseInt($(\'ugselect_menu\').style.top)-scrollTopBody())+\'px\';$(\'ugselect_menu\').style.left=(parseInt($(\'ugselect_menu\').style.left)-document.documentElement.scrollLeft-20)+\'px\'">' . $lang['usergroups_switch'] . '<em>&nbsp;&nbsp;</em></span>' . '<div id="ugselect_menu" class="popupmenu_popup" style="display:none">' . $grouplist . '<br style="clear:both" /><div class="cl"><input type="button" class="btn right" onclick="$(\'menuform\').submit()" value="' . cplang('admingroups_multiedit') . '" /></div>' . '</div>';
 $_GET['anchor'] = in_array($_GET['anchor'], array('threadperm', 'postperm', 'modcpperm', 'portalperm', 'otherperm', 'spaceperm')) ? $_GET['anchor'] : 'threadperm';
 $anchorarray = array(array('admingroup_edit_threadperm', 'threadperm', $_GET['anchor'] == 'threadperm'), array('admingroup_edit_postperm', 'postperm', $_GET['anchor'] == 'postperm'), array('admingroup_edit_modcpperm', 'modcpperm', $_GET['anchor'] == 'modcpperm'), array('admingroup_edit_spaceperm', 'spaceperm', $_GET['anchor'] == 'spaceperm'), array('admingroup_edit_portalperm', 'portalperm', $_GET['anchor'] == 'portalperm'), array('admingroup_edit_otherperm', 'otherperm', $_GET['anchor'] == 'otherperm'));
 showformheader('', '', 'menuform', 'get');
 showhiddenfields(array('action' => 'admingroup', 'operation' => 'edit'));
 showsubmenuanchors($lang['admingroup_edit'] . (count($mgroup) == 1 ? ' - ' . $mgroup[$_GET['id']]['grouptitle'] . '(groupid:' . $mgroup[$_GET['id']]['groupid'] . ')' : ''), $anchorarray, $gselect);
 showformfooter();
 if ($multiset) {
     showtips('setting_multi_tips');
 }
 showformheader("admingroup&operation=edit&id={$_GET['id']}");
 if ($multiset) {
     $_G['showsetting_multi'] = 0;
     $_G['showsetting_multicount'] = count($mgroup);
     foreach ($mgroup as $group) {
         $_G['showtableheader_multi'][] = '<a href="javascript:;" onclick="location.href=\'' . ADMINSCRIPT . '?action=admingroup&operation=edit&id=' . $group['groupid'] . '&anchor=\'+$(\'cpform\').anchor.value;return false">' . $group['grouptitle'] . '(groupid:' . $group['groupid'] . ')</a>';
     }
 }
 $mgids = array();
 foreach ($mgroup as $group) {
     $_GET['id'] = $gid = $group['groupid'];
开发者ID:dalinhuang,项目名称:healthshop,代码行数:31,代码来源:admincp_admingroup.php

示例3: elseif

     } elseif ($forums['type'] == 'forum') {
         $forumselect .= '<input class="left checkbox ck" chkvalue="' . $sgid . '" name="multi[]" value="' . $forums['fid'] . '" type="checkbox" /><a class="f' . ($fid == $forums['fid'] || in_array($forums['fid'], $_G['gp_multi']) ? ' current"' : '') . '" href="###" onclick="location.href=\'' . ADMINSCRIPT . '?action=forums&operation=edit&switch=yes&fid=' . $forums['fid'] . ($forum['type'] != 'group' ? '&anchor=\'+currentAnchor' : '\'') . '+\'&scrolltop=\'+document.documentElement.scrollTop">' . $forums['name'] . '</a>';
     } elseif ($forums['type'] == 'sub') {
         $forumselect .= '<input class="left checkbox ck" chkvalue="' . $sgid . '" name="multi[]" value="' . $forums['fid'] . '" type="checkbox" /><a class="s' . ($fid == $forums['fid'] || in_array($forums['fid'], $_G['gp_multi']) ? ' current"' : '') . '" href="###" onclick="location.href=\'' . ADMINSCRIPT . '?action=forums&operation=edit&switch=yes&fid=' . $forums['fid'] . ($forum['type'] != 'group' ? '&anchor=\'+currentAnchor' : '\'') . '+\'&scrolltop=\'+document.documentElement.scrollTop">' . $forums['name'] . '</a>';
     }
 }
 $forumselect = '<span id="fselect" class="right popupmenu_dropmenu" onmouseover="showMenu({\'ctrlid\':this.id,\'pos\':\'34\'});$(\'fselect_menu\').style.top=(parseInt($(\'fselect_menu\').style.top)-document.documentElement.scrollTop)+\'px\';$(\'fselect_menu\').style.left=(parseInt($(\'fselect_menu\').style.left)-document.documentElement.scrollLeft-20)+\'px\'">' . cplang('forums_edit_switch') . '<em>&nbsp;&nbsp;</em></span>' . '<div id="fselect_menu" class="popupmenu_popup" style="display:none"><div><span class="pointer right" onclick="$(\'menuform\').submit()"><b>' . cplang('forums_multiedit') . '</b></span>' . $forumselect . '</div></div>';
 showformheader('', '', 'menuform', 'get');
 showhiddenfields(array('action' => 'forums', 'operation' => 'edit'));
 if (count($mforum) == 1 && $mforum[0]['type'] == 'group') {
     showsubmenu(cplang('forums_cat_detail') . (count($mforum) == 1 ? ' - ' . $mforum[0]['name'] : ''), array(), $forumselect);
 } else {
     if ($multiset && !in_array($anchor, array('basic', 'extend', 'posts', 'perm'))) {
         $anchor = 'basic';
     }
     showsubmenuanchors(cplang('forums_edit') . (count($mforum) == 1 ? ' - ' . $mforum[0]['name'] : ''), array(array('forums_edit_basic', 'basic', $anchor == 'basic'), array('forums_edit_extend', 'extend', $anchor == 'extend'), array('forums_edit_posts', 'posts', $anchor == 'posts'), !$multiset ? array('forums_edit_credits', 'credits', $anchor == 'credits') : array(), !$multiset ? array('forums_edit_threadtypes', 'threadtypes', $anchor == 'threadtypes') : array(), !$multiset ? array('forums_edit_threadsorts', 'threadsorts', $anchor == 'threadsorts') : array(), array('forums_edit_perm', 'perm', $anchor == 'perm')), $forumselect);
 }
 showformfooter();
 $groups = array();
 $query = DB::query("SELECT type, groupid, grouptitle, radminid FROM " . DB::table('common_usergroup') . " ORDER BY (creditshigher<>'0' || creditslower<>'0'), creditslower, groupid");
 while ($group = DB::fetch($query)) {
     $group['type'] = $group['type'] == 'special' && $group['radminid'] ? 'specialadmin' : $group['type'];
     $groups[$group['type']][] = $group;
 }
 if (!$multiset) {
     showtips('forums_edit_tips');
 } else {
     showtips('setting_multi_tips');
 }
 showformheader("forums&operation=edit&fid={$fid}&", 'enctype');
 showhiddenfields(array('type' => $mforum[0]['type']));
开发者ID:Kingson4Wu,项目名称:php_demo,代码行数:31,代码来源:admincp_forums.php

示例4: showsubmenu

     showsubmenu('setting_styles', array(array('setting_styles_global', 'setting&operation=styles&anchor=global', $current['global']), array('setting_styles_index', 'setting&operation=styles&anchor=index', $current['index']), array('setting_styles_forumdisplay', 'setting&operation=styles&anchor=forumdisplay', $current['forumdisplay']), array('setting_styles_viewthread', 'setting&operation=styles&anchor=viewthread', $current['viewthread']), array('setting_styles_refresh', 'setting&operation=styles&anchor=refresh', $current['refresh']), array('setting_styles_sitemessage', 'setting&operation=styles&anchor=sitemessage', $current['sitemessage'])));
 } elseif ($operation == 'functions') {
     $_G['gp_anchor'] = in_array($_G['gp_anchor'], array('curscript', 'mod', 'heatthread', 'recommend', 'comment', 'activity', 'other')) ? $_G['gp_anchor'] : 'curscript';
     showsubmenuanchors('setting_functions', array(array('setting_functions_curscript', 'curscript', $_G['gp_anchor'] == 'curscript'), array('setting_functions_mod', 'mod', $_G['gp_anchor'] == 'mod'), array('setting_functions_heatthread', 'heatthread', $_G['gp_anchor'] == 'heatthread'), array('setting_functions_recommend', 'recommend', $_G['gp_anchor'] == 'recommend'), array('setting_functions_comment', 'comment', $_G['gp_anchor'] == 'comment'), array('setting_functions_activity', 'activity', $_G['gp_anchor'] == 'activity'), array('setting_functions_other', 'other', $_G['gp_anchor'] == 'other')));
 } elseif ($operation == 'credits') {
     $_G['gp_anchor'] = in_array($_G['gp_anchor'], array('base', 'policytable')) ? $_G['gp_anchor'] : 'base';
     $current = array($_G['gp_anchor'] => 1);
     showsubmenu('setting_credits', array(array('setting_credits_base', 'setting&operation=credits&anchor=base', $current['base']), array('setting_credits_policy', 'credits&operation=list&anchor=policytable', $current['policytable'])));
 } elseif ($operation == 'editor') {
     showsubmenu('setting_editor', array(array('setting_editor_global', 'setting&operation=editor', 1), array('setting_editor_code', 'misc&operation=bbcode', 0)));
 } elseif ($operation == 'imgwater') {
     $_G['gp_anchor'] = in_array($_G['gp_anchor'], array('portal', 'forum', 'album')) ? $_G['gp_anchor'] : 'portal';
     showsubmenuanchors('setting_imgwater', array(array('setting_imgwater_portal', 'portal', $_G['gp_anchor'] == 'portal'), array('setting_imgwater_forum', 'forum', $_G['gp_anchor'] == 'forum'), array('setting_imgwater_album', 'album', $_G['gp_anchor'] == 'album')));
 } elseif ($operation == 'mobile') {
     $_G['gp_anchor'] = in_array($_G['gp_anchor'], array('status')) ? $_G['gp_anchor'] : 'status';
     showsubmenuanchors('setting_mobile', array(array('setting_mobile_status', 'status', $_G['gp_anchor'] == 'status')));
 } else {
     showsubmenu('setting_' . $operation);
 }
 showformheader('setting&edit=yes');
 showhiddenfields(array('operation' => $operation));
 if ($operation == 'basic') {
     showtableheader('');
     showsetting('setting_basic_bbname', 'settingnew[bbname]', $setting['bbname'], 'text');
     showsetting('setting_basic_sitename', 'settingnew[sitename]', $setting['sitename'], 'text');
     showsetting('setting_basic_siteurl', 'settingnew[siteurl]', $setting['siteurl'], 'text');
     showsetting('setting_basic_adminemail', 'settingnew[adminemail]', $setting['adminemail'], 'text');
     showsetting('setting_basic_icp', 'settingnew[icp]', $setting['icp'], 'text');
     showsetting('setting_basic_boardlicensed', 'settingnew[boardlicensed]', $setting['boardlicensed'], 'radio');
     showsetting('setting_basic_stat', 'settingnew[statcode]', $setting['statcode'], 'textarea');
     showtablefooter();
开发者ID:pan289091315,项目名称:Discuz,代码行数:31,代码来源:admincp_setting.php

示例5: array

 if (!submitcheck('detailsubmit')) {
     $grouplist = $groupcount = array();
     foreach (C::t('common_usergroup')->range_orderby_credit() as $ggroup) {
         $checked = $_GET['id'] == $ggroup['groupid'] || in_array($ggroup['groupid'], $_GET['multi']);
         $ggroup['type'] = $ggroup['type'] == 'special' && $ggroup['radminid'] ? 'specialadmin' : $ggroup['type'];
         $groupcount[$ggroup['type']]++;
         $grouplist[$ggroup['type']] .= '<input class="left checkbox ck" chkvalue="' . $ggroup['type'] . '" name="multi[]" value="' . $ggroup['groupid'] . '" type="checkbox" ' . ($checked ? 'checked="checked" ' : '') . '/>' . '<a href="###" onclick="location.href=\'' . ADMINSCRIPT . '?action=usergroups&operation=edit&switch=yes&id=' . $ggroup['groupid'] . '&anchor=\'+currentAnchor+\'&scrolltop=\'+scrollTopBody()"' . ($checked ? ' class="current"' : '') . '>' . $ggroup['grouptitle'] . '</a>';
         if (!($groupcount[$ggroup['type']] % 3)) {
             $grouplist[$ggroup['type']] .= '<br style="clear:both" />';
         }
     }
     $gselect = '<span id="ugselect" class="right popupmenu_dropmenu" onmouseover="showMenu({\'ctrlid\':this.id,\'pos\':\'34\'});$(\'ugselect_menu\').style.top=(parseInt($(\'ugselect_menu\').style.top)-scrollTopBody())+\'px\';$(\'ugselect_menu\').style.left=(parseInt($(\'ugselect_menu\').style.left)-document.documentElement.scrollLeft-20)+\'px\'">' . $lang['usergroups_switch'] . '<em>&nbsp;&nbsp;</em></span>' . '<div id="ugselect_menu" class="popupmenu_popup" style="display:none">' . '<em class="cl"><span class="right"><input name="checkall_member" onclick="checkAll(\'value\', this.form, \'member\', \'checkall_member\')" type="checkbox" class="vmiddle checkbox" /></span>' . $lang['usergroups_member'] . '</em>' . $grouplist['member'] . '<br />' . ($grouplist['special'] ? '<em class="cl"><span class="right"><input name="checkall_special" onclick="checkAll(\'value\', this.form, \'special\', \'checkall_special\')" type="checkbox" class="vmiddle checkbox" /></span>' . $lang['usergroups_special'] . '</em>' . $grouplist['special'] . '<br />' : '') . ($grouplist['specialadmin'] ? '<em class="cl"><span class="right"><input name="checkall_specialadmin" onclick="checkAll(\'value\', this.form, \'specialadmin\', \'checkall_specialadmin\')" type="checkbox" class="vmiddle checkbox" /></span>' . $lang['usergroups_specialadmin'] . '</em>' . $grouplist['specialadmin'] . '<br />' : '') . '<em class="cl"><span class="right"><input name="checkall_system" onclick="checkAll(\'value\', this.form, \'system\', \'checkall_system\')" type="checkbox" class="vmiddle checkbox" /></span>' . $lang['usergroups_system'] . '</em>' . $grouplist['system'] . '<br style="clear:both" /><div class="cl"><input type="button" class="btn right" onclick="$(\'menuform\').submit()" value="' . cplang('usergroups_multiedit') . '" /></div>' . '</div>';
     $anchor = in_array($_GET['anchor'], array('basic', 'system', 'special', 'post', 'attach', 'magic', 'invite', 'pm', 'credit', 'home', 'group', 'portal', 'plugin')) ? $_GET['anchor'] : 'basic';
     showformheader('', '', 'menuform', 'get');
     showhiddenfields(array('action' => 'usergroups', 'operation' => 'edit'));
     showsubmenuanchors(cplang('usergroups_edit') . (count($mgroup) == 1 ? ' - ' . $mgroup[0]['grouptitle'] . '(groupid:' . $mgroup[0]['groupid'] . ')' : ''), array(array('usergroups_edit_basic', 'basic', $anchor == 'basic'), count($mgroup) == 1 && $mgroup[0]['type'] == 'special' && $mgroup[0]['radminid'] < 1 ? array('usergroups_edit_system', 'system', $anchor == 'system') : array(), array(array('menu' => 'usergroups_edit_forum', 'submenu' => array(array('usergroups_edit_post', 'post', $anchor == 'post'), array('usergroups_edit_attach', 'attach', $anchor == 'attach'), array('usergroups_edit_special', 'special', $anchor == 'special')))), array('usergroups_edit_group', 'group', $anchor == 'group'), array('usergroups_edit_portal', 'portal', $anchor == 'portal'), array('usergroups_edit_home', 'home', $anchor == 'home'), array(array('menu' => 'usergroups_edit_other', 'submenu' => array(array('usergroups_edit_credit', 'credit', $anchor == 'credit'), array('usergroups_edit_magic', 'magic', $anchor == 'magic'), array('usergroups_edit_invite', 'invite', $anchor == 'invite'), !$pluginsetting ? array() : array('usergroups_edit_plugin', 'plugin', $anchor == 'plugin'))))), $gselect);
     showformfooter();
     if (count($mgroup) == 1 && $mgroup[0]['type'] == 'special' && $mgroup[0]['radminid'] < 1) {
         showtips('usergroups_edit_system_tips', 'system_tips', $anchor == 'system');
     }
     if ($multiset) {
         showtips('setting_multi_tips');
     }
     showtips('usergroups_edit_magic_tips', 'magic_tips', $anchor == 'magic');
     showtips('usergroups_edit_invite_tips', 'invite_tips', $anchor == 'invite');
     if ($_GET['id'] == 7) {
         showtips('usergroups_edit_system_guest_portal_tips', 'portal_tips', $anchor == 'portal');
         showtips('usergroups_edit_system_guest_home_tips', 'home_tips', $anchor == 'home');
     }
     showformheader("usergroups&operation=edit&id={$_GET['id']}&return={$return}", 'enctype');
     if ($multiset) {
开发者ID:torrent520,项目名称:torrent520.github.io,代码行数:31,代码来源:admincp_usergroups.php

示例6: elseif

 } elseif ($operation == 'mail') {
     $anchor = in_array($anchor, array('settings', 'check')) ? $anchor : 'settings';
     showsubmenuanchors('settings_mail', array(array('settings_mail_settings', 'mailsettings', $anchor == 'settings'), array('settings_mail_check', 'mailcheck', $anchor == 'check')));
 } elseif ($operation == 'sec') {
     $anchor = in_array($anchor, array('seclevel', 'seccode', 'secqaa')) ? $anchor : 'seclevel';
     showsubmenuanchors('settings_sec', array(array('settings_sec_seclevel', 'seclevel', $anchor == 'seclevel'), array('settings_sec_seccode', 'seccode', $anchor == 'seccode'), array('settings_sec_secqaa', 'secqaa', $anchor == 'secqaa')));
 } elseif ($operation == 'attach') {
     $anchor = in_array($anchor, array('basic', 'image', 'remote', 'antileech')) ? $anchor : 'basic';
     showsubmenuanchors('settings_attach', array(array('settings_attach_basic', 'basic', $anchor == 'basic'), array('settings_attach_image', 'image', $anchor == 'image'), $isfounder ? array('settings_attach_remote', 'remote', $anchor == 'remote') : '', array('settings_attach_antileech', 'antileech', $anchor == 'antileech')));
 } elseif ($operation == 'styles') {
     $anchor = in_array($anchor, array('global', 'index', 'forumdisplay', 'viewthread', 'member', 'refresh', 'sitemessage')) ? $anchor : 'global';
     $current = array($anchor => 1);
     showsubmenu('settings_styles', array(array('settings_styles_global', 'settings&operation=styles&anchor=global', $current['global']), array('settings_styles_index', 'settings&operation=styles&anchor=index', $current['index']), array('settings_styles_forumdisplay', 'settings&operation=styles&anchor=forumdisplay', $current['forumdisplay']), array('settings_styles_viewthread', 'settings&operation=styles&anchor=viewthread', $current['viewthread']), array('settings_styles_member', 'settings&operation=styles&anchor=member', $current['member']), array('settings_styles_customnav', 'misc&operation=customnav', 0), array(array('menu' => 'jswizard_infoside', 'submenu' => array(array('jswizard_infoside_global', 'jswizard&operation=infoside&from=style'), array('jswizard_infoside_2', 'jswizard&operation=infoside&sideid=2&from=style'), array('jswizard_infoside_0', 'jswizard&operation=infoside&sideid=0&from=style')))), array('settings_styles_refresh', 'settings&operation=styles&anchor=refresh', $current['refresh']), array('settings_styles_sitemessage', 'settings&operation=styles&anchor=sitemessage', $current['sitemessage'])));
 } elseif ($operation == 'functions') {
     $anchor = in_array($anchor, array('stat', 'mod', 'tags', 'heatthread', 'recommend', 'other')) ? $anchor : 'stat';
     showsubmenuanchors('settings_functions', array(array('settings_functions_stat', 'stat', $anchor == 'stat'), array('settings_functions_mod', 'mod', $anchor == 'mod'), array('settings_functions_tags', 'tags', $anchor == 'tags'), array('settings_functions_heatthread', 'heatthread', $anchor == 'heatthread'), array('settings_functions_recommend', 'recommend', $anchor == 'recommend'), array('settings_functions_other', 'other', $anchor == 'other')));
 } elseif ($operation == 'editor') {
     showsubmenu('settings_editor', array(array('settings_editor_global', 'settings&operation=editor', 1), array('settings_editor_code', 'misc&operation=bbcode', 0)));
 } elseif ($operation == 'msn') {
     shownav('extended', 'settings_msn');
 } else {
     showsubmenu('settings_' . $operation);
 }
 showformheader('settings&edit=yes');
 showhiddenfields(array('operation' => $operation));
 if ($operation == 'basic') {
     showtableheader();
     showsetting('settings_basic_bbname', 'settingsnew[bbname]', $settings['bbname'], 'text');
     showsetting('settings_basic_sitename', 'settingsnew[sitename]', $settings['sitename'], 'text');
     showsetting('settings_basic_siteurl', 'settingsnew[siteurl]', $settings['siteurl'], 'text');
     showsetting('settings_basic_index_name', 'settingsnew[indexname]', $settings['indexname'], 'text');
开发者ID:BGCX262,项目名称:zyyhong-svn-to-git,代码行数:31,代码来源:settings.inc.php

示例7: cpmsg

         cpmsg('usergroups_edit_fail', '', 'error');
     }
 }
 if (!submitcheck('detailsubmit') && !submitcheck('saveconfigsubmit')) {
     $projectselect = "<select name=\"projectid\" onchange=\"window.location='{$BASESCRIPT}?action=usergroups&operation=edit&id={$id}&projectid='+this.options[this.options.selectedIndex].value\"><option value=\"0\" selected=\"selected\">" . $lang['none'] . "</option>";
     $query = $db->query("SELECT id, name FROM {$tablepre}projects WHERE type='group'");
     while ($project = $db->fetch_array($query)) {
         $projectselect .= "<option value=\"{$project['id']}\" " . ($project['id'] == $projectid ? 'selected="selected"' : NULL) . ">{$project['name']}</option>";
     }
     $projectselect .= '</select>';
     if (!empty($projectid)) {
         $group = @array_merge($group, unserialize($db->result_first("SELECT value FROM {$tablepre}projects WHERE id='{$projectid}'")));
     }
     $group['exempt'] = strrev(sprintf('%0' . strlen($group['exempt']) . 'b', $group['exempt']));
     $anchor = in_array($anchor, array('basic', 'system', 'special', 'post', 'attach', 'magic', 'invite', 'credit')) ? $anchor : 'basic';
     showsubmenuanchors(lang('usergroups_edit') . ' - ' . $group['grouptitle'], array(array('usergroups_edit_basic', 'basic', $anchor == 'basic'), $group['type'] == 'special' && $group['radminid'] < 1 ? array('usergroups_edit_system', 'system', $anchor == 'system') : array(), array('usergroups_edit_special', 'special', $anchor == 'special'), array('usergroups_edit_post', 'post', $anchor == 'post'), array('usergroups_edit_attach', 'attach', $anchor == 'attach'), array('usergroups_edit_magic', 'magic', $anchor == 'magic'), array('usergroups_edit_invite', 'invite', $anchor == 'invite'), array('usergroups_edit_credit', 'credit', $anchor == 'credit')));
     if ($group['type'] == 'special' && $group['radminid'] < 1) {
         showtips('usergroups_edit_system_tips', 'system_tips', $anchor == 'system');
     }
     showtips('usergroups_edit_magic_tips', 'magic_tips', $anchor == 'magic');
     showtips('usergroups_edit_invite_tips', 'invite_tips', $anchor == 'invite');
     showformheader("usergroups&operation=edit&id={$id}&return={$return}");
     showtableheader();
     if ($group['type'] == 'special' && $group['radminid'] < 1) {
         showtagheader('tbody', 'system', $anchor == 'system');
         if ($group['system'] == 'private') {
             $system = array('public' => 0, 'dailyprice' => 0, 'minspan' => 0);
         } else {
             $system = array('public' => 1, 'dailyprice' => 0, 'minspan' => 0);
             list($system['dailyprice'], $system['minspan']) = explode("\t", $group['system']);
         }
开发者ID:BGCX067,项目名称:f2cont-svn-to-git,代码行数:31,代码来源:usergroups.inc.php

示例8: cpmsg

        cpmsg('forums_nonexistence', '', 'error');
    }
    $query = $db->query("SELECT disabledactions FROM {$tablepre}adminactions WHERE admingid='{$groupid}'");
    $dactionarray = ($dactionarray = unserialize($db->result($query, 0))) ? $dactionarray : array();
    $allowthreadtypes = !in_array('threadtypes', $dactionarray);
    if (!empty($projectid)) {
        $query = $db->query("SELECT value FROM {$tablepre}projects WHERE id='{$projectid}'");
        $forum = @array_merge($forum, unserialize($db->result($query, 0)));
    }
    if (!submitcheck('detailsubmit') && !submitcheck('saveconfigsubmit')) {
        $anchor = in_array($anchor, array('basic', 'extend', 'posts', 'credits', 'threadtypes', 'threadsorts', 'perm')) ? $anchor : 'basic';
        shownav('forum', 'forums_edit');
        if ($forum['type'] == 'group') {
            showsubmenu("{$lang['forums_cat_detail']} - {$forum['name']}");
        } else {
            showsubmenuanchors(lang('forums_edit') . ' - ' . $forum['name'], array(array('forums_edit_basic', 'basic', $anchor == 'basic'), array('forums_edit_extend', 'extend', $anchor == 'extend'), array('forums_edit_posts', 'posts', $anchor == 'posts'), array('forums_edit_credits', 'credits', $anchor == 'credits'), array('forums_edit_threadtypes', 'threadtypes', $anchor == 'threadtypes'), array('forums_edit_threadsorts', 'threadsorts', $anchor == 'threadsorts'), array('forums_edit_perm', 'perm', $anchor == 'perm')));
        }
        showtips('forums_edit_tips');
        showformheader("forums&operation=edit&fid={$fid}&");
        showhiddenfields(array('type' => $forum['type']));
        $sideselect = array();
        $infosidestatus[0] && ($sideselect[0] = '<select name="foruminfosidestatus[0]">
			<option value="">' . $lang['forums_edit_extend_sideselect_global'] . '</option>
			<option value="-1"' . ($infosidestatus['f' . $fid][0] == -1 ? ' selected="selected"' : '') . '>' . $lang['forums_edit_extend_sideselect_off'] . '</option>');
        if ($sideselect) {
            $query = $db->query("SELECT variable FROM {$tablepre}request WHERE type=-2");
            while ($side = $db->fetch_array($query)) {
                $infosidestatus[0] && ($sideselect[0] .= "<option value=\"{$side['variable']}\" " . ($infosidestatus['f' . $fid][0] == $side['variable'] ? 'selected="selected"' : NULL) . ">{$side['variable']}</option>\n");
            }
            $infosidestatus[0] && ($sideselect[0] .= '</select>');
        }
开发者ID:BGCX067,项目名称:f2cont-svn-to-git,代码行数:31,代码来源:forums.inc.php

示例9: elseif

 } elseif ($operation == 'mail') {
     $anchor = in_array($anchor, array('settings', 'check')) ? $anchor : 'settings';
     showsubmenuanchors('settings_mail', array(array('settings_mail_settings', 'mailsettings', $anchor == 'settings'), array('settings_mail_check', 'mailcheck', $anchor == 'check')));
 } elseif ($operation == 'sec') {
     $anchor = in_array($anchor, array('seclevel', 'seccode', 'secqaa')) ? $anchor : 'seclevel';
     showsubmenuanchors('settings_sec', array(array('settings_sec_seclevel', 'seclevel', $anchor == 'seclevel'), array('settings_sec_seccode', 'seccode', $anchor == 'seccode'), array('settings_sec_secqaa', 'secqaa', $anchor == 'secqaa')));
 } elseif ($operation == 'attach') {
     $anchor = in_array($anchor, array('basic', 'image', 'remote', 'antileech')) ? $anchor : 'basic';
     showsubmenuanchors('settings_attach', array(array('settings_attach_basic', 'basic', $anchor == 'basic'), array('settings_attach_image', 'image', $anchor == 'image'), $isfounder ? array('settings_attach_remote', 'remote', $anchor == 'remote') : '', array('settings_attach_antileech', 'antileech', $anchor == 'antileech')));
 } elseif ($operation == 'styles') {
     $anchor = in_array($anchor, array('global', 'index', 'forumdisplay', 'viewthread', 'member', 'refresh', 'sitemessage')) ? $anchor : 'global';
     $current = array($anchor => 1);
     showsubmenu('settings_styles', array(array('settings_styles_global', 'settings&operation=styles&anchor=global', $current['global']), array('settings_styles_index', 'settings&operation=styles&anchor=index', $current['index']), array('settings_styles_forumdisplay', 'settings&operation=styles&anchor=forumdisplay', $current['forumdisplay']), array('settings_styles_viewthread', 'settings&operation=styles&anchor=viewthread', $current['viewthread']), array('settings_styles_member', 'settings&operation=styles&anchor=member', $current['member']), array('settings_styles_customnav', 'misc&operation=customnav', 0), array(array('menu' => 'jswizard_infoside', 'submenu' => array(array('jswizard_infoside_global', 'jswizard&operation=infoside&from=style'), array('jswizard_infoside_2', 'jswizard&operation=infoside&sideid=2&from=style'), array('jswizard_infoside_0', 'jswizard&operation=infoside&sideid=0&from=style')))), array('settings_styles_refresh', 'settings&operation=styles&anchor=refresh', $current['refresh']), array('settings_styles_sitemessage', 'settings&operation=styles&anchor=sitemessage', $current['sitemessage'])));
 } elseif ($operation == 'functions') {
     $anchor = in_array($anchor, array('stat', 'mod', 'tags', 'other')) ? $anchor : 'stat';
     showsubmenuanchors('settings_functions', array(array('settings_functions_stat', 'stat', $anchor == 'stat'), array('settings_functions_mod', 'mod', $anchor == 'mod'), array('settings_functions_tags', 'tags', $anchor == 'tags'), array('settings_functions_other', 'other', $anchor == 'other')));
 } elseif ($operation == 'editor') {
     showsubmenu('settings_editor', array(array('settings_editor_global', 'settings&operation=editor', 1), array('settings_editor_code', 'misc&operation=bbcode', 0)));
 } elseif ($operation == 'msn') {
     shownav('extended', 'settings_msn');
 } else {
     showsubmenu('settings_' . $operation);
 }
 showformheader('settings&edit=yes');
 showhiddenfields(array('operation' => $operation));
 if ($operation == 'basic') {
     showtableheader();
     showsetting('settings_basic_bbname', 'settingsnew[bbname]', $settings['bbname'], 'text');
     showsetting('settings_basic_sitename', 'settingsnew[sitename]', $settings['sitename'], 'text');
     showsetting('settings_basic_siteurl', 'settingsnew[siteurl]', $settings['siteurl'], 'text');
     showsetting('settings_basic_index_name', 'settingsnew[indexname]', $settings['indexname'], 'text');
开发者ID:BGCX067,项目名称:f2cont-svn-to-git,代码行数:31,代码来源:settings.inc.php

示例10: cpmsg

 if (!$group) {
     cpmsg('undefined_action', '', 'error');
 }
 $query = $db->query("SELECT u.radminid, u.groupid, u.grouptitle FROM {$tablepre}admingroups a LEFT JOIN {$tablepre}usergroups u ON u.groupid=a.admingid ORDER BY u.radminid, a.admingid");
 $grouplist = $gutype = '';
 while ($ggroup = $db->fetch_array($query)) {
     if ($gutype != $ggroup['radminid']) {
         $grouplist .= '<em>' . ($ggroup['radminid'] == 1 ? $lang['usergroups_system_1'] : ($ggroup['radminid'] == 2 ? $lang['usergroups_system_2'] : $lang['usergroups_system_3'])) . '</em>';
         $gutype = $ggroup['radminid'];
     }
     $grouplist .= '<a href="###" onclick="location.href=\'' . $BASESCRIPT . '?action=admingroups&operation=edit&switch=yes&id=' . $ggroup['groupid'] . '&anchor=\'+currentAnchor+\'&scrolltop=\'+document.documentElement.scrollTop"' . ($id == $ggroup['groupid'] ? ' class="current"' : '') . '>' . $ggroup['grouptitle'] . '</a>';
 }
 $gselect = '<span id="ugselect" class="right popupmenu_dropmenu" onmouseover="showMenu({\'ctrlid\':this.id,\'pos\':\'34\'});$(\'ugselect_menu\').style.top=(parseInt($(\'ugselect_menu\').style.top)-document.documentElement.scrollTop)+\'px\'">' . $lang['usergroups_switch'] . '<em>&nbsp;&nbsp;</em></span>' . '<div id="ugselect_menu" class="popupmenu_popup" style="display:none">' . $grouplist . '</div>';
 $anchor = $group['radminid'] == 1 ? in_array($anchor, array('admincpperm', 'threadperm', 'postperm', 'modcpperm', 'otherperm')) ? $anchor : 'admincpperm' : (in_array($anchor, array('threadperm', 'postperm', 'modcpperm', 'otherperm')) ? $anchor : 'threadperm');
 $anchorarray = array($group['radminid'] == 1 ? array('admingroups_edit_admincpperm', 'admincpperm', $anchor == 'admincpperm') : array(), array('admingroups_edit_threadperm', 'threadperm', $anchor == 'threadperm'), array('admingroups_edit_postperm', 'postperm', $anchor == 'postperm'), array('admingroups_edit_modcpperm', 'modcpperm', $anchor == 'modcpperm'), array('admingroups_edit_otherperm', 'otherperm', $anchor == 'otherperm'));
 showsubmenuanchors($lang['admingroups_edit'] . ' - ' . $group['grouptitle'], $anchorarray, $gselect);
 if (!empty($switch)) {
     echo '<script type="text/javascript">showMenu({\'ctrlid\':\'ugselect\',\'pos\':\'34\'});</script>';
 }
 if ($id == 1) {
     showtips('admingroups_admin_tips');
 }
 showformheader("admingroups&operation=edit&id={$id}");
 if ($group['radminid'] == 1) {
     echo '<style>' . '.item{ float:left;width: 180px;line-height: 25px; }' . '.vtop .right, .item .right{ padding: 0 10px; line-height: 22px; background: url(\'images/admincp/bg_repno.gif\') no-repeat -286px -145px; font-weight: normal;margin-right:10px; }' . '.vtop a:hover.right, .item a:hover.right { text-decoration:none; }' . '</style>';
     showtagheader('div', 'admincpperm', $anchor == 'admincpperm');
     showtableheader();
     $group['disabledactions'] = $group['disabledactions'] ? (array) unserialize($group['disabledactions']) : array();
     foreach ($actioncat as $catname => $catdatas) {
         showtitle($catname);
         $rowtype = 0;
开发者ID:BGCX262,项目名称:zyyhong-svn-to-git,代码行数:31,代码来源:admingroups.inc.php

示例11: intval

     if ($_GET['upid']) {
         $cate['level'] = $portalcategory[$_GET['upid']] ? $portalcategory[$_GET['upid']]['level'] + 1 : 0;
         $cate['upid'] = intval($_GET['upid']);
     } else {
         $cate['level'] = 0;
         $cate['upid'] = 0;
     }
     $cate['displayorder'] = 0;
     $cate['closed'] = 1;
 }
 @(include_once 'saekv://data/cache/cache_domain.php');
 $channeldomain = isset($rootdomain['channel']) && $rootdomain['channel'] ? $rootdomain['channel'] : array();
 if (!submitcheck('detailsubmit')) {
     shownav('portal', 'portalcategory');
     $url = 'portalcategory&operation=' . $operation . ($operation == 'add' ? '&upid=' . $_GET['upid'] : '&catid=' . $_GET['catid']);
     showsubmenuanchors(cplang('portalcategory_detail') . ($cate['catname'] ? ' - ' . $cate['catname'] : ''), array(array('edit', 'basic', $anchor == 'basic')));
     showtagheader('div', 'basic', $anchor == 'basic');
     showformheader($url);
     showtableheader();
     $catemsg = '';
     if ($cate['username']) {
         $catemsg .= $lang['portalcategory_username'] . ' ' . $cate['username'];
     }
     if ($cate['dateline']) {
         $catemsg .= ' ' . $lang['portalcategory_dateline'] . ' ' . dgmdate($cate['dateline'], 'Y-m-d m:i:s');
     }
     if ($cate['upid']) {
         $catemsg .= ' ' . $lang['portalcategory_upname'] . ': <a href="' . ADMINSCRIPT . '?action=portalcategory&operation=edit&catid=' . $cate['upid'] . '">' . $portalcategory[$cate['upid']]['catname'] . '</a>';
     }
     if ($catemsg) {
         showtitle($catemsg);
开发者ID:wait121000,项目名称:discuz3.0forsae,代码行数:31,代码来源:admincp_portalcategory.php

示例12: daddslashes

            }
            $newreplace = daddslashes(str_replace("\\\\'", '\'', $newreplace), 1);
            if ($oldcenser = $db->fetch_first("SELECT admin FROM {$tablepre}words WHERE find='{$newfind}'")) {
                cpmsg('censor_keywords_existence', '', 'error');
            } else {
                $db->query("INSERT INTO\t{$tablepre}words (admin, find, replacement) VALUES\r\n\t\t\t\t\t('{$discuz_user}', '{$newfind}', '{$newreplace}')");
            }
        }
        updatecache('censor');
        cpmsg('censor_succeed', "{$BASESCRIPT}?action=misc&operation=censor&page={$page}", 'succeed');
    }
} elseif ($operation == 'icon') {
    if (!submitcheck('iconsubmit')) {
        $anchor = in_array($anchor, array('list', 'add')) ? $anchor : 'list';
        shownav('style', 'nav_thread_icon');
        showsubmenuanchors('nav_thread_icon', array(array('admin', 'list', $anchor == 'list'), array('add', 'add', $anchor == 'add')));
        showtagheader('div', 'list', $anchor == 'list');
        showformheader('misc&operation=icon');
        showtableheader();
        showsubtitle(array('', 'display_order', 'smilies_edit_image', 'smilies_edit_filename'));
        $imgfilter = array();
        $query = $db->query("SELECT * FROM {$tablepre}smilies WHERE type='icon' ORDER BY displayorder");
        while ($smiley = $db->fetch_array($query)) {
            showtablerow('', array('class="td25"', 'class="td28 td24"', 'class="td23"'), array("<input class=\"checkbox\" type=\"checkbox\" name=\"delete[]\" value=\"{$smiley['id']}\">", "<input type=\"text\" class=\"txt\" size=\"2\" name=\"displayorder[{$smiley['id']}]\" value=\"{$smiley['displayorder']}\">", "<img src=\"images/icons/{$smiley['url']}\">", $smiley[url]));
            $imgfilter[] = $smiley[url];
        }
        showsubmit('iconsubmit', 'submit', 'del');
        showtablefooter();
        showformfooter();
        showtagfooter('div');
        showtagheader('div', 'add', $anchor == 'add');
开发者ID:BGCX067,项目名称:f2cont-svn-to-git,代码行数:31,代码来源:misc.inc.php

示例13: cpmsg

     }
     $pluginlist .= '</select>';
     cpmsg('plugins_nonexistence', $BASESCRIPT . '?action=plugins&operation=edit' . (!empty($highlight) ? "&highlight={$highlight}" : ''), 'form', $pluginlist);
 } else {
     $condition = !empty($uid) ? "uid='{$uid}'" : "username='{$username}'";
 }
 $plugin = $db->fetch_first("SELECT * FROM {$tablepre}plugins WHERE pluginid='{$pluginid}'");
 if (!$plugin) {
     cpmsg('undefined_action', '', 'error');
 }
 $plugin['modules'] = unserialize($plugin['modules']);
 if (!submitcheck('editsubmit')) {
     $adminidselect = array($plugin['adminid'] => 'selected');
     shownav('extended', 'nav_plugins');
     $anchor = in_array($anchor, array('config', 'modules', 'hooks', 'vars')) ? $anchor : 'config';
     showsubmenuanchors($lang['plugins_edit'] . ' - ' . $plugin['name'], array(array('config', 'config', $anchor == 'config'), array('plugins_config_module', 'modules', $anchor == 'modules'), array('plugins_config_hooks', 'hooks', $anchor == 'hooks'), array('plugins_config_vars', 'vars', $anchor == 'vars')));
     showtips('plugins_edit_tips');
     showtagheader('div', 'config', $anchor == 'config');
     showformheader("plugins&operation=edit&type=common&pluginid={$pluginid}", '', 'configform');
     showtableheader();
     showsetting('plugins_edit_name', 'namenew', $plugin['name'], 'text');
     if (!$plugin['copyright']) {
         showsetting('plugins_edit_copyright', 'copyrightnew', $plugin['copyright'], 'text');
     }
     showsetting('plugins_edit_identifier', 'identifiernew', $plugin['identifier'], 'text');
     showsetting('plugins_edit_adminid', '', '', '<select name="adminidnew"><option value="1" ' . $adminidselect[1] . '>' . $lang['usergroups_system_1'] . '</option><option value="2" ' . $adminidselect[2] . '>' . $lang['usergroups_system_2'] . '</option><option value="3" ' . $adminidselect[3] . '>' . $lang['usergroups_system_3'] . '</option></select>');
     showsetting('plugins_edit_directory', 'directorynew', $plugin['directory'], 'text');
     showsetting('plugins_edit_datatables', 'datatablesnew', $plugin['datatables'], 'text');
     showsetting('plugins_edit_description', 'descriptionnew', $plugin['description'], 'textarea');
     showsubmit('editsubmit');
     showtablefooter();
开发者ID:BGCX067,项目名称:f2cont-svn-to-git,代码行数:31,代码来源:plugins.inc.php

示例14: cpmsg

 } else {
     $condition = !empty($uid) ? "uid='{$uid}'" : "username='{$username}'";
 }
 $plugin = DB::fetch_first("SELECT * FROM " . DB::table('common_plugin') . " WHERE pluginid='{$pluginid}'");
 if (!$plugin) {
     cpmsg('plugin_not_found', '', 'error');
 }
 $plugin['modules'] = unserialize($plugin['modules']);
 if ($plugin['modules']['system']) {
     cpmsg('plugin_donot_edit', '', 'error');
 }
 if (!submitcheck('editsubmit')) {
     $adminidselect = array($plugin['adminid'] => 'selected');
     shownav('plugin');
     $anchor = in_array($_G['gp_anchor'], array('config', 'modules', 'vars')) ? $_G['gp_anchor'] : 'config';
     showsubmenuanchors($lang['plugins_edit'] . ' - ' . $plugin['name'] . ($plugin['available'] ? cplang('plugins_edit_available') : ''), array(array('plugins_list', 'plugins', 0, 1), array('config', 'config', $anchor == 'config'), array('plugins_config_module', 'modules', $anchor == 'modules'), array('plugins_config_vars', 'vars', $anchor == 'vars'), array('export', 'plugins&operation=export&pluginid=' . $plugin['pluginid'], 0, 1)));
     showtips('plugins_edit_tips');
     showtagheader('div', 'config', $anchor == 'config');
     showformheader("plugins&operation=edit&type=common&pluginid={$pluginid}", '', 'configform');
     showtableheader();
     showsetting('plugins_edit_name', 'namenew', $plugin['name'], 'text');
     showsetting('plugins_edit_version', 'versionnew', $plugin['version'], 'text');
     if (!$plugin['copyright']) {
         showsetting('plugins_edit_copyright', 'copyrightnew', $plugin['copyright'], 'text');
     }
     showsetting('plugins_edit_identifier', 'identifiernew', $plugin['identifier'], 'text');
     showsetting('plugins_edit_directory', 'directorynew', $plugin['directory'], 'text');
     showsetting('plugins_edit_description', 'descriptionnew', $plugin['description'], 'textarea');
     showsetting('plugins_edit_langexists', 'langexists', $plugin['modules']['extra']['langexists'], 'radio');
     showsubmit('editsubmit');
     showtablefooter();
开发者ID:v998,项目名称:discuzx-en,代码行数:31,代码来源:admincp_plugins.php

示例15: elseif

 } elseif ($operation == 'styles') {
     $_G['gp_anchor'] = in_array($_G['gp_anchor'], array('global', 'index', 'forumdisplay', 'viewthread', 'refresh', 'sitemessage')) ? $_G['gp_anchor'] : 'global';
     $current = array($_G['gp_anchor'] => 1);
     showsubmenu('setting_styles', array(array('setting_styles_global', 'setting&operation=styles&anchor=global', $current['global']), array('setting_styles_index', 'setting&operation=styles&anchor=index', $current['index']), array('setting_styles_forumdisplay', 'setting&operation=styles&anchor=forumdisplay', $current['forumdisplay']), array('setting_styles_viewthread', 'setting&operation=styles&anchor=viewthread', $current['viewthread']), array('setting_styles_refresh', 'setting&operation=styles&anchor=refresh', $current['refresh']), array('setting_styles_sitemessage', 'setting&operation=styles&anchor=sitemessage', $current['sitemessage'])));
 } elseif ($operation == 'functions') {
     $_G['gp_anchor'] = in_array($_G['gp_anchor'], array('mod', 'heatthread', 'recommend', 'comment', 'activity', 'other')) ? $_G['gp_anchor'] : 'mod';
     showsubmenuanchors('setting_functions', array(array('setting_functions_mod', 'mod', $_G['gp_anchor'] == 'mod'), array('setting_functions_heatthread', 'heatthread', $_G['gp_anchor'] == 'heatthread'), array('setting_functions_recommend', 'recommend', $_G['gp_anchor'] == 'recommend'), array('setting_functions_comment', 'comment', $_G['gp_anchor'] == 'comment'), array('setting_functions_activity', 'activity', $_G['gp_anchor'] == 'activity'), array('setting_functions_other', 'other', $_G['gp_anchor'] == 'other')));
 } elseif ($operation == 'credits') {
     $_G['gp_anchor'] = in_array($_G['gp_anchor'], array('base', 'policytable')) ? $_G['gp_anchor'] : 'base';
     $current = array($_G['gp_anchor'] => 1);
     showsubmenu('setting_credits', array(array('setting_credits_base', 'setting&operation=credits&anchor=base', $current['base']), array('setting_credits_policy', 'credits&operation=list&anchor=policytable', $current['policytable'])));
 } elseif ($operation == 'editor') {
     showsubmenu('setting_editor', array(array('setting_editor_global', 'setting&operation=editor', 1), array('setting_editor_code', 'misc&operation=bbcode', 0)));
 } elseif ($operation == 'imgwater') {
     $_G['gp_anchor'] = in_array($_G['gp_anchor'], array('portal', 'forum', 'album')) ? $_G['gp_anchor'] : 'portal';
     showsubmenuanchors('setting_imgwater', array(array('setting_imgwater_portal', 'portal', $_G['gp_anchor'] == 'portal'), array('setting_imgwater_forum', 'forum', $_G['gp_anchor'] == 'forum'), array('setting_imgwater_album', 'album', $_G['gp_anchor'] == 'album')));
 } else {
     showsubmenu('setting_' . $operation);
 }
 showformheader('setting&edit=yes');
 showhiddenfields(array('operation' => $operation));
 if ($operation == 'basic') {
     showtableheader('');
     showsetting('setting_basic_bbname', 'settingnew[bbname]', $setting['bbname'], 'text');
     showsetting('setting_basic_sitename', 'settingnew[sitename]', $setting['sitename'], 'text');
     showsetting('setting_basic_siteurl', 'settingnew[siteurl]', $setting['siteurl'], 'text');
     showsetting('setting_basic_adminemail', 'settingnew[adminemail]', $setting['adminemail'], 'text');
     showsetting('setting_basic_icp', 'settingnew[icp]', $setting['icp'], 'text');
     showsetting('setting_basic_boardlicensed', 'settingnew[boardlicensed]', $setting['boardlicensed'], 'radio');
     showsetting('setting_basic_stat', 'settingnew[statcode]', $setting['statcode'], 'textarea');
     showtablefooter();
开发者ID:v998,项目名称:discuzx-en,代码行数:31,代码来源:admincp_setting.php


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