fhiiqm/vertrag_ins.php
changeset 13 741b35e9ebbe
parent 8 908abe8cec4d
child 14 32203b8f40ee
equal deleted inserted replaced
12:2d8be944f381 13:741b35e9ebbe
     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>Eingabe Vertragsdaten</title>
       
     9 </head>
       
    10 
       
    11 <body>
       
    12     <div class="float-r"><img src="img/document_mark_as_final.png" border="0" alt="Vertragsdaten eingeben" title="Vertragsdaten eingeben"/></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  * INSERT Vertragsdaten   
     7  * INSERT 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_ins.php");
       
    17         exit;
       
    18     }
       
    19     
       
    20     if (is_null($_SESSION["recht"]) || (!is_null($_SESSION["recht"]) && !in_array("vr",$_SESSION["recht"])))
       
    21     {
       
    22         header("Location: start.php");
       
    23         exit;
       
    24     }    
       
    25     
       
    26 ?>
       
    27     
       
    28 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
       
    29 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
       
    30 
       
    31 <head>
       
    32 	<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
       
    33    	<link href="css/db.css" rel="STYLESHEET" type="TEXT/CSS" /> 
       
    34 
       
    35 	<title>Eingabe Vertragsdaten</title>
       
    36 </head>
       
    37 
       
    38 <body>
       
    39     
       
    40 <?php
       
    41     echo "&nbsp;";  
       
    42     echo "<div class=\"float-br smaller\" valign='top'>";
       
    43     echo "&nbsp;&nbsp;&nbsp;user: " . $_SESSION["userid"];
       
    44     echo "&nbsp;&nbsp;&nbsp;<a class='sc' href='/fhiiqm/logout.php' title='Session beenden'>logout</a></div>\n";
       
    45     echo "<div class=\"float-r\"><img src=\"img/document_mark_as_final.png\" border=\"0\" alt=\"Vertragsdaten eingeben\" title=\"Vertragsdaten eingeben\"/></div>\n";
       
    46 
    25 	include_once($_SERVER['DOCUMENT_ROOT'] ."/fhiiqm/inc/dbconnect.inc.php");
    47 	include_once($_SERVER['DOCUMENT_ROOT'] ."/fhiiqm/inc/dbconnect.inc.php");
    26     include_once($_SERVER['DOCUMENT_ROOT'] ."/fhiiqm/inc/func_lib.inc.php");
    48     include_once($_SERVER['DOCUMENT_ROOT'] ."/fhiiqm/inc/func_lib.inc.php");
    27 	//$dbc = new dbconnection();
    49 	//$dbc = new dbconnection();
    28     
    50     
    29 	$ok		= $_POST["ok"];
    51 	$ok		= $_POST["ok"];
    55 			        <td><input type=\"checkbox\" name=\"ok\" value=\"1\"";
    77 			        <td><input type=\"checkbox\" name=\"ok\" value=\"1\"";
    56 			        if ($ok)  echo "checked"; 
    78 			        if ($ok)  echo "checked"; 
    57 			echo "></td>\n</tr>\n"; 
    79 			echo "></td>\n</tr>\n"; 
    58 		}
    80 		}
    59 		
    81 		
    60 		echo "<tr>\n";
    82         if (!is_null($_SESSION["recht"]) && in_array("ve",$_SESSION["recht"]))
    61 		echo "
    83         {
    62 		  <td>&nbsp;</td>
    84     		echo "<tr>\n";
    63 		  <td><input class=\"button\" type=\"submit\" value=\"eingeben\" name=\"ins\" title=\"insert\" /></td>\n";
    85     		echo "
    64 		echo "</tr>\n";
    86     		  <td>&nbsp;</td>
       
    87     		  <td><input class=\"button\" type=\"submit\" value=\"eingeben\" name=\"ins\" title=\"insert\" /></td>\n";
       
    88     		echo "</tr>\n";
       
    89         }    
    65         echo "</table>\n";
    90         echo "</table>\n";
    66         echo "</div>\n";
    91         echo "</div>\n";
    67         echo "</form>\n";	
    92         echo "</form>\n";	
    68 
    93 
    69     }
    94     }