} elseif (isset($_GET['form_up']) && isNum($_GET['form_up'])) { // Not included yet $status = "ToDo"; } elseif (isset($_GET['form_down']) && isNum($_GET['form_down'])) { // Not included yet $status = "ToDo"; } } // No script Meldung echo "<noscript><center><b>Ihr Browser unterstützt kein Javascript oder Sie haben dieses abgeschaltet<br />\n\t\tDie volle Funktionalität dieses Adminbereichs ist aber nur mit Javascript möglich!</b></center></noscript>"; // Navigation includieran require_once INFUSIONS . "pr_bewerbung/admin/navi.inc.php"; // Makes Actions // Save Setup if (isset($_POST['save_op']) && iSUPERADMIN) { $result = dbquery("UPDATE " . DB_PREFIX . "formulars SET pr_activ='" . $_POST['aktiv'] . "', pr_pnactiv='" . $_POST['pnactiv'] . "', pr_pnto='" . $_POST['pnto'] . "', pr_forumtype='" . $_POST['forumtype'] . "', pr_forumid='" . $_POST['forumid'] . "', pr_formname='" . $_POST['fname'] . "', pr_headtext='" . pr_chars(addslashes($_POST['head'])) . "' WHERE pr_id='1'"); if ($result) { $status = "<center><font color='green'>Setup wurde erfolgreich gespeichert!</font></center><br /> "; } else { $status = "<center><font color='red'>Setup konnte nicht gespeichert werden!</font></center><br /> "; } } // BEW Options if (isset($_GET['board']) && isset($_GET['id']) && iADMIN) { include_once INFUSIONS . "pr_bewerbung/admin/forum_post.inc.php"; } if (isset($_GET['del_ssa']) && iSUPERADMIN) { $result = dbquery("DELETE FROM " . PR_DB_BEWERBUNG . " WHERE pr_id='" . $_GET['del_ssa'] . "'"); if ($result) { $status = "<center><font color='green'>Löschen erfolgreich</font></center>"; } else {
function make_table($id, $type = "1") { global $data, $locale; echo "<!-- Form - {$id} -->\n\n\t\t\t\t<center>"; if (isset($data['pr_bname']) && isset($data['pr_als'])) { echo "<b><u>" . $data['pr_bname'] . $locale['pr_b060'] . $data['pr_als'] . $locale['pr_b060a'] . "</u></b>"; } echo "<table border='1' cellspacing='1' cellpadding='4' align='center'>"; $times = $data['pr_date']; $datum = date('d.m.Y - H:i', $times); echo "\n\t\t\t\t<tr>\n\t\t\t\t\t<td width='100'>" . $locale['pr_b053'] . " </td>\n\t\t\t\t\t<td width='300'> " . nl2br($data['pr_comment']) . "</td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<td width='100'>" . $locale['pr_b050'] . " </td>\n\t\t\t\t\t<td width='300'> " . $datum . "</td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<td width='100'>" . $locale['pr_b051'] . " </td>\n\t\t\t\t\t<td width='300'> " . $data['pr_ip'] . "</td>\n\t\t\t\t</tr>"; if ($type == "4") { echo "<tr>\n\t\t\t\t\t\t<td width='100'>" . $locale['pr_b052'] . " </td>\n\t\t\t\t\t\t<td width='300'> " . $data['pr_by'] . "</td>\n\t\t\t\t\t</tr>"; } $result2 = dbquery("SELECT * FROM " . DB_PREFIX . "form_fields WHERE pr_toform = '1'"); while ($data2 = dbarray($result2)) { $value_norm = $data['pr_' . $data2['pr_name']]; $value = pr_chars(htmlspecialchars($value_norm, ENT_QUOTES)); echo "<tr>\n\t\t\t\t\t\t\t<td width='100'>" . $data2['pr_desc'] . " </td>\n\t\t\t\t\t\t\t<td width='300'> " . preg_replace("/'/", "", $value) . "</td>\n\t\t\t\t\t\t</tr>"; } echo "<tr>\n\t\t\t\t\t<td width='100'>" . $locale['pr_b059'] . " </td>\n\t\t\t\t\t<td width='300'>" . table_actions($data['pr_id'], $type) . "</td>\n\t\t\t\t</tr></table><br /></center><hr />"; }