File:enter-hiring-details.html
Method:map.get(key,default)
profile??get
类型不正确
xmls/news.xmls
...(@t1%2);
$if(@t2==0){
@style=[""];
}
$else{
@style=["mr20"];
}
};
$if(@listwork==$empty){
@content=['<div style="color: #000; font-size: 15px; height: 45px; line-height: 45px; text-align: center;">对不起,当前没有数据!</div>
'];
}
$return(@content);
}
//招聘详情
$sub pageJobdetails(){
@querydatails=$query(job,job);
@querydatails[JobId]=$http.get(id,$null,N);
@AreaId=$shell[AreaId];
@querydatails[AreaId]=@AreaId;
@profile=@querydatails.map(*,['JobId={*JobId} and Status=1 and AreaId=1']);
@
Body=@profile[Body];
@CreateDate=@profile[CreateDate];
@Date=$datetime.format(@CreateDate,yyyy-MM-dd);
$if(@Body==$empty){
@Body=['<div style="color: #000; font-size: 15px; height: 45px; line-height: 45px; text-align: center;">对不起,当前没有数据!</div>'];
}
$return($empty);
}
//最新招聘
$sub pageJobNews(format){
@queryhot=$query(job,job);
@AreaId=$shell[AreaId];
@queryhot[AreaId]=@AreaId;
@hotlist=@queryhot.table(*,['Status=1 and AreaId=1'],['CreateDate desc'],6);
@list=@hotlist.format(@format...