Thread: [Openfirst-cvscommit] members email.png,1.1,1.2 profile.php,1.13,1.14
Brought to you by:
xtimg
From: <dav...@us...> - 2003-09-26 03:26:54
|
Update of /cvsroot/openfirst/members In directory sc8-pr-cvs1:/tmp/cvs-serv3391 Modified Files: email.png profile.php Log Message: Simple updates to profile viewer. Index: email.png =================================================================== RCS file: /cvsroot/openfirst/members/email.png,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 Binary files /tmp/cvsZNYNDR and /tmp/cvscKE14y differ Index: profile.php =================================================================== RCS file: /cvsroot/openfirst/members/profile.php,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** profile.php 13 Sep 2003 15:38:25 -0000 1.13 --- profile.php 26 Sep 2003 03:26:42 -0000 1.14 *************** *** 87,91 **** <br> <table> ! <tr><th><a href="profile.php?orderby=user">Nick Name</a></th><th><a href="profile.php?orderby=team">Team</a></th><th><a href="profile.php?orderby=email">E-mail</a></th><th><a href="profile.php?orderby=msn">MSN</a></th><th><a href="profile.php?orderby=icq">ICQ</a></th><th><a href="profile.php?orderby=aim">AIM</a></th><th><a href="profile.php?orderby=picturelocation">Photo</a></th></tr> <?php if(! ISSET($_GET["orderby"])) { $_GET["orderby"] = "user"; } --- 87,98 ---- <br> <table> ! <tr> ! <th><a href="profile.php?orderby=user">Nick Name</a></th> ! <th><a href="profile.php?orderby=email">E-mail</a></th> ! <th><a href="profile.php?orderby=msn">MSN</a></th> ! <th><a href="profile.php?orderby=icq">ICQ</a></th> ! <th><a href="profile.php?orderby=aim">AIM</a></th> ! <th><a href="profile.php?orderby=picturelocation">Photo</a></th> ! </tr> <?php if(! ISSET($_GET["orderby"])) { $_GET["orderby"] = "user"; } *************** *** 96,105 **** } while($q = ofirst_dbfetch_object($query)) { ! echo("<tr><td><a href='profile.php?id=$q->user'>$q->user</a></td><td>$q->team</td>"); ! if($q->email != "") { echo("<td><img src='email.png' alt='email available' /></td>"); } else { echo("<td></td>"); } ! if($q->msn != "") { echo("<td><img src='msmsgs.png' alt='msn available' /></td>"); } else { echo("<td></td>"); } ! if($q->icq != "") { echo("<td><img src='icq.png' alt='icq available' /></td>"); } else { echo("<td></td>"); } ! if($q->aim != "") { echo("<td><img src='aim.png' alt='aim available' /></td>"); } else { echo("<td></td>"); } ! if($q->picturelocation != "") { echo("<td><img src='photo.png' alt='photo available' /></td>"); } echo("</tr>"); } --- 103,112 ---- } while($q = ofirst_dbfetch_object($query)) { ! echo "<td><a href='profile.php?id=$q->user'>$q->user</a></td>"; ! if($q->email != "") { echo("<td><img src='email.png' alt='email available' /></td>"); } else { echo("<td><img src='email-none.png' alt='email available' /></td>"); } ! if($q->msn != "") { echo("<td><img src='msmsgs.png' alt='msn available' /></td>"); } else { echo("<td><img src='msmsgs-none.png' alt='email available' /></td>"); } ! if($q->icq != "") { echo("<td><img src='icq.png' alt='icq available' /></td>"); } else { echo("<td><img src='icq-none.png' alt='email available' /></td>"); } ! if($q->aim != "") { echo("<td><img src='aim.png' alt='aim available' /></td>"); } else { echo("<td><img src='aim-none.png' alt='email available' /></td>"); } ! if($q->picturelocation != "") { echo("<td><img src='photo.png' alt='photo available' /></td>"); }else{ echo("<td><img src='photo-none.png' alt='email available' /></td>"); } echo("</tr>"); } *************** *** 116,122 **** } ! echo("<table><tr><td style='vertical-align: top;'>"); if($q->picturelocation == "") { ! echo("<img src='nophoto.png' alt='No photograph provided' />"); } else { echo("<img src='$q->picturelocation' alt='$q->firstname $q->lastname' />"); --- 123,129 ---- } ! echo("<table width='600'><tr><th></th><th width='70%'>Member Information</th></tr><tr><td style='vertical-align: top;'>"); if($q->picturelocation == "") { ! echo("No photograph provided."); } else { echo("<img src='$q->picturelocation' alt='$q->firstname $q->lastname' />"); *************** *** 128,142 **** if ($q->firstname == "") { $q->firstname = "None"; } if ($q->lastname == "") { $q->lastname = "None"; } - if ($q->team == "") { $q->team = "no particular team"; } if ($q->dateregistered == "") { $q->dateregistered = "creation"; } if ($q->lastseen == "") { $q->lastseen = "$q->firstname has never logged in."; } ! echo("</td><td><h2>$q->user of $q->team</h2> <sub>Real Name: $q->firstname $q->lastname ! <br />Member since: $q->dateregistered ! <br />Last seen logged in: $q->lastseen</sub> <p> Division: <a href='divisions.php?division=$q->division'>$q->division</a> ! <br />Year $q->year </p> --- 135,148 ---- if ($q->firstname == "") { $q->firstname = "None"; } if ($q->lastname == "") { $q->lastname = "None"; } if ($q->dateregistered == "") { $q->dateregistered = "creation"; } if ($q->lastseen == "") { $q->lastseen = "$q->firstname has never logged in."; } ! echo("</td><td><h2>$q->user</h2> <sub>Real Name: $q->firstname $q->lastname ! <br />Member since: ".date("F j, Y",$q->dateregistered)." ! <br />Last seen logged in: ".date("F j, Y",$q->lastseen)."</sub> <p> Division: <a href='divisions.php?division=$q->division'>$q->division</a> ! <br /> </p> *************** *** 177,187 **** <p>"); $skill = explode(",", $q->skills); for($y = 0; $y < count($skill); $y++) { $det = explode("|",$skill[$y]); ! echo("<br />$det[0] - " . status($det[1])); } echo("</p></td></tr></table>"); ! } } include($footer); ?> --- 183,200 ---- <p>"); + if(isset($skill)){ $skill = explode(",", $q->skills); + echo "<table width='300'>"; for($y = 0; $y < count($skill); $y++) { $det = explode("|",$skill[$y]); ! echo("<tr><td>$det[0] - " . status($det[1]) . "</td></tr>"); } + echo "</table>"; + }else{ + echo "No skills entered."; + } echo("</p></td></tr></table>"); ! ! } } include($footer); ?> |