summaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authorINOPIAE <inopiae@cacert.org>2013-05-01 22:20:26 +0200
committerINOPIAE <inopiae@cacert.org>2013-05-01 22:20:26 +0200
commit494eb5923b8a682e2de786c284344b504211da8d (patch)
tree3fa322e412570bf95940501e62749a45285c9a2f /pages
parentc5e49e00672f85a2f2133f14f177b4a2604a14e4 (diff)
downloadcacert-devel-494eb5923b8a682e2de786c284344b504211da8d.tar.gz
cacert-devel-494eb5923b8a682e2de786c284344b504211da8d.tar.xz
cacert-devel-494eb5923b8a682e2de786c284344b504211da8d.zip
bug 782: adjusted comment handling for client certs
Diffstat (limited to 'pages')
-rw-r--r--pages/account/5.php17
1 files changed, 9 insertions, 8 deletions
diff --git a/pages/account/5.php b/pages/account/5.php
index f8e9190..7ef8933 100644
--- a/pages/account/5.php
+++ b/pages/account/5.php
@@ -19,7 +19,7 @@
<form method="post" action="account.php">
<table align="center" valign="middle" border="0" cellspacing="0" cellpadding="0" class="wrapper">
<tr>
- <td colspan="9" class="title"><?=_("Client Certificates")?> - <a href="account.php?id=5&amp;viewall=<?=!$viewall?>"><?=_("View all certificates")?></a></td>
+ <td colspan="10" class="title"><?=_("Client Certificates")?> - <a href="account.php?id=5&amp;viewall=<?=!$viewall?>"><?=_("View all certificates")?></a></td>
</tr>
<tr>
<td class="DataTD"><?=_("Renew/Revoke/Delete")?></td>
@@ -29,20 +29,20 @@
<td class="DataTD"><?=_("Revoked")?></td>
<td class="DataTD"><?=_("Expires")?></td>
<td class="DataTD"><?=_("Login")?></td>
- <td class="DataTD"><?=_("Comment *")?></td>
+ <td colspan="2" class="DataTD"><?=_("Comment *")?></td>
<?
$query = "select UNIX_TIMESTAMP(`emailcerts`.`created`) as `created`,
UNIX_TIMESTAMP(`emailcerts`.`expire`) - UNIX_TIMESTAMP() as `timeleft`,
UNIX_TIMESTAMP(`emailcerts`.`expire`) as `expired`,
- `emailcerts`.`expire` as `expires`,
+ `emailcerts`.`expire` as `expires`,
`emailcerts`.`revoked` as `revoke`,
- UNIX_TIMESTAMP(`emailcerts`.`revoked`) as `revoked`,
+ UNIX_TIMESTAMP(`emailcerts`.`revoked`) as `revoked`,
`emailcerts`.`id`,
`emailcerts`.`CN`,
`emailcerts`.`serial`,
emailcerts.disablelogin as `disablelogin`,
`emailcerts`.`description`
- from `emailcerts`
+ from `emailcerts`
where `emailcerts`.`memid`='".$_SESSION['profile']['id']."'
";
if($viewall != 1)
@@ -94,7 +94,8 @@
<input type="checkbox" name="disablelogin_<?=$row['id']?>" value="1" <?=$row['disablelogin']?"":"checked='checked'"?>/>
<input type="hidden" name="cert_<?=$row['id']?>" value="1"/>
</td>
- <td class="DataTD"><?=htmlspecialchars($row['description'])?></td>
+ <td class="DataTD"><input name="comment_<?=$row['id']?>" type="text"><?=htmlspecialchars($row['description'])?></input></td>
+ <td><input type="checkbox" name="check_comment_<?=$row['id']?>" value="0"/></td>
</tr>
<? } ?>
<tr>
@@ -108,12 +109,12 @@
<?=_("* Comment is NOT included in the certificate as it is inteded for your personal reference only. To change the comment go to the certificate view with hitting email address.")?>
</td>
</tr>
-
+
<tr>
<td class="DataTD" colspan="5"><input type="submit" name="renew" value="<?=_("Renew")?>">&#160;&#160;&#160;&#160;
<input type="submit" name="revoke" value="<?=_("Revoke/Delete")?>"></td>
- <td class="DataTD" colspan="3"><input type="submit" name="change" value="<?=_("Change settings")?>"> </td>
+ <td class="DataTD" colspan="4"><input type="submit" name="change" value="<?=_("Change settings")?>"> </td>
</tr>
<? } ?>