Esempio n. 1
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>
<td class="dt1"><?php 
Esempio n. 2
0
</script>
<h3 class="heading">&nbsp;<?php 
echo $projects['project_title'];
?>
</h3>
<div><strong>Project ID: </strong><?php 
echo $_GET['id'];
?>
</div>
<br />
<table border="0" cellpadding="2" cellspacing="0" width="100%" class="tableDetails">
<tbody>
    <tr class="fir">
        <td class="dt1" valign="top" width="20%"><b>Status:</b></td>
        <td class="dt1" valign="top" width="80%"><?php 
$pstatus = $objproject->getstatus($_GET['id']);
if ($pstatus == "open") {
    echo '<font style="color:green;">Open</font>';
}
if ($pstatus == "frozen") {
    echo '<font style="color:blue;">Frozen</font>';
}
if ($pstatus == "cancelled") {
    echo '<font style="color:red;">Cancelled</font>';
}
if ($pstatus == "closed") {
    echo '<font style="color:red;">Closed</font>';
}
?>
</td>
    </tr>