X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=metaform%2Ftemplate.php;h=30c0de80900949cc17246c0b92b362ab4416127a;hb=3e70448969d205f3387edc245c6b52d01ae9ab75;hp=79d018c74742023885ebf14573b635cd6d029607;hpb=bacd28efa2bd9965685f75c50f46409414e3d3c1;p=wfpl.git diff --git a/metaform/template.php b/metaform/template.php index 79d018c..30c0de8 100644 --- a/metaform/template.php +++ b/metaform/template.php @@ -143,7 +143,7 @@ function ~file_name~_main_delete($id) { }~}~~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); }~}~ @@ -151,12 +151,7 @@ function ~file_name~_main_form($id = false) {~pulldowns {~ 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~'])) {