1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|
2 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
|
3 |
|
4 <head> |
|
5 <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> |
|
6 <link href="css/db.css" rel="STYLESHEET" type="TEXT/CSS" /> |
|
7 |
|
8 <title>Aktualisieren Vertragsdaten</title> |
|
9 </head> |
|
10 |
|
11 <body> |
|
12 <div class="float-r"><img src="img/document_mark_as_final.png" border="0" alt="Vertragsdaten bearbeiten" title="Vertragsdaten bearbeiten"/></div> |
|
13 |
|
14 <?php |
1 <?php |
15 |
2 |
16 /** |
3 /** |
17 * @author Bettina Schwarzer, Fritz-Haber-Institut |
4 * @author Bettina Schwarzer, Fritz-Haber-Institut |
18 * @copyright 05/2011 |
5 * @copyright 05/2011 |
20 * UPDATE/DELETE Vertragsdaten |
7 * UPDATE/DELETE Vertragsdaten |
21 */ |
8 */ |
22 |
9 |
23 error_reporting(E_ALL ^ E_NOTICE); |
10 error_reporting(E_ALL ^ E_NOTICE); |
24 |
11 |
|
12 session_start(); |
|
13 if (! isset($_SESSION["userid"])) |
|
14 { |
|
15 include_once ("inc/func_lib.inc.php"); |
|
16 login("vertrag_upd.php"); |
|
17 exit; |
|
18 } |
|
19 |
|
20 if (is_null($_SESSION["recht"]) || (!is_null($_SESSION["recht"]) && !in_array("vr",$_SESSION["recht"]) && !in_array("ve",$_SESSION["recht"]))) |
|
21 { |
|
22 header("Location: start.php"); |
|
23 exit; |
|
24 } |
|
25 |
|
26 ?> |
|
27 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|
28 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
|
29 |
|
30 <head> |
|
31 <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> |
|
32 <link href="css/db.css" rel="STYLESHEET" type="TEXT/CSS" /> |
|
33 |
|
34 <title>Aktualisieren Vertragsdaten</title> |
|
35 </head> |
|
36 |
|
37 <body> |
|
38 |
|
39 <?php |
|
40 echo " "; |
|
41 echo "<div class=\"float-br smaller\" valign='top'>"; |
|
42 echo " user: " . $_SESSION["userid"]; |
|
43 echo " <a class='sc' href='/fhiiqm/logout.php' title='Session beenden'>logout</a></div>\n"; |
|
44 echo "<div class=\"float-r\"><img src=\"img/document_mark_as_final.png\" border=\"0\" alt=\"Vertragsdaten bearbeiten\" title=\"Vertragsdaten bearbeiten\"/></div>\n"; |
|
45 |
25 include_once($_SERVER['DOCUMENT_ROOT'] ."/fhiiqm/inc/dbconnect.inc.php"); |
46 include_once($_SERVER['DOCUMENT_ROOT'] ."/fhiiqm/inc/dbconnect.inc.php"); |
26 include_once($_SERVER['DOCUMENT_ROOT'] ."/fhiiqm/inc/func_lib.inc.php"); |
47 include_once($_SERVER['DOCUMENT_ROOT'] ."/fhiiqm/inc/func_lib.inc.php"); |
27 $dbc = new dbconnection(); |
48 $dbc = new dbconnection(); |
28 $cid = $_GET["uid"]; |
49 $cid = $_GET["uid"]; |
29 if (!$cid) $cid=3; |
50 if (!$cid) $cid=3; |
137 <td><input type=\"checkbox\" name=\"ok\" value=\"1\""; |
158 <td><input type=\"checkbox\" name=\"ok\" value=\"1\""; |
138 if ($ok) echo "checked"; |
159 if ($ok) echo "checked"; |
139 echo "></td>\n</tr>\n"; |
160 echo "></td>\n</tr>\n"; |
140 } |
161 } |
141 |
162 |
142 echo "<tr>\n"; |
163 if (!is_null($_SESSION["recht"]) && in_array("ve",$_SESSION["recht"])) |
143 echo " |
164 { |
144 <td> </td> |
165 echo "<tr>\n"; |
145 <td><input class=\"button\" type=\"submit\" value=\"ändern\" name=\"upd\" title=\"update\" /> |
166 echo " |
146 <input class=\"button\" type=\"submit\" value=\"löschen\" name=\"del\" title=\"delete\" /></td>\n"; |
167 <td> </td> |
147 echo "</tr>\n"; |
168 <td><input class=\"button\" type=\"submit\" value=\"ändern\" name=\"upd\" title=\"update\" /> |
|
169 <input class=\"button\" type=\"submit\" value=\"löschen\" name=\"del\" title=\"delete\" /></td>\n"; |
|
170 echo "</tr>\n"; |
|
171 } |
148 echo "</table>\n"; |
172 echo "</table>\n"; |
149 echo "</div>\n"; |
173 echo "</div>\n"; |
150 echo "</form>\n"; |
174 if (!is_null($_SESSION["recht"]) && !in_array("ve",$_SESSION["recht"])) |
151 |
175 echo "<p> <a href=\"vertrag_flist1.php\" target=\"_self\" title=\"Vertragsliste\">Zurück zur Vertragsliste</a></p>\n"; |
|
176 echo "</form>\n"; |
|
177 |
152 } |
178 } |
153 elseif ($ok && $upd) |
179 elseif ($ok && $upd) |
154 { |
180 { |
155 echo "<div align='center'>\n"; |
181 echo "<div align='center'>\n"; |
156 //daten speichern |
182 //daten speichern |