28 |
29 |
37 |
38 |
39 |
40 |
43 |
44 |
--------------------------------------------------------------------------------
/styles/message_edit_admin.css:
--------------------------------------------------------------------------------
1 | @CHARSET "UTF-8";
2 | input{
3 | background:#fff;
4 | border:1px solid #ccc;
5 | border-radius:0px;
6 | box-shadow:inset 0 0 0px #999;
7 | }
8 | #list {
9 | color:#625F5F;
10 | line-height:23px;
11 | width:650px;
12 | margin:0 auto;
13 | background-image: url(../images/list_bg.gif);
14 | background-repeat: repeat-x;
15 | background-color:#F0F8FF;
16 | padding:20px 13px 13px 13px;
17 | }
18 | #listmain{
19 | border: 1px solid #D5E4F4;
20 | background:#FFF;
21 | padding:5px;
22 | margin:0px;
23 | padding-bottom:20px;
24 | }
25 | #listmain p{
26 | padding:10px 0 20px 20px;
27 | }
28 | #listmain h2{
29 | font:9pt Verdana;
30 | color:#175CBB;
31 | border-top:1px solid #EBF5FE;
32 | border-bottom:1px solid #EBF5FE;
33 | background:#F4FAFF;
34 | padding:3px;
35 | font-weight: normal;
36 | height:20px;
37 | }
38 | #listmain form textarea{
39 | display:block;
40 | font-size:14px;
41 | width:500px;
42 | height:120px;
43 | border:1px solid #ccc;
44 | }
45 | #listmain form textarea:focus{
46 | border-color:lightblue;
47 | }
48 | #listmain form .button{
49 | width:70px;
50 | height:27px;
51 | margin-left:0px;
52 | margin-top:15px;
53 | cursor:pointer;
54 | }
55 |
56 | #listmain form .button:hover{
57 | background:inactivecaption;
58 | }
--------------------------------------------------------------------------------
/includes/funds.func.php:
--------------------------------------------------------------------------------
1 | 0){
7 | return "
31 | ";
37 | for($i=0;$i<$num;$i++){
38 | $row=_fetch_array_list($res);
39 | $time=strtotime($row['gm_start_time']);
40 | $grade=_time_to_grade(date("Y",$time), date("m",$time));
41 | if(!_query("UPDATE gm_stuinfo SET gm_grade='$grade' WHERE gm_num='{$row['gm_num']}'")){
42 | echo "".$row['gm_username'].$row['gm_num']."信息更新失败!
";
43 | $fail++;
44 | }else{
45 | echo $row['gm_username']."(".$row['gm_num'].")信息更新成功!
";
46 | }
47 | }
48 |
49 | echo "完毕!共更新".$num."位同学信息,成功:".($num-$fail)."个,失败:".$fail."个";
50 | ?>
51 |
52 |
53 |
56 |
57 |
--------------------------------------------------------------------------------
/styles/funds_admin.css:
--------------------------------------------------------------------------------
1 | #condition{
2 | width:80%;
3 | margin:10px auto;
4 |
5 | }
6 | #form1{
7 | width:100%;
8 | border-bottom:1px solid #999;
9 | float:left;
10 | padding-bottom:5px;
11 | }
12 | #form1 .submit{
13 | float:right;
14 | clear:both;
15 | display:block;
16 | cursor:pointer;
17 | }
18 | #main h2{
19 | cursor:pointer;
20 | width:80%;
21 | margin:0 auto;
22 | font-weight:normal;
23 | font-size:15px;
24 | border-bottom:1px solid #999;
25 | }
26 | #condition dl{
27 | float:left;
28 | margin:0 20px;
29 | }
30 | #condition dl dt{
31 | margin-bottom:4px;
32 | font-size:14px;
33 | }
34 | #condition dl dd{
35 | line-height:180%;
36 | }
37 |
38 |
39 | #main table{
40 | clear:both;
41 | margin:40px auto 40px auto;
42 | border-collapse:collapse;
43 | }
44 | #main table tr th,td{
45 | padding:5px 8px;
46 | border:1px solid #999;
47 | }
48 | #main table tr td a{
49 | color:blue;
50 | }
51 | #main table tr th.sortableCol{
52 | cursor:pointer;
53 | }
54 | #main table tr td a:hover{
55 | color:red;
56 | text-decoration:underline;
57 | }
58 | #main table tr:hover{
59 | background:#ffc;
60 | }
61 | #main table tr th{
62 | background:lightblue
63 | }
64 | #main #search{
65 | clear:both;
66 | height:25px;
67 | margin:20px 30% 0px 30%;
68 | font-size:13px;
69 | }
70 | #main #search input.search{
71 | height:22px;
72 | position:relative;
73 | }
74 | #main #search input.img{
75 | position:relative;
76 | top:7px;
77 | border-width:0;
78 | }
79 | th img.sortDirImage {
80 | margin-left:6px;
81 | margin-bottom:3px;
82 | }
83 | #main table tr td a.a{
84 | color:black;
85 | }
86 | #main table tr td a.a:hover{
87 | text-decoration:underline;
88 | }
89 |
--------------------------------------------------------------------------------
/message_add_s.php:
--------------------------------------------------------------------------------
1 |
25 |
26 |
27 |
28 |
29 |
40 |
41 | ';
45 | echo '
公告中心';
46 | for($i=0;$i<$pagesize;$i++){
47 | $row=_fetch_array_list($res);
48 | if($row['gm_id']=='')
49 | break;
50 | $row['gm_title']=_cut($row['gm_title'], 46);
51 | echo '
'.$row['gm_time'].'';
52 | echo "
{$row['gm_title']} [删除] [修改]";
53 | echo '
';
54 | }
55 | echo '';
56 | }else{
57 | echo "
暂时还没有任何公告";
58 | }
59 | //引入分页
60 | _paging($_system['notice_page']);
61 | }
62 | ?>
63 |
64 |
65 |
68 |
69 |
--------------------------------------------------------------------------------
/includes/details.inc.php:
--------------------------------------------------------------------------------
1 |
39 |
40 | ';
44 | echo '
公告中心';
45 | for($i=0;$i<$pagesize;$i++){
46 | $row=_fetch_array_list($res);
47 | if($row['gm_id']=='')
48 | break;
49 | echo '
'.$row['gm_time'].'';
50 | echo '
'.$row['gm_title'].'';
51 | echo '
';
52 | }
53 | echo '';
54 | }else{
55 | echo "
暂时还没有任何公告";
56 | }
57 | //引入分页
58 | _paging($_system['notice_page']);
59 | }
60 | if($_GET['action']=='one' && $_GET['id']){
61 | echo '
';
62 | echo '- '.$row['gm_title'].'
';
63 | echo '- '.$row['gm_time'].'
';
64 |
65 | echo '- '.nl2br(str_replace(' ',' ',$row['gm_content'])).'
';
66 | echo '
';
67 | echo '
返回列表';
68 | }
69 | ?>
70 |
71 |
72 |
73 |
74 |
75 |
78 |
79 |
--------------------------------------------------------------------------------
/styles/funds_add_admin.css:
--------------------------------------------------------------------------------
1 | @CHARSET "UTF-8";
2 | #top{
3 | width:90%;
4 | margin:10px auto 0 auto;
5 | }
6 | #top p{
7 | border-bottom:2px solid #999;
8 | height:28px;
9 | line-height:28px;
10 | }
11 | #top p span.type{
12 | cursor:pointer;
13 | border:1px solid #333;
14 | padding:2px 10px;
15 | margin:0 5px;
16 | }
17 | #top p span.type:hover{
18 | background:#666;
19 | color:#fff;
20 | }
21 | #center,#bottom{
22 | width:90%;
23 | margin:10px auto 0 auto;
24 | }
25 | #details{
26 | clear:both;
27 | width:90%;
28 | margin:0 auto 0 auto;
29 | border:1px solid #999;
30 | padding:5px 0;
31 | min-height:50px;
32 | word-wrap:break-word;
33 | line-height:180%;
34 | }
35 | #details span{
36 | cursor:pointer;
37 | padding-right:14px;
38 | border:1px solid #999;
39 | margin:4px;
40 | background:url("../images/icon_del.gif") no-repeat right center;
41 | }
42 | #details span:hover{
43 | background:#ccc url("../images/icon_del.gif") no-repeat right center;
44 | }
45 |
46 | #center input.text{
47 | width:140px;
48 | height:22px;
49 | margin-top:5px;
50 | }
51 | #center input.money{
52 | width:118px;
53 | }
54 | #center textarea.textarea{
55 | width:250px;
56 | height:80px;
57 | }
58 | #center input.select{
59 | height:18px;
60 | }
61 | #center input.button{
62 | margin-top:10px;
63 | width:50px;
64 | height:22px;
65 | cursor:pointer;
66 | }
67 | #form1{
68 | width:100%;
69 | border-bottom:1px solid #999;
70 | float:left;
71 | margin-bottom:5px;
72 | }
73 | #form1 .submit{
74 | float:right;
75 | margin:0 20px 5px 0;
76 | clear:both;
77 | display:block;
78 | cursor:pointer;
79 | width:50px;
80 | height:22px;
81 | }
82 | #condition dl{
83 | float:left;
84 | margin:0 20px;
85 | }
86 | #condition dl dt{
87 | margin-bottom:4px;
88 | font-size:12px;
89 | }
90 | #condition dl dd{
91 | line-height:180%;
92 | }
93 | #last{
94 | clear:both;
95 | width:90%;
96 | margin:0 auto 0 auto;
97 | }
98 | #last input.text{
99 | width:140px;
100 | height:18px;
101 | }
102 | #last textarea.textarea{
103 | width:250px;
104 | height:80px;
105 | }
106 | #last input.select{
107 | height:18px;
108 | }
109 | #last input.button{
110 | margin:10px 0;
111 | width:50px;
112 | height:22px;
113 | cursor:pointer;
114 | }
115 | .show{
116 | background:#666;
117 | color:#fff;
118 | }
--------------------------------------------------------------------------------
/styles/header.css:
--------------------------------------------------------------------------------
1 | #body{
2 | margin:0 auto;
3 | width:75%;
4 | border:2px solid lightblue;
5 | }
6 | #banner{
7 | height:100px;
8 | }
9 | #banner img{
10 | height:100px;
11 | }
12 | #nav{
13 | height:64px;
14 | position:relative;
15 | top:-9px;
16 | }
17 | #main{
18 | border-top:0px;
19 | }
20 | #footer{
21 | clear:both;
22 | margin-top:140px;
23 | height:50px;
24 | background:#ddd;
25 | text-align:center;
26 | line-height:140%;
27 | padding-top:15px;
28 | }
29 | #footer span{
30 | color:red;
31 | }
32 |
33 |
34 |
35 | /*导航部分*/
36 | #menu{
37 | font-size:14px;
38 | height:32px;
39 | margin-top:8px;
40 | background-color:#900;
41 | }
42 | #menu ul{
43 | margin:auto;
44 | width:778px;
45 | height:32px;
46 | list-style-type:none;
47 | padding:0px;
48 | margin-top:0px;
49 | margin-bottom:0px;
50 | }
51 | #menu ul.student{
52 | width:668px;
53 | }
54 | .m_li{
55 | float:left;
56 | width:114px;
57 | line-height:32px;
58 | text-align:center;
59 | margin-right:-2px;
60 | margin-left:-2px;
61 | }
62 | .m_li a{
63 | display:block;
64 | color:#FFFFFF;
65 | width:114px;
66 | }
67 | .m_line{
68 | float:left;
69 | width:1px;
70 | height:32px;
71 | line-height:32px; /*ff下有效(图片垂直居中)*/
72 | }
73 | .m_line img{
74 | margin-top:10px; /*ie下有效(图片垂直居中)*/
75 | }
76 | .m_li_a{
77 | float:left;
78 | width:114px;
79 | line-height:35px;
80 | text-align:center;
81 | padding-top:3px;
82 | font-weight:bold;
83 | background-image:url("../images/menu_bg2.png");
84 | position:relative;
85 | height:32px;
86 | margin-top:-3px;
87 | margin-right:-2px;
88 | margin-left:-2px;
89 | }
90 | .m_li_a a{
91 | display:block;
92 | color:#FF0000;
93 | width:114px;
94 | }
95 | .smenu{
96 | width:850px;
97 | margin:0px auto 0px auto;
98 | padding:0px;
99 | list-style-type:none;
100 | height:32px;
101 | }
102 | .s_li{
103 | line-height:32px;
104 | width:auto;
105 | display:none;
106 | height:32px;
107 | }
108 | .s_li_a{
109 | line-height:32px;
110 | width:auto;
111 | display:block;
112 | height:32px;
113 | }
114 | a {
115 | color: #333333;
116 | text-decoration: none;
117 | }
118 | a:hover {
119 | color: #FF0000;
120 | text-decoration: none;
121 | }
122 | a:active{
123 | color: #FF0000;
124 | text-decoration: none;
125 | }
--------------------------------------------------------------------------------
/message_s.php:
--------------------------------------------------------------------------------
1 |
14 |
15 |
16 |
17 |
18 |
11 |
12 |
38 |
39 |
40 |
修改密码
41 |
49 |
--------------------------------------------------------------------------------
/add_teacher.php:
--------------------------------------------------------------------------------
1 |
41 |
42 |
43 |
44 |
45 |
46 |
49 |
50 |
51 |
54 |
55 |
56 |
74 |
75 |
76 |
77 |
80 |
81 |
--------------------------------------------------------------------------------
/stu_data_s.php:
--------------------------------------------------------------------------------
1 |
38 |
39 |
40 |
41 |
42 |
43 |
46 |
47 |
48 |
51 |
74 |
77 |
78 |
--------------------------------------------------------------------------------
/styles/add_teacher.css:
--------------------------------------------------------------------------------
1 | @CHARSET "UTF-8";
2 | #main_in{
3 | width:45%;
4 | height:200px;
5 | margin:20px auto 0 auto;
6 | }
7 | #main_in legend{
8 | font-size:14px;
9 | border:1px solid lightblue;
10 | padding:2px;
11 | }
12 | #main_in form{
13 | width:50%;
14 | margin:10px auto;
15 | }
16 | #main_in form input{
17 | height:20px;
18 | margin:5px 0;
19 | }
20 | #main_in form input.submit{
21 | width:65px;
22 | height:23px;
23 | display:block;
24 | margin:10px auto;
25 | }
26 |
--------------------------------------------------------------------------------
/styles/export.css:
--------------------------------------------------------------------------------
1 | @CHARSET "UTF-8";
2 | #main_in{
3 | width:45%;
4 | height:200px;
5 | margin:20px auto 0 auto;
6 | }
7 | #main_in fieldset,legend{
8 | font-size:14px;
9 | border:1px solid lightblue;
10 | padding:2px;
11 | }
12 | #main_in form{
13 | width:55%;
14 | margin:10px auto;
15 | }
16 | #main_in form select{
17 | height:21px;
18 | }
19 | #main_in form input.submit{
20 | width:65px;
21 | height:23px;
22 | display:block;
23 | margin:10px auto;
24 | cursor:pointer;
25 | }
--------------------------------------------------------------------------------
/styles/funds_add_s.css:
--------------------------------------------------------------------------------
1 | @CHARSET "UTF-8";
2 | #main_in{
3 | width:45%;
4 | height:200px;
5 | margin:20px auto 0 auto;
6 | }
7 | #main_in legend{
8 | font-size:14px;
9 | border:1px solid lightblue;
10 | padding:2px;
11 | }
12 | #main_in form{
13 | width:50%;
14 | margin:10px auto;
15 | }
16 | #main_in form input{
17 | height:20px;
18 | margin:5px 0;
19 | }
20 | #main_in form input.submit{
21 | width:65px;
22 | height:23px;
23 | display:block;
24 | margin:10px auto;
25 | cursor:pointer;
26 | }
27 |
28 |
29 |
--------------------------------------------------------------------------------
/notice_edit_admin.php:
--------------------------------------------------------------------------------
1 |
44 |
45 |
46 |
47 |
48 |
49 |
52 |
53 |
54 |
57 |
58 |
59 | ';
62 | elseif($_GET['action']=='edit' and $_GET['id']!='')
63 | echo '
75 |
76 |
77 |
80 |
81 |
--------------------------------------------------------------------------------
/login.php:
--------------------------------------------------------------------------------
1 |
52 |
53 |
54 |
55 |
56 |
计算机学院研究生档案管理--登录
57 |
58 |
59 |
60 |
61 |
62 |
63 |
77 |
78 |
79 |
--------------------------------------------------------------------------------
/admin.php:
--------------------------------------------------------------------------------
1 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
33 |
34 |
35 |
38 |
71 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
--------------------------------------------------------------------------------
/message_admin.php:
--------------------------------------------------------------------------------
1 |
21 |
22 |
23 |
24 |
25 |
26 |
29 |
30 |
31 |
34 |
35 |
36 |
37 |
38 |
39 |
56 |
57 |
58 | =$i?>#
于发表留言
59 | ';?>
60 |
61 |
62 |
63 |
64 |
65 |
66 |
69 |
70 |
73 |
77 |
85 |
86 |
87 |
88 |
89 |
93 |
94 |
95 |
98 |
99 |
--------------------------------------------------------------------------------
/stu_active.php:
--------------------------------------------------------------------------------
1 |
50 |
51 |
52 |
53 |
54 |
55 |
58 |
59 |
60 |
61 |
64 |
65 | 暂时没有学生信息需要审核";
69 | }else{
70 | ?>
71 |
72 |
73 |
74 | | 序号 |
75 | 姓名 |
76 | 学号 |
77 | 性别 |
78 | 年级 |
79 | 专业 |
80 | 培养类型 |
81 | 审核 |
82 |
83 |
84 |
85 | $i | {$rows['gm_username']} | {$rows['gm_num']} | {$rows['gm_sex']} | {$rows['gm_grade']} | {$rows['gm_subject']} | {$rows['gm_type']} | 详情 通过 删除 | ";
90 | }
91 | ?>
92 |
93 |
94 |
95 | 共有
$num位用户需要审核";
99 | }
100 | ?>
101 |
102 |
103 |
106 |
107 |
--------------------------------------------------------------------------------
/teacher_data.php:
--------------------------------------------------------------------------------
1 |
41 |
42 |
43 |
44 |
45 |
46 |
49 |
50 |
51 |
52 |
55 |
56 |
57 |
58 |
59 | | 序号 |
60 | 姓名 |
61 | 工号 |
62 | 职称 |
63 | 剩余经费 |
64 | 学生数 |
65 | 学生姓名 |
66 | 操作 |
67 |
68 |
69 |
70 | ".$rows['gm_username']."
";
81 | else
82 | $student=$student." ".$rows['gm_username']."";
83 | }
84 | }
85 | if(!$student){
86 | //count($student_arr)在没有学生的情况下还是1
87 | $student_arr=NULL;
88 | $student='无';
89 | }
90 | if($row['gm_num']=='')
91 | break;
92 | echo "| $i | {$row['gm_username']} | {$row['gm_num']} | {$row['gm_zc']} | {$row['gm_funds']} | ".count($student_arr)." | $student | 修改资料";
93 | if($_SESSION['level']==3)
94 | echo " 删除";
95 | echo " |
";
96 | }
97 | ?>
98 |
99 |
100 |
105 |
106 |
109 |
110 |
--------------------------------------------------------------------------------
/styles/teacher_match.css:
--------------------------------------------------------------------------------
1 | @CHARSET "UTF-8";
2 | #main_in{
3 | width:90%;
4 | margin:10px auto 0 auto;
5 | }
6 | #main_in p{
7 | border-bottom:2px solid #999;
8 | height:28px;
9 | line-height:28px;
10 | }
11 | #main_in p span.type{
12 | cursor:pointer;
13 | border:1px solid #333;
14 | padding:2px 10px;
15 | margin:0 5px;
16 | }
17 | #main_in p span.type:hover{
18 | background:#666;
19 | color:#fff;
20 | }
21 | #main_in p span.one{
22 | background:#666;
23 | color:#fff;
24 | }
25 | #main_in_in{
26 | width:55%;
27 | height:200px;
28 | margin:20px auto 0 auto;
29 | }
30 | #main_in legend{
31 | font-size:14px;
32 | border:1px solid lightblue;
33 | padding:2px;
34 | }
35 | #main_in form{
36 | width:50%;
37 | margin:10px auto;
38 | }
39 | #main_in form input{
40 | height:20px;
41 | width:135px;
42 | margin:5px 0;
43 | }
44 | #main_in form select{
45 | height:20px;
46 | margin:5px 0;
47 | }
48 | #main_in form input.submit{
49 | cursor:pointer;
50 | width:65px;
51 | height:23px;
52 | display:block;
53 | margin:10px auto;
54 | }
55 | #main table{
56 | margin:40px auto 40px auto;
57 | border-collapse:collapse;
58 | }
59 | #main table tr th,td{
60 | padding:5px 10px 5px 10px;
61 | border:1px solid #999;
62 | }
63 | #main table tr td a{
64 | color:blue;
65 | }
66 | #main table tr td a:hover{
67 | color:red;
68 | text-decoration:underline;
69 | }
70 | #main table tr:hover{
71 | background:#ffc;
72 | }
73 | #main table tr th{
74 | background:lightblue
75 | }
76 | #main table tr th.sortableCol{
77 | cursor:pointer;
78 | }
79 | th img.sortDirImage {
80 | margin-left:6px;
81 | margin-bottom:3px;
82 | }
--------------------------------------------------------------------------------
/includes/upphoto.php:
--------------------------------------------------------------------------------
1 | set_datatime();
32 |
33 | }
34 |
35 | function set_datatime(){
36 |
37 | $this->datetime=date("YmdHis");
38 |
39 | }
40 |
41 |
42 |
43 | //获取文件类型
44 |
45 | function get_ph_type($phtype){
46 |
47 | $this->ph_type=$phtype;
48 |
49 | }
50 |
51 | //获取文件大小
52 |
53 | function get_ph_size($phsize){
54 |
55 | $this->ph_size=$phsize."
";
56 |
57 | }
58 |
59 | //获取上传临时文件名
60 |
61 | function get_ph_tmpname($tmp_name){
62 |
63 | $this->ph_tmp_name=$tmp_name;
64 |
65 | $this->imgsize=getimagesize($tmp_name);
66 |
67 | }
68 |
69 |
70 |
71 | //获取原文件名
72 |
73 | function get_ph_name($phname){
74 |
75 | $this->ph_name=$this->ph_path.$this->datetime.strrchr($phname,"."); //strrchr获取文件的点最后一次出现的位置
76 |
77 | //$this->ph_name=$this->datetime.strrchr($phname,"."); //strrchr获取文件的点最后一次出现的位置
78 |
79 | return $this->ph_name;
80 |
81 | }
82 |
83 | //判断上传文件存放目录
84 |
85 | function check_path(){
86 |
87 | if(!file_exists($this->ph_path)){
88 |
89 | mkdir($this->ph_path);
90 |
91 | }
92 |
93 | }
94 |
95 | //判断上传文件是否超过允许大小
96 |
97 | function check_size(){
98 |
99 | if($this->ph_size>$this->al_ph_size){
100 |
101 | $this->showerror("上传图片超过2000KB");
102 |
103 | }
104 |
105 | }
106 |
107 | //判断文件类型
108 |
109 | function check_type(){
110 |
111 | if(!in_array($this->ph_type,$this->al_ph_type)){
112 |
113 | $this->showerror("上传图片类型错误");
114 |
115 | }
116 |
117 | }
118 |
119 | //上传图片
120 |
121 | function up_photo(){
122 |
123 | if(!move_uploaded_file($this->ph_tmp_name,$this->ph_name)){
124 |
125 | $this->showerror("上传文件出错");
126 |
127 | }
128 |
129 | }
130 |
131 | //图片预览
132 |
133 | function showphoto(){
134 |
135 | if($this->preview==1){
136 |
137 | if($this->imgsize[0]>2000){
138 |
139 | $this->imgsize[0]=$this->imgsize[0]*$this->previewsize;
140 |
141 | $this->imgsize[1]=$this->imgsize[1]*$this->previewsize;
142 |
143 | }
144 |
145 | $html="

ph_name}\" width=\"{$this->imgsize['0']}\" height=\"{$this->imgsize['1']}\">";
146 |
147 | return $html;
148 |
149 | }
150 |
151 | }
152 |
153 | //错误提示
154 |
155 | function showerror($errorstr){
156 |
157 | echo "";
158 |
159 | exit();
160 |
161 | }
162 |
163 |
164 |
165 | function save(){
166 |
167 | $this->check_path();
168 |
169 | $this->check_size();
170 |
171 | $this->check_type();
172 |
173 | $this->up_photo();
174 |
175 | $html_img = $this->showphoto();
176 |
177 | return $html_img;
178 |
179 | }
180 |
181 | }
182 |
183 | ?>
--------------------------------------------------------------------------------
/funds_active.php:
--------------------------------------------------------------------------------
1 |
48 |
49 |
50 |
51 |
52 |
53 |
56 |
57 |
58 |
59 |
62 |
63 | 暂时没有经费信息需要审核";
67 | }else{
68 | ?>
69 |
70 |
71 |
72 | | 序号 |
73 | 姓名 |
74 | 学号 |
75 | 性别 |
76 | 年级 |
77 | 专业 |
78 | 管理类型 |
79 | 申请时间 |
80 | 金额 |
81 | 事由 |
82 | 操作 |
83 |
84 |
85 |
86 | $i | {$rows['gm_username']} | {$rows['gm_num']} | {$rows['gm_sex']} | {$rows['gm_grade']} | {$rows['gm_subject']} | {$rows['gm_type']} | {$rows['gm_time']} | {$rows['gm_money']} | $gm_details | 通过 删除 | ";
95 | }
96 | ?>
97 |
98 |
99 | 共有
$num条信息需要审核";
104 | }
105 | ?>
106 |
107 |
110 |
111 |
--------------------------------------------------------------------------------
/includes/common.inc.php:
--------------------------------------------------------------------------------
1 | *初始密码是:123456
*如果你的密码不正确可能是被重置了
*忘记密码请联系管理员";
46 | ////user_date页面分页类型及每页数据数
47 | //$_system['user_date_page']=2;
48 | //$_system['user_date_pagesize']=10;
49 | ////stu_active页面分页类型及每页数据数
50 | //$_system['stu_active_page']=1;
51 | //$_system['stu_active_pagesize']=30;
52 | ////message_page页面分页类型及每页数据数
53 | //$_system['message_page']=1;
54 | //$_system['message_pagesize']=3;
55 | ////notice_admin页面分页类型及每页数据数
56 | //$_system['notice_page']=2;
57 | //$_system['notice_pagesize']=3;
58 | ////stu_date页面分页类型及每页数据数
59 | //$_system['stu_date_page']=2;
60 | //$_system['stu_date_pagesize']=4;
61 | ////funds_admin页面分页类型及每页数据数
62 | //$_system['funds_admin_page']=2;
63 | //$_system['funds_admin_pagesize']=4;
64 | ////初始密码
65 | //$_system['initial_password']='123456';
66 |
67 | //网站系统设置初始化
68 | if (!!$_rows = _fetch_array("SELECT
69 | gm_webname,
70 | gm_initial_password,
71 | gm_register,
72 | gm_needcode,
73 | gm_help_login,
74 | gm_user_date_page,
75 | gm_stu_active_page,
76 | gm_stu_date_page,
77 | gm_message_page,
78 | gm_notice_page,
79 | gm_funds_admin_page,
80 | gm_user_date_pagesize,
81 | gm_stu_active_pagesize,
82 | gm_stu_date_pagesize,
83 | gm_message_pagesize,
84 | gm_notice_pagesize,
85 | gm_funds_admin_pagesize,
86 | gm_inputDetails
87 | FROM
88 | gm_system
89 | WHERE
90 | gm_id=1
91 | LIMIT 1"
92 | )) {
93 | $_system = array();
94 | $_system['webname'] = $_rows['gm_webname'];
95 | $_system['initial_password'] = $_rows['gm_initial_password'];
96 | $_system['register'] = $_rows['gm_register'];
97 | $_system['needcode'] = $_rows['gm_needcode'];
98 | $_system['help_login'] = $_rows['gm_help_login'];
99 | $_system['user_date_page'] = $_rows['gm_user_date_page'];
100 | $_system['stu_active_page'] = $_rows['gm_stu_active_page'];
101 | $_system['stu_date_page'] = $_rows['gm_stu_date_page'];
102 | $_system['message_page'] = $_rows['gm_message_page'];
103 | $_system['notice_page'] = $_rows['gm_notice_page'];
104 | $_system['funds_admin_page'] = $_rows['gm_funds_admin_page'];
105 | $_system['user_date_pagesize'] = $_rows['gm_user_date_pagesize'];
106 | $_system['stu_active_pagesize'] = $_rows['gm_stu_active_pagesize'];
107 | $_system['stu_date_pagesize'] = $_rows['gm_stu_date_pagesize'];
108 | $_system['message_pagesize'] = $_rows['gm_message_pagesize'];
109 | $_system['notice_pagesize'] = $_rows['gm_notice_pagesize'];
110 | $_system['funds_admin_pagesize'] = $_rows['gm_funds_admin_pagesize'];
111 | $_system['inputDetails'] = $_rows['gm_inputDetails'];
112 | } else {
113 | exit('数据库系统设置表异常,请管理员检查!');
114 | }
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 | ?>
--------------------------------------------------------------------------------
/includes/header_admin.inc.php:
--------------------------------------------------------------------------------
1 |
10 |
11 |
12 |
45 |
46 |
57 |
--------------------------------------------------------------------------------
/styles/basic.css:
--------------------------------------------------------------------------------
1 | @CHARSET "UTF-8";
2 | *{
3 | margin:0;
4 | padding:0;
5 | }
6 | body{
7 | font-size:12px;
8 | font-family:微软雅黑,黑体;
9 | background:url("../images/user_all_bg.gif") repeat-x scroll 50% top #226CC5;
10 | }
11 | textarea{
12 | font-size: 13px;
13 | }
14 | img{
15 | border-width:0;
16 | }
17 | #body{
18 | background:#fff;
19 | }
20 | ul{
21 | list-style-type:none;
22 | }
23 | input{
24 | background:#fff;
25 | border:1px solid #369;
26 | border-radius:4px;
27 | box-shadow:inset 0 0 2px #999;
28 | }
29 | /* “*提示信息” 样式 ,如:
*提示信息
*/
30 | h3{
31 | display:inline;
32 | margin:0;
33 | padding:0;
34 | color:red;
35 | cursor:help;
36 | position:relative;
37 | }
38 | h3 span{
39 | word-wrap: break-word;
40 | display:none;
41 | font-size:12px;
42 | }
43 | h3:hover span{
44 | width:160px;
45 | padding:10px;
46 | display:block;
47 | position:absolute;
48 | left:-15px;
49 | top:12px;
50 | background:#00c0ff;
51 | }
52 | .radio{
53 | border-width:0;
54 | border-radius:0px;
55 | box-shadow:inset 0 0 0px #999;
56 | }
57 |
58 | /*_msg函数提示信息样式*/
59 | div#msg{
60 | position:absolute;
61 | left:430px;
62 | top:160px;
63 | width:550px;
64 | font-size:14px;
65 | color:#666;
66 | line-height:180%;
67 | text-align:center;
68 | padding:30px;
69 | background:#fff;
70 | border:2px solid #6699CC;;
71 | z-index:9999;
72 | }
73 | div#msg img{
74 | position:relative;
75 | top:5px;
76 | }
77 | div#msg a{
78 | color:red;
79 | text-decoration:underline;
80 | }
81 | #page_num{
82 | height:18px;
83 | position:relative;
84 | }
85 | #page_num ul{
86 | position:absolute;
87 | right:40px;
88 | }
89 | #page_num ul li{
90 | float:left;
91 | width:25px;
92 | height:20px;
93 | }
94 | #page_num ul li a{
95 | display:block;
96 | border:1px solid #ccc;
97 | width:20px;
98 | height:20px;
99 | line-height:20px;
100 | text-align:center;
101 | }
102 | #page_num ul li a:hover{
103 | background:#666;
104 | color:#fff;
105 | font-weight:bold;
106 | }
107 | #page_num ul li a.selected{
108 | background:#666;
109 | color:#fff;
110 | font-weight:bold;
111 | }
112 | #page_text{
113 | height:18px;
114 | }
115 | #page_text ul{
116 | text-align:center;
117 | }
118 | #page_text ul li{
119 | display:inline;
120 | }
121 | #page_text ul li a{
122 | text-decoration:underline;
123 | }
124 |
125 |
126 |
127 | #addadmin{
128 | display:none;
129 | width:400px;
130 | height:200px;
131 | position:absolute;
132 | left:35%;
133 | top:200px;
134 | border:1px solid #ccc;
135 | background:lightyellow;
136 | z-index:9997;
137 | }
138 | #addadmin p{
139 | font-size:14px;
140 | height:30px;
141 | line-height:30px;
142 | border-bottom:2px solid #999;
143 | text-align:center;
144 | background:#76ACFC;
145 | }
146 | #addadmin p img{
147 | float:right;
148 | cursor:pointer;
149 | }
150 |
151 | #addadmin form dl{
152 | height:140px;
153 | margin:20px auto;
154 | text-align:center;
155 | }
156 | #addadmin form dl dd{
157 | margin:5px auto 0 auto;
158 | }
159 | #addadmin form dl dd input{
160 | width:170px;
161 | height:22px;
162 | }
163 | #addadmin form dl dd input.button{
164 | margin-top:16px;
165 | width:75px;
166 | height:26px;
167 | cursor:pointer;
168 | }
169 | #addadmin form dl dd input.button:hover{
170 | background:inactivecaption;
171 | }
172 | #pass_modify{
173 | display:none;
174 | width:400px;
175 | height:200px;
176 | position:absolute;
177 | left:35%;
178 | top:200px;
179 | border:1px solid #ccc;
180 | background:lightyellow;
181 | z-index:9997;
182 | }
183 | #pass_modify p{
184 | font-size:14px;
185 | height:30px;
186 | line-height:30px;
187 | border-bottom:2px solid #999;
188 | text-align:center;
189 | background:#76ACFC;
190 | }
191 | #pass_modify p img{
192 | float:right;
193 | cursor:pointer;
194 | }
195 |
196 | #pass_modify form dl{
197 | height:140px;
198 | margin:20px auto;
199 | text-align:center;
200 | }
201 | #pass_modify form dl dd{
202 | margin:5px auto 0 auto;
203 | }
204 | #pass_modify form dl dd input{
205 | width:170px;
206 | height:22px;
207 | }
208 | #pass_modify form dl dd input.button{
209 | margin-top:16px;
210 | width:75px;
211 | height:26px;
212 | cursor:pointer;
213 | }
214 | #pass_modify form dl dd input.button:hover{
215 | background:inactivecaption;
216 | }
217 |
--------------------------------------------------------------------------------
/js/funds_add.js:
--------------------------------------------------------------------------------
1 | addEvent(window,"load",function (){
2 | var one=$("one"),
3 | two=$("two");
4 | var flag=true;
5 | one.onclick=function (){
6 | flag=true;
7 | //初始化
8 | $("details").innerHTML="";
9 | $("last").innerHTML="";
10 | addClass(one,"show");
11 | delClass(two,"show");
12 |
13 |
14 | //个人操作
15 | var center=$("center"),
16 | bottom=$("bottom");
17 | //调出表单
18 | Base.ajax({
19 | url:"action.php",
20 | data:{action:"one"},
21 | success:function (t){
22 | center.innerHTML=t;
23 | var submit=$("submit");
24 | var inputNum=$("inputNum");
25 | //添加实时显示学生信息功能
26 | document.onclick=function (){
27 | if(flag){
28 | if(inputNum.value!=""){
29 | Base.ajax({
30 | url:"action.php",
31 | data:{nums:inputNum.value,action:"details"},
32 | success:function (t){
33 | //直接放入结果,不必繁琐,因为就一条数据
34 | $("details").innerHTML=t;
35 | // if(t){
36 | // var txt = document.createTextNode(t);
37 | // if((document.getElementById('details').firstChild)===null){
38 | // document.getElementById("details").appendChild(txt);
39 | // }else{
40 | // //如果
41 | // oldTxt=document.getElementById('details').firstChild;
42 | // document.getElementById("details").replaceChild(txt, oldTxt);
43 | // }
44 | // }
45 | }
46 | });
47 | }
48 | }
49 | };
50 |
51 | }
52 |
53 | });
54 |
55 | };
56 | two.onclick=function (){
57 | flag=false;
58 | //初始化
59 | $("details").innerHTML="";
60 | $("last").innerHTML="";
61 | addClass(two,"show");
62 | delClass(one,"show");
63 | //集体操作
64 | var center=$("center"),
65 | bottom=$("bottom");
66 | //调出筛选界面
67 | Base.ajax({
68 | url:"action.php",
69 | data:{action:"two"},
70 | success:function (t){
71 | center.innerHTML=t;
72 | var form=$("form1"),
73 | submit=$("submit");
74 | form.onsubmit=function (){
75 | return false;
76 | };
77 | submit.onclick=function (){
78 | var a=Array();
79 | for(var i=0;i
106 | //开始录入数据库,只取details DIV里的
107 | //这里要判断一下,不然下面的会undefined
108 | if($("last").innerHTML){
109 | var form3=$("form3"),
110 | submit3=$("submit3");
111 | form3.onsubmit=function (){
112 | return false;
113 | };
114 | submit3.onclick=function (){
115 | //取出details DIV里的学号
116 | if(!$("details").innerHTML){
117 | alert("还没有选择学生!");
118 | return false;
119 | }else{
120 | var spans=$("details").getElementsByTagName("span"),
121 | allnum=Array();
122 | for(var i=0;i
54 |
55 |
56 |
57 |
58 |
59 |
62 |
63 |
64 |
65 |
68 |
69 |
";
72 | ?>
73 |
74 |
75 |
76 | | 序号 |
77 | 姓名 |
78 | 学号 |
79 | 导师 |
80 | 性别 |
81 | 年级 |
82 | 专业 |
83 | 培养类型 |
84 | 家庭住址 |
85 | 操作 |
86 |
87 |
88 |
89 | 分配';
95 | if($row['gm_num']=='')
96 | break;
97 | echo "| $i | {$row['gm_username']} | {$row['gm_num']} | {$row['gm_teacher']} | {$row['gm_sex']} | {$row['gm_grade']} | {$row['gm_subject']} | {$row['gm_type']} | $address | 详细 修改";
98 | if($_SESSION['level']==3)
99 | echo " 删除";
100 | echo " |
";
101 | }
102 | ?>
103 |
104 |
105 |
110 |
111 |
114 |
115 |
--------------------------------------------------------------------------------
/funds_admin.php:
--------------------------------------------------------------------------------
1 |
73 |
74 |
75 |
76 |
77 |
78 |
81 |
82 |
83 |
84 |
85 |
88 |
89 |
";
92 | ?>
93 |
94 |
95 |
96 | | 序号 |
97 | 操作种类 |
98 | 姓名 |
99 | 工号 |
100 | 操作时间 |
101 | 支出/收入 |
102 | 剩余经费 |
103 | 摘要 |
104 | 操作 |
105 |
106 |
107 |
108 | $i | $ftype | {$rows['gm_username']} | {$rows['gm_num']} | {$rows['gm_time']} | {$rows['gm_money']} | {$rows['gm_lmoney']} | $gm_details | ";
117 | if($rows['gm_ftype']==0)
118 | echo '/';
119 | else if($rows['gm_ftype']==10 OR $rows['gm_ftype']==20)
120 | echo '已撤销';
121 | else
122 | echo "撤销";
123 | echo " | ";
124 | }
125 | ?>
126 |
127 |
128 |
133 |
134 |
137 |
138 |
--------------------------------------------------------------------------------
/js/sortable-table.js:
--------------------------------------------------------------------------------
1 | (function () {
2 | String.prototype.trim=function () {
3 | return this.replace(/^\s+/,'').replace(/\s+$/,'');
4 | };
5 | function SortableTable(table) {
6 | this.table=table;
7 |
8 | var div=document.createElement("div");
9 | div.innerHTML='