/** * @return \k1lib\html\div|boolean */ public function start_board() { if (!parent::start_board()) { return FALSE; } return $this->board_content_div; }
/** * @return \k1lib\html\div|boolean */ public function start_board() { if (!parent::start_board()) { return FALSE; } /** * IFRAME for KF tool */ $fk_iframe = new \k1lib\html\iframe('', 'utility-iframe', "fk-iframe"); DOM::html()->body()->content()->append_child_tail($fk_iframe); if (!empty($this->row_keys_text)) { if ($this->update_object->get_state()) { $this->update_object->set_back_url(\k1lib\urlrewrite\get_back_url()); $this->update_object->set_do_table_field_name_encrypt(TRUE); $this->controller_object->db_table->set_db_table_show_rule($this->show_rule_to_apply); $this->data_loaded = $this->update_object->load_db_table_data(); $this->update_object->catch_post_data(); return $this->board_content_div; } else { DOM_notification::queue_mesasage(board_base_strings::$error_mysql_table_not_opened, "alert", $this->notifications_div_id); DOM_notification::queue_title(board_base_strings::$error_mysql); return FALSE; } } else { return FALSE; } }
/** * @return \k1lib\html\div|boolean */ public function start_board() { if (!parent::start_board()) { return FALSE; } /** * IFRAME for KF tool */ $fk_iframe = new \k1lib\html\iframe('', 'utility-iframe', "fk-iframe"); DOM::html()->body()->content()->append_child_tail($fk_iframe); if ($this->search_object->get_state()) { $close_search_buttom = new \k1lib\html\a(NULL, " " . \k1lib\common_strings::$button_cancel, "_parent"); $close_search_buttom->set_id("close-search-button"); $close_search_buttom->set_attrib("class", "button warning fi-page-close"); $close_search_buttom->set_attrib("onClick", "parent.close_search();"); $close_search_buttom->append_to($this->button_div_tag); $this->search_object->set_search_catch_post_enable($this->search_catch_post_enable); $this->search_object->set_html_column_classes("column large-11 medium-11 small-12"); $this->search_object->set_html_form_column_classes("large-11"); $this->search_object->do_html_object()->append_to($this->board_content_div); return $this->board_content_div; } else { DOM_notification::queue_mesasage(board_base_labels::$error_mysql_table_not_opened, "alert", $this->notifications_div_id); DOM_notification::queue_title(board_base_labels::$error_mysql); return FALSE; } }
/** * @return \k1lib\html\div|boolean */ public function start_board() { if (!parent::start_board()) { return FALSE; } if (!empty($this->row_keys_text)) { if ($this->read_object->get_state()) { /** * BACK */ if ($this->back_enable && isset($_GET['back-url'])) { $back_url = \k1lib\urlrewrite\get_back_url(); $back_link = \k1lib\html\get_link_button($back_url, board_read_strings::$button_back, "small"); $back_link->append_to($this->button_div_tag); } /** * ALL DATA */ if ($this->all_data_enable) { $all_data_url = $this->controller_object->get_controller_root_dir() . "{$this->controller_object->get_board_list_url_name()}/"; $all_data_link = \k1lib\html\get_link_button(url::do_url($all_data_url, [], TRUE, ['no-rules']), board_read_strings::$button_all_data, "small"); $all_data_link->append_to($this->button_div_tag); } /** * EDIT BUTTON */ if ($this->update_enable) { $edit_url = $this->controller_object->get_controller_root_dir() . "{$this->controller_object->get_board_update_url_name()}/{$this->row_keys_text}/"; $get_vars = ["auth-code" => $this->read_object->get_auth_code()]; $edit_link = \k1lib\html\get_link_button(url::do_url($edit_url, $get_vars), board_read_strings::$button_edit, "small"); $edit_link->append_to($this->button_div_tag); } /** * DELETE BUTTON */ if ($this->delete_enable) { $delete_url = $this->controller_object->get_controller_root_dir() . "{$this->controller_object->get_board_delete_url_name()}/{$this->row_keys_text}/"; if (\k1lib\urlrewrite\get_back_url(TRUE)) { $get_vars = ["auth-code" => $this->read_object->get_auth_code_personal(), "back-url" => \k1lib\urlrewrite\get_back_url(TRUE)]; } else { $get_vars = ["auth-code" => $this->read_object->get_auth_code_personal()]; } $delete_link = \k1lib\html\get_link_button(url::do_url($delete_url, $get_vars), board_read_strings::$button_delete, "small"); $delete_link->append_to($this->button_div_tag); } $this->data_loaded = $this->read_object->load_db_table_data($this->show_rule_to_apply); return $this->board_content_div; } else { DOM_notification::queue_mesasage(board_base_strings::$error_mysql_table_not_opened, "alert", $this->notifications_div_id); DOM_notification::queue_title(board_base_strings::$error_mysql); return FALSE; } } else { return FALSE; } }
/** * @return \k1lib\html\div|boolean */ public function start_board() { if (!parent::start_board()) { return FALSE; } if ($this->list_object->get_state()) { /** * BACK */ if ($this->back_enable && isset($_GET['back-url'])) { $back_url = \k1lib\urlrewrite\get_back_url(); $back_link = \k1lib\html\get_link_button($back_url, board_read_strings::$button_back); $back_link->append_to($this->button_div_tag); } /** * NEW BUTTON */ $related_url_keys_text = url::get_url_level_value_by_name("related_url_keys_text"); if (empty($related_url_keys_text)) { $related_url_keys_text = ""; $new_link = \k1lib\html\get_link_button(url::do_url("../{$this->controller_object->get_board_create_url_name()}/" . $related_url_keys_text), board_list_strings::$button_new); } else { $related_url_keys_text .= "/"; $new_link = \k1lib\html\get_link_button(url::do_url("../../{$this->controller_object->get_board_create_url_name()}/" . $related_url_keys_text), board_list_strings::$button_new); } if ($this->create_enable) { // $new_link = \k1lib\html\get_link_button(url::do_url("../{$this->controller_object->get_board_create_url_name()}/" . $related_url_keys_text), board_list_strings::$button_new); // $new_link = \k1lib\html\get_link_button("../{$this->controller_object->get_board_create_url_name()}/?back-url={$this_url}", board_list_strings::$button_new); $new_link->append_to($this->button_div_tag); } /** * Search */ if ($this->search_enable) { $search_iframe = new \k1lib\html\iframe(url::do_url($this->controller_object->get_controller_root_dir() . "search/?just-controller=1&caller-url=" . urlencode($_SERVER['REQUEST_URI'])), 'utility-iframe', "search-iframe"); // $this->board_content_div->append_child_tail($search_iframe); DOM::html()->body()->append_child_tail($search_iframe); // $search_iframe->append_to($this->board_content_div); $search_buttom = new \k1lib\html\a(NULL, " " . board_list_strings::$button_search, "_self"); $search_buttom->set_id("search-button"); $search_buttom->set_attrib("class", "button fi-page-search"); $search_buttom->append_to($this->button_div_tag); if (isset($_POST) && isset($_POST['from-search']) && urldecode($_POST['from-search']) == $_SERVER['REQUEST_URI']) { // if ($this->) /** * decrypt post field names */ $incomming_search_data = \k1lib\forms\check_all_incomming_vars($_POST); if ($this->list_object->get_do_table_field_name_encrypt()) { $search_data = $this->list_object->decrypt_field_names($incomming_search_data); } else { $search_data = $incomming_search_data; } $this->controller_object->db_table->set_query_filter($search_data); $search_post = \k1lib\common\serialize_var($_POST, urlencode($_SERVER['REQUEST_URI'])); /** * Clear search */ $clear_search_buttom = new \k1lib\html\a(url::do_url($_SERVER['REQUEST_URI']), board_list_strings::$button_search_cancel, "_self"); $search_buttom->set_value(" " . board_list_strings::$button_search_modify); $clear_search_buttom->set_attrib("class", "button warning"); $clear_search_buttom->append_to($this->button_div_tag); } else { $search_post = \k1lib\common\unset_serialize_var(urlencode($_SERVER['REQUEST_URI'])); } } $this->data_loaded = $this->list_object->load_db_table_data($this->show_rule_to_apply); return $this->board_content_div; } else { DOM_notification::queue_mesasage(board_base_strings::$error_mysql_table_not_opened, "alert", $this->notifications_div_id); DOM_notification::queue_title(board_base_strings::$error_mysql); $this->list_object->make_invalid(); $this->is_enabled = FALSE; return FALSE; } }