function DropTables() { $moderator = new Moderator(); $moderator->SetDatabase($this); $moderator->Drop(); $message = new Message(); $message->SetDatabase($this); $message->Drop(); $topic = new Topic(); $topic->SetDatabase($this); $topic->Drop(); $user_info = new UserInfo(); $user_info->SetDatabase($this); $user_info->Drop(); $session = new Session(); $session->SetDatabase($this); $session->Drop(); $new = new News(); $new->SetDatabase($this); $new->Drop(); $shout = new Shout(); $shout->SetDatabase($this); $shout->Drop(); $paragraph = new Paragraph(); $paragraph->SetDatabase($this); $paragraph->Drop(); $privilege = new Privilege(); $privilege->SetDatabase($this); $privilege->Drop(); $role = new Role(); $role->SetDatabase($this); $role->Drop(); $menu_item = new MenuItem(); $menu_item->SetDatabase($this); $menu_item->Drop(); $module = new Module(); $module->SetDatabase($this); $module->Drop(); $page = new Page(); $page->SetDatabase($this); $page->Drop(); $article = new Article(); $article->SetDatabase($this); $article->Drop(); $subject = new Subject(); $subject->SetDatabase($this); $subject->Drop(); $menu = new Menu(); $menu->SetDatabase($this); $menu->Drop(); $profile = new Profile(); $profile->SetDatabase($this); $profile->Drop(); $user = new User(); $user->SetDatabase($this); $user->Drop(); }
$areas->SetLevel(1); $result0 = $areas->SelectByLevel(); while ($data0 = $database->FetchArray($result0)) { ?> <tr> <td bgcolor="#DDDDDD" width="100%" valign="top" align="left" colspan="4"> <?php echo $data0["topc_title"]; ?> </td> </tr> <?php $forums = new Topic(); $forums->SetDatabase($database); $forums->SetTopic($data0["topc_id"]); $result1 = $forums->SelectByTopic(); while ($data1 = $database->FetchArray($result1)) { ?> <tr> <td bgcolor="#FFFFFF" width="60%" valign="top" align="left"> <a href="/pages/pgForumTopics.php?p_topc_id=<?php echo $data1["topc_id"]; ?> "><?php echo $data1["topc_title"]; ?> </a> - <?php echo $data1["topc_text"];
} ?> </font> </td> </tr> <tr> <td bgcolor="#FFFFFF" width="30%" valign="center" align="right"> Tópico: </td> <td bgcolor="#FFFFFF" width="70%" valign="center" align="left"> <select name="p_mess_topc_id" onchange="QueryOrder();"> <option value="">Selecione</option> <?php $topic = new Topic(); $topic->SetDatabase($database); $result = $topic->Select(); while ($data = $database->FetchArray($result)) { $topc_id = $data["topc_id"]; $topc_text = $data["topc_text"]; if ($mess_topc_id == $topc_id) { echo "<option value=\"" . $topc_id . "\" selected>" . $topc_text . "</option>"; } else { echo "<option value=\"" . $topc_id . "\">" . $topc_text . "</option>"; } } ?> </select> <font class="form_error"><?php if ($message_position == 3) {