当前仓库属于关闭状态,部分功能使用受限,详情请查阅 仓库状态说明
1 Star 2 Fork 1

fotomxq / FTM-CMS
关闭

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
candadites.php 1.17 KB
一键复制 编辑 原始数据 按行查看 历史
FTM 提交于 2013-07-24 14:33 . 创建项目
<?php
/**
* 应聘工作
* @author fotomxq <fotomxq.me>
* @version 1
* @package page
*/
require('page.php');
//引入并声明candadites类
require(DIR_LIB . DS . 'sys-candadites.php');
$sysCandadites = new SysCandadites($coreDB, $sysLog, CANDADITES_TIME_LIMIT);
//限制提交时间输出
$limitTime = CANDADITES_TIME_LIMIT;
$limitStr = '';
if ($limitTime <= 60) {
$limitStr = $limitTime . '秒';
} elseif ($limitTime > 60 && $limitTime <= 3600) {
$limitStr = ceil($limitTime / 60) . '分钟';
} elseif ($limitTime > 3600 && $limitTime <= 86400) {
$limitStr = ceil($limitTime / 60 / 60) . '小时';
} elseif ($limitTime > 86400) {
$limitStr = ceil($limitTime / 60 / 60 / 24) . '天';
}
//是否可以提交简历
$candaditesAddOn = 0;
if ($sysCandadites->checkAdd($coreIP->ip) == true) {
$candaditesAddOn = 1;
}
$postAdd = 0;
if (isset($_GET['m']) == true) {
if ($_GET['m'] == 'add-success') {
$postAdd = 1;
} else {
$postAdd = 2;
}
}
//注册变量
$smarty->assign('limitTimeStr', $limitStr);
$smarty->assign('postAdd', $postAdd);
$smarty->assign('candaditesAddOn', $candaditesAddOn);
//输出页面
$smarty->display('candadites.tpl');
?>
PHP
1
https://gitee.com/fotomxq/ftm-cms.git
git@gitee.com:fotomxq/ftm-cms.git
fotomxq
ftm-cms
FTM-CMS
master

搜索帮助