?? commentlistform.php
字號:
<?php
/*
[插件名稱] 新評論發布表單 - 替換模版標簽{#modCommentListForm#}
[適用范圍] 評論檢索頁
[文 件 名] CommentListForm.php
[更新時間] 2006/8/11
*/
function CommentListForm(){
global $fsql,$id;
global $title,$MenuInfo,$NowMenuid,$MenuInfo;
$PSET=PlusSet("modCommentListForm");
$tempname=PlusDef($PSET["tempname"],"tpl_comment.htm");
for($i=0;$i<=3;$i++){
$zz=rand(1,9);
$code.=$zz;
}
setCookie("CODEIMG",$code,time()+3600,"/");
if($_GET["nowmenuid"]!=""){
$nowmenuid=$_GET["nowmenuid"];
}else{
$nowmenuid="0";
}
if($_GET["rid"]!=""){
$rid=$_GET["rid"];
}else{
$rid="0";
}
if($_GET["coltype"]!=""){
$nowcoltype=$_GET["coltype"];
$Temp=LoadTemp(ROOTPATH."templates/".$MenuInfo["skin"]."/".$tempname);
$str=str_replace("{#nowmenuid#}",$nowmenuid,$Temp);
$str=str_replace("{#nowcoltype#}",$nowcoltype,$str);
$str=str_replace("{#title#}",$title,$str);
$str=str_replace("{#id#}",$rid,$str);
$str=str_replace("{#pid#}","0",$str);
$str=str_replace("{#RP#}",ROOTPATH,$str);
}else{
$str="";
}
return $str;
}
?>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -