summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d9d38c9)
raw | patch | inline | side by side (parent: d9d38c9)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 18 Jun 2008 13:20:21 +0000 (13:20 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 18 Jun 2008 13:20:21 +0000 (13:20 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11360 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/dak/addons/dak/class_dak_keyring.inc | patch | blob | history |
diff --git a/gosa-plugins/dak/addons/dak/class_dak_keyring.inc b/gosa-plugins/dak/addons/dak/class_dak_keyring.inc
index ec10487a9073812a28b4a6ad63bb39d478fa2b87..40285ec557c478cf47b6bcc0adbba696b0cd7839 100644 (file)
{
$divlist = new divlist("DAK_keyring");
$divlist->SetWidth("100%");
+ $divlist->SetHeight("450px");
$divlist->SetEntriesPerPage(0);
- $divlist->SetPluginMode(TRUE) ;
+# $divlist->SetPluginMode(TRUE) ;
/* Set default col styles
*/
+ $s0 = "style='width:10px;'";
$s1 = "style='width:100px;'";
$s2 = "style='width:100px;'";
$s3 = "style='width:100px;'";
/* Add header
*/
+ $h0 = array("string" => "", "attach" => $s0);
$h1 = array("string" => _("Key ID"), "attach" => $s1);
$h2 = array("string" => _("Length"), "attach" => $s2);
- $h3 = array("string" => _("Validity"), "attach" => $s2);
+ $h3 = array("string" => _("Validity"), "attach" => $s3);
$h4 = array("string" => _("UID"), "attach" => $s4);
$h5 = array("string" => _("Action"), "attach" => $s5);
- $divlist->SetHeader(array($h1,$h2,$h3,$h4,$h5));
+ $divlist->SetHeader(array($h0,$h1,$h2,$h3,$h4,$h5));
/* Add entries
*/
/* Create detail icon
*/
- $hide = "<input type='image' name='details_".$key."' src='images/forward-arrow.png' alt='+' class='center'> ";
+ $hide = "<input type='image' name='details_".$key."' src='images/forward-arrow.png' alt='-' class='center'> ";
$down = "<input type='image' name='details_".$key."' src='images/down-arrow.png' alt='+' class='center'> ";
$actions = "<input type='image' class='center' alt='".msgPool::delButton()."'
$first = TRUE;
foreach($entry['UID'] as $val){
+ $f0 = array("string" => "","attach" => $s0);
$f1 = array("string" => "","attach" => $s1);
$f2 = array("string" => "","attach" => $s2);
$f3 = array("string" => "","attach" => $s3);
if($first){
$first = FALSE;
- $f1 = array("string" => $key_id ,"attach" => $s1);
+ $f0 = array("string" => $hide ,"attach" => $s0);
+ $f1 = array("string" => $key_id ,"attach" => $s1);
$f2 = array("string" => $length ,"attach" => $s2);
$f3 = array("string" => $valid ,"attach" => $s3);
- $f4 = array("string" => $hide.htmlentities($val) ,"attach" => $s4);
+ $f4 = array("string" => htmlentities($val) ,"attach" => $s4);
$f5 = array("string" => $actions ,"attach" => $s5);
}
- $divlist->AddEntry(array($f1,$f2,$f3,$f4,$f5));
+ $divlist->AddEntry(array($f0,$f1,$f2,$f3,$f4,$f5));
}
}else{
/* Add non detailed entries, just the first uid is displayed.
*/
- $f1 = array("string" => $key_id, "attach" => $s1);
+ if(count($entry['UID']) > 1){
+ $f0 = array("string" => $down, "attach" => $s0);
+ }else{
+ $f0 = array("string" => "", "attach" => $s0);
+ }
+ $f1 = array("string" => $key_id, "attach" => $s1);
$f2 = array("string" => $length, "attach" => $s2);
$f3 = array("string" => $valid, "attach" => $s3);
- $f4 = array("string" => $down.htmlentities($entry['UID'][0]), "attach" => $s4);
+ $f4 = array("string" => htmlentities($entry['UID'][0]), "attach" => $s4);
$f5 = array("string" => $actions,"attach" => $s5);
- $divlist->AddEntry(array($f1,$f2,$f3,$f4,$f5));
+ $divlist->AddEntry(array($f0,$f1,$f2,$f3,$f4,$f5));
}
}