Example #1
0
function jobs_one($id)
{
    global $db;
    $id = intval($id);
    $db->query("update " . table('jobs') . " set click=click+1 WHERE id='{$id}'  LIMIT 1");
    $db->query("update " . table('jobs_search_hot') . " set click=click+1 WHERE id='{$id}'  LIMIT 1");
    $wheresql = " WHERE id='" . $id . "'";
    $sql = "select * from " . table('jobs') . $wheresql . " LIMIT 1";
    $val = $db->getone($sql);
    if (empty($val)) {
        $sql = "select * from " . table('jobs_tmp') . $wheresql . " LIMIT 1";
        $val = $db->getone($sql);
    }
    $val['amount'] = $val['amount'] == "0" ? '若干' : $val['amount'];
    $profile = company_one($val['company_id']);
    $val['company'] = $profile;
    $val['company_url'] = wap_url_rewrite("wap-company-show", array("id" => $val['company_id']));
    $sql = "select * from " . table('jobs_contact') . " where pid='{$id}' LIMIT 1";
    $contact = $db->getone($sql);
    $val['contact'] = $contact;
    if ($val['tag']) {
        $str = $val['tag'];
        $tag_arr = explode("|", $str);
        foreach ($tag_arr as $key => $value) {
            $tag_cn = explode(",", $value);
            $value = $tag_cn[1];
            $tag_arr[$key] = $value;
        }
        $val['tag_cn'] = $tag_arr;
    }
    return $val;
}
Example #2
0
function jobs_one($id)
{
    global $db;
    $id = intval($id);
    $db->query("update " . table('jobs') . " set click=click+1 WHERE id='{$id}'  LIMIT 1");
    $db->query("update " . table('jobs_search_hot') . " set click=click+1 WHERE id='{$id}'  LIMIT 1");
    $wheresql = " WHERE id='" . $id . "'";
    $sql = "select * from " . table('jobs') . $wheresql . " LIMIT 1";
    $val = $db->getone($sql);
    if (empty($val)) {
        $sql = "select * from " . table('jobs_tmp') . $wheresql . " LIMIT 1";
        $val = $db->getone($sql);
    }
    if (intval($_SESSION['uid']) > 0 && intval($_SESSION['utype']) == 2) {
        //检查该职位是否对此会员发起面试邀请,并且此会员没看
        $check_int = wap_check_interview(intval($_SESSION['uid']), $val['id']);
        if ($check_int) {
            wap_update_interview(intval($_SESSION['uid']), $val['id']);
        }
    }
    $val['amount'] = $val['amount'] == "0" ? '若干' : $val['amount'];
    $profile = company_one($val['company_id']);
    $val['company'] = $profile;
    $val['contents'] = htmlspecialchars_decode($val['contents'], ENT_QUOTES);
    $val['company_url'] = wap_url_rewrite("wap-company-show", array("id" => $val['company_id']));
    $sql = "select * from " . table('jobs_contact') . " where pid='{$id}' LIMIT 1";
    $contact = $db->getone($sql);
    $val['contact'] = $contact;
    if ($val['tag_cn']) {
        $tag_cn = explode(',', $val['tag_cn']);
        $val['tag_cn'] = $tag_cn;
    } else {
        $val['tag_cn'] = array();
    }
    return $val;
}
Example #3
0
<?php

/*
 * 74cms WAP
 * ============================================================================
 * 版权所有: 骑士网络,并保留所有权利。
 * 网站地址: http://www.74cms.com;
 * ----------------------------------------------------------------------------
 * 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和
 * 使用;不允许对程序代码以任何形式任何目的的再发布。
 * ============================================================================
*/
define('IN_QISHI', true);
define('REQUEST_MOBILE', true);
require_once dirname(__FILE__) . '/../include/common.inc.php';
require_once QISHI_ROOT_PATH . 'include/fun_wap.php';
require_once QISHI_ROOT_PATH . 'include/mysql.class.php';
$smarty->cache = false;
$db = new mysql($dbhost, $dbuser, $dbpass, $dbname);
require_once dirname(__FILE__) . '/weixin_share.php';
$show = company_one($_GET['id']);
wap_weixin_logon($_GET['from']);
$smarty->assign('jobsid', $_GET['jobsid']);
$smarty->assign('show', $show);
$smarty->assign('goback', $_SERVER["HTTP_REFERER"]);
$smarty->display("m/m-company-show.html");
Example #4
0
<?php

/*
 * 74cms WAP
 * ============================================================================
 * 版权所有: 骑士网络,并保留所有权利。
 * 网站地址: http://www.74cms.com;
 * ----------------------------------------------------------------------------
 * 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和
 * 使用;不允许对程序代码以任何形式任何目的的再发布。
 * ============================================================================
*/
define('IN_QISHI', true);
require_once dirname(__FILE__) . '/../include/common.inc.php';
require_once QISHI_ROOT_PATH . 'include/fun_wap.php';
require_once QISHI_ROOT_PATH . 'include/mysql.class.php';
$smarty->cache = false;
$db = new mysql($dbhost, $dbuser, $dbpass, $dbname);
require_once dirname(__FILE__) . '/weixin_share.php';
wap_weixin_logon($_GET['from']);
$smarty->assign('jobsid', $_GET['jobsid']);
$smarty->assign('show', company_one($_GET['id']));
$smarty->assign('goback', $_SERVER["HTTP_REFERER"]);
$smarty->display("m/m-company-show.html");