'decimal' => array('textbox', 'decimal', 'decimal(12,12)'),
'bigint' => array('textbox', 'int', 'varchar(100)'), # up to 100 digits, stored as a string
'zip' => array('textbox', 'zip', 'varchar(20)'),
'decimal' => array('textbox', 'decimal', 'decimal(12,12)'),
'bigint' => array('textbox', 'int', 'varchar(100)'), # up to 100 digits, stored as a string
'zip' => array('textbox', 'zip', 'varchar(20)'),
- 'email' => array('textbox', 'email', 'varchar(100)'),
+ 'email' => array('email', 'email', 'varchar(100)'),
+ 'search' => array('search', 'oneline', 'varchar(200)'),
'phone' => array('textbox', 'phone', 'varchar(32)'),
'state' => array('states', 'oneline', 'varchar(2)'),
'money' => array('textbox', 'money', 'varchar(32)'),
'phone' => array('textbox', 'phone', 'varchar(32)'),
'state' => array('states', 'oneline', 'varchar(2)'),
'money' => array('textbox', 'money', 'varchar(32)'),
$GLOBALS['opt_public_form'] = format_bool($_REQUEST['opt_public_form']);
$GLOBALS['opt_public_display'] = format_bool($_REQUEST['opt_public_display']);
$GLOBALS['opt_public_form'] = format_bool($_REQUEST['opt_public_form']);
$GLOBALS['opt_public_display'] = format_bool($_REQUEST['opt_public_display']);
+ $GLOBALS['public_file_name'] = $GLOBALS['file_name'];
+ if($GLOBALS['opt_public_form'] || $GLOBALS['opt_public_display']) {
+ $GLOBALS['opt_public_something'] = 1;
+ $GLOBALS['file_name'] = $GLOBALS['file_name'] . _admin;
+ }
+
} elseif($input == 'pulldown' || $input == 'radio') {
$pulldown_options = pulldown_options_array($options);
$tem->set('pulldown_options', $pulldown_options);
} elseif($input == 'pulldown' || $input == 'radio') {
$pulldown_options = pulldown_options_array($options);
$tem->set('pulldown_options', $pulldown_options);
"INSTALL" => read_whole_file('code/wfpl/metaform/INSTALL'),
".htaccess" => make_htaccess(),
"INSTALL" => read_whole_file('code/wfpl/metaform/INSTALL'),
".htaccess" => make_htaccess(),
"style.less" => read_whole_file('code/wfpl/metaform/style.less'),
"template.html" => read_whole_file('code/wfpl/metaform/site-template.html'),
"style.less" => read_whole_file('code/wfpl/metaform/style.less'),
"template.html" => read_whole_file('code/wfpl/metaform/site-template.html'),
- "$name.html" => make_html(),
- "$name.php" => make_php());
+ "$admin_name.html" => make_html(),
+ "$admin_name.php" => make_php());
+ if($GLOBALS['opt_public_something']) {
+ $files["$nice_name.html ->"] = "$admin_name.html";
+ $files["$nice_name.php ->"] = "$admin_name.php";
+ }