Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
wfpl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
metaform: added nice allignment to display page, added proper formatting for checkbox...
[wfpl.git]
/
metaform
/
template.php
diff --git
a/metaform/template.php
b/metaform/template.php
index
5ce7cfe
..
be61e2f
100644
(file)
--- a/
metaform/template.php
+++ b/
metaform/template.php
@@
-135,9
+135,9
@@
function _~form_name~_main() {<!--~end~--><!--~opt_http_pass_2 start~-->
echo '401 Unauthorized';
exit;
}
echo '401 Unauthorized';
exit;
}
- <!--~end~--><!--~pulldowns start~-->
+<!--~end~--><!--~pulldowns start~-->
pulldown('~name~', array('option 1', 'option 2', 'option 3'));
pulldown('~name~', array('option 1', 'option 2', 'option 3'));
- <!--~end~--><!--~opt_db_3 start~-->
+<!--~end~--><!--~opt_db_3 start~-->
$edit_id = format_int($_REQUEST['~form_name~_edit_id']);
unset($_REQUEST['~form_name~_edit_id']);
if($edit_id) {
$edit_id = format_int($_REQUEST['~form_name~_edit_id']);
unset($_REQUEST['~form_name~_edit_id']);
if($edit_id) {
@@
-160,11
+160,11
@@
function _~form_name~_main() {<!--~end~--><!--~opt_http_pass_2 start~-->
~form_name~_display_listing();
return;
}
~form_name~_display_listing();
return;
}
- <!--~end~-->
+<!--~end~-->
tem_show('new_msg');
}<!--~end~-->
tem_show('new_msg');
}<!--~end~-->
- if(isset($_REQUEST['~always_field~'])) {
+ if(isset($_POST['~always_field~'])) {
list(~php_fields~) = ~form_name~_get_fields();
if("you're happy with the POSTed values") {<!--~opt_db_4 start~-->
list(~php_fields~) = ~form_name~_get_fields();
if("you're happy with the POSTed values") {<!--~opt_db_4 start~-->