1 Star 0 Fork 0

程度 / cis

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
test.php 664 Bytes
一键复制 编辑 原始数据 按行查看 历史
zhengyu 提交于 2013-05-24 16:26 . v0.05
<?php
include('./libs/db.php');
include_once('smarty_init.php');
include_once('./libs/department_service.php');
if($_REQUEST['act'] == 'ajax'){
$department_name = $_POST['department_name'];
$department_val = $_POST['department_val'];
if($department_name != '' && $department_val != ''){
//返回格式{'num':1, 'rows':[{'major_id':1, 'major_name':'hardware'}, {'major_id':2, 'major_name':'software'}]}
$json = json_encode(getAllMajorByDepId($department_val));
echo $json;
}
}else{
//获取所有的系信息
$department_ary = getAllDepartment();
$smarty->assign('department_ary', $department_ary);
$smarty->display('test.html');
}
?>
PHP
1
https://gitee.com/diycp/cis.git
git@gitee.com:diycp/cis.git
diycp
cis
cis
master

搜索帮助