$MARRIAGE[0] = $L['all_marriage']; $EDUCATION[0] = $L['all_education']; $pagesize = $MOD['pagesize']; $offset = ($page - 1) * $pagesize; if ($action == 'resume') { $condition .= " AND open=3"; require MD_ROOT . '/resume.class.php'; $do = new resume($moduleid); $tags = $do->get_list($condition, 'edittime desc', $DT['cache_search'] ? 'CACHE' : ''); } else { if ($pptsql) { $condition .= $pptsql; } //PPT require MD_ROOT . '/job.class.php'; $do = new job($moduleid); $tags = $do->get_list($condition, $MOD['order'], $DT['cache_search'] ? 'CACHE' : ''); if ($tags && $kw) { foreach ($tags as $k => $v) { $tags[$k]['title'] = str_replace($kw, '<span class="highlight">' . $kw . '</span>', $v['title']); } if ($page == 1) { keyword($kw, $items, $moduleid); } } } } $showpage = 1; $seo_file = 'search'; include DT_ROOT . '/include/seo.inc.php'; include template('search', $module);
$status = isset($status) ? intval($status) : 3; in_array($status, array(1, 2, 3, 4)) or $status = 3; $condition = "username='******'"; $condition .= " AND status={$status}"; $typeid = isset($typeid) ? $typeid === '' ? -1 : intval($typeid) : -1; if ($keyword) { $condition .= " AND keyword LIKE '%{$keyword}%'"; } if ($catid) { $condition .= $CAT['child'] ? " AND catid IN (" . $CAT['arrchildid'] . ")" : " AND catid={$catid}"; } if ($typeid >= 0) { $condition .= " AND typeid={$typeid}"; } $timetype = strpos($MOD['order'], 'add') !== false ? 'add' : ''; $lists = $do->get_list($condition, $MOD['order']); break; } $head_title = lang($L['module_manage'], array($MOD['name'])); if ($_userid) { $nums = array(); for ($i = 1; $i < 5; $i++) { $r = $db->get_one("SELECT COUNT(*) AS num FROM {$DT_PRE}job WHERE username='******' AND status={$i}"); $nums[$i] = $r['num']; } $r = $db->get_one("SELECT COUNT(*) AS num FROM {$DT_PRE}job_talent WHERE username='******'"); $nums['talent'] = $r['num']; $r = $db->get_one("SELECT COUNT(*) AS num FROM {$DT_PRE}job_apply WHERE job_username ='******' AND status>0"); $nums['resume'] = $r['num']; } include template('my_job', 'member');
$itemid or msg('请选择' . $MOD['name']); $do->refresh($itemid); dmsg('刷新成功', $forward); break; case 'clear': $do->clear(); dmsg('清空成功', $forward); break; case 'level': $itemid or msg('请选择' . $MOD['name']); $level = intval($level); $do->level($itemid, $level); dmsg('级别设置成功', $forward); break; case 'recycle': $lists = $do->get_list('status=0' . $condition, $dorder[$order]); $menuid = 5; include tpl('index', $module); break; case 'reject': if ($itemid && !$psize) { $do->reject($itemid); dmsg('拒绝成功', $forward); } else { $lists = $do->get_list('status=1' . $condition, $dorder[$order]); $menuid = 4; include tpl('index', $module); } break; case 'expire': if (isset($refresh)) {