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"];
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>";
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 {
// 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>";
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>";
// 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"];
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();