Signed-off-by: gaoyuheng <gaoyuheng@yuheng.hl.cn>
57
My97DatePicker/WdatePicker.js
Normal file
5
My97DatePicker/calendar.js
Normal file
14
My97DatePicker/lang/en.js
Normal file
@@ -0,0 +1,14 @@
|
||||
var $lang={
|
||||
errAlertMsg: "Invalid date or the date out of range,redo or not?",
|
||||
aWeekStr: ["wk", "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
||||
aLongWeekStr:["wk","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],
|
||||
aMonStr: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
|
||||
aLongMonStr: ["January","February","March","April","May","June","July","August","September","October","November","December"],
|
||||
clearStr: "Clear",
|
||||
todayStr: "Today",
|
||||
okStr: "OK",
|
||||
updateStr: "OK",
|
||||
timeStr: "Time",
|
||||
quickStr: "Quick Selection",
|
||||
err_1: 'MinDate Cannot be bigger than MaxDate!'
|
||||
}
|
||||
14
My97DatePicker/lang/zh-cn.js
Normal file
@@ -0,0 +1,14 @@
|
||||
var $lang={
|
||||
errAlertMsg: "\u4E0D\u5408\u6CD5\u7684\u65E5\u671F\u683C\u5F0F\u6216\u8005\u65E5\u671F\u8D85\u51FA\u9650\u5B9A\u8303\u56F4,\u9700\u8981\u64A4\u9500\u5417?",
|
||||
aWeekStr: ["\u5468","\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],
|
||||
aLongWeekStr:["\u5468","\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],
|
||||
aMonStr: ["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00","\u5341\u4E8C"],
|
||||
aLongMonStr: ["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],
|
||||
clearStr: "\u6E05\u7A7A",
|
||||
todayStr: "\u4ECA\u5929",
|
||||
okStr: "\u786E\u5B9A",
|
||||
updateStr: "\u786E\u5B9A",
|
||||
timeStr: "\u65F6\u95F4",
|
||||
quickStr: "\u5FEB\u901F\u9009\u62E9",
|
||||
err_1: '\u6700\u5C0F\u65E5\u671F\u4E0D\u80FD\u5927\u4E8E\u6700\u5927\u65E5\u671F!'
|
||||
}
|
||||
14
My97DatePicker/lang/zh-tw.js
Normal file
@@ -0,0 +1,14 @@
|
||||
var $lang={
|
||||
errAlertMsg: "\u4E0D\u5408\u6CD5\u7684\u65E5\u671F\u683C\u5F0F\u6216\u8005\u65E5\u671F\u8D85\u51FA\u9650\u5B9A\u7BC4\u570D,\u9700\u8981\u64A4\u92B7\u55CE?",
|
||||
aWeekStr: ["\u5468","\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],
|
||||
aLongWeekStr:["\u5468","\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],
|
||||
aMonStr: ["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00","\u5341\u4E8C"],
|
||||
aLongMonStr: ["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],
|
||||
clearStr: "\u6E05\u7A7A",
|
||||
todayStr: "\u4ECA\u5929",
|
||||
okStr: "\u78BA\u5B9A",
|
||||
updateStr: "\u78BA\u5B9A",
|
||||
timeStr: "\u6642\u9593",
|
||||
quickStr: "\u5FEB\u901F\u9078\u64C7",
|
||||
err_1: '\u6700\u5C0F\u65E5\u671F\u4E0D\u80FD\u5927\u65BC\u6700\u5927\u65E5\u671F!'
|
||||
}
|
||||
11
My97DatePicker/skin/WdatePicker.css
Normal file
@@ -0,0 +1,11 @@
|
||||
.Wdate{
|
||||
border:#999 1px solid;
|
||||
height:20px;
|
||||
background:#fff url(datePicker.gif) no-repeat right;
|
||||
}
|
||||
.Wdate::-ms-clear{display:none;}
|
||||
|
||||
.WdateFmtErr{
|
||||
font-weight:bold;
|
||||
color:red;
|
||||
}
|
||||
BIN
My97DatePicker/skin/datePicker.gif
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
246
My97DatePicker/skin/default/datepicker.css
Normal file
@@ -0,0 +1,246 @@
|
||||
/*
|
||||
* My97 DatePicker 4.8
|
||||
*/
|
||||
|
||||
.WdateDiv{
|
||||
width:180px;
|
||||
background-color:#FFFFFF;
|
||||
border:#bbb 1px solid;
|
||||
padding:2px;
|
||||
}
|
||||
|
||||
.WdateDiv2{
|
||||
width:360px;
|
||||
}
|
||||
.WdateDiv *{font-size:9pt;}
|
||||
|
||||
.WdateDiv .NavImg a{
|
||||
display:block;
|
||||
cursor:pointer;
|
||||
height:16px;
|
||||
width:16px;
|
||||
}
|
||||
|
||||
.WdateDiv .NavImgll a{
|
||||
float:left;
|
||||
background:transparent url(img.gif) no-repeat scroll 0 0;
|
||||
}
|
||||
.WdateDiv .NavImgl a{
|
||||
float:left;
|
||||
background:transparent url(img.gif) no-repeat scroll -16px 0;
|
||||
}
|
||||
.WdateDiv .NavImgr a{
|
||||
float:right;
|
||||
background:transparent url(img.gif) no-repeat scroll -32px 0;
|
||||
}
|
||||
.WdateDiv .NavImgrr a{
|
||||
float:right;
|
||||
background:transparent url(img.gif) no-repeat scroll -48px 0;
|
||||
}
|
||||
|
||||
.WdateDiv #dpTitle{
|
||||
height:24px;
|
||||
margin-bottom:2px;
|
||||
padding:1px;
|
||||
}
|
||||
|
||||
.WdateDiv .yminput{
|
||||
margin-top:2px;
|
||||
text-align:center;
|
||||
height:20px;
|
||||
border:0px;
|
||||
width:50px;
|
||||
cursor:pointer;
|
||||
}
|
||||
|
||||
.WdateDiv .yminputfocus{
|
||||
margin-top:2px;
|
||||
text-align:center;
|
||||
font-weight:bold;
|
||||
height:20px;
|
||||
color:blue;
|
||||
border:#ccc 1px solid;
|
||||
width:50px;
|
||||
}
|
||||
|
||||
.WdateDiv .menuSel{
|
||||
z-index:1;
|
||||
position:absolute;
|
||||
background-color:#FFFFFF;
|
||||
border:#ccc 1px solid;
|
||||
display:none;
|
||||
}
|
||||
|
||||
.WdateDiv .menu{
|
||||
cursor:pointer;
|
||||
background-color:#fff;
|
||||
}
|
||||
|
||||
.WdateDiv .menuOn{
|
||||
cursor:pointer;
|
||||
background-color:#BEEBEE;
|
||||
}
|
||||
|
||||
.WdateDiv .invalidMenu{
|
||||
color:#aaa;
|
||||
}
|
||||
|
||||
.WdateDiv .YMenu{
|
||||
margin-top:20px;
|
||||
|
||||
}
|
||||
|
||||
.WdateDiv .MMenu{
|
||||
margin-top:20px;
|
||||
*width:62px;
|
||||
}
|
||||
|
||||
.WdateDiv .hhMenu{
|
||||
margin-top:-90px;
|
||||
margin-left:26px;
|
||||
}
|
||||
|
||||
.WdateDiv .mmMenu{
|
||||
margin-top:-46px;
|
||||
margin-left:26px;
|
||||
}
|
||||
|
||||
.WdateDiv .ssMenu{
|
||||
margin-top:-24px;
|
||||
margin-left:26px;
|
||||
}
|
||||
|
||||
.WdateDiv .Wweek {
|
||||
text-align:center;
|
||||
background:#DAF3F5;
|
||||
border-right:#BDEBEE 1px solid;
|
||||
}
|
||||
|
||||
.WdateDiv .MTitle{
|
||||
background-color:#BDEBEE;
|
||||
}
|
||||
.WdateDiv .WdayTable2{
|
||||
border-collapse:collapse;
|
||||
border:#c5d9e8 1px solid;
|
||||
}
|
||||
.WdateDiv .WdayTable2 table{
|
||||
border:0;
|
||||
}
|
||||
|
||||
.WdateDiv .WdayTable{
|
||||
line-height:20px;
|
||||
border:#c5d9e8 1px solid;
|
||||
}
|
||||
.WdateDiv .WdayTable td{
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
.WdateDiv .Wday{
|
||||
cursor:pointer;
|
||||
}
|
||||
|
||||
.WdateDiv .WdayOn{
|
||||
cursor:pointer;
|
||||
background-color:#C0EBEF;
|
||||
}
|
||||
|
||||
.WdateDiv .Wwday{
|
||||
cursor:pointer;
|
||||
color:#FF2F2F;
|
||||
}
|
||||
|
||||
.WdateDiv .WwdayOn{
|
||||
cursor:pointer;
|
||||
color:#000;
|
||||
background-color:#C0EBEF;
|
||||
}
|
||||
.WdateDiv .Wtoday{
|
||||
cursor:pointer;
|
||||
color:blue;
|
||||
}
|
||||
.WdateDiv .Wselday{
|
||||
background-color:#A9E4E9;
|
||||
}
|
||||
.WdateDiv .WspecialDay{
|
||||
background-color:#66F4DF;
|
||||
}
|
||||
|
||||
.WdateDiv .WotherDay{
|
||||
cursor:pointer;
|
||||
color:#6A6AFF;
|
||||
}
|
||||
|
||||
.WdateDiv .WotherDayOn{
|
||||
cursor:pointer;
|
||||
background-color:#C0EBEF;
|
||||
}
|
||||
|
||||
.WdateDiv .WinvalidDay{
|
||||
color:#aaa;
|
||||
}
|
||||
|
||||
.WdateDiv #dpTime{
|
||||
float:left;
|
||||
margin-top:3px;
|
||||
margin-right:30px;
|
||||
}
|
||||
|
||||
.WdateDiv #dpTime #dpTimeStr{
|
||||
margin-left:1px;
|
||||
}
|
||||
|
||||
.WdateDiv #dpTime input{
|
||||
width:18px;
|
||||
height:20px;
|
||||
text-align:center;
|
||||
border:#ccc 1px solid;
|
||||
}
|
||||
|
||||
.WdateDiv #dpTime .tB{
|
||||
border-right:0px;
|
||||
}
|
||||
|
||||
.WdateDiv #dpTime .tE{
|
||||
border-left:0;
|
||||
border-right:0;
|
||||
}
|
||||
|
||||
.WdateDiv #dpTime .tm{
|
||||
width:7px;
|
||||
border-left:0;
|
||||
border-right:0;
|
||||
}
|
||||
|
||||
.WdateDiv #dpTime #dpTimeUp{
|
||||
height:10px;
|
||||
width:13px;
|
||||
border:0px;
|
||||
background:url(img.gif) no-repeat -32px -16px;
|
||||
}
|
||||
|
||||
.WdateDiv #dpTime #dpTimeDown{
|
||||
height:10px;
|
||||
width:13px;
|
||||
border:0px;
|
||||
background:url(img.gif) no-repeat -48px -16px;
|
||||
}
|
||||
|
||||
.WdateDiv #dpQS {
|
||||
float:left;
|
||||
margin-right:3px;
|
||||
margin-top:3px;
|
||||
background:url(img.gif) no-repeat 0px -16px;
|
||||
width:20px;
|
||||
height:20px;
|
||||
cursor:pointer;
|
||||
}
|
||||
.WdateDiv #dpControl {
|
||||
text-align:right;
|
||||
}
|
||||
.WdateDiv .dpButton{
|
||||
height:20px;
|
||||
width:45px;
|
||||
border:#ccc 1px solid;
|
||||
margin-top:2px;
|
||||
margin-right:1px;
|
||||
}
|
||||
BIN
My97DatePicker/skin/default/img.gif
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
My97DatePicker/skin/whyGreen/bg.jpg
Normal file
|
After Width: | Height: | Size: 307 B |
256
My97DatePicker/skin/whyGreen/datepicker.css
Normal file
@@ -0,0 +1,256 @@
|
||||
/*
|
||||
* My97 DatePicker 4.8 Skin:whyGreen
|
||||
*/
|
||||
.WdateDiv{
|
||||
width:180px;
|
||||
background-color:#fff;
|
||||
border:#C5E1E4 1px solid;
|
||||
padding:2px;
|
||||
}
|
||||
|
||||
.WdateDiv2{
|
||||
width:360px;
|
||||
}
|
||||
.WdateDiv *{font-size:9pt;}
|
||||
|
||||
.WdateDiv .NavImg a{
|
||||
cursor:pointer;
|
||||
display:block;
|
||||
width:16px;
|
||||
height:16px;
|
||||
margin-top:1px;
|
||||
}
|
||||
|
||||
.WdateDiv .NavImgll a{
|
||||
float:left;
|
||||
background:url(img.gif) no-repeat;
|
||||
}
|
||||
.WdateDiv .NavImgl a{
|
||||
float:left;
|
||||
background:url(img.gif) no-repeat -16px 0px;
|
||||
}
|
||||
.WdateDiv .NavImgr a{
|
||||
float:right;
|
||||
background:url(img.gif) no-repeat -32px 0px;
|
||||
}
|
||||
.WdateDiv .NavImgrr a{
|
||||
float:right;
|
||||
background:url(img.gif) no-repeat -48px 0px;
|
||||
}
|
||||
|
||||
.WdateDiv #dpTitle{
|
||||
height:24px;
|
||||
padding:1px;
|
||||
border:#c5d9e8 1px solid;
|
||||
background:url(bg.jpg);
|
||||
margin-bottom:2px;
|
||||
}
|
||||
|
||||
.WdateDiv .yminput{
|
||||
margin-top:2px;
|
||||
text-align:center;
|
||||
border:0px;
|
||||
height:20px;
|
||||
width:50px;
|
||||
color:#034c50;
|
||||
background-color:transparent;
|
||||
cursor:pointer;
|
||||
}
|
||||
|
||||
.WdateDiv .yminputfocus{
|
||||
margin-top:2px;
|
||||
text-align:center;
|
||||
border:#939393 1px solid;
|
||||
font-weight:bold;
|
||||
color:#034c50;
|
||||
height:20px;
|
||||
width:50px;
|
||||
}
|
||||
|
||||
.WdateDiv .menuSel{
|
||||
z-index:1;
|
||||
position:absolute;
|
||||
background-color:#FFFFFF;
|
||||
border:#A3C6C8 1px solid;
|
||||
display:none;
|
||||
}
|
||||
|
||||
.WdateDiv .menu{
|
||||
cursor:pointer;
|
||||
background-color:#fff;
|
||||
color:#11777C;
|
||||
}
|
||||
|
||||
.WdateDiv .menuOn{
|
||||
cursor:pointer;
|
||||
background-color:#BEEBEE;
|
||||
}
|
||||
|
||||
.WdateDiv .invalidMenu{
|
||||
color:#aaa;
|
||||
}
|
||||
|
||||
.WdateDiv .YMenu{
|
||||
margin-top:20px;
|
||||
}
|
||||
|
||||
.WdateDiv .MMenu{
|
||||
margin-top:20px;
|
||||
*width:62px;
|
||||
}
|
||||
|
||||
.WdateDiv .hhMenu{
|
||||
margin-top:-90px;
|
||||
margin-left:26px;
|
||||
}
|
||||
|
||||
.WdateDiv .mmMenu{
|
||||
margin-top:-46px;
|
||||
margin-left:26px;
|
||||
}
|
||||
|
||||
.WdateDiv .ssMenu{
|
||||
margin-top:-24px;
|
||||
margin-left:26px;
|
||||
}
|
||||
|
||||
.WdateDiv .Wweek {
|
||||
text-align:center;
|
||||
background:#DAF3F5;
|
||||
border-right:#BDEBEE 1px solid;
|
||||
}
|
||||
|
||||
.WdateDiv .MTitle{
|
||||
color:#13777e;
|
||||
background-color:#bdebee;
|
||||
}
|
||||
.WdateDiv .WdayTable2{
|
||||
border-collapse:collapse;
|
||||
border:#BEE9F0 1px solid;
|
||||
}
|
||||
.WdateDiv .WdayTable2 table{
|
||||
border:0;
|
||||
}
|
||||
|
||||
.WdateDiv .WdayTable{
|
||||
line-height:20px;
|
||||
color:#13777e;
|
||||
background-color:#edfbfb;
|
||||
border:#BEE9F0 1px solid;
|
||||
}
|
||||
.WdateDiv .WdayTable td{
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
.WdateDiv .Wday{
|
||||
cursor:pointer;
|
||||
}
|
||||
|
||||
.WdateDiv .WdayOn{
|
||||
cursor:pointer;
|
||||
background-color:#74d2d9 ;
|
||||
}
|
||||
|
||||
.WdateDiv .Wwday{
|
||||
cursor:pointer;
|
||||
color:#ab1e1e;
|
||||
}
|
||||
|
||||
.WdateDiv .WwdayOn{
|
||||
cursor:pointer;
|
||||
background-color:#74d2d9;
|
||||
}
|
||||
.WdateDiv .Wtoday{
|
||||
cursor:pointer;
|
||||
color:blue;
|
||||
}
|
||||
.WdateDiv .Wselday{
|
||||
background-color:#A7E2E7;
|
||||
}
|
||||
.WdateDiv .WspecialDay{
|
||||
background-color:#66F4DF;
|
||||
}
|
||||
|
||||
.WdateDiv .WotherDay{
|
||||
cursor:pointer;
|
||||
color:#0099CC;
|
||||
}
|
||||
|
||||
.WdateDiv .WotherDayOn{
|
||||
cursor:pointer;
|
||||
background-color:#C0EBEF;
|
||||
}
|
||||
|
||||
.WdateDiv .WinvalidDay{
|
||||
color:#aaa;
|
||||
}
|
||||
|
||||
.WdateDiv #dpTime{
|
||||
float:left;
|
||||
margin-top:3px;
|
||||
margin-right:30px;
|
||||
}
|
||||
|
||||
.WdateDiv #dpTime #dpTimeStr{
|
||||
margin-left:1px;
|
||||
color:#497F7F;
|
||||
}
|
||||
|
||||
.WdateDiv #dpTime input{
|
||||
height:20px;
|
||||
width:18px;
|
||||
text-align:center;
|
||||
color:#333;
|
||||
border:#61CAD0 1px solid;
|
||||
}
|
||||
|
||||
.WdateDiv #dpTime .tB{
|
||||
border-right:0px;
|
||||
}
|
||||
|
||||
.WdateDiv #dpTime .tE{
|
||||
border-left:0;
|
||||
border-right:0;
|
||||
}
|
||||
|
||||
.WdateDiv #dpTime .tm{
|
||||
width:7px;
|
||||
border-left:0;
|
||||
border-right:0;
|
||||
}
|
||||
|
||||
.WdateDiv #dpTime #dpTimeUp{
|
||||
height:10px;
|
||||
width:13px;
|
||||
border:0px;
|
||||
background:url(img.gif) no-repeat -32px -16px;
|
||||
}
|
||||
|
||||
.WdateDiv #dpTime #dpTimeDown{
|
||||
height:10px;
|
||||
width:13px;
|
||||
border:0px;
|
||||
background:url(img.gif) no-repeat -48px -16px;
|
||||
}
|
||||
|
||||
.WdateDiv #dpQS {
|
||||
float:left;
|
||||
margin-right:3px;
|
||||
margin-top:3px;
|
||||
background:url(img.gif) no-repeat 0px -16px;
|
||||
width:20px;
|
||||
height:20px;
|
||||
cursor:pointer;
|
||||
}
|
||||
.WdateDiv #dpControl {
|
||||
text-align:right;
|
||||
margin-top:3px;
|
||||
}
|
||||
.WdateDiv .dpButton{
|
||||
height:20px;
|
||||
width:45px;
|
||||
margin-top:2px;
|
||||
border:#38B1B9 1px solid;
|
||||
background-color:#CFEBEE;
|
||||
color:#08575B;
|
||||
}
|
||||
BIN
My97DatePicker/skin/whyGreen/img.gif
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
14
My97DatePicker/开发包/lang/en.js
Normal file
@@ -0,0 +1,14 @@
|
||||
var $lang={
|
||||
errAlertMsg: "Invalid date or the date out of range,redo or not?",
|
||||
aWeekStr: ["wk", "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
||||
aLongWeekStr:["wk","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],
|
||||
aMonStr: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
|
||||
aLongMonStr: ["January","February","March","April","May","June","July","August","September","October","November","December"],
|
||||
clearStr: "Clear",
|
||||
todayStr: "Today",
|
||||
okStr: "OK",
|
||||
updateStr: "OK",
|
||||
timeStr: "Time",
|
||||
quickStr: "Quick Selection",
|
||||
err_1: 'MinDate Cannot be bigger than MaxDate!'
|
||||
}
|
||||
14
My97DatePicker/开发包/lang/zh-cn.js
Normal file
@@ -0,0 +1,14 @@
|
||||
var $lang={
|
||||
errAlertMsg: "不合法的日期格式或者日期超出限定范围,需要撤销吗?",
|
||||
aWeekStr: ["周","日","一","二","三","四","五","六"],
|
||||
aLongWeekStr:["周","星期日","星期一","星期二","星期三","星期四","星期五","星期六"],
|
||||
aMonStr: ["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一","十二"],
|
||||
aLongMonStr: ["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],
|
||||
clearStr: "清空",
|
||||
todayStr: "今天",
|
||||
okStr: "确定",
|
||||
updateStr: "确定",
|
||||
timeStr: "时间",
|
||||
quickStr: "快速选择",
|
||||
err_1: '最小日期不能大于最大日期!'
|
||||
}
|
||||
14
My97DatePicker/开发包/lang/zh-tw.js
Normal file
@@ -0,0 +1,14 @@
|
||||
var $lang={
|
||||
errAlertMsg: "不合法的日期格式或者日期超出限定範圍,需要撤銷嗎?",
|
||||
aWeekStr: ["周","日","一","二","三","四","五","六"],
|
||||
aLongWeekStr:["周","星期日","星期一","星期二","星期三","星期四","星期五","星期六"],
|
||||
aMonStr: ["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一","十二"],
|
||||
aLongMonStr: ["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],
|
||||
clearStr: "清空",
|
||||
todayStr: "今天",
|
||||
okStr: "確定",
|
||||
updateStr: "確定",
|
||||
timeStr: "時間",
|
||||
quickStr: "快速選擇",
|
||||
err_1: '最小日期不能大於最大日期!'
|
||||
}
|
||||
3
My97DatePicker/开发包/readme.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
正式发布时,可将此文件夹删去
|
||||
|
||||
|
||||
11
My97DatePicker/开发包/skin/WdatePicker.css
Normal file
@@ -0,0 +1,11 @@
|
||||
.Wdate{
|
||||
border:#999 1px solid;
|
||||
height:20px;
|
||||
background:#fff url(datePicker.gif) no-repeat right;
|
||||
}
|
||||
.Wdate::-ms-clear{display:none;}
|
||||
|
||||
.WdateFmtErr{
|
||||
font-weight:bold;
|
||||
color:red;
|
||||
}
|
||||
BIN
My97DatePicker/开发包/skin/datePicker.gif
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
267
My97DatePicker/开发包/skin/default/datepicker.css
Normal file
@@ -0,0 +1,267 @@
|
||||
/*
|
||||
* My97 DatePicker 4.7
|
||||
* 皮肤名称:default
|
||||
*/
|
||||
|
||||
/* 日期选择容器 DIV */
|
||||
.WdateDiv{
|
||||
width:180px;
|
||||
background-color:#FFFFFF;
|
||||
border:#bbb 1px solid;
|
||||
padding:2px;
|
||||
}
|
||||
/* 双月日历的宽度 */
|
||||
.WdateDiv2{
|
||||
width:360px;
|
||||
}
|
||||
.WdateDiv *{font-size:9pt;}
|
||||
|
||||
/****************************
|
||||
* 导航图标 全部是A标签
|
||||
***************************/
|
||||
.WdateDiv .NavImg a{
|
||||
display:block;
|
||||
cursor:pointer;
|
||||
height:16px;
|
||||
width:16px;
|
||||
}
|
||||
|
||||
.WdateDiv .NavImgll a{
|
||||
float:left;
|
||||
background:transparent url(img.gif) no-repeat scroll 0 0;
|
||||
}
|
||||
.WdateDiv .NavImgl a{
|
||||
float:left;
|
||||
background:transparent url(img.gif) no-repeat scroll -16px 0;
|
||||
}
|
||||
.WdateDiv .NavImgr a{
|
||||
float:right;
|
||||
background:transparent url(img.gif) no-repeat scroll -32px 0;
|
||||
}
|
||||
.WdateDiv .NavImgrr a{
|
||||
float:right;
|
||||
background:transparent url(img.gif) no-repeat scroll -48px 0;
|
||||
}
|
||||
|
||||
/****************************
|
||||
* 年份月份相关
|
||||
***************************/
|
||||
/* 年份月份栏 DIV */
|
||||
.WdateDiv #dpTitle{
|
||||
height:24px;
|
||||
margin-bottom:2px;
|
||||
padding:1px;
|
||||
}
|
||||
/* 年份月份输入框 INPUT */
|
||||
.WdateDiv .yminput{
|
||||
margin-top:2px;
|
||||
text-align:center;
|
||||
height:20px;
|
||||
border:0px;
|
||||
width:50px;
|
||||
cursor:pointer;
|
||||
}
|
||||
/* 年份月份输入框获得焦点时的样式 INPUT */
|
||||
.WdateDiv .yminputfocus{
|
||||
margin-top:2px;
|
||||
text-align:center;
|
||||
font-weight:bold;
|
||||
height:20px;
|
||||
color:blue;
|
||||
border:#ccc 1px solid;
|
||||
width:50px;
|
||||
}
|
||||
/* 菜单选择框 DIV */
|
||||
.WdateDiv .menuSel{
|
||||
z-index:1;
|
||||
position:absolute;
|
||||
background-color:#FFFFFF;
|
||||
border:#ccc 1px solid;
|
||||
display:none;
|
||||
}
|
||||
/* 菜单的样式 TD */
|
||||
.WdateDiv .menu{
|
||||
cursor:pointer;
|
||||
background-color:#fff;
|
||||
}
|
||||
/* 菜单的mouseover样式 TD */
|
||||
.WdateDiv .menuOn{
|
||||
cursor:pointer;
|
||||
background-color:#BEEBEE;
|
||||
}
|
||||
/* 菜单无效时的样式 TD */
|
||||
.WdateDiv .invalidMenu{
|
||||
color:#aaa;
|
||||
}
|
||||
/* 年选择框的偏移 DIV */
|
||||
.WdateDiv .YMenu{
|
||||
margin-top:20px;
|
||||
|
||||
}
|
||||
/* 月选择框的偏移 DIV */
|
||||
.WdateDiv .MMenu{
|
||||
margin-top:20px;
|
||||
*width:62px;
|
||||
}
|
||||
/* 时选择框的位置 DIV */
|
||||
.WdateDiv .hhMenu{
|
||||
margin-top:-90px;
|
||||
margin-left:26px;
|
||||
}
|
||||
/* 分选择框的位置 DIV */
|
||||
.WdateDiv .mmMenu{
|
||||
margin-top:-46px;
|
||||
margin-left:26px;
|
||||
}
|
||||
/* 秒选择框的位置 DIV */
|
||||
.WdateDiv .ssMenu{
|
||||
margin-top:-24px;
|
||||
margin-left:26px;
|
||||
}
|
||||
|
||||
/****************************
|
||||
* 周相关
|
||||
***************************/
|
||||
.WdateDiv .Wweek {
|
||||
text-align:center;
|
||||
background:#DAF3F5;
|
||||
border-right:#BDEBEE 1px solid;
|
||||
}
|
||||
/****************************
|
||||
* 星期,日期相关
|
||||
***************************/
|
||||
/* 星期栏 TR */
|
||||
.WdateDiv .MTitle{
|
||||
background-color:#BDEBEE;
|
||||
}
|
||||
.WdateDiv .WdayTable2{
|
||||
border-collapse:collapse;
|
||||
border:#c5d9e8 1px solid;
|
||||
}
|
||||
.WdateDiv .WdayTable2 table{
|
||||
border:0;
|
||||
}
|
||||
/* 日期栏表格 TABLE */
|
||||
.WdateDiv .WdayTable{
|
||||
line-height:20px;
|
||||
border:#c5d9e8 1px solid;
|
||||
}
|
||||
.WdateDiv .WdayTable td{
|
||||
text-align:center;
|
||||
}
|
||||
/* 日期格的样式 TD */
|
||||
.WdateDiv .Wday{
|
||||
cursor:pointer;
|
||||
}
|
||||
/* 日期格的mouseover样式 TD */
|
||||
.WdateDiv .WdayOn{
|
||||
cursor:pointer;
|
||||
background-color:#C0EBEF;
|
||||
}
|
||||
/* 周末日期格的样式 TD */
|
||||
.WdateDiv .Wwday{
|
||||
cursor:pointer;
|
||||
color:#FF2F2F;
|
||||
}
|
||||
/* 周末日期格的mouseover样式 TD */
|
||||
.WdateDiv .WwdayOn{
|
||||
cursor:pointer;
|
||||
color:#000;
|
||||
background-color:#C0EBEF;
|
||||
}
|
||||
.WdateDiv .Wtoday{
|
||||
cursor:pointer;
|
||||
color:blue;
|
||||
}
|
||||
.WdateDiv .Wselday{
|
||||
background-color:#A9E4E9;
|
||||
}
|
||||
.WdateDiv .WspecialDay{
|
||||
background-color:#66F4DF;
|
||||
}
|
||||
/* 其他月份的日期 */
|
||||
.WdateDiv .WotherDay{
|
||||
cursor:pointer;
|
||||
color:#6A6AFF;
|
||||
}
|
||||
/* 其他月份的日期mouseover样式 */
|
||||
.WdateDiv .WotherDayOn{
|
||||
cursor:pointer;
|
||||
background-color:#C0EBEF;
|
||||
}
|
||||
/* 无效日期的样式,即在日期范围以外日期格的样式,不能选择的日期 */
|
||||
.WdateDiv .WinvalidDay{
|
||||
color:#aaa;
|
||||
}
|
||||
|
||||
/****************************
|
||||
* 时间相关
|
||||
***************************/
|
||||
/* 时间栏 DIV */
|
||||
.WdateDiv #dpTime{
|
||||
float:left;
|
||||
margin-top:3px;
|
||||
margin-right:30px;
|
||||
}
|
||||
/* 时间文字 SPAN */
|
||||
.WdateDiv #dpTime #dpTimeStr{
|
||||
margin-left:1px;
|
||||
}
|
||||
/* 时间输入框 INPUT */
|
||||
.WdateDiv #dpTime input{
|
||||
width:18px;
|
||||
height:20px;
|
||||
text-align:center;
|
||||
border:#ccc 1px solid;
|
||||
}
|
||||
/* 时间 时 INPUT */
|
||||
.WdateDiv #dpTime .tB{
|
||||
border-right:0px;
|
||||
}
|
||||
/* 时间 分和间隔符 ':' INPUT */
|
||||
.WdateDiv #dpTime .tE{
|
||||
border-left:0;
|
||||
border-right:0;
|
||||
}
|
||||
/* 时间 秒 INPUT */
|
||||
.WdateDiv #dpTime .tm{
|
||||
width:7px;
|
||||
border-left:0;
|
||||
border-right:0;
|
||||
}
|
||||
/* 时间右边的向上按钮 BUTTON */
|
||||
.WdateDiv #dpTime #dpTimeUp{
|
||||
height:10px;
|
||||
width:13px;
|
||||
border:0px;
|
||||
background:url(img.gif) no-repeat -32px -16px;
|
||||
}
|
||||
/* 时间右边的向下按钮 BUTTON */
|
||||
.WdateDiv #dpTime #dpTimeDown{
|
||||
height:10px;
|
||||
width:13px;
|
||||
border:0px;
|
||||
background:url(img.gif) no-repeat -48px -16px;
|
||||
}
|
||||
/****************************
|
||||
* 其他
|
||||
***************************/
|
||||
.WdateDiv #dpQS {
|
||||
float:left;
|
||||
margin-right:3px;
|
||||
margin-top:3px;
|
||||
background:url(img.gif) no-repeat 0px -16px;
|
||||
width:20px;
|
||||
height:20px;
|
||||
cursor:pointer;
|
||||
}
|
||||
.WdateDiv #dpControl {
|
||||
text-align:right;
|
||||
}
|
||||
.WdateDiv .dpButton{
|
||||
height:20px;
|
||||
width:45px;
|
||||
border:#ccc 1px solid;
|
||||
margin-top:2px;
|
||||
margin-right:1px;
|
||||
}
|
||||
BIN
My97DatePicker/开发包/skin/default/img.gif
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
My97DatePicker/开发包/skin/whyGreen/bg.jpg
Normal file
|
After Width: | Height: | Size: 307 B |
277
My97DatePicker/开发包/skin/whyGreen/datepicker.css
Normal file
@@ -0,0 +1,277 @@
|
||||
/*
|
||||
* My97 DatePicker 4.7
|
||||
* 皮肤名称:whyGreen
|
||||
*/
|
||||
|
||||
/* 日期选择容器 DIV */
|
||||
.WdateDiv{
|
||||
width:180px;
|
||||
background-color:#fff;
|
||||
border:#C5E1E4 1px solid;
|
||||
padding:2px;
|
||||
}
|
||||
/* 双月日历的宽度 */
|
||||
.WdateDiv2{
|
||||
width:360px;
|
||||
}
|
||||
.WdateDiv *{font-size:9pt;}
|
||||
|
||||
/****************************
|
||||
* 导航图标 全部是A标签
|
||||
***************************/
|
||||
.WdateDiv .NavImg a{
|
||||
cursor:pointer;
|
||||
display:block;
|
||||
width:16px;
|
||||
height:16px;
|
||||
margin-top:1px;
|
||||
}
|
||||
|
||||
.WdateDiv .NavImgll a{
|
||||
float:left;
|
||||
background:url(img.gif) no-repeat;
|
||||
}
|
||||
.WdateDiv .NavImgl a{
|
||||
float:left;
|
||||
background:url(img.gif) no-repeat -16px 0px;
|
||||
}
|
||||
.WdateDiv .NavImgr a{
|
||||
float:right;
|
||||
background:url(img.gif) no-repeat -32px 0px;
|
||||
}
|
||||
.WdateDiv .NavImgrr a{
|
||||
float:right;
|
||||
background:url(img.gif) no-repeat -48px 0px;
|
||||
}
|
||||
/****************************
|
||||
* 年份月份相关
|
||||
***************************/
|
||||
/* 年份月份栏 DIV */
|
||||
.WdateDiv #dpTitle{
|
||||
height:24px;
|
||||
padding:1px;
|
||||
border:#c5d9e8 1px solid;
|
||||
background:url(bg.jpg);
|
||||
margin-bottom:2px;
|
||||
}
|
||||
/* 年份月份输入框 INPUT */
|
||||
.WdateDiv .yminput{
|
||||
margin-top:2px;
|
||||
text-align:center;
|
||||
border:0px;
|
||||
height:20px;
|
||||
width:50px;
|
||||
color:#034c50;
|
||||
background-color:transparent;
|
||||
cursor:pointer;
|
||||
}
|
||||
/* 年份月份输入框获得焦点时的样式 INPUT */
|
||||
.WdateDiv .yminputfocus{
|
||||
margin-top:2px;
|
||||
text-align:center;
|
||||
border:#939393 1px solid;
|
||||
font-weight:bold;
|
||||
color:#034c50;
|
||||
height:20px;
|
||||
width:50px;
|
||||
}
|
||||
/* 菜单选择框 DIV */
|
||||
.WdateDiv .menuSel{
|
||||
z-index:1;
|
||||
position:absolute;
|
||||
background-color:#FFFFFF;
|
||||
border:#A3C6C8 1px solid;
|
||||
display:none;
|
||||
}
|
||||
/* 菜单的样式 TD */
|
||||
.WdateDiv .menu{
|
||||
cursor:pointer;
|
||||
background-color:#fff;
|
||||
color:#11777C;
|
||||
}
|
||||
/* 菜单的mouseover样式 TD */
|
||||
.WdateDiv .menuOn{
|
||||
cursor:pointer;
|
||||
background-color:#BEEBEE;
|
||||
}
|
||||
/* 菜单无效时的样式 TD */
|
||||
.WdateDiv .invalidMenu{
|
||||
color:#aaa;
|
||||
}
|
||||
/* 年选择框的偏移 DIV */
|
||||
.WdateDiv .YMenu{
|
||||
margin-top:20px;
|
||||
}
|
||||
/* 月选择框的偏移 DIV */
|
||||
.WdateDiv .MMenu{
|
||||
margin-top:20px;
|
||||
*width:62px;
|
||||
}
|
||||
/* 时选择框的位置 DIV */
|
||||
.WdateDiv .hhMenu{
|
||||
margin-top:-90px;
|
||||
margin-left:26px;
|
||||
}
|
||||
/* 分选择框的位置 DIV */
|
||||
.WdateDiv .mmMenu{
|
||||
margin-top:-46px;
|
||||
margin-left:26px;
|
||||
}
|
||||
/* 秒选择框的位置 DIV */
|
||||
.WdateDiv .ssMenu{
|
||||
margin-top:-24px;
|
||||
margin-left:26px;
|
||||
}
|
||||
|
||||
/****************************
|
||||
* 周相关
|
||||
***************************/
|
||||
.WdateDiv .Wweek {
|
||||
text-align:center;
|
||||
background:#DAF3F5;
|
||||
border-right:#BDEBEE 1px solid;
|
||||
}
|
||||
/****************************
|
||||
* 星期,日期相关
|
||||
***************************/
|
||||
/* 星期栏 TR */
|
||||
.WdateDiv .MTitle{
|
||||
color:#13777e;
|
||||
background-color:#bdebee;
|
||||
}
|
||||
.WdateDiv .WdayTable2{
|
||||
border-collapse:collapse;
|
||||
border:#BEE9F0 1px solid;
|
||||
}
|
||||
.WdateDiv .WdayTable2 table{
|
||||
border:0;
|
||||
}
|
||||
/* 日期栏表格 TABLE */
|
||||
.WdateDiv .WdayTable{
|
||||
line-height:20px;
|
||||
color:#13777e;
|
||||
background-color:#edfbfb;
|
||||
border:#BEE9F0 1px solid;
|
||||
}
|
||||
.WdateDiv .WdayTable td{
|
||||
text-align:center;
|
||||
}
|
||||
/* 日期格的样式 TD */
|
||||
.WdateDiv .Wday{
|
||||
cursor:pointer;
|
||||
}
|
||||
/* 日期格的mouseover样式 TD */
|
||||
.WdateDiv .WdayOn{
|
||||
cursor:pointer;
|
||||
background-color:#74d2d9 ;
|
||||
}
|
||||
/* 周末日期格的样式 TD */
|
||||
.WdateDiv .Wwday{
|
||||
cursor:pointer;
|
||||
color:#ab1e1e;
|
||||
}
|
||||
/* 周末日期格的mouseover样式 TD */
|
||||
.WdateDiv .WwdayOn{
|
||||
cursor:pointer;
|
||||
background-color:#74d2d9;
|
||||
}
|
||||
.WdateDiv .Wtoday{
|
||||
cursor:pointer;
|
||||
color:blue;
|
||||
}
|
||||
.WdateDiv .Wselday{
|
||||
background-color:#A7E2E7;
|
||||
}
|
||||
.WdateDiv .WspecialDay{
|
||||
background-color:#66F4DF;
|
||||
}
|
||||
/* 其他月份的日期 */
|
||||
.WdateDiv .WotherDay{
|
||||
cursor:pointer;
|
||||
color:#0099CC;
|
||||
}
|
||||
/* 其他月份的日期mouseover样式 */
|
||||
.WdateDiv .WotherDayOn{
|
||||
cursor:pointer;
|
||||
background-color:#C0EBEF;
|
||||
}
|
||||
/* 无效日期的样式,即在日期范围以外日期格的样式,不能选择的日期 */
|
||||
.WdateDiv .WinvalidDay{
|
||||
color:#aaa;
|
||||
}
|
||||
|
||||
/****************************
|
||||
* 时间相关
|
||||
***************************/
|
||||
/* 时间栏 DIV */
|
||||
.WdateDiv #dpTime{
|
||||
float:left;
|
||||
margin-top:3px;
|
||||
margin-right:30px;
|
||||
}
|
||||
/* 时间文字 SPAN */
|
||||
.WdateDiv #dpTime #dpTimeStr{
|
||||
margin-left:1px;
|
||||
color:#497F7F;
|
||||
}
|
||||
/* 时间输入框 INPUT */
|
||||
.WdateDiv #dpTime input{
|
||||
height:20px;
|
||||
width:18px;
|
||||
text-align:center;
|
||||
color:#333;
|
||||
border:#61CAD0 1px solid;
|
||||
}
|
||||
/* 时间 时 INPUT */
|
||||
.WdateDiv #dpTime .tB{
|
||||
border-right:0px;
|
||||
}
|
||||
/* 时间 分和间隔符 ':' INPUT */
|
||||
.WdateDiv #dpTime .tE{
|
||||
border-left:0;
|
||||
border-right:0;
|
||||
}
|
||||
/* 时间 秒 INPUT */
|
||||
.WdateDiv #dpTime .tm{
|
||||
width:7px;
|
||||
border-left:0;
|
||||
border-right:0;
|
||||
}
|
||||
/* 时间右边的向上按钮 BUTTON */
|
||||
.WdateDiv #dpTime #dpTimeUp{
|
||||
height:10px;
|
||||
width:13px;
|
||||
border:0px;
|
||||
background:url(img.gif) no-repeat -32px -16px;
|
||||
}
|
||||
/* 时间右边的向下按钮 BUTTON */
|
||||
.WdateDiv #dpTime #dpTimeDown{
|
||||
height:10px;
|
||||
width:13px;
|
||||
border:0px;
|
||||
background:url(img.gif) no-repeat -48px -16px;
|
||||
}
|
||||
/****************************
|
||||
* 其他
|
||||
***************************/
|
||||
.WdateDiv #dpQS {
|
||||
float:left;
|
||||
margin-right:3px;
|
||||
margin-top:3px;
|
||||
background:url(img.gif) no-repeat 0px -16px;
|
||||
width:20px;
|
||||
height:20px;
|
||||
cursor:pointer;
|
||||
}
|
||||
.WdateDiv #dpControl {
|
||||
text-align:right;
|
||||
margin-top:3px;
|
||||
}
|
||||
.WdateDiv .dpButton{
|
||||
height:20px;
|
||||
width:45px;
|
||||
margin-top:2px;
|
||||
border:#38B1B9 1px solid;
|
||||
background-color:#CFEBEE;
|
||||
color:#08575B;
|
||||
}
|
||||
BIN
My97DatePicker/开发包/skin/whyGreen/img.gif
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
Public/Upload/1447964.jpg
Normal file
|
After Width: | Height: | Size: 24 KiB |
BIN
Public/Upload/1501684.jpg
Normal file
|
After Width: | Height: | Size: 8.8 KiB |
BIN
Public/Upload/1654034.jpg
Normal file
|
After Width: | Height: | Size: 42 KiB |
BIN
Public/Upload/1704627.jpg
Normal file
|
After Width: | Height: | Size: 35 KiB |
BIN
Public/Upload/1705102.jpg
Normal file
|
After Width: | Height: | Size: 8.8 KiB |
BIN
Public/Upload/1716137.jpg
Normal file
|
After Width: | Height: | Size: 35 KiB |
BIN
Public/Upload/1753872.jpg
Normal file
|
After Width: | Height: | Size: 35 KiB |
BIN
Public/Upload/1756066.png
Normal file
|
After Width: | Height: | Size: 201 KiB |
BIN
Public/Upload/2193833.jpg
Normal file
|
After Width: | Height: | Size: 8.8 KiB |
BIN
Public/Upload/2380782.jpg
Normal file
|
After Width: | Height: | Size: 8.8 KiB |
BIN
Public/Upload/2516853.png
Normal file
|
After Width: | Height: | Size: 320 KiB |
BIN
Public/Upload/2540612.jpg
Normal file
|
After Width: | Height: | Size: 35 KiB |
BIN
Public/Upload/2679125.jpg
Normal file
|
After Width: | Height: | Size: 8.8 KiB |
BIN
Public/Upload/2936676.jpg
Normal file
|
After Width: | Height: | Size: 35 KiB |
BIN
Public/Upload/2995206.jpg
Normal file
|
After Width: | Height: | Size: 8.8 KiB |
BIN
Public/Upload/3085858.jpg
Normal file
|
After Width: | Height: | Size: 236 KiB |
BIN
Public/Upload/3123027.jpg
Normal file
|
After Width: | Height: | Size: 113 KiB |
BIN
Public/Upload/3422382.jpg
Normal file
|
After Width: | Height: | Size: 35 KiB |
BIN
Public/Upload/3501708.jpg
Normal file
|
After Width: | Height: | Size: 24 KiB |
BIN
Public/Upload/3518614.jpg
Normal file
|
After Width: | Height: | Size: 8.8 KiB |
BIN
Public/Upload/3727987.jpg
Normal file
|
After Width: | Height: | Size: 8.8 KiB |
BIN
Public/Upload/4340365.jpg
Normal file
|
After Width: | Height: | Size: 35 KiB |
BIN
Public/Upload/4344584.jpg
Normal file
|
After Width: | Height: | Size: 236 KiB |
BIN
Public/Upload/506127.png
Normal file
|
After Width: | Height: | Size: 201 KiB |
BIN
Public/Upload/5399859.jpg
Normal file
|
After Width: | Height: | Size: 35 KiB |
BIN
Public/Upload/5809932.jpg
Normal file
|
After Width: | Height: | Size: 35 KiB |
BIN
Public/Upload/5982159.jpg
Normal file
|
After Width: | Height: | Size: 35 KiB |
BIN
Public/Upload/6310857.png
Normal file
|
After Width: | Height: | Size: 427 KiB |
BIN
Public/Upload/6372479.png
Normal file
|
After Width: | Height: | Size: 320 KiB |
BIN
Public/Upload/6606667.png
Normal file
|
After Width: | Height: | Size: 201 KiB |
BIN
Public/Upload/677384.jpg
Normal file
|
After Width: | Height: | Size: 8.8 KiB |
BIN
Public/Upload/7072187.jpg
Normal file
|
After Width: | Height: | Size: 8.8 KiB |
BIN
Public/Upload/7072255.jpg
Normal file
|
After Width: | Height: | Size: 35 KiB |
BIN
Public/Upload/7286512.jpg
Normal file
|
After Width: | Height: | Size: 8.8 KiB |
BIN
Public/Upload/77672.jpg
Normal file
|
After Width: | Height: | Size: 8.8 KiB |
BIN
Public/Upload/7790426.jpg
Normal file
|
After Width: | Height: | Size: 97 KiB |
BIN
Public/Upload/8203084.png
Normal file
|
After Width: | Height: | Size: 201 KiB |
BIN
Public/Upload/8303564.jpg
Normal file
|
After Width: | Height: | Size: 236 KiB |
BIN
Public/Upload/8935693.jpg
Normal file
|
After Width: | Height: | Size: 24 KiB |
BIN
Public/Upload/9467919.jpg
Normal file
|
After Width: | Height: | Size: 42 KiB |
BIN
Public/Upload/9723718.jpg
Normal file
|
After Width: | Height: | Size: 236 KiB |
BIN
Public/Upload/9870576.jpg
Normal file
|
After Width: | Height: | Size: 8.8 KiB |
BIN
Public/Upload/988045.jpg
Normal file
|
After Width: | Height: | Size: 35 KiB |
167
admin/admin_edit.php
Normal file
@@ -0,0 +1,167 @@
|
||||
<?php
|
||||
include_once("../common/init.php");
|
||||
check_login();
|
||||
$categoryA = db_get_all("select * from category");
|
||||
$rs = db_get_row("select * from admin where id=".$_REQUEST["id"]);
|
||||
if ($_POST){
|
||||
if ($_REQUEST["id"]) {
|
||||
} else {
|
||||
$row = db_get_row("select * from admin where username='". $_POST["username"] ."'");
|
||||
if ($row["id"]) {
|
||||
goBakMsg("已存在相同名称,请重新填写");
|
||||
die;
|
||||
}
|
||||
}
|
||||
|
||||
$data = array();
|
||||
$data["username"] = "'".$_POST["username"]."'";
|
||||
$data["tname"] = "'".$_POST["tname"]."'";
|
||||
$data["begintime"] = "'".$_POST["begintime"]."'";
|
||||
$data["desc1"] = "'".$_POST["desc1"]."'";
|
||||
$data["sex"] = "'".$_POST["sex"]."'";
|
||||
$data["tel"] = "'".$_POST["tel"]."'";
|
||||
if($_POST["password"]){
|
||||
$data["password"] = "'".md5($_POST["password"])."'";
|
||||
}
|
||||
$data["type"] = "'管理员'";
|
||||
|
||||
if(!empty($_FILES['img']['name'])){
|
||||
$file = $_FILES['img'];//得到传输的数据
|
||||
//得到文件名称
|
||||
$name = $file['name'];
|
||||
$type = strtolower(substr($name,strrpos($name,'.')+1)); //得到文件类型,并且都转化成小写
|
||||
$allow_type = array('jpg','jpeg','gif','png'); //定义允许上传的类型
|
||||
//判断文件类型是否被允许上传
|
||||
if(!in_array($type, $allow_type)){
|
||||
//如果不被允许,则直接停止程序运行
|
||||
}
|
||||
//判断是否是通过HTTP POST上传的
|
||||
$upload_path = ROOT_PATH.'/Public/Upload/'; //上传文件的存放路径
|
||||
|
||||
//开始移动文件到相应的文件夹
|
||||
$mu=mt_rand(1,10000000);
|
||||
if(move_uploaded_file($file['tmp_name'],$upload_path.$mu.".".$type)){
|
||||
$fileName =$mu.".".$type;
|
||||
}else{
|
||||
//echo "Failed!";
|
||||
}
|
||||
$data["img"] = "'".$fileName."'";
|
||||
}
|
||||
|
||||
if ($_REQUEST["id"]) {
|
||||
db_mdf("admin",$data,$_REQUEST["id"]);
|
||||
} else {
|
||||
db_add("admin",$data);
|
||||
}
|
||||
urlMsg("操作成功", "admin_list.php");
|
||||
}
|
||||
?>
|
||||
<?php include_once("base.php");?>
|
||||
<body>
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="17" rowspan="2" valign="top" bgcolor="#FFFFFF"></td>
|
||||
<td valign="top">
|
||||
<table width="100%" height="31" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr bgcolor="#FFFFFF"><td height="31"><div class="title">添加/修改管理员</div></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width="16" rowspan="2" bgcolor="#FFFFFF"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" bgcolor="#F7F8F9">
|
||||
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr><td colspan="4" height="10"></td></tr>
|
||||
<tr>
|
||||
<td width="1%"> </td>
|
||||
<td width="96%">
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<form name="form1" method="post" action="?" enctype="multipart/form-data">
|
||||
<input type="hidden" name="id" value="<?php echo $rs["id"];?>" />
|
||||
<table width="100%" class="cont">
|
||||
<tr>
|
||||
<td width="2%"> </td>
|
||||
<td width="120" align="right">用户名或编号:</td>
|
||||
<td width="200"><input name="username" type="text" class="text" size="30" maxlength="20" value="<?php echo $rs["username"];?>" required></td>
|
||||
<td>只能是数字或字母</td>
|
||||
<td width="2%"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="2%"> </td>
|
||||
<td align="right">密码:</td>
|
||||
<td><input name="password" type="password" class="text" size="30" maxlength="20">
|
||||
</td>
|
||||
<td><?php if($_REQUEST["id"]){ echo "不修改请留空";} ?></td>
|
||||
<td width="2%"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="2%"> </td>
|
||||
<td width="120" align="right">姓名:</td>
|
||||
<td width="200"><input name="tname" type="text" class="text" size="30" maxlength="20" value="<?php echo $rs["tname"];?>" required></td>
|
||||
<td> </td>
|
||||
<td width="2%"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="2%"> </td>
|
||||
<td width="120" align="right">性别:</td>
|
||||
<td width="200"><select name="sex">
|
||||
<option value="男" <?php if($rs["sex"]=="男"){echo "selected";}?>>男</option>
|
||||
<option value="女" <?php if($rs["sex"]=="女"){echo "selected";}?>>女</option>
|
||||
</select></td>
|
||||
<td></td>
|
||||
<td width="2%"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="2%"> </td>
|
||||
<td width="120" align="right">出生日期:</td>
|
||||
<td width="200"><script language="javascript" type="text/javascript" src="../My97DatePicker/WdatePicker.js"></script>
|
||||
<input name="begintime" id="datepicker" type="text" onClick="WdatePicker()" style="width:350px;" class="text" value="<?php echo $rs["begintime"];?>" required></td>
|
||||
<td> </td>
|
||||
<td width="2%"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="2%"> </td>
|
||||
<td width="120" align="right"> 头像上传:</td>
|
||||
<td width="200"><input type="file" name="img" class="text" id="img"><?php if(!empty($rs['img'])){?><img src="<?php echo __PUBLIC__;?>/Upload/<?php echo $rs["img"];?>" height="50" width="50"/><?php }?></td>
|
||||
<td></td>
|
||||
<td width="2%"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="2%"> </td>
|
||||
<td width="120" align="right">电话:</td>
|
||||
<td width="200"><input name="tel" type="text" class="text" size="30" maxlength="20" value="<?php echo $rs["tel"];?>" required></td>
|
||||
<td> </td>
|
||||
<td width="2%"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="2%"> </td>
|
||||
<td width="120" align="right">备注:</td>
|
||||
<td width="200"><textarea name="desc1" cols="30" class="text"><?php echo $rs["desc1"];?></textarea></td>
|
||||
<td> </td>
|
||||
<td width="2%"> </td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td align="right"><input class="btn" type="submit" value="提交" /></td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width="1%"> </td>
|
||||
</tr>
|
||||
<tr><td height="20"></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
77
admin/admin_list.php
Normal file
@@ -0,0 +1,77 @@
|
||||
<?php
|
||||
include_once("../common/init.php");
|
||||
check_login();
|
||||
$page = $_REQUEST["page"]?$_REQUEST["page"]:1;
|
||||
$list = db_get_page("select * from admin where id<>1 order by id desc", $page,12);
|
||||
if ($page*1>$list["page"]*1){
|
||||
$page = $list["page"];
|
||||
}
|
||||
$Page = new PageWeb($list["total"],$list["page_size"], "", $page);
|
||||
$page_show = $Page->show();
|
||||
|
||||
?>
|
||||
<?php include_once("base.php");?>
|
||||
<body>
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="17" rowspan="2" valign="top" bgcolor="#FFFFFF"></td>
|
||||
<td valign="top">
|
||||
<table width="100%" height="31" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr bgcolor="#FFFFFF"><td height="31"><div class="title">管理员列表</div></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width="16" rowspan="2" bgcolor="#FFFFFF"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" bgcolor="#F7F8F9">
|
||||
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr><td colspan="4" height="10"></td></tr>
|
||||
<tr>
|
||||
<td width="1%"> </td>
|
||||
<td width="96%">
|
||||
<table width="100%">
|
||||
<td colspan="2">
|
||||
<table width="100%" class="cont tr_color">
|
||||
<tr>
|
||||
<th width="82">编号</th>
|
||||
<th width="100">用户名</th>
|
||||
<th width="100">姓名</th>
|
||||
<th width="120">电话</th>
|
||||
<th width="130">出生日期</th>
|
||||
<th>备注</th>
|
||||
<th width="60">性别</th>
|
||||
<th width="120">操作</th>
|
||||
</tr>
|
||||
<?php
|
||||
foreach($list["data"] as $row) {
|
||||
?>
|
||||
<tr align="center" class="d">
|
||||
<td align="center"><?php echo $row['id'];?></td>
|
||||
<td><?php echo $row['username'];?></td>
|
||||
<td><?php echo $row['tname'];?></td>
|
||||
<td><?php echo $row['tel'];?></td>
|
||||
<td><?php echo $row['begintime'];?></td>
|
||||
<td><?php echo $row['desc1'];?></td>
|
||||
<td align="center"><?php echo $row['sex'];?></td>
|
||||
<td align="center"><a href="admin_edit.php?id=<?php echo $row['id'];?>">修改</a> <a href="del.php?id=<?php echo $row['id'];?>&del=admin" onclick='return confirm("真的要删除?不可恢复!");'>删除</a></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
|
||||
<tr>
|
||||
<td align="center"><?php echo $page_show;?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width="1%"> </td>
|
||||
</tr>
|
||||
<tr><td height="20"></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
127
admin/baoxiu_edit.php
Normal file
@@ -0,0 +1,127 @@
|
||||
<?php
|
||||
include_once("../common/init.php");
|
||||
check_login();
|
||||
$tb_name = "baoxiu";
|
||||
$eacher = db_get_all("select * from eacher order by id asc ");
|
||||
$rs1 = db_get_row("select * from cars where id=". $_REQUEST["carsid"]);
|
||||
if ($_REQUEST["id"]) {
|
||||
$rs = db_get_row("select * from $tb_name where id=". $_REQUEST["id"]);
|
||||
}
|
||||
if ($_POST){
|
||||
$data = array();
|
||||
db_query("update cars set status='".$_POST["status"]."' where id=".$_POST["carsid"]);
|
||||
$data["eacherid"] = "'".$_POST["eacherid"]."'";
|
||||
$data["carsid"] = "'".$_POST["carsid"]."'";
|
||||
$data["status"] = "'".$_POST["status1"]."'";
|
||||
$data["content"] = "'".$_POST["content"]."'";
|
||||
if ($_REQUEST["id"]) {
|
||||
db_mdf($tb_name,$data,$_REQUEST["id"]);
|
||||
} else {
|
||||
db_add($tb_name,$data);
|
||||
}
|
||||
goBakMsg("操作成功");
|
||||
die;
|
||||
}
|
||||
?>
|
||||
<?php include_once("base.php");?>
|
||||
<body>
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="17" rowspan="2" valign="top" bgcolor="#FFFFFF"></td>
|
||||
<td valign="top">
|
||||
<table width="100%" height="31" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr bgcolor="#FFFFFF"><td height="31"><div class="title">添加订单</div></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width="16" rowspan="2" bgcolor="#FFFFFF"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" bgcolor="#F7F8F9">
|
||||
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr><td colspan="4" height="10"></td></tr>
|
||||
<tr>
|
||||
<td width="1%"> </td>
|
||||
<td width="96%">
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<form name="add" method="post" action="?" onSubmit="return checkadd()">
|
||||
<input type="hidden" name="carsid" value="<?php echo $rs1["id"];?>" />
|
||||
<input type="hidden" name="carstitle" value="<?php echo $rs1["title"];?>" />
|
||||
<input type="hidden" name="id" value="<?php echo $rs["id"];?>" />
|
||||
<table width="100%" class="cont">
|
||||
<tr>
|
||||
<td width="2%"> </td>
|
||||
<td width="120" align="right">车牌号:</td>
|
||||
<td width="200"><?php echo $rs1["title"];?></td>
|
||||
<td></td>
|
||||
<td width="2%"> </td>
|
||||
</tr>
|
||||
<?php
|
||||
if(!empty($eacher[0])){
|
||||
?>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td align="right"><span class="red">*</span> 选择维修工:</td>
|
||||
<td>
|
||||
<select name="eacherid">
|
||||
<?php foreach($eacher as $row) { ?>
|
||||
<option value="<?php echo $row["id"];?>" <?php if($rs["eacherid"]==$row["id"]){echo ' selected="selected" ';}?>><?php echo $row["tname"];?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<tr>
|
||||
<td width="2%"> </td>
|
||||
<td width="120" align="right">车辆状态:</td>
|
||||
<td width="200">
|
||||
<select name="status">
|
||||
<option value="维修" <?php if($rs1["status"]=="维修"){echo "selected";}?>>维修</option>
|
||||
<option value="报废" <?php if($rs1["status"]=="报废"){echo "selected";}?>>报废</option>
|
||||
<option value="正常" <?php if($rs1["status"]=="正常"){echo "selected";}?>>正常</option>
|
||||
</select></td>
|
||||
<td></td>
|
||||
<td width="2%"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="2%"> </td>
|
||||
<td width="120" align="right">报修状态:</td>
|
||||
<td width="200">
|
||||
<select name="status1">
|
||||
<option value="维修中" <?php if($rs["status"]=="维修中"){echo "selected";}?>>维修中</option>
|
||||
<option value="完成" <?php if($rs["status"]=="完成"){echo "selected";}?>>完成</option>
|
||||
</select></td>
|
||||
<td></td>
|
||||
<td width="2%"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="2%"> </td>
|
||||
<td width="120" align="right">备注:</td>
|
||||
<td width="200"><textarea name="content"><?php echo $rs["content"];?></textarea></td>
|
||||
<td></td>
|
||||
<td width="2%"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td align="right"><input class="btn" type="submit" value="提交" /></td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width="1%"> </td>
|
||||
</tr>
|
||||
<tr><td height="20"></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
124
admin/baoxiu_list.php
Normal file
@@ -0,0 +1,124 @@
|
||||
<?php
|
||||
include_once("../common/init.php");
|
||||
check_login();
|
||||
$tb_name = "baoxiu";
|
||||
$where_sql = " 1=1 ";
|
||||
|
||||
if ($_REQUEST["status"]) {
|
||||
$where_sql .= " and status ='" . $_REQUEST["status"] . "'";
|
||||
}
|
||||
$page = $_REQUEST["page"] ? $_REQUEST["page"] : 1;
|
||||
|
||||
$list = db_get_page("select * from $tb_name where $where_sql order by id desc", $page, 11);
|
||||
if ($page * 1 > $list["page"] * 1) {
|
||||
$page = $list["page"];
|
||||
}
|
||||
$Page = new PageWeb($list["total"], $list["page_size"], "status=" . $_REQUEST["status"], $page);
|
||||
$page_show = $Page->show();
|
||||
?>
|
||||
<?php include_once("base.php"); ?>
|
||||
<body>
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="17" rowspan="2" valign="top" bgcolor="#FFFFFF"></td>
|
||||
<td valign="top">
|
||||
<table width="100%" height="31" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr bgcolor="#FFFFFF">
|
||||
<td height="31">
|
||||
<div class="title">报修管理</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width="16" rowspan="2" bgcolor="#FFFFFF"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" bgcolor="#F7F8F9">
|
||||
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td colspan="4" height="10"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="1%"> </td>
|
||||
<td width="96%">
|
||||
<table width="100%" class="cont">
|
||||
<tr>
|
||||
<td width="1%"></td>
|
||||
<td>
|
||||
<form id="pagerForm" action="?" method="post">
|
||||
<input type="hidden" name="pageNum" value="<?php echo $page; ?>"/>
|
||||
<select name="status">
|
||||
<option value="">选择状态</option>
|
||||
<option value="维修中" <?php if ($_REQUEST["status"] == "维修中") {
|
||||
echo "selected";
|
||||
} ?>>维修中
|
||||
</option>
|
||||
<option value="完成" <?php if ($_REQUEST["status"] == "完成") {
|
||||
echo "selected";
|
||||
} ?>>完成
|
||||
</option>
|
||||
</select>
|
||||
<button type="submit" id="chaxun" class="btn">查询</button>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width="1%"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="1%"> </td>
|
||||
<td width="96%">
|
||||
<table width="100%">
|
||||
<td colspan="2">
|
||||
<table width="100%" class="cont tr_color" id="info">
|
||||
<tr>
|
||||
<th width="82" >编号</th>
|
||||
<th >车牌号</th>
|
||||
<th >维修人员</th>
|
||||
<th >提交时间</th>
|
||||
<th >车辆状态</th>
|
||||
<th width="120">操作</th>
|
||||
</tr>
|
||||
<?php
|
||||
foreach ($list["data"] as $row) {
|
||||
?>
|
||||
<tr align="center" class="d">
|
||||
<td align="center"><?php echo $row['id']; ?></td>
|
||||
<td><?php echo db_get_val("cars", $row["carsid"], "title") ?></td>
|
||||
<td><?php echo db_get_val("eacher", $row["eacherid"], "tname") ?: '<span style="color: red;">待分配</span>' ?></td>
|
||||
<td><?php echo $row['addtime']; ?></td>
|
||||
<td><?php echo $row['status'] ?></td>
|
||||
<td align="center"><a
|
||||
href="baoxiu_edit.php?id=<?php echo $row['id']; ?>&carsid=<?php echo $row['carsid']; ?>">修改</a>
|
||||
<a href="del.php?id=<?php echo $row['id']; ?>&del=baoxiu"
|
||||
onClick="return confirm('真的要删除?不可恢复!');">删除</a></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
|
||||
<tr>
|
||||
<td align="center"><?php echo $page_show; ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width="1%"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="20"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
8
admin/base.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<link rel="stylesheet" type="text/css" href="style/skin.css" />
|
||||
<script type="text/javascript" src="style/jquery.js"></script>
|
||||
<script type="text/javascript" src="style/sort.js"></script>
|
||||
</head>
|
||||
277
admin/cars_edit.php
Normal file
@@ -0,0 +1,277 @@
|
||||
<?php
|
||||
include_once("../common/init.php");
|
||||
check_login();
|
||||
$categoryA = db_get_all("select * from category order by id desc");
|
||||
$tb_name = "cars";
|
||||
if ($_REQUEST["id"]) {
|
||||
$rs = db_get_row("select * from $tb_name where id=". $_REQUEST["id"]);
|
||||
}
|
||||
if ($_POST){
|
||||
if ($_REQUEST["id"]) {
|
||||
} else {
|
||||
$row = db_get_row("select * from cars where title='". $_POST["title"] ."'");
|
||||
if ($row["id"]) {
|
||||
goBakMsg("已存在相同名称,请重新填写");
|
||||
die;
|
||||
}
|
||||
}
|
||||
$data = array();
|
||||
$data["title"] = "'".$_POST["title"]."'";
|
||||
$data["ages"] = "'".$_POST["ages"]."'";
|
||||
$data["categoryid"] = "'".$_POST["categoryid"]."'";
|
||||
$data["colors"] = "'".$_POST["colors"]."'";
|
||||
$data["status"] = "'".$_POST["status"]."'";
|
||||
$data["lat"] = "'".$_POST["lat"]."'";
|
||||
$data["lng"] = "'".$_POST["lng"]."'";
|
||||
if(!empty($_FILES['img']['name'])){
|
||||
$file = $_FILES['img'];//得到传输的数据
|
||||
//得到文件名称
|
||||
$name = $file['name'];
|
||||
$type = strtolower(substr($name,strrpos($name,'.')+1)); //得到文件类型,并且都转化成小写
|
||||
$allow_type = array('jpg','jpeg','gif','png'); //定义允许上传的类型
|
||||
//判断文件类型是否被允许上传
|
||||
if(!in_array($type, $allow_type)){
|
||||
//如果不被允许,则直接停止程序运行
|
||||
}
|
||||
//判断是否是通过HTTP POST上传的
|
||||
$upload_path = ROOT_PATH.'/Public/Upload/'; //上传文件的存放路径
|
||||
|
||||
//开始移动文件到相应的文件夹
|
||||
$mu=mt_rand(1,10000000);
|
||||
if(move_uploaded_file($file['tmp_name'],$upload_path.$mu.".".$type)){
|
||||
$fileName =$mu.".".$type;
|
||||
}else{
|
||||
//echo "Failed!";
|
||||
}
|
||||
$data["img"] = "'".$fileName."'";
|
||||
}
|
||||
if ($_REQUEST["id"]) {
|
||||
$res = db_mdf($tb_name,$data,$_REQUEST["id"]);
|
||||
} else {
|
||||
db_add($tb_name,$data);
|
||||
}
|
||||
goBakMsg("操作成功");
|
||||
die;
|
||||
}
|
||||
?>
|
||||
<?php include_once("base.php");?>
|
||||
<script>
|
||||
function checkadd()
|
||||
{
|
||||
if (document.add.title.value=='')
|
||||
{
|
||||
alert('车牌号不能为空');
|
||||
document.add.title.focus;
|
||||
return false
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<link href="https://cdn.bootcss.com/element-ui/2.3.7/theme-chalk/index.css" rel="stylesheet">
|
||||
<style>
|
||||
.lat_box{display: flex;align-items: center}
|
||||
.lat_box .item{display: flex;}
|
||||
.lat_box .item span{flex: none;}
|
||||
.lat_box button{width: 40px;margin-left: 13px;}
|
||||
.map_box{height: 500px;margin-top: 10px;}
|
||||
.dialog-footer{text-align: center;}
|
||||
</style>
|
||||
<body>
|
||||
<div id="app">
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="17" rowspan="2" valign="top" bgcolor="#FFFFFF"></td>
|
||||
<td valign="top">
|
||||
<table width="100%" height="31" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr bgcolor="#FFFFFF"><td height="31"><div class="title">添加车辆</div></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width="16" rowspan="2" bgcolor="#FFFFFF"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" bgcolor="#F7F8F9">
|
||||
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr><td colspan="4" height="10"></td></tr>
|
||||
<tr>
|
||||
<td width="1%"> </td>
|
||||
<td width="96%">
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<form name="add" method="post" action="?" onSubmit="return checkadd()" enctype="multipart/form-data">
|
||||
<input type="hidden" name="id" value="<?php echo $rs["id"];?>" />
|
||||
<table width="100%" class="cont">
|
||||
<tr>
|
||||
<td width="2%"> </td>
|
||||
<td width="120" align="right">车牌号:</td>
|
||||
<td width="200"><input name="title" type="text" class="text" size="30" v-model="form.title"></td>
|
||||
<td></td>
|
||||
<td width="2%"> </td>
|
||||
</tr>
|
||||
<?php
|
||||
if(!empty($categoryA[0])){
|
||||
?>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td align="right"><span class="red">*</span> 选择品牌:</td>
|
||||
<td>
|
||||
<select name="categoryid">
|
||||
<?php foreach($categoryA as $row) { ?>
|
||||
<option value="<?php echo $row["id"];?>" <?php if($rs["categoryid"]==$row["id"]){echo ' selected="selected" ';}?>><?php echo $row["title"];?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<tr>
|
||||
<td width="2%"> </td>
|
||||
<td width="120" align="right">颜色:</td>
|
||||
<td width="200"><input name="colors" type="text" class="text" size="30" value="<?php echo $rs["colors"];?>"></td>
|
||||
<td></td>
|
||||
<td width="2%"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="2%"> </td>
|
||||
<td width="120" align="right">车龄:</td>
|
||||
<td width="200"><input name="ages" type="text" class="text" size="30" value="<?php echo $rs["ages"];?>"></td>
|
||||
<td></td>
|
||||
<td width="2%"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="2%"> </td>
|
||||
<td width="120" align="right"> 图片上传:</td>
|
||||
<td width="200"><input type="file" name="img" class="text" id="img"><?php if(!empty($rs['img'])){?><img src="<?php echo __PUBLIC__;?>/Upload/<?php echo $rs["img"];?>" height="50" width="50"/><?php }?></td>
|
||||
<td></td>
|
||||
<td width="2%"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="2%"> </td>
|
||||
<td width="120" align="right">状态:</td>
|
||||
<td width="200">
|
||||
<select name="status">
|
||||
<option value="正常" <?php if($rs["status"]=="正常"){echo "selected";}?>>正常</option>
|
||||
<option value="维修" <?php if($rs["status"]=="维修"){echo "selected";}?>>维修</option>
|
||||
<option value="报废" <?php if($rs["status"]=="报废"){echo "selected";}?>>报废</option>
|
||||
</select></td>
|
||||
<td></td>
|
||||
<td width="2%"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="2%"> </td>
|
||||
<td width="120" align="right">车辆所在位置:</td>
|
||||
<td width="200">
|
||||
<div class="lat_box">
|
||||
<div>
|
||||
<div class="item">
|
||||
<span>纬度:</span><input v-model="form.lat" name="lat">
|
||||
</div>
|
||||
<div class="item">
|
||||
<span>经度:</span><input v-model="form.lng" name="lng">
|
||||
</div>
|
||||
</div>
|
||||
<button type="button" @click="choisePosition()">点击选择</button>
|
||||
</div>
|
||||
<td></td>
|
||||
<td width="2%"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td align="right"><input class="btn" type="submit" value="提交" /></td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width="1%"> </td>
|
||||
</tr>
|
||||
<tr><td height="20"></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<el-dialog title="选择单车的停放位置"
|
||||
fullscreen
|
||||
:visible.sync="dialogVisible">
|
||||
<el-alert title="点击地图选择单车当前的停放位置后点击确定即可" type="success"></el-alert>
|
||||
<div id="mapBox" class="map_box"></div>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button @click="dialogVisible = false">取 消</el-button>
|
||||
<el-button type="primary" @click="saveMap()">确 定</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
<script src="https://cdn.bootcss.com/vue/2.5.17-beta.0/vue.js"></script>
|
||||
<script src="https://cdn.bootcss.com/element-ui/2.3.7/index.js"></script>
|
||||
<script type="text/javascript" src="http://webapi.amap.com/maps?v=1.4.6&key=ea1a7b8b8265fda0230e7235809a6037"></script>
|
||||
<script>
|
||||
new Vue({
|
||||
el:'#app',
|
||||
data:{
|
||||
dialogVisible:false,
|
||||
form:{
|
||||
lat:'<?php echo $rs['lat']?:0?>',
|
||||
lng:'<?php echo $rs['lng']?:0?>',
|
||||
title:'<?php echo $rs['title'];?>',
|
||||
},
|
||||
map:{
|
||||
lat:'0',
|
||||
lng:'0'
|
||||
}
|
||||
},
|
||||
methods:{
|
||||
choisePosition:function () {
|
||||
var _this = this;
|
||||
this.dialogVisible = true;
|
||||
this.$nextTick(function () {
|
||||
var map = new AMap.Map('mapBox', {
|
||||
resizeEnable: true,
|
||||
mapStyle: 'amap://styles/c94e78bbbdccdee5a21c45f18da575b1'//样式URL
|
||||
});
|
||||
map.on('click', function(e) {
|
||||
updateMarker(e.lnglat.getLng(), e.lnglat.getLat())
|
||||
});
|
||||
map.plugin('AMap.Geolocation', function() {
|
||||
geolocation = new AMap.Geolocation({
|
||||
enableHighAccuracy: true,//是否使用高精度定位,默认:true
|
||||
timeout: 10000, //超过10秒后停止定位,默认:无穷大
|
||||
buttonOffset: new AMap.Pixel(10, 20),//定位按钮与设置的停靠位置的偏移量,默认:Pixel(10, 20)
|
||||
zoomToAccuracy: true, //定位成功后调整地图视野范围使定位位置及精度范围视野内可见,默认:false
|
||||
buttonPosition:'RB'
|
||||
});
|
||||
map.addControl(geolocation);
|
||||
geolocation.getCurrentPosition();
|
||||
});
|
||||
var marker = new AMap.Marker({
|
||||
icon: "http://webapi.amap.com/theme/v1.3/markers/n/mark_r.png",
|
||||
position: [_this.form.lat,_this.form.lng], //基点位置
|
||||
draggable: true, //是否可拖动
|
||||
});
|
||||
marker.setMap(map);
|
||||
marker.setLabel({//label默认蓝框白底左上角显示,样式className为:amap-marker-label
|
||||
offset: new AMap.Pixel(-40, -25),//修改label相对于maker的位置
|
||||
content: "车牌号:"+_this.form.title
|
||||
});
|
||||
function updateMarker(lat,lng) {
|
||||
_this.map.lat = lat;
|
||||
_this.map.lng = lng;
|
||||
marker.setPosition([lat, lng]); //更新点标记位置
|
||||
}
|
||||
|
||||
});
|
||||
},
|
||||
//确认变更地点
|
||||
saveMap:function () {
|
||||
this.form.lat = this.map.lat;
|
||||
this.form.lng = this.map.lng;
|
||||
this.dialogVisible = false;
|
||||
}
|
||||
}
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
136
admin/cars_edit1.php
Normal file
@@ -0,0 +1,136 @@
|
||||
<?php
|
||||
include_once("../common/init.php");
|
||||
check_login();
|
||||
$tb_name = "orders";
|
||||
$rs1 = db_get_row("select * from cars where id=". $_REQUEST["carsid"]);
|
||||
if ($_REQUEST["id"]) {
|
||||
$rs = db_get_row("select * from orders where id=". $_REQUEST["id"]);
|
||||
}
|
||||
if ($_POST){
|
||||
$row = db_get_row("select * from user where studentid='". $_POST["studentid"] ."'");
|
||||
if (!$row["id"]) {
|
||||
goBakMsg("没有此学号");
|
||||
die;
|
||||
}
|
||||
$row1 = db_get_row("select * from yajin where studentid='". $_POST["studentid"] ."'");
|
||||
if (!$row1["id"]) {
|
||||
goBakMsg("没有交押金!");
|
||||
die;
|
||||
}else{
|
||||
if ($row1["price"]<300) {
|
||||
goBakMsg("押金不够!");
|
||||
die;
|
||||
}
|
||||
}
|
||||
$data = array();
|
||||
if ($_REQUEST["id"]) {
|
||||
db_query("update cars set status='正常' where id=".$_POST["carsid"]);
|
||||
db_query("update yajin set price=price-".$_POST["price"]." where studentid=".$_POST["studentid"]);
|
||||
$data["status"] = "'已归还'";
|
||||
}else{
|
||||
db_query("update cars set status='借出' where id=".$_POST["carsid"]);
|
||||
$data["status"] = "'借出'";
|
||||
}
|
||||
$data["studentid"] = "'".$_POST["studentid"]."'";
|
||||
$data["carsid"] = "'".$_POST["carsid"]."'";
|
||||
$data["carstitle"] = "'".$_POST["carstitle"]."'";
|
||||
$data["endtime"] = "'".$_POST["endtime"]."'";
|
||||
$data["begintime"] = "'".$_POST["begintime"]."'";
|
||||
|
||||
$data["price"] = "'".$_POST["price"]."'";
|
||||
if ($_REQUEST["id"]) {
|
||||
db_mdf($tb_name,$data,$_REQUEST["id"]);
|
||||
} else {
|
||||
db_add($tb_name,$data);
|
||||
}
|
||||
goBakMsg("操作成功");
|
||||
die;
|
||||
}
|
||||
?>
|
||||
<?php include_once("base.php");?>
|
||||
<body>
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="17" rowspan="2" valign="top" bgcolor="#FFFFFF"></td>
|
||||
<td valign="top">
|
||||
<table width="100%" height="31" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr bgcolor="#FFFFFF"><td height="31"><div class="title">添加订单</div></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width="16" rowspan="2" bgcolor="#FFFFFF"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" bgcolor="#F7F8F9">
|
||||
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr><td colspan="4" height="10"></td></tr>
|
||||
<tr>
|
||||
<td width="1%"> </td>
|
||||
<td width="96%">
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<form name="add" method="post" action="?" onSubmit="return checkadd()">
|
||||
<input type="hidden" name="carsid" value="<?php echo $rs1["id"];?>" />
|
||||
<input type="hidden" name="carstitle" value="<?php echo $rs1["title"];?>" />
|
||||
<input type="hidden" name="id" value="<?php echo $rs["id"];?>" />
|
||||
<table width="100%" class="cont">
|
||||
<tr>
|
||||
<td width="2%"> </td>
|
||||
<td width="120" align="right">车牌号:</td>
|
||||
<td width="200"><?php echo $rs1["title"];?></td>
|
||||
<td></td>
|
||||
<td width="2%"> </td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td width="2%"> </td>
|
||||
<td width="120" align="right">学号:</td>
|
||||
<td width="200"><input name="studentid" type="text" class="text" size="30" value="<?php echo $rs["studentid"];?>" required="required"></td>
|
||||
<td></td>
|
||||
<td width="2%"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="2%"> </td>
|
||||
<td width="120" align="right">提车日期:</td>
|
||||
<td width="200"><script language="javascript" type="text/javascript" src="../My97DatePicker/WdatePicker.js"></script>
|
||||
<input name="begintime" id="datepicker" type="text" onClick="WdatePicker()" style="width:350px;" class="text" value="<?php echo $rs["begintime"];?>" required></td>
|
||||
<td></td>
|
||||
<td width="2%"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="2%"> </td>
|
||||
<td width="120" align="right">还车日期:</td>
|
||||
<td width="200"><script language="javascript" type="text/javascript" src="../My97DatePicker/WdatePicker.js"></script>
|
||||
<input name="endtime" id="datepicker" type="text" onClick="WdatePicker()" style="width:350px;" class="text" value="<?php echo $rs["endtime"];?>" required></td>
|
||||
<td></td>
|
||||
<td width="2%"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="2%"> </td>
|
||||
<td width="120" align="right">预计金额:</td>
|
||||
<td width="200"><input name="price" type="text" class="text" size="30" value="<?php echo $rs["price"];?>" required="required"></td>
|
||||
<td></td>
|
||||
<td width="2%"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td align="right"><input class="btn" type="submit" value="提交" /></td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width="1%"> </td>
|
||||
</tr>
|
||||
<tr><td height="20"></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
168
admin/cars_list.php
Normal file
@@ -0,0 +1,168 @@
|
||||
<?php
|
||||
include_once("../common/init.php");
|
||||
check_login();
|
||||
$categoryA = db_get_all("select * from category order by id desc");
|
||||
$tb_name = "cars";
|
||||
$where_sql = " 1=1 ";
|
||||
if ($_REQUEST["title"]) {
|
||||
$where_sql .= " and title like '%". $_REQUEST["title"] ."%' ";
|
||||
}
|
||||
|
||||
if ($_REQUEST["categoryid"]) {
|
||||
$where_sql .= " and categoryid =". $_REQUEST["categoryid"] ." ";
|
||||
}
|
||||
$page = $_REQUEST["page"]?$_REQUEST["page"]:1;
|
||||
$list = db_get_page("select * from $tb_name where $where_sql order by id desc", $page,11);
|
||||
if ($page*1>$list["page"]*1){
|
||||
$page = $list["page"];
|
||||
}
|
||||
$Page = new PageWeb($list["total"],$list["page_size"], "title=".$_REQUEST["title"]."&categoryid=".$_REQUEST["categoryid"], $page);
|
||||
$page_show = $Page->show();
|
||||
?>
|
||||
<?php include_once("base.php");?>
|
||||
<link href="https://cdn.bootcss.com/element-ui/2.3.7/theme-chalk/index.css" rel="stylesheet">
|
||||
<style>
|
||||
.map_box{height: 500px;}
|
||||
</style>
|
||||
<body>
|
||||
<div id="app">
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="17" rowspan="2" valign="top" bgcolor="#FFFFFF"></td>
|
||||
<td valign="top">
|
||||
<table width="100%" height="31" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr bgcolor="#FFFFFF"><td height="31"><div class="title">车辆管理</div></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width="16" rowspan="2" bgcolor="#FFFFFF"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" bgcolor="#F7F8F9">
|
||||
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr><td colspan="4" height="10"></td></tr>
|
||||
<tr><td width="1%"> </td><td width="96%">
|
||||
<table width="100%" class="cont">
|
||||
<tr>
|
||||
<td width="1%"></td>
|
||||
<td>
|
||||
<form id="pagerForm" action="?" method="post">
|
||||
<input type="hidden" name="pageNum" value="<?php echo $page; ?>"/>
|
||||
<select name="categoryid">
|
||||
<option value="">-- 请选择 --</option>
|
||||
<?php
|
||||
foreach($categoryA as $row) {
|
||||
?>
|
||||
<option value="<?php echo $row["id"];?>" <?php if($_REQUEST["categoryid"]==$row["id"]){echo ' selected="selected" ';}?>><?php echo $row["title"];?></option>
|
||||
<?php } ?>
|
||||
</select> <input type="text" name="title" class="text" placeholder="车牌号" value="<?php echo $_REQUEST["title"]; ?>"/>
|
||||
<button type="submit" id="chaxun" class="btn">查询</button>
|
||||
</form></td></tr></table>
|
||||
</td><td width="1%"> </td></tr>
|
||||
<tr>
|
||||
<td width="1%"> </td>
|
||||
<td width="96%">
|
||||
<table width="100%">
|
||||
<td colspan="2">
|
||||
<table width="100%" class="cont tr_color">
|
||||
<tr>
|
||||
<th width="82">编号</th>
|
||||
<th>车牌号</th>
|
||||
<th>车龄</th>
|
||||
<th>颜色</th>
|
||||
<th>状态</th>
|
||||
<th width="140">操作</th>
|
||||
</tr>
|
||||
<?php
|
||||
foreach($list["data"] as $row) {
|
||||
?>
|
||||
<tr align="center" class="d">
|
||||
<td align="center"><?php echo $row['id'];?></td>
|
||||
<td><?php echo $row['title'];?></td>
|
||||
<td><?php echo $row['ages'];?></td>
|
||||
<td><?php echo $row['colors'];?></td>
|
||||
<td><?php echo $row['status'];?></td>
|
||||
<td align="center">
|
||||
<a href="javascript:;" @click="showPosition(<?php echo $row['lat']?:0?>,<?php echo $row['lng']?:0?>,'<?php echo $row['title']?:''?>')">位置</a>
|
||||
<?php if($row['status']=="正常"){?>
|
||||
<a href="baoxiu_edit.php?carsid=<?php echo $row['id'];?>">报修</a>
|
||||
<?php }?>
|
||||
<a href="<?php echo $tb_name;?>_edit.php?id=<?php echo $row['id'];?>">编辑</a>
|
||||
<a href="del.php?id=<?php echo $row['id'];?>&del=<?php echo $tb_name;?>" onClick="return confirm('真的要删除?不可恢复!');">删除</a></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
|
||||
<tr>
|
||||
<td align="center"><?php echo $page_show;?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width="1%"> </td>
|
||||
</tr>
|
||||
<tr><td height="20"></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<el-dialog title="停放位置查看"
|
||||
fullscreen
|
||||
:visible.sync="dialogVisible">
|
||||
<div id="mapBox" class="map_box"></div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
<script src="https://cdn.bootcss.com/vue/2.5.17-beta.0/vue.js"></script>
|
||||
<script src="https://cdn.bootcss.com/element-ui/2.3.7/index.js"></script>
|
||||
<script type="text/javascript" src="http://webapi.amap.com/maps?v=1.4.6&key=ea1a7b8b8265fda0230e7235809a6037"></script>
|
||||
<script>
|
||||
new Vue({
|
||||
el:'#app',
|
||||
data:{
|
||||
dialogVisible:false,
|
||||
},
|
||||
methods:{
|
||||
showPosition:function (lat,lng,no) {
|
||||
if(lat>0 && lng>0){
|
||||
this.dialogVisible = true;
|
||||
this.$nextTick(function () {
|
||||
var map = new AMap.Map('mapBox', {
|
||||
zoom: 17,
|
||||
resizeEnable: true,
|
||||
mapStyle: 'amap://styles/c94e78bbbdccdee5a21c45f18da575b1',//样式URL
|
||||
center: [lat,lng]
|
||||
});
|
||||
map.plugin('AMap.Geolocation', function() {
|
||||
geolocation = new AMap.Geolocation({
|
||||
enableHighAccuracy: true,//是否使用高精度定位,默认:true
|
||||
timeout: 10000, //超过10秒后停止定位,默认:无穷大
|
||||
buttonOffset: new AMap.Pixel(10, 20),//定位按钮与设置的停靠位置的偏移量,默认:Pixel(10, 20)
|
||||
zoomToAccuracy: true, //定位成功后调整地图视野范围使定位位置及精度范围视野内可见,默认:false
|
||||
buttonPosition:'RB'
|
||||
});
|
||||
map.addControl(geolocation);
|
||||
});
|
||||
var marker = new AMap.Marker({
|
||||
icon: "http://webapi.amap.com/theme/v1.3/markers/n/mark_r.png",
|
||||
position: [lat,lng], //基点位置
|
||||
draggable: true, //是否可拖动
|
||||
});
|
||||
marker.setMap(map);
|
||||
marker.setLabel({//label默认蓝框白底左上角显示,样式className为:amap-marker-label
|
||||
offset: new AMap.Pixel(-40, -25),//修改label相对于maker的位置
|
||||
content: "车牌号:"+no
|
||||
});
|
||||
});
|
||||
}else{
|
||||
this.$message({
|
||||
message: '该车辆未设置位置,请先设置车辆位置后再进行查看吧',
|
||||
type: 'warning'
|
||||
});
|
||||
}
|
||||
},
|
||||
}
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
98
admin/cars_list1.php
Normal file
@@ -0,0 +1,98 @@
|
||||
<?php
|
||||
include_once("../common/init.php");
|
||||
check_login();
|
||||
$categoryA = db_get_all("select * from category order by id desc");
|
||||
$tb_name = "cars";
|
||||
$where_sql = " status='正常' ";
|
||||
if ($_REQUEST["title"]) {
|
||||
$where_sql .= " and title like '%". $_REQUEST["title"] ."%' ";
|
||||
}
|
||||
|
||||
if ($_REQUEST["categoryid"]) {
|
||||
$where_sql .= " and categoryid =". $_REQUEST["categoryid"] ." ";
|
||||
}
|
||||
$page = $_REQUEST["page"]?$_REQUEST["page"]:1;
|
||||
$list = db_get_page("select * from $tb_name where $where_sql order by id desc", $page,11);
|
||||
if ($page*1>$list["page"]*1){
|
||||
$page = $list["page"];
|
||||
}
|
||||
$Page = new PageWeb($list["total"],$list["page_size"], "title=".$_REQUEST["title"]."&categoryid=".$_REQUEST["categoryid"], $page);
|
||||
$page_show = $Page->show();
|
||||
?>
|
||||
<?php include_once("base.php");?>
|
||||
<body>
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="17" rowspan="2" valign="top" bgcolor="#FFFFFF"></td>
|
||||
<td valign="top">
|
||||
<table width="100%" height="31" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr bgcolor="#FFFFFF"><td height="31"><div class="title">车辆管理</div></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width="16" rowspan="2" bgcolor="#FFFFFF"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" bgcolor="#F7F8F9">
|
||||
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr><td colspan="4" height="10"></td></tr>
|
||||
<tr><td width="1%"> </td><td width="96%">
|
||||
<table width="100%" class="cont">
|
||||
<tr>
|
||||
<td width="1%"></td>
|
||||
<td>
|
||||
<form id="pagerForm" action="?" method="post">
|
||||
<input type="hidden" name="pageNum" value="<?php echo $page; ?>"/>
|
||||
<select name="categoryid">
|
||||
<option value="">-- 请选择 --</option>
|
||||
<?php
|
||||
foreach($categoryA as $row) {
|
||||
?>
|
||||
<option value="<?php echo $row["id"];?>" <?php if($_REQUEST["categoryid"]==$row["id"]){echo ' selected="selected" ';}?>><?php echo $row["title"];?></option>
|
||||
<?php } ?>
|
||||
</select> <input type="text" name="title" class="text" placeholder="车牌号" value="<?php echo $_REQUEST["title"]; ?>"/>
|
||||
<button type="submit" id="chaxun" class="btn">查询</button>
|
||||
</form></td></tr></table>
|
||||
</td><td width="1%"> </td></tr>
|
||||
<tr>
|
||||
<td width="1%"> </td>
|
||||
<td width="96%">
|
||||
<table width="100%">
|
||||
<td colspan="2">
|
||||
<table width="100%" class="cont tr_color">
|
||||
<tr>
|
||||
<th width="82" >编号</th>
|
||||
<th >车牌号</th>
|
||||
<th >车龄</th>
|
||||
<th >颜色</th>
|
||||
<th width="120">操作</th>
|
||||
</tr>
|
||||
<?php
|
||||
foreach($list["data"] as $row) {
|
||||
?>
|
||||
<tr align="center" class="d">
|
||||
<td align="center"><?php echo $row['id'];?></td>
|
||||
<td><?php echo $row['title'];?></td>
|
||||
<td><?php echo $row['ages'];?></td>
|
||||
<td><?php echo $row['colors'];?></td>
|
||||
<td align="center"><a href="<?php echo $tb_name;?>_edit1.php?carsid=<?php echo $row['id'];?>">下单</a></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
|
||||
<tr>
|
||||
<td align="center"><?php echo $page_show;?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width="1%"> </td>
|
||||
</tr>
|
||||
<tr><td height="20"></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
85
admin/category_edit.php
Normal file
@@ -0,0 +1,85 @@
|
||||
<?php
|
||||
include_once("../common/init.php");
|
||||
check_login();
|
||||
if ($_REQUEST["id"]) {
|
||||
$rs = db_get_row("select * from category where id=". $_REQUEST["id"]);
|
||||
}
|
||||
if ($_POST){
|
||||
$data = array();
|
||||
$data["title"] = "'".$_POST["title"]."'";
|
||||
if ($_REQUEST["id"]) {
|
||||
db_mdf("category",$data,$_REQUEST["id"]);
|
||||
} else {
|
||||
db_add("category",$data);
|
||||
}
|
||||
goBakMsg("操作成功");
|
||||
die;
|
||||
}
|
||||
?>
|
||||
<?php include_once("base.php");?>
|
||||
<script>
|
||||
function checkadd()
|
||||
{
|
||||
if (document.add.title.value=='')
|
||||
{
|
||||
alert('名称不能为空');
|
||||
document.add.title.focus;
|
||||
return false
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<body>
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="17" rowspan="2" valign="top" bgcolor="#FFFFFF"></td>
|
||||
<td valign="top">
|
||||
<table width="100%" height="31" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr bgcolor="#FFFFFF"><td height="31"><div class="title">添加/修改品牌</div></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width="16" rowspan="2" bgcolor="#FFFFFF"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" bgcolor="#F7F8F9">
|
||||
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr><td colspan="4" height="10"></td></tr>
|
||||
<tr>
|
||||
<td width="1%"> </td>
|
||||
<td width="96%">
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<form name="add" method="post" action="?" onSubmit="return checkadd()">
|
||||
<input type="hidden" name="id" value="<?php echo $rs["id"];?>" />
|
||||
<input type="hidden" name="adminid1" value="<?php echo $rs["adminid"];?>" />
|
||||
<table width="100%" class="cont">
|
||||
<tr>
|
||||
<td width="2%"> </td>
|
||||
<td width="120" align="right"><span class="red">*</span> 品牌名称:</td>
|
||||
<td width="200"><input name="title" type="text" class="text" size="30" value="<?php echo $rs["title"];?>"></td>
|
||||
<td>填写名称</td>
|
||||
<td width="2%"> </td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td align="right"><input class="btn" type="submit" value="提交" /></td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width="1%"> </td>
|
||||
</tr>
|
||||
<tr><td height="20"></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
57
admin/category_list.php
Normal file
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
include_once("../common/init.php");
|
||||
check_login();
|
||||
$list = db_get_all("select * from category order by id desc");
|
||||
?>
|
||||
<?php include_once("base.php");?>
|
||||
<body>
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="17" rowspan="2" valign="top" bgcolor="#FFFFFF"></td>
|
||||
<td valign="top">
|
||||
<table width="100%" height="31" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr bgcolor="#FFFFFF"><td height="31"><div class="title">品牌管理</div></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width="16" rowspan="2" bgcolor="#FFFFFF"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" bgcolor="#F7F8F9">
|
||||
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr><td colspan="4" height="10"></td></tr>
|
||||
<tr>
|
||||
<td width="1%"> </td>
|
||||
<td width="96%">
|
||||
<table width="100%">
|
||||
<td colspan="2">
|
||||
<table width="100%" class="cont tr_color">
|
||||
<tr>
|
||||
<th width="82">编号</th>
|
||||
<th width="200">品牌名称</th>
|
||||
<th> </th>
|
||||
<th width="120">操作</th>
|
||||
</tr>
|
||||
<?php
|
||||
foreach($list as $row){
|
||||
?>
|
||||
<tr align="center" class="d">
|
||||
<td><?php echo $row['id'];?></td>
|
||||
<td align="center"><?php echo $row['title'];?></td>
|
||||
<td align="center"> </td>
|
||||
<td><a href="category_edit.php?id=<?php echo $row['id'];?>">编辑</a> <a href="del.php?id=<?php echo $row['id'];?>&del=category" onClick="return confirm('真的要删除?不可恢复!');">删除</a></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width="1%"> </td>
|
||||
</tr>
|
||||
<tr><td height="20"></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
12
admin/del.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
include_once("../common/init.php");
|
||||
check_login();
|
||||
|
||||
if ($_REQUEST["del"]) {
|
||||
db_del($_REQUEST["del"],$_REQUEST["id"]);
|
||||
goBakMsg("删除成功");
|
||||
} else {
|
||||
die;
|
||||
}
|
||||
|
||||
?>
|
||||
111
admin/eacher/baoxiu_edit.php
Normal file
@@ -0,0 +1,111 @@
|
||||
<?php
|
||||
include_once("../../common/init.php");
|
||||
check_loginthe1();
|
||||
$tb_name = "baoxiu";
|
||||
$eacher = db_get_all("select * from eacher order by id asc ");
|
||||
$rs1 = db_get_row("select * from cars where id=". $_REQUEST["carsid"]);
|
||||
if ($_REQUEST["id"]) {
|
||||
$rs = db_get_row("select * from $tb_name where id=". $_REQUEST["id"]);
|
||||
}
|
||||
if ($_POST){
|
||||
$data = array();
|
||||
db_query("update cars set status='".$_POST["status"]."' where id=".$_POST["carsid"]);
|
||||
$data["carsid"] = "'".$_POST["carsid"]."'";
|
||||
$data["status"] = "'".$_POST["status1"]."'";
|
||||
$data["content"] = "'".$_POST["content"]."'";
|
||||
if ($_REQUEST["id"]) {
|
||||
db_mdf($tb_name,$data,$_REQUEST["id"]);
|
||||
} else {
|
||||
db_add($tb_name,$data);
|
||||
}
|
||||
goBakMsg("操作成功");
|
||||
die;
|
||||
}
|
||||
?>
|
||||
<?php include_once("base.php");?>
|
||||
<body>
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="17" rowspan="2" valign="top" bgcolor="#FFFFFF"></td>
|
||||
<td valign="top">
|
||||
<table width="100%" height="31" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr bgcolor="#FFFFFF"><td height="31"><div class="title">添加订单</div></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width="16" rowspan="2" bgcolor="#FFFFFF"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" bgcolor="#F7F8F9">
|
||||
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr><td colspan="4" height="10"></td></tr>
|
||||
<tr>
|
||||
<td width="1%"> </td>
|
||||
<td width="96%">
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<form name="add" method="post" action="?" onSubmit="return checkadd()">
|
||||
<input type="hidden" name="carsid" value="<?php echo $rs1["id"];?>" />
|
||||
<input type="hidden" name="carstitle" value="<?php echo $rs1["title"];?>" />
|
||||
<input type="hidden" name="id" value="<?php echo $rs["id"];?>" />
|
||||
<table width="100%" class="cont">
|
||||
<tr>
|
||||
<td width="2%"> </td>
|
||||
<td width="120" align="right">车牌号:</td>
|
||||
<td width="200"><?php echo $rs1["title"];?></td>
|
||||
<td></td>
|
||||
<td width="2%"> </td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td width="2%"> </td>
|
||||
<td width="120" align="right">车辆状态:</td>
|
||||
<td width="200">
|
||||
<select name="status">
|
||||
<option value="维修" <?php if($rs1["status"]=="维修"){echo "selected";}?>>维修</option>
|
||||
<option value="报废" <?php if($rs1["status"]=="报废"){echo "selected";}?>>报废</option>
|
||||
<option value="正常" <?php if($rs1["status"]=="正常"){echo "selected";}?>>正常</option>
|
||||
</select></td>
|
||||
<td></td>
|
||||
<td width="2%"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="2%"> </td>
|
||||
<td width="120" align="right">报修状态:</td>
|
||||
<td width="200">
|
||||
<select name="status1">
|
||||
<option value="维修中" <?php if($rs["status"]=="维修中"){echo "selected";}?>>维修中</option>
|
||||
<option value="完成" <?php if($rs["status"]=="完成"){echo "selected";}?>>完成</option>
|
||||
</select></td>
|
||||
<td></td>
|
||||
<td width="2%"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="2%"> </td>
|
||||
<td width="120" align="right">备注:</td>
|
||||
<td width="200"><textarea name="content"><?php echo $rs["content"];?></textarea></td>
|
||||
<td></td>
|
||||
<td width="2%"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td align="right"><input class="btn" type="submit" value="提交" /></td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width="1%"> </td>
|
||||
</tr>
|
||||
<tr><td height="20"></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
181
admin/eacher/baoxiu_list.php
Normal file
@@ -0,0 +1,181 @@
|
||||
<?php
|
||||
include_once("../../common/init.php");
|
||||
check_loginthe1();
|
||||
$tb_name = "baoxiu";
|
||||
$where_sql = " 1=1 ";
|
||||
|
||||
if ($_REQUEST["status"]) {
|
||||
$where_sql .= " and status ='". $_REQUEST["status"] ."'";
|
||||
}
|
||||
$page = $_REQUEST["page"]?$_REQUEST["page"]:1;
|
||||
|
||||
$list = db_get_page("select * from $tb_name where $where_sql and eacherid=".$_SESSION["eachersid"]." order by id desc", $page,11);
|
||||
if ($page*1>$list["page"]*1){
|
||||
$page = $list["page"];
|
||||
}
|
||||
$Page = new PageWeb($list["total"],$list["page_size"], "status=".$_REQUEST["status"], $page);
|
||||
$page_show = $Page->show();
|
||||
|
||||
//查询车辆位置
|
||||
$car_ids = array();
|
||||
foreach ($list['data'] as $k=>$v){
|
||||
$car_ids[] = $v['carsid'];
|
||||
}
|
||||
|
||||
$sql = "select `id`,`lat`,`lng`,`title` from `cars` where `id` in (".join(',',$car_ids).")";
|
||||
$res = db_get_all($sql);
|
||||
$cars_list = array();
|
||||
foreach ($res as $k=>$v){
|
||||
$cars_list[$v['id']] = $v;
|
||||
}
|
||||
|
||||
foreach ($list['data'] as $k=>$v){
|
||||
$car = $cars_list[$v['carsid']];
|
||||
$list['data'][$k]['lng'] = $car['lng'];
|
||||
$list['data'][$k]['lat'] = $car['lat'];
|
||||
$list['data'][$k]['title'] = $car['title'];
|
||||
}
|
||||
|
||||
?>
|
||||
<?php include_once("base.php");?>
|
||||
<link href="https://cdn.bootcss.com/element-ui/2.3.7/theme-chalk/index.css" rel="stylesheet">
|
||||
<style>
|
||||
.map_box{height: 500px;}
|
||||
</style>
|
||||
<body>
|
||||
<div id="app">
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="17" rowspan="2" valign="top" bgcolor="#FFFFFF"></td>
|
||||
<td valign="top">
|
||||
<table width="100%" height="31" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr bgcolor="#FFFFFF"><td height="31"><div class="title">报修管理</div></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width="16" rowspan="2" bgcolor="#FFFFFF"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" bgcolor="#F7F8F9">
|
||||
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr><td colspan="4" height="10"></td></tr>
|
||||
<tr><td width="1%"> </td><td width="96%">
|
||||
<table width="100%" class="cont">
|
||||
<tr>
|
||||
<td width="1%"></td>
|
||||
<td>
|
||||
<form id="pagerForm" action="?" method="post">
|
||||
<input type="hidden" name="pageNum" value="<?php echo $page; ?>"/>
|
||||
<select name="status">
|
||||
<option value="">选择状态</option>
|
||||
<option value="维修中" <?php if($_REQUEST["status"]=="维修中"){echo "selected";}?>>维修中</option>
|
||||
<option value="完成" <?php if($_REQUEST["status"]=="完成"){echo "selected";}?>>完成</option>
|
||||
</select>
|
||||
<button type="submit" id="chaxun" class="btn">查询</button>
|
||||
</form></td></tr></table>
|
||||
</td><td width="1%"> </td></tr>
|
||||
<tr>
|
||||
<td width="1%"> </td>
|
||||
<td width="96%">
|
||||
<table width="100%">
|
||||
<td colspan="2">
|
||||
<table width="100%" class="cont tr_color">
|
||||
<tr>
|
||||
<th width="82">编号</th>
|
||||
<th>车牌号</th>
|
||||
<th>维修人员</th>
|
||||
<th>提交时间</th>
|
||||
<th>车辆状态</th>
|
||||
<th width="120">操作</th>
|
||||
</tr>
|
||||
<?php
|
||||
foreach($list["data"] as $row) {
|
||||
?>
|
||||
<tr align="center" class="d">
|
||||
<td align="center"><?php echo $row['id'];?></td>
|
||||
<td><?php echo $row['title']?></td>
|
||||
<td><?php echo db_get_val("eacher",$row["eacherid"],"tname")?></td>
|
||||
<td><?php echo $row['addtime'];?></td>
|
||||
<td><?php echo $row['status']?></td>
|
||||
<td align="center">
|
||||
<a href="javascript:;" @click="showPosition(<?php echo $row['lat']?:0?>,<?php echo $row['lng']?:0?>,'<?php echo $row['title']?:''?>')">位置</a>
|
||||
<a href="baoxiu_edit.php?id=<?php echo $row['id'];?>&carsid=<?php echo $row['carsid'];?>">修改</a>
|
||||
<a href="del.php?id=<?php echo $row['id'];?>&del=baoxiu" onClick="return confirm('真的要删除?不可恢复!');">删除</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
|
||||
<tr>
|
||||
<td align="center"><?php echo $page_show;?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width="1%"> </td>
|
||||
</tr>
|
||||
<tr><td height="20"></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<el-dialog title="停放位置查看"
|
||||
fullscreen
|
||||
:visible.sync="dialogVisible">
|
||||
<div id="mapBox" class="map_box"></div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
<script src="https://cdn.bootcss.com/vue/2.5.17-beta.0/vue.js"></script>
|
||||
<script src="https://cdn.bootcss.com/element-ui/2.3.7/index.js"></script>
|
||||
<script type="text/javascript" src="http://webapi.amap.com/maps?v=1.4.6&key=ea1a7b8b8265fda0230e7235809a6037"></script>
|
||||
<script>
|
||||
new Vue({
|
||||
el:'#app',
|
||||
data:{
|
||||
dialogVisible:false,
|
||||
},
|
||||
methods:{
|
||||
showPosition:function (lat,lng,no) {
|
||||
if(lat>0 && lng>0){
|
||||
this.dialogVisible = true;
|
||||
this.$nextTick(function () {
|
||||
var map = new AMap.Map('mapBox', {
|
||||
zoom: 17,
|
||||
resizeEnable: true,
|
||||
mapStyle: 'amap://styles/c94e78bbbdccdee5a21c45f18da575b1',//样式URL
|
||||
center: [lat,lng]
|
||||
});
|
||||
map.plugin('AMap.Geolocation', function() {
|
||||
geolocation = new AMap.Geolocation({
|
||||
enableHighAccuracy: true,//是否使用高精度定位,默认:true
|
||||
timeout: 10000, //超过10秒后停止定位,默认:无穷大
|
||||
buttonOffset: new AMap.Pixel(10, 20),//定位按钮与设置的停靠位置的偏移量,默认:Pixel(10, 20)
|
||||
zoomToAccuracy: true, //定位成功后调整地图视野范围使定位位置及精度范围视野内可见,默认:false
|
||||
buttonPosition:'RB'
|
||||
});
|
||||
map.addControl(geolocation);
|
||||
});
|
||||
var marker = new AMap.Marker({
|
||||
icon: "http://webapi.amap.com/theme/v1.3/markers/n/mark_r.png",
|
||||
position: [lat,lng], //基点位置
|
||||
draggable: true, //是否可拖动
|
||||
});
|
||||
marker.setMap(map);
|
||||
marker.setLabel({//label默认蓝框白底左上角显示,样式className为:amap-marker-label
|
||||
offset: new AMap.Pixel(-40, -25),//修改label相对于maker的位置
|
||||
content: "车牌号:"+no
|
||||
});
|
||||
});
|
||||
}else{
|
||||
this.$message({
|
||||
message: '该车辆未设置位置,请先设置车辆位置后再进行查看吧',
|
||||
type: 'warning'
|
||||
});
|
||||
}
|
||||
},
|
||||
}
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
7
admin/eacher/base.php
Normal file
@@ -0,0 +1,7 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<link rel="stylesheet" type="text/css" href="../style/skin.css" />
|
||||
<script type="text/javascript" src="../style/jquery.js"></script>
|
||||
</head>
|
||||
12
admin/eacher/del.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
include_once("../../common/init.php");
|
||||
check_loginthe1();
|
||||
|
||||
if ($_REQUEST["del"]) {
|
||||
db_del($_REQUEST["del"],$_REQUEST["id"]);
|
||||
goBakMsg("删除成功");
|
||||
} else {
|
||||
die;
|
||||
}
|
||||
|
||||
?>
|
||||
19
admin/eacher/index.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
include_once("../../common/init.php");
|
||||
check_loginthe1();?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title><?php echo $CONFIG["webname"];?></title>
|
||||
</head>
|
||||
<frameset rows="88,*" cols="*" frameborder="no" border="0" framespacing="0">
|
||||
<frame src="top.php" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" title="topFrame" />
|
||||
<frameset cols="187,*" frameborder="no" border="0" framespacing="0">
|
||||
<frame src="left.php" name="leftFrame" scrolling="No" noresize="noresize" id="leftFrame" title="leftFrame" />
|
||||
<frame src="main.php" name="main" id="main" title="main" />
|
||||
</frameset>
|
||||
</frameset>
|
||||
<noframes><body>
|
||||
</body></noframes>
|
||||
</html>
|
||||
58
admin/eacher/left.php
Normal file
@@ -0,0 +1,58 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>无标题文档</title>
|
||||
<link href="../skin/index/css/style.css" rel="stylesheet" type="text/css" />
|
||||
<script language="JavaScript" src="../skin/index/js/jquery.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(function(){
|
||||
//导航切换
|
||||
$(".menuson li").click(function(){
|
||||
$(".menuson li.active").removeClass("active")
|
||||
$(this).addClass("active");
|
||||
});
|
||||
|
||||
$('.title').click(function(){
|
||||
var $ul = $(this).next('ul');
|
||||
$('dd').find('ul').slideUp();
|
||||
if($ul.is(':visible')){
|
||||
$(this).next('ul').slideUp();
|
||||
}else{
|
||||
$(this).next('ul').slideDown();
|
||||
}
|
||||
});
|
||||
})
|
||||
</script>
|
||||
|
||||
|
||||
</head>
|
||||
|
||||
<body style="background:#f0f9fd;">
|
||||
<div class="lefttop"><span></span>系统管理</div>
|
||||
|
||||
<dl class="leftmenu">
|
||||
|
||||
<dd>
|
||||
<div class="title">
|
||||
<span></span>管理信息
|
||||
</div>
|
||||
<ul class="menuson">
|
||||
<li><cite></cite><a href='password.php' target='main'>修改资料</a><i></i></li>
|
||||
</ul>
|
||||
</dd>
|
||||
|
||||
<dd><div class="title">
|
||||
<span></span>维修管理
|
||||
</div>
|
||||
<ul class="menuson">
|
||||
<li><cite></cite><a href='baoxiu_list.php?status=维修中' target='main'>未完成维修</a><i></i></li>
|
||||
<li><cite></cite><a href='baoxiu_list.php?status=完成' target='main'>已完成维修</a><i></i></li>
|
||||
<li><cite></cite><a href='map.php' target='main'>待修理车辆地图</a><i></i></li>
|
||||
</ul>
|
||||
</dd>
|
||||
|
||||
</dl>
|
||||
</body>
|
||||
</html>
|
||||
33
admin/eacher/main.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
include_once("../../common/init.php");
|
||||
check_loginthe1();
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title><?php echo $CONFIG["webname"];?></title>
|
||||
<link href="../skin/index/css/style.css" rel="stylesheet" type="text/css" />
|
||||
<script type="text/javascript" src="../skin/index/js/jquery.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="place">
|
||||
<span>位置:</span>
|
||||
<ul class="placeul">
|
||||
<li><a href="#">后台首页</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="mainindex">
|
||||
|
||||
|
||||
|
||||
<div class="welinfo">
|
||||
网站名称:<?php echo $CONFIG["webname"];?>
|
||||
</div>
|
||||
|
||||
<div class="xline"></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
55
admin/eacher/map.php
Normal file
@@ -0,0 +1,55 @@
|
||||
<?php
|
||||
include_once("../../common/init.php");
|
||||
check_loginthe1();
|
||||
$list = db_get_all("select `b`.`id`,`c`.`id` as `carid`,`c`.`title`,`c`.`lat`,`c`.`lng` from `baoxiu` as `b` join `cars` as `c` on `b`.`carsid`=`c`.`id` where `b`.`status`='维修中' and `b`.`eacherid`={$_SESSION['eachersid']}");
|
||||
|
||||
?>
|
||||
<?php include_once("base.php");?>
|
||||
<style>
|
||||
.map_box{height: 600px;}
|
||||
</style>
|
||||
<body>
|
||||
<h2 style="text-align: center;margin: 15px">点击车辆可以直接修改维修状态</h2>
|
||||
<div id="mapBox" class="map_box"></div>
|
||||
<script type="text/javascript" src="http://webapi.amap.com/maps?v=1.4.6&key=ea1a7b8b8265fda0230e7235809a6037"></script>
|
||||
<script>
|
||||
var list = <?php echo json_encode($list)?>;
|
||||
console.log(list)
|
||||
var map = new AMap.Map('mapBox', {
|
||||
resizeEnable: true,
|
||||
mapStyle: 'amap://styles/c94e78bbbdccdee5a21c45f18da575b1'//样式URL
|
||||
});
|
||||
map.plugin('AMap.Geolocation', function() {
|
||||
geolocation = new AMap.Geolocation({
|
||||
enableHighAccuracy: true,//是否使用高精度定位,默认:true
|
||||
timeout: 10000, //超过10秒后停止定位,默认:无穷大
|
||||
buttonOffset: new AMap.Pixel(10, 20),//定位按钮与设置的停靠位置的偏移量,默认:Pixel(10, 20)
|
||||
zoomToAccuracy: true, //定位成功后调整地图视野范围使定位位置及精度范围视野内可见,默认:false
|
||||
buttonPosition:'RB'
|
||||
});
|
||||
map.addControl(geolocation);
|
||||
geolocation.getCurrentPosition();
|
||||
});
|
||||
for (var i=0;i<list.length;i++){
|
||||
if(list[i].lat > 0 && list[i].lng >0){
|
||||
var marker = new AMap.Marker({
|
||||
icon: "http://webapi.amap.com/theme/v1.3/markers/n/mark_r.png",
|
||||
position: [list[i].lat,list[i].lng], //基点位置
|
||||
draggable: true, //是否可拖动
|
||||
});
|
||||
marker.setMap(map);
|
||||
marker.setLabel({//label默认蓝框白底左上角显示,样式className为:amap-marker-label
|
||||
offset: new AMap.Pixel(-40, -25),//修改label相对于maker的位置
|
||||
content: "车牌号:"+list[i].title
|
||||
});
|
||||
marker.carinfo = list[i];
|
||||
AMap.event.addListener(marker, 'click', function (e) {
|
||||
window.location.href = "baoxiu_edit.php?carsid="+e.target.carinfo.carid+"&id="+e.target.carinfo.id;
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
160
admin/eacher/password.php
Normal file
@@ -0,0 +1,160 @@
|
||||
<?php
|
||||
include_once("../../common/init.php");
|
||||
check_loginthe1();
|
||||
$rs = db_get_row("select * from eacher where id=".$_SESSION["eachersid"]);
|
||||
if ($_POST){
|
||||
$data = array();
|
||||
$data["tname"] = "'".$_POST["tname"]."'";
|
||||
$data["begintime"] = "'".$_POST["begintime"]."'";
|
||||
$data["desc1"] = "'".$_POST["desc1"]."'";
|
||||
$data["sex"] = "'".$_POST["sex"]."'";
|
||||
$data["tel"] = "'".$_POST["tel"]."'";
|
||||
if($_POST["password"]){
|
||||
$data["password"] = "'".md5($_POST["password"])."'";
|
||||
}
|
||||
|
||||
if(!empty($_FILES['img']['name'])){
|
||||
$file = $_FILES['img'];//得到传输的数据
|
||||
//得到文件名称
|
||||
$name = $file['name'];
|
||||
$type = strtolower(substr($name,strrpos($name,'.')+1)); //得到文件类型,并且都转化成小写
|
||||
$allow_type = array('jpg','jpeg','gif','png'); //定义允许上传的类型
|
||||
//判断文件类型是否被允许上传
|
||||
if(!in_array($type, $allow_type)){
|
||||
//如果不被允许,则直接停止程序运行
|
||||
}
|
||||
//判断是否是通过HTTP POST上传的
|
||||
$upload_path = ROOT_PATH.'/Public/Upload/'; //上传文件的存放路径
|
||||
|
||||
//开始移动文件到相应的文件夹
|
||||
$mu=mt_rand(1,10000000);
|
||||
if(move_uploaded_file($file['tmp_name'],$upload_path.$mu.".".$type)){
|
||||
$fileName =$mu.".".$type;
|
||||
}else{
|
||||
//echo "Failed!";
|
||||
}
|
||||
$data["img"] = "'".$fileName."'";
|
||||
}
|
||||
db_mdf("eacher",$data,$_SESSION["eachersid"]);
|
||||
goBakMsg("修改成功");
|
||||
}
|
||||
?>
|
||||
<?php include_once("base.php");?>
|
||||
<script>
|
||||
function check()
|
||||
{
|
||||
if (document.form1.password.value=='')
|
||||
{
|
||||
alert('密码不能为空');
|
||||
document.form1.password.focus();
|
||||
return false
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<body>
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="17" rowspan="2" valign="top" bgcolor="#FFFFFF"></td>
|
||||
<td valign="top">
|
||||
<table width="100%" height="31" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr bgcolor="#FFFFFF"><td height="31"><div class="title">修改资料</div></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width="16" rowspan="2" bgcolor="#FFFFFF"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" bgcolor="#F7F8F9">
|
||||
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr><td colspan="4" height="10"></td></tr>
|
||||
<tr>
|
||||
<td width="1%"> </td>
|
||||
<td width="96%">
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<form name="form1" method="post" action="?" enctype="multipart/form-data">
|
||||
<table width="100%" class="cont">
|
||||
<tr>
|
||||
<td width="2%"> </td>
|
||||
<td width="120" align="right">用户名或编号:</td>
|
||||
<td width="200"><input name="username" type="text" class="text" size="30" maxlength="20" value="<?php echo $rs["username"];?>" readonly></td>
|
||||
<td> </td>
|
||||
<td width="2%"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="2%"> </td>
|
||||
<td align="right">密码:</td>
|
||||
<td><input name="password" type="password" class="text" size="30" maxlength="20">
|
||||
</td>
|
||||
<td>不修改请留空</td>
|
||||
<td width="2%"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="2%"> </td>
|
||||
<td width="120" align="right">姓名:</td>
|
||||
<td width="200"><input name="tname" type="text" class="text" size="30" maxlength="20" value="<?php echo $rs["tname"];?>" required></td>
|
||||
<td> </td>
|
||||
<td width="2%"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="2%"> </td>
|
||||
<td width="120" align="right">性别:</td>
|
||||
<td width="200"><select name="sex">
|
||||
<option value="男" <?php if($rs["sex"]=="男"){echo "selected";}?>>男</option>
|
||||
<option value="女" <?php if($rs["sex"]=="女"){echo "selected";}?>>女</option>
|
||||
</select></td>
|
||||
<td></td>
|
||||
<td width="2%"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="2%"> </td>
|
||||
<td width="120" align="right">出生日期:</td>
|
||||
<td width="200"><script language="javascript" type="text/javascript" src="../../My97DatePicker/WdatePicker.js"></script>
|
||||
<input name="begintime" id="datepicker" type="text" onClick="WdatePicker()" style="width:350px;" class="text" value="<?php echo $rs["begintime"];?>" required></td>
|
||||
<td> </td>
|
||||
<td width="2%"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="2%"> </td>
|
||||
<td width="120" align="right"> 头像上传:</td>
|
||||
<td width="200"><input type="file" name="img" class="text" id="img"><?php if(!empty($rs['img'])){?><img src="<?php echo __PUBLIC__;?>/Upload/<?php echo $rs["img"];?>" height="50" width="50"/><?php }?></td>
|
||||
<td></td>
|
||||
<td width="2%"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="2%"> </td>
|
||||
<td width="120" align="right">电话:</td>
|
||||
<td width="200"><input name="tel" type="text" class="text" size="30" maxlength="20" value="<?php echo $rs["tel"];?>" required></td>
|
||||
<td> </td>
|
||||
<td width="2%"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="2%"> </td>
|
||||
<td width="120" align="right">备注:</td>
|
||||
<td width="200"><textarea name="desc1" cols="30" class="text"><?php echo $rs["desc1"];?></textarea></td>
|
||||
<td> </td>
|
||||
<td width="2%"> </td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td align="right"><input class="btn" type="submit" value="提交" /></td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width="1%"> </td>
|
||||
</tr>
|
||||
<tr><td height="20"></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
43
admin/eacher/top.php
Normal file
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
include_once("../../common/init.php");
|
||||
check_loginthe1();
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>无标题文档</title>
|
||||
<link href="../skin/index/css/style.css" rel="stylesheet" type="text/css" />
|
||||
<script language="JavaScript" src="../skin/index/js/jquery.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(function(){
|
||||
//顶部导航切换
|
||||
$(".nav li a").click(function(){
|
||||
$(".nav li a.selected").removeClass("selected")
|
||||
$(this).addClass("selected");
|
||||
})
|
||||
})
|
||||
</script>
|
||||
|
||||
|
||||
</head>
|
||||
|
||||
<body style="background:#f0f9fd">
|
||||
|
||||
<div class="topleft">
|
||||
<a><?php echo $CONFIG["webname"];?></a>
|
||||
</div>
|
||||
<div class="topright">
|
||||
<ul>
|
||||
<li></li>
|
||||
<li><a href="password.php" target='main'>修改资料</a></li>
|
||||
<li><a href="../logincheck.php?type=logout" target="_top">注销退出</a></li>
|
||||
</ul>
|
||||
|
||||
<div class="user">
|
||||
<span><?php echo $_SESSION['tsname'];?></span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
166
admin/eacher_edit.php
Normal file
@@ -0,0 +1,166 @@
|
||||
<?php
|
||||
include_once("../common/init.php");
|
||||
check_login();
|
||||
$db_name="eacher";
|
||||
$rs = db_get_row("select * from $db_name where id=".$_REQUEST["id"]);
|
||||
if ($_POST){
|
||||
if ($_REQUEST["id"]) {
|
||||
} else {
|
||||
$row = db_get_row("select * from $db_name where username='". $_POST["username"] ."'");
|
||||
if ($row["id"]) {
|
||||
goBakMsg("已存在相同名称,请重新填写");
|
||||
die;
|
||||
}
|
||||
}
|
||||
|
||||
$data = array();
|
||||
$data["username"] = "'".$_POST["username"]."'";
|
||||
$data["tname"] = "'".$_POST["tname"]."'";
|
||||
$data["begintime"] = "'".$_POST["begintime"]."'";
|
||||
$data["desc1"] = "'".$_POST["desc1"]."'";
|
||||
$data["sex"] = "'".$_POST["sex"]."'";
|
||||
$data["tel"] = "'".$_POST["tel"]."'";
|
||||
if($_POST["password"]){
|
||||
$data["password"] = "'".md5($_POST["password"])."'";
|
||||
}
|
||||
|
||||
if(!empty($_FILES['img']['name'])){
|
||||
$file = $_FILES['img'];//得到传输的数据
|
||||
//得到文件名称
|
||||
$name = $file['name'];
|
||||
$type = strtolower(substr($name,strrpos($name,'.')+1)); //得到文件类型,并且都转化成小写
|
||||
$allow_type = array('jpg','jpeg','gif','png'); //定义允许上传的类型
|
||||
//判断文件类型是否被允许上传
|
||||
if(!in_array($type, $allow_type)){
|
||||
//如果不被允许,则直接停止程序运行
|
||||
}
|
||||
//判断是否是通过HTTP POST上传的
|
||||
$upload_path = ROOT_PATH.'/Public/Upload/'; //上传文件的存放路径
|
||||
|
||||
//开始移动文件到相应的文件夹
|
||||
$mu=mt_rand(1,10000000);
|
||||
if(move_uploaded_file($file['tmp_name'],$upload_path.$mu.".".$type)){
|
||||
$fileName =$mu.".".$type;
|
||||
}else{
|
||||
//echo "Failed!";
|
||||
}
|
||||
$data["img"] = "'".$fileName."'";
|
||||
}
|
||||
|
||||
if ($_REQUEST["id"]) {
|
||||
db_mdf($db_name,$data,$_REQUEST["id"]);
|
||||
} else {
|
||||
db_add($db_name,$data);
|
||||
}
|
||||
urlMsg("操作成功", $db_name."_list.php");
|
||||
}
|
||||
?>
|
||||
<?php include_once("base.php");?>
|
||||
<body>
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="17" rowspan="2" valign="top" bgcolor="#FFFFFF"></td>
|
||||
<td valign="top">
|
||||
<table width="100%" height="31" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr bgcolor="#FFFFFF"><td height="31"><div class="title">添加/修改人员</div></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width="16" rowspan="2" bgcolor="#FFFFFF"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" bgcolor="#F7F8F9">
|
||||
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr><td colspan="4" height="10"></td></tr>
|
||||
<tr>
|
||||
<td width="1%"> </td>
|
||||
<td width="96%">
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<form name="form1" method="post" action="?" enctype="multipart/form-data">
|
||||
<input type="hidden" name="id" value="<?php echo $rs["id"];?>" />
|
||||
<table width="100%" class="cont">
|
||||
<tr>
|
||||
<td width="2%"> </td>
|
||||
<td width="120" align="right">用户名或编号:</td>
|
||||
<td width="200"><input name="username" type="text" class="text" size="30" maxlength="20" value="<?php echo $rs["username"];?>" required></td>
|
||||
<td>只能是数字或字母</td>
|
||||
<td width="2%"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="2%"> </td>
|
||||
<td align="right">密码:</td>
|
||||
<td><input name="password" type="password" class="text" size="30" maxlength="20">
|
||||
</td>
|
||||
<td><?php if($_REQUEST["id"]){ echo "不修改请留空";} ?></td>
|
||||
<td width="2%"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="2%"> </td>
|
||||
<td width="120" align="right">姓名:</td>
|
||||
<td width="200"><input name="tname" type="text" class="text" size="30" maxlength="20" value="<?php echo $rs["tname"];?>" required></td>
|
||||
<td> </td>
|
||||
<td width="2%"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="2%"> </td>
|
||||
<td width="120" align="right">性别:</td>
|
||||
<td width="200"><select name="sex">
|
||||
<option value="男" <?php if($rs["sex"]=="男"){echo "selected";}?>>男</option>
|
||||
<option value="女" <?php if($rs["sex"]=="女"){echo "selected";}?>>女</option>
|
||||
</select></td>
|
||||
<td></td>
|
||||
<td width="2%"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="2%"> </td>
|
||||
<td width="120" align="right">出生日期:</td>
|
||||
<td width="200"><script language="javascript" type="text/javascript" src="../My97DatePicker/WdatePicker.js"></script>
|
||||
<input name="begintime" id="datepicker" type="text" onClick="WdatePicker()" style="width:350px;" class="text" value="<?php echo $rs["begintime"];?>" required></td>
|
||||
<td> </td>
|
||||
<td width="2%"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="2%"> </td>
|
||||
<td width="120" align="right"> 头像上传:</td>
|
||||
<td width="200"><input type="file" name="img" class="text" id="img"><?php if(!empty($rs['img'])){?><img src="<?php echo __PUBLIC__;?>/Upload/<?php echo $rs["img"];?>" height="50" width="50"/><?php }?></td>
|
||||
<td></td>
|
||||
<td width="2%"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="2%"> </td>
|
||||
<td width="120" align="right">电话:</td>
|
||||
<td width="200"><input name="tel" type="text" class="text" size="30" maxlength="20" value="<?php echo $rs["tel"];?>" required></td>
|
||||
<td> </td>
|
||||
<td width="2%"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="2%"> </td>
|
||||
<td width="120" align="right">备注:</td>
|
||||
<td width="200"><textarea name="desc1" cols="30" class="text"><?php echo $rs["desc1"];?></textarea></td>
|
||||
<td> </td>
|
||||
<td width="2%"> </td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td align="right"><input class="btn" type="submit" value="提交" /></td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width="1%"> </td>
|
||||
</tr>
|
||||
<tr><td height="20"></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
78
admin/eacher_list.php
Normal file
@@ -0,0 +1,78 @@
|
||||
<?php
|
||||
include_once("../common/init.php");
|
||||
check_login();
|
||||
$db_name="eacher";
|
||||
$page = $_REQUEST["page"]?$_REQUEST["page"]:1;
|
||||
$list = db_get_page("select * from $db_name order by id desc", $page,12);
|
||||
if ($page*1>$list["page"]*1){
|
||||
$page = $list["page"];
|
||||
}
|
||||
$Page = new PageWeb($list["total"],$list["page_size"], "", $page);
|
||||
$page_show = $Page->show();
|
||||
|
||||
?>
|
||||
<?php include_once("base.php");?>
|
||||
<body>
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="17" rowspan="2" valign="top" bgcolor="#FFFFFF"></td>
|
||||
<td valign="top">
|
||||
<table width="100%" height="31" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr bgcolor="#FFFFFF"><td height="31"><div class="title">维修员</div></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width="16" rowspan="2" bgcolor="#FFFFFF"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" bgcolor="#F7F8F9">
|
||||
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr><td colspan="4" height="10"></td></tr>
|
||||
<tr>
|
||||
<td width="1%"> </td>
|
||||
<td width="96%">
|
||||
<table width="100%">
|
||||
<td colspan="2">
|
||||
<table width="100%" class="cont tr_color">
|
||||
<tr>
|
||||
<th width="82">编号</th>
|
||||
<th width="100">用户名</th>
|
||||
<th width="100">姓名</th>
|
||||
<th width="120">电话</th>
|
||||
<th width="130">出生日期</th>
|
||||
<th>备注</th>
|
||||
<th width="60">性别</th>
|
||||
<th width="120">操作</th>
|
||||
</tr>
|
||||
<?php
|
||||
foreach($list["data"] as $row) {
|
||||
?>
|
||||
<tr align="center" class="d">
|
||||
<td align="center"><?php echo $row['id'];?></td>
|
||||
<td><?php echo $row['username'];?></td>
|
||||
<td><?php echo $row['tname'];?></td>
|
||||
<td><?php echo $row['tel'];?></td>
|
||||
<td><?php echo $row['begintime'];?></td>
|
||||
<td><?php echo $row['desc1'];?></td>
|
||||
<td align="center"><?php echo $row['sex'];?></td>
|
||||
<td align="center"><a href="<?php echo $db_name;?>_edit.php?id=<?php echo $row['id'];?>">修改</a> <a href="del.php?id=<?php echo $row['id'];?>&del=<?php echo $db_name;?>" onclick='return confirm("真的要删除?不可恢复!");'>删除</a></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
|
||||
<tr>
|
||||
<td align="center"><?php echo $page_show;?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width="1%"> </td>
|
||||
</tr>
|
||||
<tr><td height="20"></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
19
admin/index.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
include_once("../common/init.php");
|
||||
check_login();?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title><?php echo $CONFIG["webname"];?></title>
|
||||
</head>
|
||||
<frameset rows="88,*" cols="*" frameborder="no" border="0" framespacing="0">
|
||||
<frame src="top.php" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" title="topFrame" />
|
||||
<frameset cols="187,*" frameborder="no" border="0" framespacing="0">
|
||||
<frame src="left.php" name="leftFrame" scrolling="No" noresize="noresize" id="leftFrame" title="leftFrame" />
|
||||
<frame src="main.php" name="main" id="main" title="main" />
|
||||
</frameset>
|
||||
</frameset>
|
||||
<noframes><body>
|
||||
</body></noframes>
|
||||
</html>
|
||||
117
admin/left.php
Normal file
@@ -0,0 +1,117 @@
|
||||
<?php
|
||||
include_once("../common/init.php");
|
||||
check_login();
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>无标题文档</title>
|
||||
<link href="skin/index/css/style.css" rel="stylesheet" type="text/css" />
|
||||
<script language="JavaScript" src="skin/index/js/jquery.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(function(){
|
||||
//导航切换
|
||||
$(".menuson li").click(function(){
|
||||
$(".menuson li.active").removeClass("active")
|
||||
$(this).addClass("active");
|
||||
});
|
||||
|
||||
$('.title').click(function(){
|
||||
var $ul = $(this).next('ul');
|
||||
$('dd').find('ul').slideUp();
|
||||
if($ul.is(':visible')){
|
||||
$(this).next('ul').slideUp();
|
||||
}else{
|
||||
$(this).next('ul').slideDown();
|
||||
}
|
||||
});
|
||||
})
|
||||
</script>
|
||||
|
||||
|
||||
</head>
|
||||
|
||||
<body style="background:#f0f9fd;">
|
||||
<div class="lefttop"><span></span>后台管理</div>
|
||||
|
||||
<dl class="leftmenu">
|
||||
|
||||
<dd>
|
||||
<div class="title">
|
||||
<span></span>管理信息
|
||||
</div>
|
||||
<ul class="menuson">
|
||||
<li><cite></cite><a href='password.php' target='main'>修改密码</a><i></i></li>
|
||||
<?php if($_SESSION['type2']=="超级管理员"){?>
|
||||
<li><cite></cite><a href='admin_list.php' target='main'>账号管理</a><i></i></li>
|
||||
<li><cite></cite><a href='admin_edit.php' target='main'>添加账号</a><i></i></li>
|
||||
<?php }?>
|
||||
</ul>
|
||||
</dd>
|
||||
|
||||
<dd><div class="title">
|
||||
<span></span>押金管理
|
||||
</div>
|
||||
<ul class="menuson">
|
||||
<li><cite></cite><a href='yajin_list.php' target='main'>押金管理</a><i></i></li>
|
||||
</ul>
|
||||
</dd>
|
||||
|
||||
<dd><div class="title">
|
||||
<span></span>车辆管理
|
||||
</div>
|
||||
<ul class="menuson">
|
||||
<li><cite></cite><a href='cars_edit.php' target='main'>添加车辆</a><i></i></li>
|
||||
<li><cite></cite><a href='cars_list.php' target='main'>车辆管理</a></i></li>
|
||||
<li><cite></cite><a href='map.php' target='main'>车辆地图</a></i></li>
|
||||
</ul>
|
||||
</dd>
|
||||
|
||||
<dd><div class="title">
|
||||
<span></span>车辆订单
|
||||
</div>
|
||||
<ul class="menuson">
|
||||
<li><cite></cite><a href='cars_list1.php' target='main'>查询车辆</a><i></i></li>
|
||||
<li><cite></cite><a href='orders.php' target='main'>订单管理</a></i></li>
|
||||
</ul>
|
||||
</dd>
|
||||
|
||||
<dd><div class="title">
|
||||
<span></span>报修管理
|
||||
</div>
|
||||
<ul class="menuson">
|
||||
<li><cite></cite><a href='baoxiu_list.php' target='main'>报修管理</a><i></i></li>
|
||||
</ul>
|
||||
</dd>
|
||||
|
||||
<dd><div class="title">
|
||||
<span></span>车辆品牌
|
||||
</div>
|
||||
<ul class="menuson">
|
||||
<li><cite></cite><a href='category_edit.php' target='main'>添加品牌</a><i></i></li>
|
||||
<li><cite></cite><a href='category_list.php' target='main'>品牌管理</a></i></li>
|
||||
</ul>
|
||||
</dd>
|
||||
|
||||
<dd><div class="title">
|
||||
<span></span>维修员管理
|
||||
</div>
|
||||
<ul class="menuson">
|
||||
<li><cite></cite><a href='eacher_edit.php' target='main'>添加维修员</a><i></i></li>
|
||||
<li><cite></cite><a href='eacher_list.php' target='main'>维修员管理</a></i></li>
|
||||
</ul>
|
||||
</dd>
|
||||
|
||||
|
||||
<dd><div class="title"><span></span>学生管理</div>
|
||||
<ul class="menuson">
|
||||
<li><cite></cite><a href='user_edit.php' target='main'>添加学生</a><i></i></li>
|
||||
<li><cite></cite><a href='user_list.php' target='main'>学生管理</a><i></i></li>
|
||||
</ul>
|
||||
</dd>
|
||||
|
||||
</dl>
|
||||
</body>
|
||||
</html>
|
||||
184
admin/login.php
Normal file
@@ -0,0 +1,184 @@
|
||||
<?php
|
||||
include_once("../common/init.php");
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head>
|
||||
<meta name="viewport" id="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>欢迎登录<?php echo $CONFIG["webname"];?></title>
|
||||
<link href="skin/login/css/style.css" rel="stylesheet" type="text/css">
|
||||
<script type="text/javascript" src="skin/login/js/jquery-1.9.0.min.js"></script>
|
||||
<script type="text/javascript" src="skin/login/images/login.js"></script>
|
||||
<script language="javascript">
|
||||
function checklogin()
|
||||
{
|
||||
if(document.login.account.value=='')
|
||||
{alert('请输入帐户');
|
||||
document.login.account.focus();
|
||||
return false
|
||||
}
|
||||
if (document.login.password.value=='')
|
||||
{alert('请输入密码');
|
||||
document.login.password.focus();
|
||||
return false
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h1><?php echo $CONFIG["webname"];?></h1>
|
||||
<div class="login" style="margin-top:50px;">
|
||||
|
||||
<div class="header">
|
||||
<div class="switch" id="switch"><a class="switch_btn_focus" id="switch_qlogin" href="javascript:void(0);" tabindex="7">快速登录</a>
|
||||
<a class="switch_btn" id="switch_login" href="javascript:void(0);" tabindex="8">学生注册</a><div class="switch_bottom" id="switch_bottom" style="position: absolute; width: 64px; left: 0px;"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="web_qr_login" id="web_qr_login" style="display: block; height: 285px;">
|
||||
<div class="web_login" id="web_login">
|
||||
<div class="login-box">
|
||||
<div class="login_form">
|
||||
<form action="logincheck.php" name="login" method="post" class="loginForm" onSubmit="return checklogin();">
|
||||
<div class="uinArea" id="uinArea">
|
||||
<label class="input-tips" for="u">帐号:</label>
|
||||
<div class="inputOuter" id="uArea">
|
||||
|
||||
<input type="text" name="account" class="inputstyle"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="pwdArea" id="pwdArea">
|
||||
<label class="input-tips" for="p">密码:</label>
|
||||
<div class="inputOuter" id="pArea">
|
||||
|
||||
<input type="password" name="password" class="inputstyle"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="pwdArea" id="pwdArea">
|
||||
<label class="input-tips" for="p">人员:</label>
|
||||
<div class="inputOuter" id="pArea">
|
||||
|
||||
<select name="type" class="inputstyle">
|
||||
<option value="学生">学生</option>
|
||||
<option value="维修人员">维修人员</option>
|
||||
<option value="管理员">管理员</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div style="padding-left:50px;margin-top:20px;"><input type="submit" value="登 录" style="width:150px;" class="button_blue"/></div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
function check(){
|
||||
if(document.form1.studentid.value==""){
|
||||
alert("请输入学号");
|
||||
document.form1.studentid.focus();
|
||||
return false;}
|
||||
if(document.form1.password.value==""){
|
||||
alert("请输入密码");
|
||||
document.form1.password.focus();
|
||||
return false;
|
||||
}
|
||||
if(document.form1.password1.value==""){
|
||||
alert("请输入确认密码");
|
||||
document.form1.password1.focus();
|
||||
return false;
|
||||
}
|
||||
if(document.form1.password.value!=document.form1.password1.value){
|
||||
alert("两次输入密码不一致");
|
||||
document.form1.password1.focus();
|
||||
return false;
|
||||
}
|
||||
var mobile=document.form1.tel.value;
|
||||
if(mobile.length==0)
|
||||
{
|
||||
alert('请输入手机号码!');
|
||||
document.form1.tel.focus();
|
||||
return false;
|
||||
}
|
||||
if(mobile.length!=11)
|
||||
{
|
||||
alert('请输入有效的手机号码!');
|
||||
document.form1.tel.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
var myreg = /^(((13[0-9]{1})|(14[0-9]{1})|(15[0-9]{1})|(17[0-9]{1})|(18[0-9]{1}))+\d{8})$/;
|
||||
if(!myreg.test(mobile))
|
||||
{
|
||||
alert('请输入有效的手机号码!');
|
||||
document.form1.tel.focus();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<!--注册-->
|
||||
<div class="qlogin" id="qlogin" style="display: none; ">
|
||||
|
||||
<div class="web_login"><form name="form1" id="form1" accept-charset="utf-8" action="regist.php" method="post" onSubmit="return checklogin1();">
|
||||
<ul class="reg_form" id="reg-ul">
|
||||
<div style="height:20px;"></div>
|
||||
<li>
|
||||
|
||||
<label for="user" class="input-tips2">学号:</label>
|
||||
<div class="inputOuter2">
|
||||
<input type="text" name="studentid" maxlength="16" class="inputstyle2"/>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
|
||||
<label for="user" class="input-tips2">姓名:</label>
|
||||
<div class="inputOuter2">
|
||||
<input type="text" name="stuname" maxlength="16" class="inputstyle2"/>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<label for="passwd" class="input-tips2">密码:</label>
|
||||
<div class="inputOuter2">
|
||||
<input type="password" name="password" maxlength="16" class="inputstyle2"/>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<label for="passwd2" class="input-tips2">确认密码:</label>
|
||||
<div class="inputOuter2">
|
||||
<input type="password" id="password2" name="" maxlength="16" class="inputstyle2" />
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<label for="qq" class="input-tips2">手机:</label>
|
||||
<div class="inputOuter2">
|
||||
|
||||
<input type="text" name="tel" maxlength="20" class="inputstyle2"/>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<div class="inputArea">
|
||||
<input type="submit" style="margin-top:10px;margin-left:85px;" class="button_blue" value="提交注册"/>
|
||||
</div>
|
||||
|
||||
</li><div class="cl"></div>
|
||||
</ul></form>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<!--注册end-->
|
||||
</div>
|
||||
|
||||
<div class="jianyi"></div>
|
||||
</body>
|
||||
</html>
|
||||
53
admin/logincheck.php
Normal file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
include_once("../common/init.php");
|
||||
|
||||
if($_REQUEST["type"]=="logout"){
|
||||
session_destroy();
|
||||
session_start();
|
||||
urlMsg("退出成功", __BASE__."/admin/login.php");
|
||||
die;
|
||||
}
|
||||
if ($_POST) {
|
||||
if($_POST["type"]=="学生"){
|
||||
$rsRow = db_get_row("select * from user where studentid='". $_POST["account"] ."'");
|
||||
if ($rsRow['password'] == md5($_POST["password"])){
|
||||
$_SESSION["studentid"] = $rsRow['id'];
|
||||
$_SESSION['stuname'] = $rsRow['studentid'];
|
||||
$_SESSION['categoryid'] = $rsRow['categoryid'];
|
||||
$_SESSION['type2'] = "学生";
|
||||
|
||||
urlMsg("登录成功", "student/index.php");
|
||||
|
||||
die;
|
||||
} else {
|
||||
goBakMsg("账号不存在或密码错误");
|
||||
}
|
||||
}
|
||||
elseif($_POST["type"]=="维修人员"){
|
||||
$rsRow = db_get_row("select * from eacher where username='". $_POST["account"] ."'");
|
||||
if ($rsRow['password'] == md5($_POST["password"])){
|
||||
$_SESSION["eachersid"] = $rsRow['id'];
|
||||
$_SESSION['tsname'] = $rsRow['tname'];
|
||||
$_SESSION['type2'] = "维修人员";
|
||||
|
||||
urlMsg("登录成功", "eacher/index.php");
|
||||
|
||||
die;
|
||||
} else {
|
||||
goBakMsg("账号不存在或密码错误");
|
||||
}
|
||||
}
|
||||
else{
|
||||
$rsRow = db_get_row("select * from admin where username='". $_POST["account"] ."'");
|
||||
if ($rsRow['password'] == md5($_POST["password"])){
|
||||
$_SESSION["adminid"] = $rsRow['id'];
|
||||
$_SESSION['adminname'] = $rsRow['username'];
|
||||
$_SESSION['type2'] = $rsRow['type'];
|
||||
|
||||
urlMsg("登录成功", "index.php");
|
||||
} else {
|
||||
goBakMsg("账号不存在或密码错误");
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
32
admin/main.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
include_once("../common/init.php");
|
||||
check_login();
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title><?php echo $CONFIG["webname"];?></title>
|
||||
<link href="skin/index/css/style.css" rel="stylesheet" type="text/css" />
|
||||
<script type="text/javascript" src="skin/index/js/jquery.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="place">
|
||||
<span>位置:</span>
|
||||
<ul class="placeul">
|
||||
<li><a href="#">后台首页</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="mainindex">
|
||||
|
||||
|
||||
|
||||
<div class="welinfo">
|
||||
网站名称:<?php echo $CONFIG["webname"];?>
|
||||
</div>
|
||||
|
||||
<div class="xline"></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
52
admin/map.php
Normal file
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
include_once("../common/init.php");
|
||||
check_login();
|
||||
$tb_name = "cars";
|
||||
$page = $_REQUEST["page"]?$_REQUEST["page"]:1;
|
||||
$list = db_get_all("select * from $tb_name order by id desc");
|
||||
|
||||
?>
|
||||
<?php include_once("base.php");?>
|
||||
<style>
|
||||
.map_box{height: 600px;}
|
||||
</style>
|
||||
<body>
|
||||
<div id="mapBox" class="map_box"></div>
|
||||
<script type="text/javascript" src="http://webapi.amap.com/maps?v=1.4.6&key=ea1a7b8b8265fda0230e7235809a6037"></script>
|
||||
<script>
|
||||
var list = <?php echo json_encode($list)?>;
|
||||
console.log(list)
|
||||
var map = new AMap.Map('mapBox', {
|
||||
resizeEnable: true,
|
||||
mapStyle: 'amap://styles/c94e78bbbdccdee5a21c45f18da575b1'//样式URL
|
||||
});
|
||||
map.plugin('AMap.Geolocation', function() {
|
||||
geolocation = new AMap.Geolocation({
|
||||
enableHighAccuracy: true,//是否使用高精度定位,默认:true
|
||||
timeout: 10000, //超过10秒后停止定位,默认:无穷大
|
||||
buttonOffset: new AMap.Pixel(10, 20),//定位按钮与设置的停靠位置的偏移量,默认:Pixel(10, 20)
|
||||
zoomToAccuracy: true, //定位成功后调整地图视野范围使定位位置及精度范围视野内可见,默认:false
|
||||
buttonPosition:'RB'
|
||||
});
|
||||
map.addControl(geolocation);
|
||||
geolocation.getCurrentPosition();
|
||||
});
|
||||
for (var i=0;i<list.length;i++){
|
||||
if(list[i].lat > 0 && list[i].lng >0){
|
||||
var marker = new AMap.Marker({
|
||||
icon: "http://webapi.amap.com/theme/v1.3/markers/n/mark_r.png",
|
||||
position: [list[i].lat,list[i].lng], //基点位置
|
||||
draggable: true, //是否可拖动
|
||||
});
|
||||
marker.setMap(map);
|
||||
marker.setLabel({//label默认蓝框白底左上角显示,样式className为:amap-marker-label
|
||||
offset: new AMap.Pixel(-40, -25),//修改label相对于maker的位置
|
||||
content: "车牌号:"+list[i].title
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
111
admin/orders.php
Normal file
@@ -0,0 +1,111 @@
|
||||
<?php
|
||||
include_once("../common/init.php");
|
||||
check_login();
|
||||
$categoryA = db_get_all("select * from category order by id desc");
|
||||
$tb_name = "orders";
|
||||
$where_sql = " 1=1 ";
|
||||
if ($_REQUEST["title"]) {
|
||||
$where_sql .= " and carstitle like '%". $_REQUEST["title"] ."%' ";
|
||||
}
|
||||
|
||||
if ($_REQUEST["studentid"]) {
|
||||
$where_sql .= " and studentid like '%". $_REQUEST["studentid"] ."%' ";
|
||||
}
|
||||
|
||||
if ($_REQUEST["status"]) {
|
||||
$where_sql .= " and status ='". $_REQUEST["status"] ."'";
|
||||
}
|
||||
$page = $_REQUEST["page"]?$_REQUEST["page"]:1;
|
||||
$list = db_get_page("select * from $tb_name where $where_sql order by id desc", $page,11);
|
||||
if ($page*1>$list["page"]*1){
|
||||
$page = $list["page"];
|
||||
}
|
||||
$Page = new PageWeb($list["total"],$list["page_size"], "title=".$_REQUEST["title"]."&studentid=".$_REQUEST["studentid"]."&status=".$_REQUEST["status"], $page);
|
||||
$page_show = $Page->show();
|
||||
?>
|
||||
<?php include_once("base.php");?>
|
||||
<body>
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="17" rowspan="2" valign="top" bgcolor="#FFFFFF"></td>
|
||||
<td valign="top">
|
||||
<table width="100%" height="31" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr bgcolor="#FFFFFF"><td height="31"><div class="title">订单管理</div></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width="16" rowspan="2" bgcolor="#FFFFFF"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" bgcolor="#F7F8F9">
|
||||
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr><td colspan="4" height="10"></td></tr>
|
||||
<tr><td width="1%"> </td><td width="96%">
|
||||
<table width="100%" class="cont">
|
||||
<tr>
|
||||
<td width="1%"></td>
|
||||
<td>
|
||||
<form id="pagerForm" action="?" method="post">
|
||||
<input type="hidden" name="pageNum" value="<?php echo $page; ?>"/>
|
||||
<select name="status">
|
||||
<option value="">选择状态</option>
|
||||
<option value="借出" <?php if($_REQUEST["status"]=="借出"){echo "selected";}?>>借出</option>
|
||||
<option value="已归还" <?php if($_REQUEST["status"]=="已归还"){echo "selected";}?>>已归还</option>
|
||||
</select>
|
||||
<input type="text" name="studentid" class="text" placeholder="学号" value="<?php echo $_REQUEST["studentid"]; ?>"/> <input type="text" name="title" class="text" placeholder="车牌号" value="<?php echo $_REQUEST["title"]; ?>"/>
|
||||
<button type="submit" id="chaxun" class="btn">查询</button>
|
||||
</form></td></tr></table>
|
||||
</td><td width="1%"> </td></tr>
|
||||
<tr>
|
||||
<td width="1%"> </td>
|
||||
<td width="96%">
|
||||
<table width="100%">
|
||||
<td colspan="2">
|
||||
<table width="100%" class="cont tr_color">
|
||||
<tr>
|
||||
</tr>
|
||||
<tr>
|
||||
<th width="82">编号</th>
|
||||
<th>车牌号</th>
|
||||
<th>学生</th>
|
||||
<th>提车时间</th>
|
||||
<th>还车时间</th>
|
||||
<th>金额</th>
|
||||
<th width="120">操作</th>
|
||||
</tr>
|
||||
<?php
|
||||
$sum=0;
|
||||
foreach($list["data"] as $row) {
|
||||
?>
|
||||
<tr align="center" class="d">
|
||||
<td align="center"><?php echo $row['id'];?></td>
|
||||
<td><?php echo $row['carstitle'];?></td>
|
||||
<td><?php echo $row['studentid'];?></td>
|
||||
<td><?php echo $row['begintime'];?></td>
|
||||
<td><?php echo $row['endtime'];?></td>
|
||||
<td><?php echo $row['price'];?></td>
|
||||
<td align="center"><?php if($row['status']=="借出"){?><a href="cars_edit1.php?id=<?php echo $row['id'];?>&carsid=<?php echo $row['carsid'];?>">使用中</a><?php }else{echo "已归还";}?> <a href="del.php?id=<?php echo $row['id'];?>&del=orders" onClick="return confirm('真的要删除?不可恢复!');">删除</a></td>
|
||||
</tr>
|
||||
<?php
|
||||
$sum+=$row['price'];
|
||||
} ?>
|
||||
<th colspan="7">本页累计金额: <?php echo $sum;?></th>
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
|
||||
<tr>
|
||||
<td align="center"><?php echo $page_show;?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width="1%"> </td>
|
||||
</tr>
|
||||
<tr><td height="20"></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
76
admin/password.php
Normal file
@@ -0,0 +1,76 @@
|
||||
<?php
|
||||
include_once("../common/init.php");
|
||||
check_login();
|
||||
$rs = db_get_row("select * from admin where id=".$_SESSION["adminid"]);
|
||||
if ($_POST){
|
||||
$data = array();
|
||||
$data["password"] = "'".md5($_POST["password"])."'";
|
||||
db_mdf("admin",$data,$_SESSION["adminid"]);
|
||||
goBakMsg("密码修改成功");
|
||||
}
|
||||
?>
|
||||
<?php include_once("base.php");?>
|
||||
<script>
|
||||
function check()
|
||||
{
|
||||
if (document.form1.password.value=='')
|
||||
{
|
||||
alert('密码不能为空');
|
||||
document.form1.password.focus();
|
||||
return false
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<body>
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="17" rowspan="2" valign="top" bgcolor="#FFFFFF"></td>
|
||||
<td valign="top">
|
||||
<table width="100%" height="31" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr bgcolor="#FFFFFF"><td height="31"><div class="title">修改密码</div></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width="16" rowspan="2" bgcolor="#FFFFFF"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" bgcolor="#F7F8F9">
|
||||
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr><td colspan="4" height="10"></td></tr>
|
||||
<tr>
|
||||
<td width="1%"> </td>
|
||||
<td width="96%">
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<form name="form1" method="post" action="?" onSubmit="return check()">
|
||||
<table width="100%" class="cont tr_color">
|
||||
<tr class="d">
|
||||
<td width="2%"> </td>
|
||||
<td width="120" align="right">管理员帐号: </td>
|
||||
<td><?php echo $rs["username"];?></td>
|
||||
</tr>
|
||||
<tr class="d">
|
||||
<td width="2%"> </td>
|
||||
<td align="right">新 密 码: </td>
|
||||
<td><input class="text" type="password" name="password" value=""/></td>
|
||||
</tr>
|
||||
<tr class="d">
|
||||
<td> </td>
|
||||
<td align="right"><input class="btn" type="submit" value="提交" /></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width="1%"> </td>
|
||||
</tr>
|
||||
<tr><td height="20"></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
19
admin/regist.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
include_once("../common/init.php");
|
||||
|
||||
if ($_POST){
|
||||
$row = db_get_row("select * from user where studentid='". $_POST["studentid"] ."'");
|
||||
if ($row["id"]) {
|
||||
goBakMsg("学号已存在");
|
||||
die;
|
||||
}
|
||||
$data = array();
|
||||
$data["studentid"] = "'". $_POST["studentid"] ."'";
|
||||
$data["tel"] = "'". $_POST["tel"] ."'";
|
||||
$data["password"] = "'". md5($_POST["password"]) ."'";
|
||||
$data['stuname'] = "'".$_POST['stuname']."'";
|
||||
$res = db_add("user", $data);
|
||||
urlMsg("注册成功", "login.php");
|
||||
die;
|
||||
}
|
||||
?>
|
||||
292
admin/skin/index/css/style.css
Normal file
@@ -0,0 +1,292 @@
|
||||
@charset "utf-8";
|
||||
*{font-size:9pt;border:0;margin:0;padding:0;}
|
||||
body{font-family:'微软雅黑'; margin:0 auto;min-width:980px;}
|
||||
ul{display:block;margin:0;padding:0;list-style:none;}
|
||||
li{display:block;margin:0;padding:0;list-style: none;}
|
||||
img{border:0;}
|
||||
dl,dt,dd,span{margin:0;padding:0;display:block;}
|
||||
a,a:focus{text-decoration:none;color:#000;outline:none;blr:expression(this.onFocus=this.blur());}
|
||||
a:hover{color:#00a4ac;text-decoration:none;}
|
||||
table{border-collapse:collapse;border-spacing: 0;}
|
||||
cite{font-style:normal;}
|
||||
h2{font-weight:normal;}
|
||||
|
||||
/*cloud*/
|
||||
|
||||
#mainBody {width:100%;height:100%;position:absolute;z-index:-1;}
|
||||
.cloud {position:absolute;top:0px;left:0px;width:100%;height:100%;background:url(../images/cloud.png) no-repeat;z-index:1;opacity:0.5;}
|
||||
#cloud2 {z-index:2;}
|
||||
|
||||
|
||||
/*login*/
|
||||
.logintop{height:47px; position:absolute; top:0; background:url(../images/loginbg1.png) repeat-x;z-index:100; width:100%;}
|
||||
.logintop span{color:#fff; line-height:47px; background:url(../images/loginsj.png) no-repeat 21px 18px; text-indent:44px; color:#afc5d2; float:left;}
|
||||
.logintop ul{float:right; padding-right:30px;}
|
||||
.logintop ul li{float:left; margin-left:20px; line-height:47px;}
|
||||
.logintop ul li a{color:#afc5d2;}
|
||||
.logintop ul li a:hover{color:#fff;}
|
||||
.loginbody{background:url(../images/loginbg3.png) no-repeat center center; width:100%; height:585px; overflow:hidden; position:absolute; top:47px;}
|
||||
.systemlogo{background:url(../images/loginlogo.png) no-repeat center;width:100%; height:71px; margin-top:75px;}
|
||||
.loginbox{width:692px; height:336px; background:url(../images/logininfo.png) no-repeat; margin-top:30px;}
|
||||
.loginbox ul{margin-top:88px; margin-left:285px;}
|
||||
.loginbox ul li{margin-bottom:25px;}
|
||||
.loginbox ul li label{color:#687f92; padding-left:25px;}
|
||||
.loginbox ul li label a{color:#687f92;}
|
||||
.loginbox ul li label a:hover{color:#3d96c9;}
|
||||
.loginbox ul li label input{margin-right:5px;}
|
||||
.loginuser{width:299px; height:48px; background:url(../images/loginuser.png) no-repeat; border:none; line-height:48px; padding-left:44px; font-size:14px; font-weight:bold;}
|
||||
.loginpwd{width:299px; height:48px; background:url(../images/loginpassword.png) no-repeat; border:none;line-height:48px; padding-left:44px; font-size:14px; color:#90a2bc;}
|
||||
.loginbtn{width:111px;height:35px; background:url(../images/buttonbg.png) repeat-x; font-size:14px; font-weight:bold; color:#fff;cursor:pointer; line-height:35px;}
|
||||
.loginbm{height:50px; line-height:50px; text-align:center; background:url(../images/loginbg2.png) repeat-x;position:absolute; bottom:0; width:100%; color:#0b3a58;}
|
||||
.loginbm a{font-weight:bold;color:#0b3a58;}
|
||||
.loginbm a:hover{color:#fff;}
|
||||
|
||||
|
||||
/*top.html*/
|
||||
.header{height:88px;}
|
||||
.topleft{height:88px;float:left; width:420px;}
|
||||
.topleft a{font-size: 25px;color: #000;font-weight:bold;margin-left:20px; line-height:80px;}
|
||||
.topleft img{margin-top:12px;margin-left:10px;}
|
||||
.topright{height:88px;float:right;}
|
||||
.nav{float:left;}
|
||||
.nav li{float:left;width:87px;height:88px; text-align:center;}
|
||||
.nav li a{display:block;width:87px;height:88px;-moz-transition: none; transition: background-color 0.3s linear; -moz-transition: background-color 0.3s linear; -webkit-transition: background-color 0.3s linear; -o-transition: background-color 0.3s linear; }
|
||||
.nav li a.selected{background:url(../images/navbg.png) no-repeat;}
|
||||
.nav li a:hover{display:block;background:#000;color:#fff;background: none repeat scroll 0% 0% rgb(43, 127, 181);}
|
||||
.nav li img{margin-top:10px;}
|
||||
.nav li a{display:block;}
|
||||
.nav a h2{font-size:14px;color:#d6e8f1;}
|
||||
.nav a:hover h2{color:#fff;}
|
||||
.topright ul{padding-top:15px; float:right; padding-right:12px;}
|
||||
.topright ul li{float:left; padding-left:9px; padding-right:9px; background:url(../images/line.gif) no-repeat right;}
|
||||
.topright ul li:last-child{background:none;}
|
||||
.topright ul li a{font-size:13px; color:#000;}
|
||||
.topright ul li a:hover{color:#fff;}
|
||||
.topright ul li span{margin-top:2px;float:left;padding-right:3px;}
|
||||
.user{height:30px;background:url(../images/ub1.png) repeat-x;clear:both;margin-top:10px;float:right; margin-right:12px;border-radius:30px; behavior:url(js/pie.htc); white-space:nowrap;position:relative;}
|
||||
.user span{display:inline-block;padding-right:10px; background:url(../images/user.png) no-repeat 15px 10px; line-height:30px; font-size:14px;color:#000;padding-left:35px;}
|
||||
.user b{display:inline-block;width:20px;height:18px; background:url(../images/msg.png);text-align:center; font-weight:normal; color:#fff;font-size:14px;margin-right:13px; margin-top:7px; line-height:18px;}
|
||||
.user i{display:inline-block;margin-right:5px;font-style:normal;line-height:30px; font-size:14px;color:#b8ceda;}
|
||||
|
||||
/*left.html*/
|
||||
.lefttop{background:url(../images/lefttop.gif) repeat-x;height:40px;color:#fff;font-size:14px;line-height:40px;}
|
||||
.lefttop span{margin-left:8px; margin-top:10px;margin-right:8px; background:url(../images/leftico.png) no-repeat; width:20px; height:21px;float:left;}
|
||||
.leftmenu{width:187px;padding-bottom: 9999px;margin-bottom: -9999px; overflow:hidden; background:url(../images/leftline.gif) repeat-y right;}
|
||||
.leftmenu dd{background:url(../images/leftmenubg.gif) repeat-x;line-height:35px;font-weight:bold;font-size:14px;border-right:solid 1px #b7d5df;}
|
||||
.leftmenu dd span{float:left;margin:10px 8px 0 12px;}
|
||||
.leftmenu dd .menuson{display:none;}
|
||||
.leftmenu dd:first-child .menuson{display:block;}
|
||||
.menuson {line-height:30px; font-weight:normal; }
|
||||
.menuson li{cursor:pointer;}
|
||||
.menuson li.active{position:relative; background:url(../images/libg.png) repeat-x; line-height:30px; color:#fff;}
|
||||
.menuson li cite{display:block; float:left; margin-left:32px; background:url(../images/list.gif) no-repeat; width:16px; height:16px; margin-top:7px;}
|
||||
.menuson li.active cite{background:url(../images/list1.gif) no-repeat;}
|
||||
.menuson li.active i{display:block; background:url(../images/sj.png) no-repeat; width:6px; height:11px; position:absolute; right:0;z-index:10000; top:9px; right:-1px;}
|
||||
.menuson li a{ display:block; *display:inline; *padding-top:5px;}
|
||||
.menuson li.active a{color:#fff;}
|
||||
.title{cursor:pointer;}
|
||||
|
||||
|
||||
/*right.html*/
|
||||
.place{height:40px; background:url(../images/righttop.gif) repeat-x;}
|
||||
.place span{line-height:40px; font-weight:bold;float:left; margin-left:12px;}
|
||||
.placeul li{float:left; line-height:40px; padding-left:7px; padding-right:12px; background:url(../images/rlist.gif) no-repeat right;}
|
||||
.placeul li:last-child{background:none;}
|
||||
.rightinfo{padding:8px;}
|
||||
.tools{clear:both; height:35px; margin-bottom:8px;}
|
||||
.toolbar{float:left;}
|
||||
.toolbar li{background:url(../images/toolbg.gif) repeat-x; line-height:33px; height:33px; border:solid 1px #d3dbde; float:left; padding-right:10px; margin-right:5px;border-radius: 3px; behavior:url(js/pie.htc); cursor:pointer;}
|
||||
.toolbar li span{float:left; margin-left:10px; margin-right:5px; margin-top:5px;}
|
||||
.toolbar1{float:right;}
|
||||
.toolbar1 li{background:url(../images/toolbg.gif) repeat-x; line-height:33px; height:33px; border:solid 1px #d3dbde; float:left; padding-right:10px; margin-left:5px;border-radius: 3px; behavior:url(js/pie.htc);}
|
||||
.toolbar1 li span{float:left; margin-left:10px; margin-right:5px; margin-top:5px;}
|
||||
.tablelist{border:solid 1px #cbcbcb; width:100%; clear:both;}
|
||||
.tablelist th{background:url(../images/th.gif) repeat-x; height:34px; line-height:34px; border-bottom:solid 1px #b6cad2; text-indent:11px; text-align:left;}
|
||||
.tablelist td{line-height:35px; text-indent:11px; border-right: dotted 1px #c7c7c7;}
|
||||
.tablelink{color:#056dae;}
|
||||
.tablelist tbody tr.odd{background:#f5f8fa;}
|
||||
.tablelist tbody tr:hover{background:#e5ebee;}
|
||||
.sort{padding-left:3px;}
|
||||
|
||||
/*page*/
|
||||
.pagin{position:relative;margin-top:10px;padding:0 12px;}
|
||||
.pagin .blue{color:#056dae;font-style:normal;}
|
||||
.pagin .paginList{position:absolute;right:12px;top:0;}
|
||||
.pagin .paginList .paginItem{float:left;}
|
||||
.pagin .paginList .paginItem a{float:left;width:31px;height:28px;border:1px solid #DDD; text-align:center;line-height:30px;border-left:none;color:#3399d5;}
|
||||
.pagin .paginList .paginItem:first-child a{border-left:1px solid #DDD;}
|
||||
.pagin .paginList .paginItem:first-child a{border-bottom-left-radius:5px;border-top-left-radius:5px;}
|
||||
.pagin .paginList .paginItem:last-child a{border-bottom-right-radius:5px;border-top-right-radius:5px;}
|
||||
.pagin .paginList .paginItem.current,.pagin .paginList .paginItem.current a{background:#f5f5f5; cursor:default;color:#737373;}
|
||||
.pagin .paginList .paginItem:hover{background:#f5f5f5;}
|
||||
.pagin .paginList .paginItem.more,.pagin .paginList .paginItem.more a:hover{ cursor:default;}
|
||||
.pagin .paginList .paginItem.more:hover{background:#FFF;}
|
||||
.pagin .paginList .paginItem.more a{color:#737373;}
|
||||
.pagepre{background:url(../images/pre.gif) no-repeat center center; width:31px; height:28px;}
|
||||
.pagenxt{background:url(../images/next.gif) no-repeat center center; width:31px; height:28px;}
|
||||
|
||||
/*index*/
|
||||
.mainindex{padding:20px; overflow:hidden;}
|
||||
.welinfo{height:32px; line-height:32px; padding-bottom:8px;}
|
||||
.welinfo span{float:left;}
|
||||
.welinfo b{padding-left:8px;}
|
||||
.welinfo a{padding-left:15px;color:#3186c8;}
|
||||
.welinfo a:hover{color:#F60;}
|
||||
.welinfo i{font-style:normal; padding-left:8px;}
|
||||
.xline{border-bottom:solid 1px #dfe9ee; height:5px;}
|
||||
.iconlist{padding-left:40px; overflow:hidden;}
|
||||
.iconlist li{text-align:center; float:left; margin-right:25px; margin-top:25px;}
|
||||
.iconlist li p{line-height:25px;}
|
||||
.ibox{clear:both; padding-left:40px; padding-top:18px; overflow:hidden; padding-bottom:18px;}
|
||||
.ibtn{background:url(../images/ibtnbg.png) repeat-x;border:solid 1px #bfcfe1; height:23px; line-height:23px; display:block; float:left; padding:0 15px; cursor:pointer;}
|
||||
.ibtn img{margin-top:5px; float:left; padding-right:7px;}
|
||||
.box{height:15px;}
|
||||
.infolist{padding-left:40px; padding-bottom:15px;}
|
||||
.infolist li{ line-height:23px; height:23px; margin-bottom:8px;}
|
||||
.infolist li span{float:left; display:block; margin-right:10px;}
|
||||
.info{padding-left:40px; background:url(../images/search.png) no-repeat 10px 15px; padding-top:15px; padding-bottom:20px;}
|
||||
.umlist{padding-left:40px;}
|
||||
.umlist li{float:left; background:url(../images/ulist.png) no-repeat 0 5px; padding-left:10px; margin-right:15px;}
|
||||
|
||||
|
||||
/*default*/
|
||||
.mainbox{padding:8px;position:relative;}
|
||||
.mainleft{padding-right:298px;}
|
||||
.leftinfo{border:#d3dbde solid 1px; height:290px;}
|
||||
.mainright{width:298px;position:absolute; top:8px; right:8px;}
|
||||
.dflist{border:#d3dbde solid 1px; width:288px; height:290px; float:right;}
|
||||
.dflist1{border:#d3dbde solid 1px; width:288px; height:238px; float:right; margin-top:8px;}
|
||||
.listtitle{background:url(../images/tbg.png) repeat-x; height:36px; line-height:36px; border-bottom:solid 1px #d3dbde; text-indent:14px; font-weight:bold; font-size:14px;}
|
||||
.more1{float:right; font-weight:normal;color:#307fb1; padding-right:17px;}
|
||||
.maintj{text-align:center;}
|
||||
.newlist{padding-left:14px; padding-top:15px;}
|
||||
.newlist li{line-height:25px; background:url(../images/list2.png) no-repeat 0px 8px; text-indent:11px;}
|
||||
.newlist i{width:80px; display:block; float:left; font-style:normal;}
|
||||
.newlist b{font-weight:normal; color:#7b7b7b; padding-left:10px;}
|
||||
.leftinfos{height:238px;margin-top:8px;}
|
||||
.infoleft{border:#d3dbde solid 1px; float:left;height:238px;}
|
||||
.inforight{border:#d3dbde solid 1px; float:right;height:238px; }
|
||||
.tooli{padding:30px 20px;}
|
||||
.tooli li{float:left;padding-left:15px; padding-right:15px;margin-bottom:20px;}
|
||||
.tooli li span{text-align:center;}
|
||||
.tooli li p{line-height:35px; text-align:center;}
|
||||
|
||||
|
||||
/*form*/
|
||||
.formbody{padding:10px 18px;}
|
||||
.formtitle{border-bottom:solid 1px #d0dee5; line-height:35px; position:relative; height:35px; margin-bottom:28px;}
|
||||
.formtitle span{font-weight:bold;font-size:14px; border-bottom:solid 3px #66c9f3;float:left; position:absolute; z-index:100; bottom:-1px; padding:0 3px; height:30px; line-height:30px;}
|
||||
.forminfo{padding-left:23px;}
|
||||
.forminfo li{margin-bottom:13px; clear:both;}
|
||||
.forminfo li label{width:86px;line-height:34px; display:block; float:left;}
|
||||
.forminfo li i{color:#7f7f7f; padding-left:20px; font-style:normal;}
|
||||
.forminfo li cite{display:block; padding-top:10px;}
|
||||
.dfinput{width:345px; height:32px; line-height:32px; border-top:solid 1px #a7b5bc; border-left:solid 1px #a7b5bc; border-right:solid 1px #ced9df; border-bottom:solid 1px #ced9df; background:url(../images/inputbg.gif) repeat-x; text-indent:10px;}
|
||||
.textinput{border-top:solid 1px #a7b5bc; border-left:solid 1px #a7b5bc; border-right:solid 1px #ced9df; border-bottom:solid 1px #ced9df; background:url(../images/inputbg.gif) repeat-x; padding:10px; width:504px; height:135px; line-height:20px; overflow:hidden;}
|
||||
.btn{width:137px;height:35px; background:url(../images/btnbg.png) no-repeat; font-size:14px;font-weight:bold;color:#fff; cursor:pointer;}
|
||||
|
||||
|
||||
/*tip*/
|
||||
.tip{width:485px; height:260px; position:absolute;top:10%; left:30%;background:#fcfdfd;box-shadow:1px 8px 10px 1px #9b9b9b;border-radius:1px;behavior:url(js/pie.htc); display:none; z-index:111111;}
|
||||
.tiptop{height:40px; line-height:40px; background:url(../images/tcbg.gif) repeat-x; cursor:pointer;}
|
||||
.tiptop span{font-size:14px; font-weight:bold; color:#fff;float:left; text-indent:20px;}
|
||||
.tiptop a{display:block; background:url(../images/close.png) no-repeat; width:22px; height:22px;float:right;margin-right:7px; margin-top:10px; cursor:pointer;}
|
||||
.tiptop a:hover{background:url(../images/close1.png) no-repeat;}
|
||||
.tipinfo{padding-top:30px;margin-left:65px; height:95px;}
|
||||
.tipinfo span{width:95px; height:95px;float:left;}
|
||||
.tipright{float:left;padding-top:15px; padding-left:10px;}
|
||||
.tipright p{font-size:14px; font-weight:bold; line-height:35px;}
|
||||
.tipright cite{color:#858686;}
|
||||
.tipbtn{margin-top:25px; margin-left:125px;}
|
||||
.sure ,.cancel{width:96px; height:35px; line-height:35px; color:#fff; background:url(../images/btnbg1.png) repeat-x; font-size:14px; font-weight:bold;border-radius: 3px; cursor:pointer;}
|
||||
.cancel{background:url(../images/btnbg2.png) repeat-x;color:#000;font-weight:normal;}
|
||||
|
||||
/*tools*/
|
||||
.toolsli{clear:both; overflow:hidden; margin-bottom:20px;}
|
||||
.toollist{margin-left:20px; overflow:hidden; float:left;}
|
||||
.toollist li{width:66px; text-align:center; float:left; margin-right:32px;}
|
||||
.toollist li a{width:65px; height:65px; background:#fafbfb; border-right:solid 1px #dbdbdb;border-bottom:solid 1px #dbdbdb; display:block;}
|
||||
.toollist li a:hover{background:#eef4f7;border-right:solid 1px #d0d5d7;border-bottom:solid 1px #d0d5d7;}
|
||||
.toollist li h2{line-height:35px;}
|
||||
.tooladd{margin-top:25px; width:20px; height:20px; float:left; display:block;}
|
||||
|
||||
/*error 404*/
|
||||
.error{background:url(../images/404.png) no-repeat; width:490px; margin-top:75px;padding-top:65px;}
|
||||
.error h2{font-size:22px; padding-left:154px;}
|
||||
.error p{padding-left:154px; line-height:35px;color:#717678;}
|
||||
.reindex{padding-left:154px;}
|
||||
.reindex a{width:115px; height:35px; font-size:14px; font-weight:bold; color:#fff; background:#3c95c8; display:block; line-height:35px; text-align:center;border-radius: 3px; behavior:url(js/pie.htc);margin-top:20px;}
|
||||
|
||||
/*computer*/
|
||||
.comtitle{padding:20px; clear:both;}
|
||||
.comtitle span{width:10px;height:10px; background:url(../images/clist.png) no-repeat; float:left; background:#fff; padding-top:3px;}
|
||||
.comtitle h2{font-size:14px; display:block; float:left;color:#2a3e93; background:#fff; padding-left:5px; padding-right:8px;}
|
||||
.rline{border-bottom:solid 1px #e5ecf0; height:10px; margin-left:50px;}
|
||||
.disklist{padding-left:20px; padding-right:20px;}
|
||||
.disklist li{width:275px;_width:270px;float:left; margin-right:10px;px;height:70px; cursor:pointer; margin-bottom:5px;border:solid 1px #fff;}
|
||||
.disklist li a{color:#000;}
|
||||
.disklist li:hover{background:#fcfcfc; border:solid 1px #e5ecf0;}
|
||||
.dleft{background:url(../images/c02.png) no-repeat; height:50px; margin-left:12px; float:left; width:50px; margin-top:15px;}
|
||||
.dleft1{background:url(../images/c01.png) no-repeat; height:50px; margin-left:12px; float:left; width:50px; margin-top:15px;}
|
||||
.dleft2{background:url(../images/c03.png) no-repeat; height:50px; margin-left:12px; float:left; width:50px; margin-top:15px;}
|
||||
.dright{float:left; margin-left:10px; margin-top:5px;}
|
||||
.dright h3{font-weight:normal; padding-top:15px;}
|
||||
.dright p{color:#949494;}
|
||||
.dinfo{width:189px;height:15px; background:url(../images/diskbg.png) no-repeat; margin-top:5px; margin-bottom:5px;}
|
||||
.dinfo span{background:url(../images/cbg.png) repeat-x; height:15px;}
|
||||
.filetable{width:100%;}
|
||||
.filetable thead tr{background:#f5f9fb; line-height:35px;}
|
||||
.filetable thead tr th{text-align:left; text-indent:15px;font-weight:normal;color:#597190;}
|
||||
.filetable tbody tr td{text-indent:15px; line-height:23px;}
|
||||
.filetable tbody tr td img {margin-right:5px;}
|
||||
.tdlast{text-align:right;}
|
||||
.filetable tbody tr:hover{background:#f5f8fa; cursor:pointer;}
|
||||
|
||||
/*imglist*/
|
||||
.imglist{clear:both; overflow:hidden; margin-bottom:20px; margin-left:5px;}
|
||||
.imglist li{width:188px; border:solid 1px #fff;height:199px;float:left; margin-right:8px; margin-bottom:10px; cursor:pointer;}
|
||||
.imglist li:hover{border:solid 1px #d7e4ea;}
|
||||
.imglist li span{width:168px; height:126px; margin:8px;}
|
||||
.imglist li h2{text-align:center; line-height:25px;}
|
||||
.imglist li p{text-align:center; line-height:17px; background:url(../images/line1.png) center center no-repeat;}
|
||||
.imglist li p a{color:#1f7cb6;}
|
||||
.imglist li p a:hover{color:#F60;}
|
||||
|
||||
/*imgtable*/
|
||||
.imgtable{width:100%;border:solid 1px #cbcbcb; }
|
||||
.imgtable th{background:url(../images/th.gif) repeat-x; height:34px; line-height:34px; border-bottom:solid 1px #b6cad2; text-indent:21px; text-align:left;}
|
||||
.imgtable td{line-height:20px; text-indent:21px; border-right: dotted 1px #c7c7c7;}
|
||||
.imgtable td img{margin:10px 20px 10px 0;}
|
||||
.imgtable td p{color:#919191;}
|
||||
.imgtable td i{font-style:normal; color:#ea2020;}
|
||||
.imgtd{text-indent:0;}
|
||||
.imgtable tbody tr.odd{background:#f5f8fa;}
|
||||
.imgtable tbody tr:hover{background:#e5ebee;}
|
||||
|
||||
/*tab*/
|
||||
.itab{height:36px; border-bottom:solid 1px #d0dee5; position:relative; border-left:solid 1px #d3dbde;}
|
||||
.itab ul li{float:left;height:37px; line-height:37px; background:url(../images/itabbg.png) repeat-x; border-right:solid 1px #d3dbde;}
|
||||
.itab ul li a{font-size:14px; color:#000; padding-left:25px; padding-right:25px;}
|
||||
.itab ul li a.selected{ height:37px; display:block; background:url(../images/itabbg1.png) repeat-x; font-weight:bold;}
|
||||
.tabson{margin:18px 0px;}
|
||||
.formtext{height:45px; padding-left:25px; line-height:20px; color:#848383;}
|
||||
.formtext b{color:#d70101;}
|
||||
.forminfo b{color:#ea2020; padding-left:3px;}
|
||||
|
||||
/*class*/
|
||||
.classlist li{float:left;margin-right:10px;margin-bottom:10px;padding:12px;border:1px solid #ebebeb; background:#fcfcfc;}
|
||||
.classlist li:hover{border:1px solid #3eafe0; cursor:pointer;}
|
||||
.classlist li span{float:left;margin-right:18px;border:3px solid #fff;}
|
||||
.classlist li .lright{float:left;width:150px;}
|
||||
.classlist li .lright h2{font-size:12px; font-weight:bold;line-height:30px;}
|
||||
.classlist li .lright p{line-height:20px;}
|
||||
.enter{display:block;margin-top:5px;width:94px;height:30px;color:#fff;background:#3eafe0;font-weight:bold; border-radius:2px; text-align:center;line-height:30px; cursor:pointer;}
|
||||
.enter:hover{color:#fff; background:#d98c1d;}
|
||||
.clear{clear:both;}
|
||||
|
||||
/*seachform*/
|
||||
.seachform{ height:42px;}
|
||||
.seachform li{float:left; margin-right:15px;}
|
||||
.seachform li label{padding-right:10px; float:left; line-height:32px;}
|
||||
.scinput{width:150px; height:32px; line-height:32px; border-top:solid 1px #a7b5bc; border-left:solid 1px #a7b5bc; border-right:solid 1px #ced9df; border-bottom:solid 1px #ced9df; background:url(../images/inputbg.gif) repeat-x; text-indent:10px;}
|
||||
.scbtn{width:85px;height:35px; background:url(../images/btnbg.png) no-repeat center; font-size:14px;font-weight:bold;color:#fff; cursor:pointer;border-radius:3px; behavior:url(js/pie.htc);}
|
||||