Add some code tidying f35c960196

This commit is contained in:
John Crisp
2020-02-27 18:44:01 +01:00
parent e79c928e81
commit a6928e3771
3 changed files with 15 additions and 15 deletions

View File

@@ -345,10 +345,10 @@ default:
print '<tr>';
$headings = array(
status=>"Status", issued=>"Issued", expires=>"Expires",
common_name=>"User's Name", email=>"E-mail",
organization=>"Organization", unit=>"Department",
locality=>"Locality"
'status'=>"Status", 'issued'=>"Issued", 'expires'=>"Expires",
'common_name'=>"User's Name", 'email'=>"E-mail",
'organization'=>"Organization", 'unit'=>"Department",
'locality'=>"Locality"
);
foreach($headings as $field=>$head) {
@@ -375,7 +375,7 @@ default:
$db = csort(CAdb_to_array($x), $sortfield, ($ascdec=='A'?SORT_ASC:SORT_DESC));
$stcolor = array(Valid=>'green',Revoked=>'red',Expired=>'orange');
$stcolor = array('Valid'=>'green','Revoked'=>'red','Expired'=>'orange');
foreach($db as $rec) {
print '<tr style="font-size: 11px;">