trying a few table layouts and designs
authorpaulr <me@pjr.cc>
Mon, 7 Nov 2011 11:06:02 +0000 (22:06 +1100)
committerpaulr <me@pjr.cc>
Mon, 7 Nov 2011 11:06:02 +0000 (22:06 +1100)
fixed the configuration dialog

gwvplib/gwvpconfig.php
gwvplib/gwvprepoadmin.php
gwvplib/gwvpuseradmin.php
gwvplib/gwvpweb.php

index e63c99f..3457e38 100644 (file)
@@ -73,6 +73,7 @@ function gwvp_ConfigPageBody()
        echo "<h1>Global Configuration</h1>";
        echo "<form method=\"post\" action=\"$BASE_URL/admin/configupdate\">";
        echo "<table>";
+       echo "<tr><th bgcolor=\"#eeeeff\">Configuration Variable</th><th bgcolor=\"#eeeeff\">Value</th></tr>";
        foreach($CONFIG_VARS as $key=>$var) {
                $name = $key;
                $text = $var["text"];
@@ -97,7 +98,7 @@ function gwvp_ConfigPageBody()
                                break;
                }
                error_log("go config $name as $ltype, $curtypeval");
-               echo "<tr><td>$text</td><td><input type=\"$ltype\" name=\"$name\" $curtypeval></td></tr>";
+               echo "<tr><td>$text</td><td bgcolor=\"#eeeeee\"><input type=\"$ltype\" name=\"$name\" $curtypeval></td></tr>";
        }
        
        echo "</table>";
index 7a2b476..66cb85b 100644 (file)
@@ -144,13 +144,14 @@ function gwvp_RepoAdminPageBody()
                echo "<h3>Your Repo's</h3>";
                $ownreps = gwvp_getOwnedRepos($_SESSION["id"]);
                if($ownreps != false) {
-                       echo "<table>";
-                       echo "<tr><th>Repo Name</th></tr>";
+                       echo "<table border=\"1\">";
+                       echo "<tr><th>Repo Name</th><th>Repo description</th></tr>";
                        foreach($ownreps as $repos) {
                                $mjay = print_r($repos, true);
                                error_log("snafu: $mjay");
                                $reponame = $repos["name"];
-                               echo "<tr><td>$reponame</td></tr>";
+                               $repodesc = $repos["description"];
+                               echo "<tr><td>$reponame</td><td>$repodesc</td><td><a href=\"$BASE_URL/admin/repos/manageown\">Manage</a></td></tr>";
                        }
                        echo "</table>";
                } else {
@@ -164,13 +165,13 @@ function gwvp_RepoAdminPageBody()
        // i must also remember that the home page will also contain a list of repos and that this page is solely for maintance
        // and creation of repos - so i dont need to get over-worked about the info stored on this page outside of those activities
        $rlist = gwvp_GetRepoList();
-       echo "<table border=\"1\"><tr><th>Repo Name</th><th>Repo Description</th><th>Repo Owner</th><th>Control</th></tr>";
+       echo "<table border=\"1\"><tr><th>Repo Name</th><th>Repo Description</th><th>Repo Owner</th></tr>";
        foreach($rlist as $u_res) {
                $rid = $u_res["id"];
                $rname = $u_res["name"];
                $rdesc = $u_res["description"];
                $rown = gwvp_getUserName($u_res["owner"]);
-               echo "<tr><td>$rname</td><td>$rdesc</td><td>$rown</td><td><a href=\"$BASE_URL/admin/repos/modify/$rid\">Modify</a></td></tr>";
+               echo "<tr><td>$rname</td><td>$rdesc</td><td>$rown</td><td><a href=\"$BASE_URL/admin/repos/modify/$rid\">Details</a></td></tr>";
        }
        echo "</table>";
        
index 7db0c8d..abe586e 100644 (file)
@@ -434,12 +434,12 @@ function gwvp_UserAdminPageBody()
                
                echo "<form method=\"post\" action=\"$BASE_URL/admin/users/adduser\">";
                echo "<table>";
-               echo "<tr><td>EMail</td><td><input type=\"text\" name=\"email\"$presetemail>$staremail</td>";
-               echo "<td>Full Name</td><td><input type=\"text\" name=\"fullname\"$presetfullname></td></tr>";
-               echo "<tr><td>Password</td><td><input type=\"text\" name=\"pass1\">$starpass</td>";
-               echo "<td>Password Confirm</td><td><input type=\"text\" name=\"pass2\">$starpass</td></tr>";
-               echo "<tr><td>Username</td><td><input type=\"text\" name=\"username\"$presetusername>$starusername</td>";
-               echo "<td>Description</td><td><input type=\"text\" name=\"desc\"$presetdesc></td></tr>";
+               echo "<tr><td bgcolor=\"#eeffee\">EMail</td><td><input type=\"text\" name=\"email\"$presetemail>$staremail</td>";
+               echo "<td bgcolor=\"#eeffee\">Full Name</td><td><input type=\"text\" name=\"fullname\"$presetfullname></td></tr>";
+               echo "<tr><td bgcolor=\"#eeffee\">Password</td><td><input type=\"text\" name=\"pass1\">$starpass</td>";
+               echo "<td bgcolor=\"#eeffee\">Password Confirm</td><td><input type=\"text\" name=\"pass2\">$starpass</td></tr>";
+               echo "<tr><td bgcolor=\"#eeffee\">Username</td><td><input type=\"text\" name=\"username\"$presetusername>$starusername</td>";
+               echo "<td bgcolor=\"#eeffee\">Description</td><td><input type=\"text\" name=\"desc\"$presetdesc></td></tr>";
                echo "<tr><td colspan=\"4\"><input type=\"checkbox\" name=\"sendvalidation\"> Set account locked and send validation email for initial passsword (not implemented)</td></tr>";
                echo "<tr><td><input type=\"submit\" name=\"Create\" value=\"Create\" class=\"buttons\"></td></tr>";
                echo "</table>";
@@ -482,10 +482,10 @@ function gwvp_UserAdminPageBody()
                // Create group
                echo "<form method=\"post\" action=\"$BASE_URL/admin/users/addgroup\">";
                echo "<table>";
-               echo "<tr><td>Group Name</td><td><input type=\"text\" name=\"groupname\"$presetname>$stargroupname<td></tr>";
-               echo "<tr><td>Group Description</td><td><input type=\"text\" name=\"groupdesc\"$presetdesc><td></tr>";
-               echo "<tr><td>Admin Group?</td><td><input type=\"checkbox\" name=\"admingroup\" class=\"mycheckbox\"$presetgroupadmin></td></tr>";
-               echo "<tr><td>Owner</td><td><div><select class=\"myselect\" name=\"groupowner\">";
+               echo "<tr><td bgcolor=\"#ddddff\">Group Name</td><td bgcolor=\"#ddffdd\"><input type=\"text\" name=\"groupname\"$presetname>$stargroupname<td></tr>";
+               echo "<tr><td bgcolor=\"#ddddff\">Group Description</td><td bgcolor=\"#ddffdd\"><input type=\"text\" name=\"groupdesc\"$presetdesc><td></tr>";
+               echo "<tr><td bgcolor=\"#ddddff\">Admin Group?</td><td bgcolor=\"#ddffdd\"><input type=\"checkbox\" name=\"admingroup\" class=\"mycheckbox\"$presetgroupadmin></td></tr>";
+               echo "<tr><td bgcolor=\"#ddddff\">Owner</td><td bgcolor=\"#ddffdd\"><div><select class=\"myselect\" name=\"groupowner\">";
                foreach($users as $u_users) {
                        $uid = $u_users["id"];
                        $email = $u_users["email"];
index 9c08a3c..476a850 100644 (file)
@@ -94,7 +94,7 @@ function gwvp_goMainPage($bodyFunction = null)
                echo "</td></tr>";
        }
        
-       echo "<tr width=\"100%\" bgcolor=\"#fff0f0\"><td>";
+       echo "<tr width=\"100%\" bgcolor=\"#ddffdd\"><td>";
        gwvp_MenuBuilder();
        echo "</td><td align=\"right\">";
        gwvp_LoginBuilder();