123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186 |
- <?php require_once 'auth.php'; ?>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
- "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <title><?=getTitle(__FILE__);?></title>
- <link rel="stylesheet" href="phpME.css" type="text/css"></link>
- </head>
- <body>
- <h3><?=getTitle(__FILE__);?></h3>
- <?php
- require_once 'config.php';
- $opts['hn'] = $adodb_host;
- $opts['un'] = $adodb_user;
- $opts['pw'] = $adodb_pass;
- $opts['db'] = $adodb_db;
- $opts['tb'] = 'qb_user_report';
- $opts['key'] = 'id';
- $opts['key_type'] = 'string';
- $opts['sort_field'] = array('id');
- $opts['inc'] = 25;
- $opts['options'] = 'ADCF';
- $opts['multiple'] = '4';
- $opts['navigation'] = 'UG';
- $opts['display'] = array(
- 'form' => true,
- 'query' => true,
- 'sort' => true,
- 'time' => true,
- 'tabs' => true
- );
- $opts['logtable'] = isLogTable($opts['tb']);
- $opts['language'] = $HTTP_SERVER_VARS['HTTP_ACCEPT_LANGUAGE'];
- $opts['multiple'] = 5;
- $opts['fdd']['id'] = array(
- 'name' => 'ID',
- 'select' => 'T',
- 'options' => 'AVCPDR',
- 'maxlen' => 11,
- 'default' => '0',
- 'sort' => true
- );
- $arr = array();
- $rs = $adodb->Execute("SELECT userid FROM qb_user ORDER BY userid");
- while (!$rs->EOF) {
- $arr[] = $rs->fields['userid'];
- $rs->MoveNext();
- }
- $opts['fdd']['userid'] = array(
- 'name' => 'Userid',
- 'select' => 'T',
- 'maxlen' => 32,
- 'required' => true,
- 'sort' => true,
- 'values' => $arr
- );
- $arr = array();
- $rs = $adodb->Execute("SELECT name FROM qb_report ORDER BY name");
- while (!$rs->EOF) {
- $arr[] = $rs->fields['name'];
- $rs->MoveNext();
- }
- $opts['fdd']['name'] = array(
- 'name' => 'Report',
- 'select' => 'T',
- 'maxlen' => 64,
- 'required' => true,
- 'sort' => true,
- 'values' => $arr
- );
- unset($arr);
- $opts['fdd']['action'] = array(
- 'name' => 'Action',
- 'select' => 'T',
- 'maxlen' => 65535,
- 'textarea' => array(
- 'rows' => 5,
- 'cols' => 50),
- 'sort' => true
- );
- $opts['fdd']['action']['values'] = array('add', 'change', 'delete', 'filter', 'list', 'copy');
- $opts['multiple'] = count($opts['fdd']['action']['values']);
- $opts['fdd']['action']['select'] = 'M';
- $moduleId = 'User.User Report';
- $opts['options'] = getUserOptions($moduleId, $opts['options']);
- $opts['filters'] = getUserFilters($moduleId);
- require_once 'phpMyEdit.class.php';
- new phpMyEdit($opts);
- ?>
- </body>
- </html>
|