Xing Lin Alumni (ii) _php Foundation

Source: Internet
Author: User
Tags echo date php and mysql
Member Homepage: main.php


?


Session_Start (); Start session


Session_register ("Userregister");


$userregister = $username;


Include "class/config.php";


$result = mysql_query ("SELECT * from user where user= ' $username '", $db);


if (mysql_num_rows ($result) ==0) {//If the number of returned columns is 0, this information is not available


Echo does not have this user! ";


Exit;}


$USERPSW =strtoupper (Trim ($USERPSW));


$password =trim (mysql_result ($result, 0, ' PSW '));


$password =strtoupper ($password);//Get password, convert to uppercase


$USERPSW =strtoupper ($USERPSW);


if (!) ( $USERPSW = = $password)) {


echo "Wrong password! ";


Mysql_close ($DB);


Exit


}


$name =mysql_result ($result, 0, "name");


$count =mysql_result ($result, 0, "Count") +1;//member counter plus 1


mysql_query ("UPDATE user SET count= $count where user= ' $username '", $db);


?>


<HTML>


<HEAD>


<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ">


<TITLE> Welcome to Xing Lin Alumni </TITLE>


<style type= "Text/css" >


<!--


. deepblue10 {font-family: "Song body"; Font-size:10pt color: #3333FF; Text-decoration:none}


a.purple:hover {font-size:9pt; color: #3366FF; Background-color: #99FFFF; Text-decoration:none}


A.purple:link {font-size:10pt; Text-decoration:none}


a:hover {Text-decoration:none}


a:visited {Text-decoration:none}


a.purple {font-size:10pt; color: #CC00FF; Text-decoration:none}


. white12 {font-size:12pt; color: #FFFFFF; Text-decoration:none}


. Purple {color: #CC00FF; text-decoration:none; font-size:10pt}


. brown9 {font-size:10pt; color: #6600CC; Text-decoration:none}


. black9 {font-size:9pt; Text-decoration:none}


. yellow12 {font-size:12px; color: #9900CC; text-decoration:none; Font-weight:normal}


. redlarge {font-size:18px; font-weight:bolder; color: #FF00CC}


. grey9 {font-size:9pt; color: #CCCCCC}


-->


</style>


</HEAD>


<body bgcolor= "#FFFFFF" >


<table width= "755" border= "1" height= "0" cellpadding= "0" cellspacing= "#FF33CC" bordercolordark= "#FFFFFF" >


<tr>


<TD width= "241" >


<div align= "right" ><img src= "Class/image/classlogo.gif" width= "224" height= "a" alt= "alumni" >


</div>


</td>


<TD width= "508" > <object classid= "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase= "http://" download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0 "width=" 478 "height=" "align=" Right ">


<param name=movie value= "class/image/2.swf" >


<param name=quality value=high>


<embed src= "class/image/2.swf" Quality=high pluginspage= "http://www.macromedia.com/shockwave/download/" Index.cgi? P1_prod_version=shockwaveflash "type=" Application/x-shockwave-flash "width=" 478 "height=" "align=" right >


</embed>


</object></td>


</tr>


</table>


<table width= "755" border= "0" cellspacing= "0" cellpadding= "0" >


<tr>


<TD class= "Black9" width= "302" >


? echo Date ("Y-year m-month D-day");? >


</td>


<TD class= "Black9" width= "453" >


<?php


echo "Hello,", $name, ". ";


echo "welcome you to the first", $count, "The time to visit this site." ";


?>


</td>


</tr>


</table>


<table width= "755" border= "0" cellpadding= "0" cellspacing= "0" >


<tr>


<TD width= "19%" bgcolor= "#FFeeFF" valign= "Top" >


<table width= "100%" border= "0" cellspacing= "0" cellpadding= "0" >


<tr>


<TD height= "background=" Class/image/redbar.gif ">


<div align= "center" class= "YELLOW12" > Alumni </div>


</td>


</tr>


<tr>


<TD height= ">"


<div align= "center" ><a href= "class/address.php" title= "the latest communications" class= "purple" target= "_blank" > "Class Address Book" </a></div>


</td>


</tr>


<tr>


<TD height= ">"


<div align= "center" class= "purple" ><a href= "class/modify.php" title= "Modify Profile" class= "purple" target= "_blank" > "Data modification" </a></div>


</td>


</tr>


<tr>


<TD height= ">"


<div align= "center" class= "purple" ><a href= "class/upload/uploadphoto.php" title= "Modify Profile" class= "Purple" target= "_blank" > "Upload Photos" </a></div>


</td>


</tr>


<tr>


<TD height= ">"


<div align= "center" ><a href= "class/classphoto.php" class= "purple" target= "_blank" > "Class Photos" </a>< /div>


</td>


</tr>


<tr>


<TD height= ">"


<div align= "center" ><a href= "class/privatephoto.php" title= "show personal style" class= "purple" target= "_blank" ">" Personal photos "</a></div>


</td>


</tr>


<tr>


<TD height= ">"


<div align= "center" ><a href= "class/shoolphoto.php" title= "to evoke your wonderful memories" class= "purple" target= "_blank" > "Campus Scenery "</a></div>


</td>


</tr>


<tr>


<TD height= ">"


<div align= "center" ><a href= class/privatenote.php "title=" to a single classmate message "class=" purple "target=" _blank ">" Private Message "</a></div>


</td>


</tr>


<tr>


<TD height= ">"


<div align= "center" ><a href= class/notebook/index.php "title=" Leave Your Blessing "class=" purple "target=" _blank ">" Class Message Board "</a></div>


</td>


</tr>


<tr bgcolor= "#FF99CC" >


<TD height= "bgcolor=" "#FF99CC" background= "Class/image/redbar.gif" >


<div align= "center" class= "YELLOW12" > class chat Room </div>


</td>


</tr>


<tr>


<TD height= ">"


<div align= "center" class= "Purple" > "Enter class chat room" </div>


</td>


</tr>


<tr>


<TD >


<div align= "center" class= "Purple" > "Class chat Room Help" </div>


</td>


</tr>


<tr>


<TD height= "background=" Class/image/redbar.gif ">


<div align= "center" class= "Yellow12" > Links </div>


</td>


</tr>


<tr>


<td>


<div align= "center" ><a href= "http://www.medguider.com" title= "Neo's personal homepage" target= "_blank" ><img src= " Class/image/logo2.gif "width=" height= "to" border=0></a></div>


</td>


</tr>


<tr>


<td>


<div align= "center" ><a href= "http://www.5460.net" target= "_blank" ><img src= "Class/image/a31.gif" Width= "Bayi" height= "border=" "0" alt= "the best in the domestic alumni" ></a></div>


</td>


</tr>


<tr>


<TD height= ">"


<div align= "center" class= "purple" ><a href= "http://medonline.51.net/" class= "purple" target= "_blank" > Xing Lin Medical online </a></div>


</td>


</tr>


<tr>


<TD height= ">"


<div align= "center" ><a href= "http://alumni.chinaren.com" title= "very distinctive alumni" class= "purple" target= "_blank" >chinaren Alumni </a></div>


</td>


</tr>


<tr>


<TD height= "bgcolor=" "#FFCCFF" >


<div align= "center" ><a href= "superadmin.php" class= "purple" target= "_blank" > class management </a></div>


</td>


</tr>


</table>


</td>


<TD width= "61%" height= "308" >


<div align= "center" ><img src= "class/image/821036.jpg" width= "height=" "166" alt= "Here for class photos" ></div >


<table width= "87%" border= "1" cellspacing= "0" cellpadding= "0" align= "center" height= "109" bordercolorlight= "# 9999FF "bordercolordark=" #FFFFFF >


<tr>


<td>


<div align= "center" class= "Redlarge" ><b> congratulatory words </b> </div>


</td>


</tr>


<tr>


<TD class= "Brown9 height=" ><img src= "Class/image/bz.gif" width= "height=" >


1. Welcome to the use of Xing Lin alumni. </td>


</tr>


<tr>


<TD class= "Brown9" ><img src= "Class/image/bz.gif" width= "height=" >


2. If you find a bug, please let me know as soon as possible. </td>


</tr>


<tr>


<TD class= "Brown9" > <img src= "class/image/bz.gif" width= "height=" >


3. Technical support: <a href= "mailto:webmaster@medguider.51.net" class= "Purple" >webmaster@medguider.51.net</a>< /TD>


</tr>


<tr>


<td>


<div align= "center" class= "Redlarge" > Latest message </div>


</td>


</tr>


<tr>


<TD class= "Brown9" >


<?php


$result = mysql_query ("Select * from Notebook", $db);


$row =mysql_num_rows ($result);


if ($row <=1) {$x = $row;} else {$x = 2;}


$result = mysql_query ("Select * from notebook" DESC limit 0, $x ", $db); Read the last 2 messages


For ($i =0 $i <= ($x-1); $i + +) {


$user =mysql_result ($result, $i, ' user ');


$resulty =mysql_query ("select * from user where user= ' $user '", $db);


$name =mysql_result ($resulty, 0, ' name ');


$time =mysql_result ($result, $i, ' time ');


$title =mysql_result ($result, $i, ' title ');


$nnote =mysql_result ($result, $i, ' nnote ');


echo "Message person: $name time $time <BR> theme: $title <BR> content: $nnote <BR>";


}


?>


</td>


</tr>


</table>


</td>


<TD valign= "Top" width= "20%" bgcolor= "#CFBD9B" >


<table border= "0" cellspacing= "0" cellpadding= "0" width= "100%" >


<tr>


<TD background= "Class/image/yellowbar3.gif" class= "White12" height= ">"


<div align= "center" > Whisper </div>


</td>


</tr>


<tr>


<TD bgcolor= "#FFFEEFF" >


<div align= "center" class= "Brown9" >


<?php


$result = mysql_query ("select * from Privatenote where touser= ' $userregister '", $db);


$row =mysql_num_rows ($result); Total number of Whispers


$unlook = 0;


if (! $row ==0) {


for ($i =0; $i < $row; $i + +) {


$look =mysql_result ($result, $i, ' look '); count the number of unseen whispers


if ($look = = "0") {$unlook + +;}


}


}


echo "You have". $unlook. " A new whisper. A total of ". $row." Article <a href= ' class/privatenote.php ' target= ' _blank ' > View whisper </a> ';


?>


</div>


</td>


</tr>


<tr>


<TD bgcolor= "#FFCC66" class= "White12" height= ">"


<div align= "center" > Address List </div>


</td>


</tr>


<tr>


<TD class= "Brown9" height= "bgcolor=" "#FFFEEFF" >


?


$result = mysql_query ("SELECT * from user", $db);


$row =mysql_num_rows ($result)//See how many rows of results, that is, the number of members


For ($i =0 $i <= ($row-1); $i + +) {


$name =mysql_result ($result, $i, ' name ');


Echo $name, ",";


}


Mysql_close ($DB);


?>


</td>


</tr>


<tr>


<td>





<table border= "0" cellspacing= "0" cellpadding= "0" bgcolor= "#CFBD9B" width= ">"


<tr>


<TD height= "colspan=" 3 "><img src=" class/image/noticebar.gif "width=" "height=" ></td>


</tr>


<tr>





<TD height= "width=" 6% > </td>





<TD width= "88%" bgcolor= "#FFFFFF" background= "class/image/fanhor01-1.jpg" class= "Deepblue10" ><marquee Direction=up scrollamount=1 scrolldelay=130 ><font color= "#FFCC66" >★</font> this site has been Sohu, Sina included <br>


<font color= "#FFCC66" >★</font> thanks to Leo for the new animation we made logo.<br>


<font color= "#FFCC66" >★</font> after several days of efforts, and finally use PHP and MySQL database will be a new version of the Yearbook. Features: Users can modify the data online; upload photos; whisper, Oicq Avatar. <br>


<font color= "#FFCC66" >★</font>5460 China alumni have 14 people joined in our class. <br>


<font color= "#FFCC66" >★</font> if you have nice scanned personal photos, please upload them as soon as possible. <br>


</marqee>


</td>





<TD height= "width=" 6% > </td>


</tr>


<tr>





<TD colspan= "3" height= "4" > </td>


</tr>


</table> </td>


</tr>


</table>


</td>


</tr>


</table>


<div align= "center" >


<p class= "Black9" > You are the first


<?php


Total counter


$fs = fopen ("Class/counter.txt", "r+");


$hit = fgets ($fs, 10);


$hit +=1;


Rewind ($FS);


Fwrite ($fs, $hit, 10);


$hit = Number_format ($hit);


Fclose ($FS);


echo "<font color= ' #33FF00 ' > $hit </font>";


?>


Visitor!<br>


Home production: <a href= "http://www.medguider.com" class= "Black9" > Medical navigation network </a><br>


<span class= "Grey9" > This page uses Flash, install <a href= "Http://medonline.51.net/plugsin/InstallAXFlash.exe" if it is not possible to browse normally >flash Plugins </a></span></p>


</div>


</BODY>


</HTML>


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.