summaryrefslogtreecommitdiff
path: root/www-ssl/nonpublic/faq.php
diff options
context:
space:
mode:
Diffstat (limited to 'www-ssl/nonpublic/faq.php')
-rw-r--r--[-rwxr-xr-x]www-ssl/nonpublic/faq.php59
1 files changed, 28 insertions, 31 deletions
diff --git a/www-ssl/nonpublic/faq.php b/www-ssl/nonpublic/faq.php
index 79044c2c..7f768282 100755..100644
--- a/www-ssl/nonpublic/faq.php
+++ b/www-ssl/nonpublic/faq.php
@@ -1,35 +1,32 @@
<?php
-$title = "Himmel";
-$header = "FAQ / Fragen an die Erzengel";
-include ("../../../camp2011/includes/header.php");
+ $title = "Himmel";
+ $header = "FAQ / Fragen an die Erzengel";
+ include "../../../camp2011/includes/header.php";
-
-// Erstaufruf, oder Frage bereits abgeschickt?
-if (!IsSet($_POST["eUID"]))
-{
- Print_Text(35);
+ // Erstaufruf, oder Frage bereits abgeschickt?
+ if(!isset($_POST["eUID"])) {
+ Print_Text(35);
?>
-<br><br>
+<br /><br />
<form action="./faq.php" method="POST">
- <input type="hidden" name="eUID" value="<?PHP echo $_SESSION['UID'] ?>">
- <textarea name="frage" cols="40" rows="10"><?PHP Print_Text(36); ?></textarea><br><br>
- <input type="submit" value="<?PHP Print_Text("save"); ?>">
+ <input type="hidden" name="eUID" value="<?php echo $_SESSION['UID']; ?>">
+ <textarea name="frage" cols="40" rows="10"><?php Print_Text(36); ?></textarea><br /><br />
+ <input type="submit" value="<?php Print_Text("save"); ?>">
</form>
-<?PHP
-
+<?php
} else {
// Auswertung d. Formular-Daten:
-echo "<b>".Get_Text(37)."</b><br><br>\n".nl2br($_POST["frage"])."<br><br>\n".Get_Text(38)."<br>\n";
+echo "<b>".Get_Text(37)."</b><br /><br />\n".nl2br($_POST["frage"])."<br /><br />\n".Get_Text(38)."<br />\n";
$SQL = "INSERT INTO `Questions` VALUES ('', '".$_SESSION['UID']."', '". $_POST["frage"]. "', '', '')";
$Erg = mysql_query($SQL, $con);
}
// Bisherige Anfragen:
-echo "<br>\n<b>".Get_Text(39)."</b><br>\n";
+echo "<br />\n<b>".Get_Text(39)."</b><br />\n";
echo "<hr width=\"99%\">\n";
-echo "<br><b>".Get_Text(40)."</b><br>\n";
+echo "<br /><b>".Get_Text(40)."</b><br />\n";
$SQL = "SELECT * FROM `Questions` WHERE `UID` = ". $_SESSION['UID']. " AND `AID`='0' ORDER BY 'QID' DESC";
$Erg = mysql_query($SQL, $con);
@@ -38,19 +35,19 @@ $Erg = mysql_query($SQL, $con);
$Zeilen = mysql_num_rows($Erg);
if ($Zeilen==0){
- Print_Text(41);
+ Print_Text(41);
} else {
- for ($n = 0 ; $n < $Zeilen ; $n++) {
- echo "<p class='question'>".nl2br(mysql_result($Erg, $n, "Question"))."<br>\n";
+ for ($n = 0 ; $n < $Zeilen ; $n++) {
+ echo "<p class='question'>".nl2br(mysql_result($Erg, $n, "Question"))."<br />\n";
// Es gibt ja noch keine Antwort:
-// echo "<p class='answer'>".nl2br(mysql_result($Erg, $n, "Answer"))."</p>\n";
- echo "\n<br>---<br>";
- }
+// echo "<p class='answer'>".nl2br(mysql_result($Erg, $n, "Answer"))."</p>\n";
+ echo "\n<br />---<br />";
+ }
}
echo "<hr width=\"99%\">\n";
-echo "<br><b>".Get_Text(42)."</b><br>\n";
+echo "<br /><b>".Get_Text(42)."</b><br />\n";
$SQL = "SELECT * FROM `Questions` WHERE `UID`='".$_SESSION['UID']."' and `AID`<>'0' ORDER BY 'QID' DESC";
$Erg = mysql_query($SQL, $con);
@@ -58,14 +55,14 @@ $Erg = mysql_query($SQL, $con);
$Zeilen = mysql_num_rows($Erg);
if ($Zeilen==0){
- Print_Text(41);
+ Print_Text(41);
} else {
- for ($n = 0 ; $n < $Zeilen ; $n++) {
- echo "<p class='question'>".nl2br(mysql_result($Erg, $n, "Question"))."<br>\n";
- echo "<p class='answer'>".nl2br(mysql_result($Erg, $n, "Answer")).
- "@". UID2Nick(mysql_result($Erg, $n, "AID"))."\n";
- echo "\n<br>---<br>";
- }
+ for ($n = 0 ; $n < $Zeilen ; $n++) {
+ echo "<p class='question'>".nl2br(mysql_result($Erg, $n, "Question"))."<br />\n";
+ echo "<p class='answer'>".nl2br(mysql_result($Erg, $n, "Answer")).
+ "@". UID2Nick(mysql_result($Erg, $n, "AID"))."\n";
+ echo "\n<br />---<br />";
+ }
}
include ("../../../camp2011/includes/footer.php");