[Openfirst-cvscommit] members workspace.php,1.9,1.10 profile.php,1.12,1.13 index.php,1.6,1.7 divisio
Brought to you by:
xtimg
From: <dav...@us...> - 2003-09-13 15:38:30
|
Update of /cvsroot/openfirst/members In directory sc8-pr-cvs1:/tmp/cvs-serv20924/members Modified Files: workspace.php profile.php index.php divisions.php Log Message: Minor bug and design changes. Index: workspace.php =================================================================== RCS file: /cvsroot/openfirst/members/workspace.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** workspace.php 23 Aug 2003 20:31:16 -0000 1.9 --- workspace.php 13 Sep 2003 15:38:25 -0000 1.10 *************** *** 78,82 **** fclose($fi); die(include($footer)); ! } elseif ($_POST["action"] == "setperm") { ofirst_dbquery("UPDATE ofirst_workspace_files SET permissions='" . $_POST["userperm"] . $_POST["groupperm"] . $_POST["otherperm"] . "' WHERE name='" . $_POST["file"] . "' AND owner='" . $_POST["owner"] . "' AND location='" . $_POST["filepath"] . "';"); echo("Permissions on file "" . $_POST["file"] . "" have been modified. [ <a href='workspace.php'>Return to workspace</a> ]"); --- 78,82 ---- fclose($fi); die(include($footer)); ! } elseif (isset($_POST["action"]) == true && $_POST["action"] == "setperm") { ofirst_dbquery("UPDATE ofirst_workspace_files SET permissions='" . $_POST["userperm"] . $_POST["groupperm"] . $_POST["otherperm"] . "' WHERE name='" . $_POST["file"] . "' AND owner='" . $_POST["owner"] . "' AND location='" . $_POST["filepath"] . "';"); echo("Permissions on file "" . $_POST["file"] . "" have been modified. [ <a href='workspace.php'>Return to workspace</a> ]"); *************** *** 307,312 **** --- 307,317 ---- </td></tr>"); } + + if(mysql_num_rows($files) == 0){ + echo "<tr><td> </td><td> </td><td> </td><td>No files listed!</td><td> </td><td> </td><td> </td></tr>"; + } ?> </table> + <br> Make a directory: <form action="workspace.php" method="post"> *************** *** 410,413 **** --- 415,422 ---- </td></tr>"); } + + if(mysql_num_rows($files) == 0){ + echo "<tr><td> </td><td> </td><td> </td><td> </td><td>No files listed!</td><td> </td><td> </td><td> </td></tr>"; + } ?> </table> *************** *** 426,429 **** --- 435,442 ---- </td></tr>"); } + + if(mysql_num_rows($files) == 0){ + echo "<tr><td> </td><td> </td><td> </td><td> </td><td>No files listed!</td><td> </td><td> </td><td> </td></tr>"; + } ?> </table> Index: profile.php =================================================================== RCS file: /cvsroot/openfirst/members/profile.php,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** profile.php 1 Sep 2003 20:11:13 -0000 1.12 --- profile.php 13 Sep 2003 15:38:25 -0000 1.13 *************** *** 85,92 **** </table> <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($_GET["orderby"] == "") { $_GET["orderby"] = "user"; } if(isset($extra) == true && $extra != "") { $query = ofirst_dbquery("SELECT * FROM ofirst_members where " . $_GET["orderby"] . " is NOT NULL $extra ORDER BY " . $_GET["orderby"] . ";"); --- 85,93 ---- </table> + <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"; } if(isset($extra) == true && $extra != "") { $query = ofirst_dbquery("SELECT * FROM ofirst_members where " . $_GET["orderby"] . " is NOT NULL $extra ORDER BY " . $_GET["orderby"] . ";"); *************** *** 105,108 **** --- 106,110 ---- ?> </table> + <br> <?php } else { Index: index.php =================================================================== RCS file: /cvsroot/openfirst/members/index.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** index.php 23 Jul 2003 21:37:06 -0000 1.6 --- index.php 13 Sep 2003 15:38:25 -0000 1.7 *************** *** 40,47 **** } ?> ! <p>This is the <?php echo $title; ?> members area. You are logged in as: ! <?php ! echo("$user->user the $user->membertype of the $user->division division of team $user->team."); ! ?></p> <?php } else { showlogin(); --- 40,49 ---- } ?> ! <p>This is the <?php echo $title; ?> members area.<br> ! You are logged in as: ! <?php ! echo("<font color='green'>$user->user</font> the <font color='green'>$user->membertype</font> of the <font color='green'>$user->division division of team $user->team.</font>"); ! ?> ! </p> <?php } else { showlogin(); Index: divisions.php =================================================================== RCS file: /cvsroot/openfirst/members/divisions.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** divisions.php 23 Aug 2003 20:31:16 -0000 1.2 --- divisions.php 13 Sep 2003 15:38:25 -0000 1.3 *************** *** 38,42 **** $div = ofirst_dbfetch_object(ofirst_dbquery("SELECT * FROM ofirst_divisions WHERE division='$division';")); echo("<h2>$div->division</h2> - <sub><a href='divisions.php?division='>View list of all divisions</a></sub> <p>$div->description</p> <h2>$div->division Division Members</h2>"); --- 38,41 ---- |