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


PHP showtips函数代码示例

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


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

示例1: dgmdate

$aid = $_G['gp_aid'];
$subject = $_G['gp_subject'];
if (!submitcheck('postcommentsubmit')) {
    if (empty($_G['gp_search'])) {
        $newlist = 1;
        $detail = 1;
        $starttime = dgmdate(TIMESTAMP - 86400 * 7, 'Y-n-j');
    }
    $starttime = !preg_match("/^(0|\\d{4}\\-\\d{1,2}\\-\\d{1,2})\$/", $starttime) ? dgmdate(TIMESTAMP - 86400 * 7, 'Y-n-j') : $starttime;
    $endtime = $_G['adminid'] == 3 || !preg_match("/^(0|\\d{4}\\-\\d{1,2}\\-\\d{1,2})\$/", $endtime) ? dgmdate(TIMESTAMP, 'Y-n-j') : $endtime;
    shownav('topic', 'nav_postcomment');
    showsubmenu('nav_postcomment', array(array('newlist', 'postcomment', !empty($newlist)), array('search', 'postcomment&search=true', empty($newlist))));
    empty($newlist) && showsubmenusteps('', array(array('postcomment_search', !$searchsubmit), array('nav_postcomment', $searchsubmit)));
    if (empty($newlist)) {
        $search_tips = 1;
        showtips('postcomment_tips');
    }
    echo <<<EOT
<script type="text/javascript" src="static/js/calendar.js"></script>
<script type="text/JavaScript">
function page(number) {
\t\$('postcommentforum').page.value=number;
\t\$('postcommentforum').searchsubmit.click();
}
</script>
EOT;
    showtagheader('div', 'searchposts', !$searchsubmit && empty($newlist));
    showformheader("postcomment" . (!empty($_G['gp_search']) ? '&search=true' : ''), '', 'postcommentforum');
    showhiddenfields(array('page' => $page, 'pp' => $_G['gp_pp'] ? $_G['gp_pp'] : $_G['gp_perpage']));
    showtableheader();
    showsetting('postcomment_search_detail', 'detail', $detail, 'radio');
开发者ID:v998,项目名称:discuzx-en,代码行数:31,代码来源:admincp_postcomment.php

示例2: update_posttableids

        update_posttableids();
        updatecache('setting');
        cpmsg('postsplit_table_memo_update_succeed', 'action=postsplit&operation=manage', 'succeed');
    }
} elseif ($operation == 'split') {
    if (!$_G['setting']['bbclosed']) {
        cpmsg('postsplit_forum_must_be_closed', 'action=postsplit&operation=manage', 'error');
    }
    $tableid = intval($_G['gp_tableid']);
    $tablename = getposttable($tableid);
    if ($tableid && $tablename != 'forum_post' || !$tableid) {
        $status = gettablestatus(DB::table($tablename), false);
        $allowsplit = false;
        if ($status && (!$tableid && $status['Data_length'] > 400 * 1048576 || $tableid && $status['Data_length'])) {
            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);
开发者ID:v998,项目名称:discuzx-en,代码行数:31,代码来源:admincp_postsplit.php

示例3: cpheader

$endtime = $_G['gp_endtime'];
$searchsubmit = $_G['gp_searchsubmit'];
$sids = $_G['gp_sids'];
cpheader();
if (!submitcheck('sharesubmit')) {
    if (empty($_G['gp_search'])) {
        $newlist = 1;
        $detail = 1;
        $starttime = dgmdate(TIMESTAMP - 86400 * 7, 'Y-m-d');
    }
    $starttime = !preg_match("/^(0|\\d{4}\\-\\d{1,2}\\-\\d{1,2})\$/", $starttime) ? dgmdate(TIMESTAMP - 86400 * 7, 'Y-m-d') : $starttime;
    $endtime = $_G['adminid'] == 3 || !preg_match("/^(0|\\d{4}\\-\\d{1,2}\\-\\d{1,2})\$/", $endtime) ? dgmdate(TIMESTAMP, 'Y-m-d') : $endtime;
    shownav('topic', 'nav_share');
    showsubmenu('nav_share', array(array('newlist', 'share', !empty($newlist)), array('search', 'share&search=true', empty($newlist))));
    empty($newlist) && showsubmenusteps('', array(array('share_search', !$searchsubmit), array('nav_share', $searchsubmit)));
    showtips('share_tips');
    echo <<<EOT
<script type="text/javascript" src="static/js/calendar.js"></script>
<script type="text/JavaScript">
function page(number) {
\t\$('shareforum').page.value=number;
\t\$('shareforum').searchsubmit.click();
}
</script>
EOT;
    showtagheader('div', 'searchposts', !$searchsubmit && empty($newlist));
    showformheader("share" . (!empty($_G['gp_search']) ? '&search=true' : ''), '', 'shareforum');
    showhiddenfields(array('page' => $page, 'pp' => $_G['gp_pp'] ? $_G['gp_pp'] : $_G['gp_perpage']));
    showtableheader();
    showsetting('share_search_detail', 'detail', $detail, 'radio');
    showsetting('share_search_perpage', '', $_G['gp_perpage'], "<select name='perpage'><option value='20'>{$lang['perpage_20']}</option><option value='50'>{$lang['perpage_50']}</option><option value='100'>{$lang['perpage_100']}</option></select>");
开发者ID:v998,项目名称:discuzx-en,代码行数:31,代码来源:admincp_share.php

示例4: addslashes

        $extra = $type != 'custom' ? '' : '&customid=' . $parameters['extra']['customid'];
        $advnew['parameters'] = addslashes(serialize(array_merge(is_array($parameters) ? $parameters : array(), array('style' => $advnew['style']), $advnew['style'] == 'code' ? array() : $advnew[$advnew['style']], array('html' => $advnew['code']), array('displayorder' => $advnew['displayorder']))));
        $advnew['code'] = addslashes($advnew['code']);
        $query = DB::query("UPDATE " . DB::table('advertisement') . " SET title='{$advnew['title']}', targets='{$advnew['targets']}', parameters='{$advnew['parameters']}', code='{$advnew['code']}', starttime='{$advnew['starttime']}', endtime='{$advnew['endtime']}' WHERE advid='{$advid}'");
        updatecache('advs');
        updatecache('setting');
        if ($operation == 'edit') {
            cpmsg('adv_succeed', $_G['gp_referer'], 'succeed');
        } else {
            cpmsg('adv_succeed', 'action=adv&operation=edit&advid=' . $advid . $extra, 'succeed');
        }
    }
} elseif ($operation == 'list') {
    shownav('global', 'adv_admin');
    showsubmenu('adv_admin', array(array('adv_admin_list', 'adv&operation=list', 1), array('adv_admin_listall', 'adv&operation=ad', 0)));
    showtips('adv_list_tip');
    $advs = getadvs();
    showtableheader('', 'fixpadding');
    $row = 4;
    $rowwidth = 1 / $row * 100;
    $customadv = $ads = array();
    $tmp = $advs['adv_custom.php'];
    unset($advs['adv_custom.php']);
    $advs['adv_custom.php'] = $tmp;
    $query = DB::query("SELECT type, count(type) as count FROM " . DB::table('advertisement') . " GROUP BY type");
    while ($ad = DB::fetch($query)) {
        $ads[$ad['type']] = $ad['count'];
    }
    $query = DB::query("SELECT parameters FROM " . DB::table('advertisement') . " WHERE type='custom'");
    while ($ad = DB::fetch($query)) {
        $parameters = unserialize($ad['parameters']);
开发者ID:pan289091315,项目名称:Discuz,代码行数:31,代码来源:adv.inc.php

示例5: showRTitle

function showRTitle($appId)
{
    global $ak, $sk, $_G, $pluginid;
    $str = '';
    $str .= '<li>' . sprintf(lang('plugin/bigapp', 'myapp_tip1'), $_G['setting']['plugins']['version']['bigapp']) . '</li>';
    $str .= '<li>' . lang('plugin/bigapp', 'myapp_tip2') . $_G['setting']['version'] . '</li>';
    $str .= '<li>' . lang('plugin/bigapp', 'myapp_tip3') . '</li>';
    //$str .= '<li>' . lang('plugin/bigapp', 'myapp_tip4') . '</li>';
    $str .= '<li style="color:red;font-weight:bold">' . lang('plugin/bigapp', 'jump2conf_tip1') . '<a href="' . rtrim($_G['siteurl'], '/') . '/admin.php?action=plugins&operation=config&do=' . $pluginid . '&identifier=bigapp&pmod=buildapp' . '">' . lang('plugin/bigapp', 'menu_app_gen') . '</a>' . lang('plugin/bigapp', 'jump2conf_tip2') . '</li>';
    showtips($str, '', true);
    $str = '';
    $str .= '<li>APP_KEY: ' . $ak . '</li>';
    $str .= '<li>APP_SECRET: ' . $sk . '</li>';
    $title = lang('plugin/bigapp', 'basic_setting');
    $be = checkBoost();
    $exit = 0;
    if (0 !== $be) {
        if (1 == $be) {
            $str = '<li>' . lang('plugin/bigapp', 'boost_file_miss1') . '</li>';
        } else {
            $str = '<li>' . lang('plugin/bigapp', 'boost_file_miss2') . '</li>';
        }
        $exit = 1;
        $title = lang('plugin/bigapp', 'api_invalid');
    }
    showtips($str, '', true, $title);
    showtablefooter();
    return $exit;
}
开发者ID:Mushan3420,项目名称:BigApp-PHP7,代码行数:29,代码来源:myapp.inc.php

示例6: exit

<?php

/**
 *      [Discuz!] (C)2001-2099 Comsenz Inc.
 *      This is NOT a freeware, use is subject to license terms
 *
 *      $Id: cloud_smilies.php 25510 2011-11-14 02:22:26Z yexinhao $
 */
if (!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) {
    exit('Access Denied');
}
cpheader();
$_GET['anchor'] = in_array($_GET['anchor'], array('base')) ? $_GET['anchor'] : 'base';
shownav('navcloud', 'cloud_storage');
showsubmenu('cloud_storage');
showtips('cloud_storage_tips');
开发者ID:MCHacker,项目名称:discuz-docker,代码行数:16,代码来源:cloud_storage.php

示例7: cpmsg

            }
        }
        cpmsg('tasks_succeed', "action=tasks", 'succeed');
    }
} elseif ($operation == 'delete' && $id) {
    if (!$_G['gp_confirmed']) {
        cpmsg('tasks_del_confirm', "action=tasks&operation=delete&id={$id}", 'form');
    }
    DB::query("DELETE FROM " . DB::table('common_task') . " WHERE taskid='{$id}'");
    DB::query("DELETE FROM " . DB::table('common_taskvar') . " WHERE taskid='{$id}'");
    DB::query("DELETE FROM " . DB::table('common_mytask') . " WHERE taskid='{$id}'");
    cpmsg('tasks_del', 'action=tasks', 'succeed');
} elseif ($operation == 'type') {
    shownav('extended', 'nav_tasks');
    showsubmenu('nav_tasks', array(array('admin', 'tasks', 0), $submenus ? array(array('menu' => 'add', 'submenu' => $submenus), '', 0) : array(), array('nav_task_type', 'tasks&operation=type', 1)));
    showtips('tasks_tips_add_type');
    $tasks = gettasks();
    showtableheader('', 'fixpadding');
    if ($tasks) {
        showsubtitle(array('name', 'tasks_version', 'copyright', ''));
        foreach ($tasks as $task) {
            showtablerow('', '', array($task['name'] . ($task['filemtime'] > TIMESTAMP - 86400 ? ' <font color="red">New!</font>' : ''), $task['version'], $task['copyright'], in_array($task['class'], $custom_scripts) ? "<a href=\"" . ADMINSCRIPT . "?action=tasks&operation=upgrade&script={$task['class']}\" class=\"act\">{$lang['tasks_upgrade']}</a> <a href=\"" . ADMINSCRIPT . "?action=tasks&operation=uninstall&script={$task['class']}\" class=\"act\">{$lang['tasks_uninstall']}</a><br />" : "<a href=\"" . ADMINSCRIPT . "?action=tasks&operation=install&script={$task['class']}\" class=\"act\">{$lang['tasks_install']}</a>"));
        }
    } else {
        showtablerow('', '', $lang['task_module_nonexistence']);
    }
    showtablefooter();
} elseif ($operation == 'install' && $_G['gp_script']) {
    if (DB::result_first("SELECT COUNT(*) FROM " . DB::table('common_task') . " WHERE scriptname='{$_G['gp_script']}'")) {
        cpmsg('tasks_install_duplicate', '', 'error');
    }
开发者ID:v998,项目名称:discuzx-en,代码行数:31,代码来源:admincp_tasks.php

示例8: cpmsg

     $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();
     showformfooter();
开发者ID:v998,项目名称:discuzx-en,代码行数:31,代码来源:admincp_plugins.php

示例9: showtextradio

         }
     }
     function showtextradio($textname, $textvalue, $radioname, $radioes = array())
     {
         $a = '<input type="text" class="txt marginbot" name="' . $textname . '" id="' . $textname . '" value="' . $textvalue . '" /><ul style="width: 340px;" onmouseover="altStyle(this);">';
         if (is_array($radioes)) {
             foreach ($radioes as $radio) {
                 $a .= '<li><input type="radio" name="' . $radioname . '" value="' . $radio[1] . '" class="radio" onclick="$(\'' . $textname . '\').value = this.value"' . ($radio[2] ? ' checked="checked"' : '') . ' /> ' . $radio[0] . '</li>';
             }
         }
         $a .= '</ul>';
         return $a;
     }
     shownav('tools', 'nav_creditwizard');
     showsubmenu('nav_creditwizard', array(array('creditwizard_step_menu_1', 'creditwizard&step=1', $step == 1), array('creditwizard_step_menu_2', 'creditwizard&step=2', $step == 2), array('creditwizard_step_menu_3', 'creditwizard&step=3', $step == 3), array('creditwizard_step_menu_4', 'settings&operation=ec&from=creditwizard', 0), array('ec_alipay', 'ec&operation=alipay&from=creditwizard', 0)));
     showtips('creditwizard_tips_creditsuse');
     showformheader('creditwizard&step=3');
     showtableheader('creditwizard_step_menu_3');
     showsetting('settings_credits_trans', '', '', '<select onchange="$(\'allowcreditstrans\').style.display = this.value != 0 ? \'\' : \'none\'" name="creditstransnew">' . $creditstransselect . '</select>');
     showsetting('settings_credits_tax', '', '', showtextradio('creditstaxnew', $creditstax, 'creditstaxradio', array(array($lang['low'] . ' (0.01)', '0.01', $creditstax == '0.01'), array($lang['middle'] . ' (0.1)', '0.1', $creditstax == '0.1'), array($lang['high'] . ' (0.5)', '0.5', $creditstax == '0.5'))));
     showsetting('settings_credits_minexchange', '', '', showtextradio('exchangemincreditsnew', $exchangemincredits, 'exchangemincreditsradio', array(array($lang['low'] . ' (100)', 100, $exchangemincredits == 100), array($lang['middle'] . ' (1000)', 1000, $exchangemincredits == 1000), array($lang['high'] . ' (5000)', 5000, $exchangemincredits == 5000))));
     showtagheader('tbody', 'allowcreditstrans', $creditstrans);
     showtitle('creditwizard_allowcreditstrans');
     showsetting('settings_credits_mintransfer', '', '', showtextradio('transfermincreditsnew', $transfermincredits, 'transfermincreditsradio', array(array($lang['low'] . ' (100)', 100, $transfermincredits == 100), array($lang['middle'] . ' (1000)', 1000, $transfermincredits == 1000), array($lang['high'] . ' (5000)', 5000, $transfermincredits == 5000))));
     showsetting('settings_credits_maxincperthread', '', '', showtextradio('maxincperthreadnew', $maxincperthread, 'maxincperthreadradio', array(array($lang['nolimit'] . ' (0)', 0, $maxincperthread == 0), array($lang['low'] . ' (10)', 10, $maxincperthread == 10), array($lang['middle'] . ' (50)', 50, $maxincperthread == 50), array($lang['high'] . ' (100)', 100, $maxincperthread == 100))));
     showsetting('settings_credits_maxchargespan', '', '', showtextradio('maxchargespannew', $maxchargespan, 'maxchargespanradio', array(array($lang['nolimit'] . ' (0)', 0, $maxchargespan == 0), array($lang['low'] . ' (5)', 5, $maxchargespan == 5), array($lang['middle'] . ' (24)', 24, $maxchargespan == 24), array($lang['high'] . ' (48)', 48, $maxchargespan == 48))));
     showtagfooter('tbody');
     showsubmit('settingsubmit');
     showtablefooter();
     showformfooter();
 } else {
开发者ID:BGCX067,项目名称:f2cont-svn-to-git,代码行数:31,代码来源:creditwizard.inc.php

示例10: showtablerow

                showtablerow('', array('class="td27" style="width:30px;"'), array("<input class='radio' type='radio' name='cmid' value='{$value['cmid']}' {$checked}/>", $value['modelname'], $value['scorenamestr'], date('Y-m-d', $value['dateline'])));
            }
            echo "</table>";
        } else {
            showtablerow('', array('class="td27"'), array(lang('catmodel_add')));
        }
        echo "</td></tr>";
        showtagfooter('tbody');
    }
    showhiddenfields(array('upid' => $_GET['upid']));
    showhiddenfields(array('catid' => $_GET['catid']));
    showhiddenfields(array('type' => $type));
    showsubmit('valuesubmit');
    showtablefooter();
    showformfooter();
} else {
    //沒有提交數據的列表頁
    shownav('catmanage', 'category_' . $type . '_list');
    showsubmenu('menu_category_' . $type);
    showtips('category_list_tips_' . $type);
    showformheader('category&type=' . $type);
    showtableheader('');
    showsubtitle(array('display_order', 'catid', 'catname', 'operation'));
    foreach ($categorylist as $value) {
        showtablerow('', array(), array('<input name="display[' . $value['catid'] . ']" type="text" size="2" value="' . $value['displayorder'] . '" />', $value['catid'], empty($value['url']) ? $value['pre'] . ' ' . $value['name'] : '<a href="' . $value['url'] . '" target="_blank">' . $value['pre'] . ' ' . $value['name'] . ' </a>', '[<a href="admin.php?action=category&op=add&type=' . $type . '&upid=' . $value['catid'] . '">' . lang('category_add_sub') . '</a>]' . ('[<a href="admin.php?action=category&op=edit&type=' . $type . '&upid=' . $value['upid'] . '&catid=' . $value['catid'] . '">' . lang('category_edit') . '</a>] ' . ($type != 'shop' && $type != 'region' && !$value['havechild'] ? '[<a href="admin.php?action=attribute&cid=' . $value['catid'] . '&type=' . $type . '">' . lang('attribute_list') . '</a>]' : '') . ' [<a href="admin.php?action=category&op=del&catid=' . $value['catid'] . '&type=' . $type . '">' . lang('category_del') . '</a>]')));
    }
    echo '<tr class="hover"><td></td><td><a href="?action=category&op=add&type=' . $type . '" class="addtr">' . lang('category_add_' . $type) . '</a></td><td></td><td></td><td></td></tr>';
    showsubmit('listsubmit');
    showtablefooter();
    showformfooter();
}
开发者ID:pan289091315,项目名称:Discuz,代码行数:31,代码来源:category.inc.php

示例11: cpmsg

         $options[$fieldid] = $value['title'];
     }
 }
 if (!empty($_GET['fieldid']) && !isset($options[$_GET['fieldid']])) {
     cpmsg('members_stat_bad_fieldid', 'action=members&operation=stat', 'error');
 }
 if (!empty($_GET['fieldid']) && $_GET['fieldid'] == 'groupid') {
     $usergroups = array();
     foreach (C::t('common_usergroup')->range() as $value) {
         $usergroups[$value['groupid']] = $value['grouptitle'];
     }
 }
 if (!submitcheck('statsubmit')) {
     shownav('user', 'nav_members_stat');
     showsubmenu('nav_members_stat');
     showtips('members_stat_tips');
     showformheader('members&operation=stat&fieldid=' . $_GET['fieldid']);
     showtableheader('members_stat_options');
     $option_html = '<ul>';
     foreach ($options as $key => $value) {
         $extra_style = $_GET['fieldid'] == $key ? ' font-weight: 900;' : '';
         $option_html .= "" . "<li style=\"float: left; width: 160px;{$extra_style}\">" . "<a href=\"" . ADMINSCRIPT . "?action=members&operation=stat&fieldid={$key}\">{$value}</a>" . "</li>";
     }
     $option_html .= '</ul><br style="clear: both;" />';
     showtablerow('', array('colspan="5"'), array($option_html));
     if ($_GET['fieldid']) {
         $list = array();
         $total = 0;
         foreach ($list = C::t('common_member_stat_field')->fetch_all_by_fieldid($_GET['fieldid']) as $value) {
             $total += $value['users'];
         }
开发者ID:MCHacker,项目名称:discuz-docker,代码行数:31,代码来源:admincp_members.php

示例12: showtype

        echo '<br />';
        showtype('jswizard_custom', 'top');
        showsetting('jswizard_jskey', 'jskey', $jskey, 'text');
        showsetting('jswizard_cachelife', 'parameter[cachelife]', $parameter['cachelife'] != '' ? intval($parameter['cachelife']) : '', 'text');
        if (strtoupper($charset) != 'UTF-8') {
            showsetting('jswizard_charset', 'parameter[jscharset]', $parameter['jscharset'], 'radio');
        } else {
            showsetting('jswizard_charsetr', array('parameter[jscharset]', array(array(0, $lang['none']), array(1, 'GBK'), array(2, 'BIG5'))), intval($parameter['jscharset']), 'mradio');
        }
        showtype('', 'bottom');
        echo $editext . '<br /><center><input class="button" type="submit" name="jssubmit" value="' . $lang['jswizard_preview'] . '">&nbsp; &nbsp;<input class="button" type="button" onclick="this.form.preview.value=0;this.form.jssubmit.click()" value="' . $lang['submit'] . '"><input name="preview" type="hidden" value="1"></center></form><br />';
        /* Custom == End == */
    }
} elseif ($action == 'fileperms') {
    shownav('menu_tools_fileperms');
    showtips('fileperms_tips');
    ?>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableborder">
<tr class="header"><td><?php 
    echo $lang['fileperms_check'];
    ?>
</td></tr>
<tr><td class="altbg1"><br /><ul>
<?php 
    $entryarray = array('attachments', 'forumdata', 'customavatars', 'forumdata/threadcaches');
    foreach (array('templates', 'forumdata/cache', 'forumdata/logs', 'forumdata/templates') as $directory) {
        getdirentry($directory);
    }
    $fault = 0;
    foreach ($entryarray as $entry) {
        $fullentry = DISCUZ_ROOT . './' . $entry;
开发者ID:BGCX262,项目名称:zyyhong-svn-to-git,代码行数:31,代码来源:tools.inc.php

示例13: showtableheader

    showtableheader();
    showsetting('cloud_site_id', 'my_siteid', $_G['setting']['my_siteid'], 'text');
    showsetting('cloud_site_key', 'my_sitekey', preg_replace('/(\\w{2})\\w*(\\w{2})/', '\\1****\\2', $_G['setting']['my_sitekey']), 'text');
    showsetting('cloud_site_status', array('cloud_status', array(array('0', $lang['cloud_doctor_status_0']), array('1', $lang['cloud_doctor_status_1']), array('2', $lang['cloud_doctor_status_2']))), $_G['setting']['cloud_status'], 'select');
    showsubmit('setidkeysubmit');
    showtablefooter();
    showformfooter();
    echo '</div>';
    ajaxshowfooter();
} else {
    $appService = Cloud::loadClass('Service_App');
    $doctorService = Cloud::loadClass('Service_Doctor');
    require_once DISCUZ_ROOT . './source/discuz_version.php';
    shownav('navcloud', 'menu_cloud_doctor');
    showsubmenu('menu_cloud_doctor');
    showtips('cloud_doctor_tips');
    echo '<script type="text/javascript">var disallowfloat = "";</script>';
    showtableheader();
    showtagheader('tbody', '', true);
    showtitle('cloud_doctor_title_status');
    showtablerow('', array('class="td24"'), array('<strong>' . cplang('cloud_site_url') . '</strong>', $_G['siteurl']));
    showtablerow('', array('class="td24"'), array('<strong>' . cplang('cloud_site_id') . '</strong>', $_G['setting']['my_siteid']));
    showtablerow('', array('class="td24"'), array('<strong>' . cplang('cloud_site_key') . '</strong>', preg_replace('/(\\w{2})\\w*(\\w{2})/', '\\1****\\2', $_G['setting']['my_sitekey']) . ' ' . $lang['cloud_site_key_safetips']));
    showtablerow('', array('class="td24"'), array('<strong>' . cplang('cloud_site_status') . '</strong>', isfounder() ? $doctorService->showCloudStatus($_G['setting']['cloud_status']) . ' <a href="javascript:;" onClick="showWindow(\'cloudApiIpWin\', \'' . ADMINSCRIPT . '?action=cloud&operation=doctor&op=setidkey\'); return false;">' . $lang['cloud_doctor_modify_siteidkey'] . '</a>' : $doctorService->showCloudStatus($_G['setting']['cloud_status'])));
    showtablerow('', array('class="td24"'), array('<strong>' . cplang('setting_basic_bbclosed') . '</strong>', $_G['setting']['bbclosed'] ? $lang['cloud_doctor_close_yes'] : $lang['no']));
    showtablerow('', array('class="td24"'), array('<strong>' . cplang('cloud_site_version') . '</strong>', DISCUZ_VERSION . ' ' . DISCUZ_RELEASE));
    showtagfooter('tbody');
    showtagheader('tbody', '', true);
    showtitle('cloud_doctor_title_result');
    showtablerow('', array('class="td24"'), array('<strong>' . cplang('cloud_timecheck') . '</strong>', '<span id="cloud_time_check">' . cplang('cloud_doctor_time_check', array('imgdir' => $_G['style']['imgdir'])) . '</span>'));
    showtablerow('', array('class="td24"'), array('<strong>' . cplang('cloud_doctor_gethostbyname_function') . '</strong>', function_exists('gethostbyname') ? $lang['cloud_doctor_result_success'] . ' ' . $lang['available'] : $lang['cloud_doctor_result_failure'] . $lang['cloud_doctor_function_disable']));
开发者ID:dalinhuang,项目名称:healthshop,代码行数:31,代码来源:cloud_doctor.php

示例14: cpheader

$endtime = $_G['gp_endtime'];
$searchsubmit = $_G['gp_searchsubmit'];
$picids = $_G['gp_picids'];
cpheader();
if (!submitcheck('picsubmit')) {
    if (empty($_G['gp_search'])) {
        $newlist = 1;
        $detail = 1;
        $starttime = dgmdate(TIMESTAMP - 86400 * 7, 'Y-m-d');
    }
    $starttime = !preg_match("/^(0|\\d{4}\\-\\d{1,2}\\-\\d{1,2})\$/", $starttime) ? dgmdate(TIMESTAMP - 86400 * 7, 'Y-m-d') : $starttime;
    $endtime = $_G['adminid'] == 3 || !preg_match("/^(0|\\d{4}\\-\\d{1,2}\\-\\d{1,2})\$/", $endtime) ? dgmdate(TIMESTAMP, 'Y-m-d') : $endtime;
    shownav('topic', 'nav_pic');
    showsubmenu('nav_pic', array(array('newlist', 'pic', !empty($newlist)), array('search', 'pic&search=true', empty($newlist))));
    empty($newlist) && showsubmenusteps('', array(array('pic_search', !$searchsubmit), array('nav_pic', $searchsubmit)));
    showtips('pic_tips');
    echo <<<EOT
<script type="text/javascript" src="static/js/calendar.js"></script>
<script type="text/JavaScript">
function page(number) {
\t\$('picforum').page.value=number;
\t\$('picforum').searchsubmit.click();
}
</script>
EOT;
    showtagheader('div', 'searchposts', !$searchsubmit && empty($newlist));
    showformheader("pic" . (!empty($_G['gp_search']) ? '&search=true' : ''), '', 'picforum');
    showhiddenfields(array('page' => $page, 'pp' => $_G['gp_pp'] ? $_G['gp_pp'] : $_G['gp_perpage']));
    showtableheader();
    showsetting('pic_search_detail', 'detail', $detail, 'radio');
    showsetting('pic_search_perpage', '', $_G['gp_perpage'], "<select name='perpage'><option value='20'>{$lang['perpage_20']}</option><option value='50'>{$lang['perpage_50']}</option><option value='100'>{$lang['perpage_100']}</option></select>");
开发者ID:v998,项目名称:discuzx-en,代码行数:31,代码来源:admincp_pic.php

示例15: cpmsg

            if (preg_match('/^((http|https|ftp):\\/\\/|\\.)|(\\/|\\.)$/i', $domain)) {
                cpmsg('setting_domain_http_error', '', 'error');
            }
            if ($_G['setting']['domain']['root'][$idtype] != $domain) {
                $updatetype = $idtype == 'forum' ? array('forum', 'channel') : $idtype;
                C::t('common_domain')->update_by_idtype($updatetype, array('domainroot' => $domain));
            }
            $_G['setting']['domain']['root'][$idtype] = $domain;
        }
        C::t('common_setting')->update('domain', $_G['setting']['domain']);
        updatecache('setting');
        cpmsg('setting_update_succeed', 'action=domain&operation=root', 'succeed');
    }
} else {
    if (!submitcheck('domainsubmit')) {
        showtips('setting_domain_base_tips');
        showformheader("domain");
        showtableheader();
        if ($_G['setting']['homepagestyle']) {
            showsetting('setting_domain_allow_space', 'settingnew[allowspacedomain]', $_G['setting']['allowspacedomain'], 'radio');
        } else {
            showhiddenfields(array('settingnew[allowspacedomain]' => 0));
        }
        if (helper_access::check_module('group')) {
            showsetting('setting_domain_allow_group', 'settingnew[allowgroupdomain]', $_G['setting']['allowgroupdomain'], 'radio');
        } else {
            showhiddenfields(array('settingnew[allowgroupdomain]' => 0));
        }
        showsetting('setting_domain_hold_domain', 'settingnew[holddomain]', $_G['setting']['holddomain'], 'text');
        showsubmit('domainsubmit');
        showtablefooter();
开发者ID:dalinhuang,项目名称:healthshop,代码行数:31,代码来源:admincp_domain.php


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