76 |
} |
} |
77 |
$smarty->assign("days",$days); |
$smarty->assign("days",$days); |
78 |
$smarty->assign("last_days",array(14,30,160,240,365)); |
$smarty->assign("last_days",array(14,30,160,240,365)); |
79 |
$smarty->assign("last_desc",array("two week","one month","four months","six months","one year")); |
$smarty->assign("last_desc",array("two weeks","one month","four months","six months","one year")); |
80 |
} |
} |
81 |
|
|
82 |
$num_selected=0; |
$num_selected=0; |
93 |
} |
} |
94 |
|
|
95 |
if ($num_selected == 10) { |
if ($num_selected == 10) { |
96 |
|
$tmp="$PHP_SELF?start=".($start+10); |
97 |
|
if ($days) $tmp.="&days=$days"; |
98 |
$smarty->assign(array( |
$smarty->assign(array( |
99 |
"multi_page_show" => 1, |
"multi_page_show" => 1, |
100 |
"multi_page_next" => "$PHP_SELF?start=".($start+10), |
"multi_page_next" => $tmp |
101 |
)); |
)); |
102 |
} |
} |
103 |
if ($start && $start >= 10) { |
if ($start && $start >= 10) { |
104 |
|
$tmp="$PHP_SELF?start=".($start-10); |
105 |
|
if ($days) $tmp.="&days=$days"; |
106 |
$smarty->assign(array( |
$smarty->assign(array( |
107 |
"multi_page_show" => 1, |
"multi_page_show" => 1, |
108 |
"multi_page_prev" => "$PHP_SELF?start=".($start-10), |
"multi_page_prev" => $tmp |
109 |
)); |
)); |
110 |
} |
} |
111 |
|
|
122 |
$title.=" : Investors News : ".$data[0][title_lc]; |
$title.=" : Investors News : ".$data[0][title_lc]; |
123 |
} elseif ($data[0][type] == "a") { |
} elseif ($data[0][type] == "a") { |
124 |
$title.=" : Annual Report : ".$data[0][title_lc]; |
$title.=" : Annual Report : ".$data[0][title_lc]; |
125 |
|
} elseif ($data[0][type] == "p") { |
126 |
|
$title.=" : Presentations : ".$data[0][title_lc]; |
127 |
} |
} |
128 |
} |
} |
129 |
|
|
130 |
|
|
131 |
if (isset($days) && $num_selected == 0) { |
if (isset($days) && $num_selected == 0) { |
132 |
$warning = "There are no news for last $days days."; |
$warning = "There are no news for last $days days."; |
133 |
} |
} elseif ($main == "" && $num_selected == 0) { |
|
|
|
|
if ($main == "" && $num_selected == 0) { |
|
134 |
$warning = "This news item is no longer available"; |
$warning = "This news item is no longer available"; |
135 |
} |
} |
136 |
|
|