</table> </div> <?php } else { echo '<h3 class="subheading" style="clear:both;">No Open Jobs found...</h3>'; } ?> <a href="viewalljobs.php">View All</a> <div style="height:20px; clear:both;"></div> <strong>List of Open Services You have Posted</strong> <?php $objservice = new service(); $servicelist = $objservice->get_open_services(); $objcommon = new common(); if (is_array($servicelist)) { ?> <div id="account_open_projects" style="clear:both; width:100%;"> <table width="100%"> <tr class="heading"><td>Service Title</td><td>Posted On</td><td>Status</td><td>Edit</td><td>Option</td></tr> <?php foreach ($servicelist as $dataservice) { if ($dataservice['status'] == "active") { $status = '<font style="color:green;">Active</font>'; } else { $status = '<font style="color:red;">Blocked</font>'; } echo '<tr>';