当前位置: 首页>>代码示例>>PHP>>正文


PHP project::getProjects方法代码示例

本文整理汇总了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;
开发者ID:veganaize,项目名称:Collabtive,代码行数:31,代码来源:admin.php

示例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">
    &nbsp;&nbsp;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>
开发者ID:sknlim,项目名称:classified-2,代码行数:30,代码来源:project_management.php


注:本文中的project::getProjects方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。