| | |
| | | var $js_commands = array(); |
| | | var $object_handlers = array(); |
| | | |
| | | public $type = 'html'; |
| | | public $ajax_call = false; |
| | | |
| | | /** |
| | |
| | | $path = "$skin_path/templates/$name.html"; |
| | | |
| | | // read template file |
| | | if (($templ = file_get_contents($path)) === false) { |
| | | ob_start(); |
| | | file_get_contents($path); |
| | | $message = ob_get_contents(); |
| | | ob_end_clean(); |
| | | if (($templ = @file_get_contents($path)) === false) { |
| | | raise_error(array( |
| | | 'code' => 501, |
| | | 'type' => 'php', |
| | | 'line' => __LINE__, |
| | | 'file' => __FILE__, |
| | | 'message' => 'Error loading template for '.$name.': '.$message |
| | | 'message' => 'Error loading template for '.$name |
| | | ), true, true); |
| | | return false; |
| | | } |
| | |
| | | * @todo Remove all inline JS calls and use jQuery instead. |
| | | * @todo Remove all sprintf()'s - they are pretty, but also slow. |
| | | */ |
| | | private function button($attrib) |
| | | public function button($attrib) |
| | | { |
| | | static $sa_buttons = array(); |
| | | static $s_button_count = 100; |
| | |
| | | $input_user = new html_inputfield(array('name' => '_user', 'id' => 'rcmloginuser', 'size' => 30) + $attrib); |
| | | $input_pass = new html_passwordfield(array('name' => '_pass', 'id' => 'rcmloginpwd', 'size' => 30) + $attrib); |
| | | $input_action = new html_hiddenfield(array('name' => '_action', 'value' => 'login')); |
| | | $input_tzone = new html_hiddenfield(array('name' => '_timezone', 'id' => 'rcmlogintz', 'value' => '_default_')); |
| | | $input_host = null; |
| | | |
| | | if (is_array($default_host)) { |
| | |
| | | } |
| | | |
| | | $out = $input_action->show(); |
| | | $out .= $input_tzone->show(); |
| | | $out .= $table->show(); |
| | | |
| | | // surround html output with a form tag |