Beispiel #1
0
         }
         if ($dataArr !== false) {
             ?>
         <tr><td colspan="4"><input style="margin-left: 5px;" type="submit" value="Save FAQ" /></td></tr>
         <?php 
         }
         ?>
         </table>
         </form>
         <?php 
     }
 } elseif ($_GET['do'] == 'delete-faq') {
     echo '<p>You can delete existing frequently asked questions here.</p>';
     if (!empty($_GET['delete'])) {
         if (is_numeric($_GET['delete'])) {
             if ($faq->deleteFAQ($_GET['delete'])) {
                 echo '<p class="notification green">You have successfully deleted a frequently asked question.</p>';
                 $log->addLog($_SESSION['loggedIn']['id'], "Deleted a frequently asked question.");
             }
         }
     }
     ?>
         
         <table width="100%">
         	<tr>
             	<th width="20px">#</th>
                 <th width="150px">Question</th>
                 <th>Answer</th>
                 <th width="150px">Time added</th>
                 <th width="50px">Delete</th>
            	</tr>