Code

Added acls for environment tpl
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 21 Jul 2006 05:53:42 +0000 (05:53 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 21 Jul 2006 05:53:42 +0000 (05:53 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4266 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/personal/environment/class_environment.inc
plugins/personal/environment/environment.tpl

index d8de502df30c4b128b1d5c14340466ca06c41a37..16e1c71575d83c28ad721232c19225cc20121760 100644 (file)
@@ -1163,16 +1163,20 @@ function printOutHotPlugDevices()
                                                                         "description" => _("Command to extend the list of possible screen resolutions"))),
 
                   "plProvidedAcls"  => array(
-                    "gotoProfileServer"   => _("Profile server") ,
+
                     "gotoProfileFlagL"    => _("Resolution changeable during session") ,
                     "gotoProfileFlagC"    => _("Cache profile localy") ,
-                    "gotoXResolution"     => _("Resolution") ,
+
                     "gotoProfileQuota"    => _("Profile quota") ,
-                    "gotoLogonScripts"    => _("Logon script") ,
-                    "gotoPrinter"         => _("Printer") ,
-                    "gosaDefaultPrinter"  => _("Default printer") ,
+                    "gotoProfileServer"   => _("Profile server") ,
+
+                    "gotoXResolution"     => _("Resolution") ,
                     "gotoKioskProfile"    => _("Kiosk profile") ,
-                    "gotoShare"           => _("Shares")),
+
+                    "gosaDefaultPrinter"  => _("Default printer") ,
+                    "gotoLogonScript"     => _("Logon script") ,
+                    "gotoHotplugDevice"   => _("Hotplug devices"),
+                    "gotoShare"           => _("Shares"))
                    ));
     }
 }
index 45d68fef187c630e4e980f79fbb439b8e98df384..695b40d2c5d0b1f1912350c68749e20a529cb7b3 100644 (file)
 {if $is_account ne 'true'}
      <img alt="" class="center" src="images/stop.png" align="middle">
      {t}The environment extension is currently disabled.{/t}
+ <img alt="" class="center" src="images/stop.png" align="middle">
+ {t}The environment extension is currently disabled.{/t}
 {else}
+
+
 <input type="hidden" name="iamposted" value="1">
 
-<h2><img class="center" alt="" src="images/fai_profile.png" align="middle" /> {t}Profiles{/t}</h2>
+<h2> 
+ <img class="center" alt="" src="images/fai_profile.png" align="middle" /> 
+ {t}Profiles{/t}
+</h2>
+
 <table summary="{t}Environment managment settings{/t}" width="100%">
-  <tr>
-   <td style="width:50%;border-right:1px solid #B0B0B0;vertical-align:top;">
-                       <table summary="{t}Profile managment{/t}">
-                               <tr>
-                                       <td style="vertical-align:top">
-                                               <input class="center" type="checkbox" value="1" {$useProfileCHK} name="useProfile" {$useProfileACL} id="useProfile"
-                                                                       onclick="changeState('gotoProfileServer');changeState('gotoProfileFlagC');changeState('gotoProfileQuota');">
-                                       </td>
-                                       <td style="vertical-align:middle;">
-                                               <label for="useProfile">{t}Use profile managment{/t}</label>
-                                       </td>
-                               </tr>
-                               <tr>
-                                       <td>&nbsp;
-                                       </td>
-                                       <td>
-                                               <table summary="{t}Profile server managment{/t}">
-                                                       <tr>
-                                                               <td>    
-                                                                       <label for="gotoProfileServer">{t}Profil path{/t}</label>
-                                                               </td>
-                                                               <td>
-                                                                       <select id="gotoProfileServer" 
-                                                                                       name="gotoProfileServer" {$gotoProfileServerACL}>
-                                                                               {html_options values=$gotoProfileServerKeys output=$gotoProfileServers selected=$gotoProfileServer}
-                                                                               <option disabled>&nbsp;</option>
-                                                                       </select>
-                                                               </td>
-                                                       </tr>
-                                                       <tr>
-                                                               <td>
-                                                                       <label for="gotoProfileQuota">{t}Profil quota{/t}</label> 
-                                                                       <br>
-                                                                       <br>
-                                                               </td>
-                                                               <td>
-                                                                       <input type="text" name="gotoProfileQuota" value="{$gotoProfileQuota}" size="6" {$gotoProfileQuotaACL} id="gotoProfileQuota">{t}MB{/t}
-                                                                       <br>
-                                                                       <br>
-                                                               </td>
-                                                       </tr>
-                                                       <tr>
-                                                               <td colspan=2>  
-                                                                       <input class="center" type="checkbox" name="gotoProfileFlagC" value="C" {$gotoProfileFlagCCHK}
-                                                                               id="gotoProfileFlagC" {$gotoProfileFlagCACL}>&nbsp;
-                                                                       <label for="gotoProfileFlagC">{t}Cache profile localy{/t}</label>
-                                                               </td>
-                                                       </tr>
-                                               </table>
-                                       </td>
-                               </tr>
-                               </table>
-               </td>
-               <td style="vertical-align:top">
-                       <table summary="{t}Kiosk profile settings{/t}">
-                               <tr>
-                                       <td>
-                                               <label for="gotoKioskProfile">{t}Kiosk profile{/t}</label>
-                                       </td>
-                                       <td>
-                                               <select name="gotoKioskProfile" {$gotoKioskProfileACL} id="gotoKioskProfile">
-                        {html_options values=$gotoKioskProfileKeys output=$gotoKioskProfiles selected=$gotoKioskProfile}
-                        <option disabled>&nbsp;</option></select>&nbsp;
-                                               <input type="submit" name="KioskManagementDialog" value="{t}Manage{/t}" {$gotoKioskProfileACL}>
-                                       </td>
-                               </tr>
-                               <tr>
-                                       <td colspan=2>
-                                               <br>
-                                               <input type="checkbox" name="gotoProfileFlagL" id="gotoProfileFlagL" value="L"  {$gotoProfileFlagLCHK}
-                                                       {if $gotoProfileFlagsACL=="disabled"}
-                                                               disabled 
-                                                       {/if}>
-                                               <label for="gotoProfileFlagL">{t}Resolution changeable during session{/t}</label>
-                                       </td>
-                               </tr>
-                               <tr>
-                                       <td>
-                                               <label for="gotoXResolution">{t}Resolution{/t}</label>
-                                       </td>
-                                       <td>
-                                               <select name="gotoXResolution" {$gotoXResolutionACL} id="gotoXResolution">
-                               {html_options values=$gotoXResolutionKeys output=$gotoXResolutions selected=$gotoXResolution}
-                            <option disabled>&nbsp;</option>
-                       </select>
-                                       </td>
-                               </tr>
-                       </table>        
-   </td>
-  </tr>
+ <tr>
+  <td style="width:50%;border-right:1px solid #B0B0B0;vertical-align:top;">
+   <table summary="{t}Profile managment{/t}">
+    <tr>
+     <td style="vertical-align:top">
+{render acl=$ProfileACL}
+      <input class="center" type="checkbox" value="1" {$useProfileCHK} name="useProfile" id="useProfile"
+       onclick="changeState('gotoProfileServer');changeState('gotoProfileFlagC');changeState('gotoProfileQuota');">
+{/render}
+     </td>
+     <td style="vertical-align:middle;">
+      <label for="useProfile">{t}Use profile managment{/t}</label>
+     </td>
+    </tr>
+    <tr>
+     <td>&nbsp;
+     </td>
+     <td>
+      <table summary="{t}Profile server managment{/t}">
+       <tr>
+        <td> 
+         <label for="gotoProfileServer">{t}Profil path{/t}</label>
+        </td>
+        <td>
+{render acl=$ProfileACL}
+         <select id="gotoProfileServer" name="gotoProfileServer">
+          {html_options values=$gotoProfileServerKeys output=$gotoProfileServers selected=$gotoProfileServer}
+          <option disabled>&nbsp;</option>
+         </select>
+{/render}
+        </td>
+       </tr>
+       <tr>
+        <td>
+         <label for="gotoProfileQuota">{t}Profil quota{/t}</label> 
+         <br>
+         <br>
+        </td>
+        <td>
+{render acl=$ProfileACL}
+         <input type="text" name="gotoProfileQuota" value="{$gotoProfileQuota}" size="6" id="gotoProfileQuota">{t}MB{/t}
+{/render}
+         <br>
+         <br>
+        </td>
+       </tr>
+       <tr>
+        <td colspan=2> 
+{render acl=$gotoProfileFlagCACL}
+         <input class="center" type="checkbox" name="gotoProfileFlagC" value="C" {$gotoProfileFlagCCHK id="gotoProfileFlagC"}>&nbsp;
+{/render}
+         <label for="gotoProfileFlagC">{t}Cache profile localy{/t}</label>
+        </td>
+       </tr>
+      </table>
+     </td>
+    </tr>
+   </table>
+  </td>
+  <td style="vertical-align:top">
+   <table summary="{t}Kiosk profile settings{/t}">
+    <tr>
+     <td>
+      <label for="gotoKioskProfile">{t}Kiosk profile{/t}</label>
+     </td>
+     <td>
+{render acl=$gotoKioskProfileACL}
+      <select name="gotoKioskProfile" id="gotoKioskProfile">
+       {html_options values=$gotoKioskProfileKeys output=$gotoKioskProfiles selected=$gotoKioskProfile}
+       <option disabled>&nbsp;</option>
+      </select>&nbsp;
+{/render}
+{render acl=$gotoKioskProfileACL}
+      <input type="submit" name="KioskManagementDialog" value="{t}Manage{/t}">
+{/render}
+     </td>
+    </tr>
+    <tr>
+     <td colspan=2>
+      <br>
+{render acl=$gotoProfileFlagLACL}
+      <input type="checkbox" name="gotoProfileFlagL" id="gotoProfileFlagL" value="L"  {$gotoProfileFlagLCHK}>
+{/render}
+      <label for="gotoProfileFlagL">{t}Resolution changeable during session{/t}</label>
+     </td>
+    </tr>
+    <tr>
+     <td>
+      <label for="gotoXResolution">{t}Resolution{/t}</label>
+     </td>
+     <td>
+{render acl=$gotoXResolutionACL}
+      <select name="gotoXResolution" id="gotoXResolution">
+       {html_options values=$gotoXResolutionKeys output=$gotoXResolutions selected=$gotoXResolution}
+      <option disabled>&nbsp;</option>
+      </select>
+{/render}
+     </td>
+    </tr>
+   </table> 
+  </td>
+ </tr>
 </table>
 
 <p class="seperator">&nbsp;</p>
 
 <table summary="{t}Environment managment settings{/t}" width="100%">
-  <tr>
-   <td style="width:50%;border-right:1px solid #B0B0B0">
-       <h2><img class="center" alt="" src="images/fai_partitionTable.png" align="middle" />&nbsp;<label for="gotoShare">{t}Shares{/t}</label></h2>
-       <table summary="" style="width:100%">
-               <tr>
-                       <td>
-                               {$divlistShares}
-                               <input type="text" size=15 {$gotoShareACL} name="ShareUser" value="%u" title="{t}User used to connect to the share{/t}">@
-                               <select name="gotoShareSelection" {$gotoShareACL} title="{t}Select a share{/t}">
-                                       {html_options values=$gotoShareSelectionKeys output=$gotoShareSelections}
-                                       <option disabled>&nbsp;</option>
-                               </select>
-                               :
-                               <input type="text" size=15 {$gotoShareACL} name="gotoShareMountPoint" value="%H/Netzlaufwerke/%L/%S"
-                  title="{t}Mount path{/t}">
-                               <input type="submit" {$gotoShareACL} name="gotoShareAdd" value="{t}Add{/t}"> 
-       <!--                    <input type="submit" {$gotoShareACL} name="gotoShareDel" value="{t}Remove{/t}"> -->
-                       </td>
-               </tr>
-       </table>
-   </td>
-   <td style="vertical-align:top">
-       <h2><img class="center" alt="" src="images/fai_script.png" align="middle" />&nbsp;<label for="gotoLogonScript">{t}Logon scripts{/t}</label></h2>
-       <table summary="{t}Logon script management{/t}" style="width:100%">
-               <tr>
-                       <td>
-                       <select style="width:100%;" name="gotoLogonScript" multiple size=5 {$gotoLogonScriptACL} id="gotoLogonScript">
-       {html_options values=$gotoLogonScriptKeys output=$gotoLogonScripts }
-       <option disabled>&nbsp;</option>
-                               </select>
+ <tr>
+  <td style="width:50%;border-right:1px solid #B0B0B0">
+   <h2>
+    <img class="center" alt="" src="images/fai_partitionTable.png" align="middle" />&nbsp;
+    <label for="gotoShare">{t}Shares{/t}</label>
+   </h2>
+   <table summary="" style="width:100%">
+    <tr>
+     <td>
        
-                               <br>
-                               <input type="submit" {$gotoLogonScriptACL} name="gotoLogonScriptNew"    value="{t}Add{/t}">
-                               <input type="submit" {$gotoLogonScriptACL} name="gotoLogonScriptEdit"   value="{t}Edit{/t}">
-                               <input type="submit" {$gotoLogonScriptACL} name="gotoLogonScriptDel"    value="{t}Delete{/t}" 
-                               {if !$gotoLogonScripts} disabled {/if}> 
-                       </td>
-               </tr>
-       </table>        
-   </td>
-  </tr>
+{render acl=$gotoShareACL}
+      {$divlistShares}
+{/render}
+{render acl=$gotoShareACL}
+      <input type="text" size=15 name="ShareUser" value="%u" title="{t}User used to connect to the share{/t}">@
+{/render}
+{render acl=$gotoShareACL}
+      <select name="gotoShareSelection" title="{t}Select a share{/t}">
+       {html_options values=$gotoShareSelectionKeys output=$gotoShareSelections}
+       <option disabled>&nbsp;</option>
+      </select>
+{/render}
+      :
+{render acl=$gotoShareACL}
+      <input type="text" size=15 name="gotoShareMountPoint" value="%H/Netzlaufwerke/%L/%S"
+      title="{t}Mount path{/t}">
+{/render}
+{render acl=$gotoShareACL}
+      <input type="submit" name="gotoShareAdd" value="{t}Add{/t}"> 
+{/render}
+      <!--   <input type="submit" {$gotoShareACL} name="gotoShareDel" value="{t}Remove{/t}"> -->
+     </td>
+    </tr>
+   </table>
+  </td>
+  <td style="vertical-align:top">
+   <h2>
+    <img class="center" alt="" src="images/fai_script.png" align="middle" />&nbsp;
+    <label for="gotoLogonScript">{t}Logon scripts{/t}</label>
+   </h2>
+   <table summary="{t}Logon script management{/t}" style="width:100%">
+    <tr>
+     <td>
+{render acl=$gotoLogonScriptACL}
+      <select style="width:100%;" name="gotoLogonScript" multiple size=5 {$gotoLogonScriptACL} id="gotoLogonScript">
+       {html_options values=$gotoLogonScriptKeys output=$gotoLogonScripts }
+       <option disabled>&nbsp;</option>
+      </select>
+{/render}
+
+      <br>
+{render acl=$gotoLogonScriptACL}
+      <input type="submit" {$gotoLogonScriptACL} name="gotoLogonScriptNew" value="{t}Add{/t}">
+{/render}
+{render acl=$gotoLogonScriptACL}
+      <input type="submit" {$gotoLogonScriptACL} name="gotoLogonScriptEdit"  value="{t}Edit{/t}">
+{/render}
+{render acl=$gotoLogonScriptACL}
+      <input type="submit" {$gotoLogonScriptACL} name="gotoLogonScriptDel"  value="{t}Delete{/t}" >
+{/render}
+     </td>
+    </tr>
+   </table> 
+  </td>
+ </tr>
 </table>
 
 <p class="seperator">&nbsp;</p>
 
 <table summary="{t}Environment managment settings{/t}" width="100%">
-  <tr>
-   <td style="border-right:1px solid #B0B0B0; width:50%; vertical-align:top">
-       <h2><img alt="" src="images/hotplug.png" align="middle" class="center" />&nbsp;<label for="gotoHotplugDevice">{t}Hotplug devices{/t}</label></h2>       
-       <table style="width:100%" summary="{t}Hotplug device settings{/t}">
-               <tr>
-                       <td>
-                               <select name="gotoHotplugDevice[]" {$gotoHotplugDeviceACL} size=5  style="width:100%;" id="gotoHotplugDevice" multiple>
-                                       {html_options values=$gotoHotplugDeviceKeys output=$gotoHotplugDevices}
-                                       <option disabled>&nbsp;</option>
-                               </select>
-                       </td>
-               </tr>
-               <tr>
-                       <td>
-                               <input type="submit" {$gotoHotplugDeviceACL} name="gotoHotplugDeviceNew" value="{t}New{/t}">
-                               <input type="submit" {$gotoHotplugDeviceACL} name="gotoHotplugDeviceUse" value="{t}Existing{/t}">
-                               <input type="submit" {$gotoHotplugDeviceACL} name="gotoHotplugDeviceDel" value="{t}Delete{/t}"
-                               {if !$gotoHotplugDevices} disabled {/if}>
-                       </td>
-               </tr>
-       </table>
-   </td>
-   <td>
-    <h2><img alt="" src="images/select_printer.png" align="middle" class="center" />&nbsp;<label for="gotoPrinter">{t}Printer{/t}</label></h2>
-    <table style="width:100%" summary="{t}Printer settings{/t}">
-       <tr>
-           <td>
-               <select style="width:100%;" name="gotoPrinterSel[]" multiple size=5 {$gotoPrinterACL} id="gotoPrinter">
-               {html_options values=$gotoPrinterKeys output=$gotoPrinter}
-               <option disabled>&nbsp;</option>
-               </select>
-               <br>
-               <input type="submit" {$gotoPrinterACL} name="gotoPrinterAdd"     value="{t}Add{/t}">
-               <input type="submit" {$gotoPrinterACL} name="gotoPrinterDel"     value="{t}Delete{/t}" {if !$gotoPrinter } disabled {/if}>
-               <input type="submit" {$gotoPrinterACL} name="gotoPrinterEdit"    value="{t}Toggle admin{/t}" {if !$gotoPrinter } disabled {/if}>
-               <input type="submit" {$gotoPrinterACL} name="gotoPrinterDefault"    value="{t}Toggle default{/t}" {if !$gotoPrinter } disabled {/if}>
-           </td>
-       </tr>
-    </table>
-   </td>
-  </tr>
+ <tr>
+  <td style="border-right:1px solid #B0B0B0; width:50%; vertical-align:top">
+   <h2>
+    <img alt="" src="images/hotplug.png" align="middle" class="center" />&nbsp;
+    <label for="gotoHotplugDevice">{t}Hotplug devices{/t}</label>
+   </h2> 
+   <table style="width:100%" summary="{t}Hotplug device settings{/t}">
+    <tr>
+     <td>
+{render acl=$gotoHotplugDeviceACL}
+      <select name="gotoHotplugDevice[]" {$gotoHotplugDeviceACL} size=5  style="width:100%;" id="gotoHotplugDevice" multiple>
+       {html_options values=$gotoHotplugDeviceKeys output=$gotoHotplugDevices}
+       <option disabled>&nbsp;</option>
+      </select>
+{/render}
+     </td>
+    </tr>
+    <tr>
+     <td>
+{render acl=$gotoHotplugDeviceACL}
+      <input type="submit" {$gotoHotplugDeviceACL} name="gotoHotplugDeviceNew" value="{t}New{/t}">
+{/render}
+{render acl=$gotoHotplugDeviceACL}
+      <input type="submit" {$gotoHotplugDeviceACL} name="gotoHotplugDeviceUse" value="{t}Existing{/t}">
+{/render}
+{render acl=$gotoHotplugDeviceACL}
+      <input type="submit" {$gotoHotplugDeviceACL} name="gotoHotplugDeviceDel" value="{t}Delete{/t}"
+      {if !$gotoHotplugDevices} disabled {/if}>
+{/render}
+     </td>
+    </tr>
+   </table>
+  </td>
+  <td>
+   <h2>
+    <img alt="" src="images/select_printer.png" align="middle" class="center" />&nbsp;
+    <label for="gotoPrinter">{t}Printer{/t}</label>
+   </h2>
+   <table style="width:100%" summary="{t}Printer settings{/t}">
+    <tr>
+     <td>
+{render acl=$gotoPrinterACL}
+      <select style="width:100%;" name="gotoPrinterSel[]" multiple size=5 {$gotoPrinterACL} id="gotoPrinter">
+       {html_options values=$gotoPrinterKeys output=$gotoPrinter}
+       <option disabled>&nbsp;</option>
+      </select>
+{/render}
+      <br>
+{render acl=$gotoPrinterACL}
+      <input type="submit" {$gotoPrinterACL} name="gotoPrinterAdd"     value="{t}Add{/t}">
+{/render}
+{render acl=$gotoPrinterACL}
+      <input type="submit" {$gotoPrinterACL} name="gotoPrinterDel"     value="{t}Delete{/t}" {if !$gotoPrinter } disabled {/if}>
+{/render}
+{render acl=$gotoPrinterACL}
+      <input type="submit" {$gotoPrinterACL} name="gotoPrinterEdit"    value="{t}Toggle admin{/t}" {if !$gotoPrinter } disabled {/if}>
+{/render}
+{render acl=$gosaDefaultPrinterACL}
+      <input type="submit" {$gotoPrinterACL} name="gotoPrinterDefault"    value="{t}Toggle default{/t}" {if !$gotoPrinter } disabled {/if}>
+{/render}
+     </td>
+    </tr>
+   </table>
+  </td>
+ </tr>
 </table>
 <script language="JavaScript" type="text/javascript">
-  <!-- // First input field on page
-  document.mainform.useProfile.focus();
-  -->
+<!-- // First input field on page
+document.mainform.useProfile.focus();
+-->
 </script>
 {/if}