>Zaslat daòový doklad?</td><td colspan="3"><input type="checkbox" name="doklad"<?php
print(""
// some hacks as "readonly" not supported for "checkbox"es (->"disabled" for them)
- .($readonly ? "" : " onclick=\"sum_total(this)\"")
+ .(!($have_js || $readonly) ? "" : " onclick=\"sum_total(this)\"")
.(!($have_js || $readonly) ? "" : " disabled=\"disabled\"")
.(!isset($doklad) ? "" : " checked=\"checked\"")
.ereg_replace(" readonly=\"readonly\"","",$addons)." />");
</table></td></tr>
<tr><td align="center" id="submit_button"><?php
print("<input type=\"submit\" name=\"$submit_name\" value=\"".htmlspecialchars($submit_value)."\""
- ." onclick=\"return(validate(this.form))\" />");
+ .(!($have_js || $readonly) ? "" : " onclick=\"return(validate(this.form))\"")
+ ." />");
?></td></tr>
</table></form>
</blockquote>
header("Pragma: no-cache"); // HTTP/1.0
}
-function heading($title=false)
+function heading($title=true)
{
global $msie_major,$mozilla_major,$title_tail,$head_css,$have_css,$head,$heading_done,$title_prefix,$force_charset;
print(" bgcolor=\"black\" text=\"white\" link=\"aqua\" vlink=\"teal\"");
print(">\n");
if ($title)
- print("<h1 class=\"centered\">"
+ print("<h1 class=\"centered\"><a href=\"/\">"
.img("img/eap-title.".(image_supported("image/png") ? "png" : "gif"),"Energie & Peníze")
- ."</h1>\n");
+ ."</a></h1>\n");
}
?>