new interface from justweb

This commit is contained in:
seek3r 2001-01-09 21:35:30 +00:00
parent 5422e66f34
commit dd5a75858b
16 changed files with 504 additions and 0 deletions

View File

@ -0,0 +1,26 @@
<table border="0" width="100%">
<tr>
<td align="left">
<a href="http://www.phpgroupware.org" target="_new"><img src="{webserver_url}/phpGroupWare.jpg" border="0"></a>
</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td align="center">{phpgw_version}</td>
</tr>
<tr>
<td>Note: This will be some text on phpGroupWare it self</td>
</tr>
<tr>
<td><hr></td>
</tr>
<tr>
<td align="center">
{phpgw_app_about}
</td>
</tr>
</table>

View File

@ -0,0 +1,12 @@
<tr>
<td align="center"><font size="5"><b>{app_header}<b></font></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td align="center"><b>Sorry, no futher information is avaiable on this application.</b></td>
</tr>

View File

@ -0,0 +1,24 @@
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="7" width="59"><img src="{img_root}/side_bar_bottom.gif" width="59" height="7"></td>
<td></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="7"><img src="{img_root}/menu_bar_left.gif" width="7" height="24"></td>
<td background="{img_root}/menu_bar_bg.gif" width="100%">&nbsp;</td>
<td width="9"><img src="{img_root}/menu_bar_right.gif" width="9" height="24"></td>
</tr>
</table>
</td>
</tr>
<tr><td background="{img_root}/blue_filler.gif" height="20"><font color="ffffff">{user_info}</font></td></tr></table>

View File

@ -0,0 +1,26 @@
<?php
/**************************************************************************\
* phpGroupWare *
* http://www.phpgroupware.org *
* -------------------------------------------- *
* This program is free software; you can redistribute it and/or modify it *
* under the terms of the GNU General Public License as published by the *
* Free Software Foundation; either version 2 of the License, or (at your *
* option) any later version. *
\**************************************************************************/
/* $Id$ */
if ($phpgw_info["server"]["htmlcompliant"]) {
$bodyheader = "BGCOLOR=\"".$phpgw_info["theme"]["bg_color"]."\" ALINK=\"".$phpgw_info["theme"]["alink"]."\" LINK=\"".$phpgw_info["theme"]["link"]."\" VLINK=\"".$phpgw_info["theme"]["vlink"]."\"";
} else {
$bodyheader = "BGCOLOR=\"".$phpgw_info["theme"]["bg_color"]."\"";
}
$tpl = new Template($phpgw_info["server"]["template_dir"]);
$tpl->set_unknowns("remove");
$tpl->set_file(array("head" => "head.tpl"));
$tpl->set_var("webserver_url", $phpgw_info["server"]["webserver_url"]);
$tpl->set_var("website_title", $phpgw_info["server"]["site_title"]);
$tpl->set_var("body_tags",$bodyheader);
echo $tpl->finish($tpl->parse("out","head"));

View File

@ -0,0 +1,85 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<!-- BEGIN head -->
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META name="AUTHOR" content="phpGroupWare http://www.phpgroupware.org">
<META NAME="description" CONTENT="phpGroupWare">
<META NAME="keywords" CONTENT="phpGroupWare">
<STYLE type="text/css">
a {text-decoration:none;}
<!--
A:link{text-decoration:none}
A:visted{text-decoration:none}
A:active{text-decoration:none}
body { margin-top: 0px; margin-right: 0px; margin-left: 0px}
.tablink { color: #000000; }
-->
</STYLE>
<TITLE>{website_title}</TITLE>
<script language="JavaScript" src="{webserver_url}/phpgwapi/templates/justweb/navcond.js"></script>
<script language="JavaScript">
var myNavBar1 = new NavBar(0);
var dhtmlMenu;
//define menu items (first parameter of NavBarMenu specifies main category width, second specifies sub category width in pixels)
//add more menus simply by adding more "blocks" of same code below
dhtmlMenu = new NavBarMenu(60, 120);
dhtmlMenu.addItem(new NavBarMenuItem("Home", "{webserver_url}/"));
myNavBar1.addMenu(dhtmlMenu);
dhtmlMenu = new NavBarMenu(60, 140);
dhtmlMenu.addItem(new NavBarMenuItem("Edit", ""));
dhtmlMenu.addItem(new NavBarMenuItem("Add new Appointment", "{webserver_url}/calendar/day.php"));
dhtmlMenu.addItem(new NavBarMenuItem("Add new Todo", "{webserver_url}/todo/add.php"));
myNavBar1.addMenu(dhtmlMenu);
dhtmlMenu = new NavBarMenu(125, 140);
dhtmlMenu.addItem(new NavBarMenuItem("Preferences", ""));
dhtmlMenu.addItem(new NavBarMenuItem("General", "{webserver_url}/preferences"));
dhtmlMenu.addItem(new NavBarMenuItem("Email", "{webserver_url}/email/preferences.php"));
dhtmlMenu.addItem(new NavBarMenuItem("Calendar", "{webserver_url}/calendar/preferences.php"));
myNavBar1.addMenu(dhtmlMenu);
dhtmlMenu = new NavBarMenu(62, 120);
dhtmlMenu.addItem(new NavBarMenuItem("Help", ""));
dhtmlMenu.addItem(new NavBarMenuItem("General", "/"));
myNavBar1.addMenu(dhtmlMenu);
//set menu colors
myNavBar1.setColors("#343434", "#eeeeee", "#60707C", "#ffffff", "#888888", "#eeeeee", "#60707C", "#ffffff", "#777777")
myNavBar1.setFonts("Verdana", "Normal", "Normal", "10pt", "Verdana", "Normal", "Normal", "10pt");
//uncomment below line to center the menu (valid values are "left", "center", and "right"
//myNavBar1.setAlign("center")
var fullWidth;
function init() {
// Get width of window, need to account for scrollbar width in Netscape.
fullWidth = getWindowWidth()
- (isMinNS4 && getWindowHeight() < getPageHeight() ? 16 : 0);
myNavBar1.moveTo(10,36);
myNavBar1.resize(500 /*fullWidth*/);
myNavBar1.setSizes(0,1,1);
myNavBar1.create();
myNavBar1.setzIndex(2);
}
</script>
</HEAD>
<!-- END Head -->
<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="init();" {body_tags}>

View File

@ -0,0 +1,61 @@
<!-- BEGIN login_form -->
<html>
<head>
<title>{website_title} - Login</title>
</head>
<body bgcolor="FFFFFF">
<a href="http://www.phpgroupware.org"><img src="phpGroupWare.jpg" alt="phpGroupWare" border="0"></a>
<p>&nbsp;</p>
<center>{lang_message}</center>
<p>&nbsp;</p>
<table bgcolor="000000" border="0" cellpadding="0" cellspacing="0" width="40%" align="center">
<tr>
<td>
<table border="0" width="100%" bgcolor="486591" cellpadding="2" cellspacing="1">
<tr bgcolor="486591">
<td align="left">
<font color="fefefe">&nbsp;{lang_phpgw_login}</font>
</td>
</tr>
<tr bgcolor="e6e6e6">
<td valign="baselines">
<form method="post" action="{login_url}">
<table border="0" align="center" bgcolor="486591" width="100%" cellpadding="0" cellspacing="0">
<tr bgcolor="e6e6e6">
<td colspan="2" align="center">
{cd}
</td>
</tr>
<tr bgcolor="e6e6e6">
<td align="right"><font color="000000">{lang_username}:&nbsp;</font></td>
<td><input name="login" value="{cookie}"></td>
</tr>
<tr bgcolor="e6e6e6">
<td align="right"><font color="000000">{lang_password}:&nbsp;</font></td>
<td><input name="passwd" type="password"></td>
</tr>
<tr bgcolor="e6e6e6">
<td colspan="2" align="center">
<input type="submit" value="{lang_login}" name="submit">
</td>
</tr>
<tr bgcolor="e6e6e6">
<td colspan="2" align="right">
<font color="000000" size="-1">{version}</font>
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</td>
</tr>
</table>
</html>
<!-- END login_form -->

View File

@ -0,0 +1,14 @@
<!-- BEGIN form -->
<body bgcolor="FFFFFF">
<a href="http://www.phpgroupware.org"><img src="phpGroupWare.jpg" alt="phpGroupWare" border="0"></a>
<table border="0" height="94%" width="100%">
<tr>
<td align="center">
Opps! You caught us in the middle of a system upgrade.<br>Please, check back with us shortly.
</td>
</tr>
</table>
<!-- END form -->

View File

@ -0,0 +1,63 @@
<!-- BEGIN login_form -->
<html>
<head>
<title>{website_title} - Login</title>
</head>
<body bgcolor="FFFFFF">
<a href="http://www.phpgroupware.org"><img src="phpGroupWare.jpg" alt="phpGroupWare" border="0"></a>
<p>&nbsp;</p>
<center>{lang_message}</center>
<p>&nbsp;</p>
<table bgcolor="000000" border="0" cellpadding="0" cellspacing="0" width="60%" align="center">
<tr>
<td>
<table border="0" width="100%" bgcolor="486591" cellpadding="2" cellspacing="1">
<tr bgcolor="486591">
<td align="left">
<font color="fefefe">&nbsp;{lang_phpgw_login}</font>
</td>
</tr>
<tr bgcolor="e6e6e6">
<td valign="baselines">
<form method="post" action="{login_url}">
<table border="0" align="center" bgcolor="486591" width="100%" cellpadding="0" cellspacing="0">
<tr bgcolor="e6e6e6">
<td colspan="3" align="center">
{cd}
</td>
</tr>
<tr bgcolor="e6e6e6">
<td align="right"><font color="000000">{lang_username}:</font></td>
<td align="right"><input name="login" value="{cookie}"></td>
<td align="left">&nbsp;@&nbsp;<select name="logindomain">{select_domain}</select></td>
</tr>
<tr bgcolor="e6e6e6">
<td align="right"><font color="000000">{lang_password}:</font></td>
<td align="right"><input name="passwd" type="password"></td>
<td>&nbsp;</td>
</tr>
<tr bgcolor="e6e6e6">
<td colspan="3" align="center">
<input type="submit" value="{lang_login}" name="submit">
</td>
</tr>
<tr bgcolor="e6e6e6">
<td colspan="3" align="right">
<font color="000000" size="-1">{version}</font>
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</td>
</tr>
</table>
</html>
<!-- END login_form -->

View File

@ -0,0 +1,114 @@
<?php
/**************************************************************************\
* phpGroupWare *
* http://www.phpgroupware.org *
* -------------------------------------------- *
* This program is free software; you can redistribute it and/or modify it *
* under the terms of the GNU General Public License as published by the *
* Free Software Foundation; either version 2 of the License, or (at your *
* option) any later version. *
\**************************************************************************/
/* $Id$ */
function parse_navbar($force = False)
{
global $phpgw_info, $phpgw, $PHP_SELF;
$tpl = new Template($phpgw_info["server"]["template_dir"]);
$tpl->set_unknowns("remove");
$tpl->set_file(array("navbar" => "navbar.tpl"));
$tpl->set_var("img_root",$phpgw_info["server"]["webserver_url"] . "/phpgwapi/templates/justweb/images");
$tpl->set_var("table_bg_color",$phpgw_info["theme"]["navbar_bg"]);
if ($phpgw_info["flags"]["navbar_target"]) {
$target = ' target="' . $phpgw_info["flags"]["navbar_target"] . '"';
}
while ($app = each($phpgw_info["navbar"])) {
if ($app[1]["title"] != "Home" && $app[1]["title"] != "Preferences" && ! ereg("About",$app[1]["title"]) && $app[1]["title"] != "Logout") {
$title = '<img src="' . $app[1]["icon"] . '" alt="' . $app[1]["title"] . '" title="'
. $app[1]["title"] . '" border="0">';
if ($phpgw_info["user"]["preferences"]["common"]["navbar_format"] == "icons_and_text") {
$title .= "<br>" . $app[1]["title"];
}
$applications .= '<br><a href="' . $app[1]["url"] . '"' . $target . '>' . $title . '</a>';
}
}
$tpl->set_var("applications",$applications);
$tpl->set_var("home_link",$phpgw_info["navbar"]["home"]["url"]);
$tpl->set_var("preferences_link",$phpgw_info["navbar"]["preferences"]["url"]);
$tpl->set_var("logout_link",$phpgw_info["navbar"]["logout"]["url"]);
$tpl->set_var("help_link",$phpgw_info["navbar"]["about"]["url"]);
$ir = $phpgw_info["server"]["webserver_url"] . "/phpgwapi/templates/justweb/images";
if (ereg($phpgw_info["server"]["webserver_url"] . "/index.php",$PHP_SELF)) {
$tpl->set_var("welcome_img",$ir . "/welcome-red.gif");
} else {
$tpl->set_var("welcome_img",$ir . "/welcome-grey.gif");
}
if (ereg("preferences",$PHP_SELF)) {
$tpl->set_var("preferences_img",$ir . "/preferences-red.gif");
} else {
$tpl->set_var("preferences_img",$ir . "/preferences-grey.gif");
}
$tpl->set_var("logout_img",$ir . "/logout-grey.gif");
/* if ($phpgw_info["server"]["showpoweredbyon"] == "top") {
$tpl->set_var("powered_by",lang("Powered by phpGroupWare version x",$phpgw_info["server"]["versions"]["phpgwapi"]));
}
if (isset($phpgw_info["navbar"]["admin"]) && isset($phpgw_info["user"]["preferences"]["common"]["show_currentusers"])) {
$db = $phpgw->db;
$db->query("select count(*) from phpgw_sessions");
$db->next_record();
$tpl->set_var("current_users",'<a href="' . $phpgw->link("/admin/currentusers.php") . '">&nbsp;'
. lang("Current users") . ': ' . $db->f(0) . '</a>');
} */
$tpl->set_var("user_info",$phpgw->common->display_fullname() . " - "
. lang($phpgw->common->show_date(time(),"l")) . " "
. lang($phpgw->common->show_date(time(),"F")) . " "
. $phpgw->common->show_date(time(),"d, Y"));
// Maybe we should create a common function in the phpgw_accounts_shared.inc.php file
// to get rid of duplicate code.
/* if ($phpgw_info["user"]["lastpasswd_change"] == 0) {
$api_messages = lang("You are required to change your password during your first login")
. '<br> Click this image on the navbar: <img src="'
. $phpgw_info["server"]["webserver_url"] . '/preferences/templates/'
. $phpgw_info["server"]["template_set"] . '/images/navbar.gif">';
} else if ($phpgw_info["user"]["lastpasswd_change"] < time() - (86400*30)) {
$api_messages = lang("it has been more then x days since you changed your password",30);
}
// This is gonna change
if (isset($cd)) {
$tpl->set_var("messages",$api_messages . "<br>" . checkcode($cd));
} */
// If the application has a header include, we now include it
if ($phpgw_info["flags"]["noheader"] && ! $phpgw_info["flags"]["noappheader"]) {
}
return $tpl->finish($tpl->parse("out","navbar"));
}
function parse_navbar_end()
{
global $phpgw_info, $phpgw;
$tpl = new Template($phpgw_info["server"]["template_dir"]);
$tpl->set_unknowns("remove");
$tpl->set_file(array("footer" => "footer.tpl"));
$tpl->set_var("img_root",$phpgw_info["server"]["webserver_url"] . "/phpgwapi/templates/justweb/images");
$tpl->set_var("table_bg_color",$phpgw_info["theme"]["navbar_bg"]);
$tpl->set_var("version",$phpgw_info["server"]["versions"]["phpgwapi"]);
$tpl->set_var("user_info",$phpgw->common->display_fullname() . " - "
. lang($phpgw->common->show_date(time(),"l")) . " "
. lang($phpgw->common->show_date(time(),"F")) . " "
. $phpgw->common->show_date(time(),"d, Y"));
echo $tpl->finish($tpl->parse("out","footer"));
}

View File

@ -0,0 +1,39 @@
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="218" height="33"><img src="{img_root}/logo.gif" alt="phpGroupWare"></td>
<td width="100%" valign="bottom" background="{img_root}/menu_filler.gif">&nbsp;</td>
<td valign="bottom" width="56" background="{img_root}/blue_filler.gif"><a href="/"><img src="{img_root}/tab_home.gif" width="56" height="23" border="0"></a></td>
<td valign="bottom" width="85" background="{img_root}/blue_filler.gif"><a href="{preferences_link}"><img src="{img_root}/tab_prefs.gif" width="85" height="23" border="0"></a></td>
<td valign="bottom" width="56" background="{img_root}/blue_filler.gif"><a href="{logout_link}"><img src="{img_root}/tab_logout.gif" width="56" height="23" border="0"></a></td>
<td valign="bottom" width="39" background="{img_root}/blue_filler.gif"><a href="{help_link}"><img src="{img_root}/tab_help.gif" width="39" height="23" border="0"></a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="7"><img src="{img_root}/menu_bar_left.gif" width="7" height="24"></td>
<td background="{img_root}/menu_bar_bg.gif" width="100%">&nbsp;</td>
<td width="9"><img src="{img_root}/menu_bar_right.gif" width="9" height="24"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="100%">
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
<tr>
<td height="7" width="59"><img src="{img_root}/side_bar_top.gif" width="59" height="7"></td>
<td></td>
</tr>
<tr>
<td valign="top" align="center" background="{img_root}/side_bar_bg.gif" height="100%" width="59">{applications}</td>
<td width="100%" valign="top">
<table width="100%" border="0" cellspacing="15" cellpadding="15">
<tr>
<td valign="top">

View File

@ -0,0 +1 @@
<td align="center" width="{width}">{value}</td>

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,5 @@
<!-- $Id$ -->
<!-- BEGIN portal_linkbox -->
<li><a href="{link}">{text}</a></li>
<!-- END portal_linkbox -->

View File

@ -0,0 +1,6 @@
<!-- $Id$ -->
<!-- BEGIN portal_listbox_footer -->
</ul>
</td>
<!-- END portal_listbox_footer -->

View File

@ -0,0 +1,6 @@
<!-- $Id$ -->
<!-- BEGIN portal_listbox_header -->
<td>
<ul>
<!-- END portal_listbox_header -->

View File

@ -0,0 +1,14 @@
<table border="{outer_border}" cellpadding="0" cellspacing="1" width="{outer_width}" bordercolor="{outer_bordercolor}" bgcolor="{outer_bgcolor}">
<tr>
<td align="center" background="{header_background_image}">{title}</td>
</tr>
<tr>
<td>
<table border="0" cellpadding="2" cellspacing="1" width="{inner_width}" bgcolor="{inner_bgcolor}" bordercolor="{outer_bordercolor}">
<tr>
{output}
</tr>
</table>
</td>
</tr>
</table>