[Kolab-devel] server/kolab/kolab/admin/server head.php,1.4,1.5 index.php,1.6,1.7 by martin at doto.intevation.de

root at intevation.de root at intevation.de
Sat Jun 14 15:32:54 CEST 2003


Update of /kolabrepository/server/kolab/kolab/admin/server
In directory doto:/tmp/cvs-serv20334

Modified Files:
	head.php index.php 
Log Message:
MArtin: Improved server dialogs (CCS)


Index: head.php
===================================================================
RCS file: /kolabrepository/server/kolab/kolab/admin/server/head.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- head.php	22 May 2003 17:50:35 -0000	1.4
+++ head.php	14 Jun 2003 13:32:52 -0000	1.5
@@ -17,6 +17,5 @@
     global $title;
     idxPrefix("../");
     Mainhead("- Server Settings".$title);
-    print("<IMG SRC=\"../pics/kolab_logo.gif\">");
   }
 ?>

Index: index.php
===================================================================
RCS file: /kolabrepository/server/kolab/kolab/admin/server/index.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- index.php	22 May 2003 17:50:35 -0000	1.6
+++ index.php	14 Jun 2003 13:32:52 -0000	1.7
@@ -5,25 +5,24 @@
  This program is Free Software under the GNU General Public License (>=v2).
  Read the file COPYING that comes with this packages for details.
 */
-  include("head.php");
-  This("server/");
-  Head();
+	$ifiles = get_included_files();
+	if ($ifiles[3] == '') {
+		include_once("head.php");
+		This("server/");
+		Head();
+		function debug ($a) {
+		//      print "debug: $a<br>\n";
+		}
+	}
 ?>
 
-<TABLE WIDTH="80%" CELLSPACING=0 CELLPADDING=0 BORDER=0>
-<TR><TD HEIGHT=20></TD></TR>
-<TR><TD><center><H1> Server Settings </H1></center></TD></TR>
-<TR><TD><CENTER>
-
+<div class="maintitle">Server Settings</div>
 <?
-function debug ($a) {
-//      print "debug: $a<br>\n";
-}
-
+	
 debug("debug is on");
 
 $errors = array();
-   
+  
 $hostname = "";
 $mydomain = ""; 
 $change = "";
@@ -104,7 +103,7 @@
             array_push($errors, "LDAP Error: failed to modify kolab config object ".ldap_error($link));
          break;
    }
-   
+  
    if (($result = ldap_read($link, "k=kolab,".$_SESSION['base_dn'], "(objectclass=*)")) &&
        ($entry = ldap_first_entry($link, $result)) &&
        ($attrs = ldap_get_attributes($link, $entry))) {
@@ -114,9 +113,8 @@
    } else array_push($errors, "LDAP Error: could not kolab configuration object ".ldap_error($link));
 
    ldap_close($link);
-
-   print("<form method=\"GET\" action=\"$myself\">\n");
-   print("<table cellspacing=10 cellpadding=10>\n");
+   print("<div class=\"contenttable\"><form method=\"GET\" action=\"$myself\">\n");
+   print("<TABLE class=\"contentform\" nosave>\n");
    print("<tr><th> Attribute </th><th> Value </th><th> Comment </th></tr>\n");
    print("<tr><td> Hostname</td>\n");
    print("<td><input type=\"text\" name=\"hostname\" size=25 maxlength=80 value=\"$hostname\"></td>\n");
@@ -127,24 +125,24 @@
    print("</table>\n");
    print("<input type=\"hidden\" name=\"change\" value=\"change\">\n");
 
-   print("</center></td></tr>\n");   
-   print("<tr><td><center><table width=\"40%\" cellspacing=10 cellpadding=10><tr>\n"); 
+   print("<table class=\"contentform\"><tr>\n"); 
    printf("<td><input type=\"image\" src=\"../pics/button_ok.png\" name=\"change\"></td>");
    printf("<td><a href=\"../index.php\"> <img src=\"../pics/button_cancel.png\" alt=\"cancel\"></a></td></tr>\n");
-   printf("</center></table></form>\n");
+   printf("</center></table></form></div>\n");
 }
 
-print("</center></td></tr></table>\n");
+
 
 if ($errors) {
-   print("<TABLE WIDTH=\"80%\" CELLSPACING=20 CELLPADDING=0 BORDER=0>\n");
-   print("<TR><TD HEIGHT=20></TD></TR>\n");
-   print("<TR><TD><H3> There were Errors : </H3></TD></TR>\n");
-   print("<TR><TD>\n");
-   foreach ($errors as $message) print("<span style=\"color:#FF0000\">".$message."</span><br>");
+   print("<TABLE style=\"errors\">\n");
+   print("<TR><TD class=\"head\"> There were Errors : </TD></TR>\n");
+   print("<TR><TD class=\"body\">\n");
+   foreach ($errors as $message) print($message); 
    print("</TD></TR>\n");
    print("</TABLE>\n");
 }
+
+
 
 Foot();  
 ?>





More information about the devel mailing list