[Kolab-devel] server/kolab/kolab/admin/include headfoot.php,1.8,1.9 kolab.css,1.2,1.3 myfunctions.php,1.4,1.5 by martin at doto.intevation.de
root at intevation.de
root at intevation.de
Sat Jun 14 15:02:12 CEST 2003
Update of /kolabrepository/server/kolab/kolab/admin/include
In directory doto:/tmp/cvs-serv19510
Modified Files:
headfoot.php kolab.css myfunctions.php
Log Message:
Martin K.: Integrate Konsec CCS contribution
Index: headfoot.php
===================================================================
RCS file: /kolabrepository/server/kolab/kolab/admin/include/headfoot.php,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- headfoot.php 10 Jun 2003 18:47:55 -0000 1.8
+++ headfoot.php 14 Jun 2003 13:02:10 -0000 1.9
@@ -8,11 +8,23 @@
session_start();
include("session_vars.php");
include("ldap_utils.php");
+ include("preferences.php");
+ // checks the browser and finally starts the low version
+ if ($_lowversion == 1) {
+ $browserdetail = getenv('HTTP_USER_AGENT');
+ $browsername = strtok($browserdetail, "/");
+ $browserversion = intval(substr(strstr(strtok($browserdetail, " "), "/"), 1));
+ if ($browsername == "Mozilla" && $browserversion >= 5) {
+ $_lowversion = 0;
+ }
+ }
+
Function Mainhead($title, $noindex=0) {
global $onload;
global $_pid;
global $_prefx;
+ global $HTTP_USER_AGENT, $_lowversion, $_style;
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-cache, must-revalidate");
@@ -23,8 +35,7 @@
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
- <title>Kolab Server <? echo($title); ?></title>
- <link rel="stylesheet" href="<? echo($_prefx); ?>include/kolab.css" type="text/css">
+ <title>KONSEC Kolab Server <? echo($title); ?></title>
<meta name="robots" content="noindex">
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<meta name="Content-Language" content="us">
@@ -33,29 +44,38 @@
<meta name="author" content="Martin Konold">
<meta name="copyright" content="Martin Konold, Erfrakon martin.konold at erfrakon.de">
<meta name="publisher" content="Martin Konold">
- </head>
+ <link rel="stylesheet" href="<? echo($_prefx); ?>include/<? echo ($_style); ?>.css" type="text/css">
+ <?
+ // if it is not a mozilla, load another lowversion style sheet
+ if ($_lowversion == 1) { ?>
+ <link rel="stylesheet" href="<? echo($_prefx); ?>include/<? echo ($_style); ?>_low.css" type="text/css">
+ <? }
+ if ($noindex != 0) { ?>
+ <link rel="stylesheet" href="<? echo($_prefx); ?>include/plain.css" type="text/css">
+ <? } ?>
+ </head>
- <body<? echo($onload); ?> bgcolor="#ffffff" <? if ($noindex == 0) { ?> background="<? echo($_prefx); ?>pics/bg.png" <? }?> >
+ <body<? echo($onload); ?> <? if ($noindex == 0) { ?> background="<? echo($_prefx); ?>pics/bg.png" <? }?> >
<? $uid=$_SERVER['PHP_AUTH_USER'];
$group_id = uid2group($uid);
$dn= urlencode(uid2dn($uid));
+
+
?>
-
+
<? $myself = $_SERVER['PHP_SELF'];
-// $path = dirname(getenv(PATH_TRANSLATED));
-// chdir($path);
-// $language="de_DE";
-// putenv("LANG=$language");
-// setlocale(LC_ALL, $language);
+ $path = dirname(getenv(PATH_TRANSLATED));
+ chdir($path);
+ $language="de_DE";
+ putenv("LANG=$language");
+ setlocale(LC_ALL, $language);
// echo strftime ("%A %e %B %Y", time());
-// bindtextdomain("messages", "./locales");
-// textdomain('messages');
+ bindtextdomain("messages", "./locales");
+ textdomain('messages');
?>
-
-<table align="left" border="0" width="100%" cellspacing="0" cellpadding="0" summary="general layout">
- <tr> <? if ($noindex == 0) { ?>
- <td valign=top>
- <table width="100" cellspacing="0" cellpadding="0" border="0" summary="left menu">
+ <div class="konsecanim"><img src="<? echo($_prefx); ?>pics/konseckreis.png" width="16" alt=""></div>
+ <div class="userinformation"><b><i>KONSEC</i></b> Kolab server running | User: <? echo ($uid); ?> | Role: <? echo ($group_id); ?></div>
+ <div class="navlogo">
<?
if ($_pid == 15): idxImg("login");
elseif ($_pid == 1): idxImg("user");
@@ -68,74 +88,99 @@
elseif ($_pid == 20): idxImg("kolab");
else: idxImg("dummy");
endif;
-
+ ?>
+ </div>
+<div class="navigation">
+ <?
idxSpace(5);
idxSpace(50);
- idxLink("login/","Login","Login");
- if ($_pid == 15) idxExtend();
-
+ echo ("<div class=\"kolabmenu\">");
+ idxLink("login/","Login","Login");
+ if ($_pid == 15) { echo ("<div class=\"submenu\">"); idxExtend(); echo ("</div>"); }
+ echo ("</div>");
+
if ($group_id=="user"){
idxSpace(20);
idxSeparator();
idxLink("user/create_user.php?action=modify&dn=$dn","My User Settings","My User Settings");
- if ($_pid == 1) idxExtend();
+ if ($_pid == 1) { echo ("<div class=\"submenu\">"); idxExtend(); echo ("</div>"); }
}
if ($group_id=="addressbook"){
idxSpace(20);
idxSeparator();
idxLink("addressbook/","Addressbook","Addressbook");
- if ($_pid == 31) idxExtend();
+ if ($_pid == 31) { echo ("<div class=\"submenu\">"); idxExtend(); echo ("</div>"); }
}
if (($group_id=="admin")||($group_id=="maintainer")){
idxSeparator();
idxLink("user/","Users","Users");
- if ($_pid == 1) idxExtend();
+ if ($_pid == 1) { echo ("<div class=\"submenu\">"); idxExtend(); echo ("</div>"); }
}
if (($group_id=="admin")||($group_id=="maintainer")){
idxSeparator();
idxLink("addressbook/","Addressbook","Addressbook");
- if ($_pid == 31) idxExtend();
+ if ($_pid == 31) { echo ("<div class=\"submenu\">"); idxExtend(); echo ("</div>"); }
}
if (($group_id=="admin")||($group_id=="maintainer")){
idxSeparator();
- idxLink("sharedfolder/","Shared Folder","Shared Folder");
- if ($_pid == 30) idxExtend();
+ idxLink("sharedfolder/","Shared Folders","Shared Folders");
+ if ($_pid == 30) { echo ("<div class=\"submenu\">"); idxExtend(); echo ("</div>"); }
}
if ($group_id=="admin"){
idxSeparator();
- idxLink("maintainer/","Maintainer","Maintainer");
- if ($_pid == 3) idxExtend();
+ idxLink("maintainer/","Maintainers","Maintainers");
+ if ($_pid == 3) { echo ("<div class=\"submenu\">"); idxExtend(); echo ("</div>"); }
idxSeparator();
- idxLink("administrator/","Administrator","Administrator");
- if ($_pid == 4) idxExtend();
-
+ idxLink("administrator/","Administrators","Administrators");
+ if ($_pid == 4) { echo ("<div class=\"submenu\">"); idxExtend(); echo ("</div>"); }
+/*
+ echo ("<div class=\"kolabmenu\">");
idxSeparator();
idxLink("server/","Server","Server");
- if ($_pid == 5) idxExtend();
-
+ if ($_pid == 5) { echo ("<div class=\"submenu\">"); idxExtend(); echo ("</div>"); }
+ echo ("</div>");
+*/
idxSeparator();
idxLink("service/","Services","Services");
- if ($_pid == 6) idxExtend();
+ if ($_pid == 6) { echo ("<div class=\"submenu\">"); idxExtend(); echo ("</div>"); }
}
idxSpace(20);
idxSeparator();
idxLink("kolab/","About Kolab","About Kolab");
- if ($_pid == 20) idxExtend();
+ if ($_pid == 20) { echo ("<div class=\"submenu\">"); idxExtend(); echo ("</div>"); }
idxSpace(20);
- idxImgSpecial("seitenbalken");
- ?>
- </table>
- </td>
- <td valign="bottom" width="20" rowspan="2"> </td>
- <? } ?>
-
- <td valign="top" width="100%" rowspan="2">
+ ?>
+</div>
+<div class="navspecial">
+ <?
+ idxImgSpecial("seitenbalken");
+ ?>
+</div>
+<div class="background"></div>
+<div class="konsecspecial">
+ <?
+ idxImgSpecial("kreisecke");
+ ?>
+</div>
+<div class="konseclogo">
+ <?
+ idxImgSpecial("konsec_kolab");
+ ?>
+</div>
+<div class="main">
+ <div class="mainlogo">
+ <?
+ idxImgSpecial("kolab_logo");
+ ?>
+
+ </div>
+
<? } ?>
<? Function Foot() {
global $_prefx;
- print("</td> </tr> </table> </body> </html>");
+ print("</div> </body> </html>");
}
?>
Index: kolab.css
===================================================================
RCS file: /kolabrepository/server/kolab/kolab/admin/include/kolab.css,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- kolab.css 31 Mar 2003 01:25:32 -0000 1.2
+++ kolab.css 14 Jun 2003 13:02:10 -0000 1.3
@@ -1,22 +1,112 @@
- A:LINK {
- font-family : Helvetica, Arial, sans-serif;
- font-weight : bold;
- font-style : normal;
- text-decoration : none;
- color : #0000FF;
- text-transform : none
- }
- A:VISITED {
- font-family : Helvetica, Arial, sans-serif;
- font-weight : bold;
- font-style : normal;
- text-decoration : none;
- color : #0000FF;
- text-transform : none
- }
+body {
+ background-color: #FFFFFF;
+ font-family : Helvetica, Arial, sans-serif;
+ font-size: 100%;
+ padding-top: 4px;
+ padding-left: 0px;
+ border: 0px;
+ margin: 0px;
+}
+ div.userinformation { display: none; }
+ div.konseclogo, div.konsecspecial, div.background { display: none; }
+ div.navigation {
+ border: 0px;
+ width: 130px;
+ height: 100%;
+ padding: 0px;
+ padding-left: 7px;
+ position: fixed;
+ left: 0px;
+ top: 150px;
+ z-index: 2;
+ }
+ div.konsecanim { display: none; }
+ div.navlogo {
+ top: 3px;
+ left: 3px;
+ position: fixed;
+ }
+ div.navspecial {
+ bottom: 0px;
+ padding: 0px;
+ left: 0px;
+ position: fixed;
+ width: 130px;
+ z-index: 1;
+ }
+
+ div.seperator {
+ width: 120px;
+ text-align: center;
+ border: solid 0px;
+ float: none;
+ clear: both;
+ }
+
+ img.seperator {
+ height: 1px;
+ width: 120px;
+ }
+
+ img.space {
+ width: 1px;
+ border: solid 0px;
+ }
+ img.spaceh {
+ height: 1px;
+ border: solid 0px;
+ }
+ div.subnavitext, div.navitext {
+ text-align: center;
+ float: left;
+ }
+
+ div.navpointer {
+ width: 10px;
+ height: 16px;
+ left: 7px;
+ float: left;
+ border: solid 0px red;
+ padding-top: 3px;
+ padding-left: 0px;
+ }
+
+ img.pointer {
+ width: 10px;
+ height: 9px;
+ padding-top: 0px;
+ }
+
+ img.point {
+ width: 9px;
+ height: 8px;
+ }
+
+ div.navcontent, div.navcontenton {
+ height: 20px;
+ float: left;
+ border: solid 0px blue;
+ text-align: left;
+ vertical-align: top;
+ }
+ div.subnavcontent, div.subnavcontenton {
+ height: 20px;
+ margin: 0px;
+ padding: 0px;
+ vertical-align: top;
+ float: left;
+ text-align: left;
+ overflow: hidden;
+ border: solid 0px blue;
+ }
+ div.submenu {
+ margin: 0px;
+ padding: 0px;
+ border: solid 0px;
+ }
+
.menu {
- font-family : Helvetica, Arial, sans-serif;
font-weight : bold;
font-style : normal;
font-size : 100%;
@@ -25,25 +115,145 @@
text-transform : none
}
- .submenu {
- font-family : Helvetica, Arial, sans-serif;
+ a.subsubmenu, span.subsubmenu, a.submenu, span.submenu {
font-weight : bold;
font-style : normal;
font-size : 80%;
text-decoration : none;
color : #0000FF;
- text-transform : none
- margin-left: 10%;
- margin-right: 10%;
- margin-top: 2%;
- margin-bottom: 2%;
+ text-transform : none;
+
}
.fax {
- font-family : Helvetica, Arial;
font-size : 12pt;
text-decoration : none;
color : #000000;
- text-transform : none
+ text-transform : none;
}
+
+
+ A:LINK {
+ font-weight : bold;
+ font-style : normal;
+ text-decoration : none;
+ color : #0000FF;
+ text-transform : none;
+ }
+ A:VISITED {
+ font-weight : bold;
+ font-style : normal;
+ text-decoration : none;
+ color: #0000FF;
+ text-transform : none;
+ }
+
+ .warning { color: #FF0000; }
+ .active { color: #00FF00; }
+ .inactive { color: #FF0000; }
+ .unuseable { color: #454545; }
+
+ /* Main Box Styles */
+ div.main {
+ width: 80%;
+ padding-top: 20px;
+ position: absolute;
+ top: 0px;
+ left: 158px;
+ text-align: center;
+ }
+
+ div.maintitle {
+ font-size: 180%;
+ font-weight: bold;
+ text-align: center;
+ padding-bottom: 10px;
+ }
+ div.mainsubtitle, div.message {
+ text-align: center;
+ }
+ div.alphabetlisting {
+ font-size: 150%;
+ text-align: center;
+ padding: 10px;
+ padding-bottom: 10px;
+ }
+
+ /* box containing normal text */
+ div.contentsimple {
+ text-align: left;
+ }
+
+ /* box with table containing all stuff */
+ div.contenttable {
+ text-align: center;
+ border: 0px;
+ }
+
+ table.content {
+ width: 95%;
+ border: solid black 1px;
+ background-color: #DCDCDC;
+ padding: 0px;
+ margin: 3px;
+ border-collapse: collapse;
+ border-spacing: 0px;
+ border-color: #767676;
+ text-align: center;
+
+ }
+ /* for pages with forms */
+ table.contentform {
+ padding: 10px;
+ padding-top: 10px;
+ margin: auto;
+ border: 0px;
+ text-align: left;
+ }
+
+ td.nocontent, thead {
+ text-align: center;
+ border-collapse: collapse;
+ border-color: #767676;
+ border: solid 0px;
+ margin: 0px;
+ padding: 0px;
+
+ }
+ thead { font-weight: bold; }
+
+ th.border, td.content, td.contentaction {
+ border: solid 1px;
+ border-collapse: collapse;
+ border-color: #767676;
+ padding: 3px;
+ margin: 0px;
+ text-align: left;
+ }
+ td.contentaction { width: 150px; }
+ th.border { text-align: center; }
+
+ div.server {
+ text-align: center;
+ border: solid 0px;
+ padding-top: 30px;
+ }
+ table.button {
+ padding: 10px;
+ padding-top: 10px;
+ margin: auto;
+ border: 0px;
+ text-align: left;
+ }
+ a img { border: 0px; }
+
+ /* Styles for the error table at the bottom of the pages */
+ table.errors {
+ width: 100%;
+ margin: 20px;
+ padding: 0px;
+ border: solid black 0px;
+ }
+ table.errors td.head { text-align: center; font-size: 120%; }
+ table.errors td.body { color:#FF0000; }
Index: myfunctions.php
===================================================================
RCS file: /kolabrepository/server/kolab/kolab/admin/include/myfunctions.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- myfunctions.php 22 May 2003 17:50:35 -0000 1.4
+++ myfunctions.php 14 Jun 2003 13:02:10 -0000 1.5
@@ -47,45 +47,43 @@
global $_prefx;
global $_bildnr; $_bildnr+=1;
- echo("<TR>");
- echo("<TD COLSPAN=3>");
- echo("<IMG ALT=\"\" WIDTH=1 HEIGHT=".$height." "
- ."SRC=\"".$_prefx."pics/empty.gif\"></TD>");
- echo("</TR>");
+ echo("<div class=\"space\"><IMG ALT=\"\" class=\"space\" HEIGHT=".$height." "
+ ."SRC=\"".$_prefx."pics/empty.gif\"></div>");
+ }
+
+ Function idxSpaceh($width) {
+ global $_prefx;
+ global $_bildnr; $_bildnr+=1;
+
+ echo("<div class=\"spaceh\"><IMG ALT=\"\" class=\"spaceh\" WIDTH=".$width." "
+ ."SRC=\"".$_prefx."pics/empty.gif\"></div>");
}
Function idxSeparator() {
global $_prefx;
global $_bildnr; $_bildnr++;
- echo("<tr><td align=\"left\" colspan=\"3\" height=\"1\">");
- echo("<img width=\"120\" height=\"1\" src=\"".$_prefx."pics/black.gif\" alt=\"-\"></td></tr>\n");
+ echo("<div class=\"seperator\"><img class=\"seperator\" src=\"".$_prefx."pics/black.gif\" alt=\"\"></div>\n");
}
Function idxImg($pic) {
global $_prefx;
global $_bildnr; $_bildnr++;
- echo("<tr><td align=\"left\" colspan=\"3\">");
- echo("<img alt=\"-\" src=\"".$_prefx."pics/".$pic.".gif\">");
- echo("</td></tr>");
+ echo("<img alt=\"\" src=\"".$_prefx."pics/".$pic.".gif\">");
}
Function idxImgSpecial($pic) {
global $_prefx;
global $_bildnr; $_bildnr++;
- echo("<tr><td align=\"left\" colspan=\"3\">");
- echo("<img width=\"130\" alt=\"-\" src=\"".$_prefx."pics/".$pic.".gif\">");
- echo("</td></tr>");
+ echo("<img alt=\"\" src=\"".$_prefx."pics/".$pic.".gif\">");
}
Function idxText($txt) {
- echo("<tr><td align=\"left\" colspan=\"3\">");
echo("<span class=\"menu\">");
echo($txt);
echo("</span>");
- echo("</td></tr>");
}
Function idxSimpleImgLink($link, $pic, $txt) {
@@ -108,27 +106,23 @@
global $_this;
global $_sub;
global $_bildnr;
-
- echo("<tr>\n");
+ echo ("<div class=\"navitext\"><div class=\"navpointer\">");
if ($_this == $link) {
$_bildnr++;
- echo("<td width=\"10\">"
- ."<img alt=\"=>\" width=\"10\" height=\"9\" src=\"".$_prefx."pics/arrow_r_red.gif\"></td>\n");
+ echo("<img class=\"pointer\" alt=\"=>\" src=\"".$_prefx."pics/arrow_r_red.gif\">");
} else if ($_sub == $link) {
$_bildnr++;
- echo("<td width=\"10\">"
- ."<img alt=\"*\" width=\"9\" height=\"8\" src=\"".$_prefx."pics/point.gif\"></td>\n");
+ echo("<img class=\"point\" alt=\"*\" src=\"".$_prefx."pics/point.gif\">");
} else
- echo("<td></td>");
- echo("<td width=\"100\">");
+ idxSpaceh(6);
+ echo ("</div>");
+
if ($_this == $link)
- echo("<font face=\"Helvetica,Arial\" size=\"3\"><b><span class=menu>$name</span></b></font>");
+ echo("<div class=\"navcontenton\"><span class=menu>$name</span>");
else
- echo("<a href=\"".$_prefx."$link\"> "
- ."<font face=\"helvetica,arial\" size=\"3\"><b><span class=menu>$name</span></b></font>" ."</a>");
- echo("</td>\n");
- echo("<td></td>");
- echo("</tr>");
+ echo("<div class=\"navcontent\"><a class=\"menu\" href=\"".$_prefx."$link\"> "
+ .$name."</a>");
+ echo ("</div></div>");
}
Function idxSubLink($link, $name, $txt) {
@@ -137,27 +131,24 @@
global $_sub;
global $_bildnr;
- echo("<tr>\n");
+ echo ("<div class=\"subnavitext\"><div class=\"navpointer\">");
if ($_this == $link) {
$_bildnr++;
- echo("<td valign=\"center\" width=\"10\">"
- ."<img ALT=\"=>\" width=\"10\" height=\"9\" src=\"".$_prefx."pics/arrow_r_red.gif\"></td>\n");
+ echo("<img ALT=\"=>\" class=\"pointer\" src=\"".$_prefx."pics/arrow_r_red.gif\">");
} else if ($_sub == $link) {
$_bildnr++;
- echo("<td valign=\"center\" width=\"10\">"
- ."<img alt=\"*\" width=\"9\" height=\"8\" src=\"".$_prefx."pics/point.gif\"></td>\n");
+ echo("<img alt=\"*\" class=\"point\" src=\"".$_prefx."pics/point.gif\">");
} else
- echo("<td></td>");
- echo("<td width=\"100\">");
+ idxSpaceh(10);
+ echo ("</div>");
+
if ($_this == $link)
- echo("<font face=\"helvetica,arial\" size=\"3\"><b><span class=\"submenu\">$name</span></b></font>");
+ echo("<div class=\"subnavcontenton\"><span class=\"submenu\">$name</span>");
else
- echo("<a href=\"".$_prefx."$link\"> "
- ."<font face=\"helvetica,arial\" size=\"3\"><b><span class=\"submenu\">$name</span></b></font>"
+ echo("<div class=\"subnavcontent\"><a class=\"submenu\" href=\"".$_prefx."$link\"> "
+ .$name
."</a>");
- echo("</td>\n");
- echo("<td></td>");
- echo("</tr>");
+ echo ("</div></div>");
}
Function idxSubSubLink($link, $name, $txt) {
@@ -166,28 +157,25 @@
global $_sub;
global $_bildnr;
- echo("<TR>\n");
+ echo ("<div class=\"navitext\"><div class=\"navpointer\">");
if ($_this == $link) {
$_bildnr++;
- echo("<TD VALIGN=center WIDTH=10>"
- ."<IMG ALT=\"=>\" WIDTH=10 HEIGHT=9 SRC=\"".$_prefx."pics/arrow_r_red.gif\"></td>\n");
+ echo("<IMG ALT=\"=>\" class=\"pointer\" SRC=\"".$_prefx."pics/arrow_r_red.gif\">");
} else if ($_sub == $link) {
$_bildnr++;
- echo("<TD VALIGN=center WIDTH=10>"
- ."<IMG ALT=\"*\" WIDTH=9 HEIGHT=8 SRC=\"".$_prefx."pics/point.gif\"></TD>\n");
+ echo("<IMG ALT=\"*\" class=\"point\" SRC=\"".$_prefx."pics/point.gif\">");
} else
- echo("<TD></TD>");
- echo("<TD WIDTH=100>");
+ idxSpaceh(14);
+ echo ("</div>");
+
if ($_this == $link)
- echo(" <FONT FACE=\"Helvetica,Arial\" SIZE=3><B><SPAN CLASS=submenu>$name</SPAN></B></FONT>");
+ echo("<div class=\"subnavcontenton\"> <span class=\"subsubmenu\">".$name."</span>");
else
- echo(" <A HREF=\"".$_prefx."$link\" "
+ echo("<div class=\"subnavcontent\"> <A class=\"subsubmenu\" HREF=\"".$_prefx."$link\" "
."OnMouseOver=\"window.status='$txt';return true;\" "
."OnMouseOut=\"window.status='';return true;\">"
- ."<FONT FACE=\"Helvetica,Arial\" SIZE=3><B><SPAN CLASS=submenu>$name</SPAN></B></FONT>"
+ ."$name"
."</A>");
- echo("</TD>\n");
- echo("<TD></TD>");
- echo("</TR>");
+ echo ("</div></div>");
}
?>
More information about the devel
mailing list