<a class="login" href="frmtsk.php">Create New Task</a> <a class="login" href="../login.php?sts=s">Logout</a> <div class="clearfix"></div> </div> <div class="clearfix"></div> </div> </div> </div> <!--header-end--> <div class="mid-content"> <div class="center cat-min"> <form name="frmmytsk" method="Post" action="frmmytsk.php"> <h3>My Tasks</h3> <?php $obj = new clstsk(); $arr = $obj->disp_tsk($_SESSION["lcod"]); if (count($arr) > 0) { echo "<table class=table-bordered><tr><th>Task Title</th><th>Category</th><th>Start Date</th><th>Status</th></tr>"; } for ($i = 0; $i < count($arr); $i++) { $dt = date("Y-m-d", strtotime($arr[$i][2])); echo "<tr><td>" . $arr[$i][1] . "</td><td>" . $arr[$i][4]; echo "</td><td>" . $dt . "</td><td>"; if ($arr[$i][5] == 'A') { echo 'Active'; } else { echo 'closed'; } echo "</td>"; if ($arr[$i][5] == 'A') { echo "<td><a href=frmapp.php?tcod=" . $arr[$i][0] . " >View Applications</td>";