Beispiel #1
0
</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>';
</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>';