Beispiel #1
0
    $stype || ($stype = 4);
    $div_width && ($div_w = $div_width);
    $div_height && ($div_h = $div_height);
    $yzdb[$yz] = "checked";
    $ascdb[$asc] = "checked";
    $orderdb[$order] = " selected ";
    $levelsdb[$levels] = " selected ";
    $titleflooddb["{$titleflood}"] = "checked";
    $hidedb[$hide] = "checked";
    $divtpldb[$DivTpl] = "checked";
    $stypedb[$stype] = " checked ";
    $fiddb = explode(",", $codedb[fiddb]);
    //$select_news=select_group("fiddb[]",$rsdb[groupid]);
    $select_group = select_group("group_1", $group_1);
    $select_group2 = select_group("group_2", $group_2);
    $tplpart_1 = str_replace(" ", " ", $tplpart_1);
    $tplpart_2 = str_replace(" ", " ", $tplpart_2);
    $getLabelTpl = getLabelTpl($inc, array("common_title", "common_pic"));
    //幻灯片样式
    $rollpicStyle = "<select name='RollStyleType' id='RollStyleType' onChange='rollpictypes(this)'><option value=''>默认</option>";
    $dir = opendir(ROOT_PATH . "template/default/rollpic/");
    while ($file = readdir($dir)) {
        if (eregi("\\.htm\$", $file)) {
            $rollpicStyle .= "<option value='{$file}'>" . str_replace(".htm", "", $file) . "</option>";
        }
    }
    $rollpicStyle .= "</select>";
    require "head.php";
    require "template/label/member.htm";
    require "foot.php";
}
Beispiel #2
0
    $rolltime || ($rolltime = 3);
    $_rolltype[$rolltype] = ' selected ';
    $div_width && ($div_w = $div_width);
    $div_height && ($div_h = $div_height);
    $yzdb[$yz] = "checked";
    $ascdb[$asc] = "checked";
    $orderdb[$order] = " selected ";
    $levelsdb[$levels] = " selected ";
    $titleflooddb["{$titleflood}"] = "checked";
    $hidedb[$hide] = "checked";
    $divtpldb[$DivTpl] = "checked";
    $stypedb[$stype] = " checked ";
    $fiddb = explode(",", $codedb[fiddb]);
    $digest == 1 ? $digestDB[1] = 'checked' : ($digestDB[all] = 'checked');
    $select_news = phpwind_fid($name = 'fiddb[]', $fiddb);
    $getLabelTpl = getLabelTpl($inc, array("common_title", "common_pic", "common_content", "common_fname", "common_zh_title", "common_zh_pic", "common_zh_content"));
    //幻灯片样式
    $rollpicStyle = "<select name='RollStyleType' id='RollStyleType' onChange='rollpictypes(this)'><option value=''>默认</option>";
    $dir = opendir(ROOT_PATH . "template/default/rollpic/");
    while ($file = readdir($dir)) {
        if (eregi("\\.htm\$", $file)) {
            $rollpicStyle .= "<option value='{$file}'>" . str_replace(".htm", "", $file) . "</option>";
        }
    }
    $rollpicStyle .= "</select>";
    require "head.php";
    require "template/label/pwbbs.htm";
    require "foot.php";
}
function phpwind_fid($name = 'fid', $fiddb)
{
Beispiel #3
0
    require_once ROOT_PATH . "inc/pinyin.php";
    $htmldirname = change2pinyin($rsdb[name], 1);
    if ($only) {
        $readonly2 = ' onbeforeactivate="return false" onfocus="this.blur()" onmouseover="this.setCapture()" onmouseout="this.releaseCapture()" ';
    }
    $module_id = "<select name='postdb[fmid]' {$readonly2}><option value='0'>文章模型</option>";
    $query = $db->query("SELECT * FROM {$pre}article_module  WHERE ifclose=0 ORDER BY list DESC");
    while ($rs = $db->fetch_array($query)) {
        $ckk = $rsdb[fmid] == $rs[id] ? ' selected ' : '';
        $module_id .= "<option value='{$rs['id']}' {$ckk}>{$rs['name']}</option>";
    }
    $module_id .= " </select>";
    if ($rsdb[type] == 1) {
        $getLabelTpl = getLabelTpl('template/default/fu_bigsort_tpl');
    } elseif ($rsdb[type] == 0) {
        $getLabelTpl = getLabelTpl('template/default/list_tpl');
    }
    require dirname(__FILE__) . "/" . "head.php";
    require dirname(__FILE__) . "/" . "template/fu_sort/menu.htm";
    if ($rsdb[type] == 2) {
        $rsdb[descrip] = editor_replace($rsdb[descrip]);
        $tpl['list'] || ($tpl['list'] = "template/default/alonepage.htm");
        require dirname(__FILE__) . "/" . "template/fu_sort/editsort2.htm";
    } else {
        $rsdb[descrip] = str_replace("<", "&lt;", $rsdb[descrip]);
        $rsdb[descrip] = str_replace(">", "&gt;", $rsdb[descrip]);
        require dirname(__FILE__) . "/" . "template/fu_sort/editsort.htm";
    }
    require dirname(__FILE__) . "/" . "foot.php";
} elseif ($action == "editsort" && $Apower[fu_sort_power]) {
    if ($postdb[type] != 2 && $postdb[tpl]['list'] == 'template/default/alonepage.htm') {
Beispiel #4
0
    $rolltime || ($rolltime = 3);
    $_rolltype[$rolltype] = ' selected ';
    $div_width && ($div_w = $div_width);
    $div_height && ($div_h = $div_height);
    $yzdb[$yz] = "checked";
    $ascdb[$asc] = "checked";
    $orderdb[$order] = " selected ";
    $levelsdb[$levels] = " selected ";
    $titleflooddb["{$titleflood}"] = "checked";
    $start_num > 0 || ($start_num = 1);
    $hidedb[$hide] = "checked";
    $divtpldb[$DivTpl] = "checked";
    $stypedb[$stype] = " checked ";
    $fiddb = explode(",", $codedb[fiddb]);
    $select_news = $Guidedb->Checkbox("{$cDB[sort]}", 'fiddb[]', $fiddb);
    $tplpart_1 = str_replace("&nbsp;", "&amp;nbsp;", $tplpart_1);
    $tplpart_2 = str_replace("&nbsp;", "&amp;nbsp;", $tplpart_2);
    $getLabelTpl = getLabelTpl("c", array("common_title", "common_pic", "common_content", "common_fname"));
    //幻灯片样式
    $rollpicStyle = "<select name='RollStyleType' id='RollStyleType' onChange='rollpictypes(this)'><option value=''>默认</option>";
    $dir = opendir(ROOT_PATH . "template/default/rollpic/");
    while ($file = readdir($dir)) {
        if (eregi("\\.htm\$", $file)) {
            $rollpicStyle .= "<option value='{$file}'>" . str_replace(".htm", "", $file) . "</option>";
        }
    }
    $rollpicStyle .= "</select>";
    require "head.php";
    require "template/label/c.htm";
    require "foot.php";
}
Beispiel #5
0
    $div_width && ($div_w = $div_width);
    $div_height && ($div_h = $div_height);
    $yzdb[$yz] = "checked";
    $ascdb[$asc] = "checked";
    $orderdb[$order] = " selected ";
    $levelsdb[$levels] = " selected ";
    $titleflooddb["{$titleflood}"] = "checked";
    $start_num > 0 || ($start_num = 1);
    $hidedb[$hide] = "checked";
    $divtpldb[$DivTpl] = "checked";
    $stypedb[$stype] = " checked ";
    $fiddb = explode(",", $codedb[fiddb]);
    $select_news = $Guidedb->Checkbox("{$cDB[sort]}", 'fiddb[]', $fiddb);
    $tplpart_1 = str_replace("&nbsp;", "&amp;nbsp;", $tplpart_1);
    $tplpart_2 = str_replace("&nbsp;", "&amp;nbsp;", $tplpart_2);
    $getLabelTpl = getLabelTpl($inc, array("common_title", "common_content"));
    //幻灯片样式
    $rollpicStyle = "<select name='RollStyleType' id='RollStyleType' onChange='rollpictypes(this)'><option value=''>默认</option>";
    $dir = opendir(ROOT_PATH . "template/default/rollpic/");
    while ($file = readdir($dir)) {
        if (eregi("\\.htm\$", $file)) {
            $rollpicStyle .= "<option value='{$file}'>" . str_replace(".htm", "", $file) . "</option>";
        }
    }
    $rollpicStyle .= "</select>";
    require "head.php";
    require "template/label/blog_c.htm";
    require "foot.php";
}
function get_table2($type)
{
Beispiel #6
0
    $autoCutSmallPic[intval($webdb[autoCutSmallPic])] = " checked ";
    $ArticleDownloadUseFtp[intval($webdb[ArticleDownloadUseFtp])] = " checked ";
    $webdb[PostNotice] = editor_replace($webdb[PostNotice]);
    if ($webdb[ArticleDownloadDirTime]) {
        $ArticleDownloadDirTime[$webdb[ArticleDownloadDirTime]] = ' checked ';
    } else {
        $ArticleDownloadDirTime[0] = ' checked ';
    }
    $showsortlogo[intval($webdb[showsortlogo])] = " checked ";
    $EditSystem[intval($webdb[EditSystem])] = " checked ";
    $ListPageTitle_nojs[intval($webdb[ListPageTitle_nojs])] = " checked ";
    $view_sell_article[intval($webdb[view_sell_article])] = " checked ";
    $allowDownMv[intval($webdb[allowDownMv])] = " checked ";
    $autoPlayFirstMv[intval($webdb[autoPlayFirstMv])] = " checked ";
    $heart_noRecord[intval($webdb[heart_noRecord])] = " checked ";
    $getLabelTpl = getLabelTpl();
    $get_S_LabelTpl = get_S_LabelTpl();
    require dirname(__FILE__) . "/" . "head.php";
    //require(dirname(__FILE__)."/"."template/article_more/menu.htm");
    require dirname(__FILE__) . "/" . "template/article_more/config.htm";
    require dirname(__FILE__) . "/" . "foot.php";
} elseif ($action == "config" && $Apower[article_more_config]) {
    if ($webdb[ArticleDownloadUseFtp] && (!$webdb[FtpHost] || !$webdb[FtpName] || !$webdb[FtpPwd] || !$webdb[FtpPort] || !$webdb[FtpDir])) {
        showmsg('请先配置好FTP,再选择附件存放到远程服务器!');
    }
    write_config_cache($webdbs);
    jump("修改成功", $FROMURL);
}
//获取标题标签模板
function getLabelTpl($path = 'template/default/side_tpl')
{
Beispiel #7
0
 $yzdb[$yz] = "checked";
 $ascdb[$asc] = "checked";
 $orderdb[$order] = " selected ";
 $levelsdb[$levels] = " checked ";
 $titleflooddb["{$titleflood}"] = "checked";
 $hidedb[$hide] = "checked";
 $divtpldb[$DivTpl] = "checked";
 $_hidefid[intval($hidefid)] = " checked ";
 $fiddb = explode(",", $codedb[fiddb]);
 $c_rolltype || ($c_rolltype = 0);
 $newhour || ($newhour = 24);
 $hothits || ($hothits = 30);
 $c_rolltypedb[$c_rolltype] = " checked ";
 $tplpart_1 = str_replace("&nbsp;", "&amp;nbsp;", $tplpart_1);
 $tplpart_2 = str_replace("&nbsp;", "&amp;nbsp;", $tplpart_2);
 $getLabelTpl = getLabelTpl($inc);
 $query = $db->query("SELECT * FROM `{$_pre}module` ORDER BY list DESC");
 while ($rs = $db->fetch_array($query)) {
     $moduledb[$rs[id]] = $rs[name];
 }
 $mck[$amodule] = ' selected ';
 //幻灯片样式
 $rollpicStyle = "<select name='RollStyleType' id='RollStyleType' onChange='rollpictypes(this)'><option value=''>默认</option>";
 $dir = opendir(ROOT_PATH . "template/default/rollpic/");
 while ($file = readdir($dir)) {
     if (eregi("\\.htm\$", $file)) {
         $rollpicStyle .= "<option value='{$file}'>" . str_replace(".htm", "", $file) . "</option>";
     }
 }
 $rollpicStyle .= "</select>";
 require "head.php";