include("./initdb.php");
function interface()
{
?>
}
function serachinresult1($flag,$sql,$d1,$d2,$tm,$zrz)
{
if($flag==1)
{
?>
}
else if($flag==2)
{
?>
}
else if($flag==3)
{
?>
}
}
function result()
{
global $Table,$DB_web,$post_var;
$currpage = $post_var['currpage'];
if($post_var['searchflag']==1)
{
if(!empty($post_var['tm']))
{
$c="";
$arr_tm=explode(" ",$post_var['tm']);
for($i=0;$i='$d1' AND cwsj<='$d2'";
}
$condition=" where 1=1 ".$condition1;
if(!empty($post_var['inresult']))
$inresult=" AND id IN (".$post_var['inresult'].")";
$sqlnum="select * from $Table[bli] ".$condition.$inresult;
$resultnum=$DB_web->query(StripSlashes($sqlnum));
$intTotalNum=$DB_web->num_rows($resultnum);
$inresultsql="select id from $Table[bli] ".$condition;;
serachinresult1($post_var['searchflag'],$inresultsql,$post_var['d1'],$post_var['d2'],$post_var['tm'],$post_var['zrz']);
if($intTotalNum>0)
{
//---------------------------------
//处理翻页函数参数
getParam($pcurrpage,$intLineNum,$offset,$intTotalNum,15,$currpage);
$limits=" AND id in(SELECT id FROM (SELECT rownum as numrow,id FROM $Table[bli] $condition order by id asc) WHERE numrow>$offset and numrow<=($offset+$intLineNum))";
//$limits=" LIMIT $offset,$intLineNum";
$intWhileNum="10";
$bgcolor="f5f5f5";
$btnColor="#E8E8FF";
$prama="";
//翻页函数
$pages=showPages($pcurrpage,$intTotalNum,$intLineNum,$intWhileNum,$prama,$bgcolor,$btnColor);
//---------------------------------
echo"
";
echo"";
echo"
".$pages."
";
echo"
";
}
else
{
echo"
没有任何信息!
";
}
}
function process()
{
global $post_var;
// print $post_var['func']."###";
switch($post_var['func'])
{
case "result":
result();
break;
default:
interface();
break;
}
}
include("head1.htm");
process();
include("foot.htm");
?>