Ejemplo n.º 1
0
    //伪静态
    $pagefunr = eReturnRewriteTagsUrl($tagid, $tagname, 0);
    $pagefunr['repagenum'] = 0;
    //分页
    if ($pagefunr['rewrite'] == 1) {
        $listpage = InfoUsePage($num, $line, $page_line, $start, $page, $search, $pagefunr);
    } else {
        $listpage = page1($num, $line, $page_line, $start, $page, $search);
    }
} else {
    $listpage = page1($num, $line, $page_line, $start, $page, $search);
    //分页
}
//页面支持标签
if ($public_r['dtcanbq']) {
    $tempr[temptext] = DtNewsBq('list' . $tempid, $tempr[temptext], 0);
} else {
    if ($public_r['searchtempvar']) {
        $tempr[temptext] = ReplaceTempvar($tempr[temptext]);
    }
}
$listtemp = $tempr[temptext];
$rownum = $tempr[rownum];
if (empty($rownum)) {
    $rownum = 1;
}
$formatdate = $tempr[showdate];
$subnews = $tempr[subnews];
$subtitle = $tempr[subtitle];
$docode = $tempr[docode];
$modid = $tempr[modid];
Ejemplo n.º 2
0
        $newstempstr = str_replace('[!--info.vote--]', $myvotetext, $newstempstr);
    }
    //评分
    if (strstr($newstemptext, '[!--pinfopfen--]')) {
        $pinfopfen = $add[infopfennum] ? round($add[infopfen] / $add[infopfennum]) : 0;
        $newstempstr = str_replace('[!--pinfopfen--]', $pinfopfen, $newstempstr);
        $newstempstr = str_replace('[!--infopfennum--]', $add[infopfennum], $newstempstr);
    }
    $string = $newstempstr;
    //替换变量
    $string = str_replace('[!--p.title--]', strip_tags($ptitle), $string);
    $string = str_replace('[!--next.page--]', $thisnextlink, $string);
    $string = str_replace('[!--page.url--]', $truepage, $string);
    $string = str_replace('[!--title.select--]', $titleselect, $string);
    return $string;
}
if (empty($newstemp_r['tempid'])) {
    printerror('ErrorUrl', '', 1);
}
//页面支持标签
if ($public_r['dtncanbq']) {
    $newstemp_r[temptext] = DtNewsBq('text' . $newstemp_r[tempid], $newstemp_r[temptext], 1);
} else {
    if ($public_r['searchtempvar']) {
        $newstemp_r[temptext] = ReplaceTempvar($newstemp_r[temptext]);
    }
}
$string = DtGetHtml($r, $newstemp_r, $mid, $tbname, $line, $page_line, $start, $page, $search);
echo stripSlashes($string);
db_close();
$empire = null;