You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(35) |
Jul
(33) |
Aug
(8) |
Sep
|
Oct
|
Nov
|
Dec
|
---|
From: <ope...@li...> - 2002-07-09 01:22:18
|
Update of /cvsroot/openposs/Server/module/Scheduling In directory usw-pr-cvs1:/tmp/cvs-serv26533/Scheduling Added Files: admin.php module.php Log Message: Initial creation --- NEW FILE: admin.php --- <?php echo "<center><h2>I am the admin portion of the Scheduling Module.</h2></center>"; ?> --- NEW FILE: module.php --- <?php echo "<center><h2>I am the Scheduling Module.</h2></center>"; ?> |
From: <ope...@li...> - 2002-07-09 01:22:17
|
Update of /cvsroot/openposs/Server/module/Quote In directory usw-pr-cvs1:/tmp/cvs-serv26533/Quote Added Files: admin.php module.php Log Message: Initial creation --- NEW FILE: admin.php --- <?php echo "<center><h2>I am the admin portion of the Quote Module.</h2></center>"; ?> --- NEW FILE: module.php --- <?php echo "<center><h2>I am the Quote Module.</h2></center>"; ?> |
From: <ope...@li...> - 2002-07-09 01:22:17
|
Update of /cvsroot/openposs/Server/module/Inventory In directory usw-pr-cvs1:/tmp/cvs-serv26533/Inventory Added Files: admin.php module.php Log Message: Initial creation --- NEW FILE: admin.php --- <?php echo "<center><h2>I am the admin portion of the Inventory Module.</h2></center>"; ?> --- NEW FILE: module.php --- <?php echo "<center><h2>I am the Inventory Module.</h2></center>"; ?> |
From: <ope...@li...> - 2002-07-09 01:20:42
|
Update of /cvsroot/openposs/Server/module/Scheduling In directory usw-pr-cvs1:/tmp/cvs-serv26145/Scheduling Log Message: Directory /cvsroot/openposs/Server/module/Scheduling added to the repository |
From: <ope...@li...> - 2002-07-09 01:18:02
|
Update of /cvsroot/openposs/Server/module/Transaction In directory usw-pr-cvs1:/tmp/cvs-serv25389/Transaction Log Message: Directory /cvsroot/openposs/Server/module/Transaction added to the repository |
From: <ope...@li...> - 2002-07-09 01:18:02
|
Update of /cvsroot/openposs/Server/module/Quote In directory usw-pr-cvs1:/tmp/cvs-serv25389/Quote Log Message: Directory /cvsroot/openposs/Server/module/Quote added to the repository |
From: <ope...@li...> - 2002-07-09 01:18:01
|
Update of /cvsroot/openposs/Server/module/Inventory In directory usw-pr-cvs1:/tmp/cvs-serv25389/Inventory Log Message: Directory /cvsroot/openposs/Server/module/Inventory added to the repository |
From: <ope...@li...> - 2002-07-09 01:17:31
|
Update of /cvsroot/openposs/Server/module/Customer In directory usw-pr-cvs1:/tmp/cvs-serv25261/Customer Added Files: admin.php module.php Log Message: Initial creation --- NEW FILE: admin.php --- <?php echo "<center><h2>I am the admin portion of the Customer Module.</h2></center>"; ?> --- NEW FILE: module.php --- <?php echo "<center><h2>I am the Customer Module.</h2></center>"; ?> |
From: <ope...@li...> - 2002-07-09 01:16:08
|
Update of /cvsroot/openposs/Server/module/Customer In directory usw-pr-cvs1:/tmp/cvs-serv25033/Customer Log Message: Directory /cvsroot/openposs/Server/module/Customer added to the repository |
From: <ope...@li...> - 2002-07-09 01:15:33
|
Update of /cvsroot/openposs/Database In directory usw-pr-cvs1:/tmp/cvs-serv24900 Added Files: sample_inventory.sql Log Message: Initial creation --- NEW FILE: sample_inventory.sql --- # # Generic inventory for sample store. # INSERT INTO stock_list VALUES (100001, 'PHP and MySQL Web Development', 'PHP and MySQL Web Development by Luke Welling, Laura Thomson. Paperback: 896 pages ; Dimensions (in inches): 2.09 x 9.07 x 7.36 * Publisher: Sams; ISBN: 0672317842; 1st edition (March 30, 2001)\r\n', 999999, '672317842', '123456789012346', '34.00', '49.99', 8, 1, 8, 8); INSERT INTO stock_list VALUES (100002, 'Web Database Applications with PHP & MySQL', 'Paperback: 582 pages ; Dimensions (in inches): 1.11 x 9.22 x 7.10 Publisher: O\'Reilly & Associates; ISBN: 0596000413; 1st edition (March 2002)\r\n', 999999, '596000413', '123456385012346', '30.00', '49.99', 5, 1, 5, 5); INSERT INTO stock_list VALUES (100003, 'Professional PHP4 XML', ' Paperback: 850 pages Publisher: Wrox Press Inc; ISBN: 1861007213; 1st edition (June 2002) Amazon.com Sales Rank: 37,415 \r\n', 999999, '1861007213', '874186789012346', '35.00', '49.99', 3, 0, 3, 3); INSERT INTO stock_list VALUES (100004, 'Professional PHP4 Programming', ' * Paperback: 974 pages ; Dimensions (in inches): 2.08 x 9.00 x 7.26 * Publisher: Wrox Press Inc; ISBN: 1861006918; 1st edition (January 2002)\r\n', 999999, '1861006918', '193456385396846', '35.00', '49.99', 5, 2, 7, 5); INSERT INTO stock_list VALUES (100005, 'Programming PHP', ' * Paperback: 500 pages ; Dimensions (in inches): 0.95 x 9.20 x 7.14 * Publisher: O\'Reilly & Associates; ISBN: 1565926102; 1st edition (March 2002)\r\n', 999999, '1565926102', '193478412396846', '35.00', '49.99', 3, 1, 5, 5); INSERT INTO stock_list VALUES (100006, 'Special Edition Using XML', NULL, 999999, '1785926452', '192351412396846', '39.00', '49.00', 7, 2, 8, 7); |
From: <ope...@li...> - 2002-07-09 01:14:55
|
Update of /cvsroot/openposs/Database In directory usw-pr-cvs1:/tmp/cvs-serv24721 Modified Files: MySQL_Creation_Script Log Message: Numerous changes. See CVS Log Index: MySQL_Creation_Script =================================================================== RCS file: /cvsroot/openposs/Database/MySQL_Creation_Script,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** MySQL_Creation_Script 30 Jun 2002 16:07:26 -0000 1.11 --- MySQL_Creation_Script 9 Jul 2002 01:14:52 -0000 1.12 *************** *** 1,257 **** ! # Creation Script for the database of openPOS ! # ! # Database Name : openPOS ! # Database Version : Development V0.1 ! # Project Name : openPOS ! # Project Homepage : http://openposs.sourceforge.net/ ! # ! # Created : Friday April 5, 2002 ! # Creator : Brian A Cheeseman ! # ! # RDBMS : MySQL ! # ! ################################################################################ ! # Last Update # Who # Changes Made # ! #------------------------------------------------------------------------------# ! # Apr 5, 2002 # BAC # Initial Creation # ! # # # # ! # Jun 24, 2002 # CWS # Added Setup Instructions section. Added field 'term_ip' # ! # # # to table 'openPOS.Transactions'. The purpose of this # ! # # # is to provide a tracking methond for which terminal the # ! # # # transaction originated from. Also added 'HomePhone', # ! # # # 'WorkPhone', and 'OtherPhone' to table # ! # # # 'openPOS.Customer'. # ! # Jun 27,2002 # CWS # Added modules table. # ! # Jun 28,2002 # CWS # Primed modules table with generic values. once 'real' # ! # # # modules are avaiable, these need to be removed # ! ################################################################################ ! # ! # Who Key ! # BAC - Brian A Cheeseman ! # CWS - Chris W Shaffer ! ! # ! # Setup Instructions ! # ! # There are a few different ways to create teh database and insert the ! # necessary records. The most straight-forward way is through the ! # command line. At your terminal prompt (DOS window), enter the following ! # command: ! # ! # %> mysql -uUSER -p /path/to/MySQL_Creation_Script.txt ! # ! # where '%>' is your prompt (don't type that!) and USER is your database ! # username. You will be prompted for your database password, enter it, and ! # if no error messages were generated, you have a freshly installed copy of ! # the OpenPOS database and all the required tables. Now, to confirm that ! # the database exists: ! # ! # %> mysql -uUSER -p ! # ! # Once again, you will be prompted for your password. After you enter you ! # password, you will be greeted with the following prompt: ! # ! # mysql> ! # ! # Execute the following commands: ! # ! # mysql> USE openPOS; ! # ! # mysql> SHOW tables; ! # ! # If all went well with your installation, you will be greeted with ! # the following output: ! # ! # +-------------------+ ! # | Tables_in_openPOS | ! # +-------------------+ ! # | auditlog | ! # | configuration | ! # | customers | ! # | grouprights | ! # | orderitems | ! # | orders | ! # | stock_list | ! # | systemgroups | ! # | systemusers | ! # | transactions | ! # | userrights | ! # | usertogroup | ! # +-------------------+ ! # 12 rows in set (0.00 sec) ! # ! # Congratulations, you are now ready to procede with the rest of the ! # OpenPOSS setup. ! # ! # ! ######################################################################## ! ! ! # ! # Create the database ! # ! CREATE DATABASE openPOS; ! USE openPOS; ! ! # ! # Create the Configuration Table ! # ! # This table is used to hold System Wide configurational information. ! CREATE TABLE openPOS.Configuration (`Parameter` varchar(255) NOT NULL default "", ! `Value` varchar(255) NOT NULL default ""); ! ! # ! # Insert the default configuration into the configuration table ! # ! INSERT INTO openPOS.Configuration (`Parameter`, `Value`) VALUES ("DBVersion", "DEV 0.1"); ! INSERT INTO openPOS.Configuration (`Parameter`, `Value`) VALUES ("modUserManage", "On"); ! INSERT INTO openPOS.Configuration (`Parameter`, `Value`) VALUES ("modUserLogin", "On"); ! INSERT INTO openPOS.Configuration (`Parameter`, `Value`) VALUES ("modUserSecurity", "On"); ! INSERT INTO openPOS.Configuration (`Parameter`, `Value`) VALUES ("modUserTypes", "On"); ! ! # ! # Create the Stock List Table ! # ! # This table contains all the information describing the products available. ! CREATE TABLE openPOS.Stock_List (sid int auto_increment PRIMARY KEY, ! Description varchar(255) NOT NULL default "", ! OrderCode varchar(50) NOT NULL default "", ! ScanCode varchar(50) NOT NULL default "", ! Price decimal(7,2) NOT NULL default 0.00, ! StockLevel int NOT NULL default 0, ! MinStockLevel int NOT NULL default 0, ! StorageCap int NOT NULL default 0, ! ShelfCap int NOT NULL default 0, ! KEY idx_ScanCode (ScanCode(10)) ); ! ! # ! # Create the Users Table ! # ! # This table holds a list of users permitted to access the system. ! CREATE TABLE openPOS.SystemUsers (uid int auto_increment PRIMARY KEY, ! UserName varchar(255) NOT NULL default "", ! FullName varchar(255) NOT NULL default "", ! Password varchar(255) NOT NULL default "", ! Active tinyint NOT NULL default 0, ! SuperUser tinyint NOT NULL default 0); ! ! # Insert the initial SuperUser into the Users Table. ! # Password field correlates to "openPOS". The password of this user should be changed ! # immediately on a production server, as this account can change anything within the system. ! INSERT INTO openPOS.SystemUsers (UserName, FullName, Password, Active, SuperUser) VALUES ("Admin", "openPOS Admin User", "7c524cbe562633af1c281279e048dc5b", 1, 1); ! ! # ! # Create the Groups Table ! # ! # This table holds a list of Groups which should be user definable. ! CREATE TABLE openPOS.SystemGroups (gid int auto_increment PRIMARY KEY, ! GroupName varchar(255) NOT NULL default "", ! Active tinyint NOT NULL default 1); ! ! # ! # Table structure for table `modules` ! # ! ! CREATE TABLE modules ( ! name varchar(25) NOT NULL default '', ! desciption varchar(100) default NULL, ! status enum('A','I') NOT NULL default 'I', ! menu enum('Y','N') NOT NULL default 'N', ! UNIQUE KEY name (name)) TYPE=MyISAM; ! # -------------------------------------------------------- ! #--------REMOVE ME ONCE REAL MODULES ARE AVAILBE!!!------- ! ! INSERT INTO modules VALUES ('Transaction', 'The transaction module', 'A', 'Y'); ! INSERT INTO modules VALUES ('Inventory', 'The inventory management module', 'A', 'Y'); ! INSERT INTO modules VALUES ('Quote', NULL, 'A', 'Y'); ! INSERT INTO modules VALUES ('Scheduling', NULL, 'I', 'Y'); ! ! #********************************************************** ! # -------------------------------------------------------- ! # -------------------------------------------------------- ! ! ! # ! # Create the Users to Groups Crosslink table ! # ! # This table is used to link users to the groups which they belong. ! CREATE TABLE openPOS.UserToGroup (uid int NOT NULL PRIMARY KEY, ! gid int NOT NULL, ! KEY idx_gid (gid)); ! ! # ! # Create the Rights Table for Users ! # ! # This table allows for giving specific users specific rights. ! CREATE TABLE openPOS.UserRights (uid int PRIMARY KEY, ! Access int); ! ! # ! # Create the Rights Table for Groups ! # ! # This table allows for setting rights for a group of users. ! CREATE TABLE openPOS.GroupRights (gid int PRIMARY KEY, ! ACCESS int); ! ! # ! # Create the Audit Log Table ! # ! # This table is used to log all actions performed by the users. ! CREATE TABLE openPOS.AuditLog (aid int auto_increment PRIMARY KEY, ! uid int, ! DT datetime, ! Action varchar(255), ! KEY idx_AuditLog_uid (uid)); ! ! # ! # Create the Transaction Tracking Table ! # ! # This table is used to track transactions performed by users. ! CREATE TABLE openPOS.Transactions (tid int auto_increment PRIMARY KEY, ! uid int, ! oid int, ! term_ip varchar(15), ! DT datetime, ! KEY idx_Transaction_uid (uid)); ! ! # ! # Create the Order Table ! # ! # This table is used to link an Order/Transaction Number to ! # the items involved in the Order/Transaction. ! CREATE TABLE openPOS.OrderItems (iid int PRIMARY KEY, ! sid int); ! ! # ! # Create the Orders table ! # ! # This table is used to allow customer orders to be entered in the ! # system. This allows for auto-notification to users that an order ! # is able to be completed for a given customer. ! CREATE TABLE openPOS.Orders (oid int auto_increment PRIMARY KEY, ! iid int, ! cid int); ! ! # ! # Create the Customer Details table ! # ! # This table allows for storage of customer contact details. This ! # information will be used for orders which are placed through ! # the retail outlet. ! CREATE TABLE openPOS.Customers (cid int auto_increment PRIMARY KEY, ! Surname varchar(255), ! GivenNames varchar(255), ! PostalAddress varchar(255), ! PostalSuburb varchar(255), ! PostalState char(5), ! PostalZip char(10), ! PostalCountry varchar(255), ! BillingAddress varchar(255), ! BillingSuburb varchar(255), ! BillingState char(5), ! BillingZip char(10), ! BillingCountry varchar(255), ! HomePhone varchar(25) NULL, ! WorkPhone varchar(25) NULL, ! OtherPhone varchar(25) NULL, ! KEY idx_Customer_Surname (Surname(10))); --- 1,282 ---- ! # Creation Script for the database of openPOS ! # ! # Database Name : openPOS ! # Database Version : Development V0.1 ! # Project Name : openPOS ! # Project Homepage : http://openposs.sourceforge.net/ ! # ! # Created : Friday April 5, 2002 ! # Creator : Brian A Cheeseman ! # ! # RDBMS : MySQL ! # ! ################################################################################ ! # Last Update # Who # Changes Made # ! #------------------------------------------------------------------------------# ! # Apr 5, 2002 # BAC # Initial Creation # ! # # # # ! # Jun 24, 2002 # CWS # Added Setup Instructions section. Added field 'term_ip' # ! # # # to table 'openPOS.Transactions'. The purpose of this # ! # # # is to provide a tracking methond for which terminal the # ! # # # transaction originated from. Also added 'HomePhone', # ! # # # 'WorkPhone', and 'OtherPhone' to table # ! # # # 'openPOS.Customer'. # ! # Jun 27,2002 # CWS # Added modules table. # ! # Jun 28,2002 # CWS # Primed modules table with generic values. once 'real' # ! # # # modules are avaiable, these need to be removed # ! ################################################################################ ! # ! # Who Key ! # BAC - Brian A Cheeseman ! # CWS - Chris W Shaffer ! ! # ! # Setup Instructions ! # ! # There are a few different ways to create teh database and insert the ! # necessary records. The most straight-forward way is through the ! # command line. At your terminal prompt (DOS window), enter the following ! # command: ! # ! # %> mysql -uUSER -p /path/to/MySQL_Creation_Script.txt ! # ! # where '%>' is your prompt (don't type that!) and USER is your database ! # username. You will be prompted for your database password, enter it, and ! # if no error messages were generated, you have a freshly installed copy of ! # the OpenPOS database and all the required tables. Now, to confirm that ! # the database exists: ! # ! # %> mysql -uUSER -p ! # ! # Once again, you will be prompted for your password. After you enter you ! # password, you will be greeted with the following prompt: ! # ! # mysql> ! # ! # Execute the following commands: ! # ! # mysql> USE openPOS; ! # ! # mysql> SHOW tables; ! # ! # If all went well with your installation, you will be greeted with ! # the following output: ! # ! # +-------------------+ ! # | Tables_in_openPOS | ! # +-------------------+ ! # | auditlog | ! # | configuration | ! # | customers | ! # | grouprights | ! # | orderitems | ! # | orders | ! # | stock_list | ! # | systemgroups | ! # | systemusers | ! # | transactions | ! # | userrights | ! # | usertogroup | ! # +-------------------+ ! # 12 rows in set (0.00 sec) ! # ! # Congratulations, you are now ready to procede with the rest of the ! # OpenPOSS setup. ! # ! # ! ######################################################################## ! ! ! # ! # Create the database ! # ! CREATE DATABASE openPOS; ! USE openPOS; ! ! # ! # Create the Configuration Table ! # ! # This table is used to hold System Wide configurational information. ! CREATE TABLE openPOS.Configuration (`Parameter` varchar(255) NOT NULL default "", ! `Value` varchar(255) NOT NULL default ""); ! ! # ! # Insert the default configuration into the configuration table ! # ! INSERT INTO openPOS.Configuration (`Parameter`, `Value`) VALUES ("DBVersion", "DEV 0.1"); ! INSERT INTO openPOS.Configuration (`Parameter`, `Value`) VALUES ("modUserManage", "On"); ! INSERT INTO openPOS.Configuration (`Parameter`, `Value`) VALUES ("modUserLogin", "On"); ! INSERT INTO openPOS.Configuration (`Parameter`, `Value`) VALUES ("modUserSecurity", "On"); ! INSERT INTO openPOS.Configuration (`Parameter`, `Value`) VALUES ("modUserTypes", "On"); ! INSERT INTO openPOS.Configuration (`Parameter`, `Value`) VALUES ("systemInstalled", "No"); ! ! # ! # Create the Stock List Table ! # ! # This table contains all the information describing the products available. ! CREATE TABLE openPOS.Stock_List (sku int(6) unsigned zerofill NOT NULL auto_increment, ! Product varchar(100) NOT NULL default '', ! Description text, ! catagory int(6) NOT NULL default '999999', ! OrderCode varchar(50) NOT NULL default "", ! ScanCode varchar(50) NOT NULL default "", ! Cost decimal(7,2) unsigned NOT NULL default '0.00', ! Price decimal(7,2) unsigned NOT NULL default 0.00, ! StockLevel int NOT NULL default 0, ! MinStockLevel int NOT NULL default 0, ! StorageCap int NOT NULL default 0, ! ShelfCap int NOT NULL default 0, ! KEY idx_ScanCode (ScanCode(10)) ); ! ! # ! # Create the Users Table ! # ! # This table holds a list of users permitted to access the system. ! CREATE TABLE openPOS.SystemUsers (uid int auto_increment PRIMARY KEY, ! UserName varchar(255) NOT NULL default "", ! FullName varchar(255) NOT NULL default "", ! Password varchar(255) NOT NULL default "", ! Active tinyint NOT NULL default 0, ! SuperUser tinyint NOT NULL default 0); ! ! # Insert the initial SuperUser into the Users Table. ! # Password field correlates to "openPOS". The password of this user should be changed ! # immediately on a production server, as this account can change anything within the system. ! INSERT INTO openPOS.SystemUsers (UserName, FullName, Password, Active, SuperUser) VALUES ("Admin", "openPOS Admin User", "7c524cbe562633af1c281279e048dc5b", 1, 1); ! ! # ! # Create the Groups Table ! # ! # This table holds a list of Groups which should be user definable. ! CREATE TABLE openPOS.SystemGroups (gid int auto_increment PRIMARY KEY, ! GroupName varchar(255) NOT NULL default "", ! Active tinyint NOT NULL default 1); ! ! # ! # Table structure for table `modules` ! # ! ! CREATE TABLE openPOS.modules ( ! name varchar(25) NOT NULL default '', ! desciption varchar(100) default NULL, ! version varchar(15) NOT NULL default '', ! status enum('A','I') NOT NULL default 'I', ! menu enum('Y','N') NOT NULL default 'N', ! UNIQUE KEY name (name)) TYPE=MyISAM; ! # -------------------------------------------------------- ! #--------REMOVE ME ONCE REAL MODULES ARE AVAILBE!!!------- ! ! INSERT INTO modules VALUES ('Transaction', 'The transaction module', 'A', 'Y'); ! INSERT INTO modules VALUES ('Inventory', 'The inventory management module', 'A', 'Y'); ! INSERT INTO modules VALUES ('Quote', NULL, 'A', 'Y'); ! INSERT INTO modules VALUES ('Scheduling', NULL, 'I', 'Y'); ! ! #********************************************************** ! # -------------------------------------------------------- ! # -------------------------------------------------------- ! ! ! # ! # Create the Users to Groups Crosslink table ! # ! # This table is used to link users to the groups which they belong. ! CREATE TABLE openPOS.UserToGroup (uid int NOT NULL PRIMARY KEY, ! gid int NOT NULL, ! KEY idx_gid (gid)); ! ! # ! # Create the Rights Table for Users ! # ! # This table allows for giving specific users specific rights. ! CREATE TABLE openPOS.UserRights (uid int PRIMARY KEY, ! Access int); ! ! # ! # Create the Rights Table for Groups ! # ! # This table allows for setting rights for a group of users. ! CREATE TABLE openPOS.GroupRights (gid int PRIMARY KEY, ! ACCESS int); ! ! # ! # Create the Audit Log Table ! # ! # This table is used to log all actions performed by the users. ! CREATE TABLE openPOS.AuditLog (aid int auto_increment PRIMARY KEY, ! uid int, ! DT datetime, ! Action varchar(255), ! KEY idx_AuditLog_uid (uid)); ! ! # ! # Create the Transaction Tracking Table ! # ! # This table is used to track transactions performed by users. ! CREATE TABLE openPOS.Transactions (tid int auto_increment PRIMARY KEY, ! uid int, ! oid int, ! term_ip varchar(15), ! DT datetime, ! KEY idx_Transaction_uid (uid)); ! ! # ! # Create the Order Table ! # ! # This table is used to link an Order/Transaction Number to ! # the items involved in the Order/Transaction. ! CREATE TABLE openPOS.OrderItems (iid int PRIMARY KEY, ! sid int); ! ! # ! # Create the Orders table ! # ! # This table is used to allow customer orders to be entered in the ! # system. This allows for auto-notification to users that an order ! # is able to be completed for a given customer. ! CREATE TABLE openPOS.Orders (oid int auto_increment PRIMARY KEY, ! iid int, ! cid int); ! ! # ! # Create the Customer Details table ! # ! # This table allows for storage of customer contact details. This ! # information will be used for orders which are placed through ! # the retail outlet. ! CREATE TABLE openPOS.Customers (cid int auto_increment PRIMARY KEY, ! Surname varchar(255), ! GivenNames varchar(255), ! PostalAddress varchar(255), ! PostalSuburb varchar(255), ! PostalState char(5), ! PostalZip char(10), ! PostalCountry varchar(255), ! BillingAddress varchar(255), ! BillingSuburb varchar(255), ! BillingState char(5), ! BillingZip char(10), ! BillingCountry varchar(255), ! HomePhone varchar(25) NULL, ! WorkPhone varchar(25) NULL, ! OtherPhone varchar(25) NULL, ! KEY idx_Customer_Surname (Surname(10))); ! ! # ! # Table structure for table `inv_catagories` ! # ! # This table will keep track of the catagories for the inventory system. Two numbers are ! # reserverd: 000000 and 999999. 000000 in the parent field indicates that the current row ! # is at the top level of the catagory system. 999999 means that the catagory system is not ! # being used. ! ! CREATE TABLE inv_catagories (id int(6) unsigned NOT NULL auto_increment, ! name varchar(50) NOT NULL default '', ! description varchar(150) default NULL, ! parent int(6) unsigned NOT NULL default '000000', ! active enum('A','I') NOT NULL default 'A', ! PRIMARY KEY (id) ! ) TYPE=MyISAM; ! ! ! ! |
From: <ope...@li...> - 2002-07-09 01:14:17
|
Update of /cvsroot/openposs/Documents In directory usw-pr-cvs1:/tmp/cvs-serv24580 Modified Files: DocumentList.txt Log Message: Added line for OPRFC006.txt Index: DocumentList.txt =================================================================== RCS file: /cvsroot/openposs/Documents/DocumentList.txt,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** DocumentList.txt 27 Jun 2002 03:49:45 -0000 1.4 --- DocumentList.txt 9 Jul 2002 01:14:12 -0000 1.5 *************** *** 10,12 **** --- 10,13 ---- | OPRFC004.txt | Outline of features for version 0.1.0 roadmap | | OPRFC005.txt | openPOS System API, and directory structure. | + | OPRFC006.txt | openPOS Module packaging proposal and guide. | +--------------+--------------------------------------------------------------+ |
From: <ope...@li...> - 2002-07-09 00:59:52
|
Update of /cvsroot/openposs/Documents In directory usw-pr-cvs1:/tmp/cvs-serv21294 Added Files: OPRFC006.txt Log Message: Initial creation --- NEW FILE: OPRFC006.txt --- Filename: OPRFC006.txt Author : Chris W. Shaffer <chr...@be...> Date : July 05, 2002 Purpose : This doucment will establish and describe the standard packageing format all OpenPOSS modules. Status : Open for discussion. Contents ~~~~~~~~ i - Prelude 1 - Purpose of Packaging Format 2 - 'module_Install.php' 2.1 - Description Of Tasks To Be Performed 3 - moduleName.pkg.php File Generalization i - Prelude ~~~~~~~~~~~ This doucment will establish and describe the standard packageing format all OpenPOSS modules. It will be a work inprogress throughout the development cycle of the project, however will be made into a standard each time a new release is made available to the public. 1 - Purpose of Packaging Format ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The purpose of establishing a packaging format is to make the installation of 'modules' easier on the end user. By creating a "one-file standard", the end user no longer needs to adjust thier directory structure to add a module, limiting the opportunity for mistakes or misunderstandings due to poor documentation. 2 - 'module_Install.php' ~~~~~~~~~~~~~~~~~~~~~~~~ 'module_Install.php' will be the script file located in the directory './Server/admin' that will install the target module. 2.1 - Description Of Tasks To Be Performed ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1. Display 'File Upload form'. -the user will 'Browse' to the package file. -Package file will be uploaded to temp directory 2. Processing of Package file -Extract package info -Name -Version -Number of files -Create module directory -Extract database info -Tables -Inital Data -Execute SQL statements -Extract Directory Names -Create directories in new Module directory -Extract file info -File name(includeing path releative to module directory) -File content -Create files -Write file content for all files -Extract admin file -File contents -Create Admin file -Write admin file contents 3. Add entry to openPOS.modules table 4. Redirect user to 'Module Administration' Page so user can activate module. 3 - moduleName.pkg.php File Generalization ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The following will serve as a guide for all module builders. -The directory name in the 'modules' directory will be created from the ModuleName. -db tables will be created from the TableName directive. -all SQL statements will be executed by the parser -Directories must be relative to the Module's directory -Filenames must contain path relative to the Module's directory -------------Package Template------------- //Package wide information// <@ PackageHeader @> <@ ModuleName:[ModuleName] @> <@ ModuleVer:[ModuleVersion] @> <@ NumberOfFiles:[##] @> </@ PackageHeader @> <@ Database @> <@ Table1 @> <@ TableName:[TableName] @> | | | db table sturcture and/or | insert data | properly formatted SQL Statments | </@ Table1 @> <@ Table2 @> <@ TableName:[TableName] @> | | | db table sturcture and/or | insert data | properly formatted SQL Statments | </@ Table2 @> . . . </@ Database @> <@ Directories @> ./path ./path/to ./path/to/be/ ./path/to/be/created ./path/to/be/or ./path/to/be/or/not ./path/to/be/or/not/to ./path/to/be/or/not/to/be . . . </@ Directories @> <@ Files @> <@ File1 @> <@ FileName:[./path/FileName] @> | | | file | contents | | </@ File1 @> <@ File2 @> <@ FileName:[./path/to/FileName] @> | | | file | contents | | </@ File2 @> . . . </@ Files @> <@ AdminFile @> | | | file | contents | | </@ AdminFile @> |
From: <ope...@li...> - 2002-07-09 00:56:52
|
Update of /cvsroot/openposs/Documents In directory usw-pr-cvs1:/tmp/cvs-serv20715 Modified Files: OPRFC005.txt Log Message: Adjusted to add esp lang pack Index: OPRFC005.txt =================================================================== RCS file: /cvsroot/openposs/Documents/OPRFC005.txt,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** OPRFC005.txt 28 Jun 2002 02:03:40 -0000 1.3 --- OPRFC005.txt 9 Jul 2002 00:56:48 -0000 1.4 *************** *** 29,53 **** - Server/ ! | ! +- admin/ ! | | | ! | | +- Admin/ ! | | | | ! | | | +- module.php ! | | | : ! | | | ! | | +- UserAdmin/ ! | | | | ! | | | +- module.php ! | | | : ! | | | ! | | +- ModuleAdmin/ ! | | | | ! | | | +- module.php ! | | | : ! | | : ! | | +- index.php ! | | : ! | : | +- adodb/ --- 29,52 ---- - Server/ ! | ! +- admin/ ! | | ! | +- Admin/ ! | | | ! | | +- module.php ! | | | : ! | | | ! | +- UserAdmin/ ! | | | ! | | +- module.php ! | | : ! | | ! | +- ModuleAdmin/ ! | | | ! | | +- module.php ! | | : ! | | ! | +- index.php ! | : | +- adodb/ *************** *** 56,82 **** | +- docs/ ! | | ! | +- install/ ! | | | ! | | +- apache.html ! | | +- index.html ! | | +- mysql.html ! | | +- openposs.html ! | | +- oracle.html ! | | +- php.html ! | | +- postgresql.html ! | | : ! | | ! | +- manual/ ! | | | ! | | +- index.html ! | | : | | ! | +- upgrade/ ! | | | ! | | +- index.html ! | | : ! | : ! | +- java/ | | --- 55,81 ---- | +- docs/ ! | | ! | +- install/ ! | | | ! | | +- apache.html ! | | +- index.html ! | | +- mysql.html ! | | +- openposs.html ! | | +- oracle.html ! | | +- php.html ! | | +- postgresql.html ! | | : ! | | ! | +- manual/ ! | | | ! | | +- index.html ! | | : | | ! | +- upgrade/ ! | | | ! | | +- index.html ! | | : ! | : ! | +- java/ | | *************** *** 91,95 **** | | | +- deu/ ! | | | | | +- global.php | | : --- 90,99 ---- | | | +- deu/ ! | | | ! | | +- global.php ! | | : ! | | ! | |+- esp/ ! | | | | | +- global.php | | : |
From: <ope...@li...> - 2002-07-04 14:38:56
|
Update of /cvsroot/openposs/Server/language/esp In directory usw-pr-cvs1:/tmp/cvs-serv18049 Added Files: global.php Log Message: Initial creation --- NEW FILE: global.php --- <? # # Filename: /language/eng/global.php # Author : Brian A Cheeseman # Date : April 6, 2002 # Purpose : To provide language based strings for the openPOS project. # ################################################################################ # Last Update # Who # Changes Made # #--------------#-----#---------------------------------------------------------# # Jun 25, 2002 # BAC # Modified the text to allow for the themes support # # Apr 6, 2002 # BAC # Initial Creation # ################################################################################ # Who Key # BAC - Brian A Cheeseman # define(_OPENPOSTITLE,"openPOS"); define(_OPENPOSADMINTITLE,"Administration"); define(_OPENPOSMAINTITLE,"Main Menu"); define(_OPENPOSERRORTITLE,"Error Notification"); define(_OPENPOSNAVTITLE, "Navigation Menu"); define(_OPENPOSLOGINTITLE, "Login"); ?> |
From: <ope...@li...> - 2002-07-04 14:26:29
|
Update of /cvsroot/openposs/Server/language/esp In directory usw-pr-cvs1:/tmp/cvs-serv17806/esp Log Message: Directory /cvsroot/openposs/Server/language/esp added to the repository |
From: <ope...@li...> - 2002-06-30 16:07:29
|
Update of /cvsroot/openposs/Database In directory usw-pr-cvs1:/tmp/cvs-serv24252 Modified Files: MySQL_Creation_Script Log Message: Added USE openPOS; statement for cross platform compliance. Index: MySQL_Creation_Script =================================================================== RCS file: /cvsroot/openposs/Database/MySQL_Creation_Script,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** MySQL_Creation_Script 29 Jun 2002 02:30:18 -0000 1.10 --- MySQL_Creation_Script 30 Jun 2002 16:07:26 -0000 1.11 *************** *** 92,95 **** --- 92,96 ---- # CREATE DATABASE openPOS; + USE openPOS; # |
From: <ope...@li...> - 2002-06-30 16:05:21
|
Update of /cvsroot/openposs/Server/language/eng In directory usw-pr-cvs1:/tmp/cvs-serv23608 Modified Files: global.php Log Message: Updated one label Index: global.php =================================================================== RCS file: /cvsroot/openposs/Server/language/eng/global.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** global.php 25 Jun 2002 03:21:06 -0000 1.4 --- global.php 30 Jun 2002 16:05:16 -0000 1.5 *************** *** 19,23 **** define(_OPENPOSMAINTITLE,"Main Menu"); define(_OPENPOSERRORTITLE,"Error Notification"); ! define(_OPENPOSNAVTITLE, "Navigation<br>Menu"); define(_OPENPOSLOGINTITLE, "Login"); --- 19,23 ---- define(_OPENPOSMAINTITLE,"Main Menu"); define(_OPENPOSERRORTITLE,"Error Notification"); ! define(_OPENPOSNAVTITLE, "Navigation Menu"); define(_OPENPOSLOGINTITLE, "Login"); |
From: <ope...@li...> - 2002-06-29 02:30:21
|
Update of /cvsroot/openposs/Database In directory usw-pr-cvs1:/tmp/cvs-serv7858 Modified Files: MySQL_Creation_Script Log Message: Added default values for modules. Dummy Values. Must be removed when modules are actually build. Index: MySQL_Creation_Script =================================================================== RCS file: /cvsroot/openposs/Database/MySQL_Creation_Script,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** MySQL_Creation_Script 28 Jun 2002 10:03:23 -0000 1.9 --- MySQL_Creation_Script 29 Jun 2002 02:30:18 -0000 1.10 *************** *** 11,15 **** # RDBMS : MySQL # - ################################################################################ # Last Update # Who # Changes Made # --- 11,14 ---- *************** *** 24,28 **** # # # 'openPOS.Customer'. # # Jun 27,2002 # CWS # Added modules table. # ! # # # # ################################################################################ # --- 23,28 ---- # # # 'openPOS.Customer'. # # Jun 27,2002 # CWS # Added modules table. # ! # Jun 28,2002 # CWS # Primed modules table with generic values. once 'real' # ! # # # modules are avaiable, these need to be removed # ################################################################################ # *************** *** 158,161 **** --- 158,171 ---- menu enum('Y','N') NOT NULL default 'N', UNIQUE KEY name (name)) TYPE=MyISAM; + # -------------------------------------------------------- + #--------REMOVE ME ONCE REAL MODULES ARE AVAILBE!!!------- + + INSERT INTO modules VALUES ('Transaction', 'The transaction module', 'A', 'Y'); + INSERT INTO modules VALUES ('Inventory', 'The inventory management module', 'A', 'Y'); + INSERT INTO modules VALUES ('Quote', NULL, 'A', 'Y'); + INSERT INTO modules VALUES ('Scheduling', NULL, 'I', 'Y'); + + #********************************************************** + # -------------------------------------------------------- # -------------------------------------------------------- |
From: <ope...@li...> - 2002-06-28 10:03:28
|
Update of /cvsroot/openposs/Database In directory usw-pr-cvs1:/tmp/cvs-serv15355 Modified Files: MySQL_Creation_Script Log Message: Added Modules table. Index: MySQL_Creation_Script =================================================================== RCS file: /cvsroot/openposs/Database/MySQL_Creation_Script,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** MySQL_Creation_Script 26 Jun 2002 01:22:26 -0000 1.8 --- MySQL_Creation_Script 28 Jun 2002 10:03:23 -0000 1.9 *************** *** 23,26 **** --- 23,27 ---- # # # 'WorkPhone', and 'OtherPhone' to table # # # # 'openPOS.Customer'. # + # Jun 27,2002 # CWS # Added modules table. # # # # # ################################################################################ *************** *** 146,149 **** --- 147,163 ---- GroupName varchar(255) NOT NULL default "", Active tinyint NOT NULL default 1); + + # + # Table structure for table `modules` + # + + CREATE TABLE modules ( + name varchar(25) NOT NULL default '', + desciption varchar(100) default NULL, + status enum('A','I') NOT NULL default 'I', + menu enum('Y','N') NOT NULL default 'N', + UNIQUE KEY name (name)) TYPE=MyISAM; + # -------------------------------------------------------- + # |
From: <ope...@li...> - 2002-06-28 02:13:25
|
Update of /cvsroot/openposs/Server In directory usw-pr-cvs1:/tmp/cvs-serv6860 Modified Files: database.php Log Message: Added functions. Index: database.php =================================================================== RCS file: /cvsroot/openposs/Server/database.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** database.php 25 Jun 2002 03:18:53 -0000 1.3 --- database.php 28 Jun 2002 02:13:23 -0000 1.4 *************** *** 1,85 **** ! <?php ! # ! # Filename: database.php ! # Author : Brian A Cheeseman ! # Date : April 6, 2002 ! # Purpose : To provide the database interface. ! # ! ############################################################################### ! # Last Update # Who # Changes Made # ! #-------------#-----#---------------------------------------------------------# ! # Apr 6, 2002 # BAC # Initial Creation # ! ############################################################################### ! # Who Key ! # BAC - Brian A Cheeseman ! # ! ! include_once('config.php'); // Include the database connection information. ! define('ADODB_DIR', 'adodb'); // define the location of the adodb software. ! include_once('adodb/adodb.inc.php'); // Include the adodb database code. ! ! function DBInit() { ! global $DBConfig, $SystemConfig; ! ! // Assign the database connection information to variables. ! $DBServer=$DBConfig['Server']; ! $DBUserName=$DBConfig['UserName']; ! $DBPassword=$DBConfig['Password']; ! $DBName=$DBConfig['DBName']; ! $DBType=$DBConfig['DBType']; ! $DBCurVers=$DBConfig['CurrentVersion']; ! ! // Create a database connection. ! global $DBConn; ! $DBConn = ADONewConnection($DBType); ! ! // Create a Handle to the database. ! $DBHandle = $DBConn->Connect($DBServer, $DBUserName, $DBPassword, $DBName); ! if (!$DBHandle) { ! die("Failed to connect to $DBType://$DBUserName:$DBPassword@$DBServer/$DBName\n".$DBConn->ErrorMsg()); ! } ! // We have a connection and handle on the database. ! global $ADODB_FETCH_MODE; ! $ADODB_FETCH_MODE = ADODB_FETCH_NUM; ! $sql = "SELECT Value FROM Configuration WHERE Parameter='DBVersion'"; ! $results = $DBConn->Execute($sql); ! list($DBVersion) = $results->fields; ! if (strncmp($DBVersion, $DBCurVers, strlen($DBCurVers)) != 0) { ! switch ($DBVersion) { ! // Database Updating Code will be inserted here when a change is made to the schema. ! // This code will only be placed into the production code, as only testing will be done ! // by the dev team. ! } ! } ! // OK, Lets load the system config. ! $sql = "SELECT Parameter, Value FROM Configuration WHERE Parameter <> 'DBVersion'"; ! $results = $DBConn->Execute($sql); ! while(list($Param, $Value) = $results->FetchRow()) { ! $SystemConfig[$Param] = $Value; ! } ! return true; ! } ! ! function DBClose() { ! global $DBConn; ! $DBConn->Close(); ! ! return true; ! } ! ! function Validate_Password($UserName, $Password) { ! GLOBAL $DBConn; ! $ret_val = 0; ! $sql = "SELECT Password FROM SystemUsers WHERE UserName=\"$UserName\""; ! $result = $DBConn->Execute($sql); ! if ($result->NumRows() > 0) { ! list($pw) = $result->fields; ! $pword = md5($Password); ! if (strcmp($pw, $pword) == 0) { ! $ret_val = 1; ! } ! } ! return $ret_val; ! } ! ! ?> --- 1,158 ---- ! <?php ! # ! # Filename: database.php ! # Author : Brian A Cheeseman ! # Date : April 6, 2002 ! # Purpose : To provide the database interface. ! # ! ############################################################################### ! # Last Update # Who # Changes Made # ! #-------------#-----#---------------------------------------------------------# ! # Apr 6, 2002 # BAC # Initial Creation # ! ############################################################################### ! # Who Key ! # BAC - Brian A Cheeseman ! # ! ! include_once('config.php'); // Include the database connection information. ! define('ADODB_DIR', 'adodb'); // define the location of the adodb software. ! include_once('adodb/adodb.inc.php'); // Include the adodb database code. ! ! /****************************************************************************** ! * Function: DBInit() * ! * -------------------------------------------------------------------------- * ! * This function is used to open a database connection using the ADODB, * ! * and then select a default database. Upon error, function will die, and * ! * return an error message. * ! * * ! * Returned Values * ! * None. * ! * * ! * Input Values * ! * None. * ! ******************************************************************************/ ! function DBInit() { ! global $DBConfig, $SystemConfig; ! ! // Assign the database connection information to variables. ! $DBServer=$DBConfig['Server']; ! $DBUserName=$DBConfig['UserName']; ! $DBPassword=$DBConfig['Password']; ! $DBName=$DBConfig['DBName']; ! $DBType=$DBConfig['DBType']; ! $DBCurVers=$DBConfig['CurrentVersion']; ! ! // Create a database connection. ! global $DBConn; ! $DBConn = ADONewConnection($DBType); ! ! // Create a Handle to the database. ! $DBHandle = $DBConn->Connect($DBServer, $DBUserName, $DBPassword, $DBName); ! if (!$DBHandle) { ! die("Failed to connect to $DBType://$DBUserName:$DBPassword@$DBServer/$DBName\n".$DBConn->ErrorMsg()); ! } ! // We have a connection and handle on the database. ! global $ADODB_FETCH_MODE; ! $ADODB_FETCH_MODE = ADODB_FETCH_NUM; ! $sql = "SELECT Value FROM Configuration WHERE Parameter='DBVersion'"; ! $results = $DBConn->Execute($sql); ! list($DBVersion) = $results->fields; ! if (strncmp($DBVersion, $DBCurVers, strlen($DBCurVers)) != 0) { ! switch ($DBVersion) { ! // Database Updating Code will be inserted here when a change is made to the schema. ! // This code will only be placed into the production code, as only testing will be done ! // by the dev team. ! } ! } ! // OK, Lets load the system config. ! $sql = "SELECT Parameter, Value FROM Configuration WHERE Parameter <> 'DBVersion'"; ! $results = $DBConn->Execute($sql); ! while(list($Param, $Value) = $results->FetchRow()) { ! $SystemConfig[$Param] = $Value; ! } ! return true; ! } ! ! /****************************************************************************** ! * Function: DBClose() * ! * -------------------------------------------------------------------------- * ! * This function is used to close the database connection. * ! * * ! * Returned Values * ! * None. * ! * * ! * Input Values * ! * None. * ! ******************************************************************************/ ! function DBClose() ! { ! global $DBConn; ! $DBConn->Close(); ! ! return true; ! } ! ! ! /****************************************************************************** ! * Function: Validate_Password() * ! * -------------------------------------------------------------------------- * ! * This function is used to verify that a UserName/Password combo exists in * ! * the SystemUsers table. * ! * If the password/username combo exists in db, return users rights level, * ! * if not in db, return false. * ! * * ! * Returned Values * ! * $ret_val * ! * * ! * Input Values * ! * $UserName, $Password * ! ******************************************************************************/ ! //Perhaps this should be moved to an all purpose 'funcitons' file? cws ! ! function Validate_Password($UserName, $Password) ! { ! GLOBAL $DBConn; ! $ret_val = 0; ! $sql = "SELECT Password, SuperUser FROM SystemUsers WHERE UserName=\"$UserName\""; ! $ADODB_FETCH_MODE = ADODB_FETCH_NUM; ! $result = $DBConn->Execute($sql); ! //$rows = $result->NumRows(); ! //echo "$rows <br>"; ! if ($result->NumRows() > 0) ! { ! list($pw,$rights) = $result->fields; ! $pword = md5($Password); ! if (strcmp($pw, $pword) == 0) ! { ! //Password validated! ! $ret_val = $rights; ! } ! else ! { ! $ret_val = FALSE; ! } ! } ! return $ret_val; ! } ! ! function DB_Query($query) ! { ! GLOBAL $DBConn; ! $result = $DBConn->Execute("$query"); ! return $result; ! } ! ! function DB_Fetch_Data_Array($result) ! { ! GLOBAL $DBConn; ! if ($result === false) die("failed"); ! while (!$result->EOF) ! { ! $data_array[] = $result->fields[0]; ! $result->MoveNext(); ! } ! return $data_array; ! } ! ! ! ?> |
From: <ope...@li...> - 2002-06-28 02:11:46
|
Update of /cvsroot/openposs/Server In directory usw-pr-cvs1:/tmp/cvs-serv6407 Modified Files: index.php Log Message: Made major style changes. Changed from cookie based to session based. Adhered to PHP global variables Index: index.php =================================================================== RCS file: /cvsroot/openposs/Server/index.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** index.php 27 Jun 2002 01:12:39 -0000 1.6 --- index.php 28 Jun 2002 02:11:44 -0000 1.7 *************** *** 1,204 **** ! <?php ! ! /****************************************************************************** ! * * ! * File Name: index.php * ! * * ! * Created : Apr, 21 2001 * ! * * ! * Purpose : Provide the initial point of contact to the openPOS server. * ! * * ! *----------------------------------------------------------------------------* ! * Change Log * ! *----------------------------------------------------------------------------* ! * Date | Description * ! * -------------+------------------------------------------------------------ * ! * Apr 6, 2002 | Moved the database code into database.php * ! * -------------+------------------------------------------------------------ * ! * Apr 6, 2002 | Initial Coding. * ! ******************************************************************************/ ! ! /****************************************************************************** ! * System Includes * ! ******************************************************************************/ ! include_once("database.php"); ! ! /****************************************************************************** ! * Function: DisplayMainMenu() * ! * -------------------------------------------------------------------------- * ! * This function will display the main menu when the user is accessing the * ! * system via a web browser. * ! * * ! * Returned Values * ! * HTML Page text to return to the client. * ! * * ! * Input Values * ! * None. * ! ******************************************************************************/ ! function DisplayMainMenu() { ! GLOBAL $UserName; ! $Output = Theme_Open_Page(_OPENPOSMAINTITLE); ! $Output .= Theme_Open_Table("99%"); ! $Output .= Theme_Open_Row(); ! $Output .= Theme_Open_Data_Cell("Right", "15%"); ! if (isset($UserName)) { ! $Output .= $UserName." Logged In<br>"; ! } else { ! $Output .= "Not Logged In<br>"; ! } ! $Output .= "<br><br><B>" . _OPENPOSNAVTITLE . "</B><br>"; ! if ( strcmp($SystemConfig['modUserLogin'], "On")) { ! if (isset($UserName)) { ! $Output .= Theme_Add_Link("/Server/?action=logout", "Logout") . "<br>"; ! } else { ! $Output .= Theme_Add_Link("/Server/?action=login", "Login") . "<br>"; ! } ! } ! $Output .= Theme_Add_Link("/Server/?action=admin", _OPENPOSADMINTITLE ); ! $Output .= Theme_Close_Data_Cell().Theme_Open_Data_Cell(); ! $Output .= Theme_Close_Data_Cell(); ! $Output .= Theme_Close_Row(); ! $Output .= Theme_Close_Table(); ! $Output .= Theme_Close_Page(); ! return $Output; ! } ! ! /****************************************************************************** ! * Function: DisplayAdminMenu() * ! * -------------------------------------------------------------------------- * ! * This function will display the administration menu when the user is * ! * accessing the system via a web browser. * ! * * ! * Returned Values * ! * HTML Page text to return to the client. * ! * * ! * Input Values * ! * None. * ! ******************************************************************************/ ! function DisplayAdminMenu() { ! $Output = Theme_Open_Page(_OPENPOSADMINTITLE); ! $Output .= Theme_Close_Page(); ! return $Output; ! } ! ! /****************************************************************************** ! * Function: DisplayError() * ! * -------------------------------------------------------------------------- * ! * This function will display the error messages to the user. * ! * * ! * Returned Values * ! * HTML Page text to return to the client. * ! * * ! * Input Values * ! * None. * ! ******************************************************************************/ ! function DisplayError() { ! $Output = Theme_Open_Page( _OPENPOSERRORTITLE ); ! $Output .= "<DIV ALIGN=\"CENTER\"><H3>ERROR: Incorrect Parameters sent to the server. Please contact your support section.</H3></DIV>"; ! $Output .= Theme_Close_Page(); ! return $Output; ! } ! ! /****************************************************************************** ! * Function: ProcessLoginRequest() * ! * -------------------------------------------------------------------------- * ! * This function will validate user, and then set cookie if user is valid. * ! * * ! * Returned Values * ! * None. * ! * * ! * Input Values * ! * None. * ! ******************************************************************************/ ! function ProcessLoginRequest() { ! GLOBAL $Action, $UserName, $Password; ! // Validate the password against the database, and if all is well ! // we will create a cookie, and return to the main menu. ! if (Validate_Password($UserName, $Password) == 1) { ! setcookie("openPOSAuthTok", $UserName, time()+3600); ! } ! header("HTTP/1.0 303 See Other"); ! header("Location: /Server/"); ! return; ! } ! ! /****************************************************************************** ! * Function: ProcessLogoutRequest() * ! * -------------------------------------------------------------------------- * ! * This function will destroy the users session, logging them out * ! * * ! * Returned Values * ! * None. * ! * * ! * Input Values * ! * None. * ! ******************************************************************************/ ! function ProcessLogoutRequest() ! { ! GLOBAL $Action, $UserName; ! if (isset($UserName)) { ! setcookie("openPOSAuthTok", $UserName, time()-3600); ! header("HTTP/1.0 303 See Other"); ! header("Location: /Server/"); ! unset($UserName); ! } ! return; ! } ! ! /*End Functions ! *******************************************************************************/ ! ! global $HTMLOutput, $OutputLang, $Action, $OutputTheme, $SystemConfig; ! global $UserName, $Password; ! if (!DBInit()) { ! die("Unable to connect to the database."); ! } ! $OutputLang=$HTTP_GET_VARS["lang"]; ! $Action=$HTTP_GET_VARS["action"]; ! $OutputTheme=$HTTP_GET_VARS["theme"]; ! if (!isset($Action)) { ! $Action="none"; ! } ! if (!isset($OutputLang)) { ! $OutputLang="eng"; ! } ! if (!isset($OutputTheme)) { ! $OutputTheme="Default"; ! } ! if (isset($openPOSAuthTok)) { ! $UserName = $openPOSAuthTok; ! } ! include_once ("theme/$OutputTheme/theme.php"); ! include_once ("language/$OutputLang/global.php"); ! switch ($Action) { ! case "login": ! $HTMLOutput = Theme_Login_Screen(); ! break; ! case "submitlogin": ! $UserName=$HTTP_GET_VARS["username"]; ! $Password=$HTTP_GET_VARS["password"]; ! ProcessLoginRequest(); ! break; ! case "logout": ! ProcessLogoutRequest(); ! break; ! case "none": ! $HTMLOutput = DisplayMainMenu(); ! break; ! case "admin": ! $HTMLOutput = DisplayAdminMenu(); ! break; ! default: ! $HTMLOutput = DisplayError(); ! break; ! } ! ! if (!DBClose()) { ! die("Unable to disconnect from the database."); ! } ! ! if (isset($HTMLOutput)) { ! echo $HTMLOutput; ! } ! ! ?> --- 1,294 ---- ! <?php ! ! /****************************************************************************** ! * * ! * File Name: index.php * ! * * ! * Created : Apr, 21 2001 * ! * * ! * Purpose : Provide the initial point of contact to the openPOS server. * ! * * ! *----------------------------------------------------------------------------* ! * Change Log * ! *----------------------------------------------------------------------------* ! * Date | Description * ! * -------------+------------------------------------------------------------ * ! * Apr 6, 2002 | Moved the database code into database.php * ! * -------------+------------------------------------------------------------ * ! * Apr 6, 2002 | Initial Coding. * ! ******************************************************************************/ ! ! /****************************************************************************** ! * Begin Session * ! ******************************************************************************/ ! session_start(); ! ! if(isset($HTTP_GET_VARS["action"])) ! { ! $HTTP_SESSION_VARS["action"] = $HTTP_GET_VARS["action"]; ! } ! ! /****************************************************************************** ! * System Includes * ! ******************************************************************************/ ! include_once("database.php"); ! include_once("./vars.inc"); ! ! /****************************************************************************** ! * Function: DisplayMainMenu() * ! * -------------------------------------------------------------------------- * ! * This function will display the main menu when the user is accessing the * ! * system via a web browser. * ! * * ! * Returned Values * ! * HTML Page text to return to the client. * ! * * ! * Input Values * ! * None. * ! ******************************************************************************/ ! function DisplayMainMenu() { ! GLOBAL $HTTP_SESSION_VARS,$CONFIG_VARS; ! ! ! $Output = Theme_Menu_Open($CONFIG_VARS["MenuWidth"],_OPENPOSNAVTITLE); ! ! if (isset($HTTP_SESSION_VARS["openPOSAuthTok"])) ! { ! $Output .= $HTTP_SESSION_VARS["openPOSAuthTok"]." Logged In<p>"; ! } ! else ! { ! $Output .= "Not Logged In<p>"; ! } ! ! $menuArray = GetMenuEntries(); ! ! $Output .= "\n"; ! ! foreach($menuArray as $tmp) ! { ! $Output .= "<a class=\"menu\" href=\"/module/$tmp/module.php\">$tmp</a><br>\n"; ! } ! ! if($HTTP_SESSION_VARS["openPOSAuthRights"] == "SuperUser") ! { ! $Output .= Theme_Add_Menu_Link("./?action=admin", _OPENPOSADMINTITLE) . "<BR>"; ! } ! ! if ( strcmp($SystemConfig['modUserLogin'], "On")) ! { ! if (isset($HTTP_SESSION_VARS["openPOSAuthTok"])) ! { ! $Output .= Theme_Add_Menu_Link("./?action=logout", "Logout") . "<br>"; ! } ! else ! { ! $Output .= Theme_Add_Menu_Link("./?action=login", "Login") . "<br>"; ! } ! } ! $Output .= "\n<BR>"; ! $Output .= Theme_Menu_Close(); ! return $Output; ! } ! ! /****************************************************************************** ! * Function: GetMenuEntries() * ! * -------------------------------------------------------------------------- * ! * This function will access the db, and get all activem, showable menu * ! * menu entries. * ! * * ! * Returned Values * ! * $menuEntries of type Array * ! * * ! * Input Values * ! * None. * ! ******************************************************************************/ ! function GetMenuEntries() ! { ! $query = "SELECT * FROM modules WHERE status='A' AND menu='Y'"; ! $result = DB_Query($query); ! $menuEntires = DB_Fetch_Data_Array($result); ! return $menuEntires; ! } ! ! /****************************************************************************** ! * Function: DisplayAdminMenu() * ! * -------------------------------------------------------------------------- * ! * This function will display the administration menu when the user is * ! * accessing the system via a web browser. * ! * * ! * Returned Values * ! * HTML Page text to return to the client. * ! * * ! * Input Values * ! * None. * ! ******************************************************************************/ ! function DisplayAdminMenu() { ! $Output = Theme_Open_Page(_OPENPOSADMINTITLE); ! $Output .= Theme_Close_Page(); ! return $Output; ! } ! ! /****************************************************************************** ! * Function: DisplayError() * ! * -------------------------------------------------------------------------- * ! * This function will display the error messages to the user. * ! * * ! * Returned Values * ! * HTML Page text to return to the client. * ! * * ! * Input Values * ! * None. * ! ******************************************************************************/ ! function DisplayError() ! { ! $Output = Theme_Open_Page( _OPENPOSERRORTITLE ); ! $Output .= "<DIV ALIGN=\"CENTER\"><H3>ERROR: Incorrect Parameters sent to the server. Please contact your support section.</H3></DIV>"; ! $Output .= Theme_Close_Page(); ! return $Output; ! } ! ! /****************************************************************************** ! * Function: ProcessLoginRequest() * ! * -------------------------------------------------------------------------- * ! * This function will validate user, and then set cookie if user is valid. * ! * * ! * Returned Values * ! * None. * ! * * ! * Input Values * ! * None. * ! ******************************************************************************/ ! function ProcessLoginRequest($UserName,$Password) { ! GLOBAL $HTTP_SESSION_VARS; ! $rights = Validate_Password($UserName, $Password); ! //echo "$rights"; ! if ($rights != FALSE) ! { ! $HTTP_SESSION_VARS["openPOSAuthTok"] = $UserName; ! //session_register("openPOSAuthTok"); ! ! //echo "<BR>$UserName = ".$HTTP_SESSION_VARS["openPOSAuthTok"]."<BR>"; ! ! $HTTP_SESSION_VARS["openPOSAuthRights"] = $rights; ! //session_register("openPOSAuthRights"); ! ! $HTTP_SESSION_VARS["action"] = "none"; ! //session_register("action"); ! ! $HTTP_SESSION_VARS["OutputLang"] = NULL; ! //session_register("OutputLang"); ! ! $HTTP_SESSION_VARS["OutputTheme"] = "Default"; ! //session_register("OutputTheme"); ! ! } ! else ! { ! //Not a valid login. figure out a way to pass an error message ! } ! ! header("HTTP/1.0 303 See Other"); ! header("Location: ./"); ! return; ! } ! ! /****************************************************************************** ! * Function: ProcessLogoutRequest() * ! * -------------------------------------------------------------------------- * ! * This function will destroy the users session, logging them out * ! * * ! * Returned Values * ! * None. * ! * * ! * Input Values * ! * None. * ! ******************************************************************************/ ! function ProcessLogoutRequest() ! { ! GLOBAL $Action, $UserName; ! if (isset($UserName)) ! { ! session_unset(); ! session_destroy(); ! header("HTTP/1.0 303 See Other"); ! header("Location: ./"); ! ! } ! return; ! } ! ! /*End Functions ! *******************************************************************************/ ! ! global $HTMLOutput, $OutputLang, $Action, $OutputTheme, $SystemConfig; ! global $UserName, $Password; ! if (!DBInit()) { ! die("Unable to connect to the database."); ! } ! /* ! $OutputLang=$HTTP_SESSION_VARS["lang"]; ! $Action=$HTTP_SESSION_VARS["action"]; ! $OutputTheme=$HTTP_SESSION_VARS["theme"]; ! */ ! ! if (!isset($HTTP_SESSION_VARS["action"])) { ! $HTTP_SESSION_VARS["action"] = "none"; ! } ! if (!isset($HTTP_SESSION_VARS["OutputLang"])) { ! $HTTP_SESSION_VARS["OutputLang"] = "eng"; ! } ! if (!isset($HTTP_SESSION_VARS["OutputTheme"])) { ! $HTTP_SESSION_VARS["OutputTheme"] = "Default"; ! } ! //echo $HTTP_SESSION_VARS["openPOSAuthTok"]."<BR>"; ! if (isset($HTTP_SESSION_VARS["openPOSAuthTok"])) { ! $UserName = $HTTP_SESSION_VARS["openPOSAuthTok"]; ! } ! //echo $HTTP_SESSION_VARS["openPOSAuthTok"]."<BR>"; ! ! $themeFile = "theme/".$HTTP_SESSION_VARS["OutputTheme"]."/theme.php"; ! include_once ($themeFile); ! $langFile = "language/".$HTTP_SESSION_VARS["OutputLang"]."/global.php"; ! include_once ($langFile); ! ! ! switch ($HTTP_SESSION_VARS["action"]) ! { ! case "login": ! $HTTP_SESSION_VARS["action"] = "submitlogin"; ! $HTMLOutput = Theme_Login_Screen(); ! break; ! case "submitlogin": ! $UserName=$HTTP_GET_VARS["username"]; ! $Password=$HTTP_GET_VARS["password"]; ! $HTTP_SESSION_VARS["action"] = "none"; ! ProcessLoginRequest($UserName,$Password); ! break; ! case "logout": ! ProcessLogoutRequest(); ! $HTTP_SESSION_VARS["action"] = NULL; ! break; ! case "none": ! $HTMLOutput = Theme_Open_Page(_OPENPOSMAINTITLE); ! $HTMLOutput .= DisplayMainMenu(); ! $HTMLOutput .= Theme_Close_Page(); ! ! break; ! case "admin": ! $HTMLOutput = DisplayAdminMenu(); ! break; ! default: ! $HTMLOutput = DisplayError(); ! break; ! } ! ! if (!DBClose()) { ! die("Unable to disconnect from the database."); ! } ! ! if (isset($HTMLOutput)) { ! echo $HTMLOutput; ! } ! ! ?> |
From: <ope...@li...> - 2002-06-28 02:10:24
|
Update of /cvsroot/openposs/Server/theme/Default In directory usw-pr-cvs1:/tmp/cvs-serv6139 Modified Files: theme.css theme.php Log Message: Made major style changes to default style Index: theme.css =================================================================== RCS file: /cvsroot/openposs/Server/theme/Default/theme.css,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** theme.css 25 Jun 2002 03:18:00 -0000 1.1 --- theme.css 28 Jun 2002 02:10:22 -0000 1.2 *************** *** 1,93 **** ! BODY { ! background: #00003F; ! color: #FFFFFF; ! font-family: Tahoma, Verdana, sans-serif; ! font-size: 13px; ! font-weight: normal; ! margin-bottom: 0; ! margin-left: 0; ! margin-right: 0; ! margin-top: 0; ! text-decoration: none; ! } ! ! TD { ! color: #FFFFFF ! font-family: Tahoma, Verdana, sans-serif; ! font-size: 13px; ! } ! ! TH { ! font-family: Tahoma, Verdana, sans-serif; ! font-size: 15px; ! } ! ! TEXTAREA { ! border-bottom-width: 1px; ! border-color: #00007F; ! border-left-width: 1px; ! border-right-width: 1px; ! border-style: solid; ! border-top-width: 1px; ! font-family: Tahoma, Verdana, sans-serif; ! font-size: 13px; ! font-weight: bold; ! text-indent: 2px; ! } ! ! INPUT { ! background-color: transparent; ! border-bottom-width: 1px; ! border-color: #366FFF; ! border-left-width: 1px; ! border-right-width: 1px; ! border-top-width: 1px; ! color: #366FFF; ! font-family: Tahoma, Verdana, sans-serif; ! font-size: 13px; ! font-weight: normal; ! text-indent: 2px; ! } ! ! INPUT.r-button { ! background-color: transparent; ! font-family: Tahoma, Verdana, sans-serif; ! } ! ! SELECT { ! font-family: Tahoma, Verdana, sans-serif; ! font-size: 13px; ! font-weight: bold; ! } ! ! A:link { ! background-color: transparent; ! color: #7F7FFF; ! font-family: Tahoma, Verdana, sans-serif; ! font-size: 13px; ! text-decoration: none; ! } ! ! A:visited { ! background-color: transparent; ! color: #7F7FFF; ! font-family: Tahoma, Verdana, sans-serif; ! font-size: 13px; ! text-decoration: none; ! } ! ! A:hover { ! background-color: transparent; ! color: #7F7FFF; ! font-family: Tahoma, Verdana, sans-serif; ! font-size: 13px; ! text-decoration: underline; ! } ! ! A:active { ! background-color: transparent; ! color: #7F7FFF; ! font-family: Tahoma, Verdana, sans-serif; ! font-size: 13px; ! text-decoration: none; ! } --- 1,129 ---- ! BODY { ! background: #ffffffF; ! color: #000000; ! font-family: Tahoma, Verdana, sans-serif; ! font-size: 13px; ! font-weight: normal; ! margin-bottom: 0; ! margin-left: 0; ! margin-right: 0; ! margin-top: 0; ! text-decoration: none; ! } ! ! TD { ! color: #000000; ! font-family: Tahoma, Verdana, sans-serif; ! font-size: 13px; ! } ! ! TH { ! font-family: Tahoma, Verdana, sans-serif; ! font-size: 15px; ! } ! ! /*TEXTAREA { ! border-bottom-width: 1px; ! border-color: #00007F; ! border-left-width: 1px; ! border-right-width: 1px; ! border-style: solid; ! border-top-width: 1px; ! font-family: Tahoma, Verdana, sans-serif; ! font-size: 13px; ! font-weight: bold; ! text-indent: 2px; ! } ! ! INPUT { ! background-color: transparent; ! border-bottom-width: 1px; ! border-color: #366FFF; ! border-left-width: 1px; ! border-right-width: 1px; ! border-top-width: 1px; ! color: #366FFF; ! font-family: Tahoma, Verdana, sans-serif; ! font-size: 13px; ! font-weight: normal; ! text-indent: 2px; ! } ! */ ! INPUT.r-button { ! background-color: transparent; ! font-family: Tahoma, Verdana, sans-serif; ! } ! ! SELECT { ! font-family: Tahoma, Verdana, sans-serif; ! font-size: 13px; ! font-weight: bold; ! } ! ! A:link{ ! background-color: transparent; ! color: #000000; ! font-family: Tahoma, Verdana, sans-serif; ! font-size: 13px; ! text-decoration: none; ! } ! ! A:visited { ! background-color: transparent; ! color: #000000; ! font-family: Tahoma, Verdana, sans-serif; ! font-size: 13px; ! text-decoration: none; ! } ! ! A:hover { ! background-color: transparent; ! color: #0700FF; ! font-family: Tahoma, Verdana, sans-serif; ! font-size: 13px; ! text-decoration: underline; ! } ! ! A:active { ! background-color: transparent; ! color: #000000; ! font-family: Tahoma, Verdana, sans-serif; ! font-size: 13px; ! text-decoration: none; ! } ! ! A:link.menu { ! background-color: transparent; ! color: #000000; ! font-family: Tahoma, Verdana, sans-serif; ! font-size: 13px; ! font-weight: bold; ! text-decoration: none; ! } ! ! A:visited.menu { ! background-color: transparent; ! color: #000000; ! font-family: Tahoma, Verdana, sans-serif; ! font-size: 13px; ! font-weight: bold; ! text-decoration: none; ! } ! ! A:hover.menu { ! background-color: transparent; ! color: #0700FF; ! font-family: Tahoma, Verdana, sans-serif; ! font-size: 13px; ! font-weight: bold; ! text-decoration: underline; ! } ! ! A:active.menu { ! background-color: transparent; ! color: #000000; ! font-family: Tahoma, Verdana, sans-serif; ! font-size: 13px; ! font-weight: bold; ! text-decoration: none; ! } Index: theme.php =================================================================== RCS file: /cvsroot/openposs/Server/theme/Default/theme.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** theme.php 25 Jun 2002 05:45:43 -0000 1.2 --- theme.php 28 Jun 2002 02:10:22 -0000 1.3 *************** *** 1,232 **** ! <? ! ! /****************************************************************************** ! * Function: Theme_Open_Page() * ! * -------------------------------------------------------------------------- * ! * This function is used to generate the HTML code for the start of a webpage * ! * and should be called before any of the functions below. * ! * * ! * Returned Values * ! * HTML code snippet. * ! * * ! * Input Values * ! * $Title: This is a string of text to be used in the page title. * ! ******************************************************************************/ ! function Theme_Open_Page($Title) { ! $Output = "<HTML><HEAD><TITLE>"._OPENPOSTITLE." :: $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; ! } ! ! /****************************************************************************** ! * Function: Theme_Close_Page() * ! * -------------------------------------------------------------------------- * ! * This function is used to generate the HTML code to finish off the webpage * ! * and should be called after all other function calls within this module * ! * have been completed. * ! * * ! * Returned Values * ! * HTML code snippet. * ! * * ! * Input Values * ! * None. * ! ******************************************************************************/ ! function Theme_Close_Page() { ! $Output = "</BODY></HTML>"; ! return $Output; ! } ! ! /****************************************************************************** ! * Function: Theme_Open_Table() * ! * -------------------------------------------------------------------------- * ! * This function is used to generate the <TABLE> HTML tags for the beginning * ! * of a HTML table. * ! * * ! * Returned Values * ! * HTML code snippet. * ! * * ! * Input Values * ! * $Width: (OPTIONAL) the value of the table width which can be either a * ! * fixed number of pixels, or a percentage. * ! ******************************************************************************/ ! function Theme_Open_Table($Width = "") { ! $Output = "<TABLE BORDER=\"0\" CELLPADDING=\"2\" CELLSPACING=\"2\""; ! if (isset($Width)) { ! $Output .= " WIDTH=\"$Width\""; ! } ! $Output .= ">"; ! return $Output; ! } ! ! /****************************************************************************** ! * Function: Theme_Close_Table() * ! * -------------------------------------------------------------------------- * ! * This function is used to generate the closing tag for a HTML table. * ! * * ! * Returned Values * ! * HTML code snippet. * ! * * ! * Input Values * ! * None. * ! ******************************************************************************/ ! function Theme_Close_Table() { ! $Output = "</TABLE>"; ! return $Output; ! } ! ! /****************************************************************************** ! * Function: Theme_Open_Row() * ! * -------------------------------------------------------------------------- * ! * This function is used to generate the HTML snippet for starting a row in a * ! * HTML webpage table. * ! * * ! * Returned Values * ! * HTML code snippet. * ! * * ! * Input Values * ! * None. * ! ******************************************************************************/ ! function Theme_Open_Row() { ! $Output = "<TR>"; ! return $Output; ! } ! ! /****************************************************************************** ! * Function: Theme_Close_Row() * ! * -------------------------------------------------------------------------- * ! * This function is used to generate the HTML snippet for finishing a row in * ! * a HTML webpage table. * ! * * ! * Returned Values * ! * HTML code snippet. * ! * * ! * Input Values * ! * None. * ! ******************************************************************************/ ! function Theme_Close_Row() { ! $Output = "</TR>"; ! return $Output; ! } ! ! /****************************************************************************** ! * Function: Theme_Open_Header_Cell() * ! * -------------------------------------------------------------------------- * ! * This function is used to generate the HTML snippet used to create a header * ! * cell in a HTML table. * ! * * ! * Returned Values * ! * HTML code snippet. * ! * * ! * Input Values * ! * $Align: (OPTIONAL) alignment of the contents of the cell. * ! ******************************************************************************/ ! function Theme_Open_Header_Cell($Align = "LEFT") { ! $Output = "<TH ALIGN=\"$Align\">"; ! return $Output; ! } ! ! /****************************************************************************** ! * Function: Theme_Close_Header_Cell() * ! * -------------------------------------------------------------------------- * ! * This function is used to generate the HTML snippet used to end a header * ! * cell in a HTML table. * ! * * ! * Returned Values * ! * HTML code snippet. * ! * * ! * Input Values * ! * None. * ! ******************************************************************************/ ! function Theme_Close_Header_Cell() { ! $Output = "</TH>"; ! return $Output; ! } ! ! /****************************************************************************** ! * Function: Theme_Open_Data_Cell() * ! * -------------------------------------------------------------------------- * ! * This function is used to generate a HTML snippet to create a normal data * ! * cell within a HTML table. * ! * * ! * Returned Values * ! * HTML code snippet. * ! * * ! * Input Values * ! * $Align: (OPTIONAL) alignment of the contents of the cell. * ! * $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; ! } ! ! /****************************************************************************** ! * Function: Theme_Close_Data_Cell() * ! * -------------------------------------------------------------------------- * ! * This function is used to generate a HTML snippet to close off a normal * ! * data cell within a HTML table. * ! * * ! * Returned Values * ! * HTML code snippet. * ! * * ! * Input Values * ! * None. * ! ******************************************************************************/ ! function Theme_Close_Data_Cell() { ! $Output = "</TD>"; ! return $Output; ! } ! ! /****************************************************************************** ! * Function: ReadConfigFromDatabase() * ! * -------------------------------------------------------------------------- * ! * This function is used to create a HTML link snippet. * ! * * ! * Returned Values * ! * HTML code snippet. * ! * * ! * Input Values * ! * $URI: URI of the location the link points to. * ! * $Label: The text of the link. * ! ******************************************************************************/ ! function Theme_Add_Link($URI, $Label) { ! $Output = "<A HREF=\"$URI\">$Label</A>"; ! return $Output; ! } ! ! /****************************************************************************** ! * Function: Theme_Login_Screen() * ! * -------------------------------------------------------------------------- * ! * This function is used to produce a HTML web page that is used as the login * ! * page for the openPOS System. * ! * * ! * Returned Values * ! * HTML Webpage. * ! * * ! * Input Values * ! * None. * ! ******************************************************************************/ ! function Theme_Login_Screen() { ! $Output = Theme_Open_Page(_OPENPOSLOGINTITLE)."<DIV ALIGN=\"CENTER\">"; ! $Output .= "<FORM ACTION=\"/Server/\" METHOD=\"GET\">"; ! $Output .= Theme_Open_Table().Theme_Open_Row().Theme_Open_Data_Cell("Right"); ! $Output .= "Username".Theme_Close_Data_Cell().Theme_Open_Data_Cell(); ! $Output .= "<INPUT TYPE=\"TEXT\" NAME=\"username\">".Theme_Close_Data_Cell(); ! $Output .= Theme_Close_Row().Theme_Open_Row().Theme_Open_Data_Cell("Right"); ! $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 .= "<INPUT TYPE=\"HIDDEN\" NAME=\"action\" VALUE=\"submitlogin\">"; ! $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()."</FORM></DIV>".Theme_Close_Page(); ! return $Output; ! } ! ! ?> --- 1,315 ---- ! <? ! ! /****************************************************************************** ! * Function: Theme_Open_Page() * ! * -------------------------------------------------------------------------- * ! * This function is used to generate the HTML code for the start of a webpage * ! * and should be called before any of the functions below. * ! * * ! * Returned Values * ! * HTML code snippet. * ! * * ! * Input Values * ! * $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; ! } ! ! /****************************************************************************** ! * Function: Theme_Close_Page() * ! * -------------------------------------------------------------------------- * ! * This function is used to generate the HTML code to finish off the webpage * ! * and should be called after all other function calls within this module * ! * have been completed. * ! * * ! * Returned Values * ! * HTML code snippet. * ! * * ! * Input Values * ! * None. * ! ******************************************************************************/ ! function Theme_Close_Page() { ! $Output = "</BODY></HTML>"; ! return $Output; ! } ! ! /****************************************************************************** ! * Function: Theme_Open_Table() * ! * -------------------------------------------------------------------------- * ! * This function is used to generate the <TABLE> HTML tags for the beginning * ! * of a HTML table. * ! * * ! * Returned Values * ! * HTML code snippet. * ! * * ! * Input Values * ! * $Width: (OPTIONAL) the value of the table width which can be either a * ! * fixed number of pixels, or a percentage. * ! ******************************************************************************/ ! function Theme_Open_Table($Width = "") { ! $Output = "<TABLE BORDER=\"0\" CELLPADDING=\"2\" CELLSPACING=\"2\""; ! if (isset($Width)) { ! $Output .= " WIDTH=\"$Width\""; ! } ! $Output .= ">"; ! return $Output; ! } ! ! /****************************************************************************** ! * Function: Theme_Close_Table() * ! * -------------------------------------------------------------------------- * ! * This function is used to generate the closing tag for a HTML table. * ! * * ! * Returned Values * ! * HTML code snippet. * ! * * ! * Input Values * ! * None. * ! ******************************************************************************/ ! function Theme_Close_Table() { ! $Output = "</TABLE>"; ! return $Output; ! } ! ! /****************************************************************************** ! * Function: Theme_Open_Row() * ! * -------------------------------------------------------------------------- * ! * This function is used to generate the HTML snippet for starting a row in a * ! * HTML webpage table. * ! * * ! * Returned Values * ! * HTML code snippet. * ! * * ! * Input Values * ! * None. * ! ******************************************************************************/ ! function Theme_Open_Row() { ! $Output = "<TR>"; ! return $Output; ! } ! ! /****************************************************************************** ! * Function: Theme_Close_Row() * ! * -------------------------------------------------------------------------- * ! * This function is used to generate the HTML snippet for finishing a row in * ! * a HTML webpage table. * ! * * ! * Returned Values * ! * HTML code snippet. * ! * * ! * Input Values * ! * None. * ! ******************************************************************************/ ! function Theme_Close_Row() { ! $Output = "</TR>"; ! return $Output; ! } ! ! /****************************************************************************** ! * Function: Theme_Open_Header_Cell() * ! * -------------------------------------------------------------------------- * ! * This function is used to generate the HTML snippet used to create a header * ! * cell in a HTML table. * ! * * ! * Returned Values * ! * HTML code snippet. * ! * * ! * Input Values * ! * $Align: (OPTIONAL) alignment of the contents of the cell. * ! ******************************************************************************/ ! function Theme_Open_Header_Cell($Align = "LEFT") { ! $Output = "<TH ALIGN=\"$Align\">"; ! return $Output; ! } ! ! /****************************************************************************** ! * Function: Theme_Close_Header_Cell() * ! * -------------------------------------------------------------------------- * ! * This function is used to generate the HTML snippet used to end a header * ! * cell in a HTML table. * ! * * ! * Returned Values * ! * HTML code snippet. * ! * * ! * Input Values * ! * None. * ! ******************************************************************************/ ! function Theme_Close_Header_Cell() { ! $Output = "</TH>"; ! return $Output; ! } ! ! /****************************************************************************** ! * Function: Theme_Open_Data_Cell() * ! * -------------------------------------------------------------------------- * ! * This function is used to generate a HTML snippet to create a normal data * ! * cell within a HTML table. * ! * * ! * Returned Values * ! * HTML code snippet. * ! * * ! * Input Values * ! * $Align: (OPTIONAL) alignment of the contents of the cell. * ! * $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; ! } ! ! /****************************************************************************** ! * Function: Theme_Close_Data_Cell() * ! * -------------------------------------------------------------------------- * ! * This function is used to generate a HTML snippet to close off a normal * ! * data cell within a HTML table. * ! * * ! * Returned Values * ! * HTML code snippet. * ! * * ! * Input Values * ! * None. * ! ******************************************************************************/ ! function Theme_Close_Data_Cell() { ! $Output = "</TD>"; ! return $Output; ! } ! ! /****************************************************************************** ! * Function: Theme_Menu_Open () * ! * -------------------------------------------------------------------------- * ! * This function is used to generate the <TABLE> HTML tags for the beginning * ! * of a the menu for the system * ! * * ! * Returned Values * ! * HTML code snippet. * ! * * ! * Input Values * ! * $Width: (OPTIONAL) WIDTH OF the menu releative to the rest of the table * ! * $Title: (OPTIONAL) Title for the table * ! * * ! ******************************************************************************/ ! function Theme_Menu_Open($Width="",$Title = "") ! { ! if(!(isset($Width))) ! { ! $Width = "150"; ! } ! ! if(!(isset($Title))) ! { ! $Title=_OPENPOSNAVTITLE; ! } ! ! $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> ! <td background=\"theme/Default/images/menutop.png\" align=\"center\" valign=\"middle\" height=\"22\" width=\"$Width2\">".$Title."</td> ! <td width=12 height=22><img src=\"theme/Default/images/menutopright.png\" width=\"12\" height=\"22\" border=\"0\"></td> ! </tr> ! <tr> ! <td background=\"theme/Default/images/menuleft.png\"> </td> ! <td>"; ! ! return $Output; ! } ! ! /****************************************************************************** ! * Function: Theme_Menu_Close() * ! * -------------------------------------------------------------------------- * ! * This function is used to generate the closing tag for the menu table. * ! * * ! * Returned Values * ! * HTML code snippet. * ! * * ! * Input Values * ! * None. * ! ******************************************************************************/ ! function Theme_Menu_Close() { ! $Output = "</td> ! <td background=\"theme/Default/images/menuright.png\"> </td> ! </tr> ! <tr> ! <td width=8 height=12><img src=\"theme/Default/images/menubottomleft.png\" width=\"8\" height=\"12\" alt=\"\" border=\"0\"></td> ! <td background=\"theme/Default/images/menubottom.png\"> </td> ! <td width=12 height=12><img src=\"theme/Default/images/menubottomright.png\" width=\"12\" height=\"12\" alt=\"\" border=\"0\"></td> ! </tr> ! </table>"; ! return $Output; ! } ! ! /****************************************************************************** ! * Function: Theme_Add_Menu_Link() * ! * -------------------------------------------------------------------------- * ! * This function is used to create a HTML link snippet for the main menu. * ! * * ! * Returned Values * ! * HTML code snippet. * ! * * ! * Input Values * ! * $URI: URI of the location the link points to. * ! * $Label: The text of the link. * ! ******************************************************************************/ ! function Theme_Add_Menu_Link($URI, $Label) { ! $Output = "<A CLASS=\"menu\" HREF=\"$URI\">$Label</A>"; ! return $Output; ! } ! ! /****************************************************************************** ! * Function: ReadConfigFromDatabase() * ! * -------------------------------------------------------------------------- * ! * This function is used to create a HTML link snippet. * ! * * ! * Returned Values * ! * HTML code snippet. * ! * * ! * Input Values * ! * $URI: URI of the location the link points to. * ! * $Label: The text of the link. * ! ******************************************************************************/ ! function Theme_Add_Link($URI, $Label) { ! $Output = "<A HREF=\"$URI\">$Label</A>"; ! return $Output; ! } ! ! /****************************************************************************** ! * Function: Theme_Login_Screen() * ! * -------------------------------------------------------------------------- * ! * This function is used to produce a HTML web page that is used as the login * ! * page for the openPOS System. * ! * * ! * Returned Values * ! * HTML Webpage. * ! * * ! * Input Values * ! * None. * ! ******************************************************************************/ ! 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"); ! $Output .= "Username".Theme_Close_Data_Cell().Theme_Open_Data_Cell(); ! $Output .= "<INPUT TYPE=\"TEXT\" NAME=\"username\">".Theme_Close_Data_Cell(); ! $Output .= Theme_Close_Row().Theme_Open_Row().Theme_Open_Data_Cell("Right"); ! $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; ! } ! ! ?> |
Update of /cvsroot/openposs/Server/theme/Default/images In directory usw-pr-cvs1:/tmp/cvs-serv5931 Added Files: menubottomright.png menuitem.png menuleft.png menuright.png menutop.png menutopleft.png menutopright.png Log Message: --- NEW FILE: menubottomright.png --- PNG (ÍÇÇäææj Ðñh*ùùù999æ±°° --- NEW FILE: menuitem.png --- PNG --- NEW FILE: menuleft.png --- PNG --- NEW FILE: menuright.png --- PNG --- NEW FILE: menutop.png --- PNG --- NEW FILE: menutopleft.png --- PNG --- NEW FILE: menutopright.png --- PNG |
From: <ope...@li...> - 2002-06-28 02:08:32
|
Update of /cvsroot/openposs/Server/theme/Default/images In directory usw-pr-cvs1:/tmp/cvs-serv5717 Added Files: menubottomleft.png Log Message: --- NEW FILE: menubottomleft.png --- PNG |