PHP4中session的应用(2)--欢迎页面(welcome_reserve.php3)
[作者]:菩提树下的杨过 [来源]:互联网 [收录时间]:2007-8-1 20:01:09
<br />   <?php<br /> //这个页面首先判断用户是否正确登录,如未登录,就转到登录页面。<br /> session_start();<br /> if((!$user_id)or(!$user_array[ticket_day])or(!$user_array[ticket_num])){<br /><table border="0" align="left" class=ppc_download_ad_frame cellspacing=0 cellpadding=0 width="1%" style="margin-top:10px;margin-right:7px;margin-bottom:3px;margin-left:0px"> <tr> <td id=a><img height=9 width=9></td> <td id=b width="100%"><img height=1 width=1></td> <td id=c><img height=9 width=9></td> </tr> <tr> <td id=d><img height=1 width=1></td> <td id=e valign=top height="100%"><!-- frame contents --> <table cellspacing=0 cellpadding=0 border=0> <tr> <td><div id="w_hzh"></div></td> </tr> </table> <!-- /frame contents --></td> <td id=f><img height=1 width=1></td> </tr> <tr> <td id=g><img height=9 width=9></td> <td id=h><img height=1 width=1></td> <td id=i><img height=9 width=9></td> </tr> </table> Header("Location: login.php3");<br /> }<br /> ?><br /> <!DOCTYPE <a class="link_keyword" href="http://www.qqread.com/keywords/html.html" target="_blank">HTML</a> PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><br /> <br /> <html><br /> <head><br /> <title>欢迎使用南京站订票系统</title><br /> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><br /> <link rel="stylesheet" type="text/css" href="/include/njz_common.css"><br /> </head><br /> <br /> <body><br /> <p> </p><br /> <table width="500" border="1" cellspacing="0" cellpadding="0" align="center" bordercolor="#CCCCCC"><br /> <tr><br /> <td><br /> <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center"><br /> <tr bgcolor="#999999"> <br /> <td> <br /> <div align="center"><font size="4" color="#FFFFFF">欢迎您 <?php echo $user_name; ?></font></div><br /> </td><br /> </tr><br /> </table><br /> <br><br /> <table width="400" border="0" cellspacing="0" cellpadding="0" align="center"><br /> <tr> <br /> <td><font color="#3333CC">公告栏:</font></td><br /> </tr><br /> <tr> <br /> <td>  今日无公告</td><br /> </tr><br /> </table><br /> <br><br /> <br><br /> <table width="400" border="0" cellspacing="0" cellpadding="0" align="center"><br /> <tr> <br /> <td> <br /> <div align="center"><a href="reserve_ticket.php3">网上订票</a> <a href="test1.php3">订单查询</a> <a href="test2.php3">口令修改</a> 订票帮助 <a href="login.php3?logout=1">退出登录</a> </div><br /> </td><br /> </tr><br /> </table><br /> <br><br /> </td><br /> </tr><br /> </table><br /> <p> </p><br /> <?php<br /> include("/footer.php3");<br /> ?><br /> </body><br /> </html> </div> </div>