--- a/fhiiqm/vertrag_flist2.php Fri Oct 07 11:37:29 2011 +0200
+++ b/fhiiqm/vertrag_flist2.php Tue Oct 11 12:17:55 2011 +0200
@@ -61,35 +61,21 @@
$fnum = $_GET["f"]; // Spaltennummer, nach der aktuell gefiltert wird
$filter = $_GET["b"];
if (!isset($fnum) && !$fnum) $fnum = 0;
-/*
- function tab_column($colnum=2,$bez,$sort,$dir)
+
+ // Recht Produktgruppe beruecksichtigen
+ if (is_array($_SESSION["prodg"]))
{
- if ($colnum == $sort)
- if ($dir == 'DESC')
- {
- $auf = "auf";
- $ab = "ab_activ";
- }
- else
- {
- $auf = "auf_activ";
- $ab = "ab";
- }
- else
- {
- $auf = "auf";
- $ab = "ab";
- }
- 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>
- <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";
-
+ foreach ($_SESSION["prodg"] as $val)
+ $listg .= "," .$val;
+ $listg = substr($listg,1);
}
-*/
+ else $listg = "";
+
include_once($_SERVER['DOCUMENT_ROOT'] ."/fhiiqm/inc/dbconnect.inc.php");
include_once ($_SERVER['DOCUMENT_ROOT'] ."/fhiiqm/inc/func_lib.inc.php");
$dbc = new dbconnection();
- $sql = "CALL fhiiqm.vertrag_flist2(" . $sort . ",'" . $dir . "', " . $fnum . ", '" . $filter . "',$start,$zeil, @anz, @ganz)";
+ $sql = "CALL fhiiqm.vertrag_flist2(" . $sort . ",'" . $dir . "', " . $fnum . ", '" . $filter . "', '" . $listg . "',$start,$zeil, @anz, @ganz)";
// Parameter: Nr. Sortfelf, Sortierrichtung, Nr. Filterfeld, Filterbegriff, Start bei DS $start+1, Anzahl DS/Seite, Anzahl gefundener Vertraege, Anzahl DS gesamt
// liefert Felder: contract_ID,cname,clong,bearb,doc,typ,prod,cbegin,cend,kmon,partfirmar,kyear,kosten,bem
$result = $dbc -> queryObjectArray($sql);