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
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
/*
 * 职位调用封装
 * ----------------------------------------------------------------------------
 * 分别对 职位,对应招聘公司,公司所属企业级别,认证等级等作操作
 *
 * ============================================================================
*/
function smarty_function_cache($paramer,&$smarty){    
    $path = PLUS_PATH;
    
    if(is_array($cachename))
    {
        foreach($cachename as $key=>$value)
        {
            switch($value){
                case "job" :
                include($path."/job.cache.php");
                $smarty->assign("job_index",$job_index);
                $smarty->assign("job_type",$job_type);
                $smarty->assign("job_name",$job_name);
                break;
                case "industry" :
                include_once($path."/industry.cache.php");
                $smarty->assign("industry_index",$industry_index);
                $smarty->assign("industry_name",$industry_name);
                break;
                case "city" :
                include_once($path."/city.cache.php");
                $smarty->assign("city_index",$city_index);
                $smarty->assign("city_type",$city_type);
                $smarty->assign("city_name",$city_name);
                break;
                case "user" :
                include_once($path."/user.cache.php");
                $smarty->assign("userdata",$job_index);
                $smarty->assign("userclass_name",$userclass_name);
                break;
                case "com" :
                include_once($path."/com.cache.php");
                $smarty->assign("comdata",$comdata);
                $smarty->assign("comclass_name",$comclass_name);
                break;
                case "domain" :
                include_once($path."/domain.cache.php");
                $smarty->assign("site_domain",$site_domain);
                break;
                
                
            }
        }
    }
 
 
}