$errtxt = $langfile["nopermission"]; $noperm = $langfile["accessdenied"]; $template->assign("errortext", "{$errtxt}<br>{$noperm}"); $template->display("error.tpl"); die; } //Administration of users if ($action == "users") { // Set the users tab active $classes = array("overview" => "overview", "system" => "system", "users" => "active"); $template->assign("classes", $classes); $roleobj = (object) new roles(); // Get 25 users $users = $user->getAllUsers(25); // Get All Projects $projects = $project->getProjects(1, 10000); $roles = $roleobj->getAllRoles(); $i2 = 0; if (!empty($users)) { foreach ($users as $usr) { $i = 0; // Check if a user is assigned to a project if (!empty($projects)) { foreach ($projects as $pro) { if (chkproject($usr["ID"], $pro["ID"])) { $chk = 1; } else { $chk = 0; } $projects[$i]['assigned'] = $chk; $i = $i + 1;
<tr><td colspan="6" align="center" valign="middle"> <table align="center" > <tr> <td><img src="images/listmain.png" /></td> <td style="color:#003399; font-family:Arial, Helvetica, sans-serif; font-weight:bold; font-size:18px;" align="center" valign="middle"> List of Projects</td> </tr> </table> </td></tr> <tr><td colspan="6"><table width="100%"><tr><td> <br /> <?php $result = $project->getProjects(); ?> <form name="listproject" action="delete_project.php" method="post"> <input type="hidden" id="selectcheck" name="selectcheck" /> <input type="hidden" id="type" name="type" value="" /> <table width="100%"><tr><td align="right" width="100%"> <?php if (is_array($result)) { ?> <b><font color="red" size="2"> *Delete : this will delete there all data from the website </font></b><input type="submit" value="Active" onclick="return active_project(); " /><input type="submit" value="Block" onclick="return block_project(); " /><input type="submit" value="Delete" onclick="return delete_project(); " /></td></tr></table> <table width="100%" style="font-family:Arial, Helvetica, sans-serif; font-size:13px;"> <tr bgcolor="#3262bd"> <td class="grey" align="center">Project Title</td> <td class="grey" align="center">Min. Budget</td>