From fe9710d6fafab701280748655a6a0d24c74d8313 Mon Sep 17 00:00:00 2001 From: INOPIAE Date: Sat, 13 Jul 2013 17:13:06 +0200 Subject: bug 1010: Implement new gui for org client cert --- pages/account/18.php | 146 +++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 124 insertions(+), 22 deletions(-) diff --git a/pages/account/18.php b/pages/account/18.php index 2fbb8b4..d294f1b 100644 --- a/pages/account/18.php +++ b/pages/account/18.php @@ -14,22 +14,84 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -*/ ?> - +*/ + +$orgfilterid=0; +if(array_key_exists('orgfilterid',$_REQUEST)) $orgfilterid=intval($_REQUEST['orgfilterid']); +$sorting=0; +if(array_key_exists('sorting',$_REQUEST)) $sorting=intval($_REQUEST['sorting']); +$status=0; +if(array_key_exists('status',$_REQUEST)) $status=intval($_REQUEST['status']); +?>
- + - - - - - - - + + + + + + + + + + + + + + + + + + + +//rebuild query 0) + { + $query .= "AND `org`.`orgid`=$orgfilterid "; + } + + if(1==$status) { $query .= "AND `oemail`.`revoked`=0 AND `oemail`.`renewed`=0 "; $query .= "HAVING `timeleft` > 0 AND `revoked`=0 "; } - $query .= "ORDER BY `oemail`.`modified` desc"; + switch ($sorting){ + case 0: + $query .= "ORDER BY `oemail`.`expire` desc"; + break; + case 1: + $query .= "ORDER BY `oemail`.`ou`, `oemail`.`expire` desc"; + break; + case 2: + $query .= "ORDER BY `oemail`.`CN`, `oemail`.`expire` desc"; + break; + } $res = mysql_query($query); if(mysql_num_rows($res) <= 0) { ?> + - + $orgname) { + $orgname=$row['O'];?> + + + + + + + + + + + + + + + + + 0) $verified = _("Valid"); if($row['timeleft'] < 0) @@ -65,11 +164,12 @@ $verified = _("Pending"); if($row['revoked'] > 0) $verified = _("Revoked"); - if($row['revoked'] == 0) - $row['revoke'] = _("Not Revoked"); + if($row['revoked'] == 0) + $row['revoke'] = _("Not Revoked"); ?> - + + @@ -90,7 +190,7 @@ - @@ -99,9 +199,11 @@ "> + + +
-
+ +
+ +
+ +
" />     + " />
+
">
-
-

+ \ No newline at end of file -- cgit v1.2.1