├── styles ├── stu_update.css ├── funds_s.css ├── teacher_data.css ├── stu_active.css ├── stu_date.css ├── user_data.css ├── login.css ├── notice_admin.css ├── stu_data_s.css ├── message_add_s.css ├── admin.css ├── student_s.css ├── stu_date_one.css ├── notice_edit_admin.css ├── message_edit_admin.css ├── funds_active.css ├── notice_s.css ├── message_s.css ├── message_admin.css ├── register.css ├── stu_data_edit.css ├── funds_admin.css ├── set_admin.css ├── funds_add_admin.css ├── header.css ├── add_teacher.css ├── export.css ├── funds_add_s.css ├── teacher_match.css └── basic.css ├── images ├── f.gif ├── s.gif ├── asc.gif ├── desc.gif ├── down.png ├── edit.gif ├── favs.gif ├── help.gif ├── i1.gif ├── ico.gif ├── more.png ├── new.gif ├── up.png ├── wait.gif ├── close.png ├── line2.gif ├── search.gif ├── wait_1.gif ├── gif-0054.gif ├── head_bg.gif ├── head_bg.png ├── icon_del.gif ├── icon_rn.gif ├── loginlogo.png ├── menu_bg2.png ├── icon_write.gif ├── loginlogo1.png ├── user_all_bg.gif └── top_search_bg.gif ├── .gitignore ├── js ├── code.js ├── set.js ├── funds.js ├── header.js ├── login.js ├── register.js ├── funds_add.js └── sortable-table.js ├── logout.php ├── includes ├── footer_admin.inc.php ├── footer_student.inc.php ├── title_student.inc.php ├── title_admin.inc.php ├── funds.func.php ├── details_two.inc.php ├── mysql.func.php ├── details.inc.php ├── header_student.inc.php ├── upphoto.php ├── common.inc.php ├── header_admin.inc.php ├── register.func.php └── global.func.php ├── index.php ├── code.php ├── README.md ├── export.php ├── funds_add_admin.php ├── stu_update.php ├── message_add_s.php ├── student_s.php ├── set_admin.php ├── notice_admin.php ├── notice_s.php ├── message_s.php ├── stu_date_one.php ├── message_edit_admin.php ├── export_action.php ├── add_teacher.php ├── stu_data_s.php ├── notice_edit_admin.php ├── login.php ├── admin.php ├── message_admin.php ├── stu_active.php ├── teacher_data.php ├── funds_active.php ├── stu_date.php ├── funds_admin.php ├── register.php ├── teacher_match.php ├── stu_data_edit.php ├── user_data.php └── action.php /styles/stu_update.css: -------------------------------------------------------------------------------- 1 | @CHARSET "UTF-8"; 2 | #main{ 3 | padding-left:30%; 4 | } -------------------------------------------------------------------------------- /images/f.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udoless/phpbeginner_gmanage/HEAD/images/f.gif -------------------------------------------------------------------------------- /images/s.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udoless/phpbeginner_gmanage/HEAD/images/s.gif -------------------------------------------------------------------------------- /images/asc.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udoless/phpbeginner_gmanage/HEAD/images/asc.gif -------------------------------------------------------------------------------- /images/desc.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udoless/phpbeginner_gmanage/HEAD/images/desc.gif -------------------------------------------------------------------------------- /images/down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udoless/phpbeginner_gmanage/HEAD/images/down.png -------------------------------------------------------------------------------- /images/edit.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udoless/phpbeginner_gmanage/HEAD/images/edit.gif -------------------------------------------------------------------------------- /images/favs.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udoless/phpbeginner_gmanage/HEAD/images/favs.gif -------------------------------------------------------------------------------- /images/help.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udoless/phpbeginner_gmanage/HEAD/images/help.gif -------------------------------------------------------------------------------- /images/i1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udoless/phpbeginner_gmanage/HEAD/images/i1.gif -------------------------------------------------------------------------------- /images/ico.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udoless/phpbeginner_gmanage/HEAD/images/ico.gif -------------------------------------------------------------------------------- /images/more.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udoless/phpbeginner_gmanage/HEAD/images/more.png -------------------------------------------------------------------------------- /images/new.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udoless/phpbeginner_gmanage/HEAD/images/new.gif -------------------------------------------------------------------------------- /images/up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udoless/phpbeginner_gmanage/HEAD/images/up.png -------------------------------------------------------------------------------- /images/wait.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udoless/phpbeginner_gmanage/HEAD/images/wait.gif -------------------------------------------------------------------------------- /images/close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udoless/phpbeginner_gmanage/HEAD/images/close.png -------------------------------------------------------------------------------- /images/line2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udoless/phpbeginner_gmanage/HEAD/images/line2.gif -------------------------------------------------------------------------------- /images/search.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udoless/phpbeginner_gmanage/HEAD/images/search.gif -------------------------------------------------------------------------------- /images/wait_1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udoless/phpbeginner_gmanage/HEAD/images/wait_1.gif -------------------------------------------------------------------------------- /images/gif-0054.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udoless/phpbeginner_gmanage/HEAD/images/gif-0054.gif -------------------------------------------------------------------------------- /images/head_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udoless/phpbeginner_gmanage/HEAD/images/head_bg.gif -------------------------------------------------------------------------------- /images/head_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udoless/phpbeginner_gmanage/HEAD/images/head_bg.png -------------------------------------------------------------------------------- /images/icon_del.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udoless/phpbeginner_gmanage/HEAD/images/icon_del.gif -------------------------------------------------------------------------------- /images/icon_rn.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udoless/phpbeginner_gmanage/HEAD/images/icon_rn.gif -------------------------------------------------------------------------------- /images/loginlogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udoless/phpbeginner_gmanage/HEAD/images/loginlogo.png -------------------------------------------------------------------------------- /images/menu_bg2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udoless/phpbeginner_gmanage/HEAD/images/menu_bg2.png -------------------------------------------------------------------------------- /images/icon_write.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udoless/phpbeginner_gmanage/HEAD/images/icon_write.gif -------------------------------------------------------------------------------- /images/loginlogo1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udoless/phpbeginner_gmanage/HEAD/images/loginlogo1.png -------------------------------------------------------------------------------- /images/user_all_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udoless/phpbeginner_gmanage/HEAD/images/user_all_bg.gif -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .buildpath 3 | .gitignore.swp 4 | .project 5 | .settings/ 6 | SortableTable/ 7 | 8 | -------------------------------------------------------------------------------- /images/top_search_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/udoless/phpbeginner_gmanage/HEAD/images/top_search_bg.gif -------------------------------------------------------------------------------- /js/code.js: -------------------------------------------------------------------------------- 1 | function code () { 2 | var code = document.getElementById('code'); 3 | if (code == null) { 4 | return; 5 | } 6 | code.onclick = function () { 7 | this.src='code.php?tm='+Math.random(); 8 | }; 9 | } -------------------------------------------------------------------------------- /logout.php: -------------------------------------------------------------------------------- 1 | 10 | -------------------------------------------------------------------------------- /includes/footer_admin.inc.php: -------------------------------------------------------------------------------- 1 | 11 | 12 | -------------------------------------------------------------------------------- /includes/footer_student.inc.php: -------------------------------------------------------------------------------- 1 | 11 | 12 | -------------------------------------------------------------------------------- /index.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | ... 6 | 7 | 8 | 9 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /code.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /js/set.js: -------------------------------------------------------------------------------- 1 | window.onload=function (){ 2 | $("sysset").onclick=function (){ 3 | Base.ajax({ 4 | url:"action.php", 5 | data:{action:"sysset"}, 6 | success:function (t){ 7 | $("right_in").innerHTML=t; 8 | } 9 | }); 10 | }; 11 | $("page").onclick=function (){ 12 | Base.ajax({ 13 | url:"action.php", 14 | data:{action:"page"}, 15 | success:function (t){ 16 | $("right_in").innerHTML=t; 17 | } 18 | }); 19 | }; 20 | $("csstype").onclick=function (){ 21 | alert("敬请期待!"); 22 | } 23 | 24 | 25 | }; -------------------------------------------------------------------------------- /styles/funds_s.css: -------------------------------------------------------------------------------- 1 | @CHARSET "UTF-8"; 2 | #main table{ 3 | clear:both; 4 | margin:40px auto 40px auto; 5 | border-collapse:collapse; 6 | } 7 | #main table tr th,td{ 8 | padding:5px 10px; 9 | border:1px solid #999; 10 | } 11 | #main table tr td a{ 12 | color:blue; 13 | } 14 | #main table tr th.sortableCol{ 15 | cursor:pointer; 16 | } 17 | #main table tr td a:hover{ 18 | color:red; 19 | text-decoration:underline; 20 | } 21 | #main table tr:hover{ 22 | background:#ffc; 23 | } 24 | #main table tr th{ 25 | background:lightblue 26 | } 27 | th img.sortDirImage { 28 | margin-left:6px; 29 | margin-bottom:3px; 30 | } -------------------------------------------------------------------------------- /includes/title_student.inc.php: -------------------------------------------------------------------------------- 1 | 15 | <?php echo $_system['webname']?> 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /includes/title_admin.inc.php: -------------------------------------------------------------------------------- 1 | 15 | <?php echo $_system['webname']?> 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /js/funds.js: -------------------------------------------------------------------------------- 1 | addEvent(window,"load",function (){ 2 | var open=$("open"), 3 | ajax=$("ajax"), 4 | condition=$("condition"); 5 | addEvent(open,"click",function (){ 6 | if(condition.style.display==="none") 7 | condition.style.display="block"; 8 | else 9 | condition.style.display="none"; 10 | }) 11 | 12 | 13 | /*var form1=document.form1; 14 | var checks=[]; 15 | var radios=document.getElementsByTagName("input"); 16 | addEvent(form1,"submit",function (){ 17 | for(var i=0;i\'\"\ \ ]/.test(fm.num.value)) { 19 | alert('用户名不得包含非法字符'); 20 | fm.num.value = ''; //清空 21 | fm.num.focus(); //将焦点以至表单字段 22 | return false; 23 | } 24 | //密码验证 25 | if (fm.password.value=='') { 26 | alert('密码不得为空'); 27 | fm.password.value = ''; //清空 28 | fm.password.focus(); //将焦点以至表单字段 29 | return false; 30 | } 31 | //验证码验证 32 | if (fm.code.value.length != 4) { 33 | alert('验证码必须是4位'); 34 | fm.code.value = ''; //清空 35 | fm.code.focus(); //将焦点以至表单字段 36 | return false; 37 | } 38 | }; 39 | }; -------------------------------------------------------------------------------- /styles/stu_date.css: -------------------------------------------------------------------------------- 1 | @CHARSET "UTF-8"; 2 | #main table{ 3 | margin:40px auto 40px auto; 4 | border-collapse:collapse; 5 | } 6 | #main table tr th,td{ 7 | padding:5px 10px 5px 10px; 8 | border:1px solid #999; 9 | } 10 | #main table tr td a{ 11 | color:blue; 12 | } 13 | #main table tr td a:hover{ 14 | color:red; 15 | text-decoration:underline; 16 | } 17 | #main table tr:hover{ 18 | background:#ffc; 19 | } 20 | #main table tr th{ 21 | background:lightblue 22 | } 23 | #main table tr th.sortableCol{ 24 | cursor:pointer; 25 | } 26 | #main #search{ 27 | height:22px; 28 | margin:20px 30% 0px 30%; 29 | font-size:13px; 30 | } 31 | #main #search select{ 32 | height:22px; 33 | margin-right:5px; 34 | position:relative; 35 | top:-2px; 36 | } 37 | #main #search input.search{ 38 | height:22px; 39 | position:relative; 40 | } 41 | #main #search input.img{ 42 | position:relative; 43 | top:7px; 44 | border-width:0; 45 | } 46 | th img.sortDirImage { 47 | margin-left:6px; 48 | margin-bottom:3px; 49 | } -------------------------------------------------------------------------------- /styles/user_data.css: -------------------------------------------------------------------------------- 1 | @CHARSET "UTF-8"; 2 | #main table{ 3 | margin:40px auto 40px auto; 4 | border-collapse:collapse; 5 | } 6 | #main table tr th,td{ 7 | padding:5px 10px 5px 10px; 8 | border:1px solid #999; 9 | } 10 | #main table tr td a{ 11 | color:blue; 12 | } 13 | #main table tr td a:hover{ 14 | color:red; 15 | text-decoration:underline; 16 | } 17 | #main table tr:hover{ 18 | background:#ffc; 19 | } 20 | #main table tr th{ 21 | background:lightblue 22 | } 23 | #main table tr th.sortableCol{ 24 | cursor:pointer; 25 | } 26 | #main #search{ 27 | height:25px; 28 | margin:20px 30% 0px 30%; 29 | font-size:13px; 30 | } 31 | #main #search input.search{ 32 | height:22px; 33 | position:relative; 34 | } 35 | #main #search input.img{ 36 | position:relative; 37 | top:7px; 38 | border-width:0; 39 | } 40 | #body p.record{ 41 | text-align:center; 42 | } 43 | #body p.record span{ 44 | color:red; 45 | padding:0 2px; 46 | } 47 | th img.sortDirImage { 48 | margin-left:6px; 49 | margin-bottom:3px; 50 | } 51 | -------------------------------------------------------------------------------- /styles/login.css: -------------------------------------------------------------------------------- 1 | @CHARSET "UTF-8"; 2 | body{ 3 | background:#fff; 4 | } 5 | #login{ 6 | width:500px; 7 | height:320px; 8 | border-bottom:3px solid highlight; 9 | border-top:2px solid highlight; 10 | margin:140px auto; 11 | } 12 | #login form{ 13 | width:280px; 14 | height:280px; 15 | margin:0 auto; 16 | } 17 | #login form dl dd label{ 18 | font-size:14px; 19 | } 20 | #login h1 img{ 21 | width:500px; 22 | height:95px; 23 | padding-bottom:20px; 24 | } 25 | 26 | #login form dl dd{ 27 | padding:8px 0 0 0; 28 | } 29 | #login form dl dd input.text{ 30 | width:220px; 31 | height:24px; 32 | } 33 | #login form dl dd input.code{ 34 | width:75px; 35 | } 36 | #login form dl dd img#code{ 37 | position:relative; 38 | top:8px; 39 | cursor:pointer; 40 | } 41 | #login form dl dd input.button{ 42 | width:70px; 43 | height:27px; 44 | margin-left:20px; 45 | margin-top:25px; 46 | cursor:pointer; 47 | } 48 | 49 | #login form dl dd input.button:hover{ 50 | background:inactivecaption; 51 | } 52 | h3{ 53 | top:-92px; 54 | } -------------------------------------------------------------------------------- /styles/notice_admin.css: -------------------------------------------------------------------------------- 1 | @CHARSET "UTF-8"; 2 | #list{ 3 | font-size:12px; 4 | width:600px; 5 | margin:0 auto; 6 | padding:20px 10px 40px 10px; 7 | } 8 | #list ul{ 9 | margin-bottom:50px; 10 | line-height:150%; 11 | } 12 | #list ul li.top{ 13 | font-size:16px; 14 | margin-bottom:5px; 15 | text-align:center; 16 | line-height:25px; 17 | height:25px; 18 | background:lightblue; 19 | border-bottom:2px solid #999; 20 | } 21 | #list ul li.time{ 22 | background:url("../images/ico.gif") no-repeat left center; 23 | color:orange; 24 | font-weight:bold; 25 | padding-left:12px; 26 | } 27 | #list ul li.title{ 28 | padding-left:12px; 29 | color:#000; 30 | } 31 | #list ul li.title span{ 32 | display:none; 33 | } 34 | #list ul li.title span a{ 35 | color:blue; 36 | } 37 | #list ul li.title span a:hover{ 38 | color:red; 39 | } 40 | #list ul li.title:hover span{ 41 | display:inline; 42 | } 43 | #list ul li.title a:hover{ 44 | color:#666; 45 | } 46 | #list ul li.line{ 47 | padding-top:3px; 48 | border-top:1px solid #ccc; 49 | } 50 | -------------------------------------------------------------------------------- /styles/stu_data_s.css: -------------------------------------------------------------------------------- 1 | @CHARSET "UTF-8"; 2 | #main_in{ 3 | padding-bottom:20px; 4 | border:1px solid #999; 5 | font-size:14px; 6 | width:500px; 7 | margin:20px auto 0 auto; 8 | } 9 | #main_in dl dt{ 10 | font-size:18px; 11 | text-align:center; 12 | height:25px; 13 | line-height:25px; 14 | background:lightblue; 15 | border-bottom:2px solid #999; 16 | margin-bottom:10px; 17 | position:relative; 18 | } 19 | #main_in dl dt img{ 20 | background:#fff; 21 | padding:15px; 22 | width:100px; 23 | height:110px; 24 | position:absolute; 25 | top:45px; 26 | right:35px; 27 | } 28 | #main_in dl dd{ 29 | margin:0 auto; 30 | width:400px; 31 | padding:15px 0 3px 0; 32 | border-bottom:1px dashed #ccc; 33 | } 34 | #main_in dl dd a{ 35 | color:blue; 36 | text-decoration:underline; 37 | } 38 | #main_in dl dd a:hover{ 39 | color:red; 40 | } 41 | #main_in dl dd input.button{ 42 | width:70px; 43 | height:27px; 44 | margin-top:10px; 45 | cursor:pointer; 46 | } 47 | 48 | #main_in dl dd input.button:hover{ 49 | background:inactivecaption; 50 | } -------------------------------------------------------------------------------- /styles/message_add_s.css: -------------------------------------------------------------------------------- 1 | @CHARSET "UTF-8"; 2 | #main_in{ 3 | padding-bottom:20px; 4 | border:1px solid #999; 5 | font-size:14px; 6 | width:600px; 7 | margin:20px auto 0 auto; 8 | } 9 | #main_in form dl dt{ 10 | font-size:16px; 11 | text-align:center; 12 | height:30px; 13 | line-height:30px; 14 | background:lightblue; 15 | border-bottom:2px solid #999; 16 | 17 | } 18 | #main_in form dl dd{ 19 | padding-top:10px; 20 | } 21 | #main_in form dl dd span{ 22 | position:relative; 23 | top:-136px; 24 | } 25 | #main_in form dl dd input{ 26 | width:300px; 27 | height:22px; 28 | } 29 | #main_in form dl dd input:focus{ 30 | border-color:lightblue; 31 | } 32 | #main_in form dl dd textarea{ 33 | width:520px; 34 | height:220px; 35 | border:1px solid #ccc; 36 | } 37 | #main_in form dl dd textarea:focus{ 38 | border-color:lightblue; 39 | } 40 | #main_in form dl dd input.button{ 41 | width:70px; 42 | height:27px; 43 | margin-left:40px; 44 | margin-top:15px; 45 | cursor:pointer; 46 | } 47 | 48 | #main_in form dl dd input.button:hover{ 49 | background:inactivecaption; 50 | } 51 | -------------------------------------------------------------------------------- /styles/admin.css: -------------------------------------------------------------------------------- 1 | @CHARSET "UTF-8"; 2 | #left{ 3 | float:left; 4 | width:280px; 5 | margin-left:65px; 6 | margin-bottom:100px; 7 | } 8 | #left dl{ 9 | width:280px; 10 | } 11 | #left dl dt{ 12 | background:url("../images/gif-0054.gif") no-repeat left center; 13 | text-indent:18px; 14 | font-size:13px; 15 | font-weight:bold; 16 | border-bottom:2px solid #1672BF; 17 | } 18 | #left dl dd{ 19 | margin-left:5px; 20 | margin-top:3px; 21 | background:url("../images/ico.gif") no-repeat left center; 22 | text-indent:15px; 23 | } 24 | 25 | #right{ 26 | float:right; 27 | width:540px; 28 | margin-right:65px; 29 | margin-bottom:100px; 30 | } 31 | #right dl{ 32 | width:540px; 33 | } 34 | #right dl dt{ 35 | background:url("../images/gif-0054.gif") no-repeat left center; 36 | text-indent:18px; 37 | font-size:13px; 38 | font-weight:bold; 39 | border-bottom:2px solid #1672BF; 40 | } 41 | #right dl dd{ 42 | margin-left:5px; 43 | margin-top:3px; 44 | background:url("../images/ico.gif") no-repeat left center; 45 | text-indent:15px; 46 | } 47 | #right dl dd span.stu a{ 48 | color:blue; 49 | } 50 | #right dl dd span.time{ 51 | color:#999; 52 | } -------------------------------------------------------------------------------- /styles/student_s.css: -------------------------------------------------------------------------------- 1 | @CHARSET "UTF-8"; 2 | #left{ 3 | float:left; 4 | width:280px; 5 | margin-left:65px; 6 | margin-bottom:50px; 7 | } 8 | #left dl{ 9 | width:280px; 10 | } 11 | #left dl dt{ 12 | background:url("../images/gif-0054.gif") no-repeat left center; 13 | text-indent:18px; 14 | font-size:13px; 15 | font-weight:bold; 16 | border-bottom:2px solid #1672BF; 17 | } 18 | #left dl dd{ 19 | margin-left:5px; 20 | margin-top:3px; 21 | background:url("../images/ico.gif") no-repeat left center; 22 | text-indent:15px; 23 | } 24 | 25 | #right{ 26 | float:right; 27 | width:540px; 28 | margin-right:65px; 29 | margin-bottom:50px; 30 | } 31 | #right dl{ 32 | width:540px; 33 | } 34 | #right dl dt{ 35 | background:url("../images/gif-0054.gif") no-repeat left center; 36 | text-indent:18px; 37 | font-size:13px; 38 | font-weight:bold; 39 | border-bottom:2px solid #1672BF; 40 | } 41 | #right dl dd{ 42 | margin-left:5px; 43 | margin-top:3px; 44 | background:url("../images/ico.gif") no-repeat left center; 45 | text-indent:15px; 46 | } 47 | #right dl dd span.stu{ 48 | color:blue; 49 | } 50 | #right dl dd span.time{ 51 | color:#999; 52 | } -------------------------------------------------------------------------------- /styles/stu_date_one.css: -------------------------------------------------------------------------------- 1 | @CHARSET "UTF-8"; 2 | input{ 3 | background:#fff; 4 | border:1px solid #666; 5 | border-radius:0px; 6 | box-shadow:inset 0 0 0px #999; 7 | } 8 | #main_in{ 9 | padding-bottom:20px; 10 | border:1px solid #999; 11 | font-size:14px; 12 | width:500px; 13 | margin:20px auto 0 auto; 14 | } 15 | #main_in dl dt{ 16 | font-size:18px; 17 | text-align:center; 18 | height:25px; 19 | line-height:25px; 20 | background:lightblue; 21 | border-bottom:2px solid #999; 22 | margin-bottom:10px; 23 | position:relative; 24 | } 25 | #main_in dl dt img{ 26 | background:#fff; 27 | padding:15px; 28 | width:100px; 29 | height:110px; 30 | position:absolute; 31 | top:45px; 32 | right:35px; 33 | } 34 | #main_in dl dd{ 35 | margin:0 auto; 36 | width:400px; 37 | padding:15px 0 3px 0; 38 | border-bottom:1px dashed #ccc; 39 | } 40 | #main_in dl dd a{ 41 | color:blue; 42 | border-width:0; 43 | text-decoration:underline; 44 | cursor:pointer; 45 | } 46 | #main_in dl dd input.button{ 47 | width:70px; 48 | height:27px; 49 | margin-top:10px; 50 | cursor:pointer; 51 | } 52 | 53 | #main_in dl dd input.button:hover{ 54 | background:inactivecaption; 55 | } -------------------------------------------------------------------------------- /styles/notice_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 | 9 | 10 | #main_in{ 11 | padding-bottom:20px; 12 | border:1px solid #999; 13 | font-size:14px; 14 | width:600px; 15 | margin:20px auto 0 auto; 16 | } 17 | #main_in form dl dt{ 18 | font-size:16px; 19 | text-align:center; 20 | height:30px; 21 | line-height:30px; 22 | background:lightblue; 23 | border-bottom:2px solid #999; 24 | 25 | } 26 | #main_in form dl dd{ 27 | padding-top:10px; 28 | } 29 | #main_in form dl dd span{ 30 | position:relative; 31 | top:-136px; 32 | } 33 | #main_in form dl dd input{ 34 | width:520px; 35 | height:22px; 36 | } 37 | #main_in form dl dd input:focus{ 38 | border-color:lightblue; 39 | } 40 | #main_in form dl dd textarea{ 41 | width:520px; 42 | height:220px; 43 | border:1px solid #ccc; 44 | } 45 | #main_in form dl dd textarea:focus{ 46 | border-color:lightblue; 47 | } 48 | #main_in form dl dd input.button{ 49 | width:70px; 50 | height:27px; 51 | margin-left:40px; 52 | margin-top:15px; 53 | cursor:pointer; 54 | } 55 | 56 | #main_in form dl dd input.button:hover{ 57 | background:inactivecaption; 58 | } -------------------------------------------------------------------------------- /export.php: -------------------------------------------------------------------------------- 1 | 14 | 15 | 16 | 17 | 18 | 19 | 22 | 23 | 24 | 27 |
28 |
29 |
30 | 数据导出 31 |
32 | 选择数据:
33 |
34 | 35 |
36 |
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 "+$money"; 8 | }else { 9 | $money=abs($money); 10 | return "- $money"; 11 | } 12 | } 13 | 14 | function _check_funds_type($type){ 15 | if($type==1 or $type==10){ 16 | return "按导师"; 17 | }else if($type==2 OR $type==20){ 18 | return "按学生"; 19 | }else if($type==0){ 20 | return "撤销"; 21 | } 22 | } 23 | 24 | function _check_post($p){ 25 | $temp=array(); 26 | $n=0; 27 | foreach($p as $k=>$v){ 28 | if($v){ 29 | if($k=="gm_money") 30 | array_push($temp,$k.$v); 31 | else 32 | array_push($temp,$k."'".$v."'"); 33 | $a=1; 34 | } 35 | $n++; 36 | } 37 | if($a!=1) 38 | return ""; 39 | else{ 40 | return implode(" AND ",$temp); 41 | } 42 | } 43 | 44 | function _check_details($content){ 45 | //取出二边空格 46 | $content=trim($content); 47 | //判断是否为空 48 | if($content==''){ 49 | _alert_back('事由不可以为空!'); 50 | } 51 | //判断是否含有敏感字符 52 | $char_patern='/[<>\'\"\ ]/'; 53 | if(preg_match($char_patern, $content)){ 54 | _alert_back('内容不得包含敏感字符!'); 55 | } 56 | return _mysql_string($content); 57 | } 58 | ?> -------------------------------------------------------------------------------- /styles/funds_active.css: -------------------------------------------------------------------------------- 1 | @CHARSET "UTF-8"; 2 | #main span.ex{ 3 | display:block; 4 | text-align:center; 5 | color:#666; 6 | padding-top:50px; 7 | font-size:13px; 8 | 9 | } 10 | #main table{ 11 | clear:both; 12 | margin:40px auto 40px auto; 13 | border-collapse:collapse; 14 | } 15 | #main table tr th,td{ 16 | padding:5px 10px; 17 | border:1px solid #999; 18 | } 19 | #main table tr td a{ 20 | color:blue; 21 | } 22 | #main table tr th.sortableCol{ 23 | cursor:pointer; 24 | } 25 | #main table tr td a:hover{ 26 | color:red; 27 | text-decoration:underline; 28 | } 29 | #main table tr:hover{ 30 | background:#ffc; 31 | } 32 | #main table tr th{ 33 | background:lightblue 34 | } 35 | 36 | th img.sortDirImage { 37 | margin-left:6px; 38 | margin-bottom:3px; 39 | } 40 | #main table tr td a.a{ 41 | color:black; 42 | } 43 | #main table tr td a.a:hover{ 44 | text-decoration:underline; 45 | } 46 | #body p.record{ 47 | text-align:center; 48 | } 49 | #body p.record span{ 50 | color:red; 51 | padding:0 2px; 52 | } 53 | div#refuse{ 54 | width:200px; 55 | height:100px; 56 | border:1px solid #ccc; 57 | position:relative; 58 | z-index:99999; 59 | 60 | } 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | -------------------------------------------------------------------------------- /styles/notice_s.css: -------------------------------------------------------------------------------- 1 | @CHARSET "UTF-8"; 2 | #list{ 3 | font-size:12px; 4 | width:700px; 5 | margin:0 auto; 6 | padding:20px 10px 40px 10px; 7 | } 8 | #list ul{ 9 | margin-bottom:50px; 10 | line-height:180%; 11 | } 12 | #list ul li.top{ 13 | font-size:16px; 14 | margin-bottom:5px; 15 | text-align:center; 16 | line-height:25px; 17 | height:25px; 18 | background:lightblue; 19 | border-bottom:2px solid #999; 20 | } 21 | #list ul li.time{ 22 | background:url("../images/ico.gif") no-repeat left center; 23 | color:orange; 24 | font-weight:bold; 25 | padding-left:12px; 26 | } 27 | #list ul li.title{ 28 | padding-left:12px; 29 | color:#000; 30 | } 31 | #list ul li.title:hover span{ 32 | display:inline; 33 | } 34 | #list ul li.title a:hover{ 35 | color:#666; 36 | } 37 | #list ul li.line{ 38 | padding-top:3px; 39 | border-top:1px solid #ccc; 40 | } 41 | #list ul li.title_big,li.time_big{ 42 | text-align:center; 43 | } 44 | #list ul li.title_big{ 45 | margin:8px 0; 46 | font-size:18px; 47 | font-family:黑体; 48 | } 49 | #list ul li.time_big{ 50 | color:#999; 51 | } 52 | #list ul li.content{ 53 | font-size:14px; 54 | } 55 | #list .back{ 56 | font-size:13px; 57 | cursor:pointer; 58 | margin-left:648px; 59 | color:blue; 60 | text-decoration:underline; 61 | } 62 | #list .back:hover{ 63 | color:red; 64 | } -------------------------------------------------------------------------------- /styles/message_s.css: -------------------------------------------------------------------------------- 1 | @CHARSET "UTF-8"; 2 | #list { 3 | font:9pt Verdana,Tahoma; 4 | color:#625F5F; 5 | line-height:23px; 6 | width:650px; 7 | margin:0 auto 10px auto; 8 | background-repeat: repeat-x; 9 | background-color:#F0F8FF; 10 | padding:20px 13px 13px 13px; 11 | } 12 | #listmain{ 13 | border: 1px solid #D5E4F4; 14 | background:#FFF; 15 | padding:5px; 16 | margin:0px; 17 | padding-bottom:20px; 18 | } 19 | 20 | #listmain h2{ 21 | font:9pt Verdana; 22 | color:#175CBB; 23 | border-top:1px solid #EBF5FE; 24 | border-bottom:1px solid #EBF5FE; 25 | background:#F4FAFF; 26 | padding:3px; 27 | font-weight: normal; 28 | height:20px; 29 | } 30 | 31 | .leftarea{ 32 | height:20px; 33 | line-height:20px; 34 | float:left; 35 | overflow:hidden; 36 | } 37 | 38 | .leftarea { 39 | padding-left:8px; 40 | width:480px; 41 | } 42 | .content{ 43 | margin-left:10px; 44 | width:610px; 45 | text-indent: 24px; 46 | word-wrap: break-word; 47 | padding:6px 12px 10px 12px; 48 | } 49 | 50 | .reply{ 51 | margin-left:65px; 52 | border:2px dashed #F8E9E9; 53 | background:#f8f8f8; 54 | width:520px; 55 | text-indent:24px; 56 | word-wrap:break-word; 57 | padding:8px; 58 | margin-bottom:10px; 59 | } 60 | .xzfb{ 61 | color:blue; 62 | cursor:pointer; 63 | text-decoration:underline; 64 | } 65 | .xzfb:hover{ 66 | color:blue; 67 | text-decoration:underline; 68 | } -------------------------------------------------------------------------------- /js/register.js: -------------------------------------------------------------------------------- 1 | window.onload = function () { 2 | code(); 3 | //注册验证 4 | var fm = document.getElementsByTagName('form')[0]; 5 | 6 | fm.onsubmit = function () { 7 | if (fm.username.value=='') { 8 | alert('姓名不得为空'); 9 | fm.username.value = ''; //清空 10 | fm.username.focus(); //将焦点以至表单字段 11 | return false; 12 | } 13 | if (/[<>\'\"\ \ ]/.test(fm.username.value)) { 14 | alert('姓名不得包含非法字符'); 15 | fm.username.value = ''; //清空 16 | fm.username.focus(); //将焦点以至表单字段 17 | return false; 18 | } 19 | 20 | // var year=fm.birth_y.value; 21 | // var month=fm.birth_m.value; 22 | // var date=fm.birth_d.value; 23 | // var d=new Date(); 24 | // d.setFullYear(year); 25 | // d.setMonth(month-1); 26 | // d.setDate(date); 27 | // alert(year+month+date); 28 | // if(!(d.getFullYear==year && (d.getMonth()+1)==month && d.getDate()==date)){ 29 | // alert('天啊!历史上尽然没有你出生的那天...'); 30 | // fm.contact.focus(); //将焦点以至表单字段 31 | // return false; 32 | // } 33 | 34 | if(isNaN(fm.contact.value)){ 35 | alert('联系方式必须是纯数字'); 36 | fm.contact.value = ''; //清空 37 | fm.contact.focus(); //将焦点以至表单字段 38 | return false; 39 | } 40 | //验证码验证 41 | if (fm.code.value.length != 4) { 42 | alert('验证码必须是4位'); 43 | fm.code.value = ''; //清空 44 | fm.code.focus(); //将焦点以至表单字段 45 | return false; 46 | } 47 | 48 | 49 | 50 | 51 | }; 52 | }; -------------------------------------------------------------------------------- /styles/message_admin.css: -------------------------------------------------------------------------------- 1 | @CHARSET "UTF-8"; 2 | .clear { 3 | font-size:0; 4 | height:0; 5 | clear:both; 6 | } 7 | #list { 8 | font:9pt Verdana,Tahoma; 9 | color:#625F5F; 10 | line-height:23px; 11 | width:650px; 12 | margin:0 auto 10px auto; 13 | background-repeat: repeat-x; 14 | background-color:#F0F8FF; 15 | padding:20px 13px 13px 13px; 16 | } 17 | #listmain{ 18 | border: 1px solid #D5E4F4; 19 | background:#FFF; 20 | padding:5px; 21 | margin:0px; 22 | padding-bottom:20px; 23 | } 24 | 25 | #listmain h2{ 26 | font:9pt Verdana; 27 | color:#175CBB; 28 | border-top:1px solid #EBF5FE; 29 | border-bottom:1px solid #EBF5FE; 30 | background:#F4FAFF; 31 | padding:3px; 32 | font-weight: normal; 33 | height:20px; 34 | } 35 | 36 | .leftarea,.midarea{ 37 | height:20px; 38 | line-height:20px; 39 | float:left; 40 | overflow:hidden; 41 | } 42 | 43 | .leftarea { 44 | padding-left:8px; 45 | width:480px; 46 | } 47 | .leftarea a{ 48 | color:blue; 49 | } 50 | 51 | .midarea { 52 | width:88px; 53 | text-align:right; 54 | } 55 | .content{ 56 | margin-left:10px; 57 | width:610px; 58 | text-indent: 24px; 59 | word-wrap: break-word; 60 | padding:6px 12px 10px 12px; 61 | } 62 | 63 | .reply{ 64 | margin-left:65px; 65 | border:2px dashed #F8E9E9; 66 | background:#f8f8f8; 67 | width:520px; 68 | text-indent:24px; 69 | word-wrap:break-word; 70 | padding:8px; 71 | margin-bottom:10px; 72 | } -------------------------------------------------------------------------------- /includes/details_two.inc.php: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 |
专业
5 |
全部
6 |
计算机应用技术
7 |
计算机软件与理论
8 |
计算机技术
9 |
10 |
11 |
培养类型
12 |
全部
13 |
学术型
14 |
专业型
15 |
工程型
16 |
17 |
18 |
年级
19 |
全部
20 |
研一
21 |
研二
22 |
研三
23 |
已毕业
24 |
25 | 26 |
27 |
28 | -------------------------------------------------------------------------------- /styles/register.css: -------------------------------------------------------------------------------- 1 | @CHARSET "UTF-8"; 2 | #outmain{ 3 | width:650px; 4 | height:810px; 5 | margin:20px auto; 6 | background:#B9E4F7; 7 | } 8 | #main{ 9 | width:600px; 10 | height:770px; 11 | margin:0 auto; 12 | position:relative; 13 | top:15px; 14 | border:2px solid highlight; 15 | background:#fff; 16 | } 17 | #main img{ 18 | width:500px; 19 | } 20 | #main h2{ 21 | font-size:14px; 22 | color:#666; 23 | padding-top:10px; 24 | padding-left:10px; 25 | font-weight:normal; 26 | text-decoration:underline; 27 | } 28 | #main form{ 29 | font-size:15px; 30 | width:300px; 31 | margin:30px auto 0 auto; 32 | } 33 | #main form dl dd{ 34 | margin-top:15px; 35 | } 36 | #main form dl dd img#waitPic{ 37 | width:10px; 38 | height:10px; 39 | } 40 | #main form dl dd input.text{ 41 | width:200px; 42 | height:24px; 43 | border-radius:3px; 44 | } 45 | #main form dl dd input:focus{ 46 | border:1px solid #1E90FF; 47 | } 48 | #main form dl dd select{ 49 | height:20px; 50 | } 51 | #main form dl dd input.radio{ 52 | margin-left:15px; 53 | } 54 | #main form dl dd input.button{ 55 | width:70px; 56 | height:27px; 57 | margin-left:20px; 58 | margin-top:25px; 59 | cursor:pointer; 60 | } 61 | 62 | #main form dl dd input.button:hover{ 63 | background:inactivecaption; 64 | } 65 | #main form dl dd input.code{ 66 | width:75px; 67 | } 68 | #main form dl dd img#code{ 69 | width:75px; 70 | height:25px; 71 | position:relative; 72 | top:8px; 73 | cursor:pointer; 74 | } 75 | #citySpan,#townSpan,#waitPic { 76 | display:none; 77 | } -------------------------------------------------------------------------------- /styles/stu_data_edit.css: -------------------------------------------------------------------------------- 1 | @CHARSET "UTF-8"; 2 | input{ 3 | background:#fff; 4 | border:1px solid #666; 5 | border-radius:0px; 6 | box-shadow:inset 0 0 0px #999; 7 | } 8 | #main form{ 9 | border:1px solid #999; 10 | font-size:15px; 11 | width:400px; 12 | margin:30px auto 0 auto; 13 | padding:0 20px; 14 | } 15 | #main form dl dt{ 16 | width:440px; 17 | font-size:18px; 18 | text-align:center; 19 | height:25px; 20 | line-height:25px; 21 | background:lightblue; 22 | border-bottom:2px solid #999; 23 | margin-bottom:10px; 24 | position:relative; 25 | left:-20px; 26 | } 27 | #main form dl dd{ 28 | margin-top:20px; 29 | padding:0px 0 5px 0; 30 | border-bottom:1px dashed #ccc; 31 | } 32 | #main form dl dd img#waitPic{ 33 | width:10px; 34 | height:10px; 35 | } 36 | #main form dl dd input.text{ 37 | width:200px; 38 | height:24px; 39 | border-radius:3px; 40 | } 41 | #main form dl dd input:focus{ 42 | border:1px solid #1E90FF; 43 | } 44 | #main form dl dd select{ 45 | height:20px; 46 | } 47 | #main form dl dd input.radio{ 48 | margin-left:15px; 49 | } 50 | #main form dl dd input.button{ 51 | width:70px; 52 | height:27px; 53 | margin-left:30px; 54 | margin-top:25px; 55 | cursor:pointer; 56 | } 57 | 58 | #main form dl dd input.button:hover{ 59 | background:inactivecaption; 60 | } 61 | #main form dl dd input.code{ 62 | width:75px; 63 | } 64 | #main form dl dd img#code{ 65 | width:75px; 66 | height:25px; 67 | position:relative; 68 | top:8px; 69 | cursor:pointer; 70 | } 71 | #citySpan,#townSpan,#waitPic { 72 | display:none; 73 | } -------------------------------------------------------------------------------- /funds_add_admin.php: -------------------------------------------------------------------------------- 1 | {$rows['num']}"; 21 | // } 22 | // } 23 | //} 24 | ?> 25 | 26 | 27 | 28 | 29 | 30 | 33 | 34 | 35 | 36 | 39 |
40 |
41 |

操作类型:导师学生

42 |
43 |
44 |
45 |
46 |
47 | 48 | 49 |
50 | 53 | 54 | -------------------------------------------------------------------------------- /stu_update.php: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 20 | 21 | 22 | 25 | 26 | 27 | 30 |
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 | 30 | 33 | 34 | 35 | 38 |
39 |
40 |
41 |
42 |
发布留言
43 |
发布者:
44 |
内 容:
45 |
46 |
47 |
48 |
49 |
50 | 53 | 54 | -------------------------------------------------------------------------------- /styles/set_admin.css: -------------------------------------------------------------------------------- 1 | @CHARSET "UTF-8"; 2 | input{ 3 | background:#fff; 4 | border:1px solid #999; 5 | border-radius:0px; 6 | box-shadow:inset 0 0 0px #999; 7 | height:22px; 8 | } 9 | input:focus{ 10 | border:1px solid lightblue; 11 | } 12 | h2 { 13 | font-size:14px; 14 | background:#eee; 15 | text-indent:0; 16 | text-align:center; 17 | height:30px; 18 | line-height:30px; 19 | } 20 | #left { 21 | border: 1px dashed #999999; 22 | float: left; 23 | height: 550px; 24 | margin: 15px 0 15px 25px; 25 | width: 25%; 26 | } 27 | #left dl { 28 | margin: 15px auto; 29 | width: 86%; 30 | } 31 | #left dl dt { 32 | background:#999999; 33 | color: #FFFFFF; 34 | font-weight: bold; 35 | height: 30px; 36 | line-height: 30px; 37 | text-align: center; 38 | } 39 | #left dl dd { 40 | background:#EEEEEE; 41 | height: 30px; 42 | line-height: 30px; 43 | text-align: center; 44 | } 45 | #left dl dd a { 46 | color: #333333; 47 | display: block; 48 | text-decoration: none; 49 | } 50 | #left dl dd a:hover { 51 | background:#CCCCCC; 52 | } 53 | #right { 54 | border: 1px dashed #999999; 55 | float: right; 56 | height: 550px; 57 | margin: 15px 25px 15px 0; 58 | width: 67%; 59 | } 60 | #right dd{ 61 | margin:20px auto; 62 | padding-bottom:5px; 63 | width:80%; 64 | border-bottom:1px dashed #ccc; 65 | } 66 | #right dd.area{ 67 | height:60px; 68 | } 69 | #right dd input.text{ 70 | width:160px; 71 | } 72 | #right dd input.text_l{ 73 | width:400px; 74 | } 75 | #right dd input.submit{ 76 | height:25px; 77 | cursor:pointer; 78 | } 79 | #right dd input.submit:hover{ 80 | background:#ccc; 81 | } 82 | #right dd input.pagesize{ 83 | width:40px; 84 | } 85 | #footer{ 86 | clear:both; 87 | } -------------------------------------------------------------------------------- /student_s.php: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 26 | 27 | 28 | 31 |
32 |
33 |
34 |
最新公告
35 | '._cut($notice_row['gm_title'],20).''; 41 | } 42 | ?> 43 |
44 |
45 | 59 |
60 | 63 | 64 | 65 | -------------------------------------------------------------------------------- /includes/mysql.func.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /set_admin.php: -------------------------------------------------------------------------------- 1 | 14 | 15 | 16 | 17 | 18 | 19 | 22 | 23 | 24 | 25 | 28 |
29 |
30 |

管理导航

31 |
32 |
系统管理
33 |
后台首页
34 |
系统设置
35 |
36 |
37 |
页面设置
38 |
分页设置
39 |
风格设置
40 |
41 |
42 | 60 | 61 |
62 | 65 | 66 | -------------------------------------------------------------------------------- /notice_admin.php: -------------------------------------------------------------------------------- 1 | 26 | 27 | 28 | 29 | 30 | 31 | 34 | 35 | 36 | 39 |
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 | 46 | -------------------------------------------------------------------------------- /notice_s.php: -------------------------------------------------------------------------------- 1 | 25 | 26 | 27 | 28 | 29 | 30 | 33 | 34 | 35 | 38 |
    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 | 19 | 22 | 23 | 24 | 27 |
    28 | 29 |
    30 | 31 |
    32 | 49 |

    50 | 51 | # 发表留言 52 | ';?> 53 | 54 |

    55 |
    56 | 59 |
    60 | 63 |
    64 |

    管理员-回复

    65 | 66 |
    67 | 现在发表'; 73 | } 74 | ?> 75 |
    76 | 77 |
    78 | 79 | 83 | 84 |
    85 | 88 | 89 | -------------------------------------------------------------------------------- /stu_date_one.php: -------------------------------------------------------------------------------- 1 | 现在分配'; 21 | }else{ 22 | $row['gm_teacher'].=' 重新分配'; 23 | } 24 | } 25 | ?> 26 | 27 | 28 | 29 | 30 | 33 | 34 | 35 | 38 |
    39 |
    40 |
    41 |
    学生个人信息
    42 |
    姓名:
    43 |
    学号:
    44 |
    导师:
    45 |
    性别:
    46 |
    出生年月:
    47 |
    入学时间:
    48 |
    年级:
    49 |
    联系方式:
    50 |
    家庭住址:
    51 |
    专业:
    52 |
    培养类型:
    53 |
    注册时间:
    54 |
    上次登录时间:
    55 |
    上次登录IP:
    56 |
    ";?>  
    57 |
    58 |
    59 |
    60 | 63 | 64 | -------------------------------------------------------------------------------- /message_edit_admin.php: -------------------------------------------------------------------------------- 1 | 38 | 39 | 40 | 41 | 42 | 43 | 46 | 47 | 48 | 51 |
    52 |
    53 |
    54 |

    55 |

    56 | 57 | 发布的留言 58 |

    59 |
    60 | 61 |

    回复内容:

    62 | 63 |   64 |
    65 |
    66 |
    67 |
    68 | 71 | 72 | -------------------------------------------------------------------------------- /export_action.php: -------------------------------------------------------------------------------- 1 | 撤销') 62 | $type='撤销'; 63 | if($row['gm_ftype']==10 OR $row['gm_ftype']==20) 64 | $type.="[已撤销]"; 65 | echo ($i+1)."\t".$type."\t".$row['gm_username']."\t".$row['gm_num']."\t".$row['gm_time']."\t".$row['gm_money']."\t".$row['gm_lmoney']."\t".$row['gm_details']."\n"; 66 | } 67 | } 68 | } 69 | ?> -------------------------------------------------------------------------------- /includes/header_student.inc.php: -------------------------------------------------------------------------------- 1 | 10 |
    11 | 12 | 38 | 39 |
    40 |

    修改密码

    41 |
    42 |
    43 |
    44 |
    旧密码:
    45 |
    新密码:
    46 |
    47 |
    48 |
    49 |
    -------------------------------------------------------------------------------- /add_teacher.php: -------------------------------------------------------------------------------- 1 | 41 | 42 | 43 | 44 | 45 | 46 | 49 | 50 | 51 | 54 |
    55 |
    56 |
    57 | 修改导师资料'; 59 | echo '
    '; 60 | } 61 | if($_GET['action']==add){ 62 | echo '添加导师'; 63 | echo ' '; 64 | } 65 | ?> 66 | 67 | 姓名:' />
    68 | 工号: id="inputDetails" value='' />
    69 | ';?> 70 | 职称:
    71 | 72 |
    73 |
    74 |
    75 | 76 |
    77 | 80 | 81 | -------------------------------------------------------------------------------- /stu_data_s.php: -------------------------------------------------------------------------------- 1 | 38 | 39 | 40 | 41 | 42 | 43 | 46 | 47 | 48 | 51 |
    52 |
    53 |
    54 |
    个人信息
    55 |
    姓名:
    56 |
    学号:
    57 |
    导师:
    58 |
    性别:
    59 |
    出生年月:
    60 |
    入学时间:
    61 |
    年级:
    62 |
    联系方式:
    63 |
    家庭住址:
    64 |
    专业:
    65 |
    培养类型:
    66 |
    注册时间:
    67 |
    上次登录时间:
    68 |
    上次登录IP:
    69 |
    70 |
    71 |
    72 | 73 |
    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 '
    '; 64 | else{ 65 | exit(); 66 | } 67 | ?> 68 |
    69 |
    发布/修改/查看公告
    70 |
    标题:
    71 |
    内容:
    72 |
    73 |
    74 |
    75 |
    76 |
    77 | 80 | 81 | -------------------------------------------------------------------------------- /login.php: -------------------------------------------------------------------------------- 1 | 52 | 53 | 54 | 55 | 56 | 计算机学院研究生档案管理--登录 57 | 58 | 59 | 60 | 61 | 62 | 63 |
    64 |

    计算机学院

    65 |
    66 |
    67 |
    68 |
    69 |
    70 | ";}?> 71 |
      
    72 |
    73 |
    74 |
    75 |

    *提示信息

    76 |
    77 | 78 | 79 | -------------------------------------------------------------------------------- /admin.php: -------------------------------------------------------------------------------- 1 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 33 | 34 | 35 | 38 |
    39 | 52 | 70 |
    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 | # 发表留言 59 | ';?> 60 | 61 | 62 | 删除留言 编辑/回复 63 | 64 |

    65 |
    66 | 69 |
    70 | 73 |
    74 |

    管理员-回复

    75 | 76 |
    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 | "; 90 | } 91 | ?> 92 | 93 |
    序号姓名学号性别年级专业培养类型审核
    $i{$rows['gm_username']}{$rows['gm_num']}{$rows['gm_sex']}{$rows['gm_grade']}{$rows['gm_subject']}{$rows['gm_type']}详情 通过 删除
    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 ""; 96 | } 97 | ?> 98 | 99 |
    序号姓名工号职称剩余经费学生数学生姓名操作
    $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 "
    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 | "; 95 | } 96 | ?> 97 | 98 |
    序号姓名学号性别年级专业管理类型申请时间金额事由操作
    $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通过 删除
    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 |
    47 |

    添加管理员

    48 |
    49 |
    50 |
    51 |
    登录帐号:
    52 |
    密  码:
    53 |
    54 |
    55 |
    56 |
    57 |
    58 |

    修改密码

    59 |
    60 |
    61 |
    62 |
    旧密码:
    63 |
    新密码:
    64 |
    65 |
    66 |
    67 |
    -------------------------------------------------------------------------------- /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 ""; 101 | } 102 | ?> 103 | 104 |
    序号姓名学号导师性别年级专业培养类型家庭住址操作
    $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 "
    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 | "; 124 | } 125 | ?> 126 | 127 |
    序号操作种类姓名工号操作时间支出/收入剩余经费摘要操作
    $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 "
    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=''; 10 | this.table.sortDirImage=div.firstChild; 11 | 12 | this.headers=getElementsByClassName("sortableCol",table.tHead.rows[0]); 13 | this.tBody=table.tBodies[0]; 14 | this.rows=this.tBody.rows; 15 | var i=0,vt,_this=this; 16 | for (;ib) return dir; 38 | if (ab) return dir; 45 | if (a0?"asc":"desc")+".gif"; 66 | this.headers[colIndex].appendChild(this.table.sortDirImage); 67 | addClass(this.headers[colIndex],"sorting"); 68 | for (i=0;i 85 | 86 | 87 | 88 | 89 | 计算机学院研究生档案管理--注册 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 |
    101 |
    102 | 计算机学院 103 |

    请认真填写以下内容>>>

    104 |
    105 |
    106 |
    107 |
    姓  名:
    108 |
    学  号:
    109 |
    性  别:
    110 |
    出生年月:
    112 |
    入学时间:
    114 |
    手机号码:
    115 |
    家庭住址:
    116 |
    专  业:
    118 |
    培养管理类型:
    119 |
    照  片:
    120 | 验 证 码: ";}?> 121 |
    122 |
    123 |
    124 |
    125 |
    126 | 127 | -------------------------------------------------------------------------------- /teacher_match.php: -------------------------------------------------------------------------------- 1 | 72 | 73 | 74 | 75 | 76 | 77 | 80 | 81 | 82 | 83 | 86 |
    87 | 88 |
    89 | 查看:未分配全部个人

    '; 92 | else 93 | echo '

    查看:未分配全部个人

    '; 94 | ?> 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 未分配"; 117 | $cz="分配"; 118 | } 119 | else{ 120 | $zt=$row['gm_teacher']; 121 | $cz="重新分配"; 122 | } 123 | echo ""; 125 | } 126 | ?> 127 | 128 |
    序号姓名学号性别年级专业培养类型导师操作
    $i{$row['gm_username']}{$row['gm_num']}{$row['gm_sex']}{$row['gm_grade']}{$row['gm_subject']}{$row['gm_type']}$zt详细 $cz"; 124 | echo "
    129 | 130 | 131 |

    查看:未分配全部个人

    132 |
    133 |
    134 | 分配导师 135 |
    136 | 学号:
    137 | (快速选择:)
    147 | 分配导师:
    156 | 157 |
    158 |
    159 |
    160 | 161 | 162 |
    163 |
    164 | 167 | 168 | -------------------------------------------------------------------------------- /includes/register.func.php: -------------------------------------------------------------------------------- 1 | \'\"\ ]/'; 32 | if(preg_match($char_patern, $username)){ 33 | _alert_back('用户名不得包含敏感字符!'); 34 | } 35 | return _mysql_string($username); 36 | } 37 | /** 38 | * _check_password检查密码 39 | * @access public 40 | * @param string $password 41 | * @return string $password 42 | */ 43 | function _check_password($password){ 44 | //判断是否为空 45 | if($password==''){ 46 | _alert_back('密码不可以为空!'); 47 | } 48 | //转换 49 | return sha1($password); 50 | } 51 | /** 52 | * _check_num检查学号 53 | * @access public 54 | * @param int $num 55 | * @return int $num 56 | */ 57 | function _check_num($num){ 58 | if(!is_numeric($num)){ 59 | _alert_back('学号/工号必须是纯数字!'); 60 | } 61 | return _mysql_string($num); 62 | } 63 | /** 64 | * _check_sex检查性别 65 | * @access public 66 | * @param string $sex 67 | * @return string $sex 68 | */ 69 | function _check_sex($sex){ 70 | if(!($sex=='男' or $sex=='女')){ 71 | _alert_back('性别值非法!'); 72 | } 73 | return _mysql_string($sex); 74 | } 75 | /** 76 | * _checkdate检查出生年月是否合法 77 | * @access public 78 | * @param $month 79 | * @param $day 80 | * @param $year 81 | * @return void 82 | */ 83 | function _checkdate($month, $day, $year){ 84 | if(!checkdate($month, $day, $year)){ 85 | _alert_back('你填写的日期有误'); 86 | } 87 | } 88 | /** 89 | * _check_time_grade把入学时间转换成年级,包含毕业的情况 90 | * @param $time_y 入学年份 91 | * @param $time_m 入学月份 92 | * @return 返回年级 93 | */ 94 | function _time_to_grade($time_y,$time_m){ 95 | $months=(date('Y')-$time_y)*12+(date('m')-$time_m); 96 | $grade=ceil($months/12); 97 | if($grade>3)$grade=4; 98 | switch ($grade){ 99 | case 1:return '研一';break; 100 | case 2:return '研二';break; 101 | case 3:return '研三';break; 102 | case 4:return '已毕业';break; 103 | default:_alert_back('入学时间信息出错!'); 104 | } 105 | } 106 | /** 107 | * _check_contact检查联系方式 108 | * @access public 109 | * @param int $contact 110 | * @return int $contact 111 | */ 112 | function _check_contact($contact){ 113 | if(!is_numeric($contact)){ 114 | _alert_back('手机号码必须是纯数字!'); 115 | } 116 | return _mysql_string($contact); 117 | } 118 | 119 | 120 | function _check_address_ex($address){ 121 | if (!$address){ 122 | _alert_back('地址不完整!'); 123 | } 124 | //判断是否含有敏感字符 125 | $char_patern='/[<>\'\"\ ]/'; 126 | if(preg_match($char_patern, $address)){ 127 | _alert_back('住址不得包含敏感字符!'); 128 | } 129 | return _mysql_string($address); 130 | } 131 | /** 132 | * _check_address检查家庭住址 133 | * @access public 134 | * @param $province 135 | * @param $city 136 | * @param $town 137 | * @return 返回连接在一起的住址 138 | */ 139 | function _check_address($province,$city,$town){ 140 | if (empty($province)){ 141 | _alert_back('地址不完整!'); 142 | } 143 | return _mysql_string($province.$city.$town); 144 | } 145 | 146 | /** 147 | * 判断详细地址是否含有敏感字符 148 | * Enter description here ... 149 | * @param $string 150 | */ 151 | function _check_address_details($string){ 152 | //判断是否含有敏感字符 153 | $char_patern='/[<>\'\"\ ]/'; 154 | if(preg_match($char_patern, $string)){ 155 | _alert_back('住址不得包含敏感字符!'); 156 | } 157 | return _mysql_string($string); 158 | } 159 | /** 160 | * _check_subject检查专业是否合法 161 | * @access public 162 | * @param string $subject 163 | * @return string $sunject 164 | */ 165 | function _check_subject($subject){ 166 | // $subject_arr=array("计算机应用技术","计算机软件与理论","计算机技术"); 167 | // if(!in_array($subject,$subject_arr));{ 168 | // _alert_back('专业值非法!'); 169 | // } 170 | return _mysql_string($subject); 171 | } 172 | /** 173 | * _check_type检查培养管理类型是否合法 174 | * @access public 175 | * @param string $type 176 | * @return string $type 177 | */ 178 | function _check_type($type){ 179 | // $type_arr=array("学术型","专业型","工程型"); 180 | // if(!in_array($type,$type_arr));{ 181 | // _alert_back('培养管理类型值非法!'); 182 | // } 183 | return _mysql_string($type); 184 | } 185 | /** 186 | * _check_photo对上传的照片进行处理 187 | * @access public 188 | * @return 返回照片名称 189 | */ 190 | function _check_photo(){ 191 | //类的实例化: 192 | include(ROOT_PATH."includes/upphoto.php");//类的文件名是upphoto.php 193 | 194 | $up=new upphoto(); 195 | 196 | $up->get_ph_tmpname($_FILES['photo']['tmp_name']); 197 | 198 | $up->get_ph_type($_FILES['photo']['type']); 199 | 200 | $up->get_ph_size($_FILES['photo']['size']); 201 | 202 | $up->get_ph_name($_FILES['photo']['name']); 203 | 204 | echo $up->save(); 205 | 206 | $temp=$up->get_ph_name($_FILES['photo']['name']);//提取出上传后生成的目录和文件名 207 | 208 | return $e_image=strrchr($up->get_ph_name($_FILES['photo']['name']),"/");//去掉目录,只保留文件名及后缀,方便存入数据库 209 | } 210 | /** 211 | * _check_code检查验证码 212 | * @access public 213 | * @param string $first_code 214 | * @param string $end_code 215 | * @return void 216 | */ 217 | function _check_code($first_code,$end_code){ 218 | if(strtolower($first_code)!=strtolower($end_code)){ 219 | _alert_back('验证码不正确!'); 220 | } 221 | } 222 | /** 223 | * _check_title检查标题 224 | * @param $title 225 | */ 226 | function _check_title($title){ 227 | //取出二边空格 228 | $title=trim($title); 229 | //判断是否为空 230 | if($title==''){ 231 | _alert_back("标题不可以为空!"); 232 | } 233 | //判断是否含有敏感字符 234 | $char_patern='/[<>\'\"]/'; 235 | if(preg_match($char_patern, $title)){ 236 | _alert_back('标题不得包含敏感字符!\n如:英文状态下的< >和单双引号'); 237 | } 238 | return _mysql_string($title); 239 | } 240 | 241 | function _check_email($email){ 242 | //取出二边空格 243 | $email=trim($email); 244 | $char_patern='/^([\w\.\_]{2,10})@(\w{1,}).([a-z]{2,4})$/'; 245 | if(preg_match($char_patern, $email)){ 246 | _alert_back('邮箱格式不正确!'); 247 | } 248 | return _mysql_string($email); 249 | } 250 | /** 251 | * _check_content检查内容 252 | * @param $content 253 | */ 254 | function _check_content($content){ 255 | //判断是否为空 256 | if($content==''){ 257 | _alert_back('内容不可以为空!'); 258 | } 259 | //判断是否含有敏感字符 260 | $char_patern='/[<>\'\"]/'; 261 | if(preg_match($char_patern, $content)){ 262 | _alert_back('内容不得包含敏感字符!\n如:英文状态下的< >和单双引号'); 263 | } 264 | return _mysql_string($content); 265 | } 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | ?> -------------------------------------------------------------------------------- /includes/global.func.php: -------------------------------------------------------------------------------- 1 | $_SESSION['level']){ 15 | _alert_back("权限不足!"); 16 | } 17 | } 18 | 19 | /** 20 | * _alert_back js弹窗提示,没有exit的话还会继续往下执行,小心、 21 | * @access public 22 | * @param string $msg 23 | * @return void 24 | */ 25 | function _alert_back($msg){ 26 | echo ""; 27 | exit(); 28 | } 29 | /** 30 | * _alert_back_back js弹窗提示、后退历史二格 31 | * @access public 32 | * @param string $msg 33 | * @return void 34 | */ 35 | function _alert_back_back($msg){ 36 | echo ""; 37 | exit(); 38 | } 39 | /** 40 | * _alert单纯的弹窗信息 41 | * Enter description here ... 42 | * @param $msg 弹窗信息 43 | */ 44 | function _alert($msg){ 45 | echo ""; 46 | exit(); 47 | } 48 | /** 49 | * _location js事先页面跳转,第一个参数可以为空 50 | * @access punlic 51 | * @param $_info 弹窗信息 52 | * @param $_url 跳转到的url 53 | * @return void 54 | */ 55 | function _location($_info,$_url) { 56 | if (!empty($_info)) { 57 | echo ""; 58 | exit(); 59 | } else { 60 | header('Location:'.$_url); 61 | exit(); 62 | } 63 | } 64 | 65 | 66 | /** 67 | * _cut()标题截取函数 68 | * @param $_string 69 | */ 70 | function _cut($_string,$_strlen) { 71 | if (mb_strlen($_string,'utf-8') > $_strlen) { 72 | $_string = mb_substr($_string,0,$_strlen,'utf-8').'...'; 73 | } 74 | return $_string; 75 | } 76 | 77 | /** 78 | * _mysql_string导入数据库前的处理函数 79 | * @access public 80 | * @param string $string 81 | * @return string $string 82 | */ 83 | /** 84 | * _level数据库里的权限判断 85 | * @access public 86 | * @param $level 等级数字123 87 | * @return 返回文字型权限 88 | */ 89 | function _level($level){ 90 | if($level==1){ 91 | return '普通用户'; 92 | } 93 | if($level==2){ 94 | return '管理员'; 95 | } 96 | if($level==3){ 97 | return '超级管理员'; 98 | } 99 | } 100 | function _mysql_string($string){ 101 | if(GPC){ 102 | return $string; 103 | }else{ 104 | return mysql_real_escape_string($string); 105 | } 106 | } 107 | /** 108 | * _msg跳转时的提示信息 109 | * @param string $type s代表成功信息,f代表失败信息 110 | * @param string $msg 显示的字幕,换行用br最后一句不要换行 111 | * @param string $url 跳转到的地址 112 | */ 113 | function _msg($type,$msg,$url){ 114 | if($type=='s'){ 115 | echo "
    $msg
    正在跳转......手动跳转
    "; 116 | } 117 | if($type=='f'){ 118 | echo "
    $msg
    正在跳转......手动跳转
    "; 119 | } 120 | } 121 | /** 122 | * _page分页函数 123 | * @access public 124 | * @param int $num 总记录数 125 | * @param int $size 每页显示数 126 | */ 127 | function _page($num,$size){ 128 | //这里需要用全局变量$pagesize,所以不可以把参数命名为$pagesize 129 | global $page,$pageabsolute,$pagenum,$pagesize; 130 | if(isset($_GET['page'])){ 131 | $page = $_GET['page']; 132 | if(empty($page) or $page<0 or !is_numeric($page)){ 133 | $page = 1; 134 | }else { 135 | $page = intval($page); 136 | } 137 | }else{ 138 | $page = 1; 139 | } 140 | $pagesize =$size; 141 | //此句在本页多余,但在其他情况下可能有用 142 | if($num == 0){ 143 | $pageabsolute=1; 144 | }else{ 145 | $pageabsolute=ceil($num/$pagesize); 146 | } 147 | if($page>$pageabsolute){ 148 | $page = $pageabsolute; 149 | } 150 | //此句要放在上面判断语句的下面 151 | $pagenum = ($page-1)*$pagesize; 152 | } 153 | /** 154 | * _paging分页选择函数 155 | * @access public 156 | * @param $type 1数字分页,2文本分页 157 | */ 158 | function _paging($type){ 159 | global $pageabsolute,$page,$num; 160 | if($type==1){ 161 | echo '
    '; 162 | echo '
      '; 163 | for($i=1;$i<=$pageabsolute;$i++) 164 | if($page==$i){ 165 | echo '
    • '.$i.'
    • '; 166 | }else{ 167 | echo '
    • '.$i.'
    • '; 168 | } 169 | echo '
    '; 170 | echo '
    '; 171 | }elseif ($type==2){ 172 | echo '
    '; 173 | echo '
      '; 174 | echo '
    • '.$page.'/'.$pageabsolute.' |
    • '; 175 | echo '
    • 共有'.$num.'条记录 |
    • '; 176 | if($page==1){ 177 | echo '
    • 首页 |
    • '; 178 | echo '
    • 上一页 |
    • '; 179 | }else{ 180 | echo '
    • 首页 |
    • '; 181 | echo '
    • 上一页 |
    • '; 182 | } 183 | if($page==$pageabsolute){ 184 | echo '
    • 下一页 |
    • '; 185 | echo '
    • 尾页
    • '; 186 | }else{ 187 | echo '
    • 下一页 |
    • '; 188 | echo '
    • 尾页
    • '; 189 | } 190 | echo '
    '; 191 | echo '
    '; 192 | } 193 | } 194 | /** 195 | * _time执行耗时 196 | * @access public 197 | * @return 返回microtime的时间和 198 | */ 199 | function _time(){ 200 | $time=explode(' ', microtime()); 201 | return $time[0]+$time[1]; 202 | } 203 | /** 204 | * _code()是验证码函数 205 | * @access public 206 | * @param int $_width 表示验证码的长度 207 | * @param int $_height 表示验证码的高度 208 | * @param int $_rnd_code 表示验证码的位数 209 | * @param bool $_flag 表示验证码是否需要边框 210 | * @return void 这个函数执行后产生一个验证码 211 | */ 212 | function _code($_width = 75,$_height = 25,$_rnd_code = 4,$_flag = false) { 213 | 214 | //创建随机码 215 | for ($i=0;$i<$_rnd_code;$i++) { 216 | $_nmsg .= dechex(mt_rand(0,15)); 217 | } 218 | 219 | //保存在session 220 | $_SESSION['code'] = $_nmsg; 221 | 222 | //创建一张图像 223 | $_img = imagecreatetruecolor($_width,$_height); 224 | 225 | //白色 226 | $_white = imagecolorallocate($_img,255,255,255); 227 | 228 | //填充 229 | imagefill($_img,0,0,$_white); 230 | 231 | if ($_flag) { 232 | //黑色,边框 233 | $_black = imagecolorallocate($_img,0,0,0); 234 | imagerectangle($_img,0,0,$_width-1,$_height-1,$_black); 235 | } 236 | 237 | //随即画出6个线条 238 | for ($i=0;$i<6;$i++) { 239 | $_rnd_color = imagecolorallocate($_img,mt_rand(0,255),mt_rand(0,255),mt_rand(0,255)); 240 | imageline($_img,mt_rand(0,$_width),mt_rand(0,$_height),mt_rand(0,$_width),mt_rand(0,$_height),$_rnd_color); 241 | } 242 | 243 | //随即雪花 244 | for ($i=0;$i<100;$i++) { 245 | $_rnd_color = imagecolorallocate($_img,mt_rand(200,255),mt_rand(200,255),mt_rand(200,255)); 246 | imagestring($_img,1,mt_rand(1,$_width),mt_rand(1,$_height),'*',$_rnd_color); 247 | } 248 | 249 | //输出验证码 250 | for ($i=0;$i -------------------------------------------------------------------------------- /stu_data_edit.php: -------------------------------------------------------------------------------- 1 | 116 | 117 | 118 | 119 | 120 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 132 |
    133 |
    134 | 135 |
    136 |
    学生信息修改
    137 |
    姓  名:
    138 |
    学  号: 139 | 140 |
    141 |
    导  师:
    156 |
    性  别:/> 男/> 女
    157 |
    出生年月:
    159 |
    入学时间:
    161 |
    联系方式:
    162 |
    家庭住址:
    163 |
    专  业:
    166 |
    培养管理类型:
    167 |
    照  片: 168 | 169 |
    170 | 验 证 码: ";}?> 171 |
    172 |
    173 |
    174 |
    175 | 178 | 179 | -------------------------------------------------------------------------------- /user_data.php: -------------------------------------------------------------------------------- 1 | 135 | 136 | 137 | 138 | 139 | 140 | 143 | 144 | 145 | 146 | 149 | 150 |
    151 | 152 |
    学号/工号/姓名:
    "; 155 | ?> 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | "; 183 | if($_SESSION['level']==2){ 184 | if($rows['gm_level']==1) 185 | echo ""; 186 | else 187 | echo ""; 188 | }elseif($_SESSION['level']==3){ 189 | if($rows['gm_level']==1) 190 | echo ""; 191 | elseif($_SESSION['username']==$rows['gm_username']) 192 | echo ""; 193 | else 194 | echo ""; 195 | } 196 | echo ""; 197 | } 198 | ?> 199 | 200 |
    序号用户名学号/工号注册时间上次登录时间上次登录IP权限操作全部重置)'; ?>
    $i{$rows['gm_username']}{$rows['gm_num']}{$rows['gm_reg_time']}{$rows['gm_last_time']}{$rows['gm_last_ip']}$level详细 重置密码/详细 重置密码 删除重置密码重置密码 删除
    201 | 本页-超管:$sadmin 管理员:$admin 普通:$common

    "; 206 | ?> 207 | 208 | 211 | 212 | -------------------------------------------------------------------------------- /action.php: -------------------------------------------------------------------------------- 1 | '; 17 | echo '工 号:(快速选择:)'; 25 | echo '
    '; 26 | echo '金额:'; 27 | echo '
    摘要:
    '; 28 | echo '
    '; 29 | echo ''; 30 | } 31 | if($action=="details"){ 32 | $nums=$_GET['nums']; 33 | if(is_numeric($nums) AND _num_rows("SELECT gm_num FROM gm_teacher WHERE gm_num='$nums'")){ 34 | $rows=_fetch_array("SELECT * FROM gm_teacher WHERE gm_num='$nums'"); 35 | echo '姓名:'.$rows['gm_username']; 36 | echo ' | 工号:'.$rows['gm_num']; 37 | echo ' | 剩余经费:'.$rows['gm_funds']; 38 | $stu=explode(',', $rows['gm_student']); 39 | $stu_count=count($stu); 40 | if($stu[0]=='') 41 | $stu_count=0; 42 | echo ' | 学生数:'.$stu_count; 43 | }else{ 44 | echo "没找到该位导师的信息!"; 45 | } 46 | } 47 | if($action=="oneAdd"){ 48 | $num=trim($_POST['num']); 49 | $type=trim($_POST['type']); 50 | $money=trim($_POST['money']); 51 | if(!is_numeric($num) || !is_numeric($money)){ 52 | _alert_back("工号或金额必须是数字!"); 53 | } 54 | if($type<0) $money=-$money; 55 | $details=trim($_POST['details']); 56 | if(!$num OR !$type OR !$money OR !$details) 57 | _alert_back("信息填写不完整!"); 58 | $row_t=_fetch_array("SELECT gm_funds FROM gm_teacher WHERE gm_num='$num'"); 59 | if(($row_t['gm_funds']+$money)<0) 60 | _alert_back("导师剩余经费不足,操作失败!"); 61 | $lmoney=$row_t['gm_funds']+$money; 62 | if(_query("UPDATE gm_teacher SET gm_funds=gm_funds+'$money' WHERE gm_num='$num'") 63 | and _query("INSERT INTO gm_funds(gm_ftype,gm_num,gm_time,gm_money,gm_lmoney,gm_details) VALUES('1','$num',NOW(),'$money','$lmoney','$details')")){ 64 | _alert_back("操作成功!"); 65 | }else{ 66 | _alert_back("操作失败!"); 67 | } 68 | } 69 | if($action=="two"){ 70 | require ROOT_PATH.'includes/details_two.inc.php'; 71 | } 72 | if($action=="twoAdd"){ 73 | $get=str_replace("\\","",$_GET['get']); 74 | if($get!=""){ 75 | $sql="SELECT * FROM gm_stuinfo WHERE $get AND gm_active='1'"; 76 | }else{ 77 | $sql="SELECT * FROM gm_stuinfo WHERE gm_active='1'"; 78 | } 79 | if($num=_num_rows($sql)){ 80 | $res=_query($sql); 81 | for($i=0;$i<$num;$i++){ 82 | $row=_fetch_array_list($res); 83 | echo "{$row['gm_num']}"; 84 | } 85 | echo "#"; 86 | echo '
    '; 87 | echo '
    '; 88 | echo '金额:'; 89 | echo '
    摘要:
    '; 90 | echo '
    '; 91 | echo '
    '; 92 | echo "符合条件的共有 ".$num." 位同学!已选择: ".$num." 位"; 93 | }else{ 94 | echo "没有符合条件的学生!"; 95 | //这里也要输出一个#!! 96 | echo "#"; 97 | } 98 | 99 | 100 | } 101 | if($action=="twoAddEnd"){ 102 | $nums=$_GET['nums']; 103 | $type=$_GET['type']; 104 | $money=$_GET['money']; 105 | $details=$_GET['details']; 106 | $nums=explode(",",$nums); 107 | if(!is_numeric($money)){ 108 | echo "数目必须是数字!"; 109 | }else { 110 | if($type<0)$money=-$money; 111 | for($i=0;$i".$nums[$i]."因未分配导师,操作失败!
    "; 115 | }else{ 116 | $row_t=_fetch_array("SELECT * FROM gm_teacher WHERE gm_username='{$row_s['gm_teacher']}'"); 117 | if(($row_t['gm_funds']+$money)<0){ 118 | echo "".$nums["$i"]."因导师剩余经费不足,操作失败!
    "; 119 | continue; 120 | } 121 | $lmoney=$row_t['gm_funds']+$money; 122 | if(_query("UPDATE gm_teacher SET gm_funds=gm_funds+'$money' WHERE gm_num='{$row_t['gm_num']}'") 123 | and _query("INSERT INTO gm_funds(gm_ftype,gm_num,gm_time,gm_money,gm_lmoney,gm_details) VALUES('2','{$row_t['gm_num']}',NOW(),'$money','$lmoney','$details')") or die(mysql_error())){ 124 | echo $nums["$i"]."成功!
    "; 125 | }else{ 126 | echo "".$nums[$i]."失败!
    "; 127 | } 128 | } 129 | } 130 | } 131 | } 132 | if($action=="sysset"){ 133 | echo '
    '; 134 | echo '
    '; 135 | echo '
    网站标题:
    '; 136 | echo '
    初始密码:
    '; 137 | $flag=$_system['register']==0?"selected='selected'":""; 138 | echo '
    是否允许注册:
    '; 139 | $flag=$_system['needcode']==0?"selected='selected'":""; 140 | echo '
    是否开启验证码:
    '; 141 | echo '
    登陆界面的提示信息:
    (换行用<br/>)
    '; 142 | echo '
    '; 143 | echo '
    '; 144 | echo '
    '; 145 | 146 | } 147 | if($action=="saveset"){ 148 | if($_POST['webname'] && $_POST['initial_password']){ 149 | if(_query("UPDATE gm_system SET gm_webname='{$_POST['webname']}',gm_initial_password='{$_POST['initial_password']}',gm_register='{$_POST['register']}',gm_needcode='{$_POST['needcode']}',gm_help_login='{$_POST['help_login']}' WHERE gm_id=1 LIMIT 1")){ 150 | _alert_back("修改成功!"); 151 | }else{ 152 | _alert_back("修改失败!"); 153 | } 154 | }else{ 155 | _alert_back("网站标题或默认密码不可为空!"); 156 | } 157 | } 158 | 159 | if($action=="page"){ 160 | echo '
    '; 161 | echo '
    '; 162 | $flag=$_system['user_date_page']==2?"selected='selected'":""; 163 | echo '
    用户信息: 每页
    '; 164 | $flag=$_system['stu_active_page']==2?"selected='selected'":""; 165 | echo '
    审核页面: 每页
    '; 166 | $flag=$_system['stu_date_page']==2?"selected='selected'":""; 167 | echo '
    研究生/导师信息: 每页
    '; 168 | $flag=$_system['message_page']==2?"selected='selected'":""; 169 | echo '
    留言板: 每页
    '; 170 | $flag=$_system['notice_page']==2?"selected='selected'":""; 171 | echo '
    公告中心: 每页
    '; 172 | $flag=$_system['funds_admin_page']==2?"selected='selected'":""; 173 | echo '
    经费管理: 每页
    '; 174 | echo '
    '; 175 | echo '
    '; 176 | echo '
    '; 177 | } 178 | 179 | if($action=="savepage"){ 180 | if($_POST['user_date_pagesize'] && $_POST['stu_active_pagesize'] && $_POST['stu_date_pagesize'] && $_POST['message_pagesize'] && $_POST['notice_pagesize'] && $_POST['funds_admin_pagesize']){ 181 | if(_query("UPDATE gm_system SET 182 | gm_user_date_page='{$_POST['user_date_page']}', 183 | gm_stu_active_page='{$_POST['stu_active_page']}', 184 | gm_stu_date_page='{$_POST['stu_date_page']}', 185 | gm_message_page='{$_POST['message_page']}', 186 | gm_notice_page='{$_POST['notice_page']}', 187 | gm_funds_admin_page='{$_POST['funds_admin_page']}', 188 | gm_user_date_pagesize='{$_POST['user_date_pagesize']}', 189 | gm_stu_active_pagesize='{$_POST['stu_active_pagesize']}', 190 | gm_stu_date_pagesize='{$_POST['stu_date_pagesize']}', 191 | gm_message_pagesize='{$_POST['message_pagesize']}', 192 | gm_notice_pagesize='{$_POST['notice_pagesize']}', 193 | gm_funds_admin_pagesize='{$_POST['funds_admin_pagesize']}' 194 | WHERE gm_id=1 195 | LIMIT 1")){ 196 | _alert_back("修改成功!"); 197 | }else{ 198 | _alert_back("修改失败!"); 199 | } 200 | }else{ 201 | _alert_back("分页大小不可为空!"); 202 | } 203 | } 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | ?> --------------------------------------------------------------------------------