本文整理汇总了PHP中GetTemptb函数的典型用法代码示例。如果您正苦于以下问题:PHP GetTemptb函数的具体用法?PHP GetTemptb怎么用?PHP GetTemptb使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了GetTemptb函数的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: ReplaceTempvar
function ReplaceTempvar($temp)
{
global $empire;
if (empty($temp)) {
return $temp;
}
$sql = $empire->query("select myvar,varvalue from " . GetTemptb("enewstempvar") . " where isclose=0 order by myorder desc,varid");
while ($r = $empire->fetch($sql)) {
$myvar = "[!--temp." . $r[myvar] . "--]";
$temp = str_replace($myvar, $r[varvalue], $temp);
}
return $temp;
}
示例2: ReturnInfoPubid
$pubid = ReturnInfoPubid($classid, $id);
$search = "&classid={$classid}&id=" . $id;
//标题链接
$titleurl = sys_ReturnBqTitleLink($n_r);
$title = stripSlashes($n_r[title]);
$pagetitle = ehtmlspecialchars($title);
//评分
$infopfennum = $n_r['infopfennum'];
$pinfopfen = $infopfennum ? round($n_r['infopfen'] / $infopfennum) : 0;
$url = ReturnClassLink($n_r[classid]) . " > <a href=" . $titleurl . ">" . $title . "</a> > " . $fun_r[pl];
}
//使用模板
$rewritetempid = 0;
if ($_GET['tempid']) {
$tempid = (int) $_GET['tempid'];
$tempnum = $empire->gettotal("select count(*) as total from " . GetTemptb("enewspltemp") . " where tempid='{$tempid}'");
$tempid = $tempnum ? $tempid : $public_r['defpltempid'];
$search .= '&tempid=' . $tempid;
$rewritetempid = $tempid;
} else {
if ($doaction == 'dozt') {
$tempid = $class_zr[$classid]['pltempid'] ? $class_zr[$classid]['pltempid'] : $public_r['defpltempid'];
} else {
$tempid = $class_r[$classid]['pltempid'] ? $class_r[$classid]['pltempid'] : $public_r['defpltempid'];
}
}
if (empty($tempid)) {
$tempid = 1;
}
$page = (int) $_GET['page'];
$page = RepPIntvar($page);
示例3: intval
$line = intval($public_r['tagslistnum']);
}
if (empty($line)) {
printerror('ErrorUrl', '', 1);
}
//列表模板
$tempid = (int) $_GET['tempid'];
if (empty($tempid)) {
$tempid = $public_r['tagstempid'];
} else {
DtTempIsClose($tempid, 'listtemp');
}
if (empty($tempid)) {
printerror('ErrorUrl', '', 1);
}
$tempr = $empire->fetch1("select tempid,temptext,subnews,listvar,rownum,showdate,modid,subtitle,docode from " . GetTemptb("enewslisttemp") . " where tempid='{$tempid}'");
if (empty($tempr[tempid])) {
printerror('ErrorUrl', '', 1);
}
$search .= '&line=' . $line . '&tempid=' . $tempid;
if (empty($mid)) {
$mid = $tempr['modid'];
}
$page = (int) $_GET['page'];
$page = RepPIntvar($page);
$start = 0;
$page_line = 10;
//每页显示链接数
$offset = $page * $line;
//总偏移量
//系统模型
示例4: GetTemptb
}
$tts .= "<option value='{$ttr['typeid']}'" . $select . ">{$ttr['tname']}</option>";
}
//内容模板
$t_sql = $empire->query("select tempid,tempname from " . GetTemptb("enewsnewstemp") . " order by modid,tempid");
while ($nt = $empire->fetch($t_sql)) {
if ($nt[tempid] == $r[newstempid]) {
$select = " selected";
} else {
$select = "";
}
$newstemp .= "<option value=" . $nt[tempid] . $select . ">" . $nt[tempname] . "</option>";
}
//模板
$votetemp = "";
$vtsql = $empire->query("select tempid,tempname from " . GetTemptb("enewsvotetemp") . " order by tempid");
while ($vtr = $empire->fetch($vtsql)) {
if ($voter[tempid] == $vtr[tempid]) {
$select = " selected";
} else {
$select = "";
}
$votetemp .= "<option value='" . $vtr[tempid] . "'" . $select . ">" . $vtr[tempname] . "</option>";
}
//同时发布
if (empty($r['copyids']) || $r['copyids'] == '1') {
$copyclassidshowiframe = '<IFRAME frameBorder="0" id="showclassnav" name="showclassnav" scrolling="no" src="ShowClassNav.php?ecms=1" style="HEIGHT:0;VISIBILITY:inherit;WIDTH:0;Z-INDEX:1"></IFRAME>';
$copyclassids = '<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#DBEAF5">
<tr>
<td>同时发布到以下栏目:</td>
</tr>
示例5: sys_ReturnBqTemp
function sys_ReturnBqTemp($tempid)
{
global $empire, $dbtbpre, $fun_r;
$r = $empire->fetch1("select tempid,modid,temptext,showdate,listvar,subnews,rownum,docode from " . GetTemptb("enewsbqtemp") . " where tempid='{$tempid}'");
if (empty($r[tempid])) {
echo $fun_r['BqErrorNbqtemp'] . "(ID=" . $tempid . ")";
}
return $r;
}
示例6: GetTxtFieldText
$r[$stf] = GetTxtFieldText($r[$stf]);
}
}
//初始值
$search = "&classid={$classid}&id={$id}";
$line = 1;
$start = 0;
$page_line = 6;
//每页显示链接数
$offset = $page * $line;
//总偏移量
$GLOBALS['navclassid'] = $r[classid];
$GLOBALS['navinfor'] = $r;
//取得内容模板
$r[newstempid] = $r[newstempid] ? $r[newstempid] : $class_r[$r[classid]][newstempid];
$newstemp_r = $empire->fetch1("select tempid,temptext,showdate from " . GetTemptb("enewsnewstemp") . " where tempid='{$r['newstempid']}'");
//替换模板变量
function DtGetHtml($add, $newstemp_r, $mid, $tbname, $line, $page_line, $start, $page, $search)
{
global $public_r, $class_r, $class_zr, $class_tr, $fun_r, $empire, $dbtbpre, $emod_r, $level_r;
//更新点击
$empire->query("update {$dbtbpre}ecms_" . $tbname . " set onclick=onclick+1 where id='{$add['id']}' limit 1");
$add['onclick'] = $add['onclick'] + 1;
//模板参数
$newstemptext = $newstemp_r[temptext];
$formatdate = $newstemp_r[showdate];
//页面
$pagetitle = ehtmlspecialchars($add[title]);
$url = ReturnClassLink($add[classid]);
//导航
$newstemptext = DtInfo_ReplaceSvars($newstemptext, $url, $add[classid], $pagetitle, $add[keyboard], $pagetitle);
示例7: stripSlashes
if (empty($search_r[myorder])) {
$myorder .= " desc";
}
$add = stripSlashes($search_r['andsql']);
$num = $search_r[result_num];
$query = "select * from {$dbtbpre}ecms_" . $search_r[tbname] . ($add ? ' where ' . substr($add, 5) : '');
$query .= " order by " . $myorder . " limit {$offset},{$line}";
$sql = $empire->query($query);
$listpage = page1($num, $line, $page_line, $start, $page, $search);
//取得模板
if ($search_r['tempid']) {
$tempr = $empire->fetch1("select temptext,subnews,listvar,rownum,showdate,modid,subtitle,docode from " . GetTemptb("enewssearchtemp") . " where tempid='" . $search_r['tempid'] . "' limit 1");
} elseif (empty($class_r[$search_r[trueclassid]][searchtempid])) {
$tempr = $empire->fetch1("select temptext,subnews,listvar,rownum,showdate,modid,subtitle,docode from " . GetTemptb("enewssearchtemp") . " where isdefault=1 limit 1");
} else {
$tempr = $empire->fetch1("select temptext,subnews,listvar,rownum,showdate,modid,subtitle,docode from " . GetTemptb("enewssearchtemp") . " where tempid='" . $class_r[$search_r[trueclassid]][searchtempid] . "' limit 1");
}
$have_class = 1;
//替换公共模板变量
$listtemp = $tempr[temptext];
if ($public_r['searchtempvar']) {
$listtemp = ReplaceTempvar($listtemp);
}
$search_r[keyboard] = ehtmlspecialchars($search_r[keyboard]);
$listtemp = str_replace("[!--show.page--]", $listpage, $listtemp);
$listtemp = str_replace("[!--keyboard--]", $search_r[keyboard], $listtemp);
$listtemp = str_replace("[!--ecms.num--]", $num, $listtemp);
$url = "<a href='" . ReturnSiteIndexUrl() . "'>" . $fun_r['index'] . "</a> > " . $fun_r['adsearch'];
$pagetitle = $fun_r['adsearch'] . " " . $search_r[keyboard];
$listtemp = ReplaceSvars($listtemp, $url, 0, $pagetitle, $pagetitle, $pagetitle, $add, 0);
$rownum = $tempr[rownum];
示例8: intval
$trueztid = intval($ztid);
$add .= " and ztid like '%|" . $trueztid . "|%'";
}
}
//会员
$member = $_POST['member'];
if ($member == 1) {
$add .= ' and ismember=1';
} elseif ($member == 2) {
$add .= ' and ismember=0';
}
//模型
$tempr = array();
if (empty($class_r[$trueclassid][searchtempid])) {
if (empty($modid)) {
$tempr = $empire->fetch1("select modid from " . GetTemptb("enewssearchtemp") . " where isdefault=1 limit 1");
} else {
$tempr[modid] = $modid;
}
} else {
$tempr[modid] = $modid;
}
//关键字
$keyboard = $_POST['keyboard'];
$keyboardone = 0;
if (is_array($keyboard)) {
} elseif (strstr($keyboard, ',')) {
$keyboard = explode(',', $keyboard);
} else {
$keyboard = trim($keyboard);
$len = strlen($keyboard);
示例9: DefIndexpage
function DefIndexpage($tempid,$userid,$username){
global $empire,$dbtbpre,$public_r;
$tempid=(int)$tempid;
if(empty($tempid))
{
printerror("NotChangeIndexpageid","history.go(-1)");
}
//验证权限
CheckLevel($userid,$username,$classid,"template");
$gid=(int)$_GET['gid'];
$r=$empire->fetch1("select tempname,temptext from {$dbtbpre}enewsindexpage where tempid='$tempid'");
if($tempid==$public_r['indexpageid'])
{
$def=0;
$mess='NoDefIndexpageSuccess';
$sql=$empire->query("update {$dbtbpre}enewspublic set indexpageid=0");
}
else
{
$def=1;
$mess='DefIndexpageSuccess';
$sql=$empire->query("update {$dbtbpre}enewspublic set indexpageid='$tempid'");
}
GetConfig();//更新缓存
//刷新首页
if($def)
{
NewsBq($classid,$r[temptext],1,0);
//删除动态模板缓存文件
DelOneTempTmpfile('indexpage');
}
else
{
$indextempr=$empire->fetch1("select indextemp from ".GetTemptb("enewspubtemp")." limit 1");
$indextemp=$indextempr['indextemp'];
NewsBq($classid,$indextemp,1,0);
//删除动态模板缓存文件
DelOneTempTmpfile('indexpage');
}
if($sql)
{
//操作日志
insert_dolog("tempid=$tempid&tempname=$r[tempname]&def=$def");
printerror($mess,"ListIndexpage.php?gid=$gid".hReturnEcmsHashStrHref2(0));
}
else
{
printerror("DbError","history.go(-1)");
}
}
示例10: GetPubCache
function GetPubCache()
{
global $empire, $dbtbpre;
//扩展变量
$pvstring = '';
$pvsql = $empire->query("select myvar,varvalue from {$dbtbpre}enewspubvar where tocache=1");
while ($pvr = $empire->fetch($pvsql)) {
$pvstring .= ",'add_" . $pvr['myvar'] . "'=>'" . addslashes($pvr['varvalue']) . "'";
}
//公共变量
$r = $empire->fetch1("select * from {$dbtbpre}enewspublic limit 1");
$tr = $empire->fetch1("select downsofttemp,onlinemovietemp,listpagetemp from " . GetTemptb("enewspubtemp") . " limit 1");
$fsr = $empire->fetch1("select purl from {$dbtbpre}enewspostserver where ptype=1 limit 1");
$GLOBALS['public_r']['newsurl'] = $r['newsurl'];
$classnavs = GetClassNavCache($r[classnavline], $r[classnavfh]);
$checkdorepstr = ReturnCheckDoRep();
$setting .= "\r\n\r\n//------------e_public\r\n\$public_r=array('sitename'=>'" . addslashes($r[sitename]) . "',\r\n'newsurl'=>'" . addslashes($r[newsurl]) . "',\r\n'filetype'=>'" . addslashes($r[filetype]) . "',\r\n'filesize'=>" . $r[filesize] . ",\r\n'relistnum'=>" . $r[relistnum] . ",\r\n'renewsnum'=>" . $r[renewsnum] . ",\r\n'min_keyboard'=>" . $r[min_keyboard] . ",\r\n'max_keyboard'=>" . $r[max_keyboard] . ",\r\n'search_num'=>" . $r[search_num] . ",\r\n'search_pagenum'=>" . $r[search_pagenum] . ",\r\n'newslink'=>" . $r[newslink] . ",\r\n'checked'=>" . $r[checked] . ",\r\n'pltime'=>" . $r[pltime] . ",\r\n'searchtime'=>" . $r[searchtime] . ",\r\n'loginnum'=>" . $r[loginnum] . ",\r\n'logintime'=>" . $r[logintime] . ",\r\n'addnews_ok'=>" . $r[addnews_ok] . ",\r\n'register_ok'=>" . $r[register_ok] . ",\r\n'indextype'=>'" . addslashes($r[indextype]) . "',\r\n'goodlencord'=>" . $r[goodlencord] . ",\r\n'goodtype'=>'" . addslashes($r[goodtype]) . "',\r\n'searchtype'=>'" . addslashes($r[searchtype]) . "',\r\n'exittime'=>" . $r[exittime] . ",\r\n'smalltextlen'=>" . $r[smalltextlen] . ",\r\n'defaultgroupid'=>" . $r[defaultgroupid] . ",\r\n'fileurl'=>'" . addslashes($r[fileurl]) . "',\r\n'install'=>" . $r[install] . ",\r\n'phpmode'=>" . $r[phpmode] . ",\r\n'plsize'=>" . $r[plsize] . ",\r\n'plincludesize'=>" . $r[plincludesize] . ",\r\n'dorepnum'=>" . $r[dorepnum] . ",\r\n'loadtempnum'=>" . $r[loadtempnum] . ",\r\n'bakdbpath'=>'" . addslashes($r[bakdbpath]) . "',\r\n'bakdbzip'=>'" . addslashes($r[bakdbzip]) . "',\r\n'downpass'=>'" . addslashes($r[downpass]) . "',\r\n'filechmod'=>" . $r[filechmod] . ",\r\n'loginkey_ok'=>" . $r[loginkey_ok] . ",\r\n'tbname'=>'" . addslashes($r[tbname]) . "',\r\n'limittype'=>" . $r[limittype] . ",\r\n'plkey_ok'=>" . $r[plkey_ok] . ",\r\n'redodown'=>" . $r[redodown] . ",\r\n'downsofttemp'=>'" . addslashes(stripSlashes($tr[downsofttemp])) . "',\r\n'onlinemovietemp'=>'" . addslashes(stripSlashes($tr[onlinemovietemp])) . "',\r\n'havefp'=>" . $r[havefp] . ",\r\n'fpnum'=>" . $r[fpnum] . ",\r\n'lctime'=>" . $r[lctime] . ",\r\n'candocode'=>" . $r[candocode] . ",\r\n'opennotcj'=>" . $r[opennotcj] . ",\r\n'listpagetemp'=>'" . addslashes(stripSlashes($tr[listpagetemp])) . "',\r\n'reuserpagenum'=>" . $r[reuserpagenum] . ",\r\n'revotejsnum'=>" . $r[revotejsnum] . ",\r\n'readjsnum'=>" . $r[readjsnum] . ",\r\n'qaddtran'=>" . $r[qaddtran] . ",\r\n'qaddtransize'=>" . $r[qaddtransize] . ",\r\n'ebakthisdb'=>" . $r[ebakthisdb] . ",\r\n'delnewsnum'=>" . $r[delnewsnum] . ",\r\n'markpos'=>" . $r[markpos] . ",\r\n'markimg'=>'" . addslashes($r[markimg]) . "',\r\n'marktext'=>'" . addslashes($r[marktext]) . "',\r\n'markfontsize'=>'" . addslashes($r[markfontsize]) . "',\r\n'markfontcolor'=>'" . addslashes($r[markfontcolor]) . "',\r\n'markfont'=>'" . addslashes($r[markfont]) . "',\r\n'adminloginkey'=>" . $r[adminloginkey] . ",\r\n'php_outtime'=>" . $r[php_outtime] . ",\r\n'listpagefun'=>'" . addslashes($r[listpagefun]) . "',\r\n'textpagefun'=>'" . addslashes($r[textpagefun]) . "',\r\n'adfile'=>'" . addslashes($r[adfile]) . "',\r\n'notsaveurl'=>'" . addslashes($r[notsaveurl]) . "',\r\n'rssnum'=>" . $r[rssnum] . ",\r\n'rsssub'=>" . $r[rsssub] . ",\r\n'savetxtf'=>'" . addslashes($r[savetxtf]) . "',\r\n'dorepdlevelnum'=>" . $r[dorepdlevelnum] . ",\r\n'listpagelistfun'=>'" . addslashes($r[listpagelistfun]) . "',\r\n'listpagelistnum'=>" . $r[listpagelistnum] . ",\r\n'infolinknum'=>" . $r[infolinknum] . ",\r\n'searchgroupid'=>" . $r[searchgroupid] . ",\r\n'opencopytext'=>" . $r[opencopytext] . ",\r\n'reuserjsnum'=>" . $r[reuserjsnum] . ",\r\n'reuserlistnum'=>" . $r[reuserlistnum] . ",\r\n'opentitleurl'=>" . $r[opentitleurl] . ",\r\n'searchtempvar'=>" . $r[searchtempvar] . ",\r\n'showinfolevel'=>" . $r[showinfolevel] . ",\r\n'navfh'=>'" . addslashes($r[navfh]) . "',\r\n'spicwidth'=>" . $r[spicwidth] . ",\r\n'spicheight'=>" . $r[spicheight] . ",\r\n'spickill'=>" . $r[spickill] . ",\r\n'jpgquality'=>" . $r[jpgquality] . ",\r\n'markpct'=>" . $r[markpct] . ",\r\n'redoview'=>" . $r[redoview] . ",\r\n'reggetfen'=>" . $r[reggetfen] . ",\r\n'regbooktime'=>" . $r[regbooktime] . ",\r\n'revotetime'=>" . $r[revotetime] . ",\r\n'fpath'=>" . $r[fpath] . ",\r\n'filepath'=>'" . addslashes($r[filepath]) . "',\r\n'nreclass'=>'" . addslashes($r[nreclass]) . "',\r\n'nreinfo'=>'" . addslashes($r[nreinfo]) . "',\r\n'nrejs'=>'" . addslashes($r[nrejs]) . "',\r\n'nottobq'=>'" . addslashes($r[nottobq]) . "',\r\n'defspacestyleid'=>" . $r[defspacestyleid] . ",\r\n'canposturl'=>'" . addslashes($r[canposturl]) . "',\r\n'openspace'=>" . $r[openspace] . ",\r\n'defadminstyle'=>" . $r[defadminstyle] . ",\r\n'realltime'=>" . $r[realltime] . ",\r\n'closeip'=>'" . addslashes($r[closeip]) . "',\r\n'openip'=>'" . addslashes($r[openip]) . "',\r\n'hopenip'=>'" . addslashes($r[hopenip]) . "',\r\n'plface'=>'" . addslashes($r[plface]) . "',\r\n'plfacenum'=>" . $r[plfacenum] . ",\r\n'textpagelistnum'=>" . $r[textpagelistnum] . ",\r\n'memberlistlevel'=>" . $r[memberlistlevel] . ",\r\n'ebakcanlistdb'=>" . $r[ebakcanlistdb] . ",\r\n'keytog'=>" . $r[keytog] . ",\r\n'keytime'=>" . $r[keytime] . ",\r\n'keyrnd'=>'" . addslashes($r[keyrnd]) . "',\r\n'checkdorepstr'=>'" . addslashes($checkdorepstr) . "',\r\n'regkey_ok'=>" . $r[regkey_ok] . ",\r\n'opengetdown'=>" . $r[opengetdown] . ",\r\n'gbkey_ok'=>" . $r[gbkey_ok] . ",\r\n'fbkey_ok'=>" . $r[fbkey_ok] . ",\r\n'newaddinfotime'=>" . $r[newaddinfotime] . ",\r\n'classnavs'=>'" . addslashes($classnavs) . "',\r\n'plgroupid'=>" . $r[plgroupid] . ",\r\n'adminstyle'=>'" . addslashes($r[adminstyle]) . "',\r\n'docnewsnum'=>" . $r[docnewsnum] . ",\r\n'openschall'=>" . $r[openschall] . ",\r\n'schallfield'=>" . $r[schallfield] . ",\r\n'schallminlen'=>" . $r[schallminlen] . ",\r\n'schallmaxlen'=>" . $r[schallmaxlen] . ",\r\n'schallnum'=>" . $r[schallnum] . ",\r\n'schallpagenum'=>" . $r[schallpagenum] . ",\r\n'dtcanbq'=>" . $r[dtcanbq] . ",\r\n'dtcachetime'=>" . $r[dtcachetime] . ",\r\n'defpltempid'=>" . $r[defpltempid] . ",\r\n'buycarnum'=>" . $r[buycarnum] . ",\r\n'shopddgroupid'=>" . $r[shopddgroupid] . ",\r\n'repkeynum'=>" . $r[repkeynum] . ",\r\n'regacttype'=>" . $r[regacttype] . ",\r\n'opengetpass'=>" . $r[opengetpass] . ",\r\n'hlistinfonum'=>" . $r[hlistinfonum] . ",\r\n'qlistinfonum'=>" . $r[qlistinfonum] . ",\r\n'dtncanbq'=>" . $r[dtncanbq] . ",\r\n'dtncachetime'=>" . $r[dtncachetime] . ",\r\n'readdinfotime'=>" . $r[readdinfotime] . ",\r\n'qeditinfotime'=>" . $r[qeditinfotime] . ",\r\n'onclicktype'=>" . $r[onclicktype] . ",\r\n'onclickfilesize'=>" . $r[onclickfilesize] . ",\r\n'onclickfiletime'=>" . $r[onclickfiletime] . ",\r\n'schalltime'=>" . $r[schalltime] . ",\r\n'defprinttempid'=>" . $r[defprinttempid] . ",\r\n'opentags'=>" . $r[opentags] . ",\r\n'tagstempid'=>" . $r[tagstempid] . ",\r\n'usetags'=>'" . addslashes($r[usetags]) . "',\r\n'chtags'=>'" . addslashes($r[chtags]) . "',\r\n'tagslistnum'=>" . $r[tagslistnum] . ",\r\n'closeqdt'=>" . $r[closeqdt] . ",\r\n'settop'=>" . $r[settop] . ",\r\n'qlistinfomod'=>" . $r[qlistinfomod] . ",\r\n'pl_num'=>" . $r[pl_num] . ",\r\n'gb_num'=>" . $r[gb_num] . ",\r\n'member_num'=>" . $r[member_num] . ",\r\n'space_num'=>" . $r[space_num] . ",\r\n'infolday'=>" . $r[infolday] . ",\r\n'filelday'=>" . $r[filelday] . ",\r\n'dorepkey'=>" . $r[dorepkey] . ",\r\n'dorepword'=>" . $r[dorepword] . ",\r\n'onclickrnd'=>'" . addslashes($r[onclickrnd]) . "',\r\n'keybgcolor'=>'" . addslashes($r[keybgcolor]) . "',\r\n'keyfontcolor'=>'" . addslashes($r[keyfontcolor]) . "',\r\n'keydistcolor'=>'" . addslashes($r[keydistcolor]) . "',\r\n'indexpageid'=>" . $r[indexpageid] . ",\r\n'closeqdtmsg'=>'" . addslashes($r[closeqdtmsg]) . "',\r\n'openfileserver'=>" . $r[openfileserver] . ",\r\n'fs_purl'=>'" . addslashes($fsr[purl]) . "',\r\n'closemods'=>'" . addslashes($r[closemods]) . "',\r\n'deftempid'=>" . $r[deftempid] . $pvstring . ");\r\n//------------e_public\r\n\r\n";
return $setting;
}
示例11: while
if (strstr($r[usetags], ',' . $modr[mid] . ',')) {
$select = ' checked';
}
$usetags .= "<input type=checkbox name=umid[] value='{$modr['mid']}'" . $select . ">{$modr['mname']} " . $br;
$chselect = '';
if (strstr($r[chtags], ',' . $modr[mid] . ',')) {
$chselect = ' checked';
}
$chtags .= "<input type=checkbox name=cmid[] value='{$modr['mid']}'" . $chselect . ">{$modr['mname']} " . $br;
}
//列表模板
$listtemp_options = '';
$msql = $empire->query("select mid,mname from {$dbtbpre}enewsmod order by myorder,mid");
while ($mr = $empire->fetch($msql)) {
$listtemp_options .= "<option value=0 style='background:#99C4E3'>" . $mr[mname] . "</option>";
$l_sql = $empire->query("select tempid,tempname from " . GetTemptb("enewslisttemp") . " where modid='{$mr['mid']}'");
while ($l_r = $empire->fetch($l_sql)) {
if ($l_r[tempid] == $r[tagstempid]) {
$l_d = " selected";
} else {
$l_d = "";
}
$listtemp_options .= "<option value=" . $l_r[tempid] . $l_d . "> |-" . $l_r[tempname] . "</option>";
}
}
//当前使用的模板组
$thegid = GetDoTempGid();
db_close();
$empire = null;
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
示例12: hReturnEcmsHashStrAll
$ecms_hashur = hReturnEcmsHashStrAll();
//验证权限
CheckLevel($logininid, $loginin, $classid, "template");
$url = "<a href=ChangeListTemp.php" . $ecms_hashur['whehref'] . ">批量更换栏目列表模板</a>";
//栏目
$fcfile = "../../data/fc/ListEnews.php";
$class = "<script src=../../data/fc/cmsclass.js></script>";
if (!file_exists($fcfile)) {
$class = ShowClass_AddClass("", 0, 0, "|-", 0, 0);
}
//列表模板
$listtemp = "";
$sql = $empire->query("select mname,mid from {$dbtbpre}enewsmod order by myorder,mid");
while ($r = $empire->fetch($sql)) {
$listtemp .= "<option value=0 style='background:#99C4E3'>" . $r[mname] . "</option>";
$sql1 = $empire->query("select tempname,tempid from " . GetTemptb("enewslisttemp") . " where modid='{$r['mid']}'");
while ($r1 = $empire->fetch($sql1)) {
$listtemp .= "<option value='" . $r1[tempid] . "'>|-" . $r1[tempname] . "</option>";
}
}
db_close();
$empire = null;
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>批量更换栏目列表模板</title>
<link href="../adminstyle/<?php
echo $loginadminstyleid;
?>
示例13: GetTemptb
}
//列表模板
$listtemp_options .= "<option value=0 style='background:#99C4E3'>" . $mr[mname] . "</option>";
$l_sql = $empire->query("select tempid,tempname from " . GetTemptb("enewslisttemp") . " where modid='{$mr['mid']}'");
while ($l_r = $empire->fetch($l_sql)) {
if ($l_r[tempid] == $r[listtempid]) {
$l_d = " selected";
} else {
$l_d = "";
}
$listtemp_options .= "<option value=" . $l_r[tempid] . $l_d . "> |-" . $l_r[tempname] . "</option>";
}
}
//封面模板
$classtemp = '';
$classtempsql = $empire->query("select tempid,tempname from " . GetTemptb("enewsclasstemp") . " order by tempid");
while ($classtempr = $empire->fetch($classtempsql)) {
$select = "";
if ($r[classtempid] == $classtempr[tempid]) {
$select = " selected";
}
$classtemp .= "<option value='" . $classtempr[tempid] . "'" . $select . ">" . $classtempr[tempname] . "</option>";
}
//当前使用的模板组
$thegid = GetDoTempGid();
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>增加专题子类</title>