Subversion Repositories computer_asset_manager_v2

Rev

Rev 61 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

<?php
   /*
    * This contains the structure to be added to the user class
    */
   $customFields = array( 
      'tables' => array(
         'users' => array(
            'fields' => array(
               'restrictions' => array(
                  // this will be the display label on the form
                  'label'  => 'Restrictions',
                  // the input type to use for data entry
                  'html type' => 'textarea',
                  // you can only edit this if an admin and changing someone
                  // else' record
                  'restrict' => true,
                  // will be displayed on a hover in HTML5 (ie, title=)
                  'instructions' => 'Enter code to restrict user access. See documentation',
                  // this is entered in an empty box, ie placeholder=
                  'hint'     => '[owner]<br />ownername',
                  // for Data Source
                  'dbColumn'  =>  'restrictions',
                  // actual mySQL column type
                  'type'      => 'text',
                  // set it to not null if we build the table ourselves
                  'required'  => false
                  ),
               'email' => array(
                  // this will be the display label on the form
                  'label'  => 'email address',
                  // the input type to use for data entry
                  'html type' => 'text',
                  // you can only edit this if an admin and changing someone
                  // else' record
                  'restrict' => false,
                  // will be displayed on a hover in HTML5 (ie, title=)
                  'instructions' => 'Used to communicate with user',
                  // this is entered in an empty box, ie placeholder=
                  'hint'     => 'Enter Valid e-mail address',
                  // for Data Source
                  'dbColumn'  =>  'email',
                  // actual mySQL column type, varchar(64)
                  'type'      => 'varchar',
                  'size'      => 64,
                  // set it to not null if we build the table ourselves
                  'required'  => false,
                  ),
               'created' => array(
                  'label' => 'Date Created',
                  'html type' => 'text',
                  'restrict' => true,
                  'instructions' => 'Enter date user was added',
                  'hint' => '2021-01-01',
                  'dbColumn' => 'created',
                  'type' => 'date',
                  'required' => true
                  ),
               'removed' => array(
                  'label' => 'Date Removed',
                  'html type' => 'text',
                  'restrict' => true,
                  'instructions' => 'Enter date user was removed',
                  'hint' => '2021-01-01',
                  'dbColumn' => 'removed',
                  'type' => 'date',
                  'required' => false
                  )
               ) // fields
            ) // users
         ) // tables
      ); // customFields
      
      $permissions = array(
         array('Menu', 'menu_home', 'Home Menu', 1),
         array('Menu', 'menu_owner', 'Owner Menu', 1),
         array('Menu', 'menu_location', 'Location Menu', 1),
         array('Menu', 'menu_device', 'Device Menu', 1),
         array('Menu', 'menu_report', 'Report Menu', 1),
         array('Main', 'owner_edit', 'Edit Owner', 1),
         array('Main', 'owner_add', 'Add Owner', 1),
         array('Main', 'owner_del', 'Delete Owner', 0),
         array('Main', 'location_edit', 'Edit Location', 1),
         array('Main', 'location_add', 'Add Location', 1),
         array('Main', 'location_del', 'Delete Location', 0),
         array('Main', 'device_edit', 'Edit Device', 1),
         array('Main', 'device_add', 'Add Device', 1),
         array('Main', 'device_del', 'Delete Device', 0),
      );
         
?>