|
From: <ope...@li...> - 2002-07-09 01:24:11
|
Update of /cvsroot/openposs/Server/theme/Default
In directory usw-pr-cvs1:/tmp/cvs-serv27071
Modified Files:
theme.css theme.php
Log Message:
Made minor theme changes.
Index: theme.css
===================================================================
RCS file: /cvsroot/openposs/Server/theme/Default/theme.css,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** theme.css 28 Jun 2002 02:10:22 -0000 1.2
--- theme.css 9 Jul 2002 01:24:09 -0000 1.3
***************
*** 6,12 ****
font-weight: normal;
margin-bottom: 0;
! margin-left: 0;
! margin-right: 0;
! margin-top: 0;
text-decoration: none;
}
--- 6,12 ----
font-weight: normal;
margin-bottom: 0;
! margin-left: 5px;
! margin-right: 5px;
! margin-top: 2px;
text-decoration: none;
}
***************
*** 21,24 ****
--- 21,45 ----
font-family: Tahoma, Verdana, sans-serif;
font-size: 15px;
+ }
+
+ H1 {
+ color: #000000;
+ font-family: Tahoma, Verdana, sans-serif;
+ font-size: 26px;
+ font-weight: bold;
+ }
+
+ H2 {
+ color: #000000;
+ font-family: Tahoma, Verdana, sans-serif;
+ font-size: 22px;
+ font-weight: bold;
+ }
+
+ H2 {
+ color: #000000;
+ font-family: Tahoma, Verdana, sans-serif;
+ font-size: 18px;
+ font-weight: bold;
}
Index: theme.php
===================================================================
RCS file: /cvsroot/openposs/Server/theme/Default/theme.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** theme.php 28 Jun 2002 02:10:22 -0000 1.3
--- theme.php 9 Jul 2002 01:24:09 -0000 1.4
***************
*** 13,20 ****
* $Title: This is a string of text to be used in the page title. *
******************************************************************************/
! function Theme_Open_Page($Title) {
! $Output = "<HTML><HEAD><TITLE>".$Title." :: $Title</TITLE>";
! $Output .= "<LINK href=\"theme/Default/theme.css\" rel=\"stylesheet\" type=\"text/css\"><BODY><DIV ALIGN=\"CENTER\"><H1>openPOS $Title</H1></DIV>";
return $Output;
}
--- 13,28 ----
* $Title: This is a string of text to be used in the page title. *
******************************************************************************/
! function Theme_Open_Page($Title,$menu="YES") {
! GLOBAL $CONFIG_VARS, $HTTP_SESSION_VARS;
! $Output = "<HTML><HEAD><TITLE>".$Title." :: $Title</TITLE>\n";
! $Output .= "<LINK href=\"theme/".$HTTP_SESSION_VARS["OutputTheme"]."/theme.css\" rel=\"stylesheet\" type=\"text/css\"></head>\n
! <BODY><table width=\"100%\" border=0><tr><TD width=\"100%\" align=\"center\"><H1>openPOS $Title</H1></td></tr></table>\n";
! if($menu != "NO")
! {
! $Output .= "<table border=0 width =\"100%\"><tr><td width=\"".$CONFIG_VARS["MenuWidth"]."\">";
! $Output .= DisplayMainMenu();
! }
! $Output .= "</td><TD valign=\"top\"> ";
return $Output;
}
***************
*** 33,38 ****
* None. *
******************************************************************************/
! function Theme_Close_Page() {
! $Output = "</BODY></HTML>";
return $Output;
}
--- 41,51 ----
* None. *
******************************************************************************/
! function Theme_Close_Page($menu="YES") {
!
! if($menu != "NO")
! {
! $Output = "</td></tr></table>";
! }
! $Output .= "</BODY></HTML>";
return $Output;
}
***************
*** 157,165 ****
* $Width: (OPTIONAL) width of the cell relative to the width of the table. *
******************************************************************************/
! function Theme_Open_Data_Cell($Align = "LEFT", $Width = "") {
$Output = "<TD ALIGN=\"$Align\"";
if (isset($Width)) {
$Output .= " WIDTH=\"$Width\"";
}
$Output .= ">";
return $Output;
--- 170,184 ----
* $Width: (OPTIONAL) width of the cell relative to the width of the table. *
******************************************************************************/
! function Theme_Open_Data_Cell($Align = "LEFT", $Width = "", $colSpan = "", $rowSpan = "") {
$Output = "<TD ALIGN=\"$Align\"";
if (isset($Width)) {
$Output .= " WIDTH=\"$Width\"";
}
+ if (isset($colSpan)) {
+ $Output .= " COLSPAN=\"$colSpan\"";
+ }
+ if (isset($rowSpan)) {
+ $Output .= " ROWSPAN=\"$rowSpan\"";
+ }
$Output .= ">";
return $Output;
***************
*** 211,215 ****
$Width2 = $Width -8;
$Width2 = $Width -12;
! $Output = "<table width=\"$Width\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=8 height=22><img src=\"theme/Default/images/menutopleft.png\" width=\"8\" height=\"22\" alt=\"\" border=\"0\"></td>
--- 230,234 ----
$Width2 = $Width -8;
$Width2 = $Width -12;
! $Output = "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=8 height=22><img src=\"theme/Default/images/menutopleft.png\" width=\"8\" height=\"22\" alt=\"\" border=\"0\"></td>
***************
*** 295,299 ****
******************************************************************************/
function Theme_Login_Screen() {
! $Output = Theme_Open_Page(_OPENPOSLOGINTITLE)."<DIV ALIGN=\"CENTER\">";
$Output .= "<FORM ACTION=\"./\" METHOD=\"GET\">";
$Output .= Theme_Menu_Open("300"," ")."<CENTER>".Theme_Open_Table().Theme_Open_Row().Theme_Open_Data_Cell("Right");
--- 314,318 ----
******************************************************************************/
function Theme_Login_Screen() {
! $Output = Theme_Open_Page(_OPENPOSLOGINTITLE,"NO")."<DIV ALIGN=\"CENTER\">";
$Output .= "<FORM ACTION=\"./\" METHOD=\"GET\">";
$Output .= Theme_Menu_Open("300"," ")."<CENTER>".Theme_Open_Table().Theme_Open_Row().Theme_Open_Data_Cell("Right");
***************
*** 303,312 ****
$Output .= "Password".Theme_Close_Data_Cell().Theme_Open_Data_Cell();
$Output .= "<INPUT TYPE=\"PASSWORD\" NAME=\"password\">".Theme_Close_Data_Cell();
! $Output .= Theme_Close_Row().Theme_Open_Row().Theme_Open_Data_Cell("Right");
! $Output .= "<BUTTON NAME=\"submit\" VALUE=\"submit\" TYPE=\"submit\">Login</BUTTON>";
! $Output .= Theme_Close_Data_Cell().Theme_Open_Data_Cell();
$Output .= "<BUTTON NAME=\"cancel\" TITLE=\"Cancel\" TYPE=\"submit\">Cancel</BUTTON>".Theme_Close_Data_Cell();
$Output .= Theme_Close_Row();
! $Output .= Theme_Close_Table()."<CENTER>".Theme_Menu_Close()."</FORM></DIV>".Theme_Close_Page();
return $Output;
--- 322,330 ----
$Output .= "Password".Theme_Close_Data_Cell().Theme_Open_Data_Cell();
$Output .= "<INPUT TYPE=\"PASSWORD\" NAME=\"password\">".Theme_Close_Data_Cell();
! $Output .= Theme_Close_Row().Theme_Open_Row().Theme_Open_Data_Cell("CENTER","","2");
! $Output .= "<BUTTON NAME=\"submit\" VALUE=\"submit\" TYPE=\"submit\">Login</BUTTON> ";
$Output .= "<BUTTON NAME=\"cancel\" TITLE=\"Cancel\" TYPE=\"submit\">Cancel</BUTTON>".Theme_Close_Data_Cell();
$Output .= Theme_Close_Row();
! $Output .= Theme_Close_Table("NO")."<CENTER>".Theme_Menu_Close()."</FORM></DIV>".Theme_Close_Page();
return $Output;
|