Revision 570
Added by doc almost 17 years ago
view.php | ||
---|---|---|
32 | 32 |
if(defined('WB_PATH') == false) { exit("Cannot access this file directly"); } |
33 | 33 |
|
34 | 34 |
// check if frontend.css file needs to be included into the <body></body> of view.php |
35 |
if((!function_exists('register_frontend_modfiles') || !defined('MOD_FRONTEND_CSS_REGISTERED')) && file_exists(WB_PATH .'/modules/form/frontend.css')) { |
|
36 |
echo '<style type="text/css">'; |
|
37 |
include(WB_PATH .'/modules/form/frontend.css'); |
|
38 |
echo "\n</style>\n"; |
|
35 |
if((!function_exists('register_frontend_modfiles') || !defined('MOD_FRONTEND_CSS_REGISTERED')) && |
|
36 |
file_exists(WB_PATH .'/modules/form/frontend.css')) { |
|
37 |
echo '<style type="text/css">'; |
|
38 |
include(WB_PATH .'/modules/form/frontend.css'); |
|
39 |
echo "\n</style>\n"; |
|
39 | 40 |
} |
40 | 41 |
|
41 | 42 |
// Function for generating an optionsfor a select field |
42 |
if (!function_exists(make_option)) {
|
|
43 |
if (!function_exists('make_option')) {
|
|
43 | 44 |
function make_option(&$n) { |
44 | 45 |
// start option group if it exists |
45 | 46 |
if (substr($n,0,2) == '[=') { |
... | ... | |
52 | 53 |
} |
53 | 54 |
} |
54 | 55 |
// Function for generating a checkbox |
55 |
if (!function_exists(make_checkbox)) {
|
|
56 |
if (!function_exists('make_checkbox')) {
|
|
56 | 57 |
function make_checkbox(&$n, $idx, $params) { |
57 | 58 |
$field_id = $params[0]; |
58 | 59 |
$seperator = $params[1]; |
... | ... | |
61 | 62 |
} |
62 | 63 |
} |
63 | 64 |
// Function for generating a radio button |
64 |
if (!function_exists(make_radio)) {
|
|
65 |
if (!function_exists('make_radio')) {
|
|
65 | 66 |
function make_radio(&$n, $idx, $params) { |
66 | 67 |
$field_id = $params[0]; |
67 | 68 |
$group = $params[1]; |
Also available in: Unified diff
Some minor changes. Reduced success time out, set WYSIWSY background colgor to white, fixed some errors in the form module (only in conjunction with E_ALL)