From: hickert Date: Tue, 19 Dec 2006 09:00:24 +0000 (+0000) Subject: Updated Template X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b071d4696634fcf9c0b1b9b3495413134a1f4545;p=gosa.git Updated Template git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5423 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/personal/samba/class_sambaLogonHours.inc b/plugins/personal/samba/class_sambaLogonHours.inc index 7123527ea..7b7fe9a45 100644 --- a/plugins/personal/samba/class_sambaLogonHours.inc +++ b/plugins/personal/samba/class_sambaLogonHours.inc @@ -88,6 +88,12 @@ class sambaLogonHours extends plugin } } } + + /* All hours and days selected */ + if(substr_count($ret,'f') == 42){ + $ret =""; + } + return($ret); } } diff --git a/plugins/personal/samba/sambaLogonHours.tpl b/plugins/personal/samba/sambaLogonHours.tpl index 9a9dfae08..7438ca855 100644 --- a/plugins/personal/samba/sambaLogonHours.tpl +++ b/plugins/personal/samba/sambaLogonHours.tpl @@ -21,16 +21,18 @@

{t}Specify the hours this user is allowed to log in{/t}


- +
- + + + + + {foreach from=$Hours item=hours key=key_hours} {if (($hours)%2) == 0 } @@ -46,9 +48,9 @@ {if (($hours)%2) == 0 } {/foreach} @@ -75,7 +77,7 @@ {/foreach}
- {t}Hour{/t} -  {t}Hour{/t}
  {else} - + {/if} {$hours} {else} - + {/if} - +
- +