function get_hn_security_branch() { $trading =& new cTrading(2); // hn parameter = 2 $orign_data = $trading->get_hn_security(); $data = my_format_array_number($_SESSION["language"], $orign_data); $count_data = count($data); if ($_SESSION["display_board"] == "" || $_SESSION["display_board"] == "0") { //$start = 0; $end = round(($count_data)/3); $start = 0; $end = 35; $_SESSION["display_board"] = "1"; } else { if ($_SESSION["display_board"] == "1") { //$start = round(($count_data)/3); $end = round(($count_data)/3)*2; $start = 35; $end = 70; $_SESSION["display_board"] = "2"; } else { if ($_SESSION["display_board"] == "2") { //$start = round(($count_data)/3); $end = round(($count_data)/3)*2; $start = 70; $end = 105; $_SESSION["display_board"] = "3"; } else { //$start = round(($count_data)/3)*2; $end = $count_data; $start = 105; $end = $count_data; $_SESSION["display_board"] = "0"; } } } $total_market = get_hn_total_market(); $html = $total_market . get_hn_security_header(); $html .= display_hn_security($orign_data, $data, $start, $end); $_SESSION["data_hn"] = $data; $html_footer = get_hn_security_footer(); $html .= $html_footer; return $html; }
function get_hn_security($trading, $pattern = '') { $orign_data = $trading->get_hn_security(str_replace("\\", "", $pattern)); $data = my_format_array_number($_SESSION["language"], $orign_data); $total_market = get_hn_total_market($trading); $html = get_hn_security_header(); $html .= display_hn_security($orign_data, $data); $_SESSION["data_hn"] = $data; $html_footer = get_hn_security_footer(); $html .= $html_footer; return $html; }