本文整理汇总了PHP中project::getProjects方法的典型用法代码示例。如果您正苦于以下问题:PHP project::getProjects方法的具体用法?PHP project::getProjects怎么用?PHP project::getProjects使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类project
的用法示例。
在下文中一共展示了project::getProjects方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$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;
示例2:
<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>