59 if (!isset($dir) && !$dir) $dir = ""; |
59 if (!isset($dir) && !$dir) $dir = ""; |
60 |
60 |
61 $fnum = $_GET["f"]; // Spaltennummer, nach der aktuell gefiltert wird |
61 $fnum = $_GET["f"]; // Spaltennummer, nach der aktuell gefiltert wird |
62 $filter = $_GET["b"]; |
62 $filter = $_GET["b"]; |
63 if (!isset($fnum) && !$fnum) $fnum = 0; |
63 if (!isset($fnum) && !$fnum) $fnum = 0; |
64 /* |
64 |
65 function tab_column($colnum=2,$bez,$sort,$dir) |
65 // Recht Produktgruppe beruecksichtigen |
|
66 if (is_array($_SESSION["prodg"])) |
66 { |
67 { |
67 if ($colnum == $sort) |
68 foreach ($_SESSION["prodg"] as $val) |
68 if ($dir == 'DESC') |
69 $listg .= "," .$val; |
69 { |
70 $listg = substr($listg,1); |
70 $auf = "auf"; |
|
71 $ab = "ab_activ"; |
|
72 } |
|
73 else |
|
74 { |
|
75 $auf = "auf_activ"; |
|
76 $ab = "ab"; |
|
77 } |
|
78 else |
|
79 { |
|
80 $auf = "auf"; |
|
81 $ab = "ab"; |
|
82 } |
|
83 echo "<th>$bez <a href='".$_SERVER['PHP_SELF']."?s=$colnum'><img src='img/$auf.gif' border='0' width='9' hight='9' alt='sort aufsteigend' title='sort aufsteigend'></a> |
|
84 <a href='".$_SERVER['PHP_SELF']."?s=$colnum&d=DESC'><img src='img/$ab.gif' border='0' width='9' hight='9' alt='sort absteigend' title='sort absteigend'></a></th>\n"; |
|
85 |
|
86 } |
71 } |
87 */ |
72 else $listg = ""; |
|
73 |
88 include_once($_SERVER['DOCUMENT_ROOT'] ."/fhiiqm/inc/dbconnect.inc.php"); |
74 include_once($_SERVER['DOCUMENT_ROOT'] ."/fhiiqm/inc/dbconnect.inc.php"); |
89 include_once ($_SERVER['DOCUMENT_ROOT'] ."/fhiiqm/inc/func_lib.inc.php"); |
75 include_once ($_SERVER['DOCUMENT_ROOT'] ."/fhiiqm/inc/func_lib.inc.php"); |
90 $dbc = new dbconnection(); |
76 $dbc = new dbconnection(); |
91 |
77 |
92 $sql = "CALL fhiiqm.vertrag_flist2(" . $sort . ",'" . $dir . "', " . $fnum . ", '" . $filter . "',$start,$zeil, @anz, @ganz)"; |
78 $sql = "CALL fhiiqm.vertrag_flist2(" . $sort . ",'" . $dir . "', " . $fnum . ", '" . $filter . "', '" . $listg . "',$start,$zeil, @anz, @ganz)"; |
93 // Parameter: Nr. Sortfelf, Sortierrichtung, Nr. Filterfeld, Filterbegriff, Start bei DS $start+1, Anzahl DS/Seite, Anzahl gefundener Vertraege, Anzahl DS gesamt |
79 // Parameter: Nr. Sortfelf, Sortierrichtung, Nr. Filterfeld, Filterbegriff, Start bei DS $start+1, Anzahl DS/Seite, Anzahl gefundener Vertraege, Anzahl DS gesamt |
94 // liefert Felder: contract_ID,cname,clong,bearb,doc,typ,prod,cbegin,cend,kmon,partfirmar,kyear,kosten,bem |
80 // liefert Felder: contract_ID,cname,clong,bearb,doc,typ,prod,cbegin,cend,kmon,partfirmar,kyear,kosten,bem |
95 $result = $dbc -> queryObjectArray($sql); |
81 $result = $dbc -> queryObjectArray($sql); |
96 if ($result) |
82 if ($result) |
97 { |
83 { |