if (empty($this->id))
$this->id = $this->name;
- $js_maxlen = "";
-
$html = "\n\t<textarea";
$html .= " name=\"$this->name\" id=\"$this->id\"";
if ($this->max_length!="") {
if ($this->mOnKeyPress) $this->mOnKeyPress .= ";";
$this->mOnKeyPress .= "return validateMaxLenght_".$this->name."(this, event);";
- $js_maxlen = $this->getExtraScript();
$html .= " maxlength=\"$this->max_length\"";
}
}
$html .= ">".htmlspecialchars($this->getValue())."</textarea>";
- if ($js_maxlen) $html = $js_maxlen."\n".$html;
return $html;
}
-
- function getExtraScript() {
- $s = "<script>\n";
- $s .= "var isNS4 = (navigator.appName==\"Netscape\")?1:0;\n";
- $s .= "function validateMaxLenght_".$this->name."(element, event) {\n";
- $s .= "\tmaxlength=".$this->max_length.";\n";
- $s .= "\tvar iKey = (!isNS4?event.keyCode:event.which);\n";
- //$s .= "alert(iKey);";
- $s .= "\tvar re = new RegExp(\"".'\r\n'."\",\"g\");\n";
- $s .= "\tvar x = element.value.replace(re,\"\").length;\n";
- $s .= "\tif ((x>=maxlength) && ((iKey > 31 && iKey < 1200) || (iKey > 95 && iKey < 106)) && (iKey != 13)) {\n";
- $s .= "\t\treturn false;\n";
- $s .= "\t} else {\n";
- $s .= "\t\treturn true;\n";
- $s .= "\t}\n}\n";
- $s .= "</script>\n";
- return $s;
- }
}
<br>
<table cellspacing="0" cellpadding="4" width="100%" border="0">
<tr>
- <td align="center"> Anuko Time Tracker 1.13.11.3731 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+ <td align="center"> Anuko Time Tracker 1.13.11.3732 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
<a href="https://www.anuko.com/lp/tt_4.htm" target="_blank">{$i18n.footer.credits}</a> |
<a href="https://www.anuko.com/lp/tt_5.htm" target="_blank">{$i18n.footer.license}</a> |
<a href="https://www.anuko.com/lp/tt_7.htm" target="_blank">{$i18n.footer.improve}</a>