- Timestamp:
- Dec 19, 2005 7:10:45 AM (18 years ago)
- Location:
- trunk/bin/module_maker
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bin/module_maker/form_template.cli.php
r43 r44 34 34 35 35 $exclude = array('added_by_user_id', 'added_datetime', 'hit_count', 'modified_datetime', 'modified_by_user_id'); 36 $primary_key _field = '';36 $primary_key = '<##>'; 37 37 $output = array(); 38 38 … … 46 46 $type = preg_replace('/^(\w+).*$/', '\\1', $col[1]); 47 47 if ('PRI' == $col[3]) { 48 $primary_key _field= $field;48 $primary_key = $field; 49 49 } 50 50 … … 54 54 } 55 55 56 if (in_array($field, $exclude) || $primary_key _field== $field) {56 if (in_array($field, $exclude) || $primary_key == $field) { 57 57 // Don't add a field for this column. 58 58 continue; … … 87 87 <td> 88 88 <input type="file" name="$field" /> 89 <\x3fphp if ('' != \$upload->getFilenameGlob(getFormData('$primary_key _field') . '_*') && getFormData('op') == 'edit' || getFormData('op') == 'update') { \x3f>90 <div class="help"><\x3fphp printf(_("The current file <a href=\"%s/%2\\\$s\"><strong>%2\\\$s</strong></a> will be deleted if a new file is selected for upload."), '/_db_files/<##>', \$upload->getFilenameGlob(getFormData('$primary_key _field') . '_*')) \x3f></div>89 <\x3fphp if ('' != \$upload->getFilenameGlob(getFormData('$primary_key') . '_*') && getFormData('op') == 'edit' || getFormData('op') == 'update') { \x3f> 90 <div class="help"><\x3fphp printf(_("The current file <a href=\"%s/%2\\\$s\"><strong>%2\\\$s</strong></a> will be deleted if a new file is selected for upload."), '/_db_files/<##>', \$upload->getFilenameGlob(getFormData('$primary_key') . '_*')) \x3f></div> 91 91 <\x3fphp } \x3f> 92 92 <div class="help"><\x3fphp printf(_("File to upload must have one of the following file-name extensions: %s."), join(', ', \$upload->getParam('valid_file_extensions'))) \x3f></div> -
trunk/bin/module_maker/list_template.cli.php
r43 r44 45 45 $cols[] = $row; 46 46 } 47 48 $primary_key = '<##>'; 47 49 48 50 // Loop through columns -
trunk/bin/module_maker/sql.cli.php
r43 r44 52 52 53 53 $sort_columns = ''; 54 $primary_key = '<##>'; 54 55 55 56 // Loop through columns
Note: See TracChangeset
for help on using the changeset viewer.