Changeset 42 for trunk/bin/module_maker/list_template.cli.php
- Timestamp:
- Dec 18, 2005 12:16:03 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bin/module_maker/list_template.cli.php
r41 r42 49 49 if (is_array($cols) && !empty($cols)) { 50 50 foreach ($cols as $col) { 51 51 52 52 // Human readable. 53 53 $field = $col[0]; 54 54 $title = ucfirst(str_replace('_', ' ', $field)); 55 55 $type = preg_replace('/^(\w+).*$/', '\\1', $col[1]); 56 56 57 57 // Get primary key. 58 58 if ('PRI' == $col[3]) { 59 59 $primary_key = $field; 60 60 } 61 61 62 62 // Column headers. 63 63 $headers[$field] = $title; 64 64 65 65 // Column data. 66 66 if (preg_match("/enum\('true'\)/", $col[1])) { … … 111 111 <span class="nowrap commandtext"><a href="<\x3fphp echo App::oHREF(\$_SERVER['PHP_SELF'] . '?op=add'); \x3f>"><\x3fphp echo _("Add <##>"); \x3f></a></span> 112 112 <br /> 113 113 114 114 <input type="text" class="small" size="20" name="search_query" value="<\x3fphp echo getFormData('search_query'); \x3f>" title="<\x3fphp echo oTxt(_("Fields searched: <##>.")); \x3f>" /> 115 115 <select name="filter_<##>">
Note: See TracChangeset
for help on using the changeset viewer.