{php} //链接任务开始----------------------------------------------------------------------- //分类 $taskcountcategory=$this->GetMysqlArray('total,name,catid,color'," ".$this->GetTable('category')." WHERE type=81 AND upid=0 ORDER BY displayorder ASC LIMIT 0,10"); //最新 $taskcountnew=$this->GetMysqlArray('tid,subject,money,endtime,month,total,process,draft_number,draft_success,total,addmoney,alexa'," ".$this->GetTable('task_link')." WHERE process>3 AND process!=8 AND process!=9 ORDER BY dateline DESC LIMIT 0,15"); //500元以上 $taskcount500=$this->GetMysqlArray('tid,subject,money,endtime,month,total,process,draft_number,draft_success,total,addmoney,alexa'," ".$this->GetTable('task_link')." WHERE money>=800 AND process>3 AND process!=5 AND process!=6 ORDER BY dateline DESC LIMIT 0,15"); //推荐 $taskcounttop=$this->GetMysqlArray('a.tid,a.subject,a.money,a.endtime,a.month,a.total,a.process,a.draft_number,a.draft_success,a.total,a.addmoney,a.alexa'," ".$this->GetTable('task_link')." AS a JOIN ".$this->GetTable('task_link_top')." AS b ON a.tid=b.tid WHERE a.process>3 AND process!=8 AND process!=9 AND b.top=1 ORDER BY a.dateline DESC LIMIT 0,15"); //24小时 $nowdate=@date("Y-m-d"); $today=strtotime("$nowdate 0:00:00"); $time=$this->NowTime()+(24*60*60); $taskcount24=$this->GetMysqlArray('tid,subject,money,endtime,process,month,total,draft_number,draft_success,total,alexa,addmoney'," ".$this->GetTable('task_link')." WHERE process>3 AND process!=8 AND process!=9 AND endtime>='$today' AND endtime<='$time' ORDER BY dateline DESC LIMIT 0,10"); //动态 $taskcountfeed=$this->GetMysqlArray('*'," ".$this->GetTable('member_feed')." WHERE app='81' AND action=2 ORDER BY dateline DESC LIMIT 0,10"); {/php} {ad TaskLink90}
    {if $taskcount24} {for $taskcount24 $key=>$value}
  • {php} $day=($value['endtime']-$this->NowTime())/ (60 * 60);{/php} {if intval($day)} 剩{echo intval($day)}小时 {else} 剩{echo intval($day*24)}分 {/if}

    ¥{echo floor(($value['money']/$value['total']/$value['month'])*100)/100 }/月 {echo $this->str($value['subject'],32)}

  • {/for} {else}
  • 暂时没有任务!
  • {/if}
    {if $taskcountfeed} {for $taskcountfeed $value}
  • {echo $this->Date('m-d H:i',$value['dateline'],1)}

    {echo $value['username']} {echo $this->FeedReplace($this->str($value['title_data'],16,1,0,1,0,1),$value['title_template'])}

  • {/for} {else}
  • 没有动态
  • {/if}