MINI_SHL
Current Path : D:/wwwroot/wangmei148/wwwroot/module/
Upload File :
Current File : D:/wwwroot/wangmei148/wwwroot/module/CommentForm.php

<?php

/*
	[²å¼þÃû³Æ] ÆÀÂÛ±íµ¥ - Ì滻ģ°æ±êÇ©{#modCommentForm#}
	[ÊÊÓ÷¶Î§] ÎÄÕÂ,ÏÂÔØ,ͼÎÄÏêÇéÒ³
	[ÎÄ ¼þ Ãû] CommentForm.php
	[¸üÐÂʱ¼ä] 2006/8/11
*/



function CommentForm(){

	global $fsql,$id;
	global $title,$MenuInfo,$NowMenuid;
	
	for($i=0;$i<=3;$i++){
			$zz=rand(1,9);
			$code.=$zz;
		}

	setCookie("CODEIMG",$code,time()+3600,"/");
	
	$PSET=PlusSet("modCommentForm");

	$tempname=PlusDef($PSET["tempname"],"tpl_comment.htm");
	
	
	$Temp=LoadTemp(ROOTPATH."templates/".$MenuInfo["skin"]."/".$tempname);

	$str=str_replace("{#nowmenuid#}",$NowMenuid,$Temp);
	$str=str_replace("{#nowcoltype#}",$MenuInfo["coltype"],$str);
	$str=str_replace("{#title#}",$title,$str);
	$str=str_replace("{#id#}",$id,$str);
	$str=str_replace("{#pid#}","",$str);
	$str=str_replace("{#RP#}",ROOTPATH,$str);

	return $str;


		

		
}


?>