cvsuser     02/06/15 21:45:22

  Modified:    P5EEx/Blue/cgi-bin demo.pl
  Log:
  modifying demo
  
  Revision  Changes    Path
  1.4       +76 -70    p5ee/P5EEx/Blue/cgi-bin/demo.pl
  
  Index: demo.pl
  ===================================================================
  RCS file: /cvs/public/p5ee/P5EEx/Blue/cgi-bin/demo.pl,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -w -r1.3 -r1.4
  --- demo.pl   19 Apr 2002 14:38:44 -0000      1.3
  +++ demo.pl   16 Jun 2002 04:45:22 -0000      1.4
  @@ -1,7 +1,7 @@
   
   $data = {
     #########################################################################
  -  # $Id: demo.pl,v 1.3 2002/04/19 14:38:44 spadkins Exp $
  +  # $Id: demo.pl,v 1.4 2002/06/16 04:45:22 spadkins Exp $
     # NOTE: this is after the "$data = {" line for a reason
     #########################################################################
     WidgetType => {
  @@ -34,37 +34,13 @@
       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" ],
  +      #table       => 'person',
         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",
  @@ -78,12 +54,6 @@
         rightmargin => "0",
         bottommargin => "0",
       },
  -    'selector.button' => {
  -      widgetClass => 'P5EEx::Blue::Widget::HTML::ImageButton',
  -      height => '19',
  -      width => '98',
  -      bevel => '2',
  -    },
     },
     Domain => {
       gender => {
  @@ -198,20 +168,61 @@
       },
       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', },
  +    person_table       => { widgetType => 'table', table => 'person',
  +      columns => [
  +        "person_id", "create_dttm",
  +        "first_name", "last_name", "maiden_name",
  +        "address", "city", "state", "zip", "country",
  +        "nationality", "home_phone", "work_phone", "fax_phone", "cell_phone", 
"email_address",
  +        "gender", "occupation", "photo_url",
  +        "birth_dt", "death_dt", "marriage_status", "marriage_dt", "divorce_dt",
  +      ],
  +    },
  +    usr_table          => { widgetType => 'table', table => 'usr',
  +      columns => [
  +        "usr_id", "usr_name", "password1", "password2", "pri_email", "create_dttm",
  +        "first_name", "last_name", "prefix_name", "middle_name", "suffix_name",
  +        "company", "address1", "address2", "city", "state", "postal_code", 
"country",
  +        "citizenship", "phone", "altphone", "fax", "cell", "pager",
  +        "confirm_value", "last_login",
  +      ],
  +    },
  +    org_table          => { widgetType => 'table', table => 'org',
  +      columns => [
  +        "org_id", "org_auth_cd", "org_name", "org_long_name",
  +        "owner_usr_id", "auth_org_email", "pri_org_email", "create_dttm",
  +      ],
  +    },
  +    org_role_table     => { widgetType => 'table', table => 'org_role',
  +      columns => [
  +        "org_role_id", "org_id", "org_role_name",
  +      ],
  +    },
  +    app_table          => { widgetType => 'table', table => 'app',
  +      columns => [
  +        "app_id", "app_cd", "app_name", "public_ind",
  +      ],
  +    },
  +    app_partner_table  => { widgetType => 'table', table => 'app_partner',
  +      columns => [
  +        "app_partner_id", "app_partner_cd", "app_partner_name", "org_id",
  +        "admin_email", "info_email",
  +        "bank_name", "bank_address1", "bank_address2", "bank_city", "bank_state", 
"bank_postal_cd",
  +        "bank_aba_routing", "bank_account_nbr", "bank_account_name", 
"bank_contact_name",
  +        "bank_tel_nbr", "bank_fax_nbr",
  +      ],
  +    },
  +    app_perm_table     => { widgetType => 'table', table => 'app_perm',
  +      columns => [
  +        "app_perm_id", "app_id", "app_perm_cd", "app_perm_name",
  +        "display_order", "create_dttm",
  +      ],
  +    },
       name => {
         widgetClass => 'P5EEx::Blue::Widget::HTML::Select',
         domain => 'name',
       },
  -    hello_button => {
  -      widgetType => 'button',
  -      label => 'Hello, world',
  -    },
       tree => {
         widgetClass => 'P5EEx::Blue::Widget::HTML::TreeView',
         node => {
  @@ -270,34 +281,30 @@
         widgetClass => 'P5EEx::Blue::Widget::HTML::SelectorView',
         selected => "1.1",
         node => {
  -        1 =>       { open => 1, value => 'Reports',                                
icon => 'calendar.gif' },
  -        1.1 =>     { open => 1, value => 'People',               wname => 'table',  
                      },
  -        1.2 =>     { open => 0, value => 'Tree',                 wname => 'tree',   
                      },
  -        1.3 =>     { open => 0, value => 'View/Edit Database',   wname => 
'repedit', icon => 'contacts.gif' },
  -        2 =>       { open => 0, value => 'Maintenance',                             
                      },
  -        2.1 =>     { open => 0, value => 'Inventory',            wname => 'tree',  
icon => 'home.gif'     },
  -        2.2 =>     { open => 0, value => 'Payables',             wname => 'tree',  
icon => 'contacts.gif' },
  -        2.3 =>     { open => 0, value => 'Sales',                wname => 'tree',  
icon => 'home.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'   },
  +        1 =>       { open => 1, value => 'Users',                                  
icon => 'tasks.gif'    },
  +        1.1 =>     { open => 1, value => 'Users',                wname => 
'usr_table',                    },
  +        1.2 =>     { open => 0, value => 'Organizations',        wname => 
'org_table',                    },
  +        1.3 =>     { open => 0, value => 'Roles',                wname => 
'org_role_table',               },
  +        2 =>       { open => 0, value => 'Applications',                           
icon => 'contacts.gif' },
  +        2.1 =>     { open => 0, value => 'Applications',         wname => 
'app_table',                    },
  +        2.2 =>     { open => 0, value => 'Partners',             wname => 
'app_partner_table',            },
  +        2.3 =>     { open => 0, value => 'Application Features', wname => 
'app_perm_table',               },
  +        3 =>       { open => 0, value => 'Maintenance',                             
                      },
  +        3.1 =>     { open => 0, value => 'Inventory',            wname => 'tree',  
icon => 'home.gif'     },
  +        3.2 =>     { open => 0, value => 'Payables',             wname => 'tree',  
icon => 'contacts.gif' },
  +        3.3 =>     { open => 0, value => 'Sales',                wname => 'tree',  
icon => 'home.gif'     },
  +        3.4 =>     { open => 0, value => 'Receivables',          wname => 'tree',  
icon => 'contacts.gif' },
  +        4 =>       { open => 0, value => 'Settings',                               
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',
  +        5 =>       { open => 0, value => 'Reports',                                
icon => 'calendar.gif' },
  +        5.1 =>     { open => 0, value => 'People',               wname => 
'person_table',                 },
  +        5.2 =>     { open => 0, value => 'Tree',                 wname => 'tree',   
                      },
  +        5.3 =>     { open => 0, value => 'View/Edit Database',   wname => 
'repedit', icon => 'contacts.gif' },
  +        6 =>       { open => 0, value => 'Customization',                          
icon => 'trash2.gif'   },
  +        6.1 =>     { open => 0, value => 'Users',                wname => 'tree',   
                      },
  +        6.2 =>     { open => 0, value => 'Locations',            wname => 'tree',  
icon => 'tasks.gif'    },
       },
  -    'report.selector.button3' => {
  -      widgetType => 'selector.button',
       },
       dbapp => { widgetType => 'app', },
       'dbapp.menu' => { widgetClass => 'P5EEx::Blue::Widget::HTML::Menu', },
  @@ -311,7 +318,6 @@
           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',
  
  
  


Reply via email to