<div id="contentwrap"> <div id="content"> <div style="text-align:left;width:68%;display:inline-block;"> <font face="Agency FB" color="black" size="6px" ><Strong>Course Management Panel</Strong></font> <br/><br/> </div> <div style="text-align:right;width:28%;display:inline-block;vertical-align:top;"> <button style="width:15em;background:#43D14C;" onclick="openModel();"> <div><img src="img/icons/glyphicons_free/glyphicons/png/glyphicons-191-circle-plus.png" width="13" height="13" /><font face="Calibri" color="black" size="4"> Add new course </font></div></button> </div> <?php echo "<div class='datagrid'><table>\n \t\t<thead><tr><th>Course Number</th><th>Course Name</th><th>Actions</th></tr></thead>"; $allDetails = course::getDetails(); foreach ($allDetails as $key => $value) { $id = $value->getCourseId(); $number = $value->getCourseNo(); $name = $value->getCourseName(); echo "\n\t\t <tbody><tr><td>{$number}</td><td>{$name}</td><td><div style='text-align:center;'><button style='width:10em;''> <div><img src='img/icons/glyphicons_free/glyphicons/png/glyphicons-151-edit.png' width='13' height='13' /><font face='Calibri' color='black' size='4'> Edit </font></div></button> <button id='{$id}' onclick='deleteCourse(this.id)' style='width:10em;'> <div><img src='img/icons/glyphicons_free/glyphicons/png/glyphicons-17-bin.png' width='13' height='15' /><font face='Calibri' color='black' size='4'> Delete </font></div></button><div></td></tr>\n\t\t <tr class=\"alt\">\n\t\t </tr>\n\t\t </tbody>\n\t\t "; } echo "</table></div>"; ?> </div> </div> <?php include "includes/footer.php"; ?>