コード例 #1
0
ファイル: index.php プロジェクト: 313801120/AspPhpCms
function adminIndex()
{
    $c = '';
    loadWebConfig();
    $c = getTemplateContent('adminIndex.html');
    $c = replace($c, '[$adminonemenulist$]', getAdminOneMenuList());
    $c = replace($c, '[$adminmenulist$]', getAdminMenuList());
    $c = replace($c, '[$officialwebsite$]', getOfficialWebsite());
    //获得官方信息
    $c = replaceValueParam($c, 'title', '');
    //给手机端用的20160330
    $c = handleDisplayLanguage($c, 'loginok');
    Rw($c);
}
コード例 #2
0
function displayLayout()
{
    $content = '';
    $lableTitle = '';
    $templateFile = '';
    $lableTitle = @$_REQUEST['lableTitle'];
    $templateFile = @$_REQUEST['templateFile'];
    handlePower('显示' . $lableTitle);
    //管理权限处理
    $content = getTemplateContent(@$_REQUEST['templateFile']);
    $content = replace($content, '[$position$]', $lableTitle);
    $content = replaceValueParam($content, 'lableTitle', $lableTitle);
    //Robots.txt文件创建
    if ($templateFile == 'layout_makeRobots.html') {
        $content = replace($content, '[$bodycontent$]', getFText('/robots.txt'));
        //后台菜单地图
    } else {
        if ($templateFile == 'layout_adminMap.html') {
            $content = replaceValueParam($content, 'adminmapbody', getAdminMap());
            //管理模板
        } else {
            if ($templateFile == 'layout_manageTemplates.html') {
                $content = displayTemplatesList($content);
                //生成html
            } else {
                if ($templateFile == 'layout_manageMakeHtml.html') {
                    $content = replaceValueParam($content, 'columnList', getMakeColumnList());
                }
            }
        }
    }
    $content = handleDisplayLanguage($content, 'handleDisplayLanguage');
    //语言处理
    Rw($content);
}