示例#1
0
</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>';
示例#2
0
<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>';
示例#3
0
<?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'] . "'; });";
}
示例#4
0
<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 {