|
|
|
@ -31,14 +31,14 @@ class Note_model extends CI_Model {
|
|
|
|
|
public function unsend($topnum = 2) {
|
|
|
|
|
$this->init();
|
|
|
|
|
$this->topnum = $topnum;
|
|
|
|
|
$this->pn_send = " AND (pn_send='unsend' OR pn_send='' OR pn_send IS NULL) ";
|
|
|
|
|
$this->pn_send = " AND (pn_send='unsend' OR pn_send IS NULL) ";
|
|
|
|
|
return $this->get_list();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function failnote($topnum = 2) {
|
|
|
|
|
$this->init();
|
|
|
|
|
$this->topnum = $topnum;
|
|
|
|
|
$this->pn_send = " AND pn_send='sendfail' ";
|
|
|
|
|
$this->pn_send = " AND (pn_send='sendfail' OR pn_send='') ";
|
|
|
|
|
//$this->orderby = ' ORDER BY pn.pn_sn ASC ';
|
|
|
|
|
return $this->get_list();
|
|
|
|
|
}
|
|
|
|
|