<?php

/*
	[插件名称] 移动短信留言板插件
	[适用范围] 全站
*/

function ToolsYdCs() { 
	
	global $msql;
	
	$coltitle=$GLOBALS["PLUSVARS"]["coltitle"];
	$tempname=$GLOBALS["PLUSVARS"]["tempname"];
	
	$scl=" cat='yd' and iffb='1' ";
	

	//模版解释
	$Temp=LoadTemp($tempname);
	$TempArr=SplitTblTemp($Temp);
	
	$str=$TempArr["start"];
	
	$msql->query("select * from {P}_tools_code where $scl order by id");
	if($msql->next_record()){
		$id=$msql->f("id");
		$code=$msql->f("code");
				
		$var=array (
			'id' => $id,
			'code' => $code
		);
				
	}
	

	$str.=ShowTplTemp($TempArr["end"],$var);
	
	return $str;

}


?>