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


PHP project::getStatus方法代码示例

本文整理汇总了PHP中project::getStatus方法的典型用法代码示例。如果您正苦于以下问题:PHP project::getStatus方法的具体用法?PHP project::getStatus怎么用?PHP project::getStatus使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在project的用法示例。


在下文中一共展示了project::getStatus方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: project

</script>
<div style="height:20px; clear:both;"></div>
<strong>List of All Projects You have Posted</strong>
<?php 
    $projectac = new project();
    $projectlist = $projectac->getAllProjectList();
    $objcommon = new common();
    if (is_array($projectlist)) {
        ?>
        <div id="account_open_projects" style="clear:both; width:100%;">
        <table width="100%">
        <tr class="heading"><td>Project Title</td><td>Date</td><td>Status</td><td>Edit</td><td>Option</td><td>Select Provider</td></tr>
            <?php 
        foreach ($projectlist as $data) {
            $pstatus = $projectac->getStatus($data['id']);
            if ($pstatus == "open") {
                $pstatus = '<font style="color:green;">Open</font>';
            }
            if ($pstatus == "frozen") {
                $pstatus = '<font style="color:blue;">Frozen</font>';
            }
            if ($pstatus == "cancelled") {
                $pstatus = '<font style="color:red;">Cancelled</font>';
            }
            if ($pstatus == "closed") {
                $pstatus = '<font style="color:red;">Closed</font>';
            }
            echo '<tr>';
            echo '<td><a href="projects.php?id=' . $data['id'] . '">' . $data['project_title'] . '</a></td>';
            echo '<td>' . $objcommon->Fuzzytime($data['created_time']) . '</td>';
开发者ID:sknlim,项目名称:classified-2,代码行数:30,代码来源:viewallprojects.php

示例2: common

<a href="viewallrunningprojects.php">View All</a>
<div style="height:20px; clear:both;"></div>
<strong>List of Open Projects You have Posted</strong>

<?php 
$projectlist = $projectac->getOpenProjectList();
$objcommon = new common();
if (is_array($projectlist)) {
    ?>
        <div id="account_open_projects" style="clear:both; width:100%;">
        
        <table width="100%">
        <tr class="heading"><td>Project Title</td><td>Posted On</td><td>Status</td><td>Select Provider</td><td>Edit</td><td>Option</td></tr>
            <?php 
    foreach ($projectlist as $data) {
        $pstatus = $projectac->getStatus($data['id']);
        if ($pstatus == "open") {
            $pstatus = '<font style="color:green;">Open</font>';
        }
        if ($pstatus == "frozen") {
            $pstatus = '<font style="color:blue;">Frozen</font>';
        }
        if ($pstatus == "cancelled") {
            $pstatus = '<font style="color:red;">Cancelled</font>';
        }
        if ($pstatus == "closed") {
            $pstatus = '<font style="color:red;">Closed</font>';
        }
        echo '<tr>';
        echo '<td><a href="projects.php?id=' . $data['id'] . '">' . $data['project_title'] . '</a></td>';
        echo '<td>' . $objcommon->Fuzzytime($data['created_time']) . '</td>';
开发者ID:sknlim,项目名称:classified-2,代码行数:31,代码来源:account_seeker.php

示例3: user

<?php

session_start();
require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/common.class.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/project.class.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/user.class.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/config.class.php";
$objuser = new user();
$objuser->checkLoginAjax();
if (strtoupper($_SESSION['foongigs_usertype']) == "SEEKER") {
    echo "script: messageBox('Sorry!, Only PROVIDER can Place Bid ');";
    exit;
}
$objproject = new project();
if ($objproject->is_private($_POST['projectid'])) {
    if (!$objproject->isuserinvited($_POST['projectid'], $_SESSION['foongigs_userid'])) {
        echo "script: messageBox('Sorry! This is private project, You are not Invited to bid on this project ');";
        exit;
    }
}
$response = $objproject->placebid($_POST);
if ($objproject->getStatus($_POST['projectid']) == "open") {
    if ($response == "Add") {
        echo "script: closePage(); messageBox('Your Bid have been posted for this project',function() { window.location='projects.php?id=" . $_POST['projectid'] . "'; });";
    }
    if ($response == "Update") {
        echo "script: closePage(); messageBox('Your Bid have been updated for this project',function() { window.location='projects.php?id=" . $_POST['projectid'] . "'; });";
    }
} else {
    echo "script: closePage(); messageBox('Bidding Closed for this project',function() { window.location='projects.php?id=" . $_POST['projectid'] . "'; });";
}
开发者ID:sknlim,项目名称:classified-2,代码行数:31,代码来源:placebid.php

示例4: project

<strong>List of Project on You have Placed Bid</strong>
	<?php 
$projectac = new project();
$projectlist = $projectac->getBiddedProjectList();
$objcommon = new common();
if (is_array($projectlist)) {
    ?>
        <div id="account_open_projects" style="clear:both; width:100%;">
        <table width="100%">
        <tr class="heading"><td>Project Title</td><td>Date</td><td>Status</td><td>BidRank</td><td>Bid Time</td><td>Option</td></tr>
            <?php 
    foreach ($projectlist as $data) {
        echo '<tr>';
        echo '<td><a href="projects.php?id=' . $data['projectid'] . '">' . $data['project_title'] . '</a></td>';
        echo '<td>' . $objcommon->Fuzzytime($data['created_time']) . '</td>';
        echo '<td>' . $projectac->getStatus($data['projectid']) . '</td>';
        echo '<td>' . $projectac->getBidRank($data['projectid']) . '</td>';
        echo '<td>' . $objcommon->Fuzzytime($data['bid_time']) . '</td><td>';
        if ($data['selected_userid'] == $_SESSION['foongigs_userid']) {
            echo "<input type='button' value='Accept' onclick=\"loadPage('/ajax/project/acceptinvitation.php?pid=" . $data['projectid'] . "');\">";
            echo "<input type='button' value='Reject' onclick=\"loadPage('/ajax/project/rejectinvitation.php?pid=" . $data['projectid'] . "');\">";
        } else {
            echo "<a href='javascript:;' onclick=\"loadPage('/ajax/project/removebid.php?pid=" . $data['projectid'] . "');\">Remove My Bid</a>";
        }
        echo '</td></tr>';
    }
    ?>
        </table>
        </div>
	<?php 
} else {
开发者ID:sknlim,项目名称:classified-2,代码行数:31,代码来源:account_provider.php


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