|
|
@ -1416,6 +1416,9 @@ class Index extends CI_Controller {
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$to_date = date('Y-m-d', strtotime("+$days days", strtotime($from_date)));
|
|
|
|
$to_date = date('Y-m-d', strtotime("+$days days", strtotime($from_date)));
|
|
|
|
$former_list = $this->Note_model->date_range($from_date, $to_date, $currency, $last_sn, false);
|
|
|
|
$former_list = $this->Note_model->date_range($from_date, $to_date, $currency, $last_sn, false);
|
|
|
|
|
|
|
|
if (empty($former_list)) {
|
|
|
|
|
|
|
|
$former_list = $this->Note_model->top_list(100, $currency, $last_sn, false);
|
|
|
|
|
|
|
|
}
|
|
|
|
$list_index = 0;
|
|
|
|
$list_index = 0;
|
|
|
|
$last_sn = $last_sn===null ? 0 : $last_sn;
|
|
|
|
$last_sn = $last_sn===null ? 0 : $last_sn;
|
|
|
|
$last_flag = $last_flag===null ? null : $last_flag;
|
|
|
|
$last_flag = $last_flag===null ? null : $last_flag;
|
|
|
|