}~}~~opt_listing {~
function ~file_name~_main_listing() {
- $listing_rows = db_get_assocs('~table_name~', 'id~listing_fields_1 {~,~name~~}~', 'order by ~always_field~ limit 100');
+ $listing_rows = db_get_assocs('~table_name~', 'id~listing_fields_1 {~,~name~~}~', 'order by ~always_field~ limit 1000');
tem_set('listings', $listing_rows);
}~}~
pulldown('~name~', ~pulldown_options~);~}~~has_pulldowns {~
~}~~opt_db {~
if($id) {
- # add hidden field for database id of row we're editing
tem_set('id', $id);
- tem_set('editing');
- tem_set('edit_msg');
- } else {
- tem_set('new_msg');
}
~}~
if(isset($_POST['~always_field~'])) {