function content_55f968bc0b9153_86817610($_smarty_tpl)
    {
        if (!is_callable('smarty_function_url')) {
            include 'D:\\wamp\\www\\qyhr\\app\\include\\libs\\plugins\\function.url.php';
        }
        global $db, $db_config, $config;
        global $ModuleName;
        if (!$Purl["m"]) {
            $Purl["m"] = $ModuleName;
        }
        $time = time();
        $where = "`time_start`<{$time} AND `time_end`>{$time}";
        $order = " ORDER BY `sort` ";
        $sort = 'ASC';
        $limit = " LIMIT 4";
        $where .= $order . $sort;
        $Query = $db->query("SELECT * FROM {$db_config['def']}hotjob where " . $where . $limit);
        while ($rs = $db->fetch_array($Query)) {
            $hotjob[] = $rs;
            $ListId[] = $rs[uid];
        }
        $jobwhere = 1;
        if ($config[sy_web_site] == "1") {
            if ($config[cityid] > 0 && $config[cityid] != "") {
                $jobwhere .= " and `cityid`='{$config['cityid']}'";
            }
            if ($config[three_cityid] > 0 && $config[three_cityid] != "") {
                $jobwhere .= " and `three_cityid`='{$config['three_cityid']}'";
            }
            if ($config[hyclass] > 0 && $config[hyclass] != "") {
                $jobwhere .= " and `hy`='" . $config[hyclass] . "'";
            }
        }
        $JobId = @implode(",", $ListId);
        $JobList = $db->select_all("company_job", "`uid` IN ({$JobId}) and `edate`>'" . mktime() . "' and state=1 and r_status<>'2' and status<>'1' and {$jobwhere}");
        $statis = $db->select_all("company_statis", "`uid` IN ({$JobId})", "`uid`,`comtpl`");
        if (is_array($ListId)) {
            $cache_array = $db->cacheget();
            foreach ($hotjob as $key => $value) {
                $i = 0;
                if (is_array($JobList)) {
                    $hotjob[$key]["job"] .= "<div class=\"area_left\"> ";
                    foreach ($JobList as $k => $v) {
                        if ($value[uid] == $v[uid] && $i < 5) {
                            $job_url = Url("job", array("c" => "comapply", "id" => "{$v['id']}"), "1");
                            $v[name] = mb_substr($v[name], 0, 10, "GBK");
                            $hotjob[$key]["job"] .= "<a href='" . $job_url . "'>" . $v[name] . "</a>";
                            $i++;
                        }
                    }
                    foreach ($statis as $v) {
                        if ($value['uid'] == $v['uid']) {
                            if ($v['comtpl'] && $v['comtpl'] != "default") {
                                $jobs_url = Url("company", array("c" => "show", "id" => $value[uid])) . "#job";
                            } else {
                                $jobs_url = Url("company", array("c" => "show", "id" => $value[uid]));
                            }
                        }
                    }
                    $com_url = Url("company", array("c" => "show", "id" => $value[uid]));
                    $beizhu = mb_substr($value['beizhu'], 0, 50, "GBK") . "...";
                    $hotjob[$key]["job"] .= "</div><div class=\"area_right\"><a href='" . $com_url . "'>" . $value["username"] . "</a>" . $beizhu . "</div><div class=\"area_left_bot\"><a href='" . $jobs_url . "'>全部职位</a></div><div class='area_right_bot'><a href='" . $com_url . "'>公司详情</a></div>";
                    $hotjob[$key]["url"] = $com_url;
                }
            }
        }
        global $db, $db_config, $config;
        global $ModuleName;
        if (!$Purl["m"]) {
            $Purl["m"] = $ModuleName;
        }
        $time = time();
        $where = "`time_start`<{$time} AND `time_end`>{$time}";
        $order = " ORDER BY `sort` ";
        $sort = 'ASC';
        $limit = " LIMIT 11";
        $where .= $order . $sort;
        $Query = $db->query("SELECT * FROM {$db_config['def']}hotjob where " . $where . $limit);
        while ($rs = $db->fetch_array($Query)) {
            $hotjobs[] = $rs;
            $ListId[] = $rs[uid];
        }
        $jobwhere = 1;
        if ($config[sy_web_site] == "1") {
            if ($config[cityid] > 0 && $config[cityid] != "") {
                $jobwhere .= " and `cityid`='{$config['cityid']}'";
            }
            if ($config[three_cityid] > 0 && $config[three_cityid] != "") {
                $jobwhere .= " and `three_cityid`='{$config['three_cityid']}'";
            }
            if ($config[hyclass] > 0 && $config[hyclass] != "") {
                $jobwhere .= " and `hy`='" . $config[hyclass] . "'";
            }
        }
        $JobId = @implode(",", $ListId);
        $JobList = $db->select_all("company_job", "`uid` IN ({$JobId}) and `edate`>'" . mktime() . "' and state=1 and r_status<>'2' and status<>'1' and {$jobwhere}");
        $statis = $db->select_all("company_statis", "`uid` IN ({$JobId})", "`uid`,`comtpl`");
        if (is_array($ListId)) {
            $cache_array = $db->cacheget();
            foreach ($hotjobs as $key => $value) {
                $i = 0;
                if (is_array($JobList)) {
                    $hotjobs[$key]["job"] .= "<div class=\"area_left\"> ";
                    foreach ($JobList as $k => $v) {
                        if ($value[uid] == $v[uid] && $i < 5) {
                            $job_url = Url("job", array("c" => "comapply", "id" => "{$v['id']}"), "1");
                            $v[name] = mb_substr($v[name], 0, 10, "GBK");
                            $hotjobs[$key]["job"] .= "<a href='" . $job_url . "'>" . $v[name] . "</a>";
                            $i++;
                        }
                    }
                    foreach ($statis as $v) {
                        if ($value['uid'] == $v['uid']) {
                            if ($v['comtpl'] && $v['comtpl'] != "default") {
                                $jobs_url = Url("company", array("c" => "show", "id" => $value[uid])) . "#job";
                            } else {
                                $jobs_url = Url("company", array("c" => "show", "id" => $value[uid]));
                            }
                        }
                    }
                    $com_url = Url("company", array("c" => "show", "id" => $value[uid]));
                    $beizhu = mb_substr($value['beizhu'], 0, 50, "GBK") . "...";
                    $hotjobs[$key]["job"] .= "</div><div class=\"area_right\"><a href='" . $com_url . "'>" . $value["username"] . "</a>" . $beizhu . "</div><div class=\"area_left_bot\"><a href='" . $jobs_url . "'>全部职位</a></div><div class='area_right_bot'><a href='" . $com_url . "'>公司详情</a></div>";
                    $hotjobs[$key]["url"] = $com_url;
                }
            }
        }
        global $db, $db_config, $config;
        $time = time();
        eval('$paramer=array("rec"=>"1","limit"=>"14","comlen"=>"15","namelen"=>"13","item"=>"\'hjob\'","key"=>"\'key\'","nocache"=>"")
;');
        $ParamerArr = GetSmarty($paramer, $_GET, $_smarty_tpl);
        $paramer = $ParamerArr[arr];
        $Purl = $ParamerArr[purl];
        global $ModuleName;
        if (!$Purl["m"]) {
            $Purl["m"] = $ModuleName;
        }
        if ($config[sy_web_site] == "1") {
            if ($config[cityid] > 0 && $config[cityid] != "") {
                $paramer[cityid] = $config[cityid];
            }
            if ($config[three_cityid] > 0 && $config[three_cityid] != "") {
                $paramer[three_cityid] = $config[three_cityid];
            }
            if ($config[hyclass] > 0 && $config[hyclass] != "") {
                $paramer[hy] = $config[hyclass];
            }
        }
        if ($paramer[sdate]) {
            $where = "`sdate`>" . strtotime("-" . intval($paramer[sdate]) . " day", time()) . " and `edate`>'{$time}' and `state`=1";
        } else {
            $where = "`edate`>'{$time}' and `state`=1";
        }
        if ($paramer[uid]) {
            $where .= " AND `uid` = '{$paramer['uid']}'";
        }
        if ($paramer[rec]) {
            $where .= " AND `rec_time`>" . time();
        }
        if ($paramer['cert']) {
            $company = $db->select_all("company", "`yyzz_status`=1", "`uid`");
            if (is_array($company)) {
                foreach ($company as $v) {
                    $job_uid[] = $v['uid'];
                }
            }
            $where .= " and `uid` in (" . @implode(",", $job_uid) . ")";
        }
        if ($paramer[noid]) {
            $where .= " and `id`<>{$paramer['noid']}";
        }
        if ($paramer[r_status]) {
            $where .= " and `r_status`=2";
        } else {
            $where .= " and `r_status`<>2";
        }
        if ($paramer[status]) {
            $where .= " and `status`=1";
        } else {
            $where .= " and `status`<>1";
        }
        if ($paramer[pr]) {
            $where .= " AND `pr` ={$paramer['pr']}";
        }
        if ($paramer['hy']) {
            $where .= " AND `hy` = {$paramer['hy']}";
        }
        if ($paramer[mun]) {
            $where .= " AND `mun` = {$paramer['mun']}";
        }
        if ($paramer[job1]) {
            $where .= " AND `job1` = {$paramer['job1']}";
        }
        if ($paramer[job1_son]) {
            $where .= " AND `job1_son` = {$paramer['job1_son']}";
        }
        if ($paramer[job_post]) {
            $where .= " AND (`job_post` IN ({$paramer['job_post']}))";
        }
        if ($paramer['jobwhere']) {
            $where .= " and " . $paramer['jobwhere'];
        }
        if ($paramer['jobids']) {
            $where .= " AND (`job1` = {$paramer['jobids']} OR `job1_son`={$paramer['jobids']} OR `job_post`={$paramer['jobids']})";
        }
        if ($paramer['jobin']) {
            $where .= " AND (`job1` IN ({$paramer['jobin']}) OR `job1_son` IN ({$paramer['jobin']}) OR `job_post` IN ({$paramer['jobin']}))";
        }
        if ($paramer[provinceid]) {
            $where .= " AND `provinceid` = {$paramer['provinceid']}";
        }
        if ($paramer['cityid']) {
            $where .= " AND (`cityid` IN ({$paramer['cityid']}))";
        }
        if ($paramer['three_cityid']) {
            $where .= " AND (`three_cityid` IN ({$paramer['three_cityid']}))";
        }
        if ($paramer['cityin']) {
            $where .= " AND `three_cityid` IN ({$paramer['cityin']})";
        }
        if ($paramer[edu]) {
            $where .= " AND `edu` = {$paramer['edu']}";
        }
        if ($paramer[exp]) {
            $where .= " AND `exp` = {$paramer['exp']}";
        }
        if ($paramer[type]) {
            $where .= " AND `type` = {$paramer['type']}";
        }
        if ($paramer[sex]) {
            $where .= " AND `sex` = {$paramer['sex']}";
        }
        if ($paramer[salary]) {
            $where .= " AND `salary` = {$paramer['salary']}";
        }
        if ($paramer[cityin]) {
            $where .= " AND( AND `provinceid` IN ({$paramer['cityin']}) OR `cityid` IN ({$paramer['cityin']}) OR `three_cityid` IN ({$paramer['cityin']}))";
        }
        if ($paramer[urgent]) {
            $where .= " AND `urgent_time`>" . time();
        }
        if ($paramer[uptime]) {
            $uptime = $time - $paramer[uptime] * 86400;
            $where .= " AND `lastupdate`>{$uptime}";
        }
        if ($paramer[comname]) {
            $where .= " AND `com_name` LIKE '%" . $paramer[comname] . "%'";
        }
        if ($paramer[com_pro]) {
            $where .= " AND `com_provinceid` ='" . $paramer[com_pro] . "'";
        }
        if ($paramer[keyword]) {
            $where1[] = "`name` LIKE '%" . $paramer[keyword] . "%'";
            $where1[] = "`com_name` LIKE '%" . $paramer[keyword] . "%'";
            include PLUS_PATH . "/city.cache.php";
            foreach ($city_name as $k => $v) {
                if (strpos($v, $paramer[keyword]) !== false) {
                    $cityid[] = $k;
                }
            }
            if (is_array($cityid)) {
                foreach ($cityid as $value) {
                    $class[] = "(provinceid = '" . $value . "' or cityid = '" . $value . "')";
                }
                $where1[] = @implode(" or ", $class);
            }
            $where .= " AND (" . @implode(" or ", $where1) . ")";
        }
        if ($paramer["job"]) {
            $where .= " AND `job_post` in ({$paramer['job']})";
        }
        if ($paramer[order] && $paramer[order] != "lastdate") {
            $order = " ORDER BY " . str_replace("'", "", $paramer[order]) . "  ";
        } else {
            $order = " ORDER BY `lastupdate` ";
        }
        if ($paramer[sort]) {
            $sort = $paramer[sort];
        } else {
            $sort = " DESC";
        }
        if ($paramer['orderby'] == "rec") {
            $nowtime = time();
            $where .= " ORDER BY if(rec_time>{$nowtime},rec_time,lastupdate)  desc";
        } else {
            $where .= $order . $sort;
        }
        if ($paramer[where]) {
            $where = $paramer[where];
        }
        if ($paramer[limit]) {
            $limit = " limit " . $paramer[limit];
        }
        if ($paramer[ispage]) {
            $limit = PageNav($paramer, $_GET, "company_job", $where, $Purl, "", $paramer[limit] ? $paramer[limit] : "6", $_smarty_tpl);
            $_smarty_tpl->tpl_vars["firmurl"] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars["firmurl"]->value = $config['sy_weburl'] . "/index.php?m=job" . $ParamerArr[firmurl];
        }
        $hjob = $db->select_all("company_job", $where . $limit);
        if (is_array($hjob)) {
            $cache_array = $db->cacheget();
            $comuid = $jobid = array();
            foreach ($hjob as $key => $value) {
                if (in_array($value['uid'], $comuid) == false) {
                    $comuid[] = $value['uid'];
                }
                if (in_array($value['id'], $jobid) == false) {
                    $jobid[] = $value['id'];
                }
            }
            $comuids = @implode(',', $comuid);
            $jobids = @implode(',', $jobid);
            if ($comuids) {
                $r_uids = $db->select_all("company", "`uid` IN (" . $comuids . ")", "`uid`,`yyzz_status`");
                if (is_array($r_uids)) {
                    foreach ($r_uids as $key => $value) {
                        $r_uid[$value['uid']] = $value['yyzz_status'];
                    }
                }
            }
            include PLUS_PATH . "/comrating.cache.php";
            foreach ($hjob as $key => $value) {
                $hjob[$key] = $db->array_action($value, $cache_array);
                $hjob[$key][stime] = date("Y-m-d", $value[sdate]);
                $hjob[$key][etime] = date("Y-m-d", $value[edate]);
                $hjob[$key][lastupdate] = date("Y-m-d", $value[lastupdate]);
                $hjob[$key][yyzz_status] = $r_uid[$value['uid']]['yyzz_status'];
                $time = time() - $value['lastupdate'];
                if ($time > 86400 && $time < 604800) {
                    $hjob[$key]['time'] = ceil($time / 86400) . "天前";
                } elseif ($time > 3600 && $time < 86400) {
                    $hjob[$key]['time'] = ceil($time / 3600) . "小时前";
                } elseif ($time > 60 && $time < 3600) {
                    $hjob[$key]['time'] = ceil($time / 60) . "分钟前";
                } elseif ($time < 60) {
                    $hjob[$key]['time'] = "刚刚";
                } else {
                    $hjob[$key]['time'] = date("Y-m-d", $value['lastupdate']);
                }
                if (is_array($hjob[$key]['welfare']) && $hjob[$key]['welfare']) {
                    foreach ($hjob[$key]['welfare'] as $val) {
                        $hjob[$key]['welfarename'][] = $cache_array['comclass_name'][$val];
                    }
                }
                if ($paramer[comlen]) {
                    $hjob[$key][com_n] = mb_substr($value['com_name'], 0, $paramer[comlen], "GBK");
                }
                if ($paramer[namelen]) {
                    if ($value['rec_time'] > time()) {
                        $hjob[$key][name_n] = "<font color='red'>" . mb_substr($value['name'], 0, $paramer[namelen], "GBK") . "</font>";
                    } else {
                        $hjob[$key][name_n] = mb_substr($value['name'], 0, $paramer[namelen], "GBK");
                    }
                } else {
                    if ($value['rec_time'] > time()) {
                        $hjob[$key]['name_n'] = "<font color='red'>" . $value['name'] . "</font>";
                    }
                }
                $hjob[$key][job_url] = Url("job", array("c" => "comapply", "id" => $value[id]), "1");
                $hjob[$key][com_url] = Url("company", array("c" => "show", "id" => $value[uid]));
                foreach ($comrat as $k => $v) {
                    if ($value[rating] == $v[id]) {
                        $hjob[$key][color] = str_replace("#", "", $v[com_color]);
                        $hjob[$key][ratlogo] = $v[com_pic];
                        $hjob[$key][ratname] = $v[name];
                    }
                }
                if ($paramer[keyword]) {
                    $hjob[$key][name] = str_replace($paramer[keyword], "<font color=#FF6600 >" . $paramer[keyword] . "</font>", $value[name]);
                    $hjob[$key][com_name] = str_replace($paramer[keyword], "<font color=#FF6600 >" . $paramer[keyword] . "</font>", $value[com_name]);
                    $hjob[$key][name_n] = str_replace($paramer[keyword], "<font color=#FF6600 >" . $paramer[keyword] . "</font>", $hjob[$key][name_n]);
                    $hjob[$key][com_n] = str_replace($paramer[keyword], "<font color=#FF6600 >" . $paramer[keyword] . "</font>", $hjob[$key][com_n]);
                    $hjob[$key][job_city_one] = str_replace($paramer[keyword], "<font color=#FF6600 >" . $paramer[keyword] . "</font>", $city_name[$value[provinceid]]);
                    $hjob[$key][job_city_two] = str_replace($paramer[keyword], "<font color=#FF6600 >" . $paramer[keyword] . "</font>", $city_name[$value[cityid]]);
                }
            }
            if (is_array($hjob)) {
                if ($paramer[keyword] != "" && !empty($hjob)) {
                    addkeywords('3', $paramer[keyword]);
                }
            }
        }
        global $db, $db_config, $config;
        $time = time();
        eval('$paramer=array("limit"=>"14","comlen"=>"15","namelen"=>"13","item"=>"\'jobl\'","key"=>"\'key\'","nocache"=>"")
;');
        $ParamerArr = GetSmarty($paramer, $_GET, $_smarty_tpl);
        $paramer = $ParamerArr[arr];
        $Purl = $ParamerArr[purl];
        global $ModuleName;
        if (!$Purl["m"]) {
            $Purl["m"] = $ModuleName;
        }
        if ($config[sy_web_site] == "1") {
            if ($config[cityid] > 0 && $config[cityid] != "") {
                $paramer[cityid] = $config[cityid];
            }
            if ($config[three_cityid] > 0 && $config[three_cityid] != "") {
                $paramer[three_cityid] = $config[three_cityid];
            }
            if ($config[hyclass] > 0 && $config[hyclass] != "") {
                $paramer[hy] = $config[hyclass];
            }
        }
        if ($paramer[sdate]) {
            $where = "`sdate`>" . strtotime("-" . intval($paramer[sdate]) . " day", time()) . " and `edate`>'{$time}' and `state`=1";
        } else {
            $where = "`edate`>'{$time}' and `state`=1";
        }
        if ($paramer[uid]) {
            $where .= " AND `uid` = '{$paramer['uid']}'";
        }
        if ($paramer[rec]) {
            $where .= " AND `rec_time`>" . time();
        }
        if ($paramer['cert']) {
            $company = $db->select_all("company", "`yyzz_status`=1", "`uid`");
            if (is_array($company)) {
                foreach ($company as $v) {
                    $job_uid[] = $v['uid'];
                }
            }
            $where .= " and `uid` in (" . @implode(",", $job_uid) . ")";
        }
        if ($paramer[noid]) {
            $where .= " and `id`<>{$paramer['noid']}";
        }
        if ($paramer[r_status]) {
            $where .= " and `r_status`=2";
        } else {
            $where .= " and `r_status`<>2";
        }
        if ($paramer[status]) {
            $where .= " and `status`=1";
        } else {
            $where .= " and `status`<>1";
        }
        if ($paramer[pr]) {
            $where .= " AND `pr` ={$paramer['pr']}";
        }
        if ($paramer['hy']) {
            $where .= " AND `hy` = {$paramer['hy']}";
        }
        if ($paramer[mun]) {
            $where .= " AND `mun` = {$paramer['mun']}";
        }
        if ($paramer[job1]) {
            $where .= " AND `job1` = {$paramer['job1']}";
        }
        if ($paramer[job1_son]) {
            $where .= " AND `job1_son` = {$paramer['job1_son']}";
        }
        if ($paramer[job_post]) {
            $where .= " AND (`job_post` IN ({$paramer['job_post']}))";
        }
        if ($paramer['jobwhere']) {
            $where .= " and " . $paramer['jobwhere'];
        }
        if ($paramer['jobids']) {
            $where .= " AND (`job1` = {$paramer['jobids']} OR `job1_son`={$paramer['jobids']} OR `job_post`={$paramer['jobids']})";
        }
        if ($paramer['jobin']) {
            $where .= " AND (`job1` IN ({$paramer['jobin']}) OR `job1_son` IN ({$paramer['jobin']}) OR `job_post` IN ({$paramer['jobin']}))";
        }
        if ($paramer[provinceid]) {
            $where .= " AND `provinceid` = {$paramer['provinceid']}";
        }
        if ($paramer['cityid']) {
            $where .= " AND (`cityid` IN ({$paramer['cityid']}))";
        }
        if ($paramer['three_cityid']) {
            $where .= " AND (`three_cityid` IN ({$paramer['three_cityid']}))";
        }
        if ($paramer['cityin']) {
            $where .= " AND `three_cityid` IN ({$paramer['cityin']})";
        }
        if ($paramer[edu]) {
            $where .= " AND `edu` = {$paramer['edu']}";
        }
        if ($paramer[exp]) {
            $where .= " AND `exp` = {$paramer['exp']}";
        }
        if ($paramer[type]) {
            $where .= " AND `type` = {$paramer['type']}";
        }
        if ($paramer[sex]) {
            $where .= " AND `sex` = {$paramer['sex']}";
        }
        if ($paramer[salary]) {
            $where .= " AND `salary` = {$paramer['salary']}";
        }
        if ($paramer[cityin]) {
            $where .= " AND( AND `provinceid` IN ({$paramer['cityin']}) OR `cityid` IN ({$paramer['cityin']}) OR `three_cityid` IN ({$paramer['cityin']}))";
        }
        if ($paramer[urgent]) {
            $where .= " AND `urgent_time`>" . time();
        }
        if ($paramer[uptime]) {
            $uptime = $time - $paramer[uptime] * 86400;
            $where .= " AND `lastupdate`>{$uptime}";
        }
        if ($paramer[comname]) {
            $where .= " AND `com_name` LIKE '%" . $paramer[comname] . "%'";
        }
        if ($paramer[com_pro]) {
            $where .= " AND `com_provinceid` ='" . $paramer[com_pro] . "'";
        }
        if ($paramer[keyword]) {
            $where1[] = "`name` LIKE '%" . $paramer[keyword] . "%'";
            $where1[] = "`com_name` LIKE '%" . $paramer[keyword] . "%'";
            include PLUS_PATH . "/city.cache.php";
            foreach ($city_name as $k => $v) {
                if (strpos($v, $paramer[keyword]) !== false) {
                    $cityid[] = $k;
                }
            }
            if (is_array($cityid)) {
                foreach ($cityid as $value) {
                    $class[] = "(provinceid = '" . $value . "' or cityid = '" . $value . "')";
                }
                $where1[] = @implode(" or ", $class);
            }
            $where .= " AND (" . @implode(" or ", $where1) . ")";
        }
        if ($paramer["job"]) {
            $where .= " AND `job_post` in ({$paramer['job']})";
        }
        if ($paramer[order] && $paramer[order] != "lastdate") {
            $order = " ORDER BY " . str_replace("'", "", $paramer[order]) . "  ";
        } else {
            $order = " ORDER BY `lastupdate` ";
        }
        if ($paramer[sort]) {
            $sort = $paramer[sort];
        } else {
            $sort = " DESC";
        }
        if ($paramer['orderby'] == "rec") {
            $nowtime = time();
            $where .= " ORDER BY if(rec_time>{$nowtime},rec_time,lastupdate)  desc";
        } else {
            $where .= $order . $sort;
        }
        if ($paramer[where]) {
            $where = $paramer[where];
        }
        if ($paramer[limit]) {
            $limit = " limit " . $paramer[limit];
        }
        if ($paramer[ispage]) {
            $limit = PageNav($paramer, $_GET, "company_job", $where, $Purl, "", $paramer[limit] ? $paramer[limit] : "6", $_smarty_tpl);
            $_smarty_tpl->tpl_vars["firmurl"] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars["firmurl"]->value = $config['sy_weburl'] . "/index.php?m=job" . $ParamerArr[firmurl];
        }
        $jobl = $db->select_all("company_job", $where . $limit);
        if (is_array($jobl)) {
            $cache_array = $db->cacheget();
            $comuid = $jobid = array();
            foreach ($jobl as $key => $value) {
                if (in_array($value['uid'], $comuid) == false) {
                    $comuid[] = $value['uid'];
                }
                if (in_array($value['id'], $jobid) == false) {
                    $jobid[] = $value['id'];
                }
            }
            $comuids = @implode(',', $comuid);
            $jobids = @implode(',', $jobid);
            if ($comuids) {
                $r_uids = $db->select_all("company", "`uid` IN (" . $comuids . ")", "`uid`,`yyzz_status`");
                if (is_array($r_uids)) {
                    foreach ($r_uids as $key => $value) {
                        $r_uid[$value['uid']] = $value['yyzz_status'];
                    }
                }
            }
            include PLUS_PATH . "/comrating.cache.php";
            foreach ($jobl as $key => $value) {
                $jobl[$key] = $db->array_action($value, $cache_array);
                $jobl[$key][stime] = date("Y-m-d", $value[sdate]);
                $jobl[$key][etime] = date("Y-m-d", $value[edate]);
                $jobl[$key][lastupdate] = date("Y-m-d", $value[lastupdate]);
                $jobl[$key][yyzz_status] = $r_uid[$value['uid']]['yyzz_status'];
                $time = time() - $value['lastupdate'];
                if ($time > 86400 && $time < 604800) {
                    $jobl[$key]['time'] = ceil($time / 86400) . "天前";
                } elseif ($time > 3600 && $time < 86400) {
                    $jobl[$key]['time'] = ceil($time / 3600) . "小时前";
                } elseif ($time > 60 && $time < 3600) {
                    $jobl[$key]['time'] = ceil($time / 60) . "分钟前";
                } elseif ($time < 60) {
                    $jobl[$key]['time'] = "刚刚";
                } else {
                    $jobl[$key]['time'] = date("Y-m-d", $value['lastupdate']);
                }
                if (is_array($jobl[$key]['welfare']) && $jobl[$key]['welfare']) {
                    foreach ($jobl[$key]['welfare'] as $val) {
                        $jobl[$key]['welfarename'][] = $cache_array['comclass_name'][$val];
                    }
                }
                if ($paramer[comlen]) {
                    $jobl[$key][com_n] = mb_substr($value['com_name'], 0, $paramer[comlen], "GBK");
                }
                if ($paramer[namelen]) {
                    if ($value['rec_time'] > time()) {
                        $jobl[$key][name_n] = "<font color='red'>" . mb_substr($value['name'], 0, $paramer[namelen], "GBK") . "</font>";
                    } else {
                        $jobl[$key][name_n] = mb_substr($value['name'], 0, $paramer[namelen], "GBK");
                    }
                } else {
                    if ($value['rec_time'] > time()) {
                        $jobl[$key]['name_n'] = "<font color='red'>" . $value['name'] . "</font>";
                    }
                }
                $jobl[$key][job_url] = Url("job", array("c" => "comapply", "id" => $value[id]), "1");
                $jobl[$key][com_url] = Url("company", array("c" => "show", "id" => $value[uid]));
                foreach ($comrat as $k => $v) {
                    if ($value[rating] == $v[id]) {
                        $jobl[$key][color] = str_replace("#", "", $v[com_color]);
                        $jobl[$key][ratlogo] = $v[com_pic];
                        $jobl[$key][ratname] = $v[name];
                    }
                }
                if ($paramer[keyword]) {
                    $jobl[$key][name] = str_replace($paramer[keyword], "<font color=#FF6600 >" . $paramer[keyword] . "</font>", $value[name]);
                    $jobl[$key][com_name] = str_replace($paramer[keyword], "<font color=#FF6600 >" . $paramer[keyword] . "</font>", $value[com_name]);
                    $jobl[$key][name_n] = str_replace($paramer[keyword], "<font color=#FF6600 >" . $paramer[keyword] . "</font>", $jobl[$key][name_n]);
                    $jobl[$key][com_n] = str_replace($paramer[keyword], "<font color=#FF6600 >" . $paramer[keyword] . "</font>", $jobl[$key][com_n]);
                    $jobl[$key][job_city_one] = str_replace($paramer[keyword], "<font color=#FF6600 >" . $paramer[keyword] . "</font>", $city_name[$value[provinceid]]);
                    $jobl[$key][job_city_two] = str_replace($paramer[keyword], "<font color=#FF6600 >" . $paramer[keyword] . "</font>", $city_name[$value[cityid]]);
                }
            }
            if (is_array($jobl)) {
                if ($paramer[keyword] != "" && !empty($jobl)) {
                    addkeywords('3', $paramer[keyword]);
                }
            }
        }
        ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title><?php 
        echo $_smarty_tpl->tpl_vars['title']->value;
        ?>
</title>
<meta name="keywords" content="<?php 
        echo $_smarty_tpl->tpl_vars['keywords']->value;
        ?>
" />
<meta name="description" content="<?php 
        echo $_smarty_tpl->tpl_vars['description']->value;
        ?>
" />
<link rel="stylesheet" href="<?php 
        echo $_smarty_tpl->tpl_vars['style']->value;
        ?>
/style/css.css" type="text/css" />
<link rel="stylesheet" href="<?php 
        echo $_smarty_tpl->tpl_vars['style']->value;
        ?>
/style/hy.css" type="text/css" />
<link rel="stylesheet" href="<?php 
        echo $_smarty_tpl->tpl_vars['style']->value;
        ?>
/style/index.css" type="text/css">
<!--[if IE 6]>
<?php 
        echo '<script';
        ?>
 src="<?php 
        echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];
        ?>
/js/png.js"><?php 
        echo '</script';
        ?>
>
<?php 
        echo '<script';
        ?>
>
DD_belatedPNG.fix('.png,.pagination li a');
<?php 
        echo '</script';
        ?>
>
<![endif]-->
<?php 
        echo '<script';
        ?>
 src="<?php 
        echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];
        ?>
/js/jquery-1.8.0.min.js" language="javascript"><?php 
        echo '</script';
        ?>
>
<?php 
        echo '<script';
        ?>
 src="<?php 
        echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];
        ?>
/js/layer/layer.min.js" language="javascript"><?php 
        echo '</script';
        ?>
>
<?php 
        echo '<script';
        ?>
 src="<?php 
        echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];
        ?>
/js/lazyload.min.js" language="javascript"><?php 
        echo '</script';
        ?>
>
<?php 
        echo '<script';
        ?>
 src="<?php 
        echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];
        ?>
/js/public.js" language="javascript"><?php 
        echo '</script';
        ?>
>
<?php 
        echo '<script';
        ?>
 src="<?php 
        echo $_smarty_tpl->tpl_vars['style']->value;
        ?>
/js/reg_ajax.js" type="text/javascript"><?php 
        echo '</script';
        ?>
>
<?php 
        echo '<script';
        ?>
 src="<?php 
        echo $_smarty_tpl->tpl_vars['style']->value;
        ?>
/js/index.js" language="javascript"><?php 
        echo '</script';
        ?>
>
<?php 
        echo '<script';
        ?>
 src="<?php 
        echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];
        ?>
/js/search.js" type="text/javascript"><?php 
        echo '</script';
        ?>
>
<?php 
        echo '<script';
        ?>
 src="<?php 
        echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];
        ?>
/js/slides.jquery.js" type="text/javascript"><?php 
        echo '</script';
        ?>
>
</head>
<body class="index_body_box">
<?php 
        echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tplstyle']->value . "/header.htm", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
        ?>
 
<?php 
        echo '<script';
        ?>
>
    $(document).ready(function(){       
        $('.index_header_seach_find').delegate('#search_name','click',function(){$(this).next().show();});
		$("img.lazy").lazyload();
    });
		$(document).ready(function(){
	$(".index_post_ul").find("li").bind("click",function(){var id=$(this).attr("tab_name");$(".index_new_job").hide();$(".index_post_ul_cur").removeClass("index_post_ul_cur");$(this).addClass("index_post_ul_cur");$("#"+id).show();});
	});
<?php 
        echo '</script';
        ?>
> 
<!--content  start-->

<div class="index_cont">
<div class="w980"> 
  <!--leftnav-->
  <div class="left_sidebar"> 

    <div id="sidebar">
      <div class="mainNavs"> 
        <!--放上去current--> 
        <?php 
        $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['v']->_loop = false;
        $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['job_index']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) {
            $_smarty_tpl->tpl_vars['v']->_loop = true;
            $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['v']->key;
            ?>
        <div class="menu_box" aid="<?php 
            echo $_smarty_tpl->tpl_vars['key']->value;
            ?>
" id="jobclass<?php 
            echo $_smarty_tpl->tpl_vars['key']->value;
            ?>
">
          <div class="menu_main">
            <h2><?php 
            echo $_smarty_tpl->tpl_vars['job_name']->value[$_smarty_tpl->tpl_vars['v']->value];
            ?>
 <span ></span></h2>

            <?php 
            $_smarty_tpl->tpl_vars['vv'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['vv']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['job_type']->value[$_smarty_tpl->tpl_vars['v']->value];
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['vv']->key => $_smarty_tpl->tpl_vars['vv']->value) {
                $_smarty_tpl->tpl_vars['vv']->_loop = true;
                ?>
 <a href="<?php 
                echo $_smarty_tpl->tpl_vars['jobclassurl']->value;
                ?>
job1=<?php 
                echo $_smarty_tpl->tpl_vars['v']->value;
                ?>
&job1_son=<?php 
                echo $_smarty_tpl->tpl_vars['vv']->value;
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['job_name']->value[$_smarty_tpl->tpl_vars['vv']->value];
                ?>
 </a> <?php 
            }
            ?>
 </div>
          <div class="menu_sub dn" style="top: 0px;<?php 
            if (count($_smarty_tpl->tpl_vars['job_type']->value[$_smarty_tpl->tpl_vars['v']->value]) < 3) {
                ?>
height:550px;<?php 
            }
            ?>
" id="jobclass_<?php 
            echo $_smarty_tpl->tpl_vars['key']->value;
            ?>
"> <?php 
            $_smarty_tpl->tpl_vars['vvl'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['vvl']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['job_type']->value[$_smarty_tpl->tpl_vars['v']->value];
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['vvl']->key => $_smarty_tpl->tpl_vars['vvl']->value) {
                $_smarty_tpl->tpl_vars['vvl']->_loop = true;
                ?>
            <dl class="reset">
              <dt>
             
              		<a href="<?php 
                echo $_smarty_tpl->tpl_vars['jobclassurl']->value;
                ?>
job1=<?php 
                echo $_smarty_tpl->tpl_vars['v']->value;
                ?>
&job1_son=<?php 
                echo $_smarty_tpl->tpl_vars['vvl']->value;
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['job_name']->value[$_smarty_tpl->tpl_vars['vvl']->value];
                ?>
 </a>
              
              </dt>
              <dd> 
              <?php 
                $_smarty_tpl->tpl_vars['vvv'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['vvv']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['job_type']->value[$_smarty_tpl->tpl_vars['vvl']->value];
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['vvv']->key => $_smarty_tpl->tpl_vars['vvv']->value) {
                    $_smarty_tpl->tpl_vars['vvv']->_loop = true;
                    ?>
 
            
              <a href="<?php 
                    echo $_smarty_tpl->tpl_vars['jobclassurl']->value;
                    ?>
job1=<?php 
                    echo $_smarty_tpl->tpl_vars['v']->value;
                    ?>
&job1_son=<?php 
                    echo $_smarty_tpl->tpl_vars['vvl']->value;
                    ?>
&job_post=<?php 
                    echo $_smarty_tpl->tpl_vars['vvv']->value;
                    ?>
"><?php 
                    echo $_smarty_tpl->tpl_vars['job_name']->value[$_smarty_tpl->tpl_vars['vvv']->value];
                    ?>
 </a> 
              <?php 
                }
                ?>
 </dd>
            </dl>
            <?php 
            }
            ?>
 </div>
        </div>
        <?php 
        }
        ?>
 </div>
      <div class="subscribe"> <a href="<?php 
        echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];
        ?>
/index.php?m=subscribe" target="_blank" rel="nofollow"> <span>订阅职位</span></a> </div>
    </div>
  </div>
  <!--    index right-->
  <div class="index_right_sidebar">
    <div class="index_search fr mt20">
      <div class="search_box">
        <div class="select_wrap fl"> <span class="search_type_selected f18">职位</span> <span class="search_type_keyword"></span>
          <div class="select_wrap_list" style="display:none"><span class="search_type_list f18" aid="job">职位</span><span class="search_type_list f18" aid="company" cid="search">公司</span></div>
        </div>
        <form method="get" action="index.php" onsubmit="return search_keyword(this);">
          <input type="hidden" name="m" id="m" value="job" />
          <input type="text" name="keyword" value="请输入职位名称,如:产品经理" onclick="if(this.value==window.KeywordTip.split('|')[0]||this.value==window.KeywordTip.split('|')[1]){this.value=''}" onblur="if(this.value==''){this.value=$('#m').val()=='job'?window.KeywordTip.split('|')[0]:window.KeywordTip.split('|')[1];}" placeholder="请输入职位名称,如:产品经理" class="index_search-input fl" >
          <input type="submit" value=" 搜索" class="index_search-bth fr">
        </form>
      </div>
      <div class="index_search_tag c6  mt15">热门:<?php 
        $_smarty_tpl->tpl_vars['top_key'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['top_key']->_loop = false;
        global $config;
        eval('$paramer=array("limit"=>"6","recom"=>"1","item"=>"\'top_key\'","nocache"=>"")
;');
        $list = array();
        if ($paramer[recom]) {
            $tuijian = 1;
        }
        if ($paramer[type]) {
            $type = $paramer[type];
        }
        if ($paramer[limit]) {
            $limit = $paramer[limit];
        } else {
            $limit = 20;
        }
        include PLUS_PATH . "/keyword.cache.php";
        if ($paramer[iswap]) {
            $wap = "/wap";
        } else {
            $index = 1;
        }
        if (is_array($keyword)) {
            if ($paramer[iswap]) {
                $i = 0;
                foreach ($keyword as $k => $v) {
                    if ($tuijian && $v[tuijian] != 1) {
                        continue;
                    }
                    if ($type && $v[type] != $type) {
                        continue;
                    }
                    $i++;
                    if ($v[type] == "1") {
                        $v[url] = Url("wap", array("c" => "once", "keyword" => $v['key_name']));
                        $v[type_name] = '一句话招聘';
                    } elseif ($v['type'] == "13") {
                        $v['url'] = Url("wap", array("c" => "tiny", "keyword" => $v['key_name']));
                        $v['type_name'] = '微简历';
                    } elseif ($v[type] == "3") {
                        $v[url] = Url("wap", array("c" => "job", "keyword" => $v['key_name']));
                        $v[type_name] = '职位';
                    } elseif ($v['type'] == "4") {
                        $v['url'] = Url("wap", array("c" => "company", "keyword" => $v['key_name']));
                        $v['type_name'] = '公司';
                    } elseif ($v['type'] == "5") {
                        $v['url'] = Url("wap", array("c" => "resume", "keyword" => $v['key_name']));
                        $v['type_name'] = '人才';
                    }
                    $v['key_title'] = $v['key_name'];
                    if ($v['color']) {
                        $v['key_name'] = "<font color=\"" . $v['color'] . "\">" . $v['key_name'] . "</font>";
                    }
                    $list[] = $v;
                    if ($i == $limit) {
                        break;
                    }
                }
            } else {
                $i = 0;
                foreach ($keyword as $k => $v) {
                    if ($tuijian && $v['tuijian'] != 1) {
                        continue;
                    }
                    if ($type && $v['type'] != $type) {
                        continue;
                    }
                    $i++;
                    if ($v['type'] == "1") {
                        $v['url'] = Url("once", array("keyword" => $v['key_name']));
                        $v['type_name'] = '一句话招聘';
                    } elseif ($v['type'] == "13") {
                        $v['url'] = Url("tiny", array("keyword" => $v['key_name']));
                        $v['type_name'] = '微简历';
                    } elseif ($v['type'] == "3") {
                        $v['url'] = Url("job", array("c" => "search", "keyword" => $v['key_name']));
                        $v['type_name'] = '职位';
                    } elseif ($v['type'] == "4") {
                        $v['url'] = Url("company", array("keyword" => $v['key_name']));
                        $v['type_name'] = '公司';
                    } elseif ($v['type'] == "5") {
                        $v['url'] = Url("resume", array("c" => "search", "keyword" => $v['key_name']));
                        $v['type_name'] = '人才';
                    } else {
                        if ($v['type'] == "12") {
                            $v['url'] = Url("ask", array("c" => "search", "keyword" => $v['key_name']));
                            $v['type_name'] = '问答';
                        }
                    }
                    $v['key_title'] = $v['key_name'];
                    if ($v['color']) {
                        $v['key_name'] = "<font color=\"" . $v['color'] . "\">" . $v['key_name'] . "</font>";
                    }
                    $list[] = $v;
                    if ($i == $limit) {
                        break;
                    }
                }
            }
        }
        $list = $list;
        if (!is_array($list) && !is_object($list)) {
            settype($list, 'array');
        }
        foreach ($list as $_smarty_tpl->tpl_vars['top_key']->key => $_smarty_tpl->tpl_vars['top_key']->value) {
            $_smarty_tpl->tpl_vars['top_key']->_loop = true;
            ?>
 <a href="<?php 
            echo $_smarty_tpl->tpl_vars['top_key']->value['url'];
            ?>
"><?php 
            echo $_smarty_tpl->tpl_vars['top_key']->value['key_name'];
            ?>
</a><?php 
        }
        ?>
 </div>
    </div>
    <div class="clear"></div>
    <div class="index_right_cont">
      <div class="slideCon">
        <div class="Projector">
          <div class="Projector_img">
            <div id="slides" class="s_lb">
              <div class="slides_container"> <?php 
        $_smarty_tpl->tpl_vars["lunbo"] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars["lunbo"]->_loop = false;
        $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable();
        $AdArr = array();
        $paramer = array();
        include PLUS_PATH . '/pimg_cache.php';
        $add_arr = $ad_label[3];
        if (is_array($add_arr) && !empty($add_arr)) {
            $i = 0;
            $limit = 0;
            $length = 0;
            foreach ($add_arr as $key => $value) {
                if (($value['did'] == $config['did'] || $value['did'] == '0') && $value['start'] < time() && $value['end'] > time()) {
                    if ($i > 0 && $limit == $i) {
                        break;
                    }
                    if ($length > 0) {
                        $value['name'] = mb_substr($value['name'], 0, $length);
                    }
                    if ($paramer['type'] != "") {
                        if ($paramer['type'] == $value['type']) {
                            $AdArr[] = $value;
                        }
                    } else {
                        $AdArr[] = $value;
                    }
                    $i++;
                }
            }
        }
        $AdArr = $AdArr;
        if (!is_array($AdArr) && !is_object($AdArr)) {
            settype($AdArr, 'array');
        }
        foreach ($AdArr as $_smarty_tpl->tpl_vars["lunbo"]->key => $_smarty_tpl->tpl_vars["lunbo"]->value) {
            $_smarty_tpl->tpl_vars["lunbo"]->_loop = true;
            $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars["lunbo"]->key;
            ?>
                <div class="slide"><?php 
            echo $_smarty_tpl->tpl_vars['lunbo']->value['html'];
            ?>
</div>
                <?php 
        }
        ?>
 </div>
            </div>
          </div>
        </div>
        <div class="clear"></div>
        <div class="index_Switching"><span class="index_Switching_icon fl"></span>名企招聘</div>
        <div class="index_Switching_cont">
          <div class="index_Switching_cont_box"> <?php 
        $_smarty_tpl->tpl_vars['hotjob'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['hotjob']->_loop = false;
        $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable();
        $hotjob = $hotjob;
        if (!is_array($hotjob) && !is_object($hotjob)) {
            settype($hotjob, 'array');
        }
        foreach ($hotjob as $_smarty_tpl->tpl_vars['hotjob']->key => $_smarty_tpl->tpl_vars['hotjob']->value) {
            $_smarty_tpl->tpl_vars['hotjob']->_loop = true;
            $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['hotjob']->key;
            ?>
            <div class="index_Switching_ban fl"><a href="<?php 
            echo smarty_function_url(array('m' => 'company', 'c' => 'show', 'id' => $_smarty_tpl->tpl_vars['hotjob']->value['uid']), $_smarty_tpl);
            ?>
"><img  src="<?php 
            echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];
            ?>
/<?php 
            echo $_smarty_tpl->tpl_vars['hotjob']->value['hot_pic'];
            ?>
" width="170" height="90"></a></div>
            <?php 
        }
        ?>
            
            <?php 
        $_smarty_tpl->tpl_vars['hotjobs'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['hotjobs']->_loop = false;
        $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable();
        $hotjobs = $hotjobs;
        if (!is_array($hotjobs) && !is_object($hotjobs)) {
            settype($hotjobs, 'array');
        }
        foreach ($hotjobs as $_smarty_tpl->tpl_vars['hotjobs']->key => $_smarty_tpl->tpl_vars['hotjobs']->value) {
            $_smarty_tpl->tpl_vars['hotjobs']->_loop = true;
            $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['hotjobs']->key;
            ?>
            <?php 
            if ($_smarty_tpl->tpl_vars['key']->value > 4) {
                ?>
            <div class="index_Switching_ban index_Switching_ban_w111 fl"><a href="<?php 
                echo smarty_function_url(array('m' => 'company', 'c' => 'show', 'id' => $_smarty_tpl->tpl_vars['hotjobs']->value['uid']), $_smarty_tpl);
                ?>
"><img  src="<?php 
                echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];
                ?>
/<?php 
                echo $_smarty_tpl->tpl_vars['hotjobs']->value['hot_pic'];
                ?>
" width="109" height="109"></a></div>
            <?php 
            }
            ?>
            <?php 
        }
        ?>
 </div>
        </div>
        <div class="clear"></div>
        <ul class="index_post_ul">
          <li class="index_post_ul_cur" tab_name="latest">推荐职位 </li>
          <li tab_name="introself"> 最新职位</li>
        </ul>
        <ul class="index_new_job mt10" id="latest">
          <?php 
        $_smarty_tpl->tpl_vars['hjob'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['hjob']->_loop = false;
        $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable();
        $hjob = $hjob;
        if (!is_array($hjob) && !is_object($hjob)) {
            settype($hjob, 'array');
        }
        foreach ($hjob as $_smarty_tpl->tpl_vars['hjob']->key => $_smarty_tpl->tpl_vars['hjob']->value) {
            $_smarty_tpl->tpl_vars['hjob']->_loop = true;
            $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['hjob']->key;
            ?>
          <li class="">
            <div class="index_new_job_tit fl"><a href="<?php 
            echo $_smarty_tpl->tpl_vars['hjob']->value['job_url'];
            ?>
" class="index_new_job_name fl f16"><?php 
            echo $_smarty_tpl->tpl_vars['hjob']->value['name_n'];
            ?>
</a> <span class="index_new_job_city fl">[<?php 
            echo $_smarty_tpl->tpl_vars['hjob']->value['job_city_one'];
            ?>
]</span><em class="index_new_job_date fr"><?php 
            echo $_smarty_tpl->tpl_vars['hjob']->value['time'];
            ?>
</em></div>
            <div class="index_new_job_tit fl mt15"> <span class="index_new_job_bt">薪资:</span> <span class="index_new_job_xz cf6"><?php 
            echo $_smarty_tpl->tpl_vars['hjob']->value['job_salary'];
            ?>
</span> <span class="index_new_job_bt index_new_job_bt_l30">经验:</span> <span class="index_new_job_xz "><?php 
            echo $_smarty_tpl->tpl_vars['hjob']->value['job_exp'];
            ?>
 </span> <span class="index_new_job_bt index_new_job_bt_l30">最低学历:</span> <span class="index_new_job_xz "><?php 
            echo $_smarty_tpl->tpl_vars['hjob']->value['job_edu'];
            ?>
 </span> <a href="<?php 
            echo $_smarty_tpl->tpl_vars['hjob']->value['com_url'];
            ?>
" class="cblue  index_new_job_bt_l30"><?php 
            echo $_smarty_tpl->tpl_vars['hjob']->value['com_n'];
            ?>
</a> </div>
          </li>
          <?php 
        }
        ?>
        </ul>
        <ul class="index_new_job mt10" style="display:none;" id="introself">
          <?php 
        $_smarty_tpl->tpl_vars['jobl'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['jobl']->_loop = false;
        $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable();
        $jobl = $jobl;
        if (!is_array($jobl) && !is_object($jobl)) {
            settype($jobl, 'array');
        }
        foreach ($jobl as $_smarty_tpl->tpl_vars['jobl']->key => $_smarty_tpl->tpl_vars['jobl']->value) {
            $_smarty_tpl->tpl_vars['jobl']->_loop = true;
            $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['jobl']->key;
            ?>
          <li class="">
            <div class="index_new_job_tit fl"><a href="<?php 
            echo $_smarty_tpl->tpl_vars['job1']->value['job_url'];
            ?>
" class="index_new_job_name fl f16"><?php 
            echo $_smarty_tpl->tpl_vars['jobl']->value['name_n'];
            ?>
</a> <span class="index_new_job_city fl">[<?php 
            echo $_smarty_tpl->tpl_vars['hjob']->value['job_city_one'];
            ?>
]</span><em class="index_new_job_date fr"><?php 
            echo $_smarty_tpl->tpl_vars['jobl']->value['time'];
            ?>
</em></div>
            <div class="index_new_job_tit fl mt15"> <span class="index_new_job_bt">薪资:</span> <span class="index_new_job_xz cf6"><?php 
            echo $_smarty_tpl->tpl_vars['jobl']->value['job_salary'];
            ?>
</span> <span class="index_new_job_bt index_new_job_bt_l30">经验:</span> <span class="index_new_job_xz "><?php 
            echo $_smarty_tpl->tpl_vars['jobl']->value['job_exp'];
            ?>
 </span> <span class="index_new_job_bt index_new_job_bt_l30">最低学历:</span> <span class="index_new_job_xz "><?php 
            echo $_smarty_tpl->tpl_vars['jobl']->value['job_edu'];
            ?>
 </span> <a href="<?php 
            echo $_smarty_tpl->tpl_vars['job1']->value['com_url'];
            ?>
" class="cblue  index_new_job_bt_l30"><?php 
            echo $_smarty_tpl->tpl_vars['jobl']->value['com_n'];
            ?>
</a> </div>
          </li>
          <?php 
        }
        ?>
        </ul>
        <div class="clear"></div>
        <div class="index_Switching"><span class="index_Switching_icon fl"></span>友情链接</div>
        <div class="index_link fl"> <?php 
        $_smarty_tpl->tpl_vars['link1'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['link1']->_loop = false;
        $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable();
        global $config;
        //跨域名使用范围
        $domain = '';
        if ($config["cityid"] != "" || $config["hyclass"] != "") {
            include PLUS_PATH . "/domain_cache.php";
            $host_url = $_SERVER['HTTP_HOST'];
            foreach ($site_domain as $v) {
                if ($v['host'] == $host_url) {
                    $domain = $v['id'];
                }
            }
        }
        $tem_type = 2;
        include PLUS_PATH . "/link.cache.php";
        if (is_array($link)) {
            $linkList = array();
            $i = 0;
            foreach ($link as $key => $value) {
                if ($config["did"] != 0 && $value["did"] != $config["did"]) {
                    continue;
                } elseif (is_numeric('2') && $value['tem_type'] != '2' && $value['tem_type'] != '1') {
                    continue;
                } elseif ((!is_numeric('2') || '2' == '1') && $value['tem_type'] != '1') {
                    continue;
                } elseif (!$config["did"] && $value["did"] > 0) {
                    continue;
                }
                if (is_numeric('1') && $value['link_type'] != '1') {
                    continue;
                }
                if (is_numeric('') && intval('') <= $i) {
                    break;
                }
                $value[picurl] = $config[sy_weburl] . "/" . $value[pic];
                $linkList[] = $value;
                $i++;
            }
        }
        $linkList = $linkList;
        if (!is_array($linkList) && !is_object($linkList)) {
            settype($linkList, 'array');
        }
        foreach ($linkList as $_smarty_tpl->tpl_vars['link1']->key => $_smarty_tpl->tpl_vars['link1']->value) {
            $_smarty_tpl->tpl_vars['link1']->_loop = true;
            $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['link1']->key;
            ?>
          <?php 
            if ($_smarty_tpl->tpl_vars['key']->value > 0) {
                ?>
<span>|</span><?php 
            }
            ?>
<a href="<?php 
            echo $_smarty_tpl->tpl_vars['link1']->value['link_url'];
            ?>
" target="_blank" class="index_link_a"><?php 
            echo $_smarty_tpl->tpl_vars['link1']->value['link_name'];
            ?>
</a> <?php 
        }
        ?>
 </div>
      </div>
    </div>
  </div>
</div>

<?php 
        echo '<script';
        ?>
>

$(document).ready(function(){
	$(".index_new_job li").hover(function(){
		var aid=$(this).attr("aid");
		$("#joblist"+aid).addClass("index_new_job_hover");	
	},function(){
		var aid=$(this).attr("aid");
		$("#joblist"+aid).removeClass("index_new_job_hover");	
	})   
	
	$(".menu_box").hover(function(){
		var aid=$(this).attr("aid");
		var ftop=Number($(this).offset().top); 
		var sheight=Number($("#jobclass_"+aid).height());  
		if(aid=='0'){ 
			$("#jobclass_"+aid).css("top","0px"); 
		}else if(sheight>ftop){ 
			$("#jobclass_"+aid).css("top","0px"); 
		}else if(ftop>sheight&&Number(sheight)<250){  
			var isIE6=!window.XMLHttpRequest;
			if (isIE6){
				var top=Number(ftop)-Number(99);
			}else if(navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.match(/9./i)=="9."){
				var top=Number(ftop)-Number(94);
			}else{ 
				var top=Number(ftop)-Number(94);
			}  
			$("#jobclass_"+aid).css("top",top+"px"); 
 		}else if(Number(sheight)>250){ 
			var top=Number(ftop)-Number(220);
			$("#jobclass_"+aid).css("top",top+"px"); 
		} 
		$("#jobclass"+aid).addClass("current");	
		$("#jobclass_"+aid).attr("class","menu_sub db");
	},function(){
		var aid=$(this).attr("aid");
		$("#jobclass"+aid).removeClass("current");	
		$("#jobclass_"+aid).attr("class","menu_sub dn");	
	})  
	$(".select_wrap").hover(function(){
		$(".select_wrap_list").show();
	},function(){
		$(".select_wrap_list").hide();
	})  
	window.KeywordTip='请输入职位名称,如:飞行签派员|请输入公司名称,如:国际航空';
	$(".search_type_list").click(function(){
		var aid=$(this).attr("aid");
		var cid=$(this).attr("cid")
		var name=$(this).html();
		$("#m").val(aid);		
		if(cid){
			$('#m').append('<input type="hidden" value="'+cid+'">');			
		}
		$(".search_type_selected").html(name);
		$(".select_wrap_list").hide();
		$('input[name=keyword]').val(window.KeywordTip.split('|')[$(this).index()%2]);
		$('input[name=keyword]').attr('placeholder',window.KeywordTip.split('|')[$(this).index()%2]);
	});
	$("#slides").slides({
		preload: true,
		preloadImage: '<?php 
        echo $_smarty_tpl->tpl_vars['style']->value;
        ?>
/images/loading.gif',
		play: 5000,
		pause: 2500,
		hoverPause: true
	});

})
function search_keyword(myform){
	var keyword=myform.keyword.value;
	var placeholder=myform.keyword.placeholder;
	if(placeholder==keyword&&keyword){
		myform.keyword.value='';
	}
}
<?php 
        echo '</script';
        ?>
> 
<?php 
        echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tplstyle']->value . "/public_search/index_search.htm", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
        ?>

<?php 
        echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tplstyle']->value . "/footer.htm", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
        ?>
 
<?php 
    }
Ejemplo n.º 2
0
function HTMLBody()
{
    $page = Page::getInstance();
    $html = "<body>";
    $html .= "<div id='pageCSS'>" . $page->getCSS() . "</div>";
    $html .= "<div id='fs'></div>";
    //$html.= file_get_contents("img/icons.svg");
    $html .= "<header class='headerContainer' >";
    $html .= SiteHeader();
    $html .= "</header>";
    $html .= "<nav class='menuContainer'>";
    $html .= SiteMenu();
    $html .= "</nav>";
    $html .= "<div class='pageContainer'>";
    $html .= "<div class='module module--page pageWrapper'>";
    $html .= PageHeader();
    $html .= PageNav();
    $html .= PageContent();
    $html .= PageAds();
    $html .= "</div>";
    $html .= "</div>";
    $html .= "<footer class='footerContainer'>";
    $html .= SiteFooter();
    $html .= "</footer>";
    //$html.= js('_assets/js/components/es5-shim');
    //$html .= "<script>var DEBUG = true, POLYFILLPROMISE = false;</script>";
    /*
    $html .= js('_assets/js/olli/module');
    $html .= includelib('_assets/js/olli', 'build.json');
    
    //$html.= js('js/olli');
    
    $html .= js('_assets/js/olli/test');
    */
    ///*
    $html .= "<script>var DEBUG = true, FORCE_PROMISE = this['Promise']?false:true;</script>";
    $html .= js('_assets/es6/vendors/browser');
    $html .= js('_assets/es6/vendors/system-polyfills');
    $html .= js('_assets/es6/vendors/system');
    $html .= "<script>";
    $html .= "System.config({";
    $html .= "    transpiler: 'babel'";
    //$html .= "    baseURL: '_assets/es6/olli'";
    $html .= "  });";
    $html .= "System.import('_assets/es6/olli/olli-test.js?cache=" . time() . "');";
    $html .= "</script>";
    //*/
    /*
        $html.= js('js/olli-dev');
        $html .= js('_assets/js/olli/test');
    */
    $html .= "</body>";
    return $html;
}
    function content_55f968d5e609b1_04365203($_smarty_tpl)
    {
        if (!is_callable('smarty_function_url')) {
            include 'D:\\wamp\\www\\qyhr\\app\\include\\libs\\plugins\\function.url.php';
        }
        $gonggao = array();
        $time = time();
        eval('$paramer=array("t_len"=>"18","limit"=>"8","item"=>"\'gonggao\'","name"=>"\'gonggaolist1\'","nocache"=>"")
;');
        global $db, $db_config, $config;
        $ParamerArr = GetSmarty($paramer, $_GET, $_smarty_tpl);
        $paramer = $ParamerArr[arr];
        $Purl = $ParamerArr[purl];
        global $ModuleName;
        if (!$Purl["m"]) {
            $Purl["m"] = $ModuleName;
        }
        $where = 1;
        if ($config['did']) {
            $where .= " and `did`='" . $config['did'] . "'";
        }
        if ($paramer[order]) {
            $where .= "  ORDER BY `" . $paramer[order] . "`";
        } else {
            $where .= "  ORDER BY `datetime`";
        }
        if ($paramer[sort]) {
            $where .= " " . $paramer[sort];
        } else {
            $where .= " DESC";
        }
        if ($paramer[limit]) {
            $limit = " LIMIT " . $paramer[limit];
        } else {
            $limit = " LIMIT 20";
        }
        if ($paramer[ispage]) {
            $limit = PageNav($paramer, $_GET, "admin_announcement", $where, $Purl, "", 0, $_smarty_tpl);
        }
        $gonggao = $db->select_all("admin_announcement", $where . $limit);
        if (is_array($gonggao)) {
            foreach ($gonggao as $key => $value) {
                if ($paramer[t_len]) {
                    $gonggao[$key][title_n] = mb_substr($value['title'], 0, $paramer[t_len], "GBK");
                }
                $gonggao[$key][time] = date("Y-m-d", $value[datetime]);
                $gonggao[$key][url] = Url("announcement", array("id" => $value[id]), "1");
            }
        }
        global $db, $db_config, $config;
        include PLUS_PATH . '/group.cache.php';
        $alist = array();
        $rs = null;
        $nids = null;
        eval('$paramer=array("item"=>"\'alist\'","t_len"=>"15","limit"=>"8","key"=>"\'key\'","name"=>"\'newlist1\'","nocache"=>"")
;');
        $ParamerArr = GetSmarty($paramer, $_GET, $_smarty_tpl);
        $paramer = $ParamerArr['arr'];
        $Purl = $ParamerArr['purl'];
        if ($paramer[cache]) {
            $Purl = "{{page}}.html";
        }
        global $ModuleName;
        if (!$Purl["m"]) {
            $Purl["m"] = $ModuleName;
        }
        $where = 1;
        if ($config['did']) {
            $where .= " and `did`='" . $config['did'] . "'";
        }
        include PLUS_PATH . "/group.cache.php";
        if (is_array($paramer)) {
            if ($paramer['nid'] != "") {
                $where .= " AND `nid` in ({$paramer['nid']})";
                $nids = @explode(',', $paramer['nid']);
                $paramer['nid'] = $paramer['nid'];
            } else {
                if ($paramer['rec'] != "") {
                    $nids = array();
                    if (is_array($group_rec)) {
                        foreach ($group_rec as $key => $value) {
                            if ($key <= 2) {
                                $nids[] = $value;
                            }
                        }
                        $paramer[nid] = @implode(',', $nids);
                    }
                }
            }
            if ($paramer['nid']) {
                $nid_s = @explode(',', $paramer[nid]);
                foreach ($nid_s as $v) {
                    if ($group_type[$v]) {
                        $paramer[nid] = $paramer[nid] . "," . @implode(',', $group_type[$v]);
                    }
                }
            }
            if ($paramer['type']) {
                $type = str_replace("\"", "", $paramer[type]);
                $type_arr = @explode(",", $type);
                if (is_array($type_arr) && !empty($type_arr)) {
                    foreach ($type_arr as $key => $value) {
                        $where .= " AND FIND_IN_SET('" . $value . "',`describe`)";
                        if (count($nids) > 0) {
                            $picwhere .= " AND FIND_IN_SET('" . $value . "',`describe`)";
                        }
                    }
                }
            }
            if ($paramer['pic'] != "") {
                $where .= " AND `newsphoto`<>''";
            }
            if ($paramer['order'] != "") {
                $order = str_replace("'", "", $paramer['order']);
                $where .= " ORDER BY {$order}";
            } else {
                $where .= " ORDER BY `datetime`";
            }
            if ($paramer['sort']) {
                $where .= " " . $paramer[sort];
            } else {
                $where .= " DESC";
            }
            if (intval($paramer['limit']) > 0) {
                $limit = intval($paramer['limit']);
                $limit = " limit " . $limit;
            }
            if ($paramer['ispage']) {
                $limit = PageNav($paramer, $_GET, "news_base", $where, $Purl, "", "5", $_smarty_tpl);
            }
        }
        if (!intval($paramer['ispage']) && count($nids) > 0) {
            $where = " and nid IN ({$paramer['nid']})";
            if ($paramer['pic']) {
                if (!$paramer['piclimit']) {
                    $piclimit = 1;
                } else {
                    $piclimit = $paramer['piclimit'];
                }
                $db->query("set @f=0,@n=0");
                $query = $db->query("select * from (select id,title,color,datetime,description,newsphoto,@n:=if(@f=nid,@n:=@n+1,1) as aid,@f:=nid as nid from {$db_config['def']}news_base  WHERE `nid` IN ({$paramer['nid']}) AND `newsphoto` <>''  order by nid asc,datetime desc) a where aid <=" . $piclimit);
                while ($rs = $db->fetch_array($query)) {
                    if (intval($paramer[t_len]) > 0) {
                        $len = intval($paramer[t_len]);
                        if ($rs[color]) {
                            $rs[title] = "<font color='" . $rs[color] . "'>" . mb_substr($rs[title], 0, $len, "GBK") . "</font>";
                        } else {
                            $rs[title] = mb_substr($rs[title], 0, $len, "GBK");
                        }
                    }
                    if (intval($paramer[d_len]) > 0) {
                        $len = intval($paramer[d_len]);
                        $rs[description] = mb_substr($rs[description], 0, $len, "GBK");
                    }
                    $rs['name'] = $group_name[$rs['nid']];
                    if ($config[sy_news_rewrite] == "2") {
                        $rs["url"] = $config['sy_weburl'] . "/news/" . date("Ymd", $rs["datetime"]) . "/" . $rs[id] . ".html";
                    } else {
                        $rs["url"] = Url("article", array("c" => "show", "id" => $rs[id]), "1");
                    }
                    $rs[time] = date("Y-m-d", $rs[datetime]);
                    $rs['datetime'] = date("m-d", $rs[datetime]);
                    $alist[$rs['nid']]['pic'][] = $rs;
                }
            }
            $db->query("set @f=0,@n=0");
            $query = $db->query("select * from (select id,title,datetime,color,description,newsphoto,@n:=if(@f=nid,@n:=@n+1,1) as aid,@f:=nid as nid from {$db_config['def']}news_base  WHERE `nid` IN ({$paramer['nid']}) order by nid asc,datetime desc) a where aid <={$paramer['limit']}");
            while ($rs = $db->fetch_array($query)) {
                if (intval($paramer[t_len]) > 0) {
                    $len = intval($paramer[t_len]);
                    if ($rs[color]) {
                        $rs[title] = "<font color='" . $rs[color] . "'>" . mb_substr($rs[title], 0, $len, "GBK") . "</font>";
                    } else {
                        $rs[title] = mb_substr($rs[title], 0, $len, "GBK");
                    }
                }
                if (intval($paramer[d_len]) > 0) {
                    $len = intval($paramer[d_len]);
                    $rs[description] = mb_substr($rs[description], 0, $len, "GBK");
                }
                $rs['name'] = $group_name[$rs['nid']];
                if ($config[sy_news_rewrite] == "2") {
                    $rs["url"] = $config['sy_weburl'] . "/news/" . date("Ymd", $rs["datetime"]) . "/" . $rs[id] . ".html";
                } else {
                    $rs["url"] = Url("article", array("c" => "show", "id" => $rs[id]), "1");
                }
                $rs[time] = date("Y-m-d", $rs[datetime]);
                $rs[datetime] = date("m-d", $rs[datetime]);
                $alist[$rs['nid']]['arclist'][] = $rs;
            }
        } else {
            $query = $db->query("SELECT * FROM `{$db_config['def']}news_base` WHERE " . $where . $limit);
            while ($rs = $db->fetch_array($query)) {
                if (intval($paramer[t_len]) > 0) {
                    $len = intval($paramer[t_len]);
                    $rs[title] = mb_substr($rs[title], 0, $len, "GBK");
                }
                if (intval($paramer[d_len]) > 0) {
                    $len = intval($paramer[d_len]);
                    $rs[description] = mb_substr($rs[description], 0, $len, "GBK");
                }
                $rs['name'] = $group_name[$rs['nid']];
                if ($config[sy_news_rewrite] == "2") {
                    $rs["url"] = $config['sy_weburl'] . "/news/" . date("Ymd", $rs["datetime"]) . "/" . $rs[id] . ".html";
                } else {
                    $rs["url"] = Url("article", array("c" => "show", "id" => $rs[id]), "1");
                }
                $rs[time] = date("Y-m-d", $rs[datetime]);
                $rs[datetime] = date("m-d", $rs[datetime]);
                $alist[] = $rs;
            }
        }
        $gonggao1 = array();
        $time = time();
        eval('$paramer=array("t_len"=>"18","limit"=>"8","item"=>"\'gonggao1\'","name"=>"\'gonggaolist1\'","nocache"=>"")
;');
        global $db, $db_config, $config;
        $ParamerArr = GetSmarty($paramer, $_GET, $_smarty_tpl);
        $paramer = $ParamerArr[arr];
        $Purl = $ParamerArr[purl];
        global $ModuleName;
        if (!$Purl["m"]) {
            $Purl["m"] = $ModuleName;
        }
        $where = 1;
        if ($config['did']) {
            $where .= " and `did`='" . $config['did'] . "'";
        }
        if ($paramer[order]) {
            $where .= "  ORDER BY `" . $paramer[order] . "`";
        } else {
            $where .= "  ORDER BY `datetime`";
        }
        if ($paramer[sort]) {
            $where .= " " . $paramer[sort];
        } else {
            $where .= " DESC";
        }
        if ($paramer[limit]) {
            $limit = " LIMIT " . $paramer[limit];
        } else {
            $limit = " LIMIT 20";
        }
        if ($paramer[ispage]) {
            $limit = PageNav($paramer, $_GET, "admin_announcement", $where, $Purl, "", 0, $_smarty_tpl);
        }
        $gonggao1 = $db->select_all("admin_announcement", $where . $limit);
        if (is_array($gonggao1)) {
            foreach ($gonggao1 as $key => $value) {
                if ($paramer[t_len]) {
                    $gonggao1[$key][title_n] = mb_substr($value['title'], 0, $paramer[t_len], "GBK");
                }
                $gonggao1[$key][time] = date("Y-m-d", $value[datetime]);
                $gonggao1[$key][url] = Url("announcement", array("id" => $value[id]), "1");
            }
        }
        $flist = array();
        $time = time();
        eval('$paramer=array("len"=>"19","limit"=>"8","item"=>"\'flist\'","nocache"=>"")
;');
        global $db, $db_config, $config;
        $ParamerArr = GetSmarty($paramer, $_GET, $_smarty_tpl);
        $paramer = $ParamerArr[arr];
        $Purl = $ParamerArr[purl];
        global $ModuleName;
        if (!$Purl["m"]) {
            $Purl["m"] = $ModuleName;
        }
        $where = "1";
        if ($config['did']) {
            $where .= " and `did`='" . $config['did'] . "'";
        }
        $time = date("Y-m-d", time());
        if ($paramer[state] == '1') {
            $where .= " AND `starttime`>'{$time}'";
        } elseif ($paramer[state] == '2') {
            $where .= " AND `starttime`<'{$time}' AND `endtime`>'{$time}'";
        } elseif ($paramer[state] == '3') {
            $where .= " AND `endtime`<'{$time}'";
        } else {
            $where .= " AND `endtime`>'{$time}'";
        }
        if ($paramer[order]) {
            $where .= " ORDER BY {$paramer['order']} ";
        } else {
            $where .= " ORDER BY `starttime` ";
        }
        if ($paramer[sort]) {
            $where .= " {$paramer['sort']}";
        } else {
            $where .= " DESC ";
        }
        if ($paramer[limit]) {
            $limit = " LIMIT " . $paramer[limit];
        } else {
            $limit = " LIMIT 20";
        }
        if ($paramer[ispage]) {
            $limit = PageNav($paramer, $_GET, "zhaopinhui", $where, $Purl, "", 6, $_smarty_tpl);
        }
        $flist = $db->select_all("zhaopinhui", $where . $limit);
        if (is_array($flist)) {
            foreach ($flist as $key => $v) {
                $array_zid[] = $v[id];
            }
            $rows = $db->select_all("zhaopinhui_com", "`zid` in (" . implode(',', $array_zid) . ") and status=1", "`uid`,`zid`,`jobid`");
            foreach ($rows as $key => $v) {
                $jobarr = explode(',', $v[jobid]);
                $zph_com[$v[zid]][comnum]++;
                $zph_com[$v[zid]][jobnum] = $zph_com[$v[zid]][jobnum] + count($jobarr);
            }
            foreach ($flist as $key => $v) {
                $flist[$key]["stime"] = strtotime($v[starttime]) - mktime();
                $comnum = $zph_com[$v[id]][comnum] ? $zph_com[$v[id]][comnum] : 0;
                $jobnum = $zph_com[$v[id]][jobnum] ? $zph_com[$v[id]][jobnum] : 0;
                $flist[$key]["comnum"] = $comnum;
                $flist[$key]["jobnum"] = $jobnum;
                $flist[$key]["etime"] = strtotime($v[endtime]) - mktime();
                if ($paramer[len]) {
                    $flist[$key]["title"] = mb_substr($v['title'], 0, $paramer[len], "GBK");
                }
                $flist[$key]["url"] = Url("zph", array("c" => 'show', "id" => $v['id']), "1");
                $weekarray = array("日", "一", "二", "三", "四", "五", "六");
                $flist[$key]["week"] = $weekarray[date('w', strtotime($v['starttime']))];
            }
        }
        global $db, $db_config, $config;
        global $ModuleName;
        if (!$Purl["m"]) {
            $Purl["m"] = $ModuleName;
        }
        $time = time();
        $where = "`time_start`<{$time} AND `time_end`>{$time}";
        $order = " ORDER BY `sort` ";
        $sort = 'ASC';
        $limit = " LIMIT 15";
        $where .= $order . $sort;
        $Query = $db->query("SELECT * FROM {$db_config['def']}hotjob where " . $where . $limit);
        while ($rs = $db->fetch_array($Query)) {
            $hotjoblist[] = $rs;
            $ListId[] = $rs[uid];
        }
        $jobwhere = 1;
        if ($config[sy_web_site] == "1") {
            if ($config[cityid] > 0 && $config[cityid] != "") {
                $jobwhere .= " and `cityid`='{$config['cityid']}'";
            }
            if ($config[three_cityid] > 0 && $config[three_cityid] != "") {
                $jobwhere .= " and `three_cityid`='{$config['three_cityid']}'";
            }
            if ($config[hyclass] > 0 && $config[hyclass] != "") {
                $jobwhere .= " and `hy`='" . $config[hyclass] . "'";
            }
        }
        $JobId = @implode(",", $ListId);
        $JobList = $db->select_all("company_job", "`uid` IN ({$JobId}) and `edate`>'" . mktime() . "' and state=1 and r_status<>'2' and status<>'1' and {$jobwhere}");
        $statis = $db->select_all("company_statis", "`uid` IN ({$JobId})", "`uid`,`comtpl`");
        if (is_array($ListId)) {
            $cache_array = $db->cacheget();
            foreach ($hotjoblist as $key => $value) {
                $i = 0;
                if (is_array($JobList)) {
                    $hotjoblist[$key]["job"] .= "<div class=\"area_left\"> ";
                    foreach ($JobList as $k => $v) {
                        if ($value[uid] == $v[uid] && $i < 5) {
                            $job_url = Url("job", array("c" => "comapply", "id" => "{$v['id']}"), "1");
                            $v[name] = mb_substr($v[name], 0, 10, "GBK");
                            $hotjoblist[$key]["job"] .= "<a href='" . $job_url . "'>" . $v[name] . "</a>";
                            $i++;
                        }
                    }
                    foreach ($statis as $v) {
                        if ($value['uid'] == $v['uid']) {
                            if ($v['comtpl'] && $v['comtpl'] != "default") {
                                $jobs_url = Url("company", array("c" => "show", "id" => $value[uid])) . "#job";
                            } else {
                                $jobs_url = Url("company", array("c" => "show", "id" => $value[uid]));
                            }
                        }
                    }
                    $com_url = Url("company", array("c" => "show", "id" => $value[uid]));
                    $beizhu = mb_substr($value['beizhu'], 0, 50, "GBK") . "...";
                    $hotjoblist[$key]["job"] .= "</div><div class=\"area_right\"><a href='" . $com_url . "'>" . $value["username"] . "</a>" . $beizhu . "</div><div class=\"area_left_bot\"><a href='" . $jobs_url . "'>全部职位</a></div><div class='area_right_bot'><a href='" . $com_url . "'>公司详情</a></div>";
                    $hotjoblist[$key]["url"] = $com_url;
                }
            }
        }
        $ulist = array();
        global $db, $db_config, $config;
        eval('$paramer=array("item"=>"\'ulist\'","post_len"=>"10","limit"=>"20","key"=>"\'key\'","name"=>"\'userlist1\'","nocache"=>"")
;');
        $ParamerArr = GetSmarty($paramer, $_GET, $_smarty_tpl);
        $paramer = $ParamerArr[arr];
        extract($paramer);
        $Purl = $ParamerArr[purl];
        global $ModuleName;
        if (!$Purl["m"]) {
            $Purl["m"] = $ModuleName;
        }
        include PLUS_PATH . "/job.cache.php";
        $where = "status<>'2' and `r_status`<>'2' and `job_classid`<>'' and `open`='1' and `defaults`=1";
        if ($config['sy_web_site'] == "1") {
            if ($config['cityid'] > 0 && $config['cityid'] != "") {
                $paramer['cityid'] = $config['cityid'];
            }
            if ($config['three_cityid'] > 0 && $config['three_cityid'] != "") {
                $paramer['three_cityid'] = $config['three_cityid'];
            }
            if ($config['hyclass'] > 0 && $config['hyclass'] != "") {
                $paramer['hy'] = $config['hyclass'];
            }
        }
        if ($paramer[where_uid]) {
            $where .= " AND `uid` in (" . $paramer['where_uid'] . ")";
        }
        if ($paramer[idcard]) {
            $where .= " AND `idcard_status`='1'";
        }
        if ($paramer[height_status]) {
            $where .= " AND height_status=" . $paramer[height_status];
        } else {
            $where .= " AND height_status<>'2'";
        }
        if ($paramer[rec]) {
            $where .= " AND rec=1";
        }
        if ($paramer[rec_resume]) {
            $where .= " AND `rec_resume`=1";
        }
        if ($paramer[work]) {
            $show = $db->select_all("resume_show", "1 group by eid", "`eid`");
            if (is_array($show)) {
                foreach ($show as $v) {
                    $eid[] = $v['eid'];
                }
            }
            $where .= " AND id in (" . @implode(",", $eid) . ")";
        }
        if ($paramer[cid]) {
            $where .= " AND (cityid={$paramer['cid']} or three_cityid={$paramer['cid']})";
        }
        if ($paramer[keyword]) {
            $where1[] = "`uname` LIKE '%{$paramer['keyword']}%'";
            foreach ($job_name as $k => $v) {
                if (strpos($v, $paramer[keyword]) !== false) {
                    $jobid[] = $k;
                }
            }
            if (is_array($jobid)) {
                foreach ($jobid as $value) {
                    $class[] = "FIND_IN_SET('" . $value . "',job_classid)";
                }
                $where1[] = @implode(" or ", $class);
            }
            include PLUS_PATH . "/city.cache.php";
            foreach ($city_name as $k => $v) {
                if (strpos($v, $paramer[keyword]) !== false) {
                    $cityid[] = $k;
                }
            }
            if (is_array($cityid)) {
                foreach ($cityid as $value) {
                    $class[] = "(provinceid = '" . $value . "' or cityid = '" . $value . "')";
                }
                $where1[] = @implode(" or ", $class);
            }
            $where .= " AND (" . @implode(" or ", $where1) . ")";
        }
        if ($paramer[pic] == "0" || $paramer[pic]) {
            $where .= " AND photo<>''";
        }
        if ($paramer[name] == "0") {
            $where .= " AND uname<>''";
        }
        if ($paramer[hy] == "0") {
            $where .= " AND hy<>''";
        } elseif ($paramer[hy] != "") {
            $where .= " AND (`hy` IN (" . $paramer['hy'] . "))";
        }
        $job_classid = "";
        if ($paramer[jobids]) {
            $joball = explode(",", $paramer[jobids]);
            foreach (explode(",", $paramer[jobids]) as $v) {
                if ($job_type[$v]) {
                    $joball[] = @implode(",", $job_type[$v]);
                }
            }
            $job_classid = implode(",", $joball);
        }
        if ($paramer[job1]) {
            $joball = $job_type[$paramer[job1]];
            foreach ($job_type[$paramer[job1]] as $v) {
                $joball[] = @implode(",", $job_type[$v]);
            }
            $job_classid = @implode(",", $joball);
        }
        if ($paramer[job1_son]) {
            $joball = $job_type[$paramer[job1_son]];
            foreach ($job_type[$paramer[job1_son]] as $v) {
                $joball[] = @implode(",", $v);
            }
            $job_classid = @implode(",", $joball);
        }
        if (!empty($job_classid)) {
            $classid = @explode(",", $job_classid);
            foreach ($classid as $value) {
                $class[] = "FIND_IN_SET('" . $value . "',job_classid)";
            }
            $classid = @implode(" or ", $class);
            $where .= " AND ({$classid})";
        }
        if ($paramer[job_post]) {
            $where .= " AND FIND_IN_SET('" . $paramer[job_post] . "',job_classid)";
        }
        if ($paramer[provinceid]) {
            $where .= " AND provinceid = {$paramer['provinceid']}";
        }
        if ($paramer[cityid]) {
            $where .= " AND (`cityid` IN ({$paramer['cityid']}))";
        }
        if ($paramer[three_cityid]) {
            $where .= " AND (`three_cityid` IN ({$paramer['three_cityid']}))";
        }
        if ($paramer[cityin]) {
            $where .= " AND( AND provinceid IN ({$paramer['cityin']}) OR cityid IN ({$paramer['cityin']}) OR three_cityid IN ({$paramer['cityin']}))";
        }
        if ($paramer[exp]) {
            $where .= " AND exp={$paramer['exp']}";
        } else {
            $where .= " AND exp>0";
        }
        if ($paramer[edu]) {
            $where .= " AND edu={$paramer['edu']}";
        } else {
            $where .= " AND edu>0";
        }
        if ($paramer[sex]) {
            $where .= " AND sex={$paramer['sex']}";
        }
        if ($paramer[report]) {
            $where .= " AND report={$paramer['report']}";
        }
        if ($paramer[salary]) {
            $where .= " AND salary={$paramer['salary']}";
        }
        if ($paramer[type]) {
            $where .= " AND type={$paramer['type']}";
        }
        if ($paramer[uptime]) {
            $time = time();
            $uptime = $time - $paramer[uptime] * 86400;
            $where .= " AND lastupdate>{$uptime}";
        }
        if ($paramer[adtime]) {
            $time = time();
            $adtime = $time - $paramer[adtime] * 86400;
            $where .= " AND status_time>{$adtime}";
        }
        if ($paramer[order] && $paramer[order] != "lastdate") {
            if ($paramer[order] == 'ant_num') {
                $order = " ORDER BY `ant_num`";
            } elseif ($paramer[order] == 'topdate') {
                $nowtime = time();
                $order = " ORDER BY if(topdate>{$nowtime},topdate,lastupdate)";
            } else {
                $order = " ORDER BY `" . str_replace("'", "", $paramer[order]) . "`";
            }
        } else {
            $order = " ORDER BY lastupdate ";
        }
        $sort = $paramer[sort] ? $paramer[sort] : 'DESC';
        if ($paramer[limit]) {
            $limit = " LIMIT " . $paramer[limit];
        }
        $where .= $order . $sort;
        if ($paramer[where]) {
            $where = $paramer[where];
        }
        if ($paramer[ispage]) {
            if ($paramer["height_status"]) {
                $limit = PageNav($paramer, $_GET, "resume_expect", $where, $Purl, "", "3", $_smarty_tpl);
            } else {
                $limit = PageNav($paramer, $_GET, "resume_expect", $where, $Purl, "", '0', $_smarty_tpl);
            }
        }
        $ulist = $db->select_all("resume_expect", $where . $limit, "*,uname as username");
        if (is_array($ulist)) {
            $cache_array = $db->cacheget();
            $userclass_name = $cache_array["user_classname"];
            $city_name = $cache_array["city_name"];
            $job_name = $cache_array["job_name"];
            $industry_name = $cache_array["industry_name"];
            $my_down = array();
            if ($_COOKIE['usertype'] == '2' && $config['sy_usertype_1'] == '1') {
                $my_down = $db->select_all("down_resume", "`comid`='" . $_COOKIE['uid'] . "'", "uid");
            }
            if ($paramer['top']) {
                $uids = $m_name = array();
                foreach ($ulist as $k => $v) {
                    $uids[] = $v[uid];
                }
                $member = $db->select_all($db_config[def] . "member", "`uid` in(" . @implode(',', $uids) . ")", "uid,username");
                foreach ($member as $val) {
                    $m_name[$val[uid]] = $val['username'];
                }
            }
            foreach ($ulist as $key => $value) {
                $uid[] = $value['uid'];
                $eid[] = $value['id'];
            }
            $eids = @implode(',', $eid);
            $uids = @implode(',', $uid);
            foreach ($ulist as $k => $v) {
                $time = time() - $v['lastupdate'];
                if ($time > 86400 && $time < 259300) {
                    $ulist[$k]['time'] = ceil($time / 86400) . "天前";
                } elseif ($time > 3600 && $time < 86400) {
                    $ulist[$k]['time'] = ceil($time / 3600) . "小时前";
                } elseif ($time > 60 && $time < 3600) {
                    $ulist[$k]['time'] = ceil($time / 60) . "分钟前";
                } elseif ($time < 60) {
                    $ulist[$k]['time'] = "刚刚";
                } else {
                    $ulist[$k]['time'] = date("Y-m-d", $v['lastupdate']);
                }
                if ($v['photo'] == '') {
                    $ulist[$k]['photo'] = $v['photo'] = $config['sy_member_icon'];
                } else {
                    $ulist[$k]['ispic'] = 1;
                }
                if ($config['sy_usertype_1'] == '1' && $v['photo']) {
                    if (!empty($my_down)) {
                        foreach ($my_down as $m_k => $m_v) {
                            $my_down_uid[] = $m_v['uid'];
                        }
                        if (in_array($v['uid'], $my_down_uid) == false) {
                            $ulist[$k]['photo'] = './' . $config['sy_member_icon'];
                        }
                    } else {
                        $ulist[$k]['photo'] = './' . $config['sy_member_icon'];
                    }
                }
                if ($config["user_name"] == 3) {
                    $ulist[$k]["username_n"] = "NO." . $v["id"];
                } elseif ($config["user_name"] == 2) {
                    if ($userclass_name[$v['sex']] == '男') {
                        $ulist[$k]["username_n"] = mb_substr($v["username"], 0, 1, 'GBK') . "先生";
                    } else {
                        $ulist[$k]["username_n"] = mb_substr($v["username"], 0, 1, 'GBK') . "女士";
                    }
                } else {
                    $ulist[$k]["username_n"] = $v["username"];
                }
                if ($v[birthday]) {
                    $a = date('Y', strtotime($ulist[$k]['birthday']));
                    $ulist[$k]['age'] = date("Y") - $a;
                } else {
                    $ulist[$k]['age'] = "保密";
                }
                $ulist[$k]['sex_n'] = $userclass_name[$v['sex']];
                $ulist[$k]['edu_n'] = $userclass_name[$v['edu']];
                $ulist[$k]['exp_n'] = $userclass_name[$v['exp']];
                $ulist[$k]['job_city_one'] = $city_name[$v['provinceid']];
                $ulist[$k]['job_city_two'] = $city_name[$v['cityid']];
                $ulist[$k]['job_city_three'] = $city_name[$v['three_cityid']];
                $ulist[$k]['salary_n'] = $userclass_name[$v['salary']];
                $ulist[$k]['report_n'] = $userclass_name[$v['report']];
                $ulist[$k]['type_n'] = $userclass_name[$v['type']];
                $ulist[$k]['lastupdate'] = date("Y-m-d", $v['lastupdate']);
                $ulist[$k]['user_url'] = Url("resume", array("c" => "show", "id" => $v['id']), "1");
                $ulist[$k]["hy_info"] = $industry_name[$v['hy']];
                if ($paramer['top']) {
                    $ulist[$k]['m_name'] = $m_name[$v['uid']];
                    $ulist[$k]['user_url'] = Url("ask", array("c" => "friend", "uid" => $v['uid']));
                }
                $job_classid = @explode(",", $v['job_classid']);
                if (is_array($job_classid)) {
                    foreach ($job_classid as $val) {
                        $jobname[] = $job_name[$val];
                    }
                }
                $ulist[$k]['job_post'] = @implode(",", $jobname);
                if ($paramer['post_len']) {
                    $postname[$k] = @implode(",", $jobname);
                    $ulist[$k]['job_post_n'] = mb_substr($postname[$k], 0, $paramer[post_len], "GBK");
                }
                if ($paramer['keyword']) {
                    $ulist[$k]['username'] = str_replace($paramer['keyword'], "<font color=#FF6600 >" . $paramer['keyword'] . "</font>", $v['username']);
                    $ulist[$k]['job_post'] = str_replace($paramer['keyword'], "<font color=#FF6600 >" . $paramer['keyword'] . "</font>", $ulist[$k]['job_post']);
                    $ulist[$k]['job_post_n'] = str_replace($paramer['keyword'], "<font color=#FF6600 >" . $paramer['keyword'] . "</font>", $ulist[$k]['job_post_n']);
                    $ulist[$k]['job_city_one'] = str_replace($paramer['keyword'], "<font color=#FF6600 >" . $paramer['keyword'] . "</font>", $city_name[$v['provinceid']]);
                    $ulist[$k]['job_city_two'] = str_replace($paramer['keyword'], "<font color=#FF6600 >" . $paramer['keyword'] . "</font>", $city_name[$v['cityid']]);
                }
                $jobname = array();
            }
            if ($paramer['keyword'] != "" && !empty($ulist)) {
                addkeywords('5', $paramer['keyword']);
            }
        }
        global $db, $db_config, $config;
        include PLUS_PATH . '/group.cache.php';
        $indexnews = array();
        $rs = null;
        $nids = null;
        eval('$paramer=array("rec"=>"1","limit"=>"8","pic"=>"1","t_len"=>"18","d_len"=>"24","type"=>"\'t\'","urlstatic"=>"1","item"=>"\'indexnews\'","name"=>"\'newlist2\'","nocache"=>"")
;');
        $ParamerArr = GetSmarty($paramer, $_GET, $_smarty_tpl);
        $paramer = $ParamerArr['arr'];
        $Purl = $ParamerArr['purl'];
        if ($paramer[cache]) {
            $Purl = "{{page}}.html";
        }
        global $ModuleName;
        if (!$Purl["m"]) {
            $Purl["m"] = $ModuleName;
        }
        $where = 1;
        if ($config['did']) {
            $where .= " and `did`='" . $config['did'] . "'";
        }
        include PLUS_PATH . "/group.cache.php";
        if (is_array($paramer)) {
            if ($paramer['nid'] != "") {
                $where .= " AND `nid` in ({$paramer['nid']})";
                $nids = @explode(',', $paramer['nid']);
                $paramer['nid'] = $paramer['nid'];
            } else {
                if ($paramer['rec'] != "") {
                    $nids = array();
                    if (is_array($group_rec)) {
                        foreach ($group_rec as $key => $value) {
                            if ($key <= 2) {
                                $nids[] = $value;
                            }
                        }
                        $paramer[nid] = @implode(',', $nids);
                    }
                }
            }
            if ($paramer['nid']) {
                $nid_s = @explode(',', $paramer[nid]);
                foreach ($nid_s as $v) {
                    if ($group_type[$v]) {
                        $paramer[nid] = $paramer[nid] . "," . @implode(',', $group_type[$v]);
                    }
                }
            }
            if ($paramer['type']) {
                $type = str_replace("\"", "", $paramer[type]);
                $type_arr = @explode(",", $type);
                if (is_array($type_arr) && !empty($type_arr)) {
                    foreach ($type_arr as $key => $value) {
                        $where .= " AND FIND_IN_SET('" . $value . "',`describe`)";
                        if (count($nids) > 0) {
                            $picwhere .= " AND FIND_IN_SET('" . $value . "',`describe`)";
                        }
                    }
                }
            }
            if ($paramer['pic'] != "") {
                $where .= " AND `newsphoto`<>''";
            }
            if ($paramer['order'] != "") {
                $order = str_replace("'", "", $paramer['order']);
                $where .= " ORDER BY {$order}";
            } else {
                $where .= " ORDER BY `datetime`";
            }
            if ($paramer['sort']) {
                $where .= " " . $paramer[sort];
            } else {
                $where .= " DESC";
            }
            if (intval($paramer['limit']) > 0) {
                $limit = intval($paramer['limit']);
                $limit = " limit " . $limit;
            }
            if ($paramer['ispage']) {
                $limit = PageNav($paramer, $_GET, "news_base", $where, $Purl, "", "5", $_smarty_tpl);
            }
        }
        if (!intval($paramer['ispage']) && count($nids) > 0) {
            $where = " and nid IN ({$paramer['nid']})";
            if ($paramer['pic']) {
                if (!$paramer['piclimit']) {
                    $piclimit = 1;
                } else {
                    $piclimit = $paramer['piclimit'];
                }
                $db->query("set @f=0,@n=0");
                $query = $db->query("select * from (select id,title,color,datetime,description,newsphoto,@n:=if(@f=nid,@n:=@n+1,1) as aid,@f:=nid as nid from {$db_config['def']}news_base  WHERE `nid` IN ({$paramer['nid']}) AND `newsphoto` <>''  order by nid asc,datetime desc) a where aid <=" . $piclimit);
                while ($rs = $db->fetch_array($query)) {
                    if (intval($paramer[t_len]) > 0) {
                        $len = intval($paramer[t_len]);
                        if ($rs[color]) {
                            $rs[title] = "<font color='" . $rs[color] . "'>" . mb_substr($rs[title], 0, $len, "GBK") . "</font>";
                        } else {
                            $rs[title] = mb_substr($rs[title], 0, $len, "GBK");
                        }
                    }
                    if (intval($paramer[d_len]) > 0) {
                        $len = intval($paramer[d_len]);
                        $rs[description] = mb_substr($rs[description], 0, $len, "GBK");
                    }
                    $rs['name'] = $group_name[$rs['nid']];
                    if ($config[sy_news_rewrite] == "2") {
                        $rs["url"] = $config['sy_weburl'] . "/news/" . date("Ymd", $rs["datetime"]) . "/" . $rs[id] . ".html";
                    } else {
                        $rs["url"] = Url("article", array("c" => "show", "id" => $rs[id]), "1");
                    }
                    $rs[time] = date("Y-m-d", $rs[datetime]);
                    $rs['datetime'] = date("m-d", $rs[datetime]);
                    $indexnews[$rs['nid']]['pic'][] = $rs;
                }
            }
            $db->query("set @f=0,@n=0");
            $query = $db->query("select * from (select id,title,datetime,color,description,newsphoto,@n:=if(@f=nid,@n:=@n+1,1) as aid,@f:=nid as nid from {$db_config['def']}news_base  WHERE `nid` IN ({$paramer['nid']}) order by nid asc,datetime desc) a where aid <={$paramer['limit']}");
            while ($rs = $db->fetch_array($query)) {
                if (intval($paramer[t_len]) > 0) {
                    $len = intval($paramer[t_len]);
                    if ($rs[color]) {
                        $rs[title] = "<font color='" . $rs[color] . "'>" . mb_substr($rs[title], 0, $len, "GBK") . "</font>";
                    } else {
                        $rs[title] = mb_substr($rs[title], 0, $len, "GBK");
                    }
                }
                if (intval($paramer[d_len]) > 0) {
                    $len = intval($paramer[d_len]);
                    $rs[description] = mb_substr($rs[description], 0, $len, "GBK");
                }
                $rs['name'] = $group_name[$rs['nid']];
                if ($config[sy_news_rewrite] == "2") {
                    $rs["url"] = $config['sy_weburl'] . "/news/" . date("Ymd", $rs["datetime"]) . "/" . $rs[id] . ".html";
                } else {
                    $rs["url"] = Url("article", array("c" => "show", "id" => $rs[id]), "1");
                }
                $rs[time] = date("Y-m-d", $rs[datetime]);
                $rs[datetime] = date("m-d", $rs[datetime]);
                $indexnews[$rs['nid']]['arclist'][] = $rs;
            }
        } else {
            $query = $db->query("SELECT * FROM `{$db_config['def']}news_base` WHERE " . $where . $limit);
            while ($rs = $db->fetch_array($query)) {
                if (intval($paramer[t_len]) > 0) {
                    $len = intval($paramer[t_len]);
                    $rs[title] = mb_substr($rs[title], 0, $len, "GBK");
                }
                if (intval($paramer[d_len]) > 0) {
                    $len = intval($paramer[d_len]);
                    $rs[description] = mb_substr($rs[description], 0, $len, "GBK");
                }
                $rs['name'] = $group_name[$rs['nid']];
                if ($config[sy_news_rewrite] == "2") {
                    $rs["url"] = $config['sy_weburl'] . "/news/" . date("Ymd", $rs["datetime"]) . "/" . $rs[id] . ".html";
                } else {
                    $rs["url"] = Url("article", array("c" => "show", "id" => $rs[id]), "1");
                }
                $rs[time] = date("Y-m-d", $rs[datetime]);
                $rs[datetime] = date("m-d", $rs[datetime]);
                $indexnews[] = $rs;
            }
        }
        ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title><?php 
        echo $_smarty_tpl->tpl_vars['title']->value;
        ?>
</title>
<meta name="keywords" content="<?php 
        echo $_smarty_tpl->tpl_vars['keywords']->value;
        ?>
" />
<meta name="description" content="<?php 
        echo $_smarty_tpl->tpl_vars['description']->value;
        ?>
" />
<link rel="stylesheet" href="<?php 
        echo $_smarty_tpl->tpl_vars['style']->value;
        ?>
/style/css.css" type="text/css" />
<!--[if IE 6]>
<?php 
        echo '<script';
        ?>
 src="<?php 
        echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];
        ?>
/js/png.js"><?php 
        echo '</script';
        ?>
>
<?php 
        echo '<script';
        ?>
>
DD_belatedPNG.fix('.png,.pagination li a');
<?php 
        echo '</script';
        ?>
>
<![endif]-->
<?php 
        echo '<script';
        ?>
 src="<?php 
        echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];
        ?>
/js/jquery-1.8.0.min.js" language="javascript"><?php 
        echo '</script';
        ?>
>
<?php 
        echo '<script';
        ?>
 src="<?php 
        echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];
        ?>
/js/layer/layer.min.js" language="javascript"><?php 
        echo '</script';
        ?>
>
<?php 
        echo '<script';
        ?>
 src="<?php 
        echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];
        ?>
/js/lazyload.min.js" language="javascript"><?php 
        echo '</script';
        ?>
>
<?php 
        echo '<script';
        ?>
 src="<?php 
        echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];
        ?>
/js/public.js" language="javascript"><?php 
        echo '</script';
        ?>
>
<?php 
        echo '<script';
        ?>
 src="<?php 
        echo $_smarty_tpl->tpl_vars['style']->value;
        ?>
/js/reg_ajax.js" type="text/javascript"><?php 
        echo '</script';
        ?>
>
<link rel="stylesheet" href="<?php 
        echo $_smarty_tpl->tpl_vars['style']->value;
        ?>
/style/yun_index.css" type="text/css" />
<?php 
        echo '<script';
        ?>
 src="<?php 
        echo $_smarty_tpl->tpl_vars['style']->value;
        ?>
/js/index.js" language="javascript"><?php 
        echo '</script';
        ?>
>
<?php 
        echo '<script';
        ?>
 src="<?php 
        echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];
        ?>
/js/search.js" type="text/javascript"><?php 
        echo '</script';
        ?>
>
<?php 
        echo '<script';
        ?>
 src="<?php 
        echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];
        ?>
/js/slides.jquery.js" type="text/javascript"><?php 
        echo '</script';
        ?>
>
</head>
<body class="index_body_box">
<?php 
        echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tplstyle']->value . "/header.htm", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
        ?>
 
<?php 
        echo '<script';
        ?>
>
    $(document).ready(function(){
        $("#slides").slides({preload:true,preloadImage:'<?php 
        echo $_smarty_tpl->tpl_vars['style']->value;
        ?>
/images/loading.gif',play:5000,pause:2500,hoverPause:true});
        $('.index_header_seach_find').delegate('#search_name','click',function(){$(this).next().show();});
		$("img.lazy").lazyload();
    });
<?php 
        echo '</script';
        ?>
> 
<!--content  start-->
<div class="yun_content">
  <div class="index_logoin_box">
    <div id="index_login">
      <div class="index_logoin">
        <input type="hidden" value="index" name="path" id="path">
        <input type="hidden" value="1" name="usertype" id="usertype">
        <div class="index_logoin_h1">用户登录 </div>
        <div class="index_logoin_t">
          <div class="index_logoin_re">
            <input type="text" id="username" name="username" placeholder="请输入用户名" class="index_logoin_inp" value="">
            <div class="index_logoin_msg" id="show_name" style="display:none">
              <div class="index_logoin_msg_tx">请填写用户名</div>
              <div class="index_logoin_msg_icon"></div>
            </div>
          </div>
          <div class="index_logoin_re_m">
            <input type="password" placeholder="请输入您的密码" class="index_logoin_inp" name="password" value="" id="password">
            <div class="index_logoin_msg" style="display:none" id="show_pass">
              <div class="index_logoin_msg_tx">请填写密码</div>
              <div class="index_logoin_msg_icon"></div>
            </div>
          </div>
        </div>
        <div class="index_logoin_r">
          <input type="submit" value="" class="index_logoin_bth2" onclick="check_login('<?php 
        echo smarty_function_url(array('m' => 'login', 'c' => 'loginsave'), $_smarty_tpl);
        ?>
');" >
        </div>
        <ul class="index_logoin_cont">
          <li>
            <input type="checkbox" class="index_logoin_check" value="1" name="loginname">
            <em class="index_l_jz">记住登录状态</em><a href="<?php 
        echo smarty_function_url(array('m' => 'forgetpw'), $_smarty_tpl);
        ?>
">忘记密码?</a></li>
          <li class=""> <a id="reg_url_2" href="<?php 
        echo smarty_function_url(array('m' => 'register', 'usertype' => 2), $_smarty_tpl);
        ?>
" class="index_logoin_submit2">招聘者注册</a> <a id="reg_url_1" href="<?php 
        echo smarty_function_url(array('m' => 'register', 'usertype' => 1), $_smarty_tpl);
        ?>
" class="index_logoin_submit2">求职者注册</a> </li>
          <?php 
        if ($_smarty_tpl->tpl_vars['config']->value['sy_qqlogin'] == 1 || $_smarty_tpl->tpl_vars['config']->value['sy_sinalogin'] == 1 || $_smarty_tpl->tpl_vars['config']->value['sy_wxlogin'] == 1) {
            ?>
          <li class="index_logoin_Coop" style="margin-top:12px;"> <em style="float:left">快捷登录:</em> <?php 
            if ($_smarty_tpl->tpl_vars['config']->value['sy_qqlogin'] == 1) {
                ?>
 <img src="<?php 
                echo $_smarty_tpl->tpl_vars['style']->value;
                ?>
/images/yun_qq.png" class="png"><a href="<?php 
                echo smarty_function_url(array('m' => 'qqconnect', 'c' => 'qqlogin'), $_smarty_tpl);
                ?>
">QQ登录</a> <?php 
            }
            ?>
            <?php 
            if ($_smarty_tpl->tpl_vars['config']->value['sy_sinalogin'] == 1) {
                ?>
 <img src="<?php 
                echo $_smarty_tpl->tpl_vars['style']->value;
                ?>
/images/yun_sina.png" class="png"><a href="<?php 
                echo smarty_function_url(array('m' => 'sinaconnect'), $_smarty_tpl);
                ?>
">新浪</a> <?php 
            }
            ?>
            <?php 
            if ($_smarty_tpl->tpl_vars['config']->value['sy_wxlogin'] == 1) {
                ?>
 <img src="<?php 
                echo $_smarty_tpl->tpl_vars['style']->value;
                ?>
/images/yun_wx.png" class="png"><a href="<?php 
                echo smarty_function_url(array('m' => 'wxconnect'), $_smarty_tpl);
                ?>
">微信</a> <?php 
            }
            ?>
 </li>
          <?php 
        }
        ?>
        </ul>
      </div>
    </div>
  </div>
<?php 
        echo '<script';
        ?>
>
$(document).ready(function(){
	$.post("index.php?m=ajax&c=DefaultLoginIndex",{},function(data){
		$("#index_login").html(data);
	});
});
<?php 
        echo '</script';
        ?>
> 
  <div class="cont_Projector">
    <div class="Projector">
      <div class="Projector_img">
        <div id="slides" class="s_lb">
          <div class="slides_container"> <?php 
        $_smarty_tpl->tpl_vars["lunbo"] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars["lunbo"]->_loop = false;
        $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable();
        $AdArr = array();
        $paramer = array();
        include PLUS_PATH . '/pimg_cache.php';
        $add_arr = $ad_label[3];
        if (is_array($add_arr) && !empty($add_arr)) {
            $i = 0;
            $limit = 0;
            $length = 0;
            foreach ($add_arr as $key => $value) {
                if (($value['did'] == $config['did'] || $value['did'] == '0') && $value['start'] < time() && $value['end'] > time()) {
                    if ($i > 0 && $limit == $i) {
                        break;
                    }
                    if ($length > 0) {
                        $value['name'] = mb_substr($value['name'], 0, $length);
                    }
                    if ($paramer['type'] != "") {
                        if ($paramer['type'] == $value['type']) {
                            $AdArr[] = $value;
                        }
                    } else {
                        $AdArr[] = $value;
                    }
                    $i++;
                }
            }
        }
        $AdArr = $AdArr;
        if (!is_array($AdArr) && !is_object($AdArr)) {
            settype($AdArr, 'array');
        }
        foreach ($AdArr as $_smarty_tpl->tpl_vars["lunbo"]->key => $_smarty_tpl->tpl_vars["lunbo"]->value) {
            $_smarty_tpl->tpl_vars["lunbo"]->_loop = true;
            $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars["lunbo"]->key;
            ?>
            <div class="slide"> <?php 
            echo $_smarty_tpl->tpl_vars['lunbo']->value['html'];
            ?>
 </div>
            <?php 
        }
        ?>
 </div>
        </div>
      </div>
      <div class="yun_Announcement">
        <ul>
          <?php 
        $_smarty_tpl->tpl_vars['gonggao'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['gonggao']->_loop = false;
        $gonggao = $gonggao;
        if (!is_array($gonggao) && !is_object($gonggao)) {
            settype($gonggao, 'array');
        }
        foreach ($gonggao as $_smarty_tpl->tpl_vars['gonggao']->key => $_smarty_tpl->tpl_vars['gonggao']->value) {
            $_smarty_tpl->tpl_vars['gonggao']->_loop = true;
            ?>
          <li><a href="<?php 
            echo $_smarty_tpl->tpl_vars['gonggao']->value['url'];
            ?>
" target="_blank"><?php 
            echo $_smarty_tpl->tpl_vars['gonggao']->value['title_n'];
            ?>
</a></li>
          <?php 
        }
        ?>
        </ul>
      </div>
      <?php 
        echo '<script';
        ?>
>marquee("2000",".yun_Announcement ul");<?php 
        echo '</script';
        ?>
> 
    </div>
  </div>
  <div class="yuin_index_r">
    <div class="yuin_index_r_h1">
      <ul class="yun_index_h1_list">
        <li class="yun_index_h1_cur"><span>最新资讯</span>&#160;</li>
        <li><span>网站公告</span>&#160;</li>
        <li style="border:none;" ><span>招聘会</span>&#160;</li>
      </ul>
    </div>
    <div class="yun_index_cont" style="display:block">
      <ul class="yun_in_news">
        <?php 
        $_smarty_tpl->tpl_vars['alist'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['alist']->_loop = false;
        $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable();
        $alist = $alist;
        if (!is_array($alist) && !is_object($alist)) {
            settype($alist, 'array');
        }
        foreach ($alist as $_smarty_tpl->tpl_vars['alist']->key => $_smarty_tpl->tpl_vars['alist']->value) {
            $_smarty_tpl->tpl_vars['alist']->_loop = true;
            $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['alist']->key;
            ?>
        <li><span <?php 
            if ($_smarty_tpl->tpl_vars['key']->value < 3) {
                ?>
class="yun_in_news_span yun_in_news_span_cur"<?php 
            } else {
                ?>
class="yun_in_news_span "<?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->tpl_vars['key']->value + 1;
            ?>
</span><a href="<?php 
            echo $_smarty_tpl->tpl_vars['alist']->value['url'];
            ?>
" class="yun_in_news_a" target="_blank"><?php 
            echo $_smarty_tpl->tpl_vars['alist']->value['title'];
            ?>
</a></li>
        <?php 
        }
        ?>
      </ul>
    </div>
    <div class="yun_index_cont" style="display:none">
      <ul class="index_latest_news">
        <?php 
        $_smarty_tpl->tpl_vars['gonggao1'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['gonggao1']->_loop = false;
        $gonggao1 = $gonggao1;
        if (!is_array($gonggao1) && !is_object($gonggao1)) {
            settype($gonggao1, 'array');
        }
        foreach ($gonggao1 as $_smarty_tpl->tpl_vars['gonggao1']->key => $_smarty_tpl->tpl_vars['gonggao1']->value) {
            $_smarty_tpl->tpl_vars['gonggao1']->_loop = true;
            ?>
        <li><a href="<?php 
            echo $_smarty_tpl->tpl_vars['gonggao1']->value['url'];
            ?>
" target="_blank"><?php 
            echo $_smarty_tpl->tpl_vars['gonggao1']->value['title_n'];
            ?>
</a></li>
        <?php 
        }
        ?>
      </ul>
    </div>
    <div class="yun_index_cont" style="display:none">
      <ul class="index_latest_news">
        <?php 
        $_smarty_tpl->tpl_vars['flist'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['flist']->_loop = false;
        $flist = $flist;
        if (!is_array($flist) && !is_object($flist)) {
            settype($flist, 'array');
        }
        foreach ($flist as $_smarty_tpl->tpl_vars['flist']->key => $_smarty_tpl->tpl_vars['flist']->value) {
            $_smarty_tpl->tpl_vars['flist']->_loop = true;
            ?>
        <li><a href="<?php 
            echo $_smarty_tpl->tpl_vars['flist']->value['url'];
            ?>
" target="_blank"><?php 
            echo $_smarty_tpl->tpl_vars['flist']->value['title'];
            ?>
</a></li>
        <?php 
        }
        ?>
      </ul>
    </div>
  </div>
  <div class="clear"></div>
  <div class="index_banner_top"><?php 
        $_smarty_tpl->tpl_vars['adlists'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['adlists']->_loop = false;
        $AdArr = array();
        $paramer = array();
        include PLUS_PATH . '/pimg_cache.php';
        $add_arr = $ad_label[6];
        if (is_array($add_arr) && !empty($add_arr)) {
            $i = 0;
            $limit = 1;
            $length = 0;
            foreach ($add_arr as $key => $value) {
                if (($value['did'] == $config['did'] || $value['did'] == '0') && $value['start'] < time() && $value['end'] > time()) {
                    if ($i > 0 && $limit == $i) {
                        break;
                    }
                    if ($length > 0) {
                        $value['name'] = mb_substr($value['name'], 0, $length);
                    }
                    if ($paramer['type'] != "") {
                        if ($paramer['type'] == $value['type']) {
                            $AdArr[] = $value;
                        }
                    } else {
                        $AdArr[] = $value;
                    }
                    $i++;
                }
            }
        }
        $AdArr = $AdArr;
        if (!is_array($AdArr) && !is_object($AdArr)) {
            settype($AdArr, 'array');
        }
        foreach ($AdArr as $_smarty_tpl->tpl_vars['adlists']->key => $_smarty_tpl->tpl_vars['adlists']->value) {
            $_smarty_tpl->tpl_vars['adlists']->_loop = true;
            echo $_smarty_tpl->tpl_vars['adlists']->value['html'];
        }
        ?>
</div>
  <div class="clear"></div>
  <div class="index_Emergency_job">
    <div class="Emergency_index_cont">
      <div class="Latest_talent_h1 "><b >紧急招聘<span class="index_Emergency_span">Urgent Jobs</span></b><a href="<?php 
        echo smarty_function_url(array('m' => 'job', 'c' => 'search', 'urgent' => 1), $_smarty_tpl);
        ?>
" class="index_more" target="_blank">更多>></a></div>
      <ul>
        <?php 
        $_smarty_tpl->tpl_vars['urgentjoblist'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['urgentjoblist']->_loop = false;
        global $db, $db_config, $config;
        eval('$paramer=array("limit"=>"24","urgent"=>"1","comlen"=>"18","joblen"=>"11","jobnum"=>"1","item"=>"\'urgentjoblist\'","nocache"=>"")
;');
        $ParamerArr = GetSmarty($paramer, $_GET, $_smarty_tpl);
        $paramer = $ParamerArr[arr];
        extract($paramer);
        $Purl = $ParamerArr[purl];
        if ($config['sy_web_site'] == "1") {
            if ($config['cityid'] > 0 && $config['cityid'] != "") {
                $cityid = $config['cityid'];
            }
            if ($config['three_cityid'] > 0 && $config['three_cityid'] != "") {
                $three_cityid = $config['three_cityid'];
            }
            if ($config['hyclass'] > 0 && $config['hyclass'] != "") {
                $hy = $config['hyclass'];
            }
        }
        $time = time();
        $where = "`sdate`<{$time} AND `edate`>{$time} and  `state`='1' and `r_status`<>'2' and `status`<>'1'";
        if ($paramer[urgent]) {
            $where .= " AND `urgent_time`>{$time}";
        }
        if ($hy) {
            $where .= ' AND `hy`=' . $hy;
        }
        if ($cityid) {
            $where .= ' AND `cityid`=' . $cityid;
        }
        if ($three_cityid) {
            $where .= " AND `three_cityid`={$three_cityid}";
        }
        if ($paramer[rec]) {
            $where .= " AND `rec_time`>{$time}";
        }
        if ($paramer['limit']) {
            $limit = " limit " . $paramer['limit'];
        }
        include PLUS_PATH . "/city.cache.php";
        include PLUS_PATH . "/comrating.cache.php";
        $query = $db->query("select count(*) as num,uid,provinceid,cityid,three_cityid,lastupdate from {$db_config['def']}company_job where  {$where} GROUP BY uid ORDER BY lastupdate desc {$limit}");
        $uids = array();
        $ComList = array();
        while ($rs = $db->fetch_array($query)) {
            if ($citylen) {
                $one_city[$rs['uid']] = mb_substr($city_name[$rs['cityid']], 0, $citylen);
                $two_city[$rs['uid']] = mb_substr($city_name[$rs['three_cityid']], 0, $citylen);
            } else {
                $one_city[$rs['uid']] = $city_name[$rs['cityid']];
                $two_city[$rs['uid']] = $city_name[$rs['three_cityid']];
            }
            if ($one_city[$rs['uid']] == '') {
                $one_city[$rs['uid']] = $city_name[$rs['provinceid']];
            }
            $lasttime[$rs['uid']] = date('Y-m-d', $rs['lastupdate']);
            $uids[] = $rs['uid'];
        }
        if (!empty($uids)) {
            $comids = @implode(',', $uids);
            $joblist = $db->select_all("company_job", "{$where} AND `uid` IN ({$comids}) ORDER BY lastupdate desc");
            $job_list = array();
            foreach ($joblist as $value) {
                if (!$jobnum || count($job_list[$value['uid']]) < $jobnum) {
                    if ($joblen) {
                        $value['name_n'] = mb_substr($value['name'], 0, $joblen, 'gbk');
                    }
                    $value['url'] = Url("job", array("c" => "comapply", "id" => $value['id']), "1");
                    $job_list[$value['uid']][] = $value;
                }
                $comname[$value['uid']] = $value['com_name'];
            }
            $statis = $db->select_all("company_statis", "`uid` in (" . @implode(",", $uids) . ")", "`uid`,`rating`");
            foreach ($uids as $key => $value) {
                foreach ($statis as $v) {
                    foreach ($comrat as $val) {
                        if ($value == $v[uid] && $val[id] == $v[rating]) {
                            $ComList[$key][color] = $val[com_color];
                            $ComList[$key][ratlogo] = $val[com_pic];
                        }
                    }
                }
                $ComList[$key]['curl'] = Url("company", array("c" => "show", "id" => $value));
                $ComList[$key]['uid'] = $value;
                $ComList[$key]['name'] = $comname[$value];
                $ComList[$key]['one_city'] = $one_city[$value];
                $ComList[$key]['two_city'] = $two_city[$value];
                $ComList[$key]['lasttime'] = $lasttime[$value];
                if ($comlen) {
                    $ComList[$key]['name_n'] = mb_substr($comname[$value], 0, $comlen, 'gbk');
                }
                $ComList[$key]['joblist'] = $job_list[$value];
            }
        }
        $ComList = $ComList;
        if (!is_array($ComList) && !is_object($ComList)) {
            settype($ComList, 'array');
        }
        foreach ($ComList as $_smarty_tpl->tpl_vars['urgentjoblist']->key => $_smarty_tpl->tpl_vars['urgentjoblist']->value) {
            $_smarty_tpl->tpl_vars['urgentjoblist']->_loop = true;
            ?>
        <li class="Emergency_list"> <a href="<?php 
            echo $_smarty_tpl->tpl_vars['urgentjoblist']->value['curl'];
            ?>
" class="index_Emergency_com_name" target="_blank"><?php 
            echo $_smarty_tpl->tpl_vars['urgentjoblist']->value['name_n'];
            ?>
</a> <?php 
            $_smarty_tpl->tpl_vars['urgentitem'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['urgentitem']->_loop = false;
            $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['urgentjoblist']->value['joblist'];
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['urgentitem']->key => $_smarty_tpl->tpl_vars['urgentitem']->value) {
                $_smarty_tpl->tpl_vars['urgentitem']->_loop = true;
                $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['urgentitem']->key;
                ?>
 <a href="<?php 
                echo $_smarty_tpl->tpl_vars['urgentitem']->value['url'];
                ?>
" target="_blank" class="index_Emergency_post_name"><?php 
                echo $_smarty_tpl->tpl_vars['urgentitem']->value['name_n'];
                ?>
</a> <?php 
            }
            ?>
 </li>
        <?php 
        }
        ?>
      </ul>
    </div>
    <div class="index_buildPic">
      <div class="index_buildPic_cont">
        <ul>
          <?php 
        $_smarty_tpl->tpl_vars['adlist_39'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['adlist_39']->_loop = false;
        $AdArr = array();
        $paramer = array();
        include PLUS_PATH . '/pimg_cache.php';
        $add_arr = $ad_label[39];
        if (is_array($add_arr) && !empty($add_arr)) {
            $i = 0;
            $limit = 10;
            $length = 0;
            foreach ($add_arr as $key => $value) {
                if (($value['did'] == $config['did'] || $value['did'] == '0') && $value['start'] < time() && $value['end'] > time()) {
                    if ($i > 0 && $limit == $i) {
                        break;
                    }
                    if ($length > 0) {
                        $value['name'] = mb_substr($value['name'], 0, $length);
                    }
                    if ($paramer['type'] != "") {
                        if ($paramer['type'] == $value['type']) {
                            $AdArr[] = $value;
                        }
                    } else {
                        $AdArr[] = $value;
                    }
                    $i++;
                }
            }
        }
        $AdArr = $AdArr;
        if (!is_array($AdArr) && !is_object($AdArr)) {
            settype($AdArr, 'array');
        }
        foreach ($AdArr as $_smarty_tpl->tpl_vars['adlist_39']->key => $_smarty_tpl->tpl_vars['adlist_39']->value) {
            $_smarty_tpl->tpl_vars['adlist_39']->_loop = true;
            ?>
          <li> <?php 
            echo $_smarty_tpl->tpl_vars['adlist_39']->value['html'];
            ?>
</li>
          <?php 
        }
        ?>
        </ul>
      </div>
    </div>
  </div>
  <div class="w980">
    <div class="Famous_recruitment">
      <div class="Latest_talent_h1 "><b >名企招聘<span class="index_Emergency_span">Famous Enterprise </span></b></div>
      <div class="Famous_recruitment_cont">
        <div class="index_left15560">
          <div id="mainids"> <?php 
        $_smarty_tpl->tpl_vars['hotjoblist'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['hotjoblist']->_loop = false;
        $hotjoblist = $hotjoblist;
        if (!is_array($hotjoblist) && !is_object($hotjoblist)) {
            settype($hotjoblist, 'array');
        }
        foreach ($hotjoblist as $_smarty_tpl->tpl_vars['hotjoblist']->key => $_smarty_tpl->tpl_vars['hotjoblist']->value) {
            $_smarty_tpl->tpl_vars['hotjoblist']->_loop = true;
            ?>
            <div class="tlogo">
              <ul>
                <li onmouseover="showDiv2(this)" onmouseout="showDiv2(this)"><a href="<?php 
            echo $_smarty_tpl->tpl_vars['hotjoblist']->value['url'];
            ?>
" target="_blank"><img width="185" height="75" border="1" src="<?php 
            echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];
            ?>
/<?php 
            echo $_smarty_tpl->tpl_vars['hotjoblist']->value['hot_pic'];
            ?>
" class="on"/></a>
                  <div class="show">
                    <div class="area"><?php 
            echo $_smarty_tpl->tpl_vars['hotjoblist']->value['job'];
            ?>
</div>
                  </div>
                </li>
              </ul>
            </div>
            <?php 
        }
        ?>
 </div>
        </div>
      </div>
    </div>
  </div>
  <div class="index_Emergency_job">
    <div class="Latest_talent_h1 "><b >推荐职位<span class="index_Emergency_span">Recommend Jobs</span></b><a href="<?php 
        echo smarty_function_url(array('m' => 'job', 'c' => 'search', 'rec' => 1), $_smarty_tpl);
        ?>
" class="index_more" target="_blank">更多>></a></div>
    <div class="Recommended_jobs_cont">
      <ul>
        <?php 
        $_smarty_tpl->tpl_vars['job_list'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['job_list']->_loop = false;
        $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable();
        global $db, $db_config, $config;
        eval('$paramer=array("limit"=>"30","rec"=>"1","comlen"=>"12","joblen"=>"8","jobnum"=>"1","item"=>"\'job_list\'","key"=>"\'key\'","name"=>"\'comjoblist1\'","nocache"=>"")
;');
        $ParamerArr = GetSmarty($paramer, $_GET, $_smarty_tpl);
        $paramer = $ParamerArr[arr];
        extract($paramer);
        $Purl = $ParamerArr[purl];
        if ($config['sy_web_site'] == "1") {
            if ($config['cityid'] > 0 && $config['cityid'] != "") {
                $cityid = $config['cityid'];
            }
            if ($config['three_cityid'] > 0 && $config['three_cityid'] != "") {
                $three_cityid = $config['three_cityid'];
            }
            if ($config['hyclass'] > 0 && $config['hyclass'] != "") {
                $hy = $config['hyclass'];
            }
        }
        $time = time();
        $where = "`sdate`<{$time} AND `edate`>{$time} and  `state`='1' and `r_status`<>'2' and `status`<>'1'";
        if ($paramer[urgent]) {
            $where .= " AND `urgent_time`>{$time}";
        }
        if ($hy) {
            $where .= ' AND `hy`=' . $hy;
        }
        if ($cityid) {
            $where .= ' AND `cityid`=' . $cityid;
        }
        if ($three_cityid) {
            $where .= " AND `three_cityid`={$three_cityid}";
        }
        if ($paramer[rec]) {
            $where .= " AND `rec_time`>{$time}";
        }
        if ($paramer['limit']) {
            $limit = " limit " . $paramer['limit'];
        }
        include PLUS_PATH . "/city.cache.php";
        include PLUS_PATH . "/comrating.cache.php";
        $query = $db->query("select count(*) as num,uid,provinceid,cityid,three_cityid,lastupdate from {$db_config['def']}company_job where  {$where} GROUP BY uid ORDER BY lastupdate desc {$limit}");
        $uids = array();
        $ComList = array();
        while ($rs = $db->fetch_array($query)) {
            if ($citylen) {
                $one_city[$rs['uid']] = mb_substr($city_name[$rs['cityid']], 0, $citylen);
                $two_city[$rs['uid']] = mb_substr($city_name[$rs['three_cityid']], 0, $citylen);
            } else {
                $one_city[$rs['uid']] = $city_name[$rs['cityid']];
                $two_city[$rs['uid']] = $city_name[$rs['three_cityid']];
            }
            if ($one_city[$rs['uid']] == '') {
                $one_city[$rs['uid']] = $city_name[$rs['provinceid']];
            }
            $lasttime[$rs['uid']] = date('Y-m-d', $rs['lastupdate']);
            $uids[] = $rs['uid'];
        }
        if (!empty($uids)) {
            $comids = @implode(',', $uids);
            $joblist = $db->select_all("company_job", "{$where} AND `uid` IN ({$comids}) ORDER BY lastupdate desc");
            $job_list = array();
            foreach ($joblist as $value) {
                if (!$jobnum || count($job_list[$value['uid']]) < $jobnum) {
                    if ($joblen) {
                        $value['name_n'] = mb_substr($value['name'], 0, $joblen, 'gbk');
                    }
                    $value['url'] = Url("job", array("c" => "comapply", "id" => $value['id']), "1");
                    $job_list[$value['uid']][] = $value;
                }
                $comname[$value['uid']] = $value['com_name'];
            }
            $statis = $db->select_all("company_statis", "`uid` in (" . @implode(",", $uids) . ")", "`uid`,`rating`");
            foreach ($uids as $key => $value) {
                foreach ($statis as $v) {
                    foreach ($comrat as $val) {
                        if ($value == $v[uid] && $val[id] == $v[rating]) {
                            $ComList[$key][color] = $val[com_color];
                            $ComList[$key][ratlogo] = $val[com_pic];
                        }
                    }
                }
                $ComList[$key]['curl'] = Url("company", array("c" => "show", "id" => $value));
                $ComList[$key]['uid'] = $value;
                $ComList[$key]['name'] = $comname[$value];
                $ComList[$key]['one_city'] = $one_city[$value];
                $ComList[$key]['two_city'] = $two_city[$value];
                $ComList[$key]['lasttime'] = $lasttime[$value];
                if ($comlen) {
                    $ComList[$key]['name_n'] = mb_substr($comname[$value], 0, $comlen, 'gbk');
                }
                $ComList[$key]['joblist'] = $job_list[$value];
            }
        }
        $ComList = $ComList;
        if (!is_array($ComList) && !is_object($ComList)) {
            settype($ComList, 'array');
        }
        foreach ($ComList as $_smarty_tpl->tpl_vars['job_list']->key => $_smarty_tpl->tpl_vars['job_list']->value) {
            $_smarty_tpl->tpl_vars['job_list']->_loop = true;
            $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['job_list']->key;
            ?>
        <li> <em class="Recommended_jobs_cont_li"> <span class="Recommended_jobs_pin">聘:</span><?php 
            $_smarty_tpl->tpl_vars['jlist'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['jlist']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['job_list']->value['joblist'];
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['jlist']->key => $_smarty_tpl->tpl_vars['jlist']->value) {
                $_smarty_tpl->tpl_vars['jlist']->_loop = true;
                ?>
 <a href="<?php 
                echo $_smarty_tpl->tpl_vars['jlist']->value['url'];
                ?>
" class="Recommended_jobs_name_cor" target="_blank"><?php 
                echo $_smarty_tpl->tpl_vars['jlist']->value['name_n'];
                ?>
</a> <?php 
            }
            ?>
 </em> <em class="Recommended_jobs_name"> <a href="<?php 
            echo $_smarty_tpl->tpl_vars['job_list']->value['curl'];
            ?>
" target="_blank"><?php 
            echo $_smarty_tpl->tpl_vars['job_list']->value['name_n'];
            ?>
</a><?php 
            if ($_smarty_tpl->tpl_vars['job_list']->value['ratlogo']) {
                ?>
<img data-original="<?php 
                echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];
                ?>
/<?php 
                echo $_smarty_tpl->tpl_vars['job_list']->value['ratlogo'];
                ?>
" width="16" height="16" class="lazy" src=""/><?php 
            }
            ?>
 </em> </li>
        <?php 
        }
        ?>
      </ul>
    </div>
  </div>
  <div class="w980">
    <div class="index_banner_cont "> <?php 
        $_smarty_tpl->tpl_vars['adlist_13'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['adlist_13']->_loop = false;
        $AdArr = array();
        $paramer = array();
        include PLUS_PATH . '/pimg_cache.php';
        $add_arr = $ad_label[13];
        if (is_array($add_arr) && !empty($add_arr)) {
            $i = 0;
            $limit = 2;
            $length = 0;
            foreach ($add_arr as $key => $value) {
                if (($value['did'] == $config['did'] || $value['did'] == '0') && $value['start'] < time() && $value['end'] > time()) {
                    if ($i > 0 && $limit == $i) {
                        break;
                    }
                    if ($length > 0) {
                        $value['name'] = mb_substr($value['name'], 0, $length);
                    }
                    if ($paramer['type'] != "") {
                        if ($paramer['type'] == $value['type']) {
                            $AdArr[] = $value;
                        }
                    } else {
                        $AdArr[] = $value;
                    }
                    $i++;
                }
            }
        }
        $AdArr = $AdArr;
        if (!is_array($AdArr) && !is_object($AdArr)) {
            settype($AdArr, 'array');
        }
        foreach ($AdArr as $_smarty_tpl->tpl_vars['adlist_13']->key => $_smarty_tpl->tpl_vars['adlist_13']->value) {
            $_smarty_tpl->tpl_vars['adlist_13']->_loop = true;
            ?>
      <?php 
            echo $_smarty_tpl->tpl_vars['adlist_13']->value['html'];
            ?>

      <?php 
        }
        ?>
      <?php 
        $_smarty_tpl->tpl_vars['adlist_14'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['adlist_14']->_loop = false;
        $AdArr = array();
        $paramer = array();
        include PLUS_PATH . '/pimg_cache.php';
        $add_arr = $ad_label[14];
        if (is_array($add_arr) && !empty($add_arr)) {
            $i = 0;
            $limit = 6;
            $length = 0;
            foreach ($add_arr as $key => $value) {
                if (($value['did'] == $config['did'] || $value['did'] == '0') && $value['start'] < time() && $value['end'] > time()) {
                    if ($i > 0 && $limit == $i) {
                        break;
                    }
                    if ($length > 0) {
                        $value['name'] = mb_substr($value['name'], 0, $length);
                    }
                    if ($paramer['type'] != "") {
                        if ($paramer['type'] == $value['type']) {
                            $AdArr[] = $value;
                        }
                    } else {
                        $AdArr[] = $value;
                    }
                    $i++;
                }
            }
        }
        $AdArr = $AdArr;
        if (!is_array($AdArr) && !is_object($AdArr)) {
            settype($AdArr, 'array');
        }
        foreach ($AdArr as $_smarty_tpl->tpl_vars['adlist_14']->key => $_smarty_tpl->tpl_vars['adlist_14']->value) {
            $_smarty_tpl->tpl_vars['adlist_14']->_loop = true;
            ?>
      <?php 
            echo $_smarty_tpl->tpl_vars['adlist_14']->value['html'];
            ?>

      <?php 
        }
        ?>
      <?php 
        $_smarty_tpl->tpl_vars['adlist_15'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['adlist_15']->_loop = false;
        $AdArr = array();
        $paramer = array();
        include PLUS_PATH . '/pimg_cache.php';
        $add_arr = $ad_label[15];
        if (is_array($add_arr) && !empty($add_arr)) {
            $i = 0;
            $limit = 10;
            $length = 0;
            foreach ($add_arr as $key => $value) {
                if (($value['did'] == $config['did'] || $value['did'] == '0') && $value['start'] < time() && $value['end'] > time()) {
                    if ($i > 0 && $limit == $i) {
                        break;
                    }
                    if ($length > 0) {
                        $value['name'] = mb_substr($value['name'], 0, $length);
                    }
                    if ($paramer['type'] != "") {
                        if ($paramer['type'] == $value['type']) {
                            $AdArr[] = $value;
                        }
                    } else {
                        $AdArr[] = $value;
                    }
                    $i++;
                }
            }
        }
        $AdArr = $AdArr;
        if (!is_array($AdArr) && !is_object($AdArr)) {
            settype($AdArr, 'array');
        }
        foreach ($AdArr as $_smarty_tpl->tpl_vars['adlist_15']->key => $_smarty_tpl->tpl_vars['adlist_15']->value) {
            $_smarty_tpl->tpl_vars['adlist_15']->_loop = true;
            ?>
      <?php 
            echo $_smarty_tpl->tpl_vars['adlist_15']->value['html'];
            ?>

      <?php 
        }
        ?>
 </div>
  </div>
  <div class="index_Emergency_job">
    <div class="Featured_Jobs_bg1">
      <div class="Latest_talent_h1"><b>最新职位<span class="index_Emergency_span">New Jobs</span></b><a href="<?php 
        echo smarty_function_url(array('m' => 'job'), $_smarty_tpl);
        ?>
" class="index_more">更多>></a></div>
      <div class="Featured_Jobs">
        <div class="Featured_Jobs_list"> <?php 
        $_smarty_tpl->tpl_vars['hot'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['hot']->_loop = false;
        $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable();
        global $db, $db_config, $config;
        eval('$paramer=array("limit"=>"32","comlen"=>"13","joblen"=>"5","jobnum"=>"3","item"=>"\'hot\'","key"=>"\'key\'","name"=>"\'comjoblist2\'","nocache"=>"")
;');
        $ParamerArr = GetSmarty($paramer, $_GET, $_smarty_tpl);
        $paramer = $ParamerArr[arr];
        extract($paramer);
        $Purl = $ParamerArr[purl];
        if ($config['sy_web_site'] == "1") {
            if ($config['cityid'] > 0 && $config['cityid'] != "") {
                $cityid = $config['cityid'];
            }
            if ($config['three_cityid'] > 0 && $config['three_cityid'] != "") {
                $three_cityid = $config['three_cityid'];
            }
            if ($config['hyclass'] > 0 && $config['hyclass'] != "") {
                $hy = $config['hyclass'];
            }
        }
        $time = time();
        $where = "`sdate`<{$time} AND `edate`>{$time} and  `state`='1' and `r_status`<>'2' and `status`<>'1'";
        if ($paramer[urgent]) {
            $where .= " AND `urgent_time`>{$time}";
        }
        if ($hy) {
            $where .= ' AND `hy`=' . $hy;
        }
        if ($cityid) {
            $where .= ' AND `cityid`=' . $cityid;
        }
        if ($three_cityid) {
            $where .= " AND `three_cityid`={$three_cityid}";
        }
        if ($paramer[rec]) {
            $where .= " AND `rec_time`>{$time}";
        }
        if ($paramer['limit']) {
            $limit = " limit " . $paramer['limit'];
        }
        include PLUS_PATH . "/city.cache.php";
        include PLUS_PATH . "/comrating.cache.php";
        $query = $db->query("select count(*) as num,uid,provinceid,cityid,three_cityid,lastupdate from {$db_config['def']}company_job where  {$where} GROUP BY uid ORDER BY lastupdate desc {$limit}");
        $uids = array();
        $ComList = array();
        while ($rs = $db->fetch_array($query)) {
            if ($citylen) {
                $one_city[$rs['uid']] = mb_substr($city_name[$rs['cityid']], 0, $citylen);
                $two_city[$rs['uid']] = mb_substr($city_name[$rs['three_cityid']], 0, $citylen);
            } else {
                $one_city[$rs['uid']] = $city_name[$rs['cityid']];
                $two_city[$rs['uid']] = $city_name[$rs['three_cityid']];
            }
            if ($one_city[$rs['uid']] == '') {
                $one_city[$rs['uid']] = $city_name[$rs['provinceid']];
            }
            $lasttime[$rs['uid']] = date('Y-m-d', $rs['lastupdate']);
            $uids[] = $rs['uid'];
        }
        if (!empty($uids)) {
            $comids = @implode(',', $uids);
            $joblist = $db->select_all("company_job", "{$where} AND `uid` IN ({$comids}) ORDER BY lastupdate desc");
            $job_list = array();
            foreach ($joblist as $value) {
                if (!$jobnum || count($job_list[$value['uid']]) < $jobnum) {
                    if ($joblen) {
                        $value['name_n'] = mb_substr($value['name'], 0, $joblen, 'gbk');
                    }
                    $value['url'] = Url("job", array("c" => "comapply", "id" => $value['id']), "1");
                    $job_list[$value['uid']][] = $value;
                }
                $comname[$value['uid']] = $value['com_name'];
            }
            $statis = $db->select_all("company_statis", "`uid` in (" . @implode(",", $uids) . ")", "`uid`,`rating`");
            foreach ($uids as $key => $value) {
                foreach ($statis as $v) {
                    foreach ($comrat as $val) {
                        if ($value == $v[uid] && $val[id] == $v[rating]) {
                            $ComList[$key][color] = $val[com_color];
                            $ComList[$key][ratlogo] = $val[com_pic];
                        }
                    }
                }
                $ComList[$key]['curl'] = Url("company", array("c" => "show", "id" => $value));
                $ComList[$key]['uid'] = $value;
                $ComList[$key]['name'] = $comname[$value];
                $ComList[$key]['one_city'] = $one_city[$value];
                $ComList[$key]['two_city'] = $two_city[$value];
                $ComList[$key]['lasttime'] = $lasttime[$value];
                if ($comlen) {
                    $ComList[$key]['name_n'] = mb_substr($comname[$value], 0, $comlen, 'gbk');
                }
                $ComList[$key]['joblist'] = $job_list[$value];
            }
        }
        $ComList = $ComList;
        if (!is_array($ComList) && !is_object($ComList)) {
            settype($ComList, 'array');
        }
        foreach ($ComList as $_smarty_tpl->tpl_vars['hot']->key => $_smarty_tpl->tpl_vars['hot']->value) {
            $_smarty_tpl->tpl_vars['hot']->_loop = true;
            $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['hot']->key;
            ?>
          <dl>
            <dd>
              <div class="Featured_Jobs_t1"><a href="<?php 
            echo $_smarty_tpl->tpl_vars['hot']->value['curl'];
            ?>
" class="Featured_Jobs_name fl" target="_blank"><?php 
            echo $_smarty_tpl->tpl_vars['hot']->value['name_n'];
            ?>
</a> <em class="fr Featured_Jobs_date"><?php 
            echo $_smarty_tpl->tpl_vars['hot']->value['lasttime'];
            ?>
</em> </div>
              <div class="Featured_Jobs_t2"> <?php 
            $_smarty_tpl->tpl_vars['jlist'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['jlist']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['hot']->value['joblist'];
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['jlist']->key => $_smarty_tpl->tpl_vars['jlist']->value) {
                $_smarty_tpl->tpl_vars['jlist']->_loop = true;
                ?>
 <a href="<?php 
                echo $_smarty_tpl->tpl_vars['jlist']->value['url'];
                ?>
" target="_blank" class="Featured_Jobs_name_c"><?php 
                echo $_smarty_tpl->tpl_vars['jlist']->value['name_n'];
                ?>
</a> <?php 
            }
            ?>
 </div>
            </dd>
          </dl>
          <?php 
        }
        ?>
 </div>
      </div>
    </div>
  </div>
  <div class="clear"></div>
  <div class="index_Emergency_job">
    <div class="Latest_talent_h1 "><b>最新人才<span class="index_Emergency_span">New talent</span></b><a href="<?php 
        echo smarty_function_url(array('m' => 'resume'), $_smarty_tpl);
        ?>
" class="index_more" >更多>></a></div>
    <div class="Latest_talent_cont">
      <ul class="Latest_talent_list">
        <li class="Latest_talent_list_a">姓名</li>
        <li class="Latest_talent_list_b">年龄</li>
        <li class="Latest_talent_list_c">学历</li>
        <li class="Latest_talent_list_d">求职意向</li>
      </ul>
      <ul class="Latest_talent_list">
        <li class="Latest_talent_list_a">姓名</li>
        <li class="Latest_talent_list_b">年龄</li>
        <li class="Latest_talent_list_c">学历</li>
        <li class="Latest_talent_list_d">求职意向</li>
      </ul>
      <?php 
        $_smarty_tpl->tpl_vars['ulist'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['ulist']->_loop = false;
        $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable();
        $ulist = $ulist;
        if (!is_array($ulist) && !is_object($ulist)) {
            settype($ulist, 'array');
        }
        foreach ($ulist as $_smarty_tpl->tpl_vars['ulist']->key => $_smarty_tpl->tpl_vars['ulist']->value) {
            $_smarty_tpl->tpl_vars['ulist']->_loop = true;
            $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['ulist']->key;
            ?>
      <ul class="Latest_talent_list Latest_talent_list2">
        <li class="Latest_talent_list_a"><img width="14" height="14" class="png" src="<?php 
            echo $_smarty_tpl->tpl_vars['style']->value;
            ?>
/images/<?php 
            if ($_smarty_tpl->tpl_vars['userclass_name']->value[$_smarty_tpl->tpl_vars['ulist']->value['sex']] == '女') {
                ?>
yun_girl.png<?php 
            } else {
                ?>
yun_boy.png<?php 
            }
            ?>
"/><a href="<?php 
            echo smarty_function_url(array('m' => 'resume', 'c' => 'show', 'id' => '`$ulist.id`'), $_smarty_tpl);
            ?>
" target="_blank"><?php 
            echo $_smarty_tpl->tpl_vars['ulist']->value['username_n'];
            ?>
</a></li>
        <li class="Latest_talent_list_b"><?php 
            if ($_smarty_tpl->tpl_vars['ulist']->value['age'] == 0) {
                ?>
保密<?php 
            } else {
                echo $_smarty_tpl->tpl_vars['ulist']->value['age'];
            }
            ?>
</li>
        <li class="Latest_talent_list_c"><?php 
            echo $_smarty_tpl->tpl_vars['ulist']->value['edu_n'];
            ?>
</li>
        <li class="Latest_talent_list_d"><?php 
            echo $_smarty_tpl->tpl_vars['ulist']->value['job_post_n'];
            ?>
</li>
      </ul>
      <?php 
        }
        ?>
 </div>
    <div class="right_banner"> <?php 
        $_smarty_tpl->tpl_vars['adlist_user_r'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['adlist_user_r']->_loop = false;
        $AdArr = array();
        $paramer = array();
        include PLUS_PATH . '/pimg_cache.php';
        $add_arr = $ad_label[12];
        if (is_array($add_arr) && !empty($add_arr)) {
            $i = 0;
            $limit = 5;
            $length = 0;
            foreach ($add_arr as $key => $value) {
                if (($value['did'] == $config['did'] || $value['did'] == '0') && $value['start'] < time() && $value['end'] > time()) {
                    if ($i > 0 && $limit == $i) {
                        break;
                    }
                    if ($length > 0) {
                        $value['name'] = mb_substr($value['name'], 0, $length);
                    }
                    if ($paramer['type'] != "") {
                        if ($paramer['type'] == $value['type']) {
                            $AdArr[] = $value;
                        }
                    } else {
                        $AdArr[] = $value;
                    }
                    $i++;
                }
            }
        }
        $AdArr = $AdArr;
        if (!is_array($AdArr) && !is_object($AdArr)) {
            settype($AdArr, 'array');
        }
        foreach ($AdArr as $_smarty_tpl->tpl_vars['adlist_user_r']->key => $_smarty_tpl->tpl_vars['adlist_user_r']->value) {
            $_smarty_tpl->tpl_vars['adlist_user_r']->_loop = true;
            ?>
      <?php 
            echo $_smarty_tpl->tpl_vars['adlist_user_r']->value['html'];
            ?>
 
      <?php 
        }
        ?>
 </div>
  </div>
  <div class="clear"></div>
  <div class="w980">
    <div class="index_news">
      <div class="index_News_h1"> <b>职场资讯<span class="index_Emergency_span">Workplace information</span></b> <u><?php 
        $_smarty_tpl->tpl_vars['arcgroupright'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['arcgroupright']->_loop = false;
        $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable();
        global $db, $db_config, $config;
        eval('$paramer=array("rec"=>"1","item"=>"\'arcgroupright\'","urlstatic"=>"1","key"=>"\'key\'","len"=>"4","pt_len"=>"12","pd_len"=>"40","t_len"=>"15","name"=>"\'newclasslist1\'","nocache"=>"")
;');
        $ParamerArr = GetSmarty($paramer, $_GET, $_smarty_tpl);
        $paramer = $ParamerArr[arr];
        $Purl = $ParamerArr[purl];
        include PLUS_PATH . "/group.cache.php";
        if ($paramer['classid']) {
            $classid = @explode(',', $paramer['classid']);
            if (is_array($classid)) {
                foreach ($classid as $key => $value) {
                    $Info['id'] = $value;
                    $Info['name'] = $group_name[$value];
                    $group[] = $Info;
                }
            }
        } else {
            if ($paramer['rec']) {
                if (is_array($group_rec)) {
                    foreach ($group_rec as $key => $value) {
                        $Info['id'] = $value;
                        $Info['name'] = $group_name[$value];
                        $group[] = $Info;
                    }
                }
            } else {
                if ($paramer['r_news']) {
                    if (is_array($group_recnews)) {
                        foreach ($group_recnews as $key => $value) {
                            $Info['id'] = $value;
                            $Info['name'] = $group_name[$value];
                            $group[] = $Info;
                        }
                    }
                } else {
                    if (is_array($group_index)) {
                        foreach ($group_index as $key => $value) {
                            $Info['id'] = $value;
                            $Info['name'] = $group_name[$value];
                            $group[] = $Info;
                        }
                    }
                }
            }
        }
        if (is_array($group)) {
            foreach ($group as $key => $value) {
                if (intval($paramer[len]) > 0) {
                    $len = intval($paramer[len]);
                    $group[$key][name] = mb_substr($value[name], 0, $len, "GBK");
                }
                if ($group_type[$value['id']]) {
                    $nids = $value['id'] . "," . @implode(',', $group_type[$value['id']]);
                } else {
                    $nids = $value['id'];
                }
                if ($config[sy_news_rewrite] == "2") {
                    $group[$key][url] = $config['sy_weburl'] . "/news/" . $value[id] . "/";
                } else {
                    $group[$key][url] = Url('article', array('c' => 'list', "nid" => $value[id]), "1");
                }
                if ($config[did]) {
                    $newswhere = " and `did`={$config['did']}";
                }
                if ($paramer[arcpic]) {
                    $query = $db->query("SELECT * FROM `{$db_config['def']}news_base` WHERE `nid`='{$value['id']}' AND `newsphoto`<>'' {$newswhere}  ORDER BY `sort` DESC,`datetime` DESC limit {$paramer['arcpic']}");
                    while ($rs = $db->fetch_array($query)) {
                        if (intval($paramer[pt_len]) > 0) {
                            $len = intval($paramer[pt_len]);
                            if ($rs[color]) {
                                $rs[title] = "<font color='" . $rs[color] . "'>" . mb_substr($rs[title], 0, $len, "GBK") . "</font>";
                            } else {
                                $rs[title] = mb_substr($rs[title], 0, $len, "GBK");
                            }
                        }
                        if (intval($paramer[pd_len]) > 0) {
                            $len = intval($paramer[pd_len]);
                            $rs[description] = mb_substr($rs[description], 0, $len, "GBK");
                        }
                        foreach ($group as $k => $v) {
                            if ($v[id] == $rs[nid]) {
                                $rs[name] = $v[name];
                            }
                        }
                        if ($config[sy_news_rewrite] == "2") {
                            $rs["url"] = $config['sy_weburl'] . "/news/" . date("Ymd", $rs["datetime"]) . "/" . $rs[id] . ".html";
                        } else {
                            $rs["url"] = Url("article", array("c" => "show", "id" => $rs[id]), "1");
                        }
                        $arcpic[] = $rs;
                    }
                    $group[$key][arcpic] = $arcpic;
                    unset($arcpic);
                }
                if ($paramer[arclist]) {
                    $query = $db->query("SELECT * FROM `{$db_config['def']}news_base` WHERE `nid`='{$value['id']}' {$newswhere}  ORDER BY `sort` DESC,`datetime` DESC limit {$paramer['arclist']}");
                    while ($rs = $db->fetch_array($query)) {
                        if (intval($paramer[t_len]) > 0) {
                            $len = intval($paramer[t_len]);
                            if ($rs[color]) {
                                $rs[title] = "<font color='" . $rs[color] . "'>" . mb_substr($rs[title], 0, $len, "GBK") . "</font>";
                            } else {
                                $rs[title] = mb_substr($rs[title], 0, $len, "GBK");
                            }
                        }
                        if (intval($paramer[d_len]) > 0) {
                            $len = intval($paramer[d_len]);
                            $rs[description] = mb_substr($rs[description], 0, $len, "GBK");
                        }
                        foreach ($group as $k => $v) {
                            if ($v[id] == $rs[nid]) {
                                $rs[name] = $v[name];
                            }
                        }
                        if ($config[sy_news_rewrite] == "2") {
                            $rs["url"] = $config['sy_weburl'] . "/news/" . date("Ymd", $rs["datetime"]) . "/" . $rs[id] . ".html";
                        } else {
                            $rs["url"] = Url("article", array("c" => "show", "id" => $rs[id]), "1");
                        }
                        $arclist[] = $rs;
                    }
                    $group[$key][arclist] = $arclist;
                    unset($arclist);
                }
            }
        }
        $group = $group;
        if (!is_array($group) && !is_object($group)) {
            settype($group, 'array');
        }
        foreach ($group as $_smarty_tpl->tpl_vars['arcgroupright']->key => $_smarty_tpl->tpl_vars['arcgroupright']->value) {
            $_smarty_tpl->tpl_vars['arcgroupright']->_loop = true;
            $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['arcgroupright']->key;
            ?>
        <?php 
            if ($_smarty_tpl->tpl_vars['key']->value > 0) {
                ?>
|<?php 
            }
            ?>
 <a href="<?php 
            echo $_smarty_tpl->tpl_vars['arcgroupright']->value['url'];
            ?>
" target="_blank"><?php 
            echo $_smarty_tpl->tpl_vars['arcgroupright']->value['name'];
            ?>
</a> <?php 
        }
        ?>
 <a <?php 
        if ($_smarty_tpl->tpl_vars['config']->value['sy_news_rewrite'] == '2') {
            ?>
href="<?php 
            echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];
            ?>
/news.html"<?php 
        } else {
            ?>
href="<?php 
            echo smarty_function_url(array('m' => 'article'), $_smarty_tpl);
            ?>
"<?php 
        }
        ?>
target="_blank">更多>></a> </u> </div>
      <?php 
        $_smarty_tpl->tpl_vars['indexnews'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['indexnews']->_loop = false;
        $indexnews = $indexnews;
        if (!is_array($indexnews) && !is_object($indexnews)) {
            settype($indexnews, 'array');
        }
        foreach ($indexnews as $_smarty_tpl->tpl_vars['indexnews']->key => $_smarty_tpl->tpl_vars['indexnews']->value) {
            $_smarty_tpl->tpl_vars['indexnews']->_loop = true;
            ?>
      <div class="index_news_content"> <?php 
            if ($_smarty_tpl->tpl_vars['indexnews']->value['pic']) {
                ?>
        <dl class="index_news_top">
          <dt> <a href="<?php 
                echo $_smarty_tpl->tpl_vars['indexnews']->value['pic'][0]['url'];
                ?>
"> <img width="100" height="80" data-original="<?php 
                echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];
                ?>
/<?php 
                echo $_smarty_tpl->tpl_vars['indexnews']->value['pic'][0]['newsphoto'];
                ?>
" class="lazy" src=""/> </a> </dt>
          <dd> <strong><a href="<?php 
                echo $_smarty_tpl->tpl_vars['indexnews']->value['pic'][0]['url'];
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['indexnews']->value['pic'][0]['title'];
                ?>
</a></strong> <span><?php 
                echo $_smarty_tpl->tpl_vars['indexnews']->value['pic'][0]['description'];
                ?>
...</span> <a href="<?php 
                echo $_smarty_tpl->tpl_vars['indexnews']->value['pic'][0]['url'];
                ?>
" target="_blank">[详细]</a> </dd>
        </dl>
        <?php 
            }
            ?>
        <div class="index_news_right">
          <ul>
            <?php 
            $_smarty_tpl->tpl_vars['arcitem'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['arcitem']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['indexnews']->value['arclist'];
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['arcitem']->key => $_smarty_tpl->tpl_vars['arcitem']->value) {
                $_smarty_tpl->tpl_vars['arcitem']->_loop = true;
                ?>
            <li>[<?php 
                echo $_smarty_tpl->tpl_vars['arcitem']->value['name'];
                ?>
] <a href="<?php 
                echo $_smarty_tpl->tpl_vars['arcitem']->value['url'];
                ?>
" target="_blank"><?php 
                echo $_smarty_tpl->tpl_vars['arcitem']->value['title'];
                ?>
</a></li>
            <?php 
            }
            ?>
          </ul>
        </div>
      </div>
      <?php 
        }
        ?>
 </div>
    <div class="index_news">
      <div class="Latest_talent_h1 "><b><i class="Latest_talent_h1_icon Latest_talent_h1_icon_link png"></i>友情链接</b><?php 
        if ($_smarty_tpl->tpl_vars['config']->value['sy_linksq'] == 0) {
            ?>
 <a href="<?php 
            echo smarty_function_url(array('m' => 'link'), $_smarty_tpl);
            ?>
" class="index_more">申请链接</a><?php 
        }
        ?>
</div>
      <div class="Famous_recruitment_cont_box">
        <div class="index_link_cont">
          <div class="index_link_list">
            <div class="index_link_list_img"> <?php 
        $_smarty_tpl->tpl_vars['linklist'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['linklist']->_loop = false;
        global $config;
        //跨域名使用范围
        $domain = '';
        if ($config["cityid"] != "" || $config["hyclass"] != "") {
            include PLUS_PATH . "/domain_cache.php";
            $host_url = $_SERVER['HTTP_HOST'];
            foreach ($site_domain as $v) {
                if ($v['host'] == $host_url) {
                    $domain = $v['id'];
                }
            }
        }
        $tem_type = 2;
        include PLUS_PATH . "/link.cache.php";
        if (is_array($link)) {
            $linkList = array();
            $i = 0;
            foreach ($link as $key => $value) {
                if ($config["did"] != 0 && $value["did"] != $config["did"]) {
                    continue;
                } elseif (is_numeric('2') && $value['tem_type'] != '2' && $value['tem_type'] != '1') {
                    continue;
                } elseif ((!is_numeric('2') || '2' == '1') && $value['tem_type'] != '1') {
                    continue;
                } elseif (!$config["did"] && $value["did"] > 0) {
                    continue;
                }
                if (is_numeric('2') && $value['link_type'] != '2') {
                    continue;
                }
                if (is_numeric('') && intval('') <= $i) {
                    break;
                }
                $value[picurl] = $config[sy_weburl] . "/" . $value[pic];
                $linkList[] = $value;
                $i++;
            }
        }
        $linkList = $linkList;
        if (!is_array($linkList) && !is_object($linkList)) {
            settype($linkList, 'array');
        }
        foreach ($linkList as $_smarty_tpl->tpl_vars['linklist']->key => $_smarty_tpl->tpl_vars['linklist']->value) {
            $_smarty_tpl->tpl_vars['linklist']->_loop = true;
            ?>
 <a href="<?php 
            echo $_smarty_tpl->tpl_vars['linklist']->value['link_url'];
            ?>
" target="_blank"><img class="lazy" src="" data-original="<?php 
            echo $_smarty_tpl->tpl_vars['linklist']->value['pic'];
            ?>
" width="120" height="35" alt="<?php 
            echo $_smarty_tpl->tpl_vars['linklist']->value['link_name'];
            ?>
" /></a> <?php 
        }
        ?>
 </div>
            <div class="index_link_list_name"> <?php 
        $_smarty_tpl->tpl_vars['linklist2'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['linklist2']->_loop = false;
        global $config;
        //跨域名使用范围
        $domain = '';
        if ($config["cityid"] != "" || $config["hyclass"] != "") {
            include PLUS_PATH . "/domain_cache.php";
            $host_url = $_SERVER['HTTP_HOST'];
            foreach ($site_domain as $v) {
                if ($v['host'] == $host_url) {
                    $domain = $v['id'];
                }
            }
        }
        $tem_type = 2;
        include PLUS_PATH . "/link.cache.php";
        if (is_array($link)) {
            $linkList = array();
            $i = 0;
            foreach ($link as $key => $value) {
                if ($config["did"] != 0 && $value["did"] != $config["did"]) {
                    continue;
                } elseif (is_numeric('2') && $value['tem_type'] != '2' && $value['tem_type'] != '1') {
                    continue;
                } elseif ((!is_numeric('2') || '2' == '1') && $value['tem_type'] != '1') {
                    continue;
                } elseif (!$config["did"] && $value["did"] > 0) {
                    continue;
                }
                if (is_numeric('1') && $value['link_type'] != '1') {
                    continue;
                }
                if (is_numeric('') && intval('') <= $i) {
                    break;
                }
                $value[picurl] = $config[sy_weburl] . "/" . $value[pic];
                $linkList[] = $value;
                $i++;
            }
        }
        $linkList = $linkList;
        if (!is_array($linkList) && !is_object($linkList)) {
            settype($linkList, 'array');
        }
        foreach ($linkList as $_smarty_tpl->tpl_vars['linklist2']->key => $_smarty_tpl->tpl_vars['linklist2']->value) {
            $_smarty_tpl->tpl_vars['linklist2']->_loop = true;
            ?>
 <a href="<?php 
            echo $_smarty_tpl->tpl_vars['linklist2']->value['link_url'];
            ?>
" target="_blank"> <?php 
            echo $_smarty_tpl->tpl_vars['linklist2']->value['link_name'];
            ?>
</a> <?php 
        }
        ?>
 </div>
          </div>
        </div>
      </div>
    </div>
    <div id="bg"></div>
    <?php 
        echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tplstyle']->value . "/backtop.htm", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
        ?>

    <div id='footer_ad'> <?php 
        $_smarty_tpl->tpl_vars['footer_ad'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['footer_ad']->_loop = false;
        $AdArr = array();
        $paramer = array();
        include PLUS_PATH . '/pimg_cache.php';
        $add_arr = $ad_label[10];
        if (is_array($add_arr) && !empty($add_arr)) {
            $i = 0;
            $limit = 0;
            $length = 0;
            foreach ($add_arr as $key => $value) {
                if (($value['did'] == $config['did'] || $value['did'] == '0') && $value['start'] < time() && $value['end'] > time()) {
                    if ($i > 0 && $limit == $i) {
                        break;
                    }
                    if ($length > 0) {
                        $value['name'] = mb_substr($value['name'], 0, $length);
                    }
                    if ($paramer['type'] != "") {
                        if ($paramer['type'] == $value['type']) {
                            $AdArr[] = $value;
                        }
                    } else {
                        $AdArr[] = $value;
                    }
                    $i++;
                }
            }
        }
        $AdArr = $AdArr;
        if (!is_array($AdArr) && !is_object($AdArr)) {
            settype($AdArr, 'array');
        }
        foreach ($AdArr as $_smarty_tpl->tpl_vars['footer_ad']->key => $_smarty_tpl->tpl_vars['footer_ad']->value) {
            $_smarty_tpl->tpl_vars['footer_ad']->_loop = true;
            ?>
      <div class="footer_ban" id="">
        <div class="baner_footer" id='bottom_ad_fl'> <span class="ban_close" onclick="colse_bottom()">关闭</span> <?php 
            echo $_smarty_tpl->tpl_vars['footer_ad']->value['html'];
            ?>
 </div>
        <input type="hidden" value='1' id='bottom_ad_is_show' />
      </div>
      <?php 
        }
        ?>
      <?php 
        $_smarty_tpl->tpl_vars['left_ad'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['left_ad']->_loop = false;
        $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable();
        $AdArr = array();
        $paramer = array();
        include PLUS_PATH . '/pimg_cache.php';
        $add_arr = $ad_label[11];
        if (is_array($add_arr) && !empty($add_arr)) {
            $i = 0;
            $limit = 0;
            $length = 0;
            foreach ($add_arr as $key => $value) {
                if (($value['did'] == $config['did'] || $value['did'] == '0') && $value['start'] < time() && $value['end'] > time()) {
                    if ($i > 0 && $limit == $i) {
                        break;
                    }
                    if ($length > 0) {
                        $value['name'] = mb_substr($value['name'], 0, $length);
                    }
                    if ($paramer['type'] != "") {
                        if ($paramer['type'] == $value['type']) {
                            $AdArr[] = $value;
                        }
                    } else {
                        $AdArr[] = $value;
                    }
                    $i++;
                }
            }
        }
        $AdArr = $AdArr;
        if (!is_array($AdArr) && !is_object($AdArr)) {
            settype($AdArr, 'array');
        }
        foreach ($AdArr as $_smarty_tpl->tpl_vars['left_ad']->key => $_smarty_tpl->tpl_vars['left_ad']->value) {
            $_smarty_tpl->tpl_vars['left_ad']->_loop = true;
            $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['left_ad']->key;
            ?>
      <div class="duilian <?php 
            if ($_smarty_tpl->tpl_vars['key']->value == '0') {
                ?>
duilian_left<?php 
            } else {
                ?>
duilian_right<?php 
            }
            ?>
">
        <div class="duilian_con"><?php 
            echo $_smarty_tpl->tpl_vars['left_ad']->value['html'];
            ?>
</div>
        <div class="close_container">
          <div class="btn_close"></div>
        </div>
      </div>
      <?php 
        }
        ?>
 </div>
  </div>
</div>
</div>
<?php 
        echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tplstyle']->value . "/public_search/index_search.htm", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
        ?>

<?php 
        echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tplstyle']->value . "/footer.htm", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
    }
    function content_55f96929add444_91671192($_smarty_tpl)
    {
        if (!is_callable('smarty_function_url')) {
            include 'D:\\wamp\\www\\qyhr\\app\\include\\libs\\plugins\\function.url.php';
        }
        global $db, $db_config, $config;
        $time = time();
        eval('$paramer=array("limit"=>"5","rec"=>"1","item"=>"\'job\'","nocache"=>"")
;');
        $ParamerArr = GetSmarty($paramer, $_GET, $_smarty_tpl);
        $paramer = $ParamerArr[arr];
        $Purl = $ParamerArr[purl];
        global $ModuleName;
        if (!$Purl["m"]) {
            $Purl["m"] = $ModuleName;
        }
        if ($config[sy_web_site] == "1") {
            if ($config[cityid] > 0 && $config[cityid] != "") {
                $paramer[cityid] = $config[cityid];
            }
            if ($config[three_cityid] > 0 && $config[three_cityid] != "") {
                $paramer[three_cityid] = $config[three_cityid];
            }
            if ($config[hyclass] > 0 && $config[hyclass] != "") {
                $paramer[hy] = $config[hyclass];
            }
        }
        if ($paramer[sdate]) {
            $where = "`sdate`>" . strtotime("-" . intval($paramer[sdate]) . " day", time()) . " and `edate`>'{$time}' and `state`=1";
        } else {
            $where = "`edate`>'{$time}' and `state`=1";
        }
        if ($paramer[uid]) {
            $where .= " AND `uid` = '{$paramer['uid']}'";
        }
        if ($paramer[rec]) {
            $where .= " AND `rec_time`>" . time();
        }
        if ($paramer['cert']) {
            $company = $db->select_all("company", "`yyzz_status`=1", "`uid`");
            if (is_array($company)) {
                foreach ($company as $v) {
                    $job_uid[] = $v['uid'];
                }
            }
            $where .= " and `uid` in (" . @implode(",", $job_uid) . ")";
        }
        if ($paramer[noid]) {
            $where .= " and `id`<>{$paramer['noid']}";
        }
        if ($paramer[r_status]) {
            $where .= " and `r_status`=2";
        } else {
            $where .= " and `r_status`<>2";
        }
        if ($paramer[status]) {
            $where .= " and `status`=1";
        } else {
            $where .= " and `status`<>1";
        }
        if ($paramer[pr]) {
            $where .= " AND `pr` ={$paramer['pr']}";
        }
        if ($paramer['hy']) {
            $where .= " AND `hy` = {$paramer['hy']}";
        }
        if ($paramer[mun]) {
            $where .= " AND `mun` = {$paramer['mun']}";
        }
        if ($paramer[job1]) {
            $where .= " AND `job1` = {$paramer['job1']}";
        }
        if ($paramer[job1_son]) {
            $where .= " AND `job1_son` = {$paramer['job1_son']}";
        }
        if ($paramer[job_post]) {
            $where .= " AND (`job_post` IN ({$paramer['job_post']}))";
        }
        if ($paramer['jobwhere']) {
            $where .= " and " . $paramer['jobwhere'];
        }
        if ($paramer['jobids']) {
            $where .= " AND (`job1` = {$paramer['jobids']} OR `job1_son`={$paramer['jobids']} OR `job_post`={$paramer['jobids']})";
        }
        if ($paramer['jobin']) {
            $where .= " AND (`job1` IN ({$paramer['jobin']}) OR `job1_son` IN ({$paramer['jobin']}) OR `job_post` IN ({$paramer['jobin']}))";
        }
        if ($paramer[provinceid]) {
            $where .= " AND `provinceid` = {$paramer['provinceid']}";
        }
        if ($paramer['cityid']) {
            $where .= " AND (`cityid` IN ({$paramer['cityid']}))";
        }
        if ($paramer['three_cityid']) {
            $where .= " AND (`three_cityid` IN ({$paramer['three_cityid']}))";
        }
        if ($paramer['cityin']) {
            $where .= " AND `three_cityid` IN ({$paramer['cityin']})";
        }
        if ($paramer[edu]) {
            $where .= " AND `edu` = {$paramer['edu']}";
        }
        if ($paramer[exp]) {
            $where .= " AND `exp` = {$paramer['exp']}";
        }
        if ($paramer[type]) {
            $where .= " AND `type` = {$paramer['type']}";
        }
        if ($paramer[sex]) {
            $where .= " AND `sex` = {$paramer['sex']}";
        }
        if ($paramer[salary]) {
            $where .= " AND `salary` = {$paramer['salary']}";
        }
        if ($paramer[cityin]) {
            $where .= " AND( AND `provinceid` IN ({$paramer['cityin']}) OR `cityid` IN ({$paramer['cityin']}) OR `three_cityid` IN ({$paramer['cityin']}))";
        }
        if ($paramer[urgent]) {
            $where .= " AND `urgent_time`>" . time();
        }
        if ($paramer[uptime]) {
            $uptime = $time - $paramer[uptime] * 86400;
            $where .= " AND `lastupdate`>{$uptime}";
        }
        if ($paramer[comname]) {
            $where .= " AND `com_name` LIKE '%" . $paramer[comname] . "%'";
        }
        if ($paramer[com_pro]) {
            $where .= " AND `com_provinceid` ='" . $paramer[com_pro] . "'";
        }
        if ($paramer[keyword]) {
            $where1[] = "`name` LIKE '%" . $paramer[keyword] . "%'";
            $where1[] = "`com_name` LIKE '%" . $paramer[keyword] . "%'";
            include PLUS_PATH . "/city.cache.php";
            foreach ($city_name as $k => $v) {
                if (strpos($v, $paramer[keyword]) !== false) {
                    $cityid[] = $k;
                }
            }
            if (is_array($cityid)) {
                foreach ($cityid as $value) {
                    $class[] = "(provinceid = '" . $value . "' or cityid = '" . $value . "')";
                }
                $where1[] = @implode(" or ", $class);
            }
            $where .= " AND (" . @implode(" or ", $where1) . ")";
        }
        if ($paramer["job"]) {
            $where .= " AND `job_post` in ({$paramer['job']})";
        }
        if ($paramer[order] && $paramer[order] != "lastdate") {
            $order = " ORDER BY " . str_replace("'", "", $paramer[order]) . "  ";
        } else {
            $order = " ORDER BY `lastupdate` ";
        }
        if ($paramer[sort]) {
            $sort = $paramer[sort];
        } else {
            $sort = " DESC";
        }
        if ($paramer['orderby'] == "rec") {
            $nowtime = time();
            $where .= " ORDER BY if(rec_time>{$nowtime},rec_time,lastupdate)  desc";
        } else {
            $where .= $order . $sort;
        }
        if ($paramer[where]) {
            $where = $paramer[where];
        }
        if ($paramer[limit]) {
            $limit = " limit " . $paramer[limit];
        }
        if ($paramer[ispage]) {
            $limit = PageNav($paramer, $_GET, "company_job", $where, $Purl, "", $paramer[limit] ? $paramer[limit] : "6", $_smarty_tpl);
            $_smarty_tpl->tpl_vars["firmurl"] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars["firmurl"]->value = $config['sy_weburl'] . "/index.php?m=job" . $ParamerArr[firmurl];
        }
        $job = $db->select_all("company_job", $where . $limit);
        if (is_array($job)) {
            $cache_array = $db->cacheget();
            $comuid = $jobid = array();
            foreach ($job as $key => $value) {
                if (in_array($value['uid'], $comuid) == false) {
                    $comuid[] = $value['uid'];
                }
                if (in_array($value['id'], $jobid) == false) {
                    $jobid[] = $value['id'];
                }
            }
            $comuids = @implode(',', $comuid);
            $jobids = @implode(',', $jobid);
            if ($comuids) {
                $r_uids = $db->select_all("company", "`uid` IN (" . $comuids . ")", "`uid`,`yyzz_status`");
                if (is_array($r_uids)) {
                    foreach ($r_uids as $key => $value) {
                        $r_uid[$value['uid']] = $value['yyzz_status'];
                    }
                }
            }
            include PLUS_PATH . "/comrating.cache.php";
            foreach ($job as $key => $value) {
                $job[$key] = $db->array_action($value, $cache_array);
                $job[$key][stime] = date("Y-m-d", $value[sdate]);
                $job[$key][etime] = date("Y-m-d", $value[edate]);
                $job[$key][lastupdate] = date("Y-m-d", $value[lastupdate]);
                $job[$key][yyzz_status] = $r_uid[$value['uid']]['yyzz_status'];
                $time = time() - $value['lastupdate'];
                if ($time > 86400 && $time < 604800) {
                    $job[$key]['time'] = ceil($time / 86400) . "天前";
                } elseif ($time > 3600 && $time < 86400) {
                    $job[$key]['time'] = ceil($time / 3600) . "小时前";
                } elseif ($time > 60 && $time < 3600) {
                    $job[$key]['time'] = ceil($time / 60) . "分钟前";
                } elseif ($time < 60) {
                    $job[$key]['time'] = "刚刚";
                } else {
                    $job[$key]['time'] = date("Y-m-d", $value['lastupdate']);
                }
                if (is_array($job[$key]['welfare']) && $job[$key]['welfare']) {
                    foreach ($job[$key]['welfare'] as $val) {
                        $job[$key]['welfarename'][] = $cache_array['comclass_name'][$val];
                    }
                }
                if ($paramer[comlen]) {
                    $job[$key][com_n] = mb_substr($value['com_name'], 0, $paramer[comlen], "GBK");
                }
                if ($paramer[namelen]) {
                    if ($value['rec_time'] > time()) {
                        $job[$key][name_n] = "<font color='red'>" . mb_substr($value['name'], 0, $paramer[namelen], "GBK") . "</font>";
                    } else {
                        $job[$key][name_n] = mb_substr($value['name'], 0, $paramer[namelen], "GBK");
                    }
                } else {
                    if ($value['rec_time'] > time()) {
                        $job[$key]['name_n'] = "<font color='red'>" . $value['name'] . "</font>";
                    }
                }
                $job[$key][job_url] = Url("job", array("c" => "comapply", "id" => $value[id]), "1");
                $job[$key][com_url] = Url("company", array("c" => "show", "id" => $value[uid]));
                foreach ($comrat as $k => $v) {
                    if ($value[rating] == $v[id]) {
                        $job[$key][color] = str_replace("#", "", $v[com_color]);
                        $job[$key][ratlogo] = $v[com_pic];
                        $job[$key][ratname] = $v[name];
                    }
                }
                if ($paramer[keyword]) {
                    $job[$key][name] = str_replace($paramer[keyword], "<font color=#FF6600 >" . $paramer[keyword] . "</font>", $value[name]);
                    $job[$key][com_name] = str_replace($paramer[keyword], "<font color=#FF6600 >" . $paramer[keyword] . "</font>", $value[com_name]);
                    $job[$key][name_n] = str_replace($paramer[keyword], "<font color=#FF6600 >" . $paramer[keyword] . "</font>", $job[$key][name_n]);
                    $job[$key][com_n] = str_replace($paramer[keyword], "<font color=#FF6600 >" . $paramer[keyword] . "</font>", $job[$key][com_n]);
                    $job[$key][job_city_one] = str_replace($paramer[keyword], "<font color=#FF6600 >" . $paramer[keyword] . "</font>", $city_name[$value[provinceid]]);
                    $job[$key][job_city_two] = str_replace($paramer[keyword], "<font color=#FF6600 >" . $paramer[keyword] . "</font>", $city_name[$value[cityid]]);
                }
            }
            if (is_array($job)) {
                if ($paramer[keyword] != "" && !empty($job)) {
                    addkeywords('3', $paramer[keyword]);
                }
            }
        }
        ?>

<?php 
        echo '<script';
        ?>
 src="<?php 
        echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];
        ?>
/js/slides.jquery.js" type="text/javascript"><?php 
        echo '</script';
        ?>
>
<?php 
        echo '<script';
        ?>
 src="<?php 
        echo $_smarty_tpl->tpl_vars['wap_style']->value;
        ?>
/js/flickity-docs.min.js"><?php 
        echo '</script';
        ?>
>
<link rel="stylesheet" type="text/css" href="<?php 
        echo $_smarty_tpl->tpl_vars['wap_style']->value;
        ?>
/css/normalize.css" />
<link rel="stylesheet" href="<?php 
        echo $_smarty_tpl->tpl_vars['wap_style']->value;
        ?>
/css/flickity-docs.css" media="screen" />
<section>
    <div class="example">        
        <div class="example__demo">
            <div class="gallery gallery--images-loaded-demo js-flickity"
                 data-flickity-options='{ "imagesLoaded": true,"autoPlay": true }'>
                <!-- images from unsplash.com -->
                <?php 
        $_smarty_tpl->tpl_vars["lunbo"] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars["lunbo"]->_loop = false;
        $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable();
        $AdArr = array();
        $paramer = array();
        include PLUS_PATH . '/pimg_cache.php';
        $add_arr = $ad_label[50];
        if (is_array($add_arr) && !empty($add_arr)) {
            $i = 0;
            $limit = 0;
            $length = 0;
            foreach ($add_arr as $key => $value) {
                if (($value['did'] == $config['did'] || $value['did'] == '0') && $value['start'] < time() && $value['end'] > time()) {
                    if ($i > 0 && $limit == $i) {
                        break;
                    }
                    if ($length > 0) {
                        $value['name'] = mb_substr($value['name'], 0, $length);
                    }
                    if ($paramer['type'] != "") {
                        if ($paramer['type'] == $value['type']) {
                            $AdArr[] = $value;
                        }
                    } else {
                        $AdArr[] = $value;
                    }
                    $i++;
                }
            }
        }
        $AdArr = $AdArr;
        if (!is_array($AdArr) && !is_object($AdArr)) {
            settype($AdArr, 'array');
        }
        foreach ($AdArr as $_smarty_tpl->tpl_vars["lunbo"]->key => $_smarty_tpl->tpl_vars["lunbo"]->value) {
            $_smarty_tpl->tpl_vars["lunbo"]->_loop = true;
            $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars["lunbo"]->key;
            ?>
                <img src="<?php 
            echo $_smarty_tpl->tpl_vars['lunbo']->value['pic'];
            ?>
" />
                <?php 
        }
        ?>
            </div>
        </div>
    </div>
</section>
<section>
  <div class="index_warp_content clear">
     <form method="get" action="<?php 
        echo $_smarty_tpl->tpl_vars['config_weburl']->value;
        ?>
/mobile/index.php">
      <input type="hidden" name="c" value="job" />
      <div class="index_formFiled">
        <input type="text" value="" name="keyword" class="index_input_search" placeholder="请输入关键字,如:会计">
        <input type="submit" value="搜职位" class="index_input_btn">
      </div>
    </form>
    <nav>
      <dl class="nav_list">
        <a href="<?php 
        echo smarty_function_url(array('m' => 'mobile', 'c' => 'job'), $_smarty_tpl);
        ?>
">
        <dt class="cor_1"><i class="nav_icon fa fa-briefcase"></i></dt>
        <dd>找职位</dd>
        </a>
      </dl>
      <dl class="nav_list">
        <a href="<?php 
        echo smarty_function_url(array('m' => 'mobile', 'c' => 'resume'), $_smarty_tpl);
        ?>
">
        <dt class="cor_2"><i class="nav_icon fa fa-graduation-cap"></i></dt>
        <dd>找人才</dd>
        </a>
      </dl>
      <dl class="nav_list">
        <a href="<?php 
        echo smarty_function_url(array('m' => 'mobile', 'c' => 'company'), $_smarty_tpl);
        ?>
">
        <dt class="cor_3"><i class="nav_icon fa fa-building-o"></i></dt>
        <dd>找企业</dd>
        </a>
      </dl>
      <dl class="nav_list">
        <a href="<?php 
        echo smarty_function_url(array('m' => 'mobile', 'c' => 'job', 'rec' => 1), $_smarty_tpl);
        ?>
">
        <dt class="cor_4"><i class="nav_icon fa fa-thumbs-up"></i></dt>
        <dd>职位推荐</dd>
        </a>
      </dl>
           <dl class="nav_list">
        <a href="<?php 
        echo smarty_function_url(array('m' => 'mobile', 'c' => 'map'), $_smarty_tpl);
        ?>
">
        <dt class="cor_5"><i class="nav_icon fa fa-map-marker"></i></dt>
        <dd>附近职位</dd>
        </a>
      </dl> <dl class="nav_list">
        <a href="<?php 
        echo smarty_function_url(array('m' => 'mobile', 'c' => 'once'), $_smarty_tpl);
        ?>
">
        <dt class="cor_6"><i class="nav_icon fa fa-tasks"></i></dt>
        <dd>微招聘</dd>
        </a>
      </dl>
      <dl class="nav_list">
        <a href="<?php 
        echo smarty_function_url(array('m' => 'mobile', 'c' => 'tiny'), $_smarty_tpl);
        ?>
">
        <dt class="cor_7"><i class="nav_icon fa fa-users"></i></dt>
        <dd>微简历</dd>
        </a>
      </dl>
      <dl class="nav_list">
        <a href="<?php 
        echo smarty_function_url(array('m' => 'mobile', 'c' => 'article'), $_smarty_tpl);
        ?>
">
        <dt class="cor_8"><i class="nav_icon fa fa-newspaper-o"></i></dt>
        <dd>看资讯</dd>
        </a>
      </dl>

    </nav>
  </div>
</section>

<div class="clear"></div>
<section>
  <div  class="index_hotlist"> <?php 
        $_smarty_tpl->tpl_vars['keylist'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['keylist']->_loop = false;
        global $config;
        eval('$paramer=array("limit"=>"16","type"=>"3","recom"=>"1","item"=>"\'keylist\'","iswap"=>"1","nocache"=>"")
;');
        $list = array();
        if ($paramer[recom]) {
            $tuijian = 1;
        }
        if ($paramer[type]) {
            $type = $paramer[type];
        }
        if ($paramer[limit]) {
            $limit = $paramer[limit];
        } else {
            $limit = 20;
        }
        include PLUS_PATH . "/keyword.cache.php";
        if ($paramer[iswap]) {
            $wap = "/wap";
        } else {
            $index = 1;
        }
        if (is_array($keyword)) {
            if ($paramer[iswap]) {
                $i = 0;
                foreach ($keyword as $k => $v) {
                    if ($tuijian && $v[tuijian] != 1) {
                        continue;
                    }
                    if ($type && $v[type] != $type) {
                        continue;
                    }
                    $i++;
                    if ($v[type] == "1") {
                        $v[url] = Url("wap", array("c" => "once", "keyword" => $v['key_name']));
                        $v[type_name] = '一句话招聘';
                    } elseif ($v['type'] == "13") {
                        $v['url'] = Url("wap", array("c" => "tiny", "keyword" => $v['key_name']));
                        $v['type_name'] = '微简历';
                    } elseif ($v[type] == "3") {
                        $v[url] = Url("wap", array("c" => "job", "keyword" => $v['key_name']));
                        $v[type_name] = '职位';
                    } elseif ($v['type'] == "4") {
                        $v['url'] = Url("wap", array("c" => "company", "keyword" => $v['key_name']));
                        $v['type_name'] = '公司';
                    } elseif ($v['type'] == "5") {
                        $v['url'] = Url("wap", array("c" => "resume", "keyword" => $v['key_name']));
                        $v['type_name'] = '人才';
                    }
                    $v['key_title'] = $v['key_name'];
                    if ($v['color']) {
                        $v['key_name'] = "<font color=\"" . $v['color'] . "\">" . $v['key_name'] . "</font>";
                    }
                    $list[] = $v;
                    if ($i == $limit) {
                        break;
                    }
                }
            } else {
                $i = 0;
                foreach ($keyword as $k => $v) {
                    if ($tuijian && $v['tuijian'] != 1) {
                        continue;
                    }
                    if ($type && $v['type'] != $type) {
                        continue;
                    }
                    $i++;
                    if ($v['type'] == "1") {
                        $v['url'] = Url("once", array("keyword" => $v['key_name']));
                        $v['type_name'] = '一句话招聘';
                    } elseif ($v['type'] == "13") {
                        $v['url'] = Url("tiny", array("keyword" => $v['key_name']));
                        $v['type_name'] = '微简历';
                    } elseif ($v['type'] == "3") {
                        $v['url'] = Url("job", array("c" => "search", "keyword" => $v['key_name']));
                        $v['type_name'] = '职位';
                    } elseif ($v['type'] == "4") {
                        $v['url'] = Url("company", array("keyword" => $v['key_name']));
                        $v['type_name'] = '公司';
                    } elseif ($v['type'] == "5") {
                        $v['url'] = Url("resume", array("c" => "search", "keyword" => $v['key_name']));
                        $v['type_name'] = '人才';
                    } else {
                        if ($v['type'] == "12") {
                            $v['url'] = Url("ask", array("c" => "search", "keyword" => $v['key_name']));
                            $v['type_name'] = '问答';
                        }
                    }
                    $v['key_title'] = $v['key_name'];
                    if ($v['color']) {
                        $v['key_name'] = "<font color=\"" . $v['color'] . "\">" . $v['key_name'] . "</font>";
                    }
                    $list[] = $v;
                    if ($i == $limit) {
                        break;
                    }
                }
            }
        }
        $list = $list;
        if (!is_array($list) && !is_object($list)) {
            settype($list, 'array');
        }
        foreach ($list as $_smarty_tpl->tpl_vars['keylist']->key => $_smarty_tpl->tpl_vars['keylist']->value) {
            $_smarty_tpl->tpl_vars['keylist']->_loop = true;
            ?>
 <a href="<?php 
            echo $_smarty_tpl->tpl_vars['keylist']->value['url'];
            ?>
"><span><?php 
            echo $_smarty_tpl->tpl_vars['keylist']->value['key_name'];
            ?>
</span></a> <?php 
        }
        ?>
 </div>
</section>
<div class="clear"></div>
<section>
  <div class="index_warp_content mt10">
    <div class="wap_title"><span class="">职位推荐</span><a href="<?php 
        echo smarty_function_url(array('m' => 'mobile', 'c' => 'job', 'rec' => 1), $_smarty_tpl);
        ?>
" class="more">更多>></a></div>
    <?php 
        $_smarty_tpl->tpl_vars['job'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['job']->_loop = false;
        $job = $job;
        if (!is_array($job) && !is_object($job)) {
            settype($job, 'array');
        }
        foreach ($job as $_smarty_tpl->tpl_vars['job']->key => $_smarty_tpl->tpl_vars['job']->value) {
            $_smarty_tpl->tpl_vars['job']->_loop = true;
            ?>
    <div class="job_list_box"> <a href="<?php 
            echo smarty_function_url(array('m' => 'mobile', 'c' => 'job', 'a' => 'view', 'id' => $_smarty_tpl->tpl_vars['job']->value['id']), $_smarty_tpl);
            ?>
" class="job_list">
      <h3><?php 
            echo mb_substr($_smarty_tpl->tpl_vars['job']->value['name'], 0, 12, 'gbk');
            if ($_smarty_tpl->tpl_vars['job']->value['urgent_time'] > time()) {
                ?>
<i class="urgent">急招</i><?php 
            }
            ?>
</h3>
      <aside class="job_qy_name"><?php 
            echo $_smarty_tpl->tpl_vars['job']->value['job_city_one'];
            ?>
-<?php 
            echo $_smarty_tpl->tpl_vars['job']->value['job_city_two'];
            ?>
<em class="line">|</em><?php 
            echo mb_substr($_smarty_tpl->tpl_vars['job']->value['com_name'], 0, 12, 'gbk');
            ?>
</aside>
      <aside class="job_pay"><strong><?php 
            echo $_smarty_tpl->tpl_vars['job']->value['job_salary'];
            ?>
</strong><span class="job_date"><?php 
            echo $_smarty_tpl->tpl_vars['job']->value['lastupdate'];
            ?>
</span></aside>
      </a> </div>
    <?php 
        }
        ?>
 </div>
</section>
<style>
    .previous, .next, .flickity-page-dots {
        display: none;
    }
    .example,.gallery {margin-bottom:0px !important;
    }
</style>
<?php 
        echo '<script';
        ?>
 type="text/javascript">
    $(function () {
        $(".example__demo img").width($(document.body).width());
    }); 
<?php 
        echo '</script';
        ?>
>
<?php 
    }
    function content_55f96dd224ed94_36513252($_smarty_tpl)
    {
        if (!is_callable('smarty_function_searchurl')) {
            include 'D:\\wamp\\www\\qyhr\\app\\include\\libs\\plugins\\function.searchurl.php';
        }
        if (!is_callable('smarty_function_url')) {
            include 'D:\\wamp\\www\\qyhr\\app\\include\\libs\\plugins\\function.url.php';
        }
        global $db, $db_config, $config;
        $time = time();
        eval('$paramer=array("namelen"=>"15","comlen"=>"15","ispage"=>"1","jobin"=>"\'auto.jobin\'","hy"=>"\'auto.hy\'","pr"=>"\'auto.pr\'","mun"=>"\'auto.mun\'","provinceid"=>"\'auto.provinceid\'","cityid"=>"\'auto.cityid\'","type"=>"\'auto.type\'","edu"=>"\'auto.edu\'","exp"=>"\'auto.exp\'","sex"=>"\'auto.sex\'","salary"=>"\'auto.salary\'","keyword"=>"\'auto.keyword\'","urgent"=>"\'auto.urgent\'","limit"=>"20","item"=>"\'job_list\'","islt"=>"4","nocache"=>"")
;');
        $ParamerArr = GetSmarty($paramer, $_GET, $_smarty_tpl);
        $paramer = $ParamerArr[arr];
        $Purl = $ParamerArr[purl];
        global $ModuleName;
        if (!$Purl["m"]) {
            $Purl["m"] = $ModuleName;
        }
        if ($config[sy_web_site] == "1") {
            if ($config[cityid] > 0 && $config[cityid] != "") {
                $paramer[cityid] = $config[cityid];
            }
            if ($config[three_cityid] > 0 && $config[three_cityid] != "") {
                $paramer[three_cityid] = $config[three_cityid];
            }
            if ($config[hyclass] > 0 && $config[hyclass] != "") {
                $paramer[hy] = $config[hyclass];
            }
        }
        if ($paramer[sdate]) {
            $where = "`sdate`>" . strtotime("-" . intval($paramer[sdate]) . " day", time()) . " and `edate`>'{$time}' and `state`=1";
        } else {
            $where = "`edate`>'{$time}' and `state`=1";
        }
        if ($paramer[uid]) {
            $where .= " AND `uid` = '{$paramer['uid']}'";
        }
        if ($paramer[rec]) {
            $where .= " AND `rec_time`>" . time();
        }
        if ($paramer['cert']) {
            $company = $db->select_all("company", "`yyzz_status`=1", "`uid`");
            if (is_array($company)) {
                foreach ($company as $v) {
                    $job_uid[] = $v['uid'];
                }
            }
            $where .= " and `uid` in (" . @implode(",", $job_uid) . ")";
        }
        if ($paramer[noid]) {
            $where .= " and `id`<>{$paramer['noid']}";
        }
        if ($paramer[r_status]) {
            $where .= " and `r_status`=2";
        } else {
            $where .= " and `r_status`<>2";
        }
        if ($paramer[status]) {
            $where .= " and `status`=1";
        } else {
            $where .= " and `status`<>1";
        }
        if ($paramer[pr]) {
            $where .= " AND `pr` ={$paramer['pr']}";
        }
        if ($paramer['hy']) {
            $where .= " AND `hy` = {$paramer['hy']}";
        }
        if ($paramer[mun]) {
            $where .= " AND `mun` = {$paramer['mun']}";
        }
        if ($paramer[job1]) {
            $where .= " AND `job1` = {$paramer['job1']}";
        }
        if ($paramer[job1_son]) {
            $where .= " AND `job1_son` = {$paramer['job1_son']}";
        }
        if ($paramer[job_post]) {
            $where .= " AND (`job_post` IN ({$paramer['job_post']}))";
        }
        if ($paramer['jobwhere']) {
            $where .= " and " . $paramer['jobwhere'];
        }
        if ($paramer['jobids']) {
            $where .= " AND (`job1` = {$paramer['jobids']} OR `job1_son`={$paramer['jobids']} OR `job_post`={$paramer['jobids']})";
        }
        if ($paramer['jobin']) {
            $where .= " AND (`job1` IN ({$paramer['jobin']}) OR `job1_son` IN ({$paramer['jobin']}) OR `job_post` IN ({$paramer['jobin']}))";
        }
        if ($paramer[provinceid]) {
            $where .= " AND `provinceid` = {$paramer['provinceid']}";
        }
        if ($paramer['cityid']) {
            $where .= " AND (`cityid` IN ({$paramer['cityid']}))";
        }
        if ($paramer['three_cityid']) {
            $where .= " AND (`three_cityid` IN ({$paramer['three_cityid']}))";
        }
        if ($paramer['cityin']) {
            $where .= " AND `three_cityid` IN ({$paramer['cityin']})";
        }
        if ($paramer[edu]) {
            $where .= " AND `edu` = {$paramer['edu']}";
        }
        if ($paramer[exp]) {
            $where .= " AND `exp` = {$paramer['exp']}";
        }
        if ($paramer[type]) {
            $where .= " AND `type` = {$paramer['type']}";
        }
        if ($paramer[sex]) {
            $where .= " AND `sex` = {$paramer['sex']}";
        }
        if ($paramer[salary]) {
            $where .= " AND `salary` = {$paramer['salary']}";
        }
        if ($paramer[cityin]) {
            $where .= " AND( AND `provinceid` IN ({$paramer['cityin']}) OR `cityid` IN ({$paramer['cityin']}) OR `three_cityid` IN ({$paramer['cityin']}))";
        }
        if ($paramer[urgent]) {
            $where .= " AND `urgent_time`>" . time();
        }
        if ($paramer[uptime]) {
            $uptime = $time - $paramer[uptime] * 86400;
            $where .= " AND `lastupdate`>{$uptime}";
        }
        if ($paramer[comname]) {
            $where .= " AND `com_name` LIKE '%" . $paramer[comname] . "%'";
        }
        if ($paramer[com_pro]) {
            $where .= " AND `com_provinceid` ='" . $paramer[com_pro] . "'";
        }
        if ($paramer[keyword]) {
            $where1[] = "`name` LIKE '%" . $paramer[keyword] . "%'";
            $where1[] = "`com_name` LIKE '%" . $paramer[keyword] . "%'";
            include PLUS_PATH . "/city.cache.php";
            foreach ($city_name as $k => $v) {
                if (strpos($v, $paramer[keyword]) !== false) {
                    $cityid[] = $k;
                }
            }
            if (is_array($cityid)) {
                foreach ($cityid as $value) {
                    $class[] = "(provinceid = '" . $value . "' or cityid = '" . $value . "')";
                }
                $where1[] = @implode(" or ", $class);
            }
            $where .= " AND (" . @implode(" or ", $where1) . ")";
        }
        if ($paramer["job"]) {
            $where .= " AND `job_post` in ({$paramer['job']})";
        }
        if ($paramer[order] && $paramer[order] != "lastdate") {
            $order = " ORDER BY " . str_replace("'", "", $paramer[order]) . "  ";
        } else {
            $order = " ORDER BY `lastupdate` ";
        }
        if ($paramer[sort]) {
            $sort = $paramer[sort];
        } else {
            $sort = " DESC";
        }
        if ($paramer['orderby'] == "rec") {
            $nowtime = time();
            $where .= " ORDER BY if(rec_time>{$nowtime},rec_time,lastupdate)  desc";
        } else {
            $where .= $order . $sort;
        }
        if ($paramer[where]) {
            $where = $paramer[where];
        }
        if ($paramer[limit]) {
            $limit = " limit " . $paramer[limit];
        }
        if ($paramer[ispage]) {
            $limit = PageNav($paramer, $_GET, "company_job", $where, $Purl, "", $paramer[limit] ? $paramer[limit] : "6", $_smarty_tpl);
            $_smarty_tpl->tpl_vars["firmurl"] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars["firmurl"]->value = $config['sy_weburl'] . "/index.php?m=job" . $ParamerArr[firmurl];
        }
        $job_list = $db->select_all("company_job", $where . $limit);
        if (is_array($job_list)) {
            $cache_array = $db->cacheget();
            $comuid = $jobid = array();
            foreach ($job_list as $key => $value) {
                if (in_array($value['uid'], $comuid) == false) {
                    $comuid[] = $value['uid'];
                }
                if (in_array($value['id'], $jobid) == false) {
                    $jobid[] = $value['id'];
                }
            }
            $comuids = @implode(',', $comuid);
            $jobids = @implode(',', $jobid);
            if ($comuids) {
                $r_uids = $db->select_all("company", "`uid` IN (" . $comuids . ")", "`uid`,`yyzz_status`");
                if (is_array($r_uids)) {
                    foreach ($r_uids as $key => $value) {
                        $r_uid[$value['uid']] = $value['yyzz_status'];
                    }
                }
            }
            include PLUS_PATH . "/comrating.cache.php";
            foreach ($job_list as $key => $value) {
                $job_list[$key] = $db->array_action($value, $cache_array);
                $job_list[$key][stime] = date("Y-m-d", $value[sdate]);
                $job_list[$key][etime] = date("Y-m-d", $value[edate]);
                $job_list[$key][lastupdate] = date("Y-m-d", $value[lastupdate]);
                $job_list[$key][yyzz_status] = $r_uid[$value['uid']]['yyzz_status'];
                $time = time() - $value['lastupdate'];
                if ($time > 86400 && $time < 604800) {
                    $job_list[$key]['time'] = ceil($time / 86400) . "天前";
                } elseif ($time > 3600 && $time < 86400) {
                    $job_list[$key]['time'] = ceil($time / 3600) . "小时前";
                } elseif ($time > 60 && $time < 3600) {
                    $job_list[$key]['time'] = ceil($time / 60) . "分钟前";
                } elseif ($time < 60) {
                    $job_list[$key]['time'] = "刚刚";
                } else {
                    $job_list[$key]['time'] = date("Y-m-d", $value['lastupdate']);
                }
                if (is_array($job_list[$key]['welfare']) && $job_list[$key]['welfare']) {
                    foreach ($job_list[$key]['welfare'] as $val) {
                        $job_list[$key]['welfarename'][] = $cache_array['comclass_name'][$val];
                    }
                }
                if ($paramer[comlen]) {
                    $job_list[$key][com_n] = mb_substr($value['com_name'], 0, $paramer[comlen], "GBK");
                }
                if ($paramer[namelen]) {
                    if ($value['rec_time'] > time()) {
                        $job_list[$key][name_n] = "<font color='red'>" . mb_substr($value['name'], 0, $paramer[namelen], "GBK") . "</font>";
                    } else {
                        $job_list[$key][name_n] = mb_substr($value['name'], 0, $paramer[namelen], "GBK");
                    }
                } else {
                    if ($value['rec_time'] > time()) {
                        $job_list[$key]['name_n'] = "<font color='red'>" . $value['name'] . "</font>";
                    }
                }
                $job_list[$key][job_url] = Url("job", array("c" => "comapply", "id" => $value[id]), "1");
                $job_list[$key][com_url] = Url("company", array("c" => "show", "id" => $value[uid]));
                foreach ($comrat as $k => $v) {
                    if ($value[rating] == $v[id]) {
                        $job_list[$key][color] = str_replace("#", "", $v[com_color]);
                        $job_list[$key][ratlogo] = $v[com_pic];
                        $job_list[$key][ratname] = $v[name];
                    }
                }
                if ($paramer[keyword]) {
                    $job_list[$key][name] = str_replace($paramer[keyword], "<font color=#FF6600 >" . $paramer[keyword] . "</font>", $value[name]);
                    $job_list[$key][com_name] = str_replace($paramer[keyword], "<font color=#FF6600 >" . $paramer[keyword] . "</font>", $value[com_name]);
                    $job_list[$key][name_n] = str_replace($paramer[keyword], "<font color=#FF6600 >" . $paramer[keyword] . "</font>", $job_list[$key][name_n]);
                    $job_list[$key][com_n] = str_replace($paramer[keyword], "<font color=#FF6600 >" . $paramer[keyword] . "</font>", $job_list[$key][com_n]);
                    $job_list[$key][job_city_one] = str_replace($paramer[keyword], "<font color=#FF6600 >" . $paramer[keyword] . "</font>", $city_name[$value[provinceid]]);
                    $job_list[$key][job_city_two] = str_replace($paramer[keyword], "<font color=#FF6600 >" . $paramer[keyword] . "</font>", $city_name[$value[cityid]]);
                }
            }
            if (is_array($job_list)) {
                if ($paramer[keyword] != "" && !empty($job_list)) {
                    addkeywords('3', $paramer[keyword]);
                }
            }
        }
        ?>

 <?php 
        echo '<script';
        ?>
 src="<?php 
        echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];
        ?>
/app/template/mobile/js/search.js" language="javascript"><?php 
        echo '</script';
        ?>
>
<section>
  <div class="searchOptions clearfix">
    <ul class="searchOptions_list">
      <li onclick="checkshowjob('city');"><a href="javascript:void(0);" class="searchOptions_list_a"><?php 
        if ($_smarty_tpl->tpl_vars['city_name']->value[$_GET['cityid']] || $_smarty_tpl->tpl_vars['city_name']->value[$_GET['provinceid']]) {
            echo $_smarty_tpl->tpl_vars['city_name']->value[$_GET['cityid']];
            echo $_smarty_tpl->tpl_vars['city_name']->value[$_GET['provinceid']];
        } else {
            ?>
区域<?php 
        }
        ?>
<i class="searchOptions_icon fa fa-caret-down"></i></a></li>
      <li onclick="checkshowjob('job');"><a href="javascript:void(0);" class="searchOptions_list_a"><?php 
        if ($_smarty_tpl->tpl_vars['jobname']->value) {
            echo $_smarty_tpl->tpl_vars['jobname']->value;
        } else {
            ?>
职能<?php 
        }
        ?>
<i class="searchOptions_icon fa fa-caret-down"></i></a></li>
      <li onclick="show_div('open')"><a href="javascript:void(0);" class="searchOptions_list_a"><?php 
        if ($_smarty_tpl->tpl_vars['comclass_name']->value[$_GET['salary']]) {
            echo $_smarty_tpl->tpl_vars['comclass_name']->value[$_GET['salary']];
        } else {
            ?>
薪资<?php 
        }
        ?>
<i class="searchOptions_icon fa fa-caret-down"></i></a></li>
      <li onclick="show_div('open2')" style="border:none"><a href="javascript:void(0);" class="searchOptions_list_a">更多<i class="searchOptions_icon fa fa-caret-down"></i></a></li>
      <input type="hidden" id="searchurl" value="<?php 
        echo $_smarty_tpl->tpl_vars['searchurl']->value;
        ?>
" />
      <input type="hidden" id="waptype" value="1" />
    </ul>

    <!--薪资弹出框-->
    <div class="job_pop_box openlist" id="open">
      <ul class="job_pop_pay_list">
        <?php 
        $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['v']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['comdata']->value['job_salary'];
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) {
            $_smarty_tpl->tpl_vars['v']->_loop = true;
            ?>
        <li><a href="<?php 
            echo smarty_function_searchurl(array('m' => 'mobile', 'c' => 'job', 'salary' => $_smarty_tpl->tpl_vars['v']->value, 'untype' => 'salary'), $_smarty_tpl);
            ?>
"><?php 
            echo $_smarty_tpl->tpl_vars['comclass_name']->value[$_smarty_tpl->tpl_vars['v']->value];
            ?>
</a></li>
        <?php 
        }
        ?>
      </ul>
    </div>
    <!--更多弹出框-->
    <div class="job_pop_more openlist" id="open2">
      <form method="get" action="">
        <input type="hidden" name="c" value="job" />
        <?php 
        if ($_GET['jobin']) {
            ?>
<input type="hidden" name="jobin" value="<?php 
            echo $_GET['jobin'];
            ?>
" /><?php 
        }
        ?>
        <?php 
        if ($_GET['cityid']) {
            ?>
<input type="hidden" name="cityid" value="<?php 
            echo $_GET['cityid'];
            ?>
" /><?php 
        }
        ?>
        <?php 
        if ($_GET['provinceid']) {
            ?>
<input type="hidden" name="provinceid" value="<?php 
            echo $_GET['provinceid'];
            ?>
" /><?php 
        }
        ?>
        <?php 
        if ($_GET['salary']) {
            ?>
<input type="hidden" name="salary" value="<?php 
            echo $_GET['salary'];
            ?>
" /><?php 
        }
        ?>
        <div class="com_search_box">
        <div class="com_search_box_cont">
          <div class="com_search_box_list">
            <div class="com_search_box_left"> 行业类别 </div>
            <div class="com_search_box_right">
              <div class="selectOption" style="width: 100%">
                <select name="hy">
                  <option value="">行业类别</option>                          
				<?php 
        $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['v']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['industry_index']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) {
            $_smarty_tpl->tpl_vars['v']->_loop = true;
            ?>
				
                  <option value="<?php 
            echo $_smarty_tpl->tpl_vars['v']->value;
            ?>
" <?php 
            if ($_GET['hy'] == $_smarty_tpl->tpl_vars['v']->value) {
                ?>
selected="selected"<?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->tpl_vars['industry_name']->value[$_smarty_tpl->tpl_vars['v']->value];
            ?>
</option>
                 <?php 
        }
        ?>
 			  
                </select>
              </div>
            </div>
          </div>
          <div class="com_search_box_list">
            <div class="com_search_box_left"> 公司性质</div>
            <div class="com_search_box_right">
              <div class="selectOption" style="width: 100%">
                <select name="pr" id='pr'>
                  <option value="">公司性质</option>                 
					<?php 
        $_smarty_tpl->tpl_vars['pr'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['pr']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['comdata']->value['job_pr'];
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['pr']->key => $_smarty_tpl->tpl_vars['pr']->value) {
            $_smarty_tpl->tpl_vars['pr']->_loop = true;
            ?>
					
                  <option value="<?php 
            echo $_smarty_tpl->tpl_vars['pr']->value;
            ?>
" <?php 
            if ($_GET['pr'] == $_smarty_tpl->tpl_vars['pr']->value) {
                ?>
selected="selected"<?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->tpl_vars['comclass_name']->value[$_smarty_tpl->tpl_vars['pr']->value];
            ?>
</option>                
					<?php 
        }
        ?>
				
                </select>
              </div>
            </div>
          </div>
          <div class="com_search_box_list">
            <div class="com_search_box_left"> 公司规模</div>
            <div class="com_search_box_right">
              <div class="selectOption" style="width: 100%">
                <select name="num" id='num'>
                  <option value="">公司规模</option>                  
				<?php 
        $_smarty_tpl->tpl_vars['num'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['num']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['comdata']->value['job_mun'];
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['num']->key => $_smarty_tpl->tpl_vars['num']->value) {
            $_smarty_tpl->tpl_vars['num']->_loop = true;
            ?>
				
                  <option value="<?php 
            echo $_smarty_tpl->tpl_vars['num']->value;
            ?>
" <?php 
            if ($_GET['num'] == $_smarty_tpl->tpl_vars['num']->value) {
                ?>
selected="selected"<?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->tpl_vars['comclass_name']->value[$_smarty_tpl->tpl_vars['num']->value];
            ?>
</option>                  
				<?php 
        }
        ?>
		    
                </select>
              </div>
            </div>
          </div>
          <div class="com_search_box_list">
            <div class="com_search_box_left"> 工作经验 </div>
            <div class="com_search_box_right">
              <div class="selectOption" style="width: 100%">
                <select name="exp" id='exp'>
                  <option value="">工作经验</option>                  
					<?php 
        $_smarty_tpl->tpl_vars['exp'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['exp']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['comdata']->value['job_exp'];
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['exp']->key => $_smarty_tpl->tpl_vars['exp']->value) {
            $_smarty_tpl->tpl_vars['exp']->_loop = true;
            ?>
					
                  <option value="<?php 
            echo $_smarty_tpl->tpl_vars['exp']->value;
            ?>
" <?php 
            if ($_GET['exp'] == $_smarty_tpl->tpl_vars['exp']->value) {
                ?>
selected="selected"<?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->tpl_vars['comclass_name']->value[$_smarty_tpl->tpl_vars['exp']->value];
            ?>
</option>                  
					<?php 
        }
        ?>
			
                </select>
              </div>
            </div>
          </div>
          <div class="com_search_box_list">
            <div class="com_search_box_left"> 学历要求</div>
            <div class="com_search_box_right">
              <div class="selectOption" style="width: 100%">
                <select name="edu" id='edu'>
                  <option value="">学历要求</option>                  
				<?php 
        $_smarty_tpl->tpl_vars['edu'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['edu']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['comdata']->value['job_edu'];
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['edu']->key => $_smarty_tpl->tpl_vars['edu']->value) {
            $_smarty_tpl->tpl_vars['edu']->_loop = true;
            ?>
				
                  <option value="<?php 
            echo $_smarty_tpl->tpl_vars['edu']->value;
            ?>
" <?php 
            if ($_GET['edu'] == $_smarty_tpl->tpl_vars['edu']->value) {
                ?>
selected="selected"<?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->tpl_vars['comclass_name']->value[$_smarty_tpl->tpl_vars['edu']->value];
            ?>
</option>                  
				<?php 
        }
        ?>
 		    
                </select>
              </div>
            </div>
          </div>
          <div class="com_search_box_list">
            <div class="com_search_box_left"> 工作性质 </div>
            <div class="com_search_box_right">
              <div class="selectOption" style="width: 100%">
                <select name="type" id='type'>
                  <option value=""> 工作性质</option>                  
				<?php 
        $_smarty_tpl->tpl_vars['type'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['type']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['comdata']->value['job_type'];
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['type']->key => $_smarty_tpl->tpl_vars['type']->value) {
            $_smarty_tpl->tpl_vars['type']->_loop = true;
            ?>
				
                  <option value="<?php 
            echo $_smarty_tpl->tpl_vars['type']->value;
            ?>
" <?php 
            if ($_GET['type'] == $_smarty_tpl->tpl_vars['type']->value) {
                ?>
selected="selected"<?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->tpl_vars['comclass_name']->value[$_smarty_tpl->tpl_vars['type']->value];
            ?>
</option>                  
				<?php 
        }
        ?>
 		    
                </select>
              </div>
            </div>
          </div>
          <div class="com_search_box_list">
            <div class="com_search_box_left"> 更新日期</div>
            <div class="com_search_box_right">
              <div class="selectOption" style="width: 100%">
                <select name="uptime" id='uptime'>
                  <option value="">更新日期</option>
				<?php 
        $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['v']->_loop = false;
        $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['uptime']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) {
            $_smarty_tpl->tpl_vars['v']->_loop = true;
            $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['v']->key;
            ?>
                  <option value="<?php 
            echo $_smarty_tpl->tpl_vars['key']->value;
            ?>
" <?php 
            if ($_GET['uptime'] == $_smarty_tpl->tpl_vars['key']->value) {
                ?>
selected="selected"<?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->tpl_vars['v']->value;
            ?>
</option>
				<?php 
        }
        ?>
 
                </select>
              </div>
            </div>
          </div>
          <input type="submit" value="搜索"class="seach_post_sub" />
        </div>
      </form>
    </div>
  </div>
  <!--更多end-->  
  </div>
</section>
<section>
  <div class="warp_content clear">
    <form method="get" action="<?php 
        echo $_smarty_tpl->tpl_vars['config_weburl']->value;
        ?>
/mobile/index.php">
      <input type="hidden" name="c" value="job" />
      <div class="formFiled">
        <input type="text" value="<?php 
        echo $_GET['keyword'];
        ?>
" name="keyword" class="input_search" placeholder="请输入关键字">
        <input type="submit" value="搜索" class="input_btn">
      </div>
    </form>
    <div class="job_list_content"> <?php 
        $_smarty_tpl->tpl_vars['job_list'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['job_list']->_loop = false;
        $job_list = $job_list;
        if (!is_array($job_list) && !is_object($job_list)) {
            settype($job_list, 'array');
        }
        foreach ($job_list as $_smarty_tpl->tpl_vars['job_list']->key => $_smarty_tpl->tpl_vars['job_list']->value) {
            $_smarty_tpl->tpl_vars['job_list']->_loop = true;
            ?>
      <div class="job_list_box"> <a href="<?php 
            echo smarty_function_url(array('m' => 'wap', 'c' => 'job', 'a' => 'view', 'id' => $_smarty_tpl->tpl_vars['job_list']->value['id']), $_smarty_tpl);
            ?>
" class="job_list">
        <h3><?php 
            echo $_smarty_tpl->tpl_vars['job_list']->value['name_n'];
            if ($_smarty_tpl->tpl_vars['job_list']->value['urgent_time'] > time()) {
                ?>
<i class="urgent">急招</i><?php 
            }
            ?>
</h3>
        <aside class="job_qy_name"><?php 
            echo $_smarty_tpl->tpl_vars['job_list']->value['job_city_one'];
            ?>
-<?php 
            echo $_smarty_tpl->tpl_vars['job_list']->value['job_city_two'];
            ?>
<em class="line">|</em><?php 
            echo mb_substr($_smarty_tpl->tpl_vars['job_list']->value['com_name'], 0, 12, 'gbk');
            ?>
</aside>
        <aside class="job_pay"><strong><?php 
            echo $_smarty_tpl->tpl_vars['job_list']->value['job_salary'];
            ?>
</strong><span class="job_date"><?php 
            echo $_smarty_tpl->tpl_vars['job_list']->value['time'];
            ?>
</span></aside>
        </a> </div>
      <?php 
        }
        ?>
      <?php 
        if ($_smarty_tpl->tpl_vars['total']->value <= 0) {
            ?>
      <?php 
            if ($_GET['keyword'] != '') {
                ?>
      <div class="wap_member_no">没有搜索到职位</div>
      <?php 
            } else {
                ?>
      <div class="wap_member_no">暂无职位</div>
      <?php 
            }
            ?>
      <?php 
        } else {
            ?>
      <div class="pages"><?php 
            echo $_smarty_tpl->tpl_vars['pagenav']->value;
            ?>
</div>
      <?php 
        }
        ?>
 </div>
  </div>
  </div>
</section>
<link rel="stylesheet" href="<?php 
        echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];
        ?>
/app/template/wap/css/wap_tck.css" type="text/css">
<?php 
        echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['wapstyle']->value . "/public.htm", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
        ?>

<?php 
        echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['wapstyle']->value . "/footer.htm", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
        ?>
 <?php 
    }
Ejemplo n.º 6
0
function HTMLBody()
{
    $page = Page::getInstance();
    $html = "<body>";
    $html .= "<div id='pageCSS'>" . $page->getCSS() . "</div>";
    $html .= "<header class='headerContainer' >";
    $html .= SiteHeader();
    $html .= "</header>";
    $html .= "<nav class='menuContainer'>";
    $html .= SiteMenu();
    $html .= "</nav>";
    $html .= "<div class='pageContainer'>";
    $html .= "<div class='module module--page pageWrapper'>";
    $html .= PageHeader();
    $html .= PageNav();
    $html .= PageContent();
    $html .= PageAds();
    $html .= "</div>";
    $html .= "</div>";
    $html .= "<footer class='footerContainer'>";
    $html .= SiteFooter();
    $html .= "</footer>";
    /*
        $html .= "<script>var DEBUG = true, FORCE_PROMISE = this['Promise']?false:true;</script>";
        $html.= js('_assets/es6/vendors/browser');
        $html.= js('_assets/es6/vendors/system-polyfills');
        $html.= js('_assets/es6/vendors/system');
        $html .= "<script>";
        $html .= "System.config({";
        $html .= "    transpiler: 'babel'";
        //$html .= "    baseURL: '_assets/es6/olli'";
        $html .= "  });";
        $html .= "System.import('_assets/es6/olli/olli-test.js?cache=".time()."');";
        $html .="</script>";
    */
    /*
        $html .= js('js/dist/app.min');
    */
    //    /*
    $html .= "<script>var DEBUG = true, FORCE_PROMISE = this['Promise']?false:true;</script>";
    $html .= js('_assets/es6/vendors/browser');
    $html .= js('_assets/es6/vendors/system-polyfills');
    $html .= js('_assets/es6/vendors/system');
    $html .= "<script>";
    $html .= "System.config({";
    $html .= "    transpiler: 'babel'";
    //$html .= "    baseURL: '_assets/es6/olli'";
    $html .= "  });";
    $html .= "System.import('_assets/es6/app.js?cache=" . time() . "');";
    $html .= "</script>";
    //    */
    $html .= "</body>";
    return $html;
}