Line 7... |
Line 7... |
7 |
define ( IMAGE_DIRECTORY, '/pictures/' ); // relative URL where pictures are stored
|
7 |
define ( IMAGE_DIRECTORY, '/pictures/' ); // relative URL where pictures are stored
|
8 |
define ( EDIT_IMAGE_HEIGHT, 100 ); // height for thumbnail of pictuers
|
8 |
define ( EDIT_IMAGE_HEIGHT, 100 ); // height for thumbnail of pictuers
|
9 |
define ( MAX_UPLOAD_FILE_SIZE, 1024*1024*10 ); // 10 meg
|
9 |
define ( MAX_UPLOAD_FILE_SIZE, 1024*1024*10 ); // 10 meg
|
10 |
define (DEFAULT_TEXTAREA_HEIGHT, 5 );
|
10 |
define (DEFAULT_TEXTAREA_HEIGHT, 5 );
|
11 |
define ( DEFAULT_TABLE, 'client');
|
11 |
define ( DEFAULT_TABLE, 'client');
|
- |
|
12 |
define ( CHILD_KEY_INSERT_TAG, 'new');
|
- |
|
13 |
define ( CHILD_KEY_DELIMITER, '-' );
|
- |
|
14 |
define ( CHILD_KEY_TAG, 'child_table' );
|
- |
|
15 |
|
12 |
global $DATABASE_DEFINITION;
|
16 |
global $DATABASE_DEFINITION;
|
13 |
|
17 |
|
14 |
$DATABASE_DEFINITION = array(
|
18 |
$DATABASE_DEFINITION = array(
|
15 |
/* Basically a configuration file equivilent to a windows INI */
|
19 |
/* Basically a configuration file equivilent to a windows INI */
|
16 |
'_system' => array(
|
20 |
'_system' => array(
|
Line 31... |
Line 35... |
31 |
'added_date' => array('required' => true , 'type' => 'datetime'),
|
35 |
'added_date' => array('required' => true , 'type' => 'datetime'),
|
32 |
/* key into this value */
|
36 |
/* key into this value */
|
33 |
'key_name' => array('required' => true , 'type' => 'string' , 'width' => 64)
|
37 |
'key_name' => array('required' => true , 'type' => 'string' , 'width' => 64)
|
34 |
)
|
38 |
)
|
35 |
),
|
39 |
),
|
36 |
/* These are attributes that can be applied to a device */
|
- |
|
37 |
'attrib' => array(
|
- |
|
38 |
'table name' => 'attrib',
|
- |
|
39 |
'key field' => 'attrib_id',
|
- |
|
40 |
'display name' => 'Device Attributes',
|
- |
|
41 |
'display columns' => array('name'),
|
- |
|
42 |
'display query' => 'select attrib.attrib_id,name from attrib',
|
- |
|
43 |
'field info' => array(
|
- |
|
44 |
/* date record was deleted/supserceded */
|
- |
|
45 |
'removed_date' => array('type' => 'datetime', 'required' => false, 'default'=>null ),
|
- |
|
46 |
/* the visible displayed name */
|
- |
|
47 |
'name' => array('required' => true , 'type' => 'string' , 'width' => 64),
|
- |
|
48 |
/* date record was added */
|
- |
|
49 |
'added_date' => array('required' => true , 'type' => 'datetime'),
|
- |
|
50 |
'attrib_id' => array('keyfield' => true , 'required' => true , 'readonly' => true , 'type' => 'int' , 'width' => 10)
|
- |
|
51 |
)
|
- |
|
52 |
),
|
- |
|
53 |
/* information on a particular client */
|
40 |
/* information on a particular client */
|
54 |
'client' => array(
|
41 |
'client' => array(
|
55 |
'table name' => 'client',
|
42 |
'table name' => 'client',
|
56 |
'key field' => 'client_id',
|
43 |
'key field' => 'client_id',
|
57 |
'display name' => 'Clients',
|
44 |
'display name' => 'Clients',
|