Code

W3c
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 24 May 2005 05:14:36 +0000 (05:14 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 24 May 2005 05:14:36 +0000 (05:14 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@352 594d385d-05f5-0310-b6e9-bd551577e9d8

html/main.php
ihtml/themes/default/framework.tpl
ihtml/themes/default/headers.tpl

index b8fe29024492fff4c74119e8fabe36a8942e44ce..7005a1646ab0ebe185ac0cbbc944bada12f706ce 100644 (file)
@@ -223,7 +223,7 @@ if (isset($plug)){
 } else {
   $smarty->assign ("plug", "");
 }
-$smarty->display(get_template_path('headers.tpl'));
+$mtmp= $smarty->fetch(get_template_path('headers.tpl'));
 
 /* React on clicks */
 if ($_SERVER["REQUEST_METHOD"] == "POST"){
@@ -273,7 +273,14 @@ if ($error_collector != ""){
 } else {
   $smarty->assign("php_errors", "");
 }
-$smarty->display(get_template_path('framework.tpl'));
+$display = $mtmp.$smarty->fetch(get_template_path('framework.tpl'));
+print $display;
+
+$fp = fopen("/tmp/current.html","w+");
+fwrite($fp,$display,strlen($display));
+$str = shell_exec( "curl -F uploaded_file=@/tmp/current.html http://127.0.0.1/w3c-markup-validator/check ");
+print $str;
+
 $_SESSION['plist']= $plist;
 
 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
index e7337090f1f5c03e3fd0685e3ec1919745acb102..28eaf1d34d5372c6d77a0a104ccb6588b93b0cff 100644 (file)
@@ -2,7 +2,7 @@
 <body>
 {$php_errors}
 <form action='main.php{$plug}' name='mainform' method='post' enctype='multipart/form-data'>
-<table width="100%" border="0" cellspacing="0" cellpadding="0" cellpadding="3" bgcolor="#CDF6BD" height=100%>
+<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#CDF6BD" heigth="100%">
   <tr>
     <td style="height:36px; width:140px; vertical-align:bottom; text-align:center">
      <a href="main.php?version=1" style="vertical-align:bottom;"><img src='{$go_logo}' border="0" alt="GOSA2" align="bottom"></a>
@@ -36,7 +36,7 @@
   </tr>
   <tr style="vertical-align:top;">
     <!-- Menu -->
-    <td style="background-color:#EEFFE6; vertical-align:top;">
+    <td style="background-color:#EEFFE6; vertical-align:top;" >
       <div style="background-color:#CDF6BD; height:12px; width:100%;">&nbsp;</div>
       {$menu}
       <div style="height:100px; width:140px;"></div>
@@ -54,4 +54,4 @@
      </table>
     </td>
   </tr>
-</table></form></body></html>
+</table><div bgcolor="#333333" heigth="100%"></div></form></body></html>
index 5a960cc49847ddeee91f6b16381722d3ceab15d3..926892d8c1021686ee60caa5e30b7b6bd6fb7865 100644 (file)
@@ -1,9 +1,5 @@
-<!--
-     Defining the doctype doesn't allow screens with 100% height. If you've
-     fixes for this, please tell me!!!
-     <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/transitional.dtd">
--->
 <html>
 
 <head>