本文整理汇总了PHP中project::getRunningProjects方法的典型用法代码示例。如果您正苦于以下问题:PHP project::getRunningProjects方法的具体用法?PHP project::getRunningProjects怎么用?PHP project::getRunningProjects使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类project
的用法示例。
在下文中一共展示了project::getRunningProjects方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: common
</div>
<?php
$user_data = $user->getbyid($user->getloggedid);
if ($user_data['active'] == "suspended") {
$common = new common();
$msg = $common->getconfigvalue('account_suspended_message');
echo "<div style='height:20px;clear:both;'></div><div id='account_suspended' style='clear:both; text-align:center;'>" . $msg . "</div><div style='height:20px;clear:both;'></div>";
}
?>
<div style="height:20px; clear:both;"></div>
<strong>List of Your Running Projects </strong>
<?php
$projectac = new project();
$projects = $projectac->getRunningProjects('seeker', 'recent');
if (is_array($projects)) {
?>
<div id="account_open_projects" style="clear:both; width:600px;">
<table width="100%">
<tr class="heading"><td>Project Title</td><td>Posted Date</td><td>Started Date</td><td>Provider</td></tr>
<?php
foreach ($projects as $data) {
// if(!$projectac->isReviewed($data['selected_userid'],$data['id']))
// {
$userdata = $user->getById($data['selected_userid']);
echo '<tr>';
echo '<td><a href="projects.php?id=' . $data['id'] . '">' . $data['project_title'] . '</a></td>';
echo '<td>' . $data['created_time'] . '</td>';
echo '<td>' . $data['started_time'] . '</td>';
示例2: common
</table>
</div>
<?php
$user_data = $user->getbyid($user->getloggedid);
if ($user_data['active'] == "suspended") {
$common = new common();
$msg = $common->getconfigvalue('account_suspended_message');
echo "<div style='height:20px;clear:both;'></div><div id='account_suspended' style='clear:both; text-align:center;'>" . $msg . "</div><div style='height:20px;clear:both;'></div>";
}
?>
<div style="height:20px; clear:both;"></div>
<strong>List of Your Running Projects </strong>
<?php
$projectac = new project();
$projects = $projectac->getRunningProjects('provider', 'recent');
if (is_array($projects)) {
?>
<div id="account_open_projects" style="clear:both; width:600px;">
<table width="100%">
<tr class="heading"><td>Project Title</td><td>Posted Date</td><td>Started Date</td><td>Seeker</td></tr>
<?php
foreach ($projects as $data) {
// if(!$projectac->isReviewed($data['userid'],$data['id']))
// {
$userdata = $user->getById($data['userid']);
echo '<tr>';
echo '<td><a href="projects.php?id=' . $data['id'] . '">' . $data['project_title'] . '</a></td>';
echo '<td>' . $data['created_time'] . '</td>';
echo '<td>' . $data['started_time'] . '</td>';