[Openfirst-cvscommit] guestbook sign.php,1.7,1.8 index.php,1.6,1.7 deleteyes.php,1.6,1.7 deleteentry
Brought to you by:
xtimg
From: <dav...@us...> - 2003-09-13 15:38:30
|
Update of /cvsroot/openfirst/guestbook In directory sc8-pr-cvs1:/tmp/cvs-serv20924/guestbook Modified Files: sign.php index.php deleteyes.php deleteentry.php Log Message: Minor bug and design changes. Index: sign.php =================================================================== RCS file: /cvsroot/openfirst/guestbook/sign.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** sign.php 7 Sep 2003 13:04:23 -0000 1.7 --- sign.php 13 Sep 2003 15:38:26 -0000 1.8 *************** *** 33,71 **** <h1>Sign Guest Book</h1> ! <p><a href="./">View Guest Book</a> ! <a href="<?php echo($home); ?>">Return to main site</a> ! </p> ! <form method="post" onsubmit="return dhtmlEditorPrepareSubmit();" action="signthanks.php"> ! <?php if(function_exists("emoticon_translate")) { ! echo("<p>Emoticons (smilies) are enabled in your message. See <a href='emoticons.php'>a complete listing of ! emoticons usable in the guestbook</a> for more information. about the emoticons you may use.</p>"); } else { echo("<p>Emoticons (smilies) are disabled in your message.</p>"); } ?> ! <p> ! <br /><img src="person.png" alt="Name: " /> Name <input type="text" name="guest" style="width: 300px;" value="<?php echo($user->firstname . ' ' . $user->lastname); ?>" /> ! <br /><img src="email.png" alt="E-mail Address: " /> E-mail Address <input type="text" name="email" style="width: 300px;" value="<?php echo($user->email); ?>" /> ! <br /><img src="icq.png" alt="ICQ UIN: " /> ICQ UIN <input type="text" name="icq" style="width: 300px;" value="<?php echo($user->icq); ?>" /> ! <br /><img src="aim.png" alt="AIM Screen name: " /> AIM Screen Name <input type="text" name="aim" style="width: 300px;" value="<?php echo($user->aim); ?>" /> ! <br /><img src="msmsgs.png" alt="MSN Messenger Address: " /> MSN Messenger Address <input type="text" name="msn" style="width: 300px;" value="<?php echo($user->msn); ?>" /> ! <br /><img src="yahoo.png" alt="Yahoo! Messenger Address: " /> Yahoo! Messenger Address <input type="text" name="yim" style="width: 300px;" value="<?php echo($user->yim); ?>" /> ! <br /><img src="irc.png" alt="IRC: " /> IRC Address <input type="text" name="irc" style="width: 300px;" value="<?php echo($user->irc); ?>" /> ! <br /><img src="webpage.png" alt="Web Page" /> Web Page Address (include the http://) <input type="text" name="webpage" style="width: 300px;" value="<?php echo($user->homepage); ?>" /> ! <br /><img src="world.png" alt="Location: "/> Location <input type="text" name="location" style="width: 300px;" value="<?php echo($user->location); ?>" /> ! <br />Comment<br /> ! <?php if (function_exists("make_wysiwyg")) { make_wysiwyg("comment",400,300,"$user->signature"); } else { ! ?><textarea name="comment" style="width: 400px; height: 300px;" rows="25" cols="40"><?php echo($user->signature); ?></textarea> ! <?php } ?> ! <br /> <input type="submit" title="Submit" /> ! <input type="reset" title="Clear" /> ! </p> ! </form> <?php --- 33,108 ---- <h1>Sign Guest Book</h1> ! <form method="post" onsubmit="return dhtmlEditorPrepareSubmit();" action="signthanks.php"> ! <?php if(function_exists("emoticon_translate")) { ! echo("<p>Emoticons (smilies) are enabled in your message.<br>See <a href='emoticons.php'>a complete listing of ! emoticons usable in the guestbook</a> for more information <br> about the emoticons you may use.</p>"); } else { echo("<p>Emoticons (smilies) are disabled in your message.</p>"); } ?> ! <table width="549" align="center"> ! <tr> ! <th> </th> ! <th>Personal Information</th> ! </tr> ! <tr> ! <td width="25%"><img src="person.png" alt="Name: " /> Name </td> ! <td width="75%"><input type="text" name="guest" style="width: 300px;" value="<?php echo($user->firstname . ' ' . $user->lastname); ?>" /></td> ! </tr> ! <tr> ! <td><img src="email.png" alt="E-mail Address: " /> E-mail Address </td> ! <td><input type="text" name="email" style="width: 300px;" value="<?php echo($user->email); ?>" /></td> ! </tr> ! <tr> ! <td><img src="icq.png" alt="ICQ UIN: " /> ICQ UIN </td> ! <td><input type="text" name="icq" style="width: 300px;" value="<?php echo($user->icq); ?>" /></td> ! </tr> ! <tr> ! <td><img src="aim.png" alt="AIM Screen name: " /> AIM Screen Name </td> ! <td><input type="text" name="aim" style="width: 300px;" value="<?php echo($user->aim); ?>" /></td> ! </tr> ! <tr> ! <td><img src="msmsgs.png" alt="MSN Messenger Address: " /> MSN Messenger ! Address </td> ! <td><input type="text" name="msn" style="width: 300px;" value="<?php echo($user->msn); ?>" /></td> ! </tr> ! <tr> ! <td><img src="yahoo.png" alt="Yahoo! Messenger Address: " /> Yahoo! Messenger ! Address </td> ! <td><input type="text" name="yim" style="width: 300px;" value="<?php echo($user->yim); ?>" /></td> ! </tr> ! <tr> ! <td><img src="irc.png" alt="IRC: " /> IRC Address </td> ! <td><input type="text" name="irc" style="width: 300px;" value="<?php echo($user->irc); ?>" /></td> ! </tr> ! <tr> ! <td><img src="webpage.png" alt="Web Page" /> Web Page Address (include the ! http://) </td> ! <td><input type="text" name="webpage" style="width: 300px;" value="<?php echo($user->homepage); ?>" /></td> ! </tr> ! <tr> ! <td><img src="world.png" alt="Location: "/> Location </td> ! <td><input type="text" name="location" style="width: 300px;" value="<?php echo($user->location); ?>" /></td> ! </tr> ! <tr> ! <td>Comment</td> ! <td> ! <?php if (function_exists("make_wysiwyg")) { make_wysiwyg("comment",400,300,"$user->signature"); } else { ! ?> ! <textarea name="comment" style="width: 400px; height: 300px;" rows="25" cols="40"><?php echo($user->signature); ?></textarea></td> ! <?php } ?> ! </tr> ! </table> ! <p> <br /> ! <input type="submit" title="Submit" value="Sign Guestbook" /> ! <input type="reset" title="Clear" /> ! </p> ! </form> <?php Index: index.php =================================================================== RCS file: /cvsroot/openfirst/guestbook/index.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** index.php 23 Aug 2003 20:21:00 -0000 1.6 --- index.php 13 Sep 2003 15:38:26 -0000 1.7 *************** *** 32,43 **** ?> <h1>View Guest Book</h1> ! <p>Comments are arranged alphabetically by guest name. We are not ! responsible for the content contained in this guestbook. The comments and ! opinions expressed throughout the guestbook are those of the poster, and ! do not necessarily reflect those of our robotics team. ! <br /><a href="<?php echo($home); ?>">Return to main page</a> ! <a href="sign.php">Sign Guest Book</a></p> ! ! <?php if(isset($_GET["perpage"]) == false || (int)$_GET["perpage"] == 0) { $_GET["perpage"] = 5; } --- 32,43 ---- ?> <h1>View Guest Book</h1> ! ! <p>Comments are arranged alphabetically by guest name. We are not responsible ! for the content contained in this guestbook.<br> ! The comments and opinions expressed throughout the guestbook are<br> ! those of the poster, and do not necessarily reflect those of our robotics team. ! <br /> ! <br> ! <?php if(isset($_GET["perpage"]) == false || (int)$_GET["perpage"] == 0) { $_GET["perpage"] = 5; } *************** *** 60,81 **** if ($result) { while ($r = ofirst_dbfetch_object($result)) { ! ! echo("<hr /><p>$r->date ! <br /><img src='person.png' alt='Guest: ' /> Guest: $r->guest ! <br /><img src='email.png' alt='E-mail Address: ' /> E-mail: <a href='mailto: $r->email'>$r->email</a> ! <br /><img src='icq.png' alt='ICQ UIN: ' /> ICQ: $r->ICQ"); if ($r->ICQ != "") { ! echo("<img src='http://wwp.icq.com/scripts/online.dll?icq=".$r->ICQ . "&img=5' alt='User status' />"); } ! echo("<br /><img src='aim.png' alt='AIM Screen name: ' /> AIM: $r->AIM ! <br /><img src='msmsgs.png' alt='MSN Messenger Address: ' /> MSN: $r->MSN ! <br /><img src='yahoo.png' alt='Yahoo! Messenger Address: ' /> YIM: $r->YIM"); if ($r->YIM != "") { ! echo("<img src='http://opi.yahoo.com/online?u=$r->YIM &m=g&t=1' alt='User Status' />"); } ! echo("<br /><img src='irc.png' alt='IRC: ' /> IRC:$r->IRC ! <br /><img src='webpage.png' alt='Web Page' /> Web Page: <a href='$r->webpage'>$r->webpage</a> ! <br /><img src='world.png' alt='Location: ' /> Location: $r->location"); if (function_exists('emoticon_translate')) { --- 60,87 ---- if ($result) { while ($r = ofirst_dbfetch_object($result)) { ! echo "<hr width='80%' size='1px' style='border:1px' noshade>"; ! echo "<table>"; ! echo " ! <tr><th></th><th>$r->date</th></tr> ! <tr><td><img src='person.png' alt='Guest: ' /> Guest: </td><td>$r->guest</td></tr> ! <tr><td><img src='email.png' alt='E-mail Address: ' /> E-mail: </td><td><a href='mailto: $r->email'>$r->email</a></td></tr> ! <tr><td><img src='icq.png' alt='ICQ UIN: ' /> ICQ: </td><td>$r->ICQ</td></tr>"; if ($r->ICQ != "") { ! echo("<td><img src='http://wwp.icq.com/scripts/online.dll?icq=".$r->ICQ . "&img=5' alt='User status' /></td></tr>"); } ! echo(" ! <tr><td><img src='aim.png' alt='AIM Screen name: ' /> AIM: </td><td>$r->AIM</td></tr> ! <tr><td><img src='msmsgs.png' alt='MSN Messenger Address: ' /> MSN:</td><td> $r->MSN</td></tr> ! <tr><td><img src='yahoo.png' alt='Yahoo! Messenger Address: ' /> YIM: </td><td>$r->YIM"); if ($r->YIM != "") { ! echo("<img src='http://opi.yahoo.com/online?u=$r->YIM &m=g&t=1' alt='User Status' />"); ! }else{ ! echo "</td></tr>"; } ! echo " ! <tr><td><img src='irc.png' alt='IRC: ' /> IRC: </td><td>$r->IRC</td> ! <tr><td><img src='webpage.png' alt='Web Page' /> Web Page: </td><td><a href='$r->webpage'>$r->webpage</a></td></tr> ! <tr><td><img src='world.png' alt='Location: ' /> Location: </td><td>$r->location</td></tr>"; if (function_exists('emoticon_translate')) { *************** *** 85,93 **** } ! echo("<br />Comment: </p><p>" . $comment . "</p> ! \n"); if($user->membertype == "administrator") { ! echo("<p><a href='deleteentry.php?email=$r->email&deletecode=$r->deletecode'>Delete entry</a></p>"); } } } --- 91,99 ---- } ! echo("<td>Comment: </td><td></p><p>" . $comment . "</td></tr>\n"); if($user->membertype == "administrator") { ! echo("<tr><td> </td><td><a href='deleteentry.php?email=$r->email&deletecode=$r->deletecode'>Delete entry</a></p></td></tr>"); } + echo "</table>"; } } *************** *** 95,96 **** --- 101,104 ---- include("$footer"); ?> + </p> + Index: deleteyes.php =================================================================== RCS file: /cvsroot/openfirst/guestbook/deleteyes.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** deleteyes.php 23 Aug 2003 20:21:00 -0000 1.6 --- deleteyes.php 13 Sep 2003 15:38:26 -0000 1.7 *************** *** 32,38 **** <h1>Deleted Guest Book Entry</h1> ! <p><a href="./">View Guest Book</a> <a href="<?php echo("$home"); ?>">Return to main site</a></p> ! ! <?php $email = $_POST["email"]; $deletecode = $_POST["deletecode"]; --- 32,38 ---- <h1>Deleted Guest Book Entry</h1> ! ! <p> ! <?php $email = $_POST["email"]; $deletecode = $_POST["deletecode"]; *************** *** 41,46 **** $result = ofirst_dbquery($query); ?> ! <p>The selected post has been removed.</p> <?php --- 41,47 ---- $result = ofirst_dbquery($query); ?> + </p> ! <p>The selected post has been removed.</p> <?php Index: deleteentry.php =================================================================== RCS file: /cvsroot/openfirst/guestbook/deleteentry.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** deleteentry.php 23 Aug 2003 20:21:00 -0000 1.6 --- deleteentry.php 13 Sep 2003 15:38:26 -0000 1.7 *************** *** 32,38 **** <h1>Delete Guest Book Entry</h1> - <p><a href="./">View Guest Book</a> <a href="<?php echo($home); ?>">Return to main site</a></p> - <?php $email = $_GET["email"]; $deletecode = $_GET["deletecode"]; --- 32,37 ---- <h1>Delete Guest Book Entry</h1> <?php + if(ISSET($_GET['email'])){ $email = $_GET["email"]; $deletecode = $_GET["deletecode"]; *************** *** 57,64 **** <?php } else { echo("No posting from you (<?php echo($email); ?>) with that delete code appears to exist."); } ! include("$footer"); ?> --- 56,66 ---- <?php + } else { echo("No posting from you (<?php echo($email); ?>) with that delete code appears to exist."); } ! }else{ ! echo "You may delete entries by viewing them then clicking delete below them.<br><br>"; ! } include("$footer"); ?> |