当前位置: 首页>>代码示例>>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;未经允许,请勿转载。