fhiiqm/raum_ins.php
changeset 14 32203b8f40ee
parent 1 6288d5685bff
child 23 a382de56a8e4
equal deleted inserted replaced
13:741b35e9ebbe 14:32203b8f40ee
       
     1 <?php
       
     2 
       
     3 /**
       
     4  * @author Bettina Schwarzer, Fritz-Haber-Institut
       
     5  * @copyright 07/2011
       
     6  *
       
     7  * INSERT Raumdaten   
       
     8  */
       
     9 
       
    10     error_reporting(E_ALL ^ E_NOTICE);
       
    11     
       
    12     session_start();
       
    13     if (! isset($_SESSION["userid"]))
       
    14     { 
       
    15         include_once ("inc/func_lib.inc.php");	
       
    16         login($_SERVER["PHP_SELF"]);
       
    17         exit;
       
    18     }
       
    19     
       
    20     if (is_null($_SESSION["recht"]) || (!is_null($_SESSION["recht"]) && !in_array("re",$_SESSION["recht"])))
       
    21     {
       
    22         header("Location: start.php");
       
    23         exit;
       
    24     }    
       
    25     
       
    26 ?>
     1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    27 <!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">
    28 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
     3 
    29 
     4 <head>
    30 <head>
     5 	<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
    31 	<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
     7 
    33 
     8 	<title>Eingabe Raumdaten</title>
    34 	<title>Eingabe Raumdaten</title>
     9 </head>
    35 </head>
    10 
    36 
    11 <body>
    37 <body>
    12     <div class="float-r"><img src="img/house.png" border="0" alt="Raumdaten eingeben" title="Raumdaten eingeben"/></div>
    38     
    13 
       
    14 <?php
    39 <?php
    15 
    40     echo "&nbsp;";  
    16 /**
    41     echo "<div class=\"float-br smaller\" valign='top'>";
    17  * @author Bettina Schwarzer, Fritz-Haber-Institut
    42     echo "&nbsp;&nbsp;&nbsp;user: " . $_SESSION["userid"];
    18  * @copyright 07/2011
    43     echo "&nbsp;&nbsp;&nbsp;<a class='sc' href='/fhiiqm/logout.php' title='Session beenden'>logout</a></div>\n";
    19  *
    44     echo "<div class=\"float-r\"><img src=\"img/house.png\" border=\"0\" alt=\"Raumdaten eingeben\" title=\"Raumdaten eingeben\"/></div>\n";
    20  * INSERT Raumdaten   
       
    21  */
       
    22 
       
    23     error_reporting(E_ALL ^ E_NOTICE);
       
    24     
    45     
    25 	include_once($_SERVER['DOCUMENT_ROOT'] ."/fhiiqm/inc/dbconnect.inc.php");
    46 	include_once($_SERVER['DOCUMENT_ROOT'] ."/fhiiqm/inc/dbconnect.inc.php");
    26 	//$dbc = new dbconnection();
    47 	//$dbc = new dbconnection();
    27     
    48     
    28 	$ok		= $_POST["ok"];
    49 	$ok		= $_POST["ok"];