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" media="screen"/> |
|
7 <link href="css/db_print.css" rel="STYLESHEET" type="TEXT/CSS" media="print"/> |
|
8 |
|
9 <title>Infoliste</title> |
|
10 </head> |
|
11 |
|
12 <body onload="document.ffilter.filter.focus();"> |
|
13 <div class="float-r"><img src="img/document_image_ver.png" border="0" alt="Infodaten" title="Infodaten"/></div> |
|
14 |
|
15 <?php |
1 <?php |
16 |
2 |
17 /** |
3 /** |
18 * @author Bettina Schwarzer, Fritz-Haber-Institut |
4 * @author Bettina Schwarzer, Fritz-Haber-Institut |
19 * @copyright 08/2011 |
5 * @copyright 08/2011 |
21 * Liste Infos |
7 * Liste Infos |
22 */ |
8 */ |
23 |
9 |
24 error_reporting(E_ALL ^ E_NOTICE); |
10 error_reporting(E_ALL ^ E_NOTICE); |
25 |
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("ir",$_SESSION["recht"]) && !in_array("ie",$_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" media="screen"/> |
|
33 <link href="css/db_print.css" rel="STYLESHEET" type="TEXT/CSS" media="print"/> |
|
34 |
|
35 <title>Infoliste</title> |
|
36 </head> |
|
37 |
|
38 <body onload="document.ffilter.filter.focus();"> |
|
39 |
|
40 <?php |
|
41 echo " "; |
|
42 echo "<div class=\"float-br smaller\" valign='top'>"; |
|
43 echo " user: " . $_SESSION["userid"]; |
|
44 echo " <a class='sc' href='/fhiiqm/logout.php' title='Session beenden'>logout</a></div>\n"; |
|
45 echo "<div class=\"float-r\"><img src=\"img/document_image_ver.png\" border=\"0\" alt=\"Infodaten\" title=\"Infodaten\"/></div>\n"; |
|
46 |
26 // Felder, nach denen gefiltert werden kann |
47 // Felder, nach denen gefiltert werden kann |
27 $fields = array(2=>"Titel",4=>"Info-Typ",5=>"Produkt",6=>"Adressat"); |
48 $fields = array(2=>"Titel",4=>"Info-Typ",5=>"Produkt",6=>"Adressat"); |
28 |
49 |
29 $zeil = $_GET["z"]; |
50 $zeil = $_GET["z"]; |
30 if (!$zeil) $zeil = 25; // Anzahl der gezeigten Zeilen |
51 if (!$zeil) $zeil = 25; // Anzahl der gezeigten Zeilen |
49 if (!isset($filter) && !$filter) $filter = ""; |
70 if (!isset($filter) && !$filter) $filter = ""; |
50 if (!isset($sort) && !$sort) $sort = 1; |
71 if (!isset($sort) && !$sort) $sort = 1; |
51 if (!isset($dir) && !$dir) $dir = ""; |
72 if (!isset($dir) && !$dir) $dir = ""; |
52 |
73 |
53 include_once($_SERVER['DOCUMENT_ROOT'] ."/fhiiqm/inc/dbconnect.inc.php"); |
74 include_once($_SERVER['DOCUMENT_ROOT'] ."/fhiiqm/inc/dbconnect.inc.php"); |
54 include ($_SERVER['DOCUMENT_ROOT'] ."/fhiiqm/inc/func_lib.inc.php"); |
75 include_once ($_SERVER['DOCUMENT_ROOT'] ."/fhiiqm/inc/func_lib.inc.php"); |
55 |
76 |
56 $dbc = new dbconnection(); |
77 $dbc = new dbconnection(); |
57 |
78 |
58 $sql = "CALL info_flist($sort,'" . $dir . "',$fnum, '" . $filter . "',$start,$zeil,@anz);"; |
79 $sql = "CALL info_flist($sort,'" . $dir . "',$fnum, '" . $filter . "',$start,$zeil,@anz);"; |
59 // Parameter: Nr. Sortfeld, Sortierrichtung, Nr. Filterfeld, Filterbegriff, (StartNr DS) -1, Anzahl Zeilen=DS, Anzahl gefundener Raeume |
80 // Parameter: Nr. Sortfeld, Sortierrichtung, Nr. Filterfeld, Filterbegriff, (StartNr DS) -1, Anzahl Zeilen=DS, Anzahl gefundener Raeume |