Esempio n. 1
0
$keyboard = $schallr['keyboard'];
$query = "select id,classid from {$dbtbpre}enewssearchall where " . $schallr['where'];
if ($totalnum < 1) {
    $totalquery = "select count(*) as total from {$dbtbpre}enewssearchall where " . $schallr['where'];
    $num = $empire->gettotal($totalquery);
    if (empty($num)) {
        printerror('SchallNotRecord', '', 1);
    }
} else {
    $num = $totalnum;
}
$search = $schallr['search'] . "&totalnum=" . $num;
$query .= " order by infotime desc limit {$offset},{$line}";
$sql = $empire->query($query);
$listpage = page1($num, $line, $page_line, $start, $page, $search);
$url = "<a href='" . ReturnSiteIndexUrl() . "'>" . $fun_r['index'] . "</a>&nbsp;>&nbsp;" . $fun_r['SearchAllNav'];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>搜索 - Powered by EmpireCMS</title>
<link href="/skin/default/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/skin/default/js/tabs.js"></script>
<style type="text/css">
<!--
.r {
display:inline;
font-weight:normal;
margin:0;
font-size:16px;
Esempio n. 2
0
    $search .= "&tagname={$tagname}";
}
//模型ID
$mid = (int) $_GET['mid'];
if ($mid) {
    if (empty($emod_r[$mid]['tbname'])) {
        printerror('ErrorUrl', '', 1);
    }
    $add .= " and mid='{$mid}'";
    $search .= '&mid=' . $mid;
}
$pagetitle = $tagname;
$pagekey = $tagname;
$pagedes = $tagname;
$classimg = $public_r[newsurl] . 'e/data/images/notimg.gif';
$url = "<a href='" . ReturnSiteIndexUrl() . "'>" . $fun_r['index'] . "</a>&nbsp;>&nbsp;" . $fun_r['TagsInfoList'] . "&nbsp;>&nbsp;" . $tagname;
$pageecms = 1;
$pageclassid = 0;
$have_class = 1;
//栏目
$trueclassid = 0;
$classid = $_GET['classid'];
if ($classid) {
    $classid = RepPostVar($classid);
    if (strstr($classid, ',')) {
        $son_r = sys_ReturnMoreClass($classid, 1);
        $trueclassid = $son_r[0];
        $add .= ' and (' . $son_r[1] . ')';
    } else {
        $trueclassid = intval($classid);
        if ($class_r[$trueclassid][islast]) {
Esempio n. 3
0
function PreviewIndexpage($tempid, $userid, $username)
{
    global $empire, $dbtbpre, $public_r, $emod_r, $class_r, $class_zr, $fun_r, $navclassid, $navinfor, $class_tr, $level_r, $etable_r;
    //验证权限
    CheckLevel($userid, $username, $classid, "template");
    $tempid = (int) $tempid;
    if (!$tempid) {
        printerror('ErrorUrl', '');
    }
    $tempr = $empire->fetch1("select tempid,temptext from {$dbtbpre}enewsindexpage where tempid='{$tempid}'");
    if (!$tempr['tempid']) {
        printerror('ErrorUrl', '');
    }
    $indextext = stripSlashes($tempr['temptext']);
    $indextext = ReplaceTempvar($indextext);
    //替换全局模板变量
    $pr = $empire->fetch1("select sitekey,siteintro from {$dbtbpre}enewspublic limit 1");
    //页面
    $pagetitle = ehtmlspecialchars($public_r['sitename']);
    $pagekey = ehtmlspecialchars($pr['sitekey']);
    $pagedes = ehtmlspecialchars($pr['siteintro']);
    $url = "<a href=\"" . ReturnSiteIndexUrl() . "\">" . $fun_r['index'] . "</a>";
    //栏目导航
    $onclick = '';
    $file = ECMS_PATH . DASHBOARD . '/data/tmp/indexpage' . $tempid . '.php';
    $indextext = ReplaceSvars($indextext, $url, 0, $pagetitle, $pagekey, $pagedes, $add, 0);
    $indextext = str_replace("[!--page.stats--]", $onclick, $indextext);
    //替换标签
    $indextext = DoRepEcmsLoopBq($indextext);
    $indextext = RepBq($indextext);
    //写文件
    WriteFiletext($file, AddCheckViewTempCode() . $indextext);
    //读取文件内容
    ob_start();
    include $file;
    $string = ob_get_contents();
    ob_end_clean();
    $string = RepExeCode($string);
    //解析代码
    echo stripSlashes($string);
    exit;
}
Esempio n. 4
0
$ttid = $_GET['ttid'];
if ($ttid) {
    $ttid = RepPostVar($ttid);
    if (strstr($ttid, ',')) {
        $son_r = sys_ReturnMoreTT($ttid);
        $truettid = $son_r[0];
        $add .= ' and (' . $son_r[1] . ')';
    } else {
        $truettid = intval($ttid);
        $add .= " and ttid='{$truettid}'";
        if ($pageecms == 1) {
            $pagetitle = $class_tr[$truettid]['tname'];
            $pagekey = $class_tr[$truettid]['tname'];
            $pagedes = $class_tr[$truettid]['tname'];
            $classimg = $public_r[newsurl] . 'e/data/images/notimg.gif';
            $url = "<a href='" . ReturnSiteIndexUrl() . "'>" . $fun_r['index'] . "</a>&nbsp;>&nbsp;" . $class_tr[$truettid]['tname'];
            $pageclassid = $truettid;
            $GLOBALS['navclassid'] = $truettid;
        }
    }
    $ttmid = $class_tr[$truettid]['mid'];
    if (empty($ttmid)) {
        printerror('ErrorUrl', '', 1);
    }
    if (empty($tbname)) {
        $tbname = $emod_r[$ttmid]['tbname'];
        $mid = $ttmid;
        $yhid = $class_tr[$truettid][yhid];
    }
    $search .= '&ttid=' . $ttid;
}
Esempio n. 5
0
function GetDownloadPage()
{
    global $empire, $public_r, $dbtbpre, $fun_r;
    $pr = $empire->fetch1("select downpagetemp from " . GetTemptb("enewspubtemp") . " limit 1");
    $temptext = $pr['downpagetemp'];
    $url = "<a href='" . ReturnSiteIndexUrl() . "'>" . $fun_r['index'] . "</a>&nbsp;>&nbsp;<a href='<?=\$titleurl?>'><?=\$r[title]?></a>&nbsp;>&nbsp;<?=\$thisdownname?>";
    $pagetitle = "<?=ehtmlspecialchars(\$r[title])?> - <?=ehtmlspecialchars(\$thisdownname)?>";
    $temptext = ReplaceSvars($temptext, $url, "<?=\$r[classid]?>", $pagetitle, $pagetitle, $pagetitle, $add, 1);
    //分类
    $temptext = str_replace("[!--classid--]", "<?=\$r[classid]?>", $temptext);
    $temptext = str_replace("[!--class.name--]", "<?=\$classname?>", $temptext);
    $temptext = str_replace("[!--bclass.id--]", "<?=\$bclassid?>", $temptext);
    $temptext = str_replace("[!--bclass.name--]", "<?=\$bclassname?>", $temptext);
    //下载地址
    $temptext = str_replace("[!--down.url--]", "<?=\$url?>", $temptext);
    $temptext = str_replace("[!--true.down.url--]", "<?=\$trueurl?>", $temptext);
    $temptext = str_replace("[!--down.name--]", "<?=\$thisdownname?>", $temptext);
    //下载权限
    $temptext = str_replace("[!--fen--]", "<?=\$fen?>", $temptext);
    $temptext = str_replace("[!--group--]", "<?=\$downuser?>", $temptext);
    //信息
    $temptext = str_replace("[!--id--]", "<?=\$r[id]?>", $temptext);
    $temptext = str_replace("[!--titleurl--]", "<?=\$titleurl?>", $temptext);
    $temptext = str_replace("[!--title--]", "<?=\$r[title]?>", $temptext);
    $temptext = str_replace("[!--newstime--]", "<?=\$newstime?>", $temptext);
    $temptext = str_replace("[!--titlepic--]", "<?=\$titlepic?>", $temptext);
    $temptext = str_replace("[!--keyboard--]", "<?=\$r[keyboard]?>", $temptext);
    $temptext = str_replace("[!--userid--]", "<?=\$r[userid]?>", $temptext);
    $temptext = str_replace("[!--username--]", "<?=\$r[username]?>", $temptext);
    $temptext = str_replace("[!--pathid--]", "<?=\$pathid?>", $temptext);
    $temptext = str_replace("[!--totaldown--]", "<?=\$r[totaldown]?>", $temptext);
    $temptext = str_replace("[!--onclick--]", "<?=\$r[onclick]?>", $temptext);
    $file = eReturnTrueEcmsPath() . "e/data/template/downpagetemp.php";
    WriteFiletext($file, AddCheckViewTempCode() . $temptext);
}
Esempio n. 6
0
$offset = $start + $page * $line;
//总偏移量
$totalnum = (int) $_GET['totalnum'];
if ($totalnum > 0) {
    $num = $totalnum;
} else {
    $totalquery = "select count(*) as total from {$dbtbpre}enewsgbook where bid='{$bid}' and checked=0";
    $num = $empire->gettotal($totalquery);
    //取得总条数
}
$search .= "&totalnum={$num}";
$query = "select lyid,name,email,`mycall`,lytime,lytext,retext from {$dbtbpre}enewsgbook where bid='{$bid}' and checked=0";
$query = $query . " order by lyid desc limit {$offset},{$line}";
$sql = $empire->query($query);
$listpage = page1($num, $line, $page_line, $start, $page, $search);
$url = "<a href='" . ReturnSiteIndexUrl() . "'>" . $fun_r['index'] . "</a>&nbsp;>&nbsp;" . $fun_r['saygbook'];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>留言板 - Powered by EmpireCMS</title>
<meta name="keywords" content="<?php 
echo $bname;
?>
" />
<meta name="description" content="<?php 
echo $bname;
?>
" />
<link href="/skin/default/css/style.css" rel="stylesheet" type="text/css" />
Esempio n. 7
0
function ReturnUserPLink($title, $titleurl)
{
    global $public_r, $fun_r;
    $string = '<a href="' . ReturnSiteIndexUrl() . '">' . $fun_r['index'] . '</a>&nbsp;' . $public_r[navfh] . '&nbsp;' . $title;
    return $string;
}