|
| 1 | +<?php |
| 2 | +// Name of the list |
| 3 | +$liste["name"] = "backup_stats"; |
| 4 | + |
| 5 | +// Database table |
| 6 | +//$liste["table"] = "mail_domain"; |
| 7 | +$liste["table"] = "mail_user"; |
| 8 | + |
| 9 | +// Index index field of the database table |
| 10 | +//$liste["table_idx"] = "domain_id"; |
| 11 | +$liste["table_idx"] = "mailuser_id"; |
| 12 | + |
| 13 | +// Search Field Prefix |
| 14 | +$liste["search_prefix"] = "search_"; |
| 15 | + |
| 16 | +// Records per page |
| 17 | +$liste["records_per_page"] = "15"; |
| 18 | + |
| 19 | +// Script File of the list |
| 20 | +$liste["file"] = "backup_stats.php"; |
| 21 | + |
| 22 | +// Script file of the edit form |
| 23 | +$liste["edit_file"] = "backup_stats_edit.php"; |
| 24 | + |
| 25 | +// Paging Template |
| 26 | +$liste["paging_tpl"] = "templates/paging.tpl.htm"; |
| 27 | + |
| 28 | +// Enable auth |
| 29 | +$liste["auth"] = "yes"; |
| 30 | + |
| 31 | +// mark columns for php sorting (no real mySQL columns) |
| 32 | +$liste["phpsort"] = array('used_sort', 'files'); |
| 33 | + |
| 34 | + |
| 35 | +/***************************************************** |
| 36 | +* Suchfelder |
| 37 | +*****************************************************/ |
| 38 | + |
| 39 | +$liste['item'][] = array ( |
| 40 | + 'field' => 'server_id', |
| 41 | + 'datatype' => 'INTEGER', |
| 42 | + 'formtype' => 'SELECT', |
| 43 | + 'op' => '=', |
| 44 | + 'prefix' => '', |
| 45 | + 'width' => '', |
| 46 | + 'value' => '', |
| 47 | + 'suffix' => '', |
| 48 | + 'datasource' => array ( |
| 49 | + 'type' => 'SQL', |
| 50 | + 'querystring' => 'SELECT a.server_id, a.server_name FROM server a, mail_domain b WHERE (a.server_id = b.server_id) ORDER BY a.server_name', |
| 51 | + 'keyfield' => 'server_id', |
| 52 | + 'valuefield' => 'server_name' |
| 53 | + ) |
| 54 | +); |
0 commit comments