summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: eeb4b11)
raw | patch | inline | side by side (parent: eeb4b11)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 19 Dec 2006 09:00:24 +0000 (09:00 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 19 Dec 2006 09:00:24 +0000 (09:00 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5423 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/personal/samba/class_sambaLogonHours.inc | patch | blob | history | |
plugins/personal/samba/sambaLogonHours.tpl | patch | blob | history |
diff --git a/plugins/personal/samba/class_sambaLogonHours.inc b/plugins/personal/samba/class_sambaLogonHours.inc
index 7123527ea4ccb93e011394e0c6444320856f3c58..7b7fe9a45f90430f2dc09c7ae52fa7314f7cd792 100644 (file)
}
}
}
+
+ /* 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 9a9dfae08625eb126e7c4de46c93fa69ad717e4b..7438ca855a6a485a556990874e162ff294da6966 100644 (file)
<h1>{t}Specify the hours this user is allowed to log in{/t}</h1>
<br>
-<table cellspacing=0 cellpadding=0>
+<table cellspacing=0 cellpadding=0 style='border: solid 1px #B0B0B0; background-color: #EEEEEE;'>
<tr>
- <td style='text-align: left;' class='list0'>
- <b>{t}Hour{/t}</b>
- </td>
+ <td> </td>
+ <td colspan=24 style='text-align:center;height:24px;border-bottom: solid 1px #B0B0B0;'><b>{t}Hour{/t}</b></td>
+ </tr>
+ <tr>
+ <td style='text-align: left;' class='list0'> </td>
{foreach from=$Hours item=hours key=key_hours}
{if (($hours)%2) == 0 }
<td style="height: 22px; background-color: rgb(226, 226, 226); ">
{else}
- <td style="height: 22px; background-color: rgb(245, 245, 245); border-right: solid 1px;">
+ <td style="height: 22px; background-color: rgb(245, 245, 245); border-right: solid 1px #B0B0B0;">
{/if}
{$hours}
</td>
{if (($hours)%2) == 0 }
<td style="height: 22px; background-color: rgb(226, 226, 226); text-align: right;">
{else}
- <td style="height: 22px; background-color: rgb(245, 245, 245); border-right: solid 1px; text-align: right;">
+ <td style="height: 22px; background-color: rgb(245, 245, 245); border-right: solid 1px #B0B0B0; text-align: right;">
{/if}
- <input type='button' onClick="toggle_chk('_{$hours}$');" value='+/-' style='width:31px;'>
+ <input type='button' onClick="toggle_chk('_{$hours}$');" value='+/-' style='padding:0px;margin:0px;;'>
</td>
{/foreach}
</tr>
<!-- Add toggle button for days -->
<td>
- <input type='button' onClick="toggle_chk('^day_{$key_day}')" value='+/-'>
+ <input type='button' onClick="toggle_chk('^day_{$key_day}')" value='+/-' style='padding:0px;margin:0px;'>
</td>
</tr>
{/foreach}