$text

"); } function h_p_tbl ( $header, $text) { echo ("\n"); echo (" \n"); echo ("

\n"); echo (" $text\n"); echo ("

"); echo (" "); echo (""); } function h_vspace ( $pixels) { echo ("\n"); } function h_make_num_input ( $form_name, $input_name, $init_value, $max_value, $onchange_code, $hide_input, $is_vertical, $ch_type) { $n = $max_value; $max_length = 1; while ($n > 9) { $max_length++; $n = floor ($n / 10); } $width = $max_length * 8 + 8; switch ($ch_type) { case "left-right": $chrs = "<>"; break; case "up-down": $chrs = "??"; break; case "graphic": $chrs = ""; break; default: $chrs = "-+"; break; } ?> " name="" value="" maxlength="" style="width: " onchange="">  .value--;"> "); ?> .value++;"> "); if ($is_vertical) echo ("
"); } } function h_return_posted_color ( $control_name) { global $palette_colors; foreach ($palette_colors as $c) { if (isset ($_POST[$control_name . '_' . $c . '_x'])) return ($c); } return (NULL); } function h_make_date_input ( $form_name, $input_name, $init_date, $offset_days, $onchange_code) { $input_name_date = $input_name . "_date"; $input_name_days = $input_name . "_days"; echo (" " . date_hr ($init_date) . "  "); } function h_fancy_button ( $form_name, $input_name, $image_width, $image_height) { $input_name_normal = $input_name . "_normal"; $input_name_over = $input_name . "_over"; echo (""); echo (""); echo (""); echo (""); } function html_create_link ( $address, $text, $open_in_new_window) { $add_cmd = $open_in_new_window ? "target=\"_blank\"" : ""; return ("$text"); } function html_form_action ($action) { $GLOBALS["form_universal_action"] = $action; } function html_form_onsubmit ($onsubmit) { $GLOBALS["form_universal_onsubmit"] = $onsubmit; } function html_import_ ($file_arr, $code_arr) { foreach ($file_arr as $filename) { $ext = pathinfo ($filename, PATHINFO_EXTENSION); switch ($ext) { case 'css': echo (""); break; case 'js': echo (""); break; default: require ($filename); break; } } foreach ($code_arr as $code) echo ("$code\n"); } function html_head_begin() { global $head_link_files; require (DIR_HTML."/head_begin.inc"); ?> \n"); break; case 'js': echo ("\n"); break; } } html_import_ ($GLOBALS["head_include_files"], $GLOBALS["head_include_code"]); $GLOBALS["head_begin"] = TRUE; } function html_head_end() { require (DIR_HTML."/head_end.inc"); $GLOBALS["head_end"] = TRUE; } function html_body_begin() { require (DIR_HTML."/body_begin.inc"); html_import_ ($GLOBALS["body_include_files"], $GLOBALS["body_include_code"]); $GLOBALS["body_include_files"] = array(); $GLOBALS["body_include_code"] = array(); if (file_exists (DIR_HTML."/code_begin.inc")) require (DIR_HTML."/code_begin.inc"); $GLOBALS["body_begin"] = TRUE; } function html_body_end() { if (file_exists (DIR_HTML."/code_end.inc")) require (DIR_HTML."/code_end.inc"); html_import_ ($GLOBALS["body_include_files"], $GLOBALS["body_include_code"]); include (DIR_HTML."/body_end.inc"); $GLOBALS["body_end"] = TRUE; } function html_begin() { if (!$GLOBALS["head_begin"]) html_head_begin(); if (!$GLOBALS["head_end"]) html_head_end(); if (!$GLOBALS["body_begin"]) html_body_begin(); } function html_end() { if (!$GLOBALS["body_end"]) html_body_end(); } function html_head_link() { global $head_link_files; for ($i = 0; $i < func_num_args(); ++$i) $head_link_files[] = func_get_arg ($i); } function html_head_include() { global $head_include_files; for ($i = 0; $i < func_num_args(); ++$i) { $filename = func_get_arg ($i); if (file_exists ($filename)) $head_include_files[] = $filename; } } function html_head_include_code ($code) { global $head_include_code; $head_include_code[] = $code; } function html_body_include() { global $body_include_files; for ($i = 0; $i < func_num_args(); ++$i) { $filename = func_get_arg ($i); if (file_exists ($filename)) $body_include_files[] = $filename; } } function html_body_include_code ($code) { global $body_include_code; $body_include_code[] = $code; } function html_onload ($code) { $GLOBALS['html_onload_code'] .= ($code . ';'); } function html_insert_core() { html_begin(); require_once (self_name().".core.inc"); html_end(); } function html_focus_set ($element_id) { $GLOBALS["html_focus_element_id"] = $element_id; } function html_focus_id() { return ($GLOBALS["html_focus_element_id"]); } function menu_create() { global $menuArray; $menuArray = array(); for ($i = 0; $i < func_num_args(); ++$i) $menuArray[] = func_get_arg ($i); } function menu_count() { global $menuArray; return (count ($menuArray)); } function menu_get_field ( $position) { global $menuArray; return ($menuArray[$position]); } function menu_set_default ( $name) { global $menuDefault; $menuDefault = $name; } function menu_get_default() { global $menuDefault; return ($menuDefault); } function btnimg ($filename, $width, $height, $caption, $disabled, $onclick, $title, $id) { ?>
style="background: url() no-repeat; width: px; height: px; " onmouseover="this.style.backgroundPosition='0px px'" onmouseout="this.style.backgroundPosition='0px 0px'" >
">
0) $btn_id = func_get_arg (0); else $btn_id = uniqid(); $GLOBALS["btn_handles"][$btn_id] = array ( "color" => "", "title" => "", "onclick_code" => "", "onsubmit_code" => "", "form_action_code" => "", "disabled" => FALSE, "lite" => FALSE, "image" => "" ); return ($btn_id); } function btn_image_set ($btn, $filename) { $GLOBALS["btn_handles"][$id]["image"] = $filename; } function btn_lite_set ($id, $true_or_false) { $GLOBALS["btn_handles"][$id]["lite"] = $true_or_false; } function btn_lite ($id) { return ($GLOBALS["btn_handles"][$id]["lite"]); } function btn_color_set ($id, $color) { $GLOBALS["btn_handles"][$id]["color"] = $color; } function btn_color ($id) { return ($GLOBALS["btn_handles"][$id]["color"]); } function btn_onclick_set ($id, $code) { $GLOBALS["btn_handles"][$id]["onclick_code"] = $code; } function btn_onclick ($id) { return ($GLOBALS["btn_handles"][$id]["onclick_code"]); } function btn_onsubmit_set ($id, $code) { $GLOBALS["btn_handles"][$id]["onsubmit_code"] = $code; } function btn_onsubmit ($id) { return ($GLOBALS["btn_handles"][$id]["onsubmit_code"]); } function btn_form_action_set ($id, $code) { $GLOBALS["btn_handles"][$id]["form_action_code"] = $code; } function btn_form_action ($id) { return ($GLOBALS["btn_handles"][$id]["form_action_code"]); } function btn_disable ($id, $true_false) { $GLOBALS["btn_handles"][$id]["disabled"] = $true_false; } function btn_show ($id, $flags, $caption) { $num_args = func_num_args(); if ($num_args < 1) return; $id = func_get_arg (0); $flags = ($num_args > 1) ? func_get_arg (1) : BTN_CLASSIC + BTN_NORMAL; $caption = ($num_args > 2) ? func_get_arg (2) : ""; $width = ($num_args > 3) ? func_get_arg (3) : BTN_MAX; $height = ($num_args > 4) ? func_get_arg (4) : BTN_MAX; $btn = $GLOBALS["btn_handles"][$id]; $caption = str_replace(" ", " ", $caption); $code = $btn["onclick_code"]; if (!empty ($btn["form_action_code"])) $code = "document.form_universal.action='{$btn['form_action_code']}';" . $code; if (!empty ($btn["onsubmit_code"])) $code .= ";if ({$btn["onsubmit_code"]}) document.form_universal.submit()"; else if (!empty ($code)) $code .= ";document.form_universal.submit()"; switch ($flags & 255) { case BTN_OK: $color = "green"; break; case BTN_CANCEL: $color = "red"; break; case BTN_INFO: $color = "blue"; break; default: $color = "yellow"; break; } if (!empty ($btn["color"])) $color = $btn["color"]; if (!empty ($btn["image"])) btnimg ($btn["image"], $width, $height, $caption, $btn["disabled"], $code, $btn["title"], ""); else btn_ex ($id, $flags & BTN_BROWSE ? "browse" : "", $color, $caption, $width, $btn["lite"], $btn["title"], $code, $btn["disabled"]); $GLOBALS["btn_handles"][$id] = array(); } function btn_ex ($id, $type, $color, $caption, $width, $lite, $title, $onclick, $disabled) { global $btn_value_created; $height = $lite ? 22 : 26; $font_bold = false; if ($disabled) $font_color = 'a0a0a0'; else switch ($color) { case 'red': $font_color = '903030'; $font_bold = true; break; case 'green': $font_color = '007000'; $font_bold = true; break; case 'blue': $font_color = '0050a0'; $font_bold = true; break; default: // yellow $font_color = '000000'; break; } $file_prefix = $lite ? 'btnlite_' : 'btn_'; $left_id = 'btn_left_' . $id; $left_img = "url(".SITE_RO_BUTTONS."/$file_prefix" . $color . '_left.png)'; $body_id = 'btn_body_' . $id; $body_img = "url(".SITE_RO_BUTTONS."/$file_prefix" . $color . '_body.png)'; $right_id = 'btn_right_' . $id; $right_img = "url(".SITE_RO_BUTTONS."/$file_prefix" . $color . '_right.png)'; $table_id = 'btn_table_' . $id; $font_size = $lite ? 11 : 13; if ($type == 'browse') { ?>
onmouseover="btn_style_over (this, )" onmouseout="btn_style_out (this, )" onmousedown="btn_style_down (this, )" onchange="if (this.is_disabled) return;" onkeypress="return handleKey(event)" value="" onmouseup="if (document.getElementById('').is_disabled) return; document.getElementById('').value=''; btn_style_out (this, ); " title="" >
"> " > ">