if($account){
$loginstr=$login;
$passwdstr=$passwd;
}
else{
$loginstr=$loginlast;
$passwdstr=$passwdlast;
}
SetCookie("loginlast", $loginstr,"","/");
SetCookie("passwdlast", $passwdstr,"","/");
//------------------------------------------------------------------------
function DispClass( $NewsClassid , $ShowLine ,$date){
require("./news/config.inc.php3");
$conn_id=mysql_connect($server,$user,$password); //链接数据库
$FatherSql = "select * from $CfgClassTable where id='$NewsClassid'";
$FatherResult = mysql_db_query($database,$FatherSql,$conn_id);
if(mysql_num_rows($FatherResult)>0)
{
$FatherRow = mysql_fetch_array($FatherResult);
}
$sql="select * from $CfgNewsTable where fdNewsClassid='$NewsClassid' order by fdOrder asc,fdNewsCrtDate desc,id desc";
/*
$sql="select * from $CfgNewsTable where fdNewsClassid='$NewsClassid' and fdPasserid>0 order by fdOrder asc,fdNewsCrtDate desc,id desc";
*/
$result=mysql_db_query($database,$sql,$conn_id); //执行查询
mysql_close($conn_id);
$return="
";
#$return.="| ".$FatherRow[fdClassName]." |
";
if ($FatherRow[fdDisplayNum]<>'')
{
$ShowLine = $FatherRow[fdDisplayNum];
}
if(mysql_num_rows($result)>0){
for($i=0;$i<$ShowLine;$i++){
$row=mysql_fetch_array($result);
if($row[id])
{
$return.="| · | ".$row[fdNewsTitle]."";
}
if ($date<>"no")
{
$return.= " ".$row[fdNewsCrtDate];
}
$return.= " |
";
}
$return.="
";
if(mysql_num_rows($result)>$ShowLine){
$return.= "";
}
}else{
$return= '暂无最新信息!';
}
print $return;
#如果用php3程序include就用 print $return;
}
//------------------------------------------------------------------------
function cutchars($chars,$limitlen)
{
$charlen = strlen($chars);
if ($charlen <= $limitlen)
{
$name = $chars;
}
else
{
$name = substr($chars,"0","$limitlen");
}
$parity= 0;
for($i=0;$i<$limitlen;$i++)
{
$temp_str=substr($name,$i,1);
if(Ord($temp_str)>127) $parity+=1;
}
if($parity%2==1) $name=substr($name,0,($limitlen-1));
else $name=substr($name,0,$limitlen);
if($charlen>$limitlen) $name.="..";
return $name;
}
//------------------------------------------------------------------------
if(!$DB_web)
require "./initdb.php";
?>
交友社区首页-家庭期刊集团
 |
 |
 |
 |
 |
 |
|
DispClass(1 , 4,"no"); ?>
|
query_first($sql);
$DB_web->free_result();
if ($row[id]){
$datetime=date("H");
$table="";
if(($datetime>=0)&&($datetime<5)){
$strTime="夜间好";
}
elseif($datetime<8){
$strTime="早上好";
}
elseif($datetime<11){
$strTime="上午好";
}
else if( ($datetime>=11)&&($datetime<=12) ){
$strTime="中午好";
}
elseif( ($datetime>12)&&($datetime<18)){
$strTime="下午好";
}
else{
$strTime="夜间好";
}
$table.="$loginstr $strTime
恭喜你成功登陆!
<< 个人专区 >>
退出 | ";
print $table;
}
else
{
?>
}
?>
|
 |
 |
 |
|
DispClass(4 , 6,"no"); ?>
|
 |
|
 |
 |
include("search1.php");?>
|
 |
|
 |
 |
 |
$nojava = true;
$numphoto = 4;
require "coolphotorank.php";
///
?>
|
 |
|
 |
|