chengkun
2025-04-18 1bb985f32f2efe0f9dd69f3cf29a1c809b1cf96d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
function smarty_function_comjob($paramer,$template){
    global $config,$seo;
    $url  =  get_url($paramer,$config,$seo,'company','',$template);
    global $views, $phpyun,$config;
    $limit=(int)$params['limit'];
    $limit=$limit?$limit:10;
    $order=$order?$order:"id desc";
    $where=$where?$where:1;
    if($params['status']==""){
        $where.=" and `state`='1'";
    }else{
        $where.=" and `state`='".$params['status']."'";
    }
    $where.=" and `uid`='".$_GET['id']."'";
    $rows=$views->obj->DB_select_all("company_job",$where." and `r_status`='1' and `status`='0' order by $order limit $limit");    
    $template->tpl_vars['job'] = new Smarty_Variable;
    $template->tpl_vars['job']->value=$rows;    
    return;
}
?>