From: Jason Woofenden Date: Fri, 21 Nov 2008 02:41:27 +0000 (-0500) Subject: Straightened out checkbox in metaform so it defaults to caption on the right with... X-Git-Url: https://jasonwoof.com/gitweb/?a=commitdiff_plain;h=204f3f792e72f631b4f82d09f52dec22d05fb5c7;hp=856f805c6cbb6e712c662214f3b5821442f808a0;p=wfpl.git Straightened out checkbox in metaform so it defaults to caption on the right with int storage. All combinations (of left/right and 01/yesno) now possible --- diff --git a/metaform.php b/metaform.php index 65343ea..9f0bfa6 100644 --- a/metaform.php +++ b/metaform.php @@ -46,9 +46,10 @@ $GLOBALS['types'] = array( 'html' => array('html', 'unix', 'text'), 'pulldown' => array('pulldown', 'options', 'varchar(100)'), 'radio' => array('radio', 'oneline', 'varchar(200)'), - 'leftcheck' => array('leftcheck', 'yesno', 'varchar(3)'), - 'checkbox' => array('checkbox', 'bool', 'int(1)'), - 'yesno' => array('checkbox', 'yesno', 'varchar(3)'), + 'checkbox' => array('leftcheck', 'bool', 'int(1)'), + 'rightcheck' => array('checkbox', 'bool', 'int(1)'), + 'rightyesno' => array('checkbox', 'yesno', 'varchar(3)'), + 'yesno' => array('leftcheck', 'yesno', 'varchar(3)'), 'delete' => array('checkbox', 'yesno', 'n/a'), 'image' => array('image', 'oneline', 'varchar(200)'), 'submit' => array('submit', 'oneline', 'n/a')