?> <h3>Manage Advertisement</h3> <table width="100%" border="1" cellpadding="3" cellspacing="3"> <tr> <th>#ID</th> <th>Title</th> <th>Description</th> <th>Image</th> <th>Impression</th> <th>Display Counter</th> <th>Click Counter</th> <th>Status</th> </tr> <?php if (!empty($Advertisement->data)) { $total_clicks = $Advertisement->DisplayClickHistory(); ?> <?php foreach ($Advertisement->data as $record) { ?> <tr align="center"> <td><?php echo $record['id']; ?> </td> <td><?php echo stripslashes($record['title']); ?> </td> <td><?php echo stripslashes($record['description']);