示例#1
0
<?php

session_start();
require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/project.class.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/user.class.php";
$objuser = new user();
$objuser->checkLoginAjax();
$objproject = new project();
$data = $objproject->getdetails($_GET['pid']);
?>

<form method="post" action="ajax/project/placebid.php" onsubmit="if(validateForm(this)) submitFormOnFloat(this); return false;">
<input type="hidden" name="projectid" value="<?php 
echo $_GET['pid'];
?>
" >
<table width="100%">
<tr>
<td width="30%"></td>
<td width="70%"></td>
</tr>
<tr>
	<td colspan="2"><big><b>Bid on Project: <?php 
echo $data['project_title'];
?>
</b></big></td>
</tr>    

<tr>
<td colspan="2"><strong>Your bid details for the total project:</strong><br>
<small>(Project budget is $ <?php 
示例#2
0
<table border="0" cellpadding="2" cellspacing="1" width="100%">

<tr>
<td class="dt">Rating</td>
<td class="dt" width="150">Programmer</td>
<td class="dt">Project Name</td>
<td class="dt">Review Date</td>
<td class="dt">Project Status</td>
</tr>

<?php 
if (is_array($reviews)) {
    foreach ($reviews as $review) {
        $objproject = new project();
        $pdetails = $objproject->getdetails($review['projectid']);
        $pstatus = $objproject->getstatus($review['projectid']);
        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>';
        }
        ?>
<tr>
示例#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";
$objuser = new user();
$objuser->checkLoginAjax();
$objproject = new project();
$response = $objproject->getdetails($_POST['projectid']);
$description = $response['description'];
$description .= "<br> <b>More Description added on " . date("F j, Y, g:i a") . "</b><br>";
$description .= $_POST['description'];
$objproject->adddescription($description, $_POST['projectid']);
echo "script: messageBox('More Description Added to Project.',function() { window.location='account.php'; } );";
示例#4
0
<?php

session_start();
$_SESSION['filename'] = "";
include "header.php";
include "subheader.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/display.class.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/project.class.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/maincategory.class.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/flashupload.class.php";
$objproject = new project();
$projects = $objproject->getdetails($_GET['id']);
?>
<script language="javascript">
function textCounter(field,cntfield,maxlimit) {
if (field.value.length > maxlimit) // if too long...trim it!
field.value = field.value.substring(0, maxlimit);
// otherwise, update 'characters left' counter
else
cntfield.value = maxlimit - field.value.length;
}
</script>
<h3 class="heading">&nbsp;<?php 
echo $projects['project_title'];
?>
</h3>
<div><strong>Project ID: </strong><?php 
echo $_GET['id'];
?>
</div>
<br />
示例#5
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();
$objproject = new project();
$data = $objproject->getdetails($_POST['projectid']);
$pt = $data['project_title'];
if ($objproject->isReviewed($_POST['userid'], $_POST['projectid'])) {
    echo "script: messageBox('Sorry! You are already reviewed.');";
    exit;
} else {
    $mes = "Your Review to " . $_POST['username'] . " for project : \"" . $pt . "\" submitted.";
    $objproject->markReview($_POST['userid'], $_POST['projectid'], $_POST['points'], $_POST['details']);
    echo "script: messageBox('" . $mes . "',function() { window.location='account.php'; });";
}