當前位置: 首頁>>代碼示例>>PHP>>正文


PHP project::getRunningProjects方法代碼示例

本文整理匯總了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>';
開發者ID:sknlim,項目名稱:classified-2,代碼行數:31,代碼來源:account_seeker.php

示例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>';
開發者ID:sknlim,項目名稱:classified-2,代碼行數:31,代碼來源:account_provider.php


注:本文中的project::getRunningProjects方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。