Пример #1
0
 function index_task()
 {
     global $_G;
     if (!$_G[uid]) {
         return array();
     }
     $today = dmktime(dgmdate(TIMESTAMP, 'd'));
     $tomorrow = dmktime(dgmdate(TIMESTAMP + 86400, 'd'));
     $and = " AND dateline > {$today} AND dateline < {$tomorrow}   AND type = 'sign' ";
     $time = TIMESTAMP - 86400;
     $sign = DB::fetch_first("SELECT * FROM " . DB::table('sign') . " WHERE uid=" . $_G[uid] . $and);
     $share = get_jf($_G[uid]);
     return array('sign' => $sign, 'share' => $share);
 }
Пример #2
0
 function jf_list()
 {
     global $_G;
     $and = ' AND uid=' . $_G[uid];
     $url = URL . "m=home&a=jf_list";
     $jf_type = get_jf();
     if ($_GET[type] && array_key_exists($_GET[type], $_G['setting']['jf_type'])) {
         $type = addslashes(trim($_GET[type]));
         $and .= " AND type='{$type}'";
         $url .= "&type=" . $type;
     }
     $size = $_G[mobile] ? 10 : 15;
     $rs = D(array("and" => $and, 'table' => 'sign', 'order' => 'id DESC'), array('size' => $size, 'url' => $url));
     $rs[sign] = $rs['goods'];
     $this->add($rs);
     $this->show();
 }