bug 1010: added filter function to includes/account.php
authorINOPIAE <inopiae@cacert.org>
Sat, 13 Jul 2013 15:23:11 +0000 (17:23 +0200)
committerINOPIAE <inopiae@cacert.org>
Sat, 13 Jul 2013 15:23:11 +0000 (17:23 +0200)
includes/account.php
pages/account/18.php

index 56dd026..066f18b 100644 (file)
                exit;
        }
 
+       if($oldid == 18 && array_key_exists('filter',$_REQUEST) &&  $_REQUEST['filter']!= "")
+       {
+               $id=18;
+               $_SESSION['_config']['orgfilterid']=$_REQUEST['orgfilterid'];
+               $_SESSION['_config']['sorting']=$_REQUEST['sorting'];
+               $_SESSION['_config']['status']=$_REQUEST['status'];
+       }
+
+       if($oldid == 18 && array_key_exists('reset',$_REQUEST) &&  $_REQUEST['reset']!= "")
+       {
+               $id=18;
+               $_SESSION['_config']['orgfilterid']=0;
+               $_SESSION['_config']['sorting']=0;
+               $_SESSION['_config']['status']=0;
+       }
 
        if($process != "" && $oldid == 20)
        {
index d294f1b..5d45f37 100644 (file)
 */
 
 $orgfilterid=0;
-if(array_key_exists('orgfilterid',$_REQUEST)) $orgfilterid=intval($_REQUEST['orgfilterid']);
+if(array_key_exists('orgfilterid',$_SESSION['_config'])) $orgfilterid=intval($_SESSION['_config']['orgfilterid']);
 $sorting=0;
-if(array_key_exists('sorting',$_REQUEST)) $sorting=intval($_REQUEST['sorting']);
+if(array_key_exists('sorting',$_SESSION['_config'])) $sorting=intval($_SESSION['_config']['sorting']);
 $status=0;
-if(array_key_exists('status',$_REQUEST)) $status=intval($_REQUEST['status']);
+if(array_key_exists('status',$_SESSION['_config'])) $status=intval($_SESSION['_config']['status']);
 ?>
 <form method="post" action="account.php">
 <table align="center" valign="middle" border="0" cellspacing="0" cellpadding="0" class="wrapper">