cvsuser 02/04/13 20:56:24
Added: P5EEx/Blue/cgi-bin demo.conf demo.pl
Removed: P5EEx/Blue/cgi-bin demo_report.conf demo_report.pl
Log:
renamed files from demo_report.* to demo.*
Revision Changes Path
1.1 p5ee/P5EEx/Blue/cgi-bin/demo.conf
Index: demo.conf
===================================================================
#############################################################################
# $Id: demo.conf,v 1.1 2002/04/14 03:56:24 spadkins Exp $
#############################################################################
perlinc = /usr/ov/acoc/dev/src/P5EEx-Blue, /usr/ov/acoc/dev/lib/perl5/5.6.0
debugmode = record
showsession = 1
gzip = 1
configFile = demo.pl
#sessionClass = P5EEx::Blue::Session::Cookie
defaultWname = report
scriptUrlDir = /cgi-bin/pub/p5ee
scriptDir = /usr/ov/acoc/dev/p5ee/P5EEx/Blue/cgi-bin
htmlUrlDir = /pub/p5ee/software/htdocs
htmlDir = /usr/ov/acoc/dev/p5ee/P5EEx/Blue/htdocs
ttTemplateDir = /usr/ov/acoc/dev/p5ee/P5EEx/Blue/template/ttdemo
1.1 p5ee/P5EEx/Blue/cgi-bin/demo.pl
Index: demo.pl
===================================================================
$data = {
#########################################################################
# $Id: demo.pl,v 1.1 2002/04/14 03:56:24 spadkins Exp $
# NOTE: this is after the "$data = {" line for a reason
#########################################################################
WidgetType => {
date => {
widgetClass => 'P5EEx::Blue::Widget::HTML::Element',
tag => 'input',
type => 'text',
maxlength => '99',
size => '14',
},
date3 => {
widgetClass => 'P5EEx::Blue::Widget::HTML::DateDropDowns',
},
gender => {
widgetClass => 'P5EEx::Blue::Widget::HTML::Select',
domain => 'gender',
},
year => {
widgetClass => 'P5EEx::Blue::Widget::HTML::Select',
domain => 'year',
},
month => {
widgetClass => 'P5EEx::Blue::Widget::HTML::Select',
domain => 'month',
},
day => {
widgetClass => 'P5EEx::Blue::Widget::HTML::Select',
domain => 'day',
},
table => {
widgetClass => 'P5EEx::Blue::Widget::HTML::DataTable',
repository => 'db',
table => 'person',
headings => [ "ID", "Last Name", "First Name", "Address", "City", "State",
"Home Phone", "Sex", "Birth Date" ],
columns => [ "person_id", "last_name", "first_name", "address", "city",
"state", "home_phone", "gender", "birth_dt" ],
keycolidx => [ 0 ],
scrollable => 1,
sortable => 1,
filterable => 1,
editable => 1,
},
check_anniv_dt => {
label => 'Check Date',
widgetClass => 'P5EEx::Blue::Widget::HTML::Button',
},
button => {
widgetClass => 'P5EEx::Blue::Widget::HTML::ImageButton',
height => '17',
width => '100',
bevel => '2',
},
'button.min' => {
widgetClass => 'P5EEx::Blue::Widget::HTML::ImageButton',
height => '17',
width => '100',
bevel => '2',
},
'repedit.button' => {
widgetClass => 'P5EEx::Blue::Widget::HTML::ImageButton',
height => '17',
width => '70',
bevel => '2',
},
app => {
widgetClass => 'P5EEx::Blue::Widget::HTML::AppFrame',
title => "P5EE Reporting and Data Maintenance",
bgcolor => "#cccccc",
text => "#000000",
link => "#996600",
vlink => "#996600",
alink => "#996600",
leftmargin => "0",
topmargin => "0",
rightmargin => "0",
bottommargin => "0",
},
'selector.button' => {
widgetClass => 'P5EEx::Blue::Widget::HTML::ImageButton',
height => '19',
width => '98',
bevel => '2',
},
},
Domain => {
gender => {
values => [ 'M', 'F', ],
labels => { M => 'Male', F => 'Female', },
},
year => {
values => [
'1980', '1981', '1982', '1983', '1984', '1985', '1986', '1987', '1988',
'1989',
'1990', '1991', '1992', '1993', '1994', '1995', '1996', '1997', '1998',
'1999',
'2000', '2001', '2002', '2003', '2004', '2005', '2006', '2007', '2008',
'2009',
],
labels => {},
},
month => {
values => [ '01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11',
'12', ],
labels => {
'01' => 'Jan', '02' => 'Feb', '03' => 'Mar', '04' => 'Apr',
'05' => 'May', '06' => 'Jun', '07' => 'Jul', '08' => 'Aug',
'09' => 'Sep', '10' => 'Oct', '11' => 'Nov', '12' => 'Dec',
},
},
day => {
values => [
'01', '02', '03', '04', '05', '06', '07', '08', '09', '10',
'11', '12', '13', '14', '15', '16', '17', '18', '19', '20',
'21', '22', '23', '24', '25', '26', '27', '28', '29', '30',
'31',
],
labels => {},
},
name => {
repository => 'db',
time_to_live => '', # never expire this domain (default)
getmethod => 'selectall_arrayref', # method to refresh name/label pairs
(default "get")
# args to pass when refreshing name/label pairs (default is key of this hash,
i.e. "name")
getmethod_args => [ "select person_id, concat(last_name, ', ', first_name)
from Widget.person" ],
},
},
TemplateEngine => {
default => {
templateEngineClass => 'P5EEx::Blue::TemplateEngine',
templateDir => '../templates/builtindemo',
},
builtin => {
templateEngineClass => 'P5EEx::Blue::TemplateEngine',
templateDir => '../templates/builtindemo',
},
tt => {
templateEngineClass => 'P5EEx::Blue::TemplateEngine::TemplateToolkit',
templateDir => '../templates/ttdemo',
},
mason => {
templateEngineClass => 'P5EEx::Blue::TemplateEngine::Mason',
templateDir => '../templates/masondemo',
},
},
Repository => {
db => {
repositoryClass => 'P5EEx::Blue::Repository::DBI',
dbidriver => "mysql",
dbname => "p5ee_demo",
dbuser => "dbuser",
dbpass => "dbuser7",
table => {
person => {
prikey => [ "person_id" ],
},
},
},
},
Widget => {
default => {
widgetClass => 'P5EEx::Blue::Widget::HTML::Label',
},
global => {
lang => 'fr_ca',
dict => {
en => {
Male => 'Male',
Female => 'Female',
},
fr => {
Male => 'Homme',
Female => 'Dame',
},
fr_ca => {
Female => 'Fille',
},
},
},
hello => {
widgetClass => 'P5EEx::Blue::Widget::HTML::Element',
tag => 'input',
type => 'text',
maxlength => '99',
size => '14',
},
first_name => {
widgetClass => 'P5EEx::Blue::Widget::HTML::Element',
tag => 'input',
type => 'text',
maxlength => '99',
size => '14',
},
last_name => {
widgetClass => 'P5EEx::Blue::Widget::HTML::Element',
tag => 'input',
type => 'text',
maxlength => '99',
size => '14',
},
birth_dt => { widgetType => 'date', },
anniv_dt => { widgetType => 'date3', },
'anniv_dt.year' => { widgetType => 'year', },
'anniv_dt.month' => { widgetType => 'month', },
'anniv_dt.day' => { widgetType => 'day', },
gender => { widgetType => 'gender', },
check_it => { widgetType => 'check_anniv_dt', },
table => { widgetType => 'table', },
name => {
widgetClass => 'P5EEx::Blue::Widget::HTML::Select',
domain => 'name',
},
hello_button => {
widgetType => 'button',
label => 'Hello, world',
},
tree => {
widgetClass => 'P5EEx::Blue::Widget::HTML::TreeView',
node => {
1 => { open => 1, value => 'Data', },
1.1 => { open => 1, value => 'Development', },
1.1.1 => { open => 0, value => 'Argo UML', },
1.1.2 => { open => 0, value => 'c', },
1.1.3 => { open => 1, value => 'icons', },
1.1.3.1 => { open => 1, value => 'icons', },
1.2 => { open => 0, value => 'Marcia', },
2 => { open => 1, value => 'Data', },
2.1 => { open => 0, value => 'Development', },
2.1.1 => { open => 0, value => 'Argo UML', },
2.1.2 => { open => 0, value => 'c', },
2.1.3 => { open => 1, value => 'icons', },
2.1.3.1 => { open => 1, value => 'icons', },
2.2 => { open => 0, value => 'Marcia', },
3 => { open => 0, value => 'Data', },
3.1 => { open => 0, value => 'Development', },
3.1.1 => { open => 0, value => 'Argo UML', },
3.1.2 => { open => 0, value => 'c', },
3.1.3 => { open => 1, value => 'icons', },
3.1.3.1 => { open => 1, value => 'icons', },
3.2 => { open => 0, value => 'Marcia', },
},
},
report => {
widgetType => 'app',
},
'report.menu' => {
widgetClass => 'P5EEx::Blue::Widget::HTML::Menu',
},
'report.toolbar' => {
widgetClass => 'P5EEx::Blue::Widget::HTML::Toolbar',
},
'report.screentitle' => {
widgetClass => 'P5EEx::Blue::Widget::HTML::Label',
bgcolor => '#888888',
},
'report.screentoolbar' => {
widgetClass => 'P5EEx::Blue::Widget::HTML::Toolbar',
},
'report.selector' => {
widgetClass => 'P5EEx::Blue::Widget::HTML::SelectorView',
selected => "1.1",
node => {
1 => { open => 1, value => 'Reports',
icon => 'calendar.gif' },
1.1 => { open => 1, value => 'Dates', wname => 'table',
},
1.1.1 => { open => 0, value => 'Arrival Date', wname => 'tree',
},
1.1.2 => { open => 0, value => 'Departure Date', wname => 'table',
},
1.1.3 => { open => 0, value => 'Booking Date', wname => 'tree',
},
1.1.3.1 => { open => 0, value => 'Booking Time', wname => 'table',
},
1.2 => { open => 0, value => 'Locations', wname => 'tree',
},
2 => { open => 0, value => 'Maintenance',
},
2.1 => { open => 0, value => 'Inventory', wname => 'tree',
icon => 'home.gif' },
2.1.1 => { open => 0, value => 'Current Inventory', wname => 'table',
icon => 'calendar.gif' },
2.1.2 => { open => 0, value => 'Future Inventory', wname => 'tree',
icon => 'notes.gif' },
2.1.3 => { open => 0, value => 'Historical Inventory', wname => 'table',
icon => 'tasks.gif' },
2.2 => { open => 0, value => 'Payables', wname => 'tree',
icon => 'contacts.gif' },
2.3 => { open => 0, value => 'Sales', wname => 'tree',
icon => 'home.gif' },
2.3.1 => { open => 0, value => 'Current Sales', wname => 'table',
icon => 'calendar.gif' },
2.3.2 => { open => 0, value => 'Future Sales', wname => 'tree',
icon => 'notes.gif' },
2.3.3 => { open => 0, value => 'Historical Sales', wname => 'table',
icon => 'tasks.gif' },
2.4 => { open => 0, value => 'Receivables', wname => 'tree',
icon => 'contacts.gif' },
3 => { open => 0, value => 'Settings',
icon => 'trash2.gif' },
3.1 => { open => 0, value => 'Users', wname => 'tree',
},
3.2 => { open => 0, value => 'Locations', wname => 'tree',
icon => 'tasks.gif' },
4 => { open => 0, value => 'Security',
icon => 'trash2.gif' },
4.1 => { open => 0, value => 'Users', wname => 'tree',
},
4.2 => { open => 0, value => 'Locations', wname => 'tree',
icon => 'tasks.gif' },
5 => { open => 0, value => 'Customization',
icon => 'trash2.gif' },
5.1 => { open => 0, value => 'Users', wname => 'tree',
},
5.2 => { open => 0, value => 'Locations', wname => 'tree',
icon => 'tasks.gif' },
},
},
'report.selector.button1' => {
widgetType => 'selector.button',
},
'report.selector.button2' => {
widgetType => 'selector.button',
},
'report.selector.button3' => {
widgetType => 'selector.button',
},
dbapp => { widgetType => 'app', },
'dbapp.menu' => { widgetClass => 'P5EEx::Blue::Widget::HTML::Menu', },
'dbapp.toolbar' => { widgetClass => 'P5EEx::Blue::Widget::HTML::Toolbar', },
'dbapp.screentitle' => { widgetClass => 'P5EEx::Blue::Widget::HTML::Label',
bgcolor => '#888888', },
'dbapp.screentoolbar' => { widgetClass => 'P5EEx::Blue::Widget::HTML::Toolbar',
},
'dbapp.selector' => {
widgetClass => 'P5EEx::Blue::Widget::HTML::SelectorView',
node => {
1 => { open => 1, value => 'Screens', },
1.1 => { open => 1, value => 'View/Edit Database', wname => 'repedit', },
},
},
'dbapp.selector.button1' => { widgetType => 'selector.button', },
repedit => { widgetClass => 'P5EEx::Blue::Widget::HTML::RepositoryEditor',
repository => 'db', },
index => {
widgetClass => 'P5EEx::Blue::Widget::HTML::Template',
},
},
};