]> git.llucax.com Git - z.facultad/75.43/tp1.git/blobdiff - src/lib/faq.forms.php
Integre la parte de login con mi listado de preguntas. Hice un pequeño cambio en...
[z.facultad/75.43/tp1.git] / src / lib / faq.forms.php
index 4c1ef82e923b456b531129c0199f7099309f572d..707ca233e9cbb70bfdf81e6ff49348d2bb6574a3 100644 (file)
@@ -8,6 +8,9 @@
 //\r
 // $Id: faq.forms.php \r
 \r
 //\r
 // $Id: faq.forms.php \r
 \r
+require_once('Pregunta.php');\r
+require_once('faq.functions.php');\r
+\r
 function faq_form_ingresar_pregunta()\r
 {\r
 ?>\r
 function faq_form_ingresar_pregunta()\r
 {\r
 ?>\r
@@ -48,4 +51,26 @@ function faq_form_responder_pregunta($PreguntaId)
       </form>\r
 <?php\r
 }\r
       </form>\r
 <?php\r
 }\r
+function faq_form_desactivar_pregunta()\r
+{\r
+?>\r
+                       <form name="faq_desactivar_preguntas" action="<?php echo $_SERVER['PHP_SELF'] ?>" method="post">\r
+            <SELECT NAME="PreguntaElegida">\r
+                                               <?php\r
+                                               $Preguntas = Faq_ObtenerPreguntas();\r
+                                               foreach ($Preguntas as $Pregunta)\r
+                                               {\r
+                                                if ( $Pregunta->activa )\r
+                                                {\r
+                                                ?>\r
+                                                        <OPTION VALUE="<?php echo $Pregunta->id ?>"> <?php echo $Pregunta->texto ?>\r
+                                                <?php \r
+                                                }\r
+                                               }\r
+                                               ?>\r
+                                               </SELECT>\r
+                                               <input type=submit value="Desactivar">\r
+      </form>\r
+<?php\r
+}\r
 ?>\r
 ?>\r