Codigo
2. if (isset($_GET["order"])) $order = @$_GET["order"];
3. if (isset($_GET["type"])) $ordtype = @$_GET["type"];
4. if (isset($_POST["filter"])) $filter = @$_POST["filter"];
5. if (isset($_POST["filter_field"])) $filterfield = @$_POST["filter_field"];
6. $wholeonly = false;
7. if (isset($_POST["wholeonly"])) $wholeonly =@$_POST["wholeonly"];
8. if (!isset($order) && isset($_SESSION["order"])) $order = $_SESSION["order"];
9. if (!isset($ordtype) && isset($_SESSION["type"])) $ordtype = $_SESSION["type"];
10. if (!isset($filter) && isset($_SESSION["filter"])) $filter = $_SESSION["filter"];
11. if (!isset($filterfield) && isset($_SESSION["filter_field"])) $filterfield =$_SESSION["filter_field"];
12. ?>
13. <html>
14. <head>
15. <title>cuestionarios -- cuestionario</title>
16. <meta name="generator" http-equiv="content-type" content="text/html">
17. <style type="text/css">
18. body {
19. background-color: #FFFFFF;
20. color: #2F4F4F;
21. font-family: Arial;
22. font-size: 12px;
23. }24. .bd {
25. background-color: #FFFFFF;
26. color: #2F4F4F;
27. font-family: Arial;
28. font-size: 12px;
29. }
30. .tbl {
31. background-color: #FFFFFF;
32. }
33. a:link {
34. background-color: #FFFFFF01;
35. color: #FF0000;
36. font-family: Arial;
37. font-size: 12px;
38. }
39. a:active {
40. color: #0000FF;
41. font-family:Arial;
42. font-size: 12px;
43. }
44. a:visited {
45. background-color: #FFFFFF01;
46. color: #800080;
47. font-family: Arial;
48. font-size: 12px;
49. }
50. .hr {
51. background-color: #336699;
52. color: #FFFFFF;
53. font-family: Arial;
54. font-size: 12px;
55. }
56. a.hr:link {
57. color: #FFFFFF;
58. font-family: Arial;59. font-size: 12px;
60. }
61. a.hr:active {
62. color: #FFFFFF;
63. font-family: Arial;
64. font-size: 12px;
65. }
66. a.hr:visited {
67. color: #FFFFFF;
68. font-family: Arial;
69. font-size: 12px;
70. }
71. .dr {
72. background-color: #FFFFFF;
73. color: #000000;
74. font-family: Arial;
75. font-size: 12px;
76. }
77. .sr {78. background-color: #FFFFCF;
79. color: #000000;
80. font-family: Arial;
81. font-size: 12px;
82. }
83. </style>
84. </head>
85. <body>
86. <table class="bd" width="100%"><tr><td class="hr"><h2>Secundaria Tecnica numero 35</h2></td></tr></table>
87. <table width="100%">
88.<tr>
89. <td width="10%" valign="top">
90. <li><a href="administrador.php?a=reset">administrador</a>
91. <li><a href="alumnos.php?a=reset">alumnos</a>
92. <li><a href="tecnologias.php?a=reset">tecnologias</a>
93. </td>
94. <td width="5%">
95. </td>
96. <td bgcolor="#e0e0e0">
97.</td>
98. <td width="5%">
99. </td>
100. <td width="80%" valign="top">
101. <?php
102. if (!login()) exit;
103. ?>
104. <div style="float: right"><a href="cuestionario.php?a=logout">[ inicio de sesion ]</a></div>
105. <br>
106. <?php
107. $conn = connect();
108. $showrecs = 20;
109.$pagerange = 10;
110. $a = @$_GET["a"];
111. $recid = @$_GET["recid"];
112. $page = @$_GET["page"];
113. if (!isset($page)) $page = 1;
114. $sql = @$_POST["sql"];
115. switch ($sql) {
116. case "insert":
117. sql_insert();
118. break;
119. case "update":
120. sql_update();
121. break;
122. case "delete":
123. sql_delete();
124. break;...
Regístrate para leer el documento completo.