mail.inc.php

Go to the documentation of this file.
00001 <?php
00002 
00026 class QuotaTpl extends InputTpl {
00027 
00028     function QuotaTpl($name, $regexp="/.*/") {
00029         $this->InputTpl($name, $regexp);
00030     }
00031     
00032     function Display($arrParam) {
00033         if ($arrParam["value"] === "0") {
00034             $checked = "CHECKED";
00035             $old_value = "on";
00036             $disabled = "1";
00037         } else {
00038             $checked = "";
00039             $disabled = "0";
00040             $old_value = "";
00041         }
00042         parent::display($arrParam);
00043         print "&nbsp;" . _T("Unlimited quota", "mail") . '
00044         <input type="hidden" name="old_unlimitedquota" value="'.$old_value.'" />
00045         <input type="checkbox" id="unlimitedquota" name="unlimitedquota" ' . $checked . ' onclick="unlimitedquotaclick();">';
00046         print '<script type="text/javascript">
00047 $("mailuserquota").disabled = ' . $disabled . ';
00048 function unlimitedquotaclick() {
00049     $("mailuserquota").disabled = !$("mailuserquota").disabled;
00050 }
00051 </script>';
00052     }
00053 
00054     function displayRo($arrParam) {
00055         if ($arrParam["value"] === "0") print _T("Unlimited quota", "mail");
00056         else print $arrParam["value"];
00057     }
00058 
00059 }
00060 
00061 ?>

Generated on Tue May 4 11:47:31 2010 for MMC web interface by  doxygen 1.5.8