commit 4d50a1e4ec1dc2fa005bff907941fbbb8306fa4a Author: 董哲奇 <13840175730@139.com> Date: Thu Nov 7 16:52:12 2024 +0800 first commit diff --git a/css/BigData.css b/css/BigData.css new file mode 100644 index 0000000..5963094 --- /dev/null +++ b/css/BigData.css @@ -0,0 +1,561 @@ +/*青岛研锦网络科技有限公司 版权所有*/ +*{ + margin: 0; + padding: 0; +} +p{ + margin: 0 !important; +} +html{ + min-width: 1440px; + min-height: 700px; +} + +body{ + width: 100%; + height: 100%; + font-size: 100%; + overflow: auto; +} +.data_bodey{ + width: 100%; + height: 100%; + background-image: url("../img/bg01.png"); + background-size: 100% 100%; + position: absolute; + + +} +.index_tabs{ + width: 100%; + height: 88%; + position: absolute; +} +.dataLeft01{ + float: left; + background-color: rgba(2,8,23,0.54); + padding: 1px; + border-radius: 10px; + width: 99%; + height: 40%; + margin-left: 0.5%; + margin-top: 3%; + + + +} +.dataLeft02{ + float: left; + background-color: rgba(17,25,69,0.54); + padding: 1px; + border-radius: 10px; + width: 44%; + height: 53%; + margin-left: 0.5%; + margin-top: 0.2%; + + + +} + +.dataLeft03{ + float: left; + background-color: rgba(2,8,23,0.54); + padding: 1px; + border-radius: 10px; + width: 54.5%; + height: 53%; + margin-left: 0.5%; + margin-top: 0.2%; + + + +} +.dataLeft03_up{ + float: left; + background-color: rgba(17,25,69,0.54); + padding: 1px; + border-radius: 10px; + width: 100%; + height: 49.5%; + + + + +} +.dataLeft03_upVideo{ + width: 33%; + height: 98%; + float: left; + margin-top: 0.5%; +} +.dataLeft03_down01{ + float: left; + background-color: rgba(17,25,69,0.54); + padding: 1px; + border-radius: 10px; + width: 33%; + height: 49.5%; + + + + +} +.data_con01{ + width: 100%; + height: 100%; + box-sizing: border-box; + border:1px solid #016ae0; + border-radius: 10px; + padding: 1px; + + +} + +.data_con02{ + width: 100%; + height: 100%; + box-sizing: border-box; + border:2px solid #016ae0; + border-radius: 10px; + +} +.dataLeft01Conent{ + width: 33%; + height: 99%; + float: left; + margin-top: -1%; + margin-right: 0.3%; + +} +.dataLeft01Conent01{ + width: 33%; + height: 92%; + float: left; + margin-right: 0.3%; + background-image: url("../img/con_bg.png"); + background-repeat: no-repeat; + background-size: 100% 100%; + +} +.dataLeft01Conent02{ + width: 33%; + height: 92%; + float: left; + margin-right: 0.3%; + + +} +.dataLeft01Conent01Up{ + width: 90%; + height: 37%; + float: left; + margin-left: 5%; +} +.dataLeft01Conent01Up ul{ + list-style: none; + text-align: center; + color: #ff3552; + font-size: 2.2em; +} +.dataLeft01Conent01Up ul li{ + padding-left: 2%; + padding-right: 2%; + padding-top: 2%; + padding-bottom: 2%; + display: inline-block; + text-align: center; +} +.li_bg{ + background-image: url("../img/data_bg.png"); + background-size: 100% 100%; + background-repeat: no-repeat; +} +.dataLeft01Conent01Down{ + width: 90%; + height: 58%; + float: left; + margin-left: 5%; +} +.dataLeft01Conent01DownLeft{ + width: 55%; + height: 100%; + float: left; +} +.dataLeft01Conent01DownLeft p{ + padding-top: 5%; + padding-bottom: 15%; +} +.dataLeft01Conent01DownRight{ + width: 44%; + height: 100%; + float: right; +} +.dataLeft01Conent01DownRight p{ + padding-top: 8%; +} +.dataLeft01Conent01DownRight ul{ + list-style: none; + text-align: center; + + +} +.dataLeft01Conent01DownRight ul li{ + width: 30%; + display: inline-block; + text-align: center; +} +#pieChart{ + width: 100%; + height: 88%; + + margin-top: -3%; +} +.h3_color{ + font-size: 1.35em; + color: #11f6e2; +} +.pLeftSpan{ + float: left; +} +.a_colo01{ + color: #ffffff; + +} +.a_colo01:hover{ + text-decoration: none; + color: #ffffff; +} +.a_colo02{ + color: #fe6d3a; + font-size: 1.2em; + font-weight: bold; +} +.a_colo02:hover{ + text-decoration: none; + color: #fe6d3a; +} +.pRightSpan{ + float: right; +} +.p_color01{ + color: #ffffff; + padding-top: 2%; + padding-bottom: 2%; + font-weight: bold; +} +.dataLeft01Conentup01{ + width: 54%; + height: 30%; + float: left; + + +} +.dataLeft01Conentup02{ + width: 45%; + height: 35%; + float: right; + + + +} +.dataLeft01Conentdown{ + width: 98%; + height: 50%; + float: left; + + + +} +.dataLeft01Conentup01Left{ + width: 98%; + height: 100%; + margin-right: 0.5%; + + +} +.dataLeft01Conentup01LeftMes{ + width: 48%; + height: 47%; + background-image: url("../img/leftbg01.png"); + background-size: 100% 100%; + background-repeat: no-repeat; + float: left; + margin-left: 2%; + margin-top: 3%; + +} +.mesSpanLeft{ + width: 26%; + height: 78%; + float: left; + margin-top: 3%; + margin-left: 3%; + display: inline-block; + +} +.mesSpanRight{ + width: 69%; + height: 78%; + float: right; + + margin-right: 0.5%; + display: inline-block; + +} +.mesP01{ + width: 100%; + text-align: center; + font-size: 0.5em; + color: #eeeeee; + padding-top: 5% !important; + +} +.mesP02{ + padding-top: 0.5%; + + +} +.mesP02SpanR{ + float: right; + padding-right: 2%; +} +.mesP02SpanR a{ + color: #00ffd2; +} +.mesP02SpanR a:hover{ + text-decoration: none; + color: #00ffd2; +} +.a_red{ + color: red !important; +} +.a_red:hover{ + color: red; + text-decoration: none; +} +.color01{ + font-size: 0.5em; + color: #d1cf16; + font-weight: bold; + +} +.mesSpanLeft img{ + width: 100%; + height: 100%; +} + +.data_tit01{ + width: 18.84%; + height: 6.6%; + background-image: url("../img/tit01.png"); + background-size: 100% 100%; + background-repeat: no-repeat; + margin: 0 auto; +} +.data_tit02{ + width: 100%; + height: 5.3%; + +} +.data_tit02_img{ + width: 38.31%; + height: 100%; + background-image: url("../img/tit02.png"); + background-size: 100% 100%; + background-repeat: no-repeat; + margin: 0 auto; + + +} + +.data_map{ + width: 100%; + height:85%; + background-image: url("../img/map.png"); + background-size: 100% 100%; + background-repeat: no-repeat; + display: none; +} +.data_tool{ + width: 100%; + height: 9.7%; + background-image: url("../img/tool_bg.png"); + background-size: 100% 100%; + background-repeat: no-repeat; +} +.data_tool ul{ + margin: 0; + padding: 0; + list-style: none; + width: 100%; + text-align: center; +} +.data_tool ul li{ + float: left; + width: 7%; + text-align: center; + height: 100%; + +} +.data_tool ul li a{ + height: 100%; + display:block; + + +} + +.data_tool ul li a:hover{ + background-color: #05121e; + padding: 2%; +} +.data_tool ul li img{ + /*margin-top: 20%;*/ + padding-top: 20%; + padding-bottom: 18%; +} +.clear{ + clear: both; +} +.li_img01{ + width: 40%; + height: 58%; + +} +.li_img02{ + width: 52%; + height: 43%; + +} +.li_img03{ + width: 48.2%; + height: 50%; + +} +.li_img04{ + width: 48.2%; + height: 58%; + +} +.li_img05{ + width: 48.2%; + height: 46%; + +} +.li_img06{ + width: 44.8%; + height: 51.9%; + +} +.li_img07{ + width: 44.8%; + height: 53.8%; + +} +.li_img08{ + width: 46.5%; + height: 55.7%; + +} +.li_img09{ + width: 55.1%; + height: 46%; + +} +.li_img10{ + width: 56.9%; + height: 58%; + +} +.li_img11 { + width: 56.9%; + height: 51.9%; +} +.tit02Diva{ + position: absolute; + width: 30%; +} +.tit02Diva a{ + text-decoration: none; + font-size: 0.5em; + color: #ffffff; + padding-right: 2%; + padding-left: 2%; + text-align: center; + +} +.tit02Diva a:hover{ + text-decoration: none; + color: #ffffff; +} +.tit02Diva a:active{ + text-decoration: none; + color: #ffffff; + +} +.tit02Diva a:visited{ + text-decoration: none; + color: #ffffff; + +} +.i_crlie{ + width: 12px; + height: 12px; + + background-image: url("../img/i01.png"); + background-size: 100% 100%; + background-repeat: no-repeat; + display: inline-block; + margin-left: 2%; +} +.i_crlieAction{ +background-image: url("../img/i02.png"); +} +.titP{ + text-align: center; + color: #ffffff; + font-size: 0.5em; + width: 100%; + + float: left; +} +.iframe{ + background-color: transparent !important; +} +.weher01{ + font-size: 22px; + color: #76cdff; +margin-top: 3% !important; + float: left; + margin-right: 2%; +} +.weberImg{ + width: 14%; + height: 13%; + float: left; + margin-right: 1%; + +} +.webber02{ + font-size: 2.5em; + color: #ffffff; + font-weight: 800; + float: left; + margin-right: 2%; +} +.weher03{ + font-size: 22px; + color: #76cdff; + margin-top: 3% !important; + float: right; + +} +.weherChart{ + width: 98%; + height: 65%; + float: left; + margin-left: 1%; + margin-top: 5%; + + +} \ No newline at end of file diff --git a/css/Security_operation.css b/css/Security_operation.css new file mode 100644 index 0000000..2df9409 --- /dev/null +++ b/css/Security_operation.css @@ -0,0 +1,820 @@ +/*table样式*/ +#table td,#table th,#table1 td,#table1 td,#table1 th,#table1 td,#table2 td,#table2 th,#table2 td{color: #fff !important;border:none !important;padding: 3px 8px !important;vertical-align: middle;font-size: 14px !important;} +#table,#table1,#table2{border: none !important;} +#table thead tr,#table1 thead tr,#table2 thead tr{background-image: -webkit-linear-gradient(left,rgba(96,133,255,0.6),rgba(48,69,126,0.6)) !important;} +.fixed-table-container thead th .th-inner, .fixed-table-container tbody td .th-inner{padding: 0 8px !important;} +.table-striped>tbody>tr{background-color: rgba(96,178,255,0.2) !important;font-size: 14px} +.table-striped>tbody>tr td{background-color: rgba(96,178,255,0.2) !important;font-size: 14px} +.table-striped>tbody>tr:nth-of-type(odd){font-size: 10px;background-color: rgba(96,178,255,0) !important;} +.table-striped>tbody>tr:hover{background-color: rgba(156,207,255,0.1)} +.dataAllBorder20 td{padding: 0 !important;font-size: 16px;line-height: 23px !important;margin: 0 !important;} +.dataAllBorder20 .table{margin-bottom: 10px !important} +.dataAllBorder02 .fixed-table-pagination div.pagination .pagination{ border: 1px #637ef5 solid;} +.dataAllBorder02 .fixed-table-pagination .pagination a{color:#637ef5;} +.dataAllBorder02 .fixed-table-pagination .pagination a{background-color: rgba(225,225,225,0);border-color: rgba(225,225,225,0)} +.dataAllBorder02 .pagination>.active>a, .pagination>.active>a:focus, .pagination>.active>a:hover, .pagination>.active>span, .pagination>.active>span:focus, .pagination>.active>span:hover{ + z-index: 2; + color: #fff; + cursor: default; + background-color: #637ef5; + border-color: #637ef5; +} +html{ + overflow: hidden; +} + +.left_cage{ + width: 22%; + height: 100%; + margin-left: 0.3%; + float: left; +} +.center_cage{ + width: 55.1%; + height: 100%; + margin-left: 0.3%; + float: left; +} +.right_cage{ + width: 22%; + height: 100%; + margin-left: 0.3%; + float: right; +} +.center_cage{ + +} +.right_cage{ + +} +.cage_cl{ + background-color: rgba(2,8,23,0.1); +} +.video_cage{ + width: 100%; + object-fit: fill; +} +.video { + height: 100%; + width: 100%; +} +.video_around{ + width: 49.5%; + height: 49.5%; + float: left; + object-fit: fill; +} +.video_around:hover{ + border: #8bff62 2px solid; +} +.video_around_chose{ + border: #8bff62 2px solid; +} +.over_hide{ + overflow: hidden; +} +.message_scroll{ + border: rgba(12,122,200,0.5) 1px solid; + background-color: rgba(20,66,125,0.12); + height: 90px; + cursor: pointer; + margin-bottom: 6px; +} +.scroll_top{ + height: 25px; +} +.scroll_title{ + float: left; + background-image: url("../img/pushmessage_class.png"); + background-repeat: no-repeat; + width: 150px; + line-height: 25px; + color: white; + font-size: 14px; + text-align: center; +} +.scroll_level{ + float: left; + background-repeat: no-repeat; + line-height: 25px; + width: 56px; + background-position-y:3px; + color: white; + font-size: 12px; + text-align: center; + margin-left: 8px; +} +.scroll_level01{ + background-image:url("../img/pushmessage_level01.png"); +} +.scroll_level02{ + background-image:url("../img/pushmessage_level02.png"); +} +.scroll_level03{ + background-image:url("../img/pushmessage_level03.png"); +} +.localize{ + display: block; + line-height: 25px; + margin-left: 8px; + background-image: url("../img/pushmessage_localize_01.png"); + background-repeat: no-repeat; + background-position-y:3px; + width: 14px; + height: 25px; + float: left; +} +.localize:hover{ + background-image: url("../img/pushmessage_localize_02.png"); +} +.scroll_timer{ + color: #4a97da; + font-size: 12px; + line-height: 25px; + text-align: right; + display: block; + float: right; + margin-right: 5px; +} +.msg_cage{ + padding-left: 10px; + padding-right: 6px; + height: 18px; + overflow: hidden; + margin-top: 8px; +} +.localize_title{ + color: #2c85d2; +} +.localize_msg{ + font-size: 14px; + color: white; +} +.scroll_tool_outbox{ + height: 30px; + width: 100%; + position: absolute; + bottom: 0; + padding-left: 3px; + padding-right: 3px; + padding-bottom: 2px; + border-radius:0px 0px 15px 15px; + overflow: hidden; + opacity: 0; +} +.scroll_tool_outbox_current{ + opacity: 1; +} +.scroll_tool_box{ + height: 100%; + width: 100%; + background-color: rgba(6,10,19,0.9); +} +.scroll_tool{ + color: #28cfa2; + border: #28cfa2 1px solid; + line-height: 20px; + width: 90px; + text-align: center; + display: block; + float: right; + border-radius: 3px; + font-size: 12px; + margin-top: 3px; + margin-right: 8px; + text-decoration: none; +} + +.map_title_box{ + height: 11%; + width: 100%; + top: 0px; + left: 0px; + background-color: rgba(17,25,69,0.1); + border-radius: 11px 11px 0px 0px; + position: relative; +} +.map_title_innerbox{ + position: absolute; + top: -4px; + width: 100%; +} +.map_title{ + width: 358px; + background-image: url("../img/first_title.png"); + background-repeat: no-repeat; + background-size: 100% 80%; + margin:auto; + height: 28px; + text-align: center; + color: white; + font-size: 14px; + font-family: "Microsoft YaHei"; + font-weight: bold; +} +.map{ + width: 100%; + height: 95%; + background-repeat: no-repeat; + background-position-x:-300px; + background-position-y:-200px; + border-radius: 0px 0px 8px 8px; + position: relative; + overflow: hidden; + cursor:move; +} +/*.map2D{*/ + /*background-image: url("../images/2Dmap.png");*/ +/*}*/ +.display_box{ + width: 20%; + height: 80%; + border: rgba(1,57,144,0.9) 2px solid ; + background-color: rgba(11,39,63,0.9); + position: absolute; + top: 6%; + right: 0%; +} +.display_type_center_box{ + width: 100%; + height: 94%; + overflow: scroll; +} +.display_type_inner_box{ + margin-left: 10px; + margin-top: 6px; + margin-bottom: 0px; +} +.display_type_msg{ + color: white; + font-size: 12px; + margin-bottom: 3px; +} +.city_chose_box .display_type_center_box ul li{ + width: 50%; + float: left; + cursor: pointer; +} +.city_chose_box .display_type_center_box ul li:hover{ + color: #72e3ff; +} +.display_type_chose{ + width: 11px; + height: 11px; + display: block; + float: left; + margin-top: 2px; + margin-right: 6px; + background-image: url("../img/chose_btn.png"); +} +.display_type_chose_recent{ + background-position-x: -11px; +} +.display_type_funct_box{ + width: 100%; + height: 6.4%; +} +.display_type_funct{ + width: 100%; + height: 100%; + float: left; + color: #22d8ff; + cursor: pointer; + text-align: center; + font-size: 12px; + padding-top: 4px; + background-color: #005c70; +} +.display_type_funct:hover{ + background-color: #00768f; + color: white; +} +.trajectory_box{ + height: 26px; + padding-left:1px; + padding-right: 1px; + position: absolute; + bottom: 13%; + left: 22%; + background-color: white; +} +.trajectory_box input,.trajectory_box select,.trajectory_box button{ + float: left;margin: 1px 4px 0 0; +} +.trajectory_box button{ + margin-right: 0 !important; +} +.trajectory{ + width:106px; + line-height:20px; + font-size: 12px; + text-indent: 0.5em; +} +.ratio { + display: inline-block; + height: 24px; + font-size: 12px; +} +.playback{ + line-height: 20px; + font-size: 12px; + width: 34px; +} +.map_change_box{ + display: block; + position: absolute; + left: 1%; + bottom: 10%; + height: 38px; +} +.map_change{ + display: inline-block; + cursor: pointer; + width: 80px; + height: 38px; + box-shadow: black 0px 0px 3px; + background-repeat: no-repeat; + margin-right: 4px; +} +.map_change:hover,.map_change_chose{ + box-shadow: #0078ff 0px 0px 3px; + border: #0078ff 1px solid; +} +.map_change_chose{ + float: left; +} +.VM_map{ + background-image: url("../images/Vector_map.png"); + background-position-x: -53px; + background-position-y: -20px; +} +.SCI_map{ + background-image: url("../images/Satellite_cloud_map.png"); + background-position: center; +} +.map_tool_outbox{ + width: 100%; + background-image: url("../img/map_tool_bg.png"); + height:50px; + cursor: auto; + background-repeat: repeat-x; + position: absolute; + bottom: 0px; + border-radius: 0px 0px 5px 5px; +} +.map_tool{ + display: block; + width: 40px; + height: 100%; + margin-left: 8px; + cursor: pointer; + float: left; +} +.map_tool:hover{ + background-image:url("../img/map_tool_re.png"); + background-repeat: repeat-x; +} +.map_tool_inner{ + display: block; + width: 36px; height: 100%; + background-image: url("../img/tool.png"); + background-repeat: no-repeat; + margin-left: 2px; + background-position-y: 7px; +} + +/*右侧*/ +.analysis{ + width: 100%; + height: 20%; + padding-top: 2%; + text-align: left; + text-indent: 0.7em; + font-size: 16px; + font-weight: bold; + color: white; +} +.data_show_box{ + height: 42%; + width: 76%; + margin: auto; + text-decoration: none; +} +.data_cage{ + display: block; + background-image: url("../img/data_bg.png"); + height: 100%; + width: 16%; + float: left; + margin-left: 1px; + color: white; + text-align: center; + font-size: 36px; + font-family: data_Number; + background-repeat: no-repeat; + background-size: 100%; +} +.funct_number{ + color: #dbe9f1; +} +@font-face { + font-family: data_Number; src: url("../fonts/data_Number.ttf"); +} +.depart_number_box{ + height: 28%; +} +.depart_number_cage{ + width: 100%; + float: left; + height: 16px; + padding-left: 4%; + margin-top: 1%; + margin-bottom: 8px; +} +.depart_number_cage li{ + display:block; + float: left; + line-height: 16px +} +.depart_name{ + font-size: 14px; + color: white; + cursor: pointer; +} +.depart_number{ + font-family: data_Number; + font-size: 20px; + color: #10a4db; +} +.location_msg_box{ + height: 100%; +} +.location_msg_box li{ + float: left; + color: #cdd6db; + font-size: 12px; + width: 50%; + padding-left: 3%; + margin-bottom: 1px; + padding-top: 2%; + padding-bottom: 2%; +} +.location_msg01{ + background-color: rgba(0,0,0,0.1); +} +.location_msg02{ + background-color: rgba(0,0,0,0.2); +} +.location_single{ + height: 16%; +} +.location_double{ + height: 26%; +} + +.danger_contain_box{ + width: 100%; + height: 38%; + padding-left: 10px; +} +.danger_depart_box{ + height: 40%; +} +.danger_depart{ + float: left; + width: 50%; + height: 50%; + margin-bottom: 0px; + padding-left: 4%; +} +.danger_depart01{ + /*background-image: url("../img/leftbg01.png");*/ + /*background-repeat: no-repeat;*/ + /*background-position: center;*/ + /*background-size: 78%;*/ + /*background-position-y:54% ;*/ + padding-top: 3%; +} +.danger_ico{ + height: 100%; + background-size: 100%; + width: 28%; + background-repeat: no-repeat; + float: left; +} +.data_name{ + color: white; + font-weight: lighter; + font-size: 12px; + float: left; + width: 72%; + text-indent: 0.1em; + cursor: pointer; +} +.data{ + color: white; + font-size: 12px; + font-family: data_Number; + +} +.data01{ + color: #fff000; + float: left; + width: 36%; + text-indent: 0.1em; +} +.data02{ + color: #00ffd2; + float: right; + width: 36%; +} +.tab_msg_box{ + display: block; + height: 11%; + width: 30%;; + position: absolute; + top: 0%; + padding-top: 0.4%; +} +.tab_msg{ + color: white; + font-weight: lighter; + text-indent: 1.5em; + background-image: url("../img/i01.png"); + background-repeat: no-repeat; + background-position: 4.1% 59.5%; + cursor: pointer; + float: left; + margin-left: 10px; +} +.tab_msg_box li:active{ + color: #00b9ff; +} +.tab_msg_current{ + background-image: url("../img/i02.png"); +} +/*右侧搜索选项隐藏*/ +.search_plate_box{ + width: 100%; + padding:7px 10px 7px 0px; + /*background-color: rgba(0,0,0,0.2);*/ +} +.search_separate{ + width: 50%; + float: left; +} +.search_title{ + line-height: 22px; + font-size: 12px; + color: white; + width: 40%; + float: left; + text-align: right; +} +.search_input_box { + width: 60%; + float: left; +} +.search_chose_box{ + background-color: transparent; + color: #6eafff; + border: #00a0cc 1px solid; + font-size: 12px;height: 22px; +} +.search_input{ + width: 100%; + line-height: 20px; + background-color: rgba(11,59,72,0.4); + color: #6eafff; + border: #00a0cc 1px solid; + font-size: 12px; +} +.search_btn{ + display: block; + width: 30%; + height: 20%; + color: white; + background-color: #00a0cc; + margin-left: 70%; + border: rgba(153,187,255,0.6) 1px solid; + border-radius: 3px; +} +.search_btn:hover{ + background-color: #00b7e9 +} +.search_sesult_box{ + height: 63%; + overflow-y: auto; + width: 100%; + border-top: rgba(61,123,186,0.6) 2px solid; + border-radius: 0px 0px 5px 5px; + padding: 4px; +} +.search_result{ + border:rgba(61,123,186,0.6) 1px solid; + padding-left: 6px; + margin-bottom: 6px; + height: 60px; +} +.search_result_add{ + color: #a1d3ff; + font-size: 14px; + width: 86%; + float: left; + line-height: 30px; +} +.danger_result{ + width: 70%; +} +.danger_level{ + width: 16%; + text-align: center; + float: left; + font-size: 14px; + line-height: 30px; +} +.level01{ + color: #7a09ff; +} +.level02{ + color: #ffd416; +} +.level03{ + color: #09ffc8; +} +.search_result_road{ + margin-top: 4px; + color: #23f3ff; + font-size: 12px; + clear: left; + line-height: 30px; +} +.search_result_car{ + margin-top: 4px; + float: left; + color: #23f3ff; + font-size: 12px; + line-height: 30px; +} +.car_personal{ + width: 55%; +} +.car_time{ + width: 45%; +} +.search_location{ + display: block; + float: left; + width: 12px; + height: 16px; + background-image: url("../img/search_location.png"); + margin-top: 7px; + margin-right: 10px; + cursor: pointer; +} +.search_location:hover{ + background-position-x: -12px; +} +.search_eddit{ + display: block; + float: left; + width: 16px; + height: 13px; + background-image: url("../img/search_eddit.png"); + margin-top: 9px; + cursor: pointer; +} +.search_eddit:hover{ + background-position-x: -16px; +} +.search_guiji{ + display: block; + float: left; + width: 17px; + height: 15px; + background-image: url("../img/car_guiji.png"); + margin-top: 8px; + cursor: pointer; +} +.search_guiji:hover{ + background-position-x: -17px; +} +.check_increase{ + height: 38%; +} +.check_increase_act{ + height: 70.6%; +} +/*翻页样式*/ +*{ margin:0; padding:0; list-style:none;} +a{ text-decoration:none;} +a:hover{ text-decoration:none;} +.tcdPageCode,.chemistry_tcdPageCode,.enterprise_tcdPageCode,.car_tcdPageCode{text-align: left;color: #ccc;position: absolute;left:18px;bottom: 3px} +.tcdPageCode a,.chemistry_tcdPageCode a,.enterprise_tcdPageCode a,.car_tcdPageCode a{display: inline-block;color: #428bca;height: 25px; line-height: 25px; padding: 0 10px;border: 1px solid #428bca; margin: 0 2px;border-radius: 4px;vertical-align: middle;} +.tcdPageCode a:hover,.chemistry_tcdPageCode a:hover,.enterprise_tcdPageCode a:hover,.car_tcdPageCode a:hover{text-decoration: none;border: 1px solid #54afff;} +.tcdPageCode span.current,.chemistry_tcdPageCode span.current,.enterprise_tcdPageCode span.current,.car_tcdPageCode span.current{display: inline-block;height: 25px;line-height: 25px;padding: 0 10px;margin: 0 2px;color: #fff;background-color: #428bca; border: 1px solid #428bca;border-radius: 4px;vertical-align: middle;} +.tcdPageCode span.disabled,.chemistry_tcdPageCode span.disabled,.enterprise_tcdPageCode span.disabled,.car_tcdPageCode span.disabled{ display: inline-block;height: 25px;line-height: 25px;padding: 0 10px;margin: 0 2px; color: #bfbfbf;background: rgba(66,139,202,0.4);border: 1px solid #428bca;border-radius: 4px;vertical-align: middle;} + + + +.total_chose_box{ + height: 60px; +} +.index_nav{ + /*height: 12%;*/ +} +.chose_tltle{ + margin-left: 22px; + display: block; + float: left; + color: white; +} +.year_chose{ + background-color: transparent; + color: #72e3ff; + border: #00c0ef 2px solid; + width: 120px; + text-indent:0.6em; + border-radius: 5px; + float: left; +} +.chose_text_in{ + background-color: transparent; + color: #72e3ff; + border: #00c0ef 2px solid; + width: 120px; + text-indent:0.6em; + border-radius: 5px; + float: left; +} +.chose_enter{ + background-color: #00c0ef; + color: white; + border: #00cdff 2px solid; + width: 50px; + border-radius: 5px; + float: left; + margin-left: 20px; +} + +#selLayer{ + width: 200px; + display: block; + height: 26px; + background-color: transparent; + color: #0b7ff3; + border: #0b7ff3 2px solid; + position: absolute; + right: 2px; + border-radius: 5px; + margin-top:2px; +} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/css/index.css b/css/index.css new file mode 100644 index 0000000..7f8dc93 --- /dev/null +++ b/css/index.css @@ -0,0 +1,152 @@ +/*青岛研锦网络科技有限公司 版权所有*/ +*,ul,li,p,div,span{margin: 0;padding: 0} +body{font-family:"Microsoft Himalaya"} +ul{list-style: none} +.clear{clear: both} +a{text-decoration: none} +::-webkit-scrollbar-track{border-radius: 10px;-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0);}/*滚动条的滑轨背景颜色*/ +::-webkit-scrollbar-thumb{background-color: rgba(0,0,0,0.05);border-radius: 10px;-webkit-box-shadow: inset 1px 1px 0 rgba(0,0,0,.1);}/*滑块颜色*/ +::-webkit-scrollbar-thumb{background-color: rgba(0,0,0,0.2);border-radius: 10px;-webkit-box-shadow: inset 1px 1px 0 rgba(0,0,0,.1);} +::-webkit-scrollbar{width: 16px;height: 16px;}/* 滑块整体设置*/ +::-webkit-scrollbar-track, +::-webkit-scrollbar-thumb{border-radius: 999px;border: 5px solid transparent;} +::-webkit-scrollbar-track{box-shadow: 1px 1px 5px rgba(0,0,0,.2) inset;} +::-webkit-scrollbar-thumb{min-height: 20px;background-clip: content-box;box-shadow: 0 0 0 5px rgba(0,0,0,.2) inset;} +::-webkit-scrollbar-corner{background: transparent;}/* 横向滚动条和纵向滚动条相交处尖角的颜色 */ +.l_left{ + float: left; +} +.r_right{float: right} +*{ + font-size: 100%; +} + +.inner{ + height: 100%; +} +.index_main{width: 2700px;height: 900px;background-image: url(../images/index_bg.png);background-repeat: no-repeat;background-position: center center;margin-top: -10px } + +.index_nav ul li{font-size: 1em;color: #fff;opacity: 0.8;padding-top:8px;padding-left:10px;padding-right:10px;padding-bottom:5px;cursor: pointer;text-shadow:0 6px 8px #00225b } +.index_nav ul .l_left{margin-left: 3%} +.index_nav ul .r_right{margin-right: 3%} +.index_nav ul li:hover{opacity: 1} + +.index_left{background-color: rgba(2,8,23,0.54);width: 626px;height: 790px;margin: 39px 0 0 19px;border-radius: 10px;position: relative} +.left_nav{position: absolute;top:1px;left:137px;width: 354px;height: 27px;} +.left_line1{border-radius: 10px;border: 1px #0174f5 solid;margin: 1px;height: 788px} +.left_line2{margin: 1px;border-radius: 9px;border: 2px #0b7ff3 solid;height: 784px;padding: 0 8px} +.left_top{height: 33%} + +.left_top_left{width: 50%;height: 70%;margin-top: 42px;color: #fff} +.left_top_left p{line-height: 32px;font-size: 16px ;margin-left: 14px } + @font-face { + font-family: datamsg; + src: url("../font/液晶数字.TTF") + } +.datamsg{font-family: datamsg} +.left_top_left p span{font-weight: bold;color: #ff6e00;margin-right: 4px;font-size: 20px ;} +.left_top_title{text-align: center;color: #fff;margin: 16px 0 0 20px;font-weight: bold;font-size: 12px} +.left_top_middle .left_top_title{margin-left: 0} +.left_top_middle{width: 22%;height: 50%;margin-top: 100px} +.left_middle{height: 33%} +.left_middle thead tr,.left_bot thead tr,.dataAllBorder20 thead tr{border: none !important;} +.table-bordered{border: 1px #3490ba solid !important; } +.left_middle th,.left_middle td,.left_bot th,.left_bot td,.dataAllBorder20 th,.dataAllBorder20 td{line-height: 21px !important;padding: 0 !important;text-align: center;font-size: 10px;;-webkit-transform:scale(0.8);border: none !important;color: #fff;} +.left_middle thead,.left_bot thead,.dataAllBorder20 thead{background-color: #3490ba} +.left_middle td,.left_bot td,.dataAllBorder20 td{line-height: 24px !important;color: #dedfe0} +.left_middle tbody tr,.left_bot tbody tr,.dataAllBorder20 tbody tr{border-bottom: 1px #3490ba solid} +.left_middle_title,.left_bot_title{text-align: center;color: #fff;margin: -1% 0 1% 0;font-weight: bold;font-size: 12px} +.left_bot_title{margin-top: 0} +.left_bot{height: 33%} + +.index_middle{width: 1390px;height: 790px;;margin: 39px 9px 0 10px;position: relative;} +.middle_top{width: 100%;height: 510px;background-color: rgba(17,25,69,0.54);border-radius: 10px;} +.middle_nav{position: absolute;top:1px;left:512px;width: 356px;height: 27px;z-index: 9999} +.middle_top_line1{border-radius: 10px;border: 1px #0174f5 solid;margin: 1px;height: 508px} +.middle_top_line2{margin: 1px;border-radius: 9px;border: 2px #0b7ff3 solid;height: 504px;position: relative} +.tabs{float: left;width: 100%;height: 24px;background-color: rgba(20,51,104,0.54);border-top-left-radius: 9px;border-top-right-radius: 9px} +.tabs ul li{float: left;color: #d5d8df;margin-left: 14px;font-size: 14px;cursor: pointer} +.tabs ul li>div{margin-right: 10px;width: 12px;height: 12px;margin-top:6px;border-radius: 50%;background-image: url(../images/tabs1_03.png);background-repeat: no-repeat;float: left} +.tabs ul li>div>div{width: 8px;height: 8px;border-radius: 50%;margin:2px;background-image: url(../images/tabs2_09.png);background-repeat: no-repeat} +/*.tabs ul li:hover .div{background-image: url(../images/tabs3_06.png)}*/ +.tabs ul li>div .tabs_active{background-image: url(../images/tabs3_06.png)} +.tabs ul li>p{float: left;line-height: 24px;} +.middle_map{margin: 0 5px 6px 5px;width: 1370px;height: 470px;;border-bottom-left-radius: 9px;border-bottom-right-radius: 9px} +.middle_map img{width:1370px;height: 470px } +.middle_top_bot{position: absolute;left:-5px;bottom: -5px;height: 60px;width: 1390px;;background-image: url(../images/middle_bot_bg_03.png);background-repeat: no-repeat} +.middle_top_bot ul{padding:0 6px} +.middle_top_bot ul li{width: 98px;height: 60px;float: left;cursor: pointer;} +/*.middle_top_bot ul li:hover{background-image: url(../images/nav_bg_03.png);background-repeat: no-repeat}*/ +.middle_top_bot ul li.middle_top_bot_active{background-image: url(../images/nav_bg_03.png);background-repeat: no-repeat} +.middle_top_bot ul li img{padding: 6px 23px 0 20px;} + +.middle_bot{width: 100%;height: 270px;margin-top: 10px} +.middle_bot_left{width: 454px;margin-right: 14px;height: 270px} +.middle_bot_left_last{margin-right: 0} +.middle_bot_line1{border-radius: 10px;border: 1px #0174f5 solid;margin: 1px;height: 268px} +.middle_bot_line2{margin: 1px;border-radius: 9px;border: 2px #0b7ff3 solid;height: 264px;padding: 5px;background-color: rgba(17,25,69,0.54) } +.middle_bot_left video {object-fit:fill; width:100%;height:100%;} + +.index_right{background-color: rgba(2,8,23,0.54);width: 626px;height: 790px;margin: 39px 0 0 0;border-radius: 10px} +.right_line1{border-radius: 10px;border: 1px #0174f5 solid;margin: 1px;height: 788px} +.right_line2{margin: 1px;border-radius: 9px;border: 2px #0b7ff3 solid;height: 784px} +.right_top video {object-fit:fill; width:100%;height:100%;} +.right_top{width: 586px;height: 240px;margin: 11px 14px 0 14px} +.right_top_first{margin-top:20px} + +/*天气插件*/ +#demo { color:#009fff;overflow:hidden;margin: 0 auto} +#demo i { background: no-repeat top left; display:inline-block; height:128px; line-height:128px; margin:0 auto 20px auto; font-size:70px; padding-left:300px; font-style:normal; text-align:center; font-weight:bold; } +#demo i.icon-xiaoyu { background-image:url(../images/xiaoyu.png); background-position: 150px 0;} +#demo i.icon-zhongyu { background-image:url(../images/zhongyu.png);background-position: 150px 0; } +#demo i.icon-dayu { background-image:url(../images/dayu.png); background-position: 150px 0;} +#demo i.icon-qing { background-image:url(../images/qing.png); background-position: 150px 0;} +#demo i.icon-duoyun { background-image:url(../images/duoyun.png);background-position: 150px 0; } +#demo i.icon-yin { background-image:url(../images/yin.png);background-position: 150px 0; } +#demo p { background:rgba(0,0,0,.3); margin:0 auto; padding:20px 20px 20px 200px; border-radius:1000px; font-size:16px; } +#demo p span { margin:0 15px;} + + +/*游客分析*/ +.manage_left{ + width: 32.5%; + height: 98%; + background-color: rgba(2,8,23,0.54); + /*margin-top:3%;*/ + margin-left:0.6%; + border-radius: 10px; + position: relative} +.manage_line1{border-radius: 10px;border: 1px #0174f5 solid;margin: 1px;height: 100%} +.manage_line2{margin: 1px;border-radius: 9px;border: 2px #0b7ff3 solid;height: 100%;padding-top: 5%} +.manage_left_nav{position: absolute;top:1px;width: 42%;height: 3.5%;left:24%} +.manage_left_top{height: 33%} +.manage_top_left{width: 33.3%;height: 100%;} +.manage_top_left p{text-align: center;color: #fff;font-size: 12px} +.manage_top_middle{height: 33%;width: 100%;} +.manage_top_middle p{text-align: center;color: #fff;font-size: 12px} + +.manage_top_middle thead tr{border: none !important;} +/*.manage_top_middle{border: 1px #3490ba solid !important; }*/ +.manage_top_middle th,.manage_top_middle td,.dataAllBorder20 td{line-height: 32px !important;padding: 0 !important;text-align: center;font-size: 14px;-webkit-transform:scale(0.8);border: 1px #3490ba solid !important;color: #fff;} +.manage_top_middle thead{background-color: #3490ba} +.manage_top_middle td{line-height: 32px !important;color: #dedfe0} +.manage_top_middle tbody tr{border-bottom: 1px #3490ba solid} + +/*管理员工分析*/ +.user_left{width: 32.5%;height: 99%;background-color: rgba(2,8,23,0.54);border-radius: 10px;position: relative;} +.user_line1{border-radius: 10px;border: 1px #0174f5 solid;margin: 1px;height: 100%} +.user_line2{margin: 1px;border-radius: 9px;border: 2px #0b7ff3 solid;height: 100%;padding: 24px 8px 0 8px} +.user_left_nav{position: absolute;top:1px;left:29%;width: 354px;height: 27px;} +.user_left_top{height: 33%} +.user_top_left{width: 33.3%;height: 100%;} +.user_top_left p{text-align: center;color: #fff;font-size: 12px} +.user_top_middle{height: 33%;width: 100%} +.user_top_middle p{text-align: center;color: #fff;font-size: 12px} + +.user_top_middle thead tr{border: none !important;} +/*.manage_top_middle{border: 1px #3490ba solid !important; }*/ +.user_top_middle th,.user_top_middle td{line-height: 32px !important;padding: 0 !important;text-align: center;font-size: 14px;-webkit-transform:scale(0.8);border: 1px #3490ba solid !important;color: #fff;} +.user_top_middle thead{background-color: #3490ba} +.user_top_middle td{line-height: 32px !important;color: #dedfe0} +.user_top_middle tbody tr{border-bottom: 1px #3490ba solid} +.user_right_left{width: 50%;height: 100%} \ No newline at end of file diff --git a/css/index01.css b/css/index01.css new file mode 100644 index 0000000..d86ea2e --- /dev/null +++ b/css/index01.css @@ -0,0 +1,274 @@ +.dataAll{ + width: 100%; + height: 33%; + background-color: rgba(2,8,23,0.1); + float: left; + border-radius: 10px; + /*margin-top: 10px;*/ + /*margin-left: 10px;*/ +} +.dataAllNo01{ + width: 100%; + height: 100%; + background-color: rgba(2,8,23,0.1); + float: left; + border-radius: 10px; + /*margin-top: 10px;*/ + /*margin-left: 10px;*/ +} +.dataAllNo02{ + width: 100%; + height: 100%; + background-color: rgba(2,8,23,0.1); + float: left; + border-radius: 10px; + /*margin-top: 10px;*/ + /*margin-left: 10px;*/ +} +.dataAll01{ + width: 100%; + height: 66%; + background-color: rgba(2,8,23,0.1); + float: left; + border-radius: 10px; + /*margin-top: 10px;*/ + margin-left: 10px; +} +.dataAll02{ + width: 100%; + height: 33%; + background-color: rgba(2,8,23,0.1); + float: left; + border-radius: 10px; + /*margin-top: 10px;*/ + margin-left: 10px; +} +.maginS{ + /*margin-top:13% !important;*/ +} +.maginS01{ + /*margin-top:11% !important;*/ +} +.dataAllBorder01{ + width: 100%; + height: 100%; + border-radius: 10px; + border: 1px #0174f5 solid; + padding: 1px; + box-sizing: border-box; +} + +.dataAllBorder02{ + width: 100%; + height: 100%; + box-sizing: border-box; + border:2px solid #016ae0; + border-radius: 10px; +} +.data_tit_cq{ + width: 40%; + height: 8%; + background-image: url("../img/tit01s.png"); + background-size: 100% 100%; + background-repeat: no-repeat; + margin:0 auto; + font-size: 14px; + color: #ffffff; + text-align: center; +} +.data_tit{ + width: 32%; + height: 7%; + background-image: url("../img/tit01s.png"); + background-size: 100% 100%; + background-repeat: no-repeat; + margin:0 auto; + font-size: 14px; + line-height: 24px; + color: #ffffff; + text-align: center; +} +.nav_active { + border-bottom: 4px solid #4b8df8; + /*box-shadow: -10px 0px 15px rgba(2,8,23,0.54) inset,*/ + /*0px -10px 15px rgba(2,8,23,0.54) inset,*/ + /*10px 0px 15px rgba(2,8,23,0.54) inset,*/ + /*0px 10px 15px rgba(2,8,23,0.54) inset;*/ + box-sizing: border-box; +} +.data_tit1{ + width: 46%; + height: 10%; + background-image: url("../img/tit01s.png"); + background-size: 100% 100%; + background-repeat: no-repeat; + margin:0 auto; + font-size: 12px; + color: #ffffff; + text-align: center; +} +.data_tit2{ + width: 36%; + height: 5%; + background-image: url("../img/tit01s.png"); + background-size: 100% 100%; + background-repeat: no-repeat; + margin:0 auto; + font-size: 12px; + color: #ffffff; + text-align: center; +} +.data_tit3{ + width: 44%; + height: 3%; + background-image: url("../img/tit01s.png"); + background-size: 100% 100%; + background-repeat: no-repeat; + margin:0 auto; + font-size: 12px; + color: #ffffff; + text-align: center; +} +.data_left01{ + float: left; + width: 22%; + height: 100%; + margin-left: 10px; + +} +.data_chart{ + width: 96%; + margin-left: 2%; + height: 90%; + padding-top: 2%; + +} +.data_chart01{ + width: 98%; + margin-left: 2%; + height: 50%; + padding-top: 10px; + +} +.data_chart02{ + width: 96%; + margin-left: 2%; + height: 90%; + padding-top: 2%; + +} +.data_chart03{ + width: 96%; + margin-left: 2%; + height: 92%; + padding-top: 2%; + +} +.data_left02{ + float: left; + width: 31%; + height: 100%; + margin-left: 10px; + +} +.data_left03{ + float: left; + width: 26%; + height: 99%; + margin-left: 0.5%; + +} +.data_left04{ + float: left; + width: 46%; + height: 99%; + margin-left: 0.5%; + +} +.data_left05{ + float: left; + width: 49%; + height: 49%; + margin-left:0.6%; + + +} +.table_data01{ + width: 96%; + margin-left: 2%; + border-collapse: collapse; + color: #ffffff; + margin-top: 10px; +} +.table_data01 tr td{ + border: 1px solid #5bc0de; + padding-top: 5px; + padding-bottom: 5px; + text-indent: 10px; +} +.table_data02{ + width: 96%; + margin-left: 2%; + border-collapse: collapse; + color: #ffffff; + margin-top: 10px; + border-radius: 5px; + border: 1px solid #5bc0de; +} +.table_data02 tr td{ + + padding-top: 8px; + padding-bottom: 8px; + text-indent: 10px; +} +.font01{ + font-size: 30px; + color: #4cae4c; +} +.font02{ + font-size: 30px; + color: #e9230d; +} +.font03{ + font-size: 30px; + color: #e9a832; +} +.font04{ + + color: #a4e90f; + font-size: 18px; +} +.font05{ + + color: #e92b23; + font-size: 18px; +} +.font6{ + font-weight: bold; + font-size: 18px; + +} +.font07{ + font-size: 30px; + +} +.zhanleft01{ + width: 49%; + height: 38%; + float: left; + margin-left: 1%; + /*padding-top: 10px;*/ + display: inline-block; + padding-top: 2%; + +} +.zhanleft02{ + width: 96%; + height: 40%; + margin-left: 2%; + /*padding-top: 20px;*/ + float: left; + padding-top: 7%; + + +} \ No newline at end of file diff --git a/css/lay_out_01.css b/css/lay_out_01.css new file mode 100644 index 0000000..bfd93a9 --- /dev/null +++ b/css/lay_out_01.css @@ -0,0 +1,48 @@ + + +/*全局*/ +body{ + background-color: #1a2129; +} + + +/*内容*/ +.condition_confix{ + width: 100%; +} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/css/table.css b/css/table.css new file mode 100644 index 0000000..6069713 --- /dev/null +++ b/css/table.css @@ -0,0 +1,891 @@ +/*青岛研锦网络科技有限公司 版权所有*/ +/*all*/ +@charset "utf-8"; +/* CSS Document */ +.laydate_body .laydate_bottom{height: 30px !important;} +*{ + margin:0; + padding:0; + font-family:"微软雅黑";} +::-webkit-scrollbar-track{border-radius: 10px;-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0);}/*滚动条的滑轨背景颜色*/ +::-webkit-scrollbar-thumb{background-color: rgba(0,0,0,0.05);border-radius: 10px;-webkit-box-shadow: inset 1px 1px 0 rgba(0,0,0,.1);}/*滑块颜色*/ +::-webkit-scrollbar-thumb{background-color: rgba(0,0,0,0.2);border-radius: 10px;-webkit-box-shadow: inset 1px 1px 0 rgba(0,0,0,.1);} +::-webkit-scrollbar{width: 16px;height: 16px;}/* 滑块整体设置*/ +::-webkit-scrollbar-track, +::-webkit-scrollbar-thumb{border-radius: 999px;border: 5px solid transparent;} +::-webkit-scrollbar-track{box-shadow: 1px 1px 5px rgba(0,0,0,.2) inset;} +::-webkit-scrollbar-thumb{min-height: 20px;background-clip: content-box;box-shadow: 0 0 0 5px rgba(0,0,0,.2) inset;} +::-webkit-scrollbar-corner{background: transparent;}/* 横向滚动条和纵向滚动条相交处尖角的颜色 */ +.clear{ + clear: both; +} +.map_find{ + padding-top: 5px; + padding-bottom: 5px; + border-bottom: 1px solid #CCCCCC; + font-size: 13px; + padding-left: 10px; +} +.map_find1{ + padding-top: 10px; + + border-bottom: 1px solid #CCCCCC; + font-size: 13px; + padding-left: 10px; +} +.map_find label{ + margin-right: 5px; +} +.map_input{ + width: 220px; + height: 24px; + border-radius: 3px; + border:1px solid #CCCCCC; + margin-right: 10px; +} +.find_but{ + padding-left: 8px; + padding-right: 8px; + padding-top: 3px; + padding-bottom: 4px; + background-color: #0D8BBD; + color: #ffffff; + border:none; + border-radius: 3px; +} +.find_but:active{ + background-color: #1c6a9e; +} +.map_con{ + width: 100%; + height: 100%; + background-image: url("../img/map01.png"); + position: absolute; +} +.map_tail{ + width: 600px; + height: 350px; + position:relative; + margin: 0 auto; + margin-top: 50px; + background-color: #ffffff; + box-shadow: 5px 5px 3px #333; + border-radius: 5px; + + +} +.map_h{ + padding-top: 10px; + padding-bottom: 5px; + text-align: center; + border-bottom: 1px solid #CCCCCC; + width: 96%; + margin-left: 2%; +} +.map_table{ + width: 96%; + margin-left: 2%; + border:none; + font-size: 13px; + color: #262626; +} +.map_mos{ + text-decoration: none; + padding-top: 3px; + padding-left: 10px; + padding-right: 10px; + padding-bottom: 4px; + color: #ffffff; + background-color: #0D8BBD; + border:none; + border-radius: 3px; +} +.map_mos:active{ + background-color: #00a0e9; +} +.map_video{ + text-decoration: none; + padding-top: 3px; + padding-left: 10px; + padding-right: 10px; + padding-bottom: 4px; + color: #ffffff; + background-color: #00aa00; + border:none; + border-radius: 3px; +} +.map_video:active{ + background-color: #00e765; +} +.map_p01{ + padding-top: 15px; + padding-bottom: 5px; + border-bottom: 1px solid #CCCCCC; + width: 96%; + margin-left: 2%; + font-size: 12px; + color: #666666; +} +.map_p02{ + width: 96%; + margin-left: 2%; + height: 170px; + margin-top: 5px; + +} +.map_p02 img{ + width: 100%; + height: 100%; +} +.map_close{ + width: 20px; + height: 20px; + position: absolute; + right: -5px; + top:-5px; +} +.p_but{ + padding-top: 5px; + padding-left: 5px; + font-size: 12px; +} +.p_but a{ + margin-right: 10px;} +#table,#table1,#table2{ + font-size: 12px !important; + color: #475059 !important; + /*border-top: none !important;*/ + /*margin-top: 6px !important;*/ +} +#table a{ + margin-right: 10px; +} +#table th,#table1 th,#table2 th{ + border: 1px solid #ccc; + + +} +.add_i{ + width: 16px; + height: 16px; + position: relative; + display: inline-block; + background-image: url("../img/table_add.png"); + top:3px; + margin-right: 2px; +} +.del_i{ + width: 16px; + height: 16px; + position: relative; + display: inline-block; + background-image: url("../img/table_del.png"); + top:3px; + margin-right: 1px; +} +.down_i{ + width: 16px; + height: 16px; + position: relative; + display: inline-block; + background-image: url("../img/table_down.png"); + top:3px; + margin-right: 1px; +} +.print_i{ + width: 16px; + height: 16px; + position: relative; + display: inline-block; + background-image: url("../img/table_print.png"); + top:3px; + margin-right: 1px; +} +.div_find{ + width: 100%; + padding-bottom: 5px; + padding-top: 5px; + border-bottom: solid 1px #cccccc; + top:5px; + font-size: 12px; +} +.find_labela { + width: 8%; + text-align: right; + font-size: 12px; + display: inline-block; +} +.find_input{ + width: 18%; + height: 28px; + border:solid 1px #ccc; + border-radius: 3px; + +} +.find_but{ + padding-left: 9px; + padding-bottom: 4px; + padding-top: 4px; + padding-right: 8px; + + background-color:#00a0e9; + color: #ffffff; + border-radius: 5px; + border:none; + margin-right: 10px; + + +} +.find_but:active{ + background-color: #00a0e9; + border: none;} +.find_but1{ + padding-left: 9px; + padding-bottom: 4px; + padding-top: 4px; + padding-right: 8px; + background-color:#2e8ded; + color: #ffffff; + border-radius: 5px; + border: none; +} +.find_but1:active{ + background-color: #044588; +} +.find_span{ + float: right; + margin-right: 15px; + margin-top: 5px; + + font-size: 13px; +} +.find_span a{ + text-decoration: none; + color: #333; +} +.find_span1{ + float: right; + margin-right: 15px; + margin-top: 5px; + + font-size: 13px; + display: none; +} +.find_span1 a{ + text-decoration: none; + color: #333; +} +.i_open{ + width: 14px; + height: 14px; + position: relative; + display: inline-block; + background-image: url("../img/opne.png"); + top:2px; +} +.i_close{ + width: 14px; + height: 14px; + position: relative; + display: inline-block; + background-image: url("../img/colse.png"); + top:2px; +} +.user_table{ + width: 96%; + margin-left: 2%; + border:none; + font-size: 13px; +} +.user_table tr{ + height: 30px; + +} +.user_td{ + text-align: right; +} +.user_td1{ + width: 100px; +} +.user_rdio{ + width: 15px; + height: 15px; + position: relative; + top:3px; + margin-right: 5px; +} +.rideo_label{ + margin-right: 10px; + font-size: 13px; +} +.user_save{ + background-color: #00aa00; + color: #ffffff; + padding-bottom: 4px; + padding-top: 3px; + padding-left: 8px; + padding-right: 8px; + border:none; + border-radius: 3px; + margin-right: 10px; +} +.user_save:active{ + background-color: #00ca6d; +} +.user_esc{ + background-color: #d58512; + color: #ffffff; + padding-bottom: 4px; + padding-top: 3px; + padding-left: 8px; + padding-right: 8px; + border:none; + border-radius: 3px; +} +.user_esc:active{ + background-color: #985f0d; +} +.rose_text{ + width: 350px; + height: 100px; + resize: none; +} +.part_span{ + float: right; + margin-right: 5px; +} +.part_table{ + float: left; + width: 79%; + height: 600px; + border:1px solid #0D8BBD; + margin-left: 2px; +} +.part_tree{ + float: right; + width: 20%; + height: 600px; + border:1px solid #0D8BBD; + margin-right: 5px; +} +.part_tree ul{ + list-style: none; + text-indent: 10px; +} +.tree_h{ + height: 40px; + background-color: #EEEEEE; + margin-top: 0px; + line-height: 40px; + text-indent: 5px; +} +.static_all{ + width: 100%; + height: 100%; + + +} +.static01{ + width: 98%; + margin-left: 1%; + height: 300px; + + margin-top: 5px; +} +.static02{ + width: 98%; + margin-left: 1%; + height: 300px; + + margin-top: 5px; +} +.static03{ + width: 98%; + margin-left: 1%; + height: 300px; + + margin-top: 5px; +} +.alam_static{ + width: 98%; + height: 350px; + + + margin-left: 1%; + margin-top: 5px; + +} +.alam_static1{ + + width: 100%; + + background-color: #ffffff; + +} +.alstic_ledt{ + padding-top: 10px; + width: 59%; + height: 350px; + float: left; +} +.alstic_right{ + padding-top: 10px; + width: 39%; + height: 350px; + float: right; + background-color: #ffffff; + + +} +.alstic_right p{ + + padding-bottom: 5px; +} +.spqn_red{ + color: #f11010; + font-size: 20px; +} +.sque_red{ + width: 16px; + height: 16px; + background-color: #c23531; + display: inline-block; + margin-right: 10px; + position: relative; + top:3px; +} +.span_margin{ + margin-left: 10px; +} +.sque_02{ + width: 16px; + height: 16px; + background-color: #d48265; + display: inline-block; + margin-right: 10px; + position: relative; + top:3px; +} +.cloum_alam{ + width: 100%; + height: 350px; +} +.book_con01{ + width: 98%; + border-radius: 6px; + margin: 2% auto; + background-color: #ffffff; + padding-top: 2%; + padding-bottom: 2%; + font-size: 14px; + box-shadow:-5px 0 5px #ccc, /*左边阴影*/ + 5px 0 5px #ccc, /*右边阴影*/ + 0 -5px 5px #ccc, /*顶部阴影*/ + 0 5px 5px #ccc; /*底边阴影*/ + + +} +.book_p{ + width: 94%; + margin-left: 3%; + + margin-bottom: 15px; + padding-bottom: 10px; +} +.book_titSpan{ + float: right; +} +.book_p label{ + color: #3665a9; + margin-right: 5px; +} +.book_input01{ + width: 100px; + border-top:none; + border-left: none; + border-right: none; + border-bottom: 1px solid #a9c9f7; + margin-right: 5px; + height:30px; +} +.book_input02{ + width: 60px; + border-top:none; + border-left: none; + border-right: none; + border-bottom: 1px solid #a9c9f7; + margin-right: 5px; + height:30px; +} +.book_input03{ + width: 97%; + margin-left: 1%; + height:30px; + border:none; + +} +.book_h01{ + width: 94%; + margin-left: 3%; + padding-top: 15px; + margin-bottom: 10px; + text-align: center; + letter-spacing: 1px; + font-size: 16px; + +} +.label_red{ + margin-left: 5px; + margin-right: 5px; + color: #f50f35; +} +.book_table{ + width: 94%; + margin-left: 3%; + border-collapse:collapse; + + +} +.book_table tr{ + + border:1px solid #ccc; +} +.book_table td{ + padding-top: 8px; + padding-bottom: 8px; + padding-left: 5px; + +} +.input_radio{ + position: relative; + top:1px; + margin-right: 5px; + margin-left: 8px; +} +.textArae{ + width: 96%; + margin-left: 1%; + height: 350px; + resize: none; + + +} +.textArae01{ + width: 96%; + margin-left: 1%; + height: 350px; + resize: none; + border:none; + + +} +.label_right{ + float: right; + margin-right: 5px; +} +.td_label{ + color: #3665a9; + + margin-right: 5px; + padding-top: 5px; + padding-bottom: 10px; + text-align: right; + +} +.book_input04{ + width: 20%; + height: 30px; + margin-left: 3%; + +} +.book_input05{ + width: 45%; + height: 30px; + margin-left: 3%; + +} +.book_foot{ + width: 100%; + text-align: center; + margin-top: 25px; + margin-bottom: 25px; +} +.book_foot input{ + margin-right: 20px; + padding-left: 5px; + padding-right: 5px; +} +.reead{ + + background-color: #EEEEEE; +} +.tr_color{ + background-color: #ECF4FB; + text-align: center; + font-weight: bold; +} +.P_chart{ + width: 98%; + margin-left: 1%; + height: 500px; + +} +.p_static{ + padding-top: 15px; + + text-align: center; + width: 100%; + font-weight: bold; + font-size: 18px; +} +.static_span01{ + margin-right: 15px; + margin-left: 5px; + font-size: 12px; +} +.static_span02{ + margin-right: 15px; + float: right; + font-size: 12px; +} +.static_tabel{ + width: 100%; + border-collapse: collapse; + font-size: 12px; +} +.static_tabel td{ + padding-top: 5px; + padding-bottom: 5px; + border:1px solid #CCCCCC; + text-align: center; +} +.td_red{ + color: red; +} +.td_blue{ + color: #1F547E; +} +.index_top{ + color: #ffffff; + line-height: 60px; +} +.i_start { + width: 8px; + height: 8px; + position: relative; + display: inline-block; + background-image: url("../img/start.png"); + + margin-right: 5px; + top:-2px; +} + + +*,h6,button,ul,li{padding: 0;margin: 0} + +.layui-layer-title{background-color: #3c8dbc !important;font-weight:500;color:#fff !important; border:none !important;height: 36px !important;line-height: 36px !important;} +.layui-layer-rim {border: 0 solid #8D8D8D !important;border-radius: 5px;box-shadow: 0 5px 15px rgba(0,0,0,.4)!important; } +.notice_check{padding: 16px 15px;font-size: 12px} +.notice_check p label{text-align: right;font-size: 12px;display: inline-block;width: 60px} +.find_input{width: 198px;height: 30px;border:solid 1px #ccc;border-radius: 4px;} +.notice_check .check_btn{height: 30px;border: none;margin-left: 5px;width: 65px;border-radius: 4px;background-color: #337ab7;color: #fff;padding-left: 18px; + background-image: url(../img/1_03.png);background-repeat: no-repeat;background-position: 11px 8px} +.check_btn01{height: 30px;border: none;margin-left: 5px;width: 65px;border-radius: 4px;background-color: #27a111;color: #fff;text-align: center; + } +.notice_check .check_btn1{height: 30px;border: none;margin-left: 5px;width: 65px;border-radius: 4px;background-color: #337ab7;color: #fff;text-align: center;} +.notice_nav ul li{float: left} +.notice_nav ul{border: 1px #ccc solid;border-radius: 2px} +.notice_nav ul li a{display:inline-block;height: 28px;text-align:center;line-height:28px;color:#101010;border: none;width: 65px;border-right:1px #ccc solid;background-color: #fff;cursor: pointer} +.notice_nav ul li:nth-child(4) a{border-right:none} +.notice_nav ul li a:hover{background-color: #f5f5f5} +.dropdown-menu {min-width: 120px !important;margin-top: 4px;font-size: 12px} +.dropdown-menu li {padding:5px 15px;cursor: pointer} +.dropdown-menu li:hover{background-color: #f5f5f6} +.fixed-table-pagination{margin-top:0 !important;margin-bottom:0 !important;position: fixed !important;bottom:10px !important;left: 0 !important;width: 100%!important;border-top:1px #ccc solid} +.pagination-detail{margin-top:0 !important;margin-bottom:0 !important;} +.pagination{margin-top:3px !important;margin-bottom:5px !important;} + +.l_left{float: left} +.r_right{float: right} +.notice_bot{position: fixed;bottom: 0;background-color: #ecf0f5;padding: 5px 0 5px 0;z-index:9999;border-top:1px #ccc solid;width: 100%;} +.notice_bot>div{font-size: 12px;margin-left: 10px;color: #07141e;line-height: 28px} +.notice_bot>div input{margin-right: 2px;vertical-align: middle} +.div_form{margin:4% auto 0 auto;width: 90% } +.div_form>div{margin: 5px} +.but_p{margin-right: 10px} +.but_p button{width: 58px;height: 28px;line-height: 28px;border: none;background-color: #5cb85c;color: #fff;border-radius: 4px;cursor: pointer} +.but_p .but_close{background-color: #d9534f;margin-left: 10px} + +.notice_nav a{height: 28px;line-height: 28px;padding: 0 12px;border-radius: 0;float: left;font-size: 13px} +.notice_nav a:nth-child(1){border-top-left-radius: 4px;border-bottom-left-radius: 4px} +.notice_nav a:nth-child(3){border-top-right-radius: 4px;border-bottom-right-radius: 4px} +.notice_nav span{line-height: 26px;margin-right: 2px;color: #7a869d;font-size: 12px} + +/*role*/ +*,p,button,ul,li{padding: 0;margin: 0} +ul{list-style: none} +.l_left{float: left} +.r_right{float: right} +.clear{clear: both} +th{background-color: #e7f0f6 !important;} +.layui-layer-title{background-color: #3c8dbc !important;font-weight:bold;color:#fff !important; border:none !important;height: 33px;line-height: 33px;} +.layui-layer-rim {border: 0px solid #8D8D8D !important;border-radius: 5px;box-shadow: 0 5px 15px rgba(0,0,0,.4)!important; } + +.notice_main{height: 100%;width: 100%;border: 1px #ccc solid;background-color: #fff;overflow: auto} +.notice_check{padding: 16px 15px;font-size: 12px} +.notice_check p label{text-align: right;font-size: 12px;display: inline-block;} +.find_input{width: 20%;height: 30px;border:solid 1px #ccc;border-radius: 4px;} +.find_input1{width: 64px;height: 30px;border:solid 1px #ccc;border-radius: 4px;} +.notice_check .check_btn{height: 30px;border: none;margin-left: 5px;width: 65px;border-radius: 4px;background-color: #337ab7;color: #fff;padding-left: 18px; + background-image: url(../img/1_03.png);background-repeat: no-repeat;background-position: 11px 8px} +.dropdown-menu {min-width: 120px !important;margin-top: 4px;font-size: 12px} +.dropdown-menu li {padding:5px 15px;cursor: pointer} +.dropdown-menu li:hover{background-color: #f5f5f6} +.fixed-table-pagination{position: fixed !important;bottom:0 !important;left: 0 !important;width: 100%!important;border-top:1px #ccc solid} +.pagination-detail{margin-top:0 !important;margin-bottom:0 !important;} +.pagination{margin-top:3px !important;margin-bottom:5px !important;} + +.notice_nav a{height: 28px;line-height: 28px;padding: 0 12px;border-radius: 0;float: left;font-size: 13px} +.notice_nav a:nth-child(1){border-top-left-radius: 4px;border-bottom-left-radius: 4px} +.notice_nav a:nth-child(3){border-top-right-radius: 4px;border-bottom-right-radius: 4px} +.notice_nav span{line-height: 26px;margin-right: 2px;color: #7a869d;font-size: 12px} + +/*department*/ +*,h6,button{padding: 0;margin: 0} +ul{list-style: none} +.l_left{float: left} +.r_right{float: right} +.clear{clear: both} +th{background-color: #e7f0f6 !important;} +.nav_active{;background-image: url(../img/ccc_03.png);background-repeat: no-repeat;background-position: top left;background-color: #f5f5f5} +.news_main{height: 98%;width: 100%} +.layui-layer-title{background-color: #3c8dbc !important;font-weight:bold;color:#fff !important; border:none !important;height: 33px;line-height: 33px;} +.news_main h6{font-weight: bold;padding-left: 10px;line-height: 31px;border-bottom: 1px #ccc solid} +.news_left{width: 16%;height: 100%;border: 1px #ccc solid;margin-right: 0.5%;background-color: #fff} +.news_right{width: 83.5%;height: 100%;border: 1px #ccc solid;background-color: #fff;overflow: auto} +.department_table .fixed-table-pagination{left: 16.5% !important;width: 83.5% !important;} + +h6{font-weight: bold;padding-left: 10px;line-height: 31px;border-bottom: 1px #ccc solid} + + +.notice_check_last{padding:8px 15px 16px 15px !important} +.notice_check .find_input,.notice_check_last .find_input{margin: 0 10px 0 2px} +.notice_check_last .last_input{margin-right: 2px} + +/*book01*/ + +.table_td{color: #3665a9;text-align: right;background-color: #f5f5f5;width: 90px} +.table_td p{display: inline-block} +.table_td span{color: red;width: 20px;display: inline-block;vertical-align:middle;text-align: center} +.book_con01 td{text-align: right;color: #475059} +.book_con01 .sex{text-align: left} +.book_con01 td:nth-child(2n):hover,.book_con01 tr:hover{background-color: #fff !important;} + +/*from*/ +*,a{margin: 0;padding: 0} +.from_main{height: 98%;width: 100%;overflow: auto} +ul{list-style: none} +.l_left{float: left} +.r_right{float: right} +.clear{clear: both} +*,th,td,table{padding: 0;margin: 0} +td,th{text-align: center;font-size: 12px;color:#144490;vertical-align: middle !important; } +#table td,#table th,#table1 td,#table1 th,#table2 td,#table2 th{color: #475059 !important;} +thead th{background-color: #ECF4FB;border: #ccc 1px solid !important;} +tbody tr:hover{background-color: #f3f3f3} + +.news_check{padding: 16px 15px 16px 15px;border: 1px #ccc solid;margin-bottom: 4px;background-color: #fff;box-shadow: 2px 2px 5px #b1afaf;} +.check_left input{height: 28px;width: 198px;border-radius: 4px;border: 1px #ccc solid} +.check_left button{height: 28px;border: none;margin-left: 6px;width: 65px;border-radius: 4px;background-color: #337ab7;color: #fff;padding-left: 18px; + background-image: url(../img/100_03.png);background-repeat: no-repeat;background-position: 11px 8px} +.form_h1{line-height: 30px;text-align: center;font-size: 18px;font-weight: bold} +.from_p{font-size: 12px;line-height: 24px} +.top_btn{margin-left: 10px} +.check_right span{line-height: 26px;margin-right: 2px;color: #7a869d;font-size: 12px} +.top_btn a,.check_right a{height: 28px;line-height: 28px;padding: 0 12px;border-radius: 0;float: left;font-size: 13px} +.top_btn a:nth-child(1),.check_right a:nth-child(1){border-top-left-radius: 4px;border-bottom-left-radius: 4px} +.top_btn a:nth-child(4),.check_right a:nth-child(2){border-top-right-radius: 4px;border-bottom-right-radius: 4px} +.top_btn .active{color: #333;background-color: #e6e6e6;border-color: #adadad;} + +/*analysis*/ +.from_main{height: 98%;width: 100%;overflow: auto} +ul{list-style: none} +.l_left{float: left} +.r_right{float: right} +.clear{clear: both} +*,th,td,table{padding: 0;margin: 0} +.check_right ul li{float: left} +.check_right ul{border: 1px #ccc solid;border-radius: 2px} +.check_right ul li button{height: 28px;border: none;width: 65px;border-right:1px #ccc solid;background-color: #fff} +.check_right ul li:nth-child(2) button{border-right:none} +.check_right ul li button:hover{background-color: #ccc} +.news_check{padding: 16px 15px 16px 15px;border: 1px #ccc solid;margin-bottom: 4px;background-color: #fff;box-shadow: 2px 2px 5px #b1afaf;} +.check_left input{height: 28px;width: 198px;border-radius: 4px;border: 1px #ccc solid} +.check_left button{height: 28px;border: none;margin-left: 6px;width: 65px;border-radius: 4px;background-color: #337ab7;color: #fff;padding-left: 18px; + background-image: url(../img/1_03.png);background-repeat: no-repeat;background-position: 11px 8px} +.e_chart{margin: 10px 0} +.charts{width: 49.5%;border: 1px #ccc solid;border-radius: 4px;margin-right: 1%} +.last_charts{margin-right: 0} +.charts_last{width: 100%} +.charts p{border-bottom: 1px #ccc solid;line-height: 28px;padding: 0 10px;font-size: 12px;background-color: #e7f0f6;font-weight: 800;color:#666} +.charts span{color:#00a7d0} +.check_right span{line-height: 26px;margin-right: 2px;color: #7a869d;font-size: 12px} +.top_btn a,.check_right a{height: 28px;line-height: 28px;padding: 0 12px;border-radius: 0;float: left;font-size: 13px} +.top_btn a:nth-child(1),.check_right a:nth-child(1){border-top-left-radius: 4px;border-bottom-left-radius: 4px} +.top_btn a:nth-child(4),.check_right a:nth-child(2){border-top-right-radius: 4px;border-bottom-right-radius: 4px} +.top_btn .active{color: #333;background-color: #e6e6e6;border-color: #adadad;} + +.charts_last .fixed-table-pagination{position: static !important;border-top: none !important;} + +.fixed-table-container tbody .selected td { + background-color:#bbbbbb !important; +} +.ts{margin-left: 16px} +.ts li{color: #bb8940;line-height: 24px;font-size: 12px;} +.ts li span{margin-right: 16px} + + + +/*good页面样式*/ +.good_pic label{float: left} +.good_pic .good_pic_ul{float: left} +.clear{clear: both} +.goods_main{margin: 10px 0 0 30px} +.goods_main label{line-height: 32px;font-size: 12px} +.goods_main .l_left:nth-child(2){width: 80%;height: 100px} +.goods_main .l_left textarea{width: 100%;height: 100px;border: 1px #ccc solid;border-radius: 4px;resize:none} +.good_pic_ul ul li{float: left;margin-right: 10px;padding: 10px} +.good_pic_ul ul{border: 1px #ccc solid;border-radius: 4px;margin: 4px 0 10px 0} +.good_pic_ul ul li img{width: 80px;height: 80px} +.goods_input{width: 30%;height: 32px;border-radius: 4px;border: none;border: 1px #ccc solid;margin-bottom: 10px} +.goods_input1{width: 13.5%;height: 32px;border-radius: 4px;border: none;border: 1px #ccc solid;margin:0 1% 10px 1%} +.good_btn{width: 80px;margin: 10px auto} +.good_btn button{width: 58px;height: 28px;line-height: 28px;border: none; background-color: #5cb85c;color: #fff;border-radius: 4px; } +.pic_li_div{position: relative} +.pic_li_div .pic_btn{position: absolute;right: -2px;top: -4px;cursor: pointer} + +/*department页面样式*/ +.department_main{padding: 10px 10px 0 10px} +.department_main label{width: 80px;text-align: right;font-size: 12px} +.department_main input{width: 40%;margin-right: 1%;height: 32px;border: 1px #ccc solid;background-color: #fff;border-radius: 4px;} +.department_main textarea{resize: none;border: 1px #ccc solid;width: 89.5%;height: 200px;background-color: #fff;border-radius: 4px} +.departments_btn{width: 60px;margin: 20px auto 0 auto;display: none} +.departments_btn button{width: 58px;height: 28px;line-height: 28px;border: none; background-color: #5cb85c;color: #fff;border-radius: 4px; } +.department_top{position: absolute;top:30px;right: 10px} +.department_top button{height: 28px;line-height: 28px;border: none; background-color: #5cb85c;color: #fff;border-radius: 4px;padding: 0 6px} + + +/*validate页面的css样式*/ +.validate_nav,.validate_main{margin: 20px 10px 0 10px} +.validate_nav ul{border-bottom: 3px #3c8dbc solid} +.validate_nav ul li{float: left;cursor: pointer;line-height: 40px;padding: 0 24px;font-size: 16px;font-weight: bold;background-color: #f5f5f5;margin-right: 10px;border: 2px #dddddd solid;border-bottom: none;border-top-left-radius: 4px;border-top-right-radius: 4px} +.validate_nav ul .validate_nav_active{background-color: #228dcc;color: #fff;border-color: #5483d6} +.validate_from{display: none;margin-left: 20px} +.validate_from>div{margin: 0 0 20px 0} +.validate_from>div.first{margin: 0 0 10px 0} +.validate_from p{line-height: 32px;font-size: 16px;font-weight: 700;color: #666666} +.validate_from select{height: 40px;width: 300px;border: 1px #ccc solid} +.validate_from input{height: 40px;width: 400px;border: 1px #ccc solid} +.validate_from button{height: 40px;padding: 0 34px;border: 1px #5483d6 solid;background-color: #228dcc;line-height: 40px;border-radius: 4px;color: #fff;margin-left: 6px} +.validate_bot{border: 1px #fbf1d5 solid;background-color: #fffbf3} +.validate_bot .ts li{font-size: 14px;line-height: 34px} \ No newline at end of file diff --git a/css/table1.css b/css/table1.css new file mode 100644 index 0000000..64cdacb --- /dev/null +++ b/css/table1.css @@ -0,0 +1,887 @@ +/*青岛研锦网络科技有限公司 版权所有*/ +/*all*/ +@charset "utf-8"; +/* CSS Document */ +.laydate_body .laydate_bottom{height: 30px !important;} +.find_input2 .find_input2{width: 100px !important;} +*{ + margin:0; + padding:0; + font-family:"微软雅黑";} +::-webkit-scrollbar-track{border-radius: 10px;-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0);}/*滚动条的滑轨背景颜色*/ +::-webkit-scrollbar-thumb{background-color: rgba(0,0,0,0.05);border-radius: 10px;-webkit-box-shadow: inset 1px 1px 0 rgba(0,0,0,.1);}/*滑块颜色*/ +::-webkit-scrollbar-thumb{background-color: rgba(0,0,0,0.2);border-radius: 10px;-webkit-box-shadow: inset 1px 1px 0 rgba(0,0,0,.1);} +::-webkit-scrollbar{width: 16px;height: 16px;}/* 滑块整体设置*/ +::-webkit-scrollbar-track, +::-webkit-scrollbar-thumb{border-radius: 999px;border: 5px solid transparent;} +::-webkit-scrollbar-track{box-shadow: 1px 1px 5px rgba(0,0,0,.2) inset;} +::-webkit-scrollbar-thumb{min-height: 20px;background-clip: content-box;box-shadow: 0 0 0 5px rgba(0,0,0,.2) inset;} +::-webkit-scrollbar-corner{background: transparent;}/* 横向滚动条和纵向滚动条相交处尖角的颜色 */ +.clear{ + clear: both; +} +.map_find{ + padding-top: 5px; + padding-bottom: 5px; + border-bottom: 1px solid #CCCCCC; + font-size: 13px; + padding-left: 10px; +} +.map_find1{ + padding-top: 10px; + + border-bottom: 1px solid #CCCCCC; + font-size: 13px; + padding-left: 10px; +} +.map_find label{ + margin-right: 5px; +} +.map_input{ + width: 220px; + height: 24px; + border-radius: 3px; + border:1px solid #CCCCCC; + margin-right: 10px; +} +.find_but{ + padding-left: 8px; + padding-right: 8px; + padding-top: 3px; + padding-bottom: 4px; + background-color: #0D8BBD; + color: #ffffff; + border:none; + border-radius: 3px; +} +.find_but:active{ + background-color: #1c6a9e; +} +.map_con{ + width: 100%; + height: 100%; + background-image: url("../img/map01.png"); + position: absolute; +} +.map_tail{ + width: 600px; + height: 350px; + position:relative; + margin: 0 auto; + margin-top: 50px; + background-color: #ffffff; + box-shadow: 5px 5px 3px #333; + border-radius: 5px; + + +} +.map_h{ + padding-top: 10px; + padding-bottom: 5px; + text-align: center; + border-bottom: 1px solid #CCCCCC; + width: 96%; + margin-left: 2%; +} +.map_table{ + width: 96%; + margin-left: 2%; + border:none; + font-size: 13px; + color: #262626; +} +.map_mos{ + text-decoration: none; + padding-top: 3px; + padding-left: 10px; + padding-right: 10px; + padding-bottom: 4px; + color: #ffffff; + background-color: #0D8BBD; + border:none; + border-radius: 3px; +} +.map_mos:active{ + background-color: #00a0e9; +} +.map_video{ + text-decoration: none; + padding-top: 3px; + padding-left: 10px; + padding-right: 10px; + padding-bottom: 4px; + color: #ffffff; + background-color: #00aa00; + border:none; + border-radius: 3px; +} +.map_video:active{ + background-color: #00e765; +} +.map_p01{ + padding-top: 15px; + padding-bottom: 5px; + border-bottom: 1px solid #CCCCCC; + width: 96%; + margin-left: 2%; + font-size: 12px; + color: #666666; +} +.map_p02{ + width: 96%; + margin-left: 2%; + height: 170px; + margin-top: 5px; + +} +.map_p02 img{ + width: 100%; + height: 100%; +} +.map_close{ + width: 20px; + height: 20px; + position: absolute; + right: -5px; + top:-5px; +} +.p_but{ + padding-top: 5px; + padding-left: 5px; + font-size: 12px; +} +.p_but a{ + margin-right: 10px;} +#table,#table1,#table2{ + font-size: 12px !important; + color: #475059 !important; + /*border-top: none !important;*/ + /*margin-top: 6px !important;*/ +} +#table a{ + margin-right: 10px; +} +#table th,#table1 th,#table2 th{ + border: 1px solid #ccc; + + +} +.add_i{ + width: 16px; + height: 16px; + position: relative; + display: inline-block; + background-image: url("../img/table_add.png"); + top:3px; + margin-right: 2px; +} +.del_i{ + width: 16px; + height: 16px; + position: relative; + display: inline-block; + background-image: url("../img/table_del.png"); + top:3px; + margin-right: 1px; +} +.down_i{ + width: 16px; + height: 16px; + position: relative; + display: inline-block; + background-image: url("../img/table_down.png"); + top:3px; + margin-right: 1px; +} +.print_i{ + width: 16px; + height: 16px; + position: relative; + display: inline-block; + background-image: url("../img/table_print.png"); + top:3px; + margin-right: 1px; +} +.div_find{ + width: 100%; + padding-bottom: 5px; + padding-top: 5px; + border-bottom: solid 1px #cccccc; + top:5px; + font-size: 12px; +} +.find_labela { + width: 8%; + text-align: right; + font-size: 12px; + display: inline-block; +} +.find_input{ + width: 18%; + height: 28px; + border:solid 1px #ccc; + border-radius: 3px; + +} +.find_but{ + padding-left: 9px; + padding-bottom: 4px; + padding-top: 4px; + padding-right: 8px; + + background-color:#00a0e9; + color: #ffffff; + border-radius: 5px; + border:none; + margin-right: 10px; + + +} +.find_but:active{ + background-color: #00a0e9; + border: none;} +.find_but1{ + padding-left: 9px; + padding-bottom: 4px; + padding-top: 4px; + padding-right: 8px; + background-color:#2e8ded; + color: #ffffff; + border-radius: 5px; + border: none; +} +.find_but1:active{ + background-color: #044588; +} +.find_span{ + float: right; + margin-right: 15px; + margin-top: 5px; + + font-size: 13px; +} +.find_span a{ + text-decoration: none; + color: #333; +} +.find_span1{ + float: right; + margin-right: 15px; + margin-top: 5px; + + font-size: 13px; + display: none; +} +.find_span1 a{ + text-decoration: none; + color: #333; +} +.i_open{ + width: 14px; + height: 14px; + position: relative; + display: inline-block; + background-image: url("../img/opne.png"); + top:2px; +} +.i_close{ + width: 14px; + height: 14px; + position: relative; + display: inline-block; + background-image: url("../img/colse.png"); + top:2px; +} +.user_table{ + width: 96%; + margin-left: 2%; + border:none; + font-size: 13px; +} +.user_table tr{ + height: 30px; + +} +.user_td{ + text-align: right; +} +.user_td1{ + width: 100px; +} +.user_rdio{ + width: 15px; + height: 15px; + position: relative; + top:3px; + margin-right: 5px; +} +.rideo_label{ + margin-right: 10px; + font-size: 13px; +} +.user_save{ + background-color: #00aa00; + color: #ffffff; + padding-bottom: 4px; + padding-top: 3px; + padding-left: 8px; + padding-right: 8px; + border:none; + border-radius: 3px; + margin-right: 10px; +} +.user_save:active{ + background-color: #00ca6d; +} +.user_esc{ + background-color: #d58512; + color: #ffffff; + padding-bottom: 4px; + padding-top: 3px; + padding-left: 8px; + padding-right: 8px; + border:none; + border-radius: 3px; +} +.user_esc:active{ + background-color: #985f0d; +} +.rose_text{ + width: 350px; + height: 100px; + resize: none; +} +.part_span{ + float: right; + margin-right: 5px; +} +.part_table{ + float: left; + width: 79%; + height: 600px; + border:1px solid #0D8BBD; + margin-left: 2px; +} +.part_tree{ + float: right; + width: 20%; + height: 600px; + border:1px solid #0D8BBD; + margin-right: 5px; +} +.part_tree ul{ + list-style: none; + text-indent: 10px; +} +.tree_h{ + height: 40px; + background-color: #EEEEEE; + margin-top: 0px; + line-height: 40px; + text-indent: 5px; +} +.static_all{ + width: 100%; + height: 100%; + + +} +.static01{ + width: 98%; + margin-left: 1%; + height: 300px; + + margin-top: 5px; +} +.static02{ + width: 98%; + margin-left: 1%; + height: 300px; + + margin-top: 5px; +} +.static03{ + width: 98%; + margin-left: 1%; + height: 300px; + + margin-top: 5px; +} +.alam_static{ + width: 98%; + height: 350px; + + + margin-left: 1%; + margin-top: 5px; + +} +.alam_static1{ + + width: 100%; + + background-color: #ffffff; + +} +.alstic_ledt{ + padding-top: 10px; + width: 59%; + height: 350px; + float: left; +} +.alstic_right{ + padding-top: 10px; + width: 39%; + height: 350px; + float: right; + background-color: #ffffff; + + +} +.alstic_right p{ + + padding-bottom: 5px; +} +.spqn_red{ + color: #f11010; + font-size: 20px; +} +.sque_red{ + width: 16px; + height: 16px; + background-color: #c23531; + display: inline-block; + margin-right: 10px; + position: relative; + top:3px; +} +.span_margin{ + margin-left: 10px; +} +.sque_02{ + width: 16px; + height: 16px; + background-color: #d48265; + display: inline-block; + margin-right: 10px; + position: relative; + top:3px; +} +.cloum_alam{ + width: 100%; + height: 350px; +} +.book_con01{ + width: 98%; + border-radius: 6px; + margin: 2% auto; + background-color: #ffffff; + padding-top: 2%; + padding-bottom: 2%; + font-size: 14px; + box-shadow:-5px 0 5px #ccc, /*左边阴影*/ + 5px 0 5px #ccc, /*右边阴影*/ + 0 -5px 5px #ccc, /*顶部阴影*/ + 0 5px 5px #ccc; /*底边阴影*/ + + +} +.book_p{ + width: 94%; + margin-left: 3%; + + margin-bottom: 15px; + padding-bottom: 10px; +} +.book_titSpan{ + float: right; +} +.book_p label{ + color: #3665a9; + margin-right: 5px; +} +.book_input01{ + width: 100px; + border-top:none; + border-left: none; + border-right: none; + border-bottom: 1px solid #a9c9f7; + margin-right: 5px; + height:30px; +} +.book_input02{ + width: 60px; + border-top:none; + border-left: none; + border-right: none; + border-bottom: 1px solid #a9c9f7; + margin-right: 5px; + height:30px; +} +.book_input03{ + width: 97%; + margin-left: 1%; + height:30px; + border:none; + +} +.book_h01{ + width: 94%; + margin-left: 3%; + padding-top: 15px; + margin-bottom: 10px; + text-align: center; + letter-spacing: 1px; + font-size: 16px; + +} +.label_red{ + margin-left: 5px; + margin-right: 5px; + color: #f50f35; +} +.book_table{ + width: 94%; + margin-left: 3%; + border-collapse:collapse; + + +} +.book_table tr{ + + border:1px solid #ccc; +} +.book_table td{ + padding-top: 8px; + padding-bottom: 8px; + padding-left: 5px; + +} +.input_radio{ + position: relative; + top:1px; + margin-right: 5px; + margin-left: 8px; +} +.textArae{ + width: 96%; + margin-left: 1%; + height: 350px; + resize: none; + + +} +.textArae01{ + width: 96%; + margin-left: 1%; + height: 350px; + resize: none; + border:none; + + +} +.label_right{ + float: right; + margin-right: 5px; +} +.td_label{ + color: #3665a9; + + margin-right: 5px; + padding-top: 5px; + padding-bottom: 10px; + text-align: right; + +} +.book_input04{ + width: 20%; + height: 30px; + margin-left: 3%; + +} +.book_input05{ + width: 45%; + height: 30px; + margin-left: 3%; + +} +.book_foot{ + width: 100%; + text-align: center; + margin-top: 25px; + margin-bottom: 25px; +} +.book_foot input{ + margin-right: 20px; + padding-left: 5px; + padding-right: 5px; +} +.reead{ + + background-color: #EEEEEE; +} +.tr_color{ + background-color: #ECF4FB; + text-align: center; + font-weight: bold; +} +.P_chart{ + width: 98%; + margin-left: 1%; + height: 500px; + +} +.p_static{ + padding-top: 15px; + + text-align: center; + width: 100%; + font-weight: bold; + font-size: 18px; +} +.static_span01{ + margin-right: 15px; + margin-left: 5px; + font-size: 12px; +} +.static_span02{ + margin-right: 15px; + float: right; + font-size: 12px; +} +.static_tabel{ + width: 100%; + border-collapse: collapse; + font-size: 12px; +} +.static_tabel td{ + padding-top: 5px; + padding-bottom: 5px; + border:1px solid #CCCCCC; + text-align: center; +} +.td_red{ + color: red; +} +.td_blue{ + color: #1F547E; +} +.index_top{ + color: #ffffff; + line-height: 60px; +} +.i_start { + width: 8px; + height: 8px; + position: relative; + display: inline-block; + background-image: url("../img/start.png"); + + margin-right: 5px; + top:-2px; +} + + +*,h6,button,ul,li{padding: 0;margin: 0} + +.layui-layer-title{background-color: #3c8dbc !important;font-weight:500;color:#fff !important; border:none !important;height: 36px !important;line-height: 36px !important;} +.layui-layer-rim {border: 0 solid #8D8D8D !important;border-radius: 5px;box-shadow: 0 5px 15px rgba(0,0,0,.4)!important; } +.notice_check{padding: 16px 15px;font-size: 12px} +.notice_check p label{text-align: right;font-size: 12px;display: inline-block;width: 60px} +.find_input{width: 198px;height: 30px;border:solid 1px #ccc;border-radius: 4px;text-indent: 5px} +.notice_check .check_btn{height: 30px;border: none;margin-left: 5px;width: 65px;border-radius: 4px;background-color: #337ab7;color: #fff;padding-left: 18px; + background-image: url(../img/1_03.png);background-repeat: no-repeat;background-position: 11px 8px} +.notice_nav ul li{float: left} +.notice_nav ul{border: 1px #ccc solid;border-radius: 2px} +.notice_nav ul li a{display:inline-block;height: 28px;text-align:center;line-height:28px;color:#101010;border: none;width: 65px;border-right:1px #ccc solid;background-color: #fff;cursor: pointer} +.notice_nav ul li:nth-child(4) a{border-right:none} +.notice_nav ul li a:hover{background-color: #f5f5f5} +.dropdown-menu {min-width: 120px !important;margin-top: 4px;font-size: 12px} +.dropdown-menu li {padding:5px 15px;cursor: pointer} +.dropdown-menu li:hover{background-color: #f5f5f6} +.fixed-table-pagination{margin-top:0 !important;margin-bottom:0 !important;position: fixed !important;bottom:10px !important;left: 0 !important;width: 100%!important;border-top:1px #ccc solid} +.pagination-detail{margin-top:0 !important;margin-bottom:0 !important;} +.pagination{margin-top:3px !important;margin-bottom:5px !important;} + +.l_left{float: left} +.r_right{float: right} +.notice_bot{position: fixed;bottom: 0;background-color: #ecf0f5;padding: 5px 0 5px 0;z-index:9999;border-top:1px #ccc solid;width: 100%;} +.notice_bot>div{font-size: 12px;margin-left: 10px;color: #07141e;line-height: 28px} +.notice_bot>div input{margin-right: 2px;vertical-align: middle} +.div_form{margin:4% auto 0 auto;width: 90% } +.div_form>div{margin: 5px} +.but_p{margin-right: 10px} +.but_p button{width: 58px;height: 28px;line-height: 28px;border: none;background-color: #5cb85c;color: #fff;border-radius: 4px;cursor: pointer} +.but_p .but_close{background-color: #d9534f;margin-left: 10px} + +.notice_nav a{height: 28px;line-height: 28px;padding: 0 12px;border-radius: 0;float: left;font-size: 13px} +.notice_nav a:nth-child(1){border-top-left-radius: 4px;border-bottom-left-radius: 4px} +.notice_nav a:nth-child(3){border-top-right-radius: 4px;border-bottom-right-radius: 4px} +.notice_nav span{line-height: 26px;margin-right: 2px;color: #7a869d;font-size: 12px} + +/*role*/ +*,p,button,ul,li{padding: 0;margin: 0} +ul{list-style: none} +.l_left{float: left} +.r_right{float: right} +.clear{clear: both} +th{background-color: #e7f0f6 !important;} +.layui-layer-title{background-color: #3c8dbc !important;font-weight:bold;color:#fff !important; border:none !important;height: 33px;line-height: 33px;} +.layui-layer-rim {border: 0px solid #8D8D8D !important;border-radius: 5px;box-shadow: 0 5px 15px rgba(0,0,0,.4)!important; } + +.notice_main{height: 98%;width: 100%;border: 1px #ccc solid;background-color: #fff;overflow: auto} +.notice_check{padding: 16px 15px;font-size: 12px} +.notice_check p label{text-align: right;font-size: 12px;display: inline-block;} +.find_input{width: 198px;height: 30px;border:solid 1px #ccc;border-radius: 4px;} +.find_input1{width: 64px;height: 30px;border:solid 1px #ccc;border-radius: 4px;} +.notice_check .check_btn{height: 30px;border: none;margin-left: 5px;width: 65px;border-radius: 4px;background-color: #337ab7;color: #fff;padding-left: 18px; + background-image: url(../img/1_03.png);background-repeat: no-repeat;background-position: 11px 8px} +.dropdown-menu {min-width: 120px !important;margin-top: 4px;font-size: 12px} +.dropdown-menu li {padding:5px 15px;cursor: pointer} +.dropdown-menu li:hover{background-color: #f5f5f6} +.fixed-table-pagination{position: fixed !important;bottom:15px !important;left: 0 !important;width: 100%!important;border-top:1px #ccc solid} +.pagination-detail{margin-top:0 !important;margin-bottom:0 !important;} +.pagination{margin-top:3px !important;margin-bottom:5px !important;} + +.notice_nav a{height: 28px;line-height: 28px;padding: 0 12px;border-radius: 0;float: left;font-size: 13px} +.notice_nav a:nth-child(1){border-top-left-radius: 4px;border-bottom-left-radius: 4px} +.notice_nav a:nth-child(3){border-top-right-radius: 4px;border-bottom-right-radius: 4px} +.notice_nav span{line-height: 26px;margin-right: 2px;color: #7a869d;font-size: 12px} + +/*department*/ +*,h6,button{padding: 0;margin: 0} +ul{list-style: none} +.l_left{float: left} +.r_right{float: right} +.clear{clear: both} +th{background-color: #e7f0f6 !important;} +.nav_active{;background-image: url(../img/ccc_03.png);background-repeat: no-repeat;background-position: top left;background-color: #f5f5f5} +.news_main{height: 98%;width: 100%} +.layui-layer-title{background-color: #3c8dbc !important;font-weight:bold;color:#fff !important; border:none !important;height: 33px;line-height: 33px;} +.news_main h6{font-weight: bold;padding-left: 10px;line-height: 31px;border-bottom: 1px #ccc solid} +.news_left{width: 16%;height: 100%;border: 1px #ccc solid;margin-right: 0.5%;background-color: #fff} +.news_right{width: 83.5%;height: 100%;border: 1px #ccc solid;background-color: #fff;overflow: auto} +.department_table .fixed-table-pagination{left: 16.5% !important;width: 83.5% !important;} + +h6{font-weight: bold;padding-left: 10px;line-height: 31px;border-bottom: 1px #ccc solid} + + +.notice_check_last{padding:8px 15px 16px 15px !important} +.notice_check .find_input,.notice_check_last .find_input{margin: 0 10px 0 2px} +.notice_check_last .last_input{margin-right: 2px} + +/*book01*/ + +.table_td{color: #3665a9;text-align: right;background-color: #f5f5f5;width: 90px} +.table_td p{display: inline-block} +.table_td span{color: red;width: 20px;display: inline-block;vertical-align:middle;text-align: center} +.book_con01 td{text-align: right;color: #475059} +.book_con01 .sex{text-align: left} +.book_con01 td:nth-child(2n):hover,.book_con01 tr:hover{background-color: #fff !important;} + +/*from*/ +*,a{margin: 0;padding: 0} +.from_main{height: 100%;width: 100%;overflow: auto} +ul{list-style: none} +.l_left{float: left} +.r_right{float: right} +.clear{clear: both} +*,th,td,table{padding: 0;margin: 0} +td,th{text-align: center;font-size: 12px;vertical-align: middle !important; } +#table td,#table th,#table1 td,#table1 th,#table2 td,#table2 th{color: #475059 !important;} +thead th{background-color: #ECF4FB;border: #ccc 1px solid !important;} +tbody tr:hover{background-color: #f3f3f3} + +.news_check{padding: 16px 15px 16px 15px;border: 1px #ccc solid;margin-bottom: 4px;background-color: #fff;} +.check_left input{height: 28px;width: 198px;border-radius: 4px;border: 1px #ccc solid} +.check_left button{height: 28px;border: none;margin-left: 6px;width: 65px;border-radius: 4px;background-color: #337ab7;color: #fff;padding-left: 18px; + background-image: url(../img/100_03.png);background-repeat: no-repeat;background-position: 11px 8px} +.form_h1{line-height: 30px;text-align: center;font-size: 18px;font-weight: bold} +.from_p{font-size: 12px;line-height: 24px} +.top_btn{margin-left: 10px} +.check_right span{line-height: 26px;margin-right: 2px;color: #7a869d;font-size: 12px} +.top_btn a,.check_right a{height: 28px;line-height: 28px;padding: 0 12px;border-radius: 0;float: left;font-size: 13px} +.top_btn a:nth-child(1),.check_right a:nth-child(1){border-top-left-radius: 4px;border-bottom-left-radius: 4px} +.top_btn a:nth-child(4),.check_right a:nth-child(2){border-top-right-radius: 4px;border-bottom-right-radius: 4px} +.top_btn .active{color: #333;background-color: #e6e6e6;border-color: #adadad;} + +/*analysis*/ +.from_main{height: 100%;width: 100%;overflow: auto} +ul{list-style: none} +.l_left{float: left} +.r_right{float: right} +.clear{clear: both} +*,th,td,table{padding: 0;margin: 0} +.check_right ul li{float: left} +.check_right ul{border: 1px #ccc solid;border-radius: 2px} +.check_right ul li button{height: 28px;border: none;width: 65px;border-right:1px #ccc solid;background-color: #fff} +.check_right ul li:nth-child(2) button{border-right:none} +.check_right ul li button:hover{background-color: #ccc} +.news_check{padding: 16px 15px 16px 15px;border: 1px #ccc solid;margin-bottom: 4px;background-color: #fff;} +.check_left input{height: 28px;width: 198px;border-radius: 4px;border: 1px #ccc solid} +.check_left button{height: 28px;border: none;margin-left: 6px;width: 65px;border-radius: 4px;background-color: #337ab7;color: #fff;padding-left: 18px; + background-image: url(../img/1_03.png);background-repeat: no-repeat;background-position: 11px 8px} +.e_chart{margin: 10px 0} +.charts{width: 49.5%;border: 1px #ccc solid;border-radius: 4px;margin-right: 1%} +.last_charts{margin-right: 0} +.charts_last{width: 100%} +.charts p{border-bottom: 1px #ccc solid;line-height: 28px;padding: 0 10px;font-size: 12px;background-color: #e7f0f6;font-weight: 800;color:#666} +.charts span{color:#00a7d0} +.check_right span{line-height: 26px;margin-right: 2px;color: #7a869d;font-size: 12px} +.top_btn a,.check_right a{height: 28px;line-height: 28px;padding: 0 12px;border-radius: 0;float: left;font-size: 13px} +.top_btn a:nth-child(1),.check_right a:nth-child(1){border-top-left-radius: 4px;border-bottom-left-radius: 4px} +.top_btn a:nth-child(4),.check_right a:nth-child(2){border-top-right-radius: 4px;border-bottom-right-radius: 4px} +.top_btn .active{color: #333;background-color: #e6e6e6;border-color: #adadad;} + +.charts_last .fixed-table-pagination{position: static !important;border-top: none !important;} + +.fixed-table-container tbody .selected td { + background-color:#bbbbbb !important; +} +.ts{margin-left: 16px} +.ts li{color: #bb8940;line-height: 24px;font-size: 12px;} +.ts li span{margin-right: 16px} + + + +/*good页面样式*/ +.good_pic label{float: left} +.good_pic .good_pic_ul{float: left} +.clear{clear: both} +.goods_main{margin: 10px 0 0 30px} +.goods_main label{line-height: 32px;font-size: 12px} +.goods_main .l_left:nth-child(2){width: 80%;height: 100px} +.goods_main .l_left textarea{width: 100%;height: 100px;border: 1px #ccc solid;border-radius: 4px;resize:none} +.good_pic_ul ul li{float: left;margin-right: 10px;padding: 10px} +.good_pic_ul ul{border: 1px #ccc solid;border-radius: 4px;margin: 4px 0 10px 0} +.good_pic_ul ul li img{width: 80px;height: 80px} +.goods_input{width: 30%;height: 32px;border-radius: 4px;border: none;border: 1px #ccc solid;margin-bottom: 10px} +.goods_input1{width: 13.5%;height: 32px;border-radius: 4px;border: none;border: 1px #ccc solid;margin:0 1% 10px 1%} +.good_btn{width: 80px;margin: 10px auto} +.good_btn button{width: 58px;height: 28px;line-height: 28px;border: none; background-color: #5cb85c;color: #fff;border-radius: 4px; } +.pic_li_div{position: relative} +.pic_li_div .pic_btn{position: absolute;right: -2px;top: -4px;cursor: pointer} +.annyTable{ + width: 96%; + border-collapse: collapse; + border:1px solid #CCCCCC; + margin:0 2% 2% 2%; +} +.annyTable td{ + padding-top: 5px; + padding-bottom: 5px; +} +.first_td{font-weight: bold; background-color: #eeeeee;width: 12%} +.annyTable tr:nth-child(1){ + font-weight: normal !important; background-color: #fff !important; +} +.annyTable01{ + margin: 10px 0.5%; + width: 99%; + border-collapse: collapse; + +} +.annyTable01 td{ + padding-bottom: 10px; + padding-top: 10px; +} \ No newline at end of file diff --git a/css/zTreeStyle/img/cc.png b/css/zTreeStyle/img/cc.png new file mode 100644 index 0000000..ffda01e Binary files /dev/null and b/css/zTreeStyle/img/cc.png differ diff --git a/css/zTreeStyle/img/diy/1_close.png b/css/zTreeStyle/img/diy/1_close.png new file mode 100644 index 0000000..68ccb3c Binary files /dev/null and b/css/zTreeStyle/img/diy/1_close.png differ diff --git a/css/zTreeStyle/img/diy/1_open.png b/css/zTreeStyle/img/diy/1_open.png new file mode 100644 index 0000000..d6ff36d Binary files /dev/null and b/css/zTreeStyle/img/diy/1_open.png differ diff --git a/css/zTreeStyle/img/diy/2.png b/css/zTreeStyle/img/diy/2.png new file mode 100644 index 0000000..9eff506 Binary files /dev/null and b/css/zTreeStyle/img/diy/2.png differ diff --git a/css/zTreeStyle/img/diy/3.png b/css/zTreeStyle/img/diy/3.png new file mode 100644 index 0000000..d7ba6d0 Binary files /dev/null and b/css/zTreeStyle/img/diy/3.png differ diff --git a/css/zTreeStyle/img/diy/4.png b/css/zTreeStyle/img/diy/4.png new file mode 100644 index 0000000..753e2bf Binary files /dev/null and b/css/zTreeStyle/img/diy/4.png differ diff --git a/css/zTreeStyle/img/diy/5.png b/css/zTreeStyle/img/diy/5.png new file mode 100644 index 0000000..0c5eccd Binary files /dev/null and b/css/zTreeStyle/img/diy/5.png differ diff --git a/css/zTreeStyle/img/diy/6.png b/css/zTreeStyle/img/diy/6.png new file mode 100644 index 0000000..070b835 Binary files /dev/null and b/css/zTreeStyle/img/diy/6.png differ diff --git a/css/zTreeStyle/img/diy/7.png b/css/zTreeStyle/img/diy/7.png new file mode 100644 index 0000000..532b037 Binary files /dev/null and b/css/zTreeStyle/img/diy/7.png differ diff --git a/css/zTreeStyle/img/diy/8.png b/css/zTreeStyle/img/diy/8.png new file mode 100644 index 0000000..a8f3a86 Binary files /dev/null and b/css/zTreeStyle/img/diy/8.png differ diff --git a/css/zTreeStyle/img/diy/9.png b/css/zTreeStyle/img/diy/9.png new file mode 100644 index 0000000..4db73cd Binary files /dev/null and b/css/zTreeStyle/img/diy/9.png differ diff --git a/css/zTreeStyle/img/diy/cc.png b/css/zTreeStyle/img/diy/cc.png new file mode 100644 index 0000000..ffda01e Binary files /dev/null and b/css/zTreeStyle/img/diy/cc.png differ diff --git a/css/zTreeStyle/img/diy/zclose.png b/css/zTreeStyle/img/diy/zclose.png new file mode 100644 index 0000000..15ddec5 Binary files /dev/null and b/css/zTreeStyle/img/diy/zclose.png differ diff --git a/css/zTreeStyle/img/diy/zopen.png b/css/zTreeStyle/img/diy/zopen.png new file mode 100644 index 0000000..e7ae0d4 Binary files /dev/null and b/css/zTreeStyle/img/diy/zopen.png differ diff --git a/css/zTreeStyle/img/diy/ztop.png b/css/zTreeStyle/img/diy/ztop.png new file mode 100644 index 0000000..bbe7ccf Binary files /dev/null and b/css/zTreeStyle/img/diy/ztop.png differ diff --git a/css/zTreeStyle/img/line_conn.gif b/css/zTreeStyle/img/line_conn.gif new file mode 100644 index 0000000..d561d36 Binary files /dev/null and b/css/zTreeStyle/img/line_conn.gif differ diff --git a/css/zTreeStyle/img/loading.gif b/css/zTreeStyle/img/loading.gif new file mode 100644 index 0000000..e8c2892 Binary files /dev/null and b/css/zTreeStyle/img/loading.gif differ diff --git a/css/zTreeStyle/img/zTreeStandard.gif b/css/zTreeStyle/img/zTreeStandard.gif new file mode 100644 index 0000000..50c94fd Binary files /dev/null and b/css/zTreeStyle/img/zTreeStandard.gif differ diff --git a/css/zTreeStyle/img/zTreeStandard.png b/css/zTreeStyle/img/zTreeStandard.png new file mode 100644 index 0000000..ffda01e Binary files /dev/null and b/css/zTreeStyle/img/zTreeStandard.png differ diff --git a/css/zTreeStyle/zTreeStyle.css b/css/zTreeStyle/zTreeStyle.css new file mode 100644 index 0000000..273f9ba --- /dev/null +++ b/css/zTreeStyle/zTreeStyle.css @@ -0,0 +1,97 @@ +/*------------------------------------- +zTree Style + +version: 3.4 +author: Hunter.z +email: hunter.z@263.net +website: http://code.google.com/p/jquerytree/ + +-------------------------------------*/ + +.ztree * {padding:0; margin:0; font-size:12px; font-family: Verdana, Arial, Helvetica, AppleGothic, sans-serif} +.ztree {margin:0; padding:5px 5px 5px 0; color:#333} +.ztree li{padding:0; margin:0; list-style:none; line-height:14px; text-align:left; white-space:nowrap; outline:0} +.ztree li ul{ margin:0; padding:0 0 0 18px} +.ztree li ul.line{ background:url(./img/line_conn.gif) 0 0 repeat-y;} + +.ztree li a {padding:1px 3px 0 0; margin:0; cursor:pointer; height:17px; color:#333; background-color: transparent; + text-decoration:none; vertical-align:top; display: inline-block} +.ztree li a:hover {text-decoration: none} +.ztree li a.curSelectedNode {padding-top:0px; background-color:#fff; color:black; height:16px; border:1px #FFf solid; opacity:0.8;} +.ztree li a.curSelectedNode_Edit {padding-top:0px; background-color:#FFE6B0; color:black; height:16px; border:1px #FFB951 solid; opacity:0.8;} +.ztree li a.tmpTargetNode_inner {padding-top:0px; background-color:#316AC5; color:white; height:16px; border:1px #316AC5 solid; + opacity:0.8; filter:alpha(opacity=80)} +.ztree li a.tmpTargetNode_prev {} +.ztree li a.tmpTargetNode_next {} +.ztree li a input.rename {height:14px; width:80px; padding:0; margin:0; + font-size:12px; border:1px #7EC4CC solid; *border:0px} +.ztree li span {line-height:16px; margin-right:2px} +.ztree li span.button {line-height:0; margin:0; width:16px; height:16px; display: inline-block; vertical-align:middle; + border:0 none; cursor: pointer;outline:none; + background-color:transparent; background-repeat:no-repeat; background-attachment: scroll; + background-image:url("./img/zTreeStandard.png"); *background-image:url("./img/zTreeStandard.gif")} + +.ztree li span.button.chk {width:13px; height:13px; margin:0 3px 0 0; cursor: auto} +.ztree li span.button.chk.checkbox_false_full {background-position:0 0} +.ztree li span.button.chk.checkbox_false_full_focus {background-position:0 -14px} +.ztree li span.button.chk.checkbox_false_part {background-position:0 -28px} +.ztree li span.button.chk.checkbox_false_part_focus {background-position:0 -42px} +.ztree li span.button.chk.checkbox_false_disable {background-position:0 -56px} +.ztree li span.button.chk.checkbox_true_full {background-position:-14px 0} +.ztree li span.button.chk.checkbox_true_full_focus {background-position:-14px -14px} +.ztree li span.button.chk.checkbox_true_part {background-position:-14px -28px} +.ztree li span.button.chk.checkbox_true_part_focus {background-position:-14px -42px} +.ztree li span.button.chk.checkbox_true_disable {background-position:-14px -56px} +.ztree li span.button.chk.radio_false_full {background-position:-28px 0} +.ztree li span.button.chk.radio_false_full_focus {background-position:-28px -14px} +.ztree li span.button.chk.radio_false_part {background-position:-28px -28px} +.ztree li span.button.chk.radio_false_part_focus {background-position:-28px -42px} +.ztree li span.button.chk.radio_false_disable {background-position:-28px -56px} +.ztree li span.button.chk.radio_true_full {background-position:-42px 0} +.ztree li span.button.chk.radio_true_full_focus {background-position:-42px -14px} +.ztree li span.button.chk.radio_true_part {background-position:-42px -28px} +.ztree li span.button.chk.radio_true_part_focus {background-position:-42px -42px} +.ztree li span.button.chk.radio_true_disable {background-position:-42px -56px} + +.ztree li span.button.switch {width:18px; height:18px} +.ztree li span.button.root_open{background-position:-92px -54px} +.ztree li span.button.root_close{background-position:-74px -54px} +.ztree li span.button.roots_open{background-position:-92px 0} +.ztree li span.button.roots_close{background-position:-74px 0} +.ztree li span.button.center_open{background-position:-92px -18px} +.ztree li span.button.center_close{background-position:-74px -18px} +.ztree li span.button.bottom_open{background-position:-92px -36px} +.ztree li span.button.bottom_close{background-position:-74px -36px} +.ztree li span.button.noline_open{background-position:-92px -72px} +.ztree li span.button.noline_close{background-position:-74px -72px} +.ztree li span.button.root_docu{ background:none;} +.ztree li span.button.roots_docu{background-position:-56px 0} +.ztree li span.button.center_docu{background-position:-56px -18px} +.ztree li span.button.bottom_docu{background-position:-56px -36px} +.ztree li span.button.noline_docu{ background:none;} + +.ztree li span.button.ico_open{margin-right:2px; background-position:-110px -16px; vertical-align:top; *vertical-align:middle} +.ztree li span.button.ico_close{margin-right:2px; background-position:-110px 0; vertical-align:top; *vertical-align:middle} +.ztree li span.button.ico_docu{margin-right:2px; background-position:-110px -32px; vertical-align:top; *vertical-align:middle} +.ztree li span.button.edit {margin-right:2px; background-position:-110px -48px; vertical-align:top; *vertical-align:middle} +.ztree li span.button.remove {margin-right:2px; background-position:-110px -64px; vertical-align:top; *vertical-align:middle} + +.ztree li span.button.ico_loading{margin-right:2px; background:url(./img/loading.gif) no-repeat scroll 0 0 transparent; vertical-align:top; *vertical-align:middle} + +ul.tmpTargetzTree {background-color:#FFE6B0; opacity:0.8; filter:alpha(opacity=80)} + +span.tmpzTreeMove_arrow {width:16px; height:16px; display: inline-block; padding:0; margin:2px 0 0 1px; border:0 none; position:absolute; + background-color:transparent; background-repeat:no-repeat; background-attachment: scroll; + background-position:-110px -80px; background-image:url("./img/zTreeStandard.png"); *background-image:url("./img/zTreeStandard.gif")} + +ul.ztree.zTreeDragUL {margin:0; padding:0; position:absolute; width:auto; height:auto;overflow:hidden; background-color:#cfcfcf; border:1px #00B83F dotted; opacity:0.8; filter:alpha(opacity=80)} +.zTreeMask {z-index:10000; background-color:#cfcfcf; opacity:0.0; filter:alpha(opacity=0); position:absolute} + +/* level style*/ +/*.ztree li span.button.level0 { + display:none; +} +.ztree li ul.level0 { + padding:0; + background:none; +}*/ \ No newline at end of file diff --git a/fonts/data_number.ttf b/fonts/data_number.ttf new file mode 100644 index 0000000..32d11fd Binary files /dev/null and b/fonts/data_number.ttf differ diff --git a/images/00.png b/images/00.png new file mode 100644 index 0000000..98614f2 Binary files /dev/null and b/images/00.png differ diff --git a/images/01.png b/images/01.png new file mode 100644 index 0000000..6a8c343 Binary files /dev/null and b/images/01.png differ diff --git a/images/02.png b/images/02.png new file mode 100644 index 0000000..aca747d Binary files /dev/null and b/images/02.png differ diff --git a/images/03.png b/images/03.png new file mode 100644 index 0000000..090d4ff Binary files /dev/null and b/images/03.png differ diff --git a/images/04.png b/images/04.png new file mode 100644 index 0000000..889b8ac Binary files /dev/null and b/images/04.png differ diff --git a/images/2Dmap.png b/images/2Dmap.png new file mode 100644 index 0000000..ee65b92 Binary files /dev/null and b/images/2Dmap.png differ diff --git a/images/Satellite_cloud_map.png b/images/Satellite_cloud_map.png new file mode 100644 index 0000000..f15c3c3 Binary files /dev/null and b/images/Satellite_cloud_map.png differ diff --git a/images/Vector_map.png b/images/Vector_map.png new file mode 100644 index 0000000..ce36657 Binary files /dev/null and b/images/Vector_map.png differ diff --git a/images/map.png b/images/map.png new file mode 100644 index 0000000..3df6fb1 Binary files /dev/null and b/images/map.png differ diff --git a/images/mapIcon/MapLocation.png b/images/mapIcon/MapLocation.png new file mode 100644 index 0000000..aff5fe0 Binary files /dev/null and b/images/mapIcon/MapLocation.png differ diff --git a/images/mapIcon/event.png b/images/mapIcon/event.png new file mode 100644 index 0000000..aff5fe0 Binary files /dev/null and b/images/mapIcon/event.png differ diff --git a/images/mapIcon/huoche.png b/images/mapIcon/huoche.png new file mode 100644 index 0000000..8d39327 Binary files /dev/null and b/images/mapIcon/huoche.png differ diff --git a/images/mapIcon/policeCar32.png b/images/mapIcon/policeCar32.png new file mode 100644 index 0000000..8d53d1a Binary files /dev/null and b/images/mapIcon/policeCar32.png differ diff --git a/images/mapIcon/policeman32.png b/images/mapIcon/policeman32.png new file mode 100644 index 0000000..8a5a864 Binary files /dev/null and b/images/mapIcon/policeman32.png differ diff --git a/images/mapIcon/publicCamera.png b/images/mapIcon/publicCamera.png new file mode 100644 index 0000000..ee08799 Binary files /dev/null and b/images/mapIcon/publicCamera.png differ diff --git a/images/mapIcon/枪机32.png b/images/mapIcon/枪机32.png new file mode 100644 index 0000000..9d38f92 Binary files /dev/null and b/images/mapIcon/枪机32.png differ diff --git a/images/mapIcon/球机32.png b/images/mapIcon/球机32.png new file mode 100644 index 0000000..6622e48 Binary files /dev/null and b/images/mapIcon/球机32.png differ diff --git a/img/1_03.png b/img/1_03.png new file mode 100644 index 0000000..cfb42b6 Binary files /dev/null and b/img/1_03.png differ diff --git a/img/bg.png b/img/bg.png new file mode 100644 index 0000000..d44a699 Binary files /dev/null and b/img/bg.png differ diff --git a/img/bg01.png b/img/bg01.png new file mode 100644 index 0000000..f6c3b19 Binary files /dev/null and b/img/bg01.png differ diff --git a/img/car_guiji.png b/img/car_guiji.png new file mode 100644 index 0000000..041f772 Binary files /dev/null and b/img/car_guiji.png differ diff --git a/img/chose_btn.png b/img/chose_btn.png new file mode 100644 index 0000000..6c68d95 Binary files /dev/null and b/img/chose_btn.png differ diff --git a/img/data_bg - 副本 - 副本.png b/img/data_bg - 副本 - 副本.png new file mode 100644 index 0000000..e2b2585 Binary files /dev/null and b/img/data_bg - 副本 - 副本.png differ diff --git a/img/data_bg.png b/img/data_bg.png new file mode 100644 index 0000000..5b21fc8 Binary files /dev/null and b/img/data_bg.png differ diff --git a/img/first_title.png b/img/first_title.png new file mode 100644 index 0000000..54f8e65 Binary files /dev/null and b/img/first_title.png differ diff --git a/img/i01.png b/img/i01.png new file mode 100644 index 0000000..e9e6d9b Binary files /dev/null and b/img/i01.png differ diff --git a/img/i02.png b/img/i02.png new file mode 100644 index 0000000..77d31a2 Binary files /dev/null and b/img/i02.png differ diff --git a/img/images/pic_ico_01.png b/img/images/pic_ico_01.png new file mode 100644 index 0000000..6900ead Binary files /dev/null and b/img/images/pic_ico_01.png differ diff --git a/img/images/pic_ico_02.png b/img/images/pic_ico_02.png new file mode 100644 index 0000000..db6794e Binary files /dev/null and b/img/images/pic_ico_02.png differ diff --git a/img/images/pic_ico_03.png b/img/images/pic_ico_03.png new file mode 100644 index 0000000..2d2b720 Binary files /dev/null and b/img/images/pic_ico_03.png differ diff --git a/img/index_bg.png b/img/index_bg.png new file mode 100644 index 0000000..a4f35cf Binary files /dev/null and b/img/index_bg.png differ diff --git a/img/left_nav.png b/img/left_nav.png new file mode 100644 index 0000000..b71512d Binary files /dev/null and b/img/left_nav.png differ diff --git a/img/leftbg01.png b/img/leftbg01.png new file mode 100644 index 0000000..a48e0e3 Binary files /dev/null and b/img/leftbg01.png differ diff --git a/img/map_tool_bg.png b/img/map_tool_bg.png new file mode 100644 index 0000000..6fc9201 Binary files /dev/null and b/img/map_tool_bg.png differ diff --git a/img/map_tool_re.png b/img/map_tool_re.png new file mode 100644 index 0000000..dea683b Binary files /dev/null and b/img/map_tool_re.png differ diff --git a/img/pic0.png b/img/pic0.png new file mode 100644 index 0000000..c30cd26 Binary files /dev/null and b/img/pic0.png differ diff --git a/img/pic_ico.png b/img/pic_ico.png new file mode 100644 index 0000000..d54a278 Binary files /dev/null and b/img/pic_ico.png differ diff --git a/img/pushmessage_class.png b/img/pushmessage_class.png new file mode 100644 index 0000000..ba8d4b6 Binary files /dev/null and b/img/pushmessage_class.png differ diff --git a/img/pushmessage_level01.png b/img/pushmessage_level01.png new file mode 100644 index 0000000..eb39ed5 Binary files /dev/null and b/img/pushmessage_level01.png differ diff --git a/img/pushmessage_level02.png b/img/pushmessage_level02.png new file mode 100644 index 0000000..5e6599c Binary files /dev/null and b/img/pushmessage_level02.png differ diff --git a/img/pushmessage_level03.png b/img/pushmessage_level03.png new file mode 100644 index 0000000..b8959bb Binary files /dev/null and b/img/pushmessage_level03.png differ diff --git a/img/pushmessage_localize_01.png b/img/pushmessage_localize_01.png new file mode 100644 index 0000000..079cae4 Binary files /dev/null and b/img/pushmessage_localize_01.png differ diff --git a/img/pushmessage_localize_02.png b/img/pushmessage_localize_02.png new file mode 100644 index 0000000..64c8a3f Binary files /dev/null and b/img/pushmessage_localize_02.png differ diff --git a/img/search_eddit.png b/img/search_eddit.png new file mode 100644 index 0000000..986b979 Binary files /dev/null and b/img/search_eddit.png differ diff --git a/img/search_location.png b/img/search_location.png new file mode 100644 index 0000000..bb00962 Binary files /dev/null and b/img/search_location.png differ diff --git a/img/second_title.png b/img/second_title.png new file mode 100644 index 0000000..c2880c2 Binary files /dev/null and b/img/second_title.png differ diff --git a/img/tit01s.png b/img/tit01s.png new file mode 100644 index 0000000..e158d06 Binary files /dev/null and b/img/tit01s.png differ diff --git a/img/tool.png b/img/tool.png new file mode 100644 index 0000000..108d145 Binary files /dev/null and b/img/tool.png differ diff --git a/img/tool_bg.png b/img/tool_bg.png new file mode 100644 index 0000000..de86587 Binary files /dev/null and b/img/tool_bg.png differ diff --git a/img/weher01.png b/img/weher01.png new file mode 100644 index 0000000..9a6c3e7 Binary files /dev/null and b/img/weher01.png differ diff --git a/img/zoom_inon_01.png b/img/zoom_inon_01.png new file mode 100644 index 0000000..18878e9 Binary files /dev/null and b/img/zoom_inon_01.png differ diff --git a/img/zoom_inon_02.png b/img/zoom_inon_02.png new file mode 100644 index 0000000..9ebc72c Binary files /dev/null and b/img/zoom_inon_02.png differ diff --git a/img/临时.png b/img/临时.png new file mode 100644 index 0000000..174717d Binary files /dev/null and b/img/临时.png differ diff --git a/index.html b/index.html new file mode 100644 index 0000000..c7170f2 --- /dev/null +++ b/index.html @@ -0,0 +1,1476 @@ + + + + + + + + + + + + + + + + 大数据管理平台 + + + +
+
+ + +
+
+
+ +
+
+
+
+
出勤情况
+

+
+
+
+
+
安全公告
+
+参考标准:
+   CB/T3366-2018、Q/DS 1529-2022、Q/DS 2523-2016
+技术要求:
+   1.内表面喷砂:除锈等级Sa2.5,粗糙度70μm~150μm。
+   2.聚乙烯涂覆温度:250℃~300℃,加热炉设定温度:310℃~350℃。
+   3.聚乙烯涂层:管件内壁1mm以上,法兰水线面1~2mm。
+                        
+
+
+ +
+
+
+
+
+ +
+
+
+ +
+
+
月度计划
+
+
+
+
+ +
+
+
+
+
作业计划
+
+
+
+
+
+
+ +
+ +
+
+
本月计划&产量(张):
+
+ +
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + +
作业区船号批量套料图号完成时间完成人
一区G175k-4480059102024/10/314800
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ +
+
+
xxxxx构成因素占比:
+
+
+
+
+ +
    +
  • +
  • xxxxx综合
  • +
  • 652
  • +
  • ↑  1.2%
  • +
+
    +
  • +
  • 统计一
  • +
  • 97
  • +
  • ↓  0.3%
  • +
+
    +
  • +
  • 统计二
  • +
  • 423
  • +
  • ↑  1%
  • +
+
    +
  • +
  • 统计三
  • +
  • 218
  • +
  • ↑  0.3%
  • +
+ +
+ +
+
+
+ +
+ + + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/js/Home_page.js b/js/Home_page.js new file mode 100644 index 0000000..9d067aa --- /dev/null +++ b/js/Home_page.js @@ -0,0 +1,91 @@ +/** + * Created by Administrator on 2017/10/26. + */ + + +// Xabin + + + + +//应急事件处置 +$(".message_scroll").click(function () { + // EventClick(); + eventHandle(); +}); + +// 地图切换buttn-start +$(".map_change").click(function () { + $(this).addClass("map_change_chose"); + $(this).siblings().removeClass("map_change_chose") + $(this).show() + $(this).siblings().hide() +}) +$(".map_change_box").mouseenter(function () { + $(".map_change").show() +}).mouseleave(function () { + $(".map_change_chose").show() + $(".map_change_chose").siblings().hide() +}) +// 地图切换buttn-end +$(".tab_msg").click(function () { + $(this).addClass("tab_msg_current"); + $(this).siblings().removeClass("tab_msg_current") +}) +$(".tab_msg01").click(function () { + $(".table1").show() + $(".table2").hide() +}) +$(".tab_msg02").click(function () { + $(".table2").show() + $(".table1").hide() +}) +$(".video_around").click(function () { + $(this).siblings().removeClass("video_around_chose") + $(this).addClass("video_around_chose") +}) +$(".display_type_funct_sure").click(function () { + $(".display_box").hide() +}) +$(".display_type_btn").click(function () { + $(".display_type_box").show() + $(".city_chose_box").hide() +}) +$(".city_chose_btn").click(function () { + $(".city_chose_box").show() + $(".display_type_box").hide() +}) +//轮播推送隐藏功能 +$(".scroll_tool_outbox").mouseenter(function(){ + $(".scroll_tool_outbox").addClass("scroll_tool_outbox_current") +}); +$(".scroll_tool_outbox").mouseleave(function(){ + $(".scroll_tool_outbox").removeClass("scroll_tool_outbox_current") +}) +//轨迹回放功能激活 +$(".search_guiji").click(function () { + $("#divRouteReview").show(); +}); +$(".close_playback").click(function () { + $(".trajectory_box").hide(); +}); +$("#btnBuffer").click(function () { + $("#divBufferSetting").show(); +}); +$(".total_chose_pl").click(function () { + $(".total_chose_box").show() +}) +$(".total_chose_fr").click(function () { + $(".total_chose_box").hide() +}) +// Xabin_end + + + + + + + + + + diff --git a/js/MainMap.js b/js/MainMap.js new file mode 100644 index 0000000..c7e2a93 --- /dev/null +++ b/js/MainMap.js @@ -0,0 +1,507 @@ +//青岛 研 锦 网络科技有限公司 版权所有 + +var layer_vector, layer_image, layer_POI, map,layer_SC; +var layer_RouteLine, layer_RoutePoi; +var graphicLayer_RouteLine; +var redColor, blueColor; +var geoService; + +var layerUrl_cd_vector = "http://125.70.9.221:8020/cdmap/rest/services/BASEMAP/Vector/MapServer"; +var layerUrl_cd_raster = "http://125.70.9.221:8020/cdmap/rest/services/BASEMAP/Raster/MapServer"; +var layerUrl_POI = "http://123.146.170.78:6080/arcgis/rest/services/SCPOI2/MapServer/1"; +var layerUrl_SC = "http://123.146.170.78:6080/arcgis/rest/services/SCPOI2/MapServer/"; + + + +dojoConfig = { + parseOnLoad: true, + packages: [{ + name: 'tdlib', + location: this.location.pathname.replace(/\/[^/]+$/, "") + "/js/tdlib" + }] +}; +require(["esri/map", "tdlib/TDTLayer", "tdlib/TDTRasterLayer", "tdlib/TDTAnnoLayer", "esri/layers/FeatureLayer","esri/InfoTemplate", + "esri/geometry/Point", "esri/layers/GraphicsLayer", "esri/Color","esri/layers/ArcGISDynamicMapServiceLayer", "dojo/domReady!"], + function (Map, TDTLayer, TDTRasterLayer, TDTAnnoLayer, FeatureLayer, InfoTemplate, Point, GraphicsLayer, Color, ArcGISDynamicMapServiceLayer) { + + var pt = new Point(104.06464933797728, 30.66198193058378); + map = new Map("divMap", { logo: false, center: pt, zoom: 7 }); + + layer_vector = new TDTLayer(); + layer_vector.id = "tianDiTu_vec"; + layer_vector.visible = false; + map.addLayer(layer_vector); + layer_image = new TDTRasterLayer(); + layer_image.id = "tianDiTu_img"; + layer_image.visible = false; + map.addLayer(layer_image); + + layer_SC = new ArcGISDynamicMapServiceLayer(layerUrl_SC, { + useMapImage: true, + }); + layer_SC.setVisibleLayers([]); + map.addLayer(layer_SC); + + + var template_POI = { + title: "${NAME}", + content: "" + + "" + + "
  • 名称:${NAME}
  • 类型:${CTYPE}
  • 区域:${CITY}-${DISTRICT}
  • 电话:${TEL}
  • 地址:${ADDRESS}
" + }; + var infoTemplate_POI = new InfoTemplate(template_POI); + + + layer_POI = new FeatureLayer(layerUrl_POI,{ + definitionExpression: "CTYPE='1'", + infoTemplate: infoTemplate_POI, + outFields: ["*"] + }); + map.addLayer(layer_POI); + + graphicLayer_RouteLine = new GraphicsLayer({ id: "graphicLayer_RouteLine" }); + map.addLayer(graphicLayer_RouteLine); + map.on('click', function (event) { + if (isSetBufferCenter) { + $("#txtBufferX").val(event.mapPoint.x); + $("#txtBufferY").val(event.mapPoint.y); + showEventPoint(event.mapPoint.x, event.mapPoint.y); + isSetBufferCenter = false; + } + //var txt = $("#txtCoord").val()+ '['+ event.mapPoint.x + ',' + event.mapPoint.y + ']' + var txt = event.mapPoint.x + ',' + event.mapPoint.y; + $("#txtCoord").val(txt); + }); + + showLayer('vector'); + + + //初始化颜色 + redColor = new Color([255, 0, 0]); + blueColor = new Color([0, 0, 255]); + + } + ); + + +function showLayer(layerType) { + + layer_image.setVisibility(false); + layer_vector.setVisibility(false); + + switch (layerType) { + case 'vector': + layer_vector.setVisibility(true); + break; + case 'image': + layer_image.setVisibility(true); + break; + } +} + +function addressQuery() { + var queryValue = $("#txtQuery").val(); + var queryUrl = "http://www.scgis.net.cn/imap/imapserver/defaultrest/services/Newscnamesearch//Search?keyname=" + queryValue + "&typeCode=&DiQuKey=&QuXianKey=&isOnlyName=false&token=i44984NioeS2YQXAEi-NWImtfxFPNSx67E928s7whNAS9nH0uwTuO_YsKaxDdaxtdXi83flyMrcC9oG5S32Duw..&SearchEnvelope=&StartIndex=0&StopIndex=1000&ST=92916&callback=dojo.io.script.jsonp_dojoIoScript4._jsonpCallback"; + $.ajax({ + url: queryUrl, + success: function (data) { + data = data.replace('dojo.io.script.jsonp_dojoIoScript4._jsonpCallback(', ''); + data = data.replace(');', ''); + var result = eval('(' + data + ')'); + alert(result.message.features.length); + var txt = ""; + map.graphics.clear(); + //for (i = 0; i < result.message.features.length; i++) { + // txt += result.message.features[i].attributes[3] + ','; + // var feature = result.message.features[i]; + // var attr = { name: feature.attributes[3], type: feature.attributes[4], address: feature.attributes[8], pic: feature.attributes[10] }; + // addPoint(feature.attributes[1], feature.attributes[2], view.spatialReference, attr); + //} + txt = JSON.stringify(result.message.columns); + txt = txt + JSON.stringify(result.message.features); + $("#txtCoord").val(txt); + } + }) + +} + + + +//添加点位 +function addPointGraphic(x, y, pic) { + require(["esri/symbols/PictureMarkerSymbol", "esri/symbols/TextSymbol", "esri/geometry/Point", "esri/graphic"], function (PictureMarkerSymbol, TextSymbol, Point, Graphic) { + + var pt = new Point(x,y,map.spatialReference ); + + var symbol = new PictureMarkerSymbol(pic,32,32); + + var ptGraphic = new Graphic(pt, symbol ); + + map.graphics.add(ptGraphic); + + }); +} +//青岛研锦网络科技有限公司 版权所有 +//添加显示点 +function addPoint(x, y, spatialReference, attri) { + + require(["esri/symbols/PictureMarkerSymbol", "esri/symbols/TextSymbol", "esri/geometry/Point", "esri/graphic", "esri/InfoTemplate"], function (PictureMarkerSymbol, TextSymbol, Point, Graphic, InfoTemplate) { + + var pt = new Point({ + x: x, + y: y, + spatialReference: spatialReference + }); + + var symbol = new PictureMarkerSymbol( "images/mapIcon/qiangji32.png",32,32); + + var infoTemplate = new InfoTemplate("${NAME}","名称:${NAME}
类型:${TYPE}
地址:${ADDRESS}"); + + var polylineGraphic = new Graphic(pt,symbol, attri,infoTemplate); + + map.graphics.add(polylineGraphic); + + var textSymbol = new TextSymbol({ + color: "white", + backgroundColor: "green", + haloColor: "black", + haloSize: "1px", + text: attri.name, + xoffset: 3, + yoffset: 3, + font: { + size: 12, + family: "sans-serif", + weight: "bolder" + } + }); + var txtGraphic = new Graphic( pt, textSymbol ); + map.graphics.add(txtGraphic); + + }); +} + +//添加显示线 +function addLine(pts, spatialReference,color) { + require(["esri/geometry/Polyline", "esri/symbols/SimpleLineSymbol", "esri/Color", "esri/graphic"], function (Polyline, SimpleLineSymbol, Color,Graphic) { + var paths = [pts]; + + var line = new Polyline({ + paths: paths, + spatialReference: spatialReference + }); + + var symbol = new SimpleLineSymbol( +    SimpleLineSymbol.STYLE_SOLID, +    color, +    3 +  ); + + var lineGraphic = new Graphic(line, symbol); + + graphicLayer_RouteLine.add(lineGraphic); + map.setExtent(line.getExtent().expand(3)); + + }); +} + +//专题图显示 +//仓库-1,加油站-2,派出所-3,危化品企业-4,学校-5,医疗卫生-6,应急避难场所-7 +$("#layerList li input").change(function (evt) { + var where = ""; + var layerCheckes = $("#layerList li input"); + for (i = 0; i < layerCheckes.length; i++) { + if (layerCheckes[i].checked) { + where += layerCheckes[i].id.replace('zt_', '') + ","; + } + } + if (where == "") + where = "CTYPEID=-1"; + else + where = "CTYPEID in (" + where.substring(0, where.length - 1) + ")"; + + layer_POI.setDefinitionExpression(where); +}); + +//轨迹回放 +var timer_Route; +var iPoint_Route; +//实际行走险路 +var points_Route = [[104.12151233673112, 30.668625259399512], [104.11966697692887, 30.667809867858985], [104.11842243194596, 30.667251968383887], [104.1170062255861, 30.666822814941504], [104.11606208801285, 30.66639366149912], [104.1147746276857, 30.666050338745215], [104.11378757476822, 30.665792846679786], [104.11211387634293, 30.66519203186045], [104.11116973876969, 30.66493453979502], [104.11172763824479, 30.66347541809092], [104.11211387634293, 30.6624454498292], [104.11228553771988, 30.661329650879004], [104.11228553771988, 30.659870529174903], [104.11219970703141, 30.65866889953623], [104.11215679168721, 30.65656604766857], [104.11215679168721, 30.655192756652944], [104.11215679168721, 30.654162788391226], [104.11189929962178, 30.653347396850698], [104.11138431549092, 30.652188682556265], [104.11052600860616, 30.65055789947521], [104.10971061706567, 30.649141693115368], [104.10885231018091, 30.64759674072279], [104.10765068054224, 30.645708465576305], [104.10662071228052, 30.64459266662611], [104.10524742126489, 30.64313354492201], [104.10456077575708, 30.641416931152477], [104.10370246887231, 30.639700317382946], [104.10258666992212, 30.63832702636732], [104.1019000244143, 30.63661041259779], [104.10078422546411, 30.635237121582165], [104.1000975799563, 30.633949661255016], [104.09923927307153, 30.632490539550915], [104.09786598205591, 30.63085975646986], [104.09709350585962, 30.62940063476576], [104.09520523071315, 30.626654052734516], [104.09383193969752, 30.62528076171889], [104.09314529418971, 30.624250793457172], [104.09211532592799, 30.623907470703266], [104.09039871215846, 30.62356414794936], [104.08816711425807, 30.623392486572406], [104.08490554809596, 30.623220825195453], [104.08198730468776, 30.622877502441547], [104.08112899780299, 30.622877502441547], [104.08061401367213, 30.621160888672016], [104.08009902954127, 30.619100952148578], [104.07975570678737, 30.61704101562514], [104.07924072265651, 30.614723587036273], [104.07829658508327, 30.611891174316547], [104.07821075439479, 30.610689544677875], [104.0779532623294, 30.609402084350727], [104.07812492370635, 30.608200454712055], [104.07812492370635, 30.606998825073383], [104.07778160095245, 30.60528221130385], [104.07718078613311, 30.60356559753432], [104.07743827819854, 30.602707290649555], [104.0779532623294, 30.60184898376479], [104.07846824646026, 30.60081901550307], [104.07863990783721, 30.60030403137221], [104.07881156921417, 30.599445724487445], [104.07881156921417, 30.598415756225727], [104.07863990783721, 30.597729110717914], [104.0779532623294, 30.5970424652101]]; + +//规定运输线路 +var points_Route_Must = [[104.1214522489628, 30.668844129226763], [104.12299720135537, 30.669530774734575], [104.12454215374795, 30.670217420242388], [104.12625876751748, 30.671075727127153], [104.1284045347294, 30.672105695388872], [104.13106528607217, 30.673307325027544], [104.13312522259561, 30.674251462600786], [104.13381186810342, 30.674852277420122], [104.13484183636514, 30.675023938797075], [104.13655845013467, 30.673993970535356], [104.13776007977334, 30.67313566365059], [104.13930503216592, 30.672277356765825], [104.14102164593545, 30.671075727127153], [104.14308158245889, 30.670217420242388], [104.1452273496708, 30.66987409748848], [104.14754477825967, 30.670045758865434], [104.14969054547159, 30.67038908161934], [104.15179339733926, 30.670732404373236], [104.15320960369912, 30.670818235061713], [104.15522662487832, 30.67116155781562], [104.15702906933633, 30.67141904988105], [104.1576727994999, 30.67141904988105], [104.15883151379434, 30.671247388504096], [104.15977565136758, 30.670732404373236], [104.16037646618692, 30.66991701283271], [104.16059104290811, 30.668715383194037], [104.16054812756387, 30.667513753555365], [104.16020480480996, 30.665840055130072], [104.15788737622108, 30.660518552444522], [104.15582743969765, 30.655712033889834], [104.15514079418983, 30.650218869827334], [104.15376750317421, 30.648158933303897], [104.15239421215858, 30.644039060257022], [104.15102092114296, 30.64060583271796], [104.14964763012733, 30.637515927932803], [104.14690104809608, 30.633739377639834], [104.14621440258827, 30.630306150100772], [104.14346782055702, 30.62687292256171], [104.1469638285795, 30.63422600206069], [104.14559053756388, 30.631136097275533], [104.14490389205606, 30.628389515244283], [104.14353060104044, 30.625642933213033], [104.14215731002481, 30.62220970567397], [104.14215731002481, 30.61946312364272], [104.13838075973185, 30.616373218857564], [104.13700746871622, 30.612596668564596], [104.1359775004545, 30.610536732041158], [104.13391756393106, 30.608133472763814], [104.13151430465372, 30.60573021348647], [104.12842439986856, 30.605043567978658], [104.12430452682169, 30.60298363145522], [104.12155794479044, 30.601610340439596], [104.11881136275919, 30.60126701768569], [104.11606478072794, 30.599550403916158], [104.11091493941935, 30.599893726670064], [104.10782503463419, 30.599550403916158], [104.10507845260294, 30.598863758408346], [104.10164522506388, 30.59852043565444], [104.09855532027872, 30.59852043565444], [104.09546541549356, 30.59852043565444], [104.09271883346231, 30.59749046739272], [104.09065889693888, 30.59749046739272], [104.08859896041544, 30.59852043565444], [104.08585237838419, 30.59852043565444], [104.08310579635294, 30.599550403916158], [104.08035921432169, 30.599893726670064], [104.07932924605996, 30.600022472702776], [104.07872843124062, 30.60019413407973], [104.0788142619291, 30.599722065293108], [104.07868551589638, 30.598992504441057], [104.07864260055214, 30.598220028244768], [104.07847093917519, 30.597619213425432], [104.07799887038857, 30.597318806015764]]; + +function showRoute() { + iPoint_Route = 0; + map.graphics.clear(); + layer_POI.setDefinitionExpression("CTYPEID=-1"); + //绘制轨迹线 + addLine(points_Route, map.spatialReference,blueColor); + + //绘制审批线路 + addLine(points_Route_Must, map.spatialReference, redColor); + + //启动车辆 + timer_Route = setInterval(flashRoute, 2000); +} +//青岛研锦网络科技有限公司 版权所有 + +//刷新轨迹位置 +function flashRoute() { + map.graphics.clear(); + if (iPoint_Route < points_Route.length) { + addPointGraphic(points_Route[iPoint_Route][0], points_Route[iPoint_Route][1], "images/mapIcon/huoche.png"); + iPoint_Route++; + } else { + clearInterval(timer_Route); + } +} + +//全图 +function zoomFull() { + require(["esri/geometry/Point"], function (Point) { + var pt = new Point({ + x: 102.1750010681153, + y: 29.958719635009814, + spatialReference: map.spatialReference + }); + map.centerAndZoom(pt, 5); + }); +} + +//放大 +function zoomOut() { + var zm = map.getZoom() + 1; + if (zm <20) + map.setZoom(zm); +} + +//缩小 +function zoomIn() { + var zm = map.getZoom() - 1; + if (zm > 4) + map.setZoom(zm); +} + + + +//-----------------------------------------城市定位------------------------------ + +$("#ulCity li").click(function () { + cityLocation(this.innerText); +}); + +var cityCenterData = [{ name: '成都市', coordX: 104.06464933797728, coordY: 30.66198193058378 }, +{ name: '德阳市', coordX: 104.39616182267683, coordY: 31.128626242838894 }, +{ name: '广汉市', coordX: 104.27720050416442, coordY: 30.98125495072465 }, +{ name: '什邡市', coordX: 104.16931136018156, coordY: 31.128094096761312 }, +{ name: '绵阳市', coordX: 104.71953866976015, coordY: 31.49196533513092 }, +{ name: '广元市', coordX: 105.8411551951016, coordY: 32.432445904973584 }, +{ name: '巴中市', coordX: 106.7548743597749, coordY: 31.857723620173256 }, +{ name: '达州市', coordX: 107.48052099925064, coordY: 31.219486720196677 }, +{ name: '自贡市', coordX: 104.77421082761674, coordY: 29.351811088249352 }, +{ name: '泸州市', coordX: 105.43799099601415, coordY: 28.875347847910863 }, +{ name: '宜宾市', coordX: 104.61442845147651, coordY: 28.77949224084179 }, +{ name: '乐山市', coordX: 103.76477383864666, coordY: 29.570748332166442 }, +{ name: '眉山市', coordX: 103.8388628847487, coordY: 30.057785987714666 }, +{ name: '雅安市', coordX: 103.01869917051499, coordY: 29.994477273989844 }, +{ name: '甘孜州', coordX: 101.96085326462626, coordY: 30.036053673370464 }, +{ name: '阿坝州', coordX: 102.22195024516553, coordY: 31.90058805220809 }, +{ name: '凉山州', coordX: 102.25959586068651, coordY: 27.883986689826066 }, +{ name: '攀枝花市', coordX: 101.70856287209915, coordY: 26.581591822882732 }, +{ name: '广安市', coordX: 106.6307129347292, coordY: 30.46058945850295 }, +{ name: '南充市', coordX: 106.09258885235211, coordY: 30.80133728127757 }, +{ name: '内江市', coordX: 105.05860193954454, coordY: 29.595999533171394 }, +{ name: '资阳市', coordX: 104.63823762986025, coordY: 30.12372097172833 }, +{ name: '遂宁市', coordX: 105.586908738787, coordY: 30.517752717983164 }] + + +function cityLocation(cityName) { + for (i = 0; i < cityCenterData.length; i++) { + if (cityCenterData[i].name == cityName) { + require(["esri/geometry/Point"], function (Point) { + var pt = new Point({ + x: cityCenterData[i].coordX, + y: cityCenterData[i].coordY, + spatialReference: map.spatialReference + }); + map.centerAndZoom(pt, 10); + }); + } + } +} + +//-----------------------------------------城市定位 END------------------------------ +//青岛研锦网络科技有限公司 版权所有 + +//--------------------------------------热力图分析------------------------------------- + +function showHeatMap() { + require([ +        "esri/InfoTemplate", +        "esri/layers/FeatureLayer", +        "esri/map", +        "esri/renderers/HeatmapRenderer", +        "dojo/domReady!" + ],function (InfoTemplate, FeatureLayer, Map, HeatmapRenderer) { + + var infoTemplate = new InfoTemplate("${NAME}", "名称:${NAME}
类型:${TYPE}
地址:${ADDRESS}"); + + var heatmapFeatureLayerOptions = { + mode: FeatureLayer.MODE_SNAPSHOT, + infoTemplate: infoTemplate, + outFields: ["*"], + definitionExpression: layer_POI.getDefinitionExpression() + }; + + var heatmapFeatureLayer = new FeatureLayer(layerUrl_POI, heatmapFeatureLayerOptions); + var heatmapRenderer = new HeatmapRenderer(); + heatmapFeatureLayer.setRenderer(heatmapRenderer); + map.addLayer(heatmapFeatureLayer); + + }); +} + +//--------------------------------------热力图分析 END------------------------------------- + + +//--------------------------------------缓冲区分析------------------------------------- + +var isSetBufferCenter = false; + +function setBufferCenter() { + isSetBufferCenter = true; +} + +function executeBuffer() { + var dis = $("#txtBufferDis").val(); + var bufferX= $("#txtBufferX").val(); + var bufferY = $("#txtBufferY").val(); + bufferX = parseFloat(bufferX); + bufferY = parseFloat(bufferY); + dis = parseFloat(dis); + bufferAnalyst(bufferX, bufferY, dis); +} + +function bufferAnalyst(ptX,ptY, bufferDistance) { + + require(["esri/geometry/Point", "esri/tasks/BufferParameters", "esri/SpatialReference", "dojo/dom", "esri/tasks/GeometryService", "esri/geometry/normalizeUtils" ], + function (Point, BufferParameters, SpatialReference, dom, GeometryService, normalizeUtils) { + + if (geoService == null) { + + geoService = "init"; + + esriConfig.defaults.geometryService = new GeometryService("http://123.146.170.78:6080/arcgis/rest/services/Utilities/Geometry/GeometryServer"); + // proxy 用于跨域 + esriConfig.defaults.io.proxyUrl = "/proxy/"; + esriConfig.defaults.io.alwaysUseProxy = false; + } + + + var params = new BufferParameters(); + var centerPoint = new Point(ptX, ptY, map.spatialReference); + //params.geometries = [centerPoint]; + params.distances = [bufferDistance/100000]; + params.unit = 9102; //GeometryService.UNIT_SQUARE_FEET; + params.bufferSpatialReference = map.spatialReference; + params.outSpatialReference = map.spatialReference; + + normalizeUtils.normalizeCentralMeridian([centerPoint]).then(function (normalizedGeometries) { + var normalizedGeometry = normalizedGeometries[0]; + if (normalizedGeometry.type === "polygon") { + + // 规范化多边形几何操作 + esriConfig.defaults.geometryService.simplify([normalizedGeometry], function (geometries) { + params.geometries = geometries; + + // 进行缓冲操作 + esriConfig.defaults.geometryService.buffer(params, showBuffResult);// ShowBuffer is callback function + }); + } else { + params.geometries = [normalizedGeometry]; + esriConfig.defaults.geometryService.buffer(params, showBuffResult); + } + }); + }); +} + +function showBuffResult(bufferedGeometries) { + + require(["esri/graphic", "esri/symbols/SimpleFillSymbol", "esri/symbols/SimpleLineSymbol", "esri/Color", "dojo/_base/array"], function (Graphic, SimpleFillSymbol, SimpleLineSymbol, Color, array) { + // 设置缓冲区显示样式 + var symbol = new SimpleFillSymbol( + SimpleFillSymbol.STYLE_SOLID, + new SimpleLineSymbol( + SimpleLineSymbol.STYLE_SOLID, + new Color([255, 0, 0, 0.65]), 2), + new Color([255, 0, 0, 0.35]) + ); + // dojo 数组遍历 + array.forEach(bufferedGeometries, function (geometry) { + bufferGeometry = geometry; + map.setExtent(geometry.getExtent().expand(3)); + // 显示地图绘制样式 + var graphic = new Graphic(geometry, symbol); + map.graphics.add(graphic); + }); + }); +} + + +//--------------------------------------缓冲区分析 END------------------------------------- + + +//--------------------------------------应急事件处置------------------------------------- + +function eventHandle() { + require(["esri/geometry/Point", "esri/tasks/BufferParameters", "esri/SpatialReference", "dojo/dom", "esri/tasks/GeometryService", "esri/geometry/normalizeUtils" ], + function (Point, BufferParameters, SpatialReference, dom, GeometryService, normalizeUtils) { + showEventPoint(104.06464933797728, 30.66198193058378); + var where = "CTYPEID in (11,12,13,14)"; + layer_POI.setDefinitionExpression(where); + bufferAnalyst(104.06464933797728, 30.66198193058378, 1000); + + }); +} + +function showEventPoint(ptX, ptY) { + require(["esri/symbols/PictureMarkerSymbol", "esri/graphic", "esri/geometry/Point" + ], function (PictureMarkerSymbol, Graphic, Point) { + map.graphics.clear(); + var centerPoint = new Point(ptX, ptY, map.spatialReference); + //定位点符号 + var symbol_Point = new PictureMarkerSymbol('images/mapIcon/event.png', 32, 32); + map.graphics.add(new Graphic(centerPoint, symbol_Point)); + }); + +} + + +//--------------------------------------应急事件处置 END------------------------------------- +//青岛研锦网络科技有限公司 版权所有 + +//-------------------------------------显示危化品生命周期------------------------------- + +function showLife() { + + clearAll(); + layer_SC.setVisibleLayers([0, 2]); + require(["esri/geometry/Point"], function (Point) { + var pt = new Point({ + x: 104.021, + y: 30.661, + spatialReference: map.spatialReference + }); + map.centerAndZoom(pt, 10); + }); + clearInterval(timer_Route); +} + + +function clearAll() { + layer_SC.setVisibleLayers([]); + layer_POI.setVisibility(false); + map.graphics.clear(); +} \ No newline at end of file diff --git a/js/artDialog/artDialog.js b/js/artDialog/artDialog.js new file mode 100644 index 0000000..b40f5a9 --- /dev/null +++ b/js/artDialog/artDialog.js @@ -0,0 +1,556 @@ +/*! + * artDialog 4.1.7 + * Date: 2013-03-03 08:04 + * http://code.google.com/p/artdialog/ + * (c) 2009-2012 TangBin, http://www.planeArt.cn + * + * This is licensed under the GNU LGPL, version 2.1 or later. + * For details, see: http://creativecommons.org/licenses/LGPL/2.1/ + */ +(function (e, t) { + function h(e, t, n) { + t = t || document, n = n || "*"; + var r = 0, i = 0, s = [], o = t.getElementsByTagName(n), u = o.length, a = new RegExp("(^|\\s)" + e + "(\\s|$)"); + for (; r < u; r++)a.test(o[r].className) && (s[i] = o[r], i++); + return s + } + + function p(r) { + var i = n.expando, s = r === e ? 0 : r[i]; + return s === t && (r[i] = s = ++n.uuid), s + } + + function d() { + if (n.isReady)return; + try { + document.documentElement.doScroll("left") + } catch (e) { + setTimeout(d, 1); + return + } + n.ready() + } + + function v(e) { + return n.isWindow(e) ? e : e.nodeType === 9 ? e.defaultView || e.parentWindow : !1 + } + + var n = e.art = function (e, t) { + return new n.fn.init(e, t) + }, r = !1, i = [], s, o = "opacity" in document.documentElement.style, u = /^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/, a = /[\n\t]/g, f = /alpha\([^)]*\)/i, l = /opacity=([^)]*)/, c = /^([+-]=)?([\d+-.]+)(.*)$/; + return e.$ === t && (e.$ = n), n.fn = n.prototype = { + constructor: n, ready: function (e) { + return n.bindReady(), n.isReady ? e.call(document, n) : i && i.push(e), this + }, hasClass: function (e) { + var t = " " + e + " "; + return (" " + this[0].className + " ").replace(a, " ").indexOf(t) > -1 ? !0 : !1 + }, addClass: function (e) { + return this.hasClass(e) || (this[0].className += " " + e), this + }, removeClass: function (e) { + var t = this[0]; + return e ? this.hasClass(e) && (t.className = t.className.replace(e, " ")) : t.className = "", this + }, css: function (e, r) { + var i, s = this[0], o = arguments[0]; + if (typeof e == "string") { + if (r === t)return n.css(s, e); + e === "opacity" ? n.opacity.set(s, r) : s.style[e] = r + } else for (i in o)i === "opacity" ? n.opacity.set(s, o[i]) : s.style[i] = o[i]; + return this + }, show: function () { + return this.css("display", "block") + }, hide: function () { + return this.css("display", "none") + }, offset: function () { + var e = this[0], t = e.getBoundingClientRect(), n = e.ownerDocument, r = n.body, i = n.documentElement, s = i.clientTop || r.clientTop || 0, o = i.clientLeft || r.clientLeft || 0, u = t.top + (self.pageYOffset || i.scrollTop) - s, a = t.left + (self.pageXOffset || i.scrollLeft) - o; + return {left: a, top: u} + }, html: function (e) { + var r = this[0]; + return e === t ? r.innerHTML : (n.cleanData(r.getElementsByTagName("*")), r.innerHTML = e, this) + }, remove: function () { + var e = this[0]; + return n.cleanData(e.getElementsByTagName("*")), n.cleanData([e]), e.parentNode.removeChild(e), this + }, bind: function (e, t) { + return n.event.add(this[0], e, t), this + }, unbind: function (e, t) { + return n.event.remove(this[0], e, t), this + } + }, n.fn.init = function (e, t) { + var r, i; + t = t || document; + if (!e)return this; + if (e.nodeType)return this[0] = e, this; + if (e === "body" && t.body)return this[0] = t.body, this; + if (e === "head" || e === "html")return this[0] = t.getElementsByTagName(e)[0], this; + if (typeof e == "string") { + r = u.exec(e); + if (r && r[2])return i = t.getElementById(r[2]), i && i.parentNode && (this[0] = i), this + } + return typeof e == "function" ? n(document).ready(e) : (this[0] = e, this) + }, n.fn.init.prototype = n.fn, n.noop = function () { + }, n.isWindow = function (e) { + return e && typeof e == "object" && "setInterval" in e + }, n.isArray = function (e) { + return Object.prototype.toString.call(e) === "[object Array]" + }, n.fn.find = function (e) { + var t, r = this[0], i = e.split(".")[1]; + return i ? document.getElementsByClassName ? t = r.getElementsByClassName(i) : t = h(i, r) : t = r.getElementsByTagName(e), n(t[0]) + }, n.each = function (e, n) { + var r, i = 0, s = e.length, o = s === t; + if (o) { + for (r in e)if (n.call(e[r], r, e[r]) === !1)break + } else for (var u = e[0]; i < s && n.call(u, i, u) !== !1; u = e[++i]); + return e + }, n.data = function (e, r, i) { + var s = n.cache, o = p(e); + return r === t ? s[o] : (s[o] || (s[o] = {}), i !== t && (s[o][r] = i), s[o][r]) + }, n.removeData = function (e, t) { + var r = !0, i = n.expando, s = n.cache, o = p(e), u = o && s[o]; + if (!u)return; + if (t) { + delete u[t]; + for (var a in u)r = !1; + r && delete n.cache[o] + } else delete s[o], e.removeAttribute ? e.removeAttribute(i) : e[i] = null + }, n.uuid = 0, n.cache = {}, n.expando = "@cache" + +(new Date), n.event = { + add: function (e, t, r) { + var i, s, o = n.event, u = n.data(e, "@events") || n.data(e, "@events", {}); + i = u[t] = u[t] || {}, s = i.listeners = i.listeners || [], s.push(r), i.handler || (i.elem = e, i.handler = o.handler(i), e.addEventListener ? e.addEventListener(t, i.handler, !1) : e.attachEvent("on" + t, i.handler)) + }, remove: function (e, t, r) { + var i, s, o, u = n.event, a = !0, f = n.data(e, "@events"); + if (!f)return; + if (!t) { + for (i in f)u.remove(e, i); + return + } + s = f[t]; + if (!s)return; + o = s.listeners; + if (r)for (i = 0; i < o.length; i++)o[i] === r && o.splice(i--, 1); else s.listeners = []; + if (s.listeners.length === 0) { + e.removeEventListener ? e.removeEventListener(t, s.handler, !1) : e.detachEvent("on" + t, s.handler), delete f[t], s = n.data(e, "@events"); + for (var l in s)a = !1; + a && n.removeData(e, "@events") + } + }, handler: function (t) { + return function (r) { + r = n.event.fix(r || e.event); + for (var i = 0, s = t.listeners, o; o = s[i++];)o.call(t.elem, r) === !1 && (r.preventDefault(), r.stopPropagation()) + } + }, fix: function (e) { + if (e.target)return e; + var t = { + target: e.srcElement || document, preventDefault: function () { + e.returnValue = !1 + }, stopPropagation: function () { + e.cancelBubble = !0 + } + }; + for (var n in e)t[n] = e[n]; + return t + } + }, n.cleanData = function (e) { + var t = 0, r, i = e.length, s = n.event.remove, o = n.removeData; + for (; t < i; t++)r = e[t], s(r), o(r) + }, n.isReady = !1, n.ready = function () { + if (!n.isReady) { + if (!document.body)return setTimeout(n.ready, 13); + n.isReady = !0; + if (i) { + var e, t = 0; + while (e = i[t++])e.call(document, n); + i = null + } + } + }, n.bindReady = function () { + if (r)return; + r = !0; + if (document.readyState === "complete")return n.ready(); + if (document.addEventListener)document.addEventListener("DOMContentLoaded", s, !1), e.addEventListener("load", n.ready, !1); else if (document.attachEvent) { + document.attachEvent("onreadystatechange", s), e.attachEvent("onload", n.ready); + var t = !1; + try { + t = e.frameElement == null + } catch (i) { + } + document.documentElement.doScroll && t && d() + } + }, document.addEventListener ? s = function () { + document.removeEventListener("DOMContentLoaded", s, !1), n.ready() + } : document.attachEvent && (s = function () { + document.readyState === "complete" && (document.detachEvent("onreadystatechange", s), n.ready()) + }), n.css = "defaultView" in document && "getComputedStyle" in document.defaultView ? function (e, t) { + return document.defaultView.getComputedStyle(e, !1)[t] + } : function (e, t) { + var r = t === "opacity" ? n.opacity.get(e) : e.currentStyle[t]; + return r || "" + }, n.opacity = { + get: function (e) { + return o ? document.defaultView.getComputedStyle(e, !1).opacity : l.test((e.currentStyle ? e.currentStyle.filter : e.style.filter) || "") ? parseFloat(RegExp.$1) / 100 + "" : 1 + }, set: function (e, t) { + if (o)return e.style.opacity = t; + var n = e.style; + n.zoom = 1; + var r = "alpha(opacity=" + t * 100 + ")", i = n.filter || ""; + n.filter = f.test(i) ? i.replace(f, r) : n.filter + " " + r + } + }, n.each(["Left", "Top"], function (e, t) { + var r = "scroll" + t; + n.fn[r] = function () { + var t = this[0], n; + return n = v(t), n ? "pageXOffset" in n ? n[e ? "pageYOffset" : "pageXOffset"] : n.document.documentElement[r] || n.document.body[r] : t[r] + } + }), n.each(["Height", "Width"], function (e, t) { + var r = t.toLowerCase(); + n.fn[r] = function (e) { + var r = this[0]; + return r ? n.isWindow(r) ? r.document.documentElement["client" + t] || r.document.body["client" + t] : r.nodeType === 9 ? Math.max(r.documentElement["client" + t], r.body["scroll" + t], r.documentElement["scroll" + t], r.body["offset" + t], r.documentElement["offset" + t]) : null : e == null ? null : this + } + }), n.ajax = function (t) { + var r = e.XMLHttpRequest ? new XMLHttpRequest : new ActiveXObject("Microsoft.XMLHTTP"), i = t.url; + if (t.cache === !1) { + var s = +(new Date), o = i.replace(/([?&])_=[^&]*/, "$1_=" + s); + i = o + (o === i ? (/\?/.test(i) ? "&" : "?") + "_=" + s : "") + } + r.onreadystatechange = function () { + r.readyState === 4 && r.status === 200 && (t.success && t.success(r.responseText), r.onreadystatechange = n.noop) + }, r.open("GET", i, 1), r.send(null) + }, n.fn.animate = function (e, t, r, i) { + t = t || 400, typeof r == "function" && (i = r), r = r && n.easing[r] ? r : "swing"; + var s = this[0], o, u, a, f, l, h, p = { + speed: t, easing: r, callback: function () { + o != null && (s.style.overflow = ""), i && i() + } + }; + return p.curAnim = {}, n.each(e, function (e, t) { + p.curAnim[e] = t + }), n.each(e, function (e, t) { + u = new n.fx(s, p, e), a = c.exec(t), f = parseFloat(e === "opacity" || s.style && s.style[e] != null ? n.css(s, e) : s[e]), l = parseFloat(a[2]), h = a[3]; + if (e === "height" || e === "width")l = Math.max(0, l), o = [s.style.overflow, s.style.overflowX, s.style.overflowY]; + u.custom(f, l, h) + }), o != null && (s.style.overflow = "hidden"), this + }, n.timers = [], n.fx = function (e, t, n) { + this.elem = e, this.options = t, this.prop = n + }, n.fx.prototype = { + custom: function (e, t, r) { + function s() { + return i.step() + } + + var i = this; + i.startTime = n.fx.now(), i.start = e, i.end = t, i.unit = r, i.now = i.start, i.state = i.pos = 0, s.elem = i.elem, s(), n.timers.push(s), n.timerId || (n.timerId = setInterval(n.fx.tick, 13)) + }, step: function () { + var e = this, t = n.fx.now(), r = !0; + if (t >= e.options.speed + e.startTime) { + e.now = e.end, e.state = e.pos = 1, e.update(), e.options.curAnim[e.prop] = !0; + for (var i in e.options.curAnim)e.options.curAnim[i] !== !0 && (r = !1); + return r && e.options.callback.call(e.elem), !1 + } + var s = t - e.startTime; + return e.state = s / e.options.speed, e.pos = n.easing[e.options.easing](e.state, s, 0, 1, e.options.speed), e.now = e.start + (e.end - e.start) * e.pos, e.update(), !0 + }, update: function () { + var e = this; + e.prop === "opacity" ? n.opacity.set(e.elem, e.now) : e.elem.style && e.elem.style[e.prop] != null ? e.elem.style[e.prop] = e.now + e.unit : e.elem[e.prop] = e.now + } + }, n.fx.now = function () { + return +(new Date) + }, n.easing = { + linear: function (e, t, n, r) { + return n + r * e + }, swing: function (e, t, n, r) { + return (-Math.cos(e * Math.PI) / 2 + .5) * r + n + } + }, n.fx.tick = function () { + var e = n.timers; + for (var t = 0; t < e.length; t++)!e[t]() && e.splice(t--, 1); + !e.length && n.fx.stop() + }, n.fx.stop = function () { + clearInterval(n.timerId), n.timerId = null + }, n.fn.stop = function () { + var e = n.timers; + for (var t = e.length - 1; t >= 0; t--)e[t].elem === this[0] && e.splice(t, 1); + return this + }, n +})(window), function (e, t, n) { + e.noop = e.noop || function () { + }; + var r, i, s, o, u = 0, a = e(t), f = e(document), l = e("html"), c = document.documentElement, h = t.VBArray && !t.XMLHttpRequest, p = "createTouch" in document && !("onmousemove" in c) || /(iPhone|iPad|iPod)/i.test(navigator.userAgent), d = "artDialog" + +(new Date), v = function (t, i, s) { + t = t || {}; + if (typeof t == "string" || t.nodeType === 1)t = {content: t, fixed: !p}; + var o, a = v.defaults, f = t.follow = this.nodeType === 1 && this || t.follow; + for (var l in a)t[l] === n && (t[l] = a[l]); + return e.each({ + ok: "yesFn", + cancel: "noFn", + close: "closeFn", + init: "initFn", + okVal: "yesText", + cancelVal: "noText" + }, function (e, r) { + t[e] = t[e] !== n ? t[e] : t[r] + }), typeof f == "string" && (f = e(f)[0]), t.id = f && f[d + "follow"] || t.id || d + u, o = v.list[t.id], f && o ? o.follow(f).zIndex().focus() : o ? o.zIndex().focus() : (p && (t.fixed = !1), e.isArray(t.button) || (t.button = t.button ? [t.button] : []), i !== n && (t.ok = i), s !== n && (t.cancel = s), t.ok && t.button.push({ + name: t.okVal, + callback: t.ok, + focus: !0 + }), t.cancel && t.button.push({ + name: t.cancelVal, + callback: t.cancel + }), v.defaults.zIndex = t.zIndex, u++, v.list[t.id] = r ? r._init(t) : new v.fn._init(t)) + }; + v.fn = v.prototype = { + version: "4.1.7", closed: !0, _init: function (e) { + var n = this, i, s = e.icon, o = s && (h ? {png: "icons/" + s + ".png"} : {backgroundImage: "url('" + e.path + "/skins/icons/" + s + ".png')"}); + return n.closed = !1, n.config = e, n.DOM = i = n.DOM || n._getDOM(), i.wrap.addClass(e.skin), i.close[e.cancel === !1 ? "hide" : "show"](), i.icon[0].style.display = s ? "" : "none", i.iconBg.css(o || {background: "none"}), i.se.css("cursor", e.resize ? "se-resize" : "auto"), i.title.css("cursor", e.drag ? "move" : "auto"), i.content.css("padding", e.padding), n[e.show ? "show" : "hide"](!0), n.button(e.button).title(e.title).content(e.content, !0).size(e.width, e.height).time(e.time), e.follow ? n.follow(e.follow) : n.position(e.left, e.top), n.zIndex().focus(), e.lock && n.lock(), n._addEvent(), n._ie6PngFix(), r = null, e.init && e.init.call(n, t), n + }, content: function (e) { + var t, r, i, s, o = this, u = o.DOM, a = u.wrap[0], f = a.offsetWidth, l = a.offsetHeight, c = parseInt(a.style.left), h = parseInt(a.style.top), p = a.style.width, d = u.content, v = d[0]; + return o._elemBack && o._elemBack(), a.style.width = "auto", e === n ? v : (typeof e == "string" ? d.html(e) : e && e.nodeType === 1 && (s = e.style.display, t = e.previousSibling, r = e.nextSibling, i = e.parentNode, o._elemBack = function () { + t && t.parentNode ? t.parentNode.insertBefore(e, t.nextSibling) : r && r.parentNode ? r.parentNode.insertBefore(e, r) : i && i.appendChild(e), e.style.display = s, o._elemBack = null + }, d.html(""), v.appendChild(e), e.style.display = "block"), arguments[1] || (o.config.follow ? o.follow(o.config.follow) : (f = a.offsetWidth - f, l = a.offsetHeight - l, c -= f / 2, h -= l / 2, a.style.left = Math.max(c, 0) + "px", a.style.top = Math.max(h, 0) + "px"), p && p !== "auto" && (a.style.width = a.offsetWidth + "px"), o._autoPositionType()), o._ie6SelectFix(), o._runScript(v), o) + }, title: function (e) { + var t = this.DOM, r = t.wrap, i = t.title, s = "aui_state_noTitle"; + return e === n ? i[0] : (e === !1 ? (i.hide().html(""), r.addClass(s)) : (i.show().html(e || ""), r.removeClass(s)), this) + }, position: function (e, t) { + var r = this, i = r.config, s = r.DOM.wrap[0], o = h ? !1 : i.fixed, u = h && r.config.fixed, l = f.scrollLeft(), c = f.scrollTop(), p = o ? 0 : l, d = o ? 0 : c, v = a.width(), m = a.height(), g = s.offsetWidth, y = s.offsetHeight, b = s.style; + if (e || e === 0)r._left = e.toString().indexOf("%") !== -1 ? e : null, e = r._toNumber(e, v - g), typeof e == "number" ? (e = u ? e += l : e + p, b.left = Math.max(e, p) + "px") : typeof e == "string" && (b.left = e); + if (t || t === 0)r._top = t.toString().indexOf("%") !== -1 ? t : null, t = r._toNumber(t, m - y), typeof t == "number" ? (t = u ? t += c : t + d, b.top = Math.max(t, d) + "px") : typeof t == "string" && (b.top = t); + return e !== n && t !== n && (r._follow = null, r._autoPositionType()), r + }, size: function (e, t) { + var n, r, i, s, o = this, u = o.config, f = o.DOM, l = f.wrap, c = f.main, h = l[0].style, p = c[0].style; + return e && (o._width = e.toString().indexOf("%") !== -1 ? e : null, n = a.width() - l[0].offsetWidth + c[0].offsetWidth, i = o._toNumber(e, n), e = i, typeof e == "number" ? (h.width = "auto", p.width = Math.max(o.config.minWidth, e) + "px", h.width = l[0].offsetWidth + "px") : typeof e == "string" && (p.width = e, e === "auto" && l.css("width", "auto"))), t && (o._height = t.toString().indexOf("%") !== -1 ? t : null, r = a.height() - l[0].offsetHeight + c[0].offsetHeight, s = o._toNumber(t, r), t = s, typeof t == "number" ? p.height = Math.max(o.config.minHeight, t) + "px" : typeof t == "string" && (p.height = t)), o._ie6SelectFix(), o + }, follow: function (t) { + var n, r = this, i = r.config; + if (typeof t == "string" || t && t.nodeType === 1)n = e(t), t = n[0]; + if (!t || !t.offsetWidth && !t.offsetHeight)return r.position(r._left, r._top); + var s = d + "follow", o = a.width(), u = a.height(), l = f.scrollLeft(), c = f.scrollTop(), p = n.offset(), v = t.offsetWidth, m = t.offsetHeight, g = h ? !1 : i.fixed, y = g ? p.left - l : p.left, b = g ? p.top - c : p.top, w = r.DOM.wrap[0], E = w.style, S = w.offsetWidth, x = w.offsetHeight, T = y - (S - v) / 2, N = b + m, C = g ? 0 : l, k = g ? 0 : c; + return T = T < C ? y : T + S > o && y - S > C ? y - S + v : T, N = N + x > u + k && b - x > k ? b - x : N, E.left = T + "px", E.top = N + "px", r._follow && r._follow.removeAttribute(s), r._follow = t, t[s] = i.id, r._autoPositionType(), r + }, button: function () { + var t = this, r = arguments, i = t.DOM, s = i.buttons, o = s[0], u = "aui_state_highlight", a = t._listeners = t._listeners || {}, f = e.isArray(r[0]) ? r[0] : [].slice.call(r); + return r[0] === n ? o : (e.each(f, function (n, r) { + var i = r.name, s = !a[i], f = s ? document.createElement("button") : a[i].elem; + a[i] || (a[i] = {}), r.callback && (a[i].callback = r.callback), r.className && (f.className = r.className), r.focus && (t._focus && t._focus.removeClass(u), t._focus = e(f).addClass(u), t.focus()), f.setAttribute("type", "button"), f[d + "callback"] = i, f.disabled = !!r.disabled, s && (f.innerHTML = i, a[i].elem = f, o.appendChild(f)) + }), s[0].style.display = f.length ? "" : "none", t._ie6SelectFix(), t) + }, show: function () { + return this.DOM.wrap.show(), !arguments[0] && this._lockMaskWrap && this._lockMaskWrap.show(), this + }, hide: function () { + return this.DOM.wrap.hide(), !arguments[0] && this._lockMaskWrap && this._lockMaskWrap.hide(), this + }, close: function () { + if (this.closed)return this; + var e = this, n = e.DOM, i = n.wrap, s = v.list, o = e.config.close, u = e.config.follow; + e.time(); + if (typeof o == "function" && o.call(e, t) === !1)return e; + e.unlock(), e._elemBack && e._elemBack(), i[0].className = i[0].style.cssText = "", n.title.html(""), n.content.html(""), n.buttons.html(""), v.focus === e && (v.focus = null), u && u.removeAttribute(d + "follow"), delete s[e.config.id], e._removeEvent(), e.hide(!0)._setAbsolute(); + for (var a in e)e.hasOwnProperty(a) && a !== "DOM" && delete e[a]; + return r ? i.remove() : r = e, e + }, time: function (e) { + var t = this, n = t.config.cancelVal, r = t._timer; + return r && clearTimeout(r), e && (t._timer = setTimeout(function () { + t._click(n) + }, 1e3 * e)), t + }, focus: function () { + try { + if (this.config.focus) { + var e = this._focus && this._focus[0] || this.DOM.close[0]; + e && e.focus() + } + } catch (t) { + } + return this + }, zIndex: function () { + var e = this, t = e.DOM, n = t.wrap, r = v.focus, i = v.defaults.zIndex++; + return n.css("zIndex", i), e._lockMask && e._lockMask.css("zIndex", i - 1), r && r.DOM.wrap.removeClass("aui_state_focus"), v.focus = e, n.addClass("aui_state_focus"), e + }, lock: function () { + if (this._lock)return this; + var t = this, n = v.defaults.zIndex - 1, r = t.DOM.wrap, i = t.config, s = f.width(), o = f.height(), u = t._lockMaskWrap || e(document.body.appendChild(document.createElement("div"))), a = t._lockMask || e(u[0].appendChild(document.createElement("div"))), l = "(document).documentElement", c = p ? "width:" + s + "px;height:" + o + "px" : "width:100%;height:100%", d = h ? "position:absolute;left:expression(" + l + ".scrollLeft);top:expression(" + l + ".scrollTop);width:expression(" + l + ".clientWidth);height:expression(" + l + ".clientHeight)" : ""; + return t.zIndex(), r.addClass("aui_state_lock"), u[0].style.cssText = c + ";position:fixed;z-index:" + n + ";top:0;left:0;overflow:hidden;" + d, a[0].style.cssText = "height:100%;background:" + i.background + ";filter:alpha(opacity=0);opacity:0", h && a.html(''), a.stop(), a.bind("click", function () { + t._reset() + }).bind("dblclick", function () { + t._click(t.config.cancelVal) + }), i.duration === 0 ? a.css({opacity: i.opacity}) : a.animate({opacity: i.opacity}, i.duration), t._lockMaskWrap = u, t._lockMask = a, t._lock = !0, t + }, unlock: function () { + var e = this, t = e._lockMaskWrap, n = e._lockMask; + if (!e._lock)return e; + var i = t[0].style, s = function () { + h && (i.removeExpression("width"), i.removeExpression("height"), i.removeExpression("left"), i.removeExpression("top")), i.cssText = "display:none", r && t.remove() + }; + return n.stop().unbind(), e.DOM.wrap.removeClass("aui_state_lock"), e.config.duration ? n.animate({opacity: 0}, e.config.duration, s) : s(), e._lock = !1, e + }, _getDOM: function () { + var t = document.createElement("div"), n = document.body; + t.style.cssText = "position:absolute;left:0;top:0", t.innerHTML = v._templates, n.insertBefore(t, n.firstChild); + var r, i = 0, s = {wrap: e(t)}, o = t.getElementsByTagName("*"), u = o.length; + for (; i < u; i++)r = o[i].className.split("aui_")[1], r && (s[r] = e(o[i])); + return s + }, _toNumber: function (e, t) { + if (!e && e !== 0 || typeof e == "number")return e; + var n = e.length - 1; + return e.lastIndexOf("px") === n ? e = parseInt(e) : e.lastIndexOf("%") === n && (e = parseInt(t * e.split("%")[0] / 100)), e + }, _ie6PngFix: h ? function () { + var e = 0, t, n, r, i, s = v.defaults.path + "/skins/", o = this.DOM.wrap[0].getElementsByTagName("*"); + for (; e < o.length; e++)t = o[e], n = t.currentStyle.png, n && (r = s + n, i = t.runtimeStyle, i.backgroundImage = "none", i.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + r + "',sizingMethod='crop')") + } : e.noop, _ie6SelectFix: h ? function () { + var e = this.DOM.wrap, t = e[0], n = d + "iframeMask", r = e[n], i = t.offsetWidth, s = t.offsetHeight; + i += "px", s += "px", r ? (r.style.width = i, r.style.height = s) : (r = t.appendChild(document.createElement("iframe")), e[n] = r, r.src = "about:blank", r.style.cssText = "position:absolute;z-index:-1;left:0;top:0;filter:alpha(opacity=0);width:" + i + ";height:" + s) + } : e.noop, _runScript: function (e) { + var t, n = 0, r = 0, i = e.getElementsByTagName("script"), s = i.length, o = []; + for (; n < s; n++)i[n].type === "text/dialog" && (o[r] = i[n].innerHTML, r++); + o.length && (o = o.join(""), t = new Function(o), t.call(this)) + }, _autoPositionType: function () { + this[this.config.fixed ? "_setFixed" : "_setAbsolute"]() + }, _setFixed: function () { + return h && e(function () { + var t = "backgroundAttachment"; + l.css(t) !== "fixed" && e("body").css(t) !== "fixed" && l.css({ + zoom: 1, + backgroundImage: "url(about:blank)", + backgroundAttachment: "fixed" + }) + }), function () { + var e = this.DOM.wrap, t = e[0].style; + if (h) { + var n = parseInt(e.css("left")), r = parseInt(e.css("top")), i = f.scrollLeft(), s = f.scrollTop(), o = "(document.documentElement)"; + this._setAbsolute(), t.setExpression("left", "eval(" + o + ".scrollLeft + " + (n - i) + ') + "px"'), t.setExpression("top", "eval(" + o + ".scrollTop + " + (r - s) + ') + "px"') + } else t.position = "fixed" + } + }(), _setAbsolute: function () { + var e = this.DOM.wrap[0].style; + h && (e.removeExpression("left"), e.removeExpression("top")), e.position = "absolute" + }, _click: function (e) { + var n = this, r = n._listeners[e] && n._listeners[e].callback; + return typeof r != "function" || r.call(n, t) !== !1 ? n.close() : n + }, _reset: function (e) { + var t, n = this, r = n._winSize || a.width() * a.height(), i = n._follow, s = n._width, o = n._height, u = n._left, f = n._top; + if (e) { + t = n._winSize = a.width() * a.height(); + if (r === t)return + } + (s || o) && n.size(s, o), i ? n.follow(i) : (u || f) && n.position(u, f) + }, _addEvent: function () { + var e, n = this, r = n.config, i = "CollectGarbage" in t, s = n.DOM; + n._winResize = function () { + e && clearTimeout(e), e = setTimeout(function () { + n._reset(i) + }, 40) + }, a.bind("resize", n._winResize), s.wrap.bind("click", function (e) { + var t = e.target, i; + if (t.disabled)return !1; + if (t === s.close[0])return n._click(r.cancelVal), !1; + i = t[d + "callback"], i && n._click(i), n._ie6SelectFix() + }).bind("mousedown", function () { + n.zIndex() + }) + }, _removeEvent: function () { + var e = this, t = e.DOM; + t.wrap.unbind(), a.unbind("resize", e._winResize) + } + }, v.fn._init.prototype = v.fn, e.fn.dialog = e.fn.artDialog = function () { + var e = arguments; + return this[this.live ? "live" : "bind"]("click", function () { + return v.apply(this, e), !1 + }), this + }, v.focus = null, v.get = function (e) { + return e === n ? v.list : v.list[e] + }, v.list = {}, f.bind("keydown", function (e) { + var t = e.target, n = t.nodeName, r = /^INPUT|TEXTAREA$/, i = v.focus, s = e.keyCode; + if (!i || !i.config.esc || r.test(n))return; + s === 27 && i._click(i.config.cancelVal) + }), o = t._artDialog_path || function (e, t, n) { + for (t in e)e[t].src && e[t].src.indexOf("artDialog") !== -1 && (n = e[t]); + return i = n || e[e.length - 1], n = i.src.replace(/\\/g, "/"), n.lastIndexOf("/") < 0 ? "." : n.substring(0, n.lastIndexOf("/")) + }(document.getElementsByTagName("script")), s = i.src.split("skin=")[1]; + if (s) { + var m = document.createElement("link"); + m.rel = "stylesheet", m.href = o + "/skins/" + s + ".css?" + v.fn.version, i.parentNode.insertBefore(m, i) + } + a.bind("load", function () { + setTimeout(function () { + if (u)return; + v({left: "-9999em", time: 9, fixed: !1, lock: !1, focus: !1}) + }, 150) + }); + try { + document.execCommand("BackgroundImageCache", !1, !0) + } catch (g) { + } + v._templates = '
', v.defaults = { + content: '
loading..
', + title: "\u6d88\u606f", + button: null, + ok: null, + cancel: null, + init: null, + close: null, + okVal: "\u786e\u5b9a", + cancelVal: "\u53d6\u6d88", + width: "auto", + height: "auto", + minWidth: 96, + minHeight: 32, + padding: "20px 25px", + skin: "", + icon: null, + time: null, + esc: !0, + focus: !0, + show: !0, + follow: null, + path: o, + lock: !1, + background: "#000", + opacity: .7, + duration: 300, + fixed: !1, + left: "50%", + top: "38.2%", + zIndex: 1987, + resize: !0, + drag: !0 + }, t.artDialog = e.dialog = e.artDialog = v +}(this.art || this.jQuery && (this.art = jQuery), this), function (e) { + var t, n, r = e(window), i = e(document), s = document.documentElement, o = !("minWidth" in s.style), u = "onlosecapture" in s, a = "setCapture" in s; + artDialog.dragEvent = function () { + var e = this, t = function (t) { + var n = e[t]; + e[t] = function () { + return n.apply(e, arguments) + } + }; + t("start"), t("move"), t("end") + }, artDialog.dragEvent.prototype = { + onstart: e.noop, start: function (e) { + return i.bind("mousemove", this.move).bind("mouseup", this.end), this._sClientX = e.clientX, this._sClientY = e.clientY, this.onstart(e.clientX, e.clientY), !1 + }, onmove: e.noop, move: function (e) { + return this._mClientX = e.clientX, this._mClientY = e.clientY, this.onmove(e.clientX - this._sClientX, e.clientY - this._sClientY), !1 + }, onend: e.noop, end: function (e) { + return i.unbind("mousemove", this.move).unbind("mouseup", this.end), this.onend(e.clientX, e.clientY), !1 + } + }, n = function (e) { + var n, s, f, l, c, h, p = artDialog.focus, d = p.DOM, v = d.wrap, m = d.title, g = d.main, y = "getSelection" in window ? function () { + window.getSelection().removeAllRanges() + } : function () { + try { + document.selection.empty() + } catch (e) { + } + }; + t.onstart = function (e, n) { + h ? (s = g[0].offsetWidth, f = g[0].offsetHeight) : (l = v[0].offsetLeft, c = v[0].offsetTop), i.bind("dblclick", t.end), !o && u ? m.bind("losecapture", t.end) : r.bind("blur", t.end), a && m[0].setCapture(), v.addClass("aui_state_drag"), p.focus() + }, t.onmove = function (e, t) { + if (h) { + var r = v[0].style, i = g[0].style, o = e + s, u = t + f; + r.width = "auto", i.width = Math.max(0, o) + "px", r.width = v[0].offsetWidth + "px", i.height = Math.max(0, u) + "px" + } else { + var i = v[0].style, a = Math.max(n.minX, Math.min(n.maxX, e + l)), d = Math.max(n.minY, Math.min(n.maxY, t + c)); + i.left = a + "px", i.top = d + "px" + } + y(), p._ie6SelectFix() + }, t.onend = function (e, n) { + i.unbind("dblclick", t.end), !o && u ? m.unbind("losecapture", t.end) : r.unbind("blur", t.end), a && m[0].releaseCapture(), o && !p.closed && p._autoPositionType(), v.removeClass("aui_state_drag") + }, h = e.target === d.se[0] ? !0 : !1, n = function () { + var e, t, n = p.DOM.wrap[0], s = n.style.position === "fixed", o = n.offsetWidth, u = n.offsetHeight, a = r.width(), f = r.height(), l = s ? 0 : i.scrollLeft(), c = s ? 0 : i.scrollTop(), e = a - o + l; + return t = f - u + c, {minX: l, minY: c, maxX: e, maxY: t} + }(), t.start(e) + }, i.bind("mousedown", function (e) { + var r = artDialog.focus; + if (!r)return; + var i = e.target, s = r.config, o = r.DOM; + if (s.drag !== !1 && i === o.title[0] || s.resize !== !1 && i === o.se[0])return t = t || new artDialog.dragEvent, n(e), !1 + }) +}(this.art || this.jQuery && (this.art = jQuery)) \ No newline at end of file diff --git a/js/artDialog/artDialog.source.js b/js/artDialog/artDialog.source.js new file mode 100644 index 0000000..8ed9abb --- /dev/null +++ b/js/artDialog/artDialog.source.js @@ -0,0 +1,2078 @@ +/*! + * artDialog 4.1.7 + * Date: 2013-03-03 08:04 + * http://code.google.com/p/artdialog/ + * (c) 2009-2012 TangBin, http://www.planeArt.cn + * + * This is licensed under the GNU LGPL, version 2.1 or later. + * For details, see: http://creativecommons.org/licenses/LGPL/2.1/ + */ + +;(function (window, undefined) { +//if (window.jQuery) return jQuery; + +var $ = window.art = function (selector, context) { + return new $.fn.init(selector, context); + }, + readyBound = false, + readyList = [], + DOMContentLoaded, + isOpacity = 'opacity' in document.documentElement.style, + quickExpr = /^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/, + rclass = /[\n\t]/g, + ralpha = /alpha\([^)]*\)/i, + ropacity = /opacity=([^)]*)/, + rfxnum = /^([+-]=)?([\d+-.]+)(.*)$/; + +if (window.$ === undefined) window.$ = $; +$.fn = $.prototype = { + constructor: $, + + /** + * DOM 就绪 + * @param {Function} 回调函数 + */ + ready: function (callback) { + $.bindReady(); + + if ($.isReady) { + callback.call(document, $); + } else if (readyList) { + readyList.push(callback); + }; + + return this; + }, + + /** + * 判断样式类是否存在 + * @param {String} 名称 + * @return {Boolean} + */ + hasClass: function (name) { + var className = ' ' + name + ' '; + if ((' ' + this[0].className + ' ').replace(rclass, ' ') + .indexOf(className) > -1) return true; + + return false; + }, + + /** + * 添加样式类 + * @param {String} 名称 + */ + addClass: function (name) { + if (!this.hasClass(name)) this[0].className += ' ' + name; + + return this; + }, + + /** + * 移除样式类 + * @param {String} 名称 + */ + removeClass: function (name) { + var elem = this[0]; + + if (!name) { + elem.className = ''; + } else + if (this.hasClass(name)) { + elem.className = elem.className.replace(name, ' '); + }; + + return this; + }, + + /** + * 读写样式
+ * css(name) 访问第一个匹配元素的样式属性
+ * css(properties) 把一个"名/值对"对象设置为所有匹配元素的样式属性
+ * css(name, value) 在所有匹配的元素中,设置一个样式属性的值
+ */ + css: function (name, value) { + var i, elem = this[0], obj = arguments[0]; + + if (typeof name === 'string') { + if (value === undefined) { + return $.css(elem, name); + } else { + name === 'opacity' ? + $.opacity.set(elem, value) : + elem.style[name] = value; + }; + } else { + for (i in obj) { + i === 'opacity' ? + $.opacity.set(elem, obj[i]) : + elem.style[i] = obj[i]; + }; + }; + + return this; + }, + + /** 显示元素 */ + show: function () { + return this.css('display', 'block'); + }, + + /** 隐藏元素 */ + hide: function () { + return this.css('display', 'none'); + }, + + /** + * 获取相对文档的坐标 + * @return {Object} 返回left、top的数值 + */ + offset: function () { + var elem = this[0], + box = elem.getBoundingClientRect(), + doc = elem.ownerDocument, + body = doc.body, + docElem = doc.documentElement, + clientTop = docElem.clientTop || body.clientTop || 0, + clientLeft = docElem.clientLeft || body.clientLeft || 0, + top = box.top + (self.pageYOffset || docElem.scrollTop) - clientTop, + left = box.left + (self.pageXOffset || docElem.scrollLeft) - clientLeft; + + return { + left: left, + top: top + }; + }, + + /** + * 读写HTML - (不支持文本框) + * @param {String} 内容 + */ + html: function (content) { + var elem = this[0]; + + if (content === undefined) return elem.innerHTML; + $.cleanData(elem.getElementsByTagName('*')); + elem.innerHTML = content; + + return this; + }, + + /** + * 移除节点 + */ + remove: function () { + var elem = this[0]; + + $.cleanData(elem.getElementsByTagName('*')); + $.cleanData([elem]); + elem.parentNode.removeChild(elem); + + return this; + }, + + /** + * 事件绑定 + * @param {String} 类型 + * @param {Function} 要绑定的函数 + */ + bind: function (type, callback) { + $.event.add(this[0], type, callback); + return this; + }, + + /** + * 移除事件 + * @param {String} 类型 + * @param {Function} 要卸载的函数 + */ + unbind: function(type, callback) { + $.event.remove(this[0], type, callback); + return this; + } + +}; + +$.fn.init = function (selector, context) { + var match, elem; + context = context || document; + + if (!selector) return this; + + if (selector.nodeType) { + this[0] = selector; + return this; + }; + + if (selector === 'body' && context.body) { + this[0] = context.body; + return this; + }; + + if (selector === 'head' || selector === 'html') { + this[0] = context.getElementsByTagName(selector)[0]; + return this; + }; + + if (typeof selector === 'string') { + match = quickExpr.exec(selector); + + if (match && match[2]) { + elem = context.getElementById(match[2]); + if (elem && elem.parentNode) this[0] = elem; + return this; + }; + }; + + if (typeof selector === 'function') return $(document).ready(selector); + + this[0] = selector; + + return this; +}; +$.fn.init.prototype = $.fn; + +/** 空函数 */ +$.noop = function () {}; + +/** 检测window */ +$.isWindow = function (obj) { + return obj && typeof obj === 'object' && 'setInterval' in obj; +}; + +/** 数组判定 */ +$.isArray = function (obj) { + return Object.prototype.toString.call(obj) === '[object Array]'; +}; + +/** + * 搜索子元素 + * 注意:只支持nodeName或.className的形式,并且只返回第一个元素 + * @param {String} + */ +$.fn.find = function (expr) { + var value, elem = this[0], + className = expr.split('.')[1]; + + if (className) { + if (document.getElementsByClassName) { + value = elem.getElementsByClassName(className); + } else { + value = getElementsByClassName(className, elem); + }; + } else { + value = elem.getElementsByTagName(expr); + }; + + return $(value[0]); +}; +function getElementsByClassName (className, node, tag) { + node = node || document; + tag = tag || '*'; + var i = 0, + j = 0, + classElements = [], + els = node.getElementsByTagName(tag), + elsLen = els.length, + pattern = new RegExp("(^|\\s)" + className + "(\\s|$)"); + + for (; i < elsLen; i ++) { + if (pattern.test(els[i].className)) { + classElements[j] = els[i]; + j ++; + }; + }; + return classElements; +}; + +/** + * 遍历 + * @param {Object} + * @param {Function} + */ +$.each = function (obj, callback) { + var name, i = 0, + length = obj.length, + isObj = length === undefined; + + if (isObj) { + for (name in obj) { + if (callback.call(obj[name], name, obj[name]) === false) break; + }; + } else { + for (var value = obj[0]; + i < length && callback.call(value, i, value) !== false; + value = obj[++i]) {}; + }; + + return obj; +}; + +/** + * 读写缓存 + * @param {HTMLElement} 元素 + * @param {String} 缓存名称 + * @param {Any} 数据 + * @return {Any} 如果无参数data则返回缓存数据 + */ +$.data = function (elem, name, data) { + var cache = $.cache, + id = uuid(elem); + + if (name === undefined) return cache[id]; + if (!cache[id]) cache[id] = {}; + if (data !== undefined) cache[id][name] = data; + + return cache[id][name]; +}; + +/** + * 删除缓存 + * @param {HTMLElement} 元素 + * @param {String} 缓存名称 + */ +$.removeData = function (elem, name) { + var empty = true, + expando = $.expando, + cache = $.cache, + id = uuid(elem), + thisCache = id && cache[id]; + + if (!thisCache) return; + if (name) { + delete thisCache[name]; + for (var n in thisCache) empty = false; + if (empty) delete $.cache[id]; + } else { + delete cache[id]; + if (elem.removeAttribute) { + elem.removeAttribute(expando); + } else { + elem[expando] = null; + }; + }; +}; + +$.uuid = 0; +$.cache = {}; +$.expando = '@cache' + + new Date + +// 标记元素唯一身份 +function uuid (elem) { + var expando = $.expando, + id = elem === window ? 0 : elem[expando]; + if (id === undefined) elem[expando] = id = ++ $.uuid; + return id; +}; + + +/** + * 事件机制 + * @namespace + * @requires [$.data, $.removeData] + */ +$.event = { + + /** + * 添加事件 + * @param {HTMLElement} 元素 + * @param {String} 事件类型 + * @param {Function} 要添加的函数 + */ + add: function (elem, type, callback) { + var cache, listeners, + that = $.event, + data = $.data(elem, '@events') || $.data(elem, '@events', {}); + + cache = data[type] = data[type] || {}; + listeners = cache.listeners = cache.listeners || []; + listeners.push(callback); + + if (!cache.handler) { + cache.elem = elem; + cache.handler = that.handler(cache); + + elem.addEventListener + ? elem.addEventListener(type, cache.handler, false) + : elem.attachEvent('on' + type, cache.handler); + }; + }, + + /** + * 卸载事件 + * @param {HTMLElement} 元素 + * @param {String} 事件类型 + * @param {Function} 要卸载的函数 + */ + remove: function (elem, type, callback) { + var i, cache, listeners, + that = $.event, + empty = true, + data = $.data(elem, '@events'); + + if (!data) return; + if (!type) { + for (i in data) that.remove(elem, i); + return; + }; + + cache = data[type]; + if (!cache) return; + + listeners = cache.listeners; + if (callback) { + for (i = 0; i < listeners.length; i ++) { + listeners[i] === callback && listeners.splice(i--, 1); + }; + } else { + cache.listeners = []; + }; + + if (cache.listeners.length === 0) { + elem.removeEventListener + ? elem.removeEventListener(type, cache.handler, false) + : elem.detachEvent('on' + type, cache.handler); + + delete data[type]; + cache = $.data(elem, '@events'); + for (var n in cache) empty = false; + if (empty) $.removeData(elem, '@events'); + }; + }, + + /** @inner 事件句柄 */ + handler: function (cache) { + return function (event) { + event = $.event.fix(event || window.event); + for (var i = 0, list = cache.listeners, fn; fn = list[i++];) { + if (fn.call(cache.elem, event) === false) { + event.preventDefault(); + event.stopPropagation(); + }; + }; + }; + }, + + /** @inner Event对象兼容处理 */ + fix: function (event) { + if (event.target) return event; + + var event2 = { + target: event.srcElement || document, + preventDefault: function () {event.returnValue = false}, + stopPropagation: function () {event.cancelBubble = true} + }; + // IE6/7/8 在原生window.event对象写入数据会导致内存无法回收,应当采用拷贝 + for (var i in event) event2[i] = event[i]; + return event2; + } + +}; + +/** + * 清理元素集的事件与缓存 + * @requires [$.removeData, $.event] + * @param {HTMLCollection} 元素集 + */ +$.cleanData = function (elems) { + var i = 0, elem, + len = elems.length, + removeEvent = $.event.remove, + removeData = $.removeData; + + for (; i < len; i ++) { + elem = elems[i]; + removeEvent(elem); + removeData(elem); + }; +}; + +// DOM就绪事件 +$.isReady = false; +$.ready = function () { + if (!$.isReady) { + if (!document.body) return setTimeout($.ready, 13); + $.isReady = true; + + if (readyList) { + var fn, i = 0; + while ((fn = readyList[i++])) { + fn.call(document, $); + }; + readyList = null; + }; + }; +}; +$.bindReady = function () { + if (readyBound) return; + + readyBound = true; + + if (document.readyState === 'complete') { + return $.ready(); + }; + + if (document.addEventListener) { + document.addEventListener('DOMContentLoaded', DOMContentLoaded, false); + window.addEventListener('load', $.ready, false); + } else if (document.attachEvent) { + document.attachEvent('onreadystatechange', DOMContentLoaded); + window.attachEvent('onload', $.ready); + var toplevel = false; + try { + toplevel = window.frameElement == null; + } catch (e) {}; + + if (document.documentElement.doScroll && toplevel) { + doScrollCheck(); + }; + }; +}; + +if (document.addEventListener) { + DOMContentLoaded = function () { + document.removeEventListener('DOMContentLoaded', DOMContentLoaded, false); + $.ready(); + }; +} else if (document.attachEvent) { + DOMContentLoaded = function () { + if (document.readyState === 'complete') { + document.detachEvent('onreadystatechange', DOMContentLoaded); + $.ready(); + }; + }; +}; + +function doScrollCheck () { + if ($.isReady) return; + + try { + document.documentElement.doScroll('left'); + } catch (e) { + setTimeout(doScrollCheck, 1); + return; + }; + $.ready(); +}; + +// 获取css +$.css = 'defaultView' in document && 'getComputedStyle' in document.defaultView ? + function (elem, name) { + return document.defaultView.getComputedStyle(elem, false)[name]; +} : + function (elem, name) { + var ret = name === 'opacity' ? $.opacity.get(elem) : elem.currentStyle[name]; + return ret || ''; +}; + +// 跨浏览器处理opacity +$.opacity = { + get: function (elem) { + return isOpacity ? + document.defaultView.getComputedStyle(elem, false).opacity : + ropacity.test((elem.currentStyle + ? elem.currentStyle.filter + : elem.style.filter) || '') + ? (parseFloat(RegExp.$1) / 100) + '' + : 1; + }, + set: function (elem, value) { + if (isOpacity) return elem.style.opacity = value; + var style = elem.style; + style.zoom = 1; + + var opacity = 'alpha(opacity=' + value * 100 + ')', + filter = style.filter || ''; + + style.filter = ralpha.test(filter) ? + filter.replace(ralpha, opacity) : + style.filter + ' ' + opacity; + } +}; + +/** + * 获取滚动条位置 - [不支持写入] + * $.fn.scrollLeft, $.fn.scrollTop + * @example 获取文档垂直滚动条:$(document).scrollTop() + * @return {Number} 返回滚动条位置 + */ +$.each(['Left', 'Top'], function (i, name) { + var method = 'scroll' + name; + + $.fn[method] = function () { + var elem = this[0], win; + + win = getWindow(elem); + return win ? + ('pageXOffset' in win) ? + win[i ? 'pageYOffset' : 'pageXOffset'] : + win.document.documentElement[method] || win.document.body[method] : + elem[method]; + }; +}); + +function getWindow (elem) { + return $.isWindow(elem) ? + elem : + elem.nodeType === 9 ? + elem.defaultView || elem.parentWindow : + false; +}; + +/** + * 获取窗口或文档尺寸 - [只支持window与document读取] + * @example + 获取文档宽度:$(document).width() + 获取可视范围:$(window).width() + * @return {Number} + */ +$.each(['Height', 'Width'], function (i, name) { + var type = name.toLowerCase(); + + $.fn[type] = function (size) { + var elem = this[0]; + if (!elem) { + return size == null ? null : this; + }; + + return $.isWindow(elem) ? + elem.document.documentElement['client' + name] || elem.document.body['client' + name] : + (elem.nodeType === 9) ? + Math.max( + elem.documentElement['client' + name], + elem.body['scroll' + name], elem.documentElement['scroll' + name], + elem.body['offset' + name], elem.documentElement['offset' + name] + ) : null; + }; + +}); + +/** + * 简单ajax支持 + * @example + * $.ajax({ + * url: url, + * success: callback, + * cache: cache + * }); + */ +$.ajax = function (config) { + var ajax = window.XMLHttpRequest ? + new XMLHttpRequest() : + new ActiveXObject('Microsoft.XMLHTTP'), + url = config.url; + + if (config.cache === false) { + var ts = + new Date, + ret = url.replace(/([?&])_=[^&]*/, "$1_=" + ts ); + url = ret + ((ret === url) ? (/\?/.test(url) ? "&" : "?") + "_=" + ts : ""); + }; + + ajax.onreadystatechange = function() { + if (ajax.readyState === 4 && ajax.status === 200) { + config.success && config.success(ajax.responseText); + ajax.onreadystatechange = $.noop; + }; + }; + ajax.open('GET', url, 1); + ajax.send(null); +}; + +/** 动画引擎 - [不支持链式列队操作] */ +$.fn.animate = function (prop, speed, easing, callback) { + + speed = speed || 400; + if (typeof easing === 'function') callback = easing; + easing = easing && $.easing[easing] ? easing : 'swing'; + + var elem = this[0], overflow, + fx, parts, start, end, unit, + opt = { + speed: speed, + easing: easing, + callback: function () { + if (overflow != null) elem.style.overflow = ''; + callback && callback(); + } + }; + + opt.curAnim = {}; + $.each(prop, function (name, val) { + opt.curAnim[name] = val; + }); + + $.each(prop, function (name, val) { + fx = new $.fx(elem, opt, name); + parts = rfxnum.exec(val); + start = parseFloat(name === 'opacity' + || (elem.style && elem.style[name] != null) ? + $.css(elem, name) : + elem[name]); + end = parseFloat(parts[2]); + unit = parts[3]; + if (name === 'height' || name === 'width') { + end = Math.max(0, end); + overflow = [elem.style.overflow, + elem.style.overflowX, elem.style.overflowY]; + }; + + fx.custom(start, end, unit); + }); + + if (overflow != null) elem.style.overflow = 'hidden'; + + return this; +}; + +$.timers = []; +$.fx = function (elem, options, prop) { + this.elem = elem; + this.options = options; + this.prop = prop; +}; + +$.fx.prototype = { + custom: function (from, to, unit) { + var that = this; + that.startTime = $.fx.now(); + that.start = from; + that.end = to; + that.unit = unit; + that.now = that.start; + that.state = that.pos = 0; + + function t() { + return that.step(); + }; + t.elem = that.elem; + t(); + $.timers.push(t); + if (!$.timerId) $.timerId = setInterval($.fx.tick, 13); + }, + step: function () { + var that = this, t = $.fx.now(), done = true; + + if (t >= that.options.speed + that.startTime) { + that.now = that.end; + that.state = that.pos = 1; + that.update(); + + that.options.curAnim[that.prop] = true; + for (var i in that.options.curAnim) { + if (that.options.curAnim[i] !== true) { + done = false; + }; + }; + + if (done) that.options.callback.call(that.elem); + + return false; + } else { + var n = t - that.startTime; + that.state = n / that.options.speed; + that.pos = $.easing[that.options.easing](that.state, n, 0, 1, that.options.speed); + that.now = that.start + ((that.end - that.start) * that.pos); + that.update(); + return true; + }; + }, + update: function () { + var that = this; + if (that.prop === 'opacity') { + $.opacity.set(that.elem, that.now); + } else + if (that.elem.style && that.elem.style[that.prop] != null) { + that.elem.style[that.prop] = that.now + that.unit; + } else { + that.elem[that.prop] = that.now; + }; + } +}; + +$.fx.now = function () { + return + new Date; +}; + +$.easing = { + linear: function (p, n, firstNum, diff) { + return firstNum + diff * p; + }, + swing: function (p, n, firstNum, diff) { + return ((-Math.cos(p * Math.PI) / 2) + 0.5) * diff + firstNum; + } +}; + +$.fx.tick = function () { + var timers = $.timers; + for (var i = 0; i < timers.length; i++) { + !timers[i]() && timers.splice(i--, 1); + }; + !timers.length && $.fx.stop(); +}; + +$.fx.stop = function () { + clearInterval($.timerId); + $.timerId = null; +}; + +$.fn.stop = function () { + var timers = $.timers; + for (var i = timers.length - 1; i >= 0; i--) { + if (timers[i].elem === this[0]) timers.splice(i, 1); + }; + return this; +}; + +//-------------end +return $}(window)); + + + + +//------------------------------------------------ +// 对话框模块 +//------------------------------------------------ +;(function ($, window, undefined) { + +$.noop = $.noop || function () {}; // jQuery 1.3.2 +var _box, _thisScript, _skin, _path, + _count = 0, + _$window = $(window), + _$document = $(document), + _$html = $('html'), + _elem = document.documentElement, + _isIE6 = window.VBArray && !window.XMLHttpRequest, + _isMobile = 'createTouch' in document && !('onmousemove' in _elem) + || /(iPhone|iPad|iPod)/i.test(navigator.userAgent), + _expando = 'artDialog' + + new Date; + +var artDialog = function (config, ok, cancel) { + config = config || {}; + + if (typeof config === 'string' || config.nodeType === 1) { + config = {content: config, fixed: !_isMobile}; + }; + + var api, + defaults = artDialog.defaults, + elem = config.follow = this.nodeType === 1 && this || config.follow; + + // 合并默认配置 + for (var i in defaults) { + if (config[i] === undefined) config[i] = defaults[i]; + }; + + // 兼容v4.1.0之前的参数,未来版本将删除此 + $.each({ok:"yesFn",cancel:"noFn",close:"closeFn",init:"initFn",okVal:"yesText",cancelVal:"noText"}, + function(i,o){config[i]=config[i]!==undefined?config[i]:config[o]}); + + // 返回跟随模式或重复定义的ID + if (typeof elem === 'string') elem = $(elem)[0]; + config.id = elem && elem[_expando + 'follow'] || config.id || _expando + _count; + api = artDialog.list[config.id]; + if (elem && api) return api.follow(elem).zIndex().focus(); + if (api) return api.zIndex().focus(); + + // 目前主流移动设备对fixed支持不好 + if (_isMobile) config.fixed = false; + + // 按钮队列 + if (!$.isArray(config.button)) { + config.button = config.button ? [config.button] : []; + }; + if (ok !== undefined) config.ok = ok; + if (cancel !== undefined) config.cancel = cancel; + config.ok && config.button.push({ + name: config.okVal, + callback: config.ok, + focus: true + }); + config.cancel && config.button.push({ + name: config.cancelVal, + callback: config.cancel + }); + + // zIndex全局配置 + artDialog.defaults.zIndex = config.zIndex; + + _count ++; + + return artDialog.list[config.id] = _box ? + _box._init(config) : new artDialog.fn._init(config); +}; + +artDialog.fn = artDialog.prototype = { + + version: '4.1.7', + + closed: true, + + _init: function (config) { + var that = this, DOM, + icon = config.icon, + iconBg = icon && (_isIE6 ? {png: 'icons/' + icon + '.png'} + : {backgroundImage: 'url(\'' + config.path + '/skins/icons/' + icon + '.png\')'}); + + that.closed = false; + that.config = config; + that.DOM = DOM = that.DOM || that._getDOM(); + + DOM.wrap.addClass(config.skin); + DOM.close[config.cancel === false ? 'hide' : 'show'](); + DOM.icon[0].style.display = icon ? '' : 'none'; + DOM.iconBg.css(iconBg || {background: 'none'}); + DOM.se.css('cursor', config.resize ? 'se-resize' : 'auto'); + DOM.title.css('cursor', config.drag ? 'move' : 'auto'); + DOM.content.css('padding', config.padding); + + that[config.show ? 'show' : 'hide'](true) + that.button(config.button) + .title(config.title) + .content(config.content, true) + .size(config.width, config.height) + .time(config.time); + + config.follow + ? that.follow(config.follow) + : that.position(config.left, config.top); + + that.zIndex().focus(); + config.lock && that.lock(); + + that._addEvent(); + that._ie6PngFix(); + _box = null; + + config.init && config.init.call(that, window); + return that; + }, + + /** + * 设置内容 + * @param {String, HTMLElement} 内容 (可选) + * @return {this, HTMLElement} 如果无参数则返回内容容器DOM对象 + */ + content: function (msg) { + var prev, next, parent, display, + that = this, + DOM = that.DOM, + wrap = DOM.wrap[0], + width = wrap.offsetWidth, + height = wrap.offsetHeight, + left = parseInt(wrap.style.left), + top = parseInt(wrap.style.top), + cssWidth = wrap.style.width, + $content = DOM.content, + content = $content[0]; + + that._elemBack && that._elemBack(); + wrap.style.width = 'auto'; + + if (msg === undefined) return content; + if (typeof msg === 'string') { + $content.html(msg); + } else if (msg && msg.nodeType === 1) { + + // 让传入的元素在对话框关闭后可以返回到原来的地方 + display = msg.style.display; + prev = msg.previousSibling; + next = msg.nextSibling; + parent = msg.parentNode; + that._elemBack = function () { + if (prev && prev.parentNode) { + prev.parentNode.insertBefore(msg, prev.nextSibling); + } else if (next && next.parentNode) { + next.parentNode.insertBefore(msg, next); + } else if (parent) { + parent.appendChild(msg); + }; + msg.style.display = display; + that._elemBack = null; + }; + + $content.html(''); + content.appendChild(msg); + msg.style.display = 'block'; + + }; + + // 新增内容后调整位置 + if (!arguments[1]) { + if (that.config.follow) { + that.follow(that.config.follow); + } else { + width = wrap.offsetWidth - width; + height = wrap.offsetHeight - height; + left = left - width / 2; + top = top - height / 2; + wrap.style.left = Math.max(left, 0) + 'px'; + wrap.style.top = Math.max(top, 0) + 'px'; + }; + if (cssWidth && cssWidth !== 'auto') { + wrap.style.width = wrap.offsetWidth + 'px'; + }; + that._autoPositionType(); + }; + + that._ie6SelectFix(); + that._runScript(content); + + return that; + }, + + /** + * 设置标题 + * @param {String, Boolean} 标题内容. 为false则隐藏标题栏 + * @return {this, HTMLElement} 如果无参数则返回内容器DOM对象 + */ + title: function (text) { + var DOM = this.DOM, + wrap = DOM.wrap, + title = DOM.title, + className = 'aui_state_noTitle'; + + if (text === undefined) return title[0]; + if (text === false) { + title.hide().html(''); + wrap.addClass(className); + } else { + title.show().html(text || ''); + wrap.removeClass(className); + }; + + return this; + }, + + /** + * 位置(相对于可视区域) + * @param {Number, String} + * @param {Number, String} + */ + position: function (left, top) { + var that = this, + config = that.config, + wrap = that.DOM.wrap[0], + isFixed = _isIE6 ? false : config.fixed, + ie6Fixed = _isIE6 && that.config.fixed, + docLeft = _$document.scrollLeft(), + docTop = _$document.scrollTop(), + dl = isFixed ? 0 : docLeft, + dt = isFixed ? 0 : docTop, + ww = _$window.width(), + wh = _$window.height(), + ow = wrap.offsetWidth, + oh = wrap.offsetHeight, + style = wrap.style; + + if (left || left === 0) { + that._left = left.toString().indexOf('%') !== -1 ? left : null; + left = that._toNumber(left, ww - ow); + + if (typeof left === 'number') { + left = ie6Fixed ? (left += docLeft) : left + dl; + style.left = Math.max(left, dl) + 'px'; + } else if (typeof left === 'string') { + style.left = left; + }; + }; + + if (top || top === 0) { + that._top = top.toString().indexOf('%') !== -1 ? top : null; + top = that._toNumber(top, wh - oh); + + if (typeof top === 'number') { + top = ie6Fixed ? (top += docTop) : top + dt; + style.top = Math.max(top, dt) + 'px'; + } else if (typeof top === 'string') { + style.top = top; + }; + }; + + if (left !== undefined && top !== undefined) { + that._follow = null; + that._autoPositionType(); + }; + + return that; + }, + + /** + * 尺寸 + * @param {Number, String} 宽度 + * @param {Number, String} 高度 + */ + size: function (width, height) { + var maxWidth, maxHeight, scaleWidth, scaleHeight, + that = this, + config = that.config, + DOM = that.DOM, + wrap = DOM.wrap, + main = DOM.main, + wrapStyle = wrap[0].style, + style = main[0].style; + + if (width) { + that._width = width.toString().indexOf('%') !== -1 ? width : null; + maxWidth = _$window.width() - wrap[0].offsetWidth + main[0].offsetWidth; + scaleWidth = that._toNumber(width, maxWidth); + width = scaleWidth; + + if (typeof width === 'number') { + wrapStyle.width = 'auto'; + style.width = Math.max(that.config.minWidth, width) + 'px'; + wrapStyle.width = wrap[0].offsetWidth + 'px'; // 防止未定义宽度的表格遇到浏览器右边边界伸缩 + } else if (typeof width === 'string') { + style.width = width; + width === 'auto' && wrap.css('width', 'auto'); + }; + }; + + if (height) { + that._height = height.toString().indexOf('%') !== -1 ? height : null; + maxHeight = _$window.height() - wrap[0].offsetHeight + main[0].offsetHeight; + scaleHeight = that._toNumber(height, maxHeight); + height = scaleHeight; + + if (typeof height === 'number') { + style.height = Math.max(that.config.minHeight, height) + 'px'; + } else if (typeof height === 'string') { + style.height = height; + }; + }; + + that._ie6SelectFix(); + + return that; + }, + + /** + * 跟随元素 + * @param {HTMLElement, String} + */ + follow: function (elem) { + var $elem, that = this, config = that.config; + + if (typeof elem === 'string' || elem && elem.nodeType === 1) { + $elem = $(elem); + elem = $elem[0]; + }; + + // 隐藏元素不可用 + if (!elem || !elem.offsetWidth && !elem.offsetHeight) { + return that.position(that._left, that._top); + }; + + var expando = _expando + 'follow', + winWidth = _$window.width(), + winHeight = _$window.height(), + docLeft = _$document.scrollLeft(), + docTop = _$document.scrollTop(), + offset = $elem.offset(), + width = elem.offsetWidth, + height = elem.offsetHeight, + isFixed = _isIE6 ? false : config.fixed, + left = isFixed ? offset.left - docLeft : offset.left, + top = isFixed ? offset.top - docTop : offset.top, + wrap = that.DOM.wrap[0], + style = wrap.style, + wrapWidth = wrap.offsetWidth, + wrapHeight = wrap.offsetHeight, + setLeft = left - (wrapWidth - width) / 2, + setTop = top + height, + dl = isFixed ? 0 : docLeft, + dt = isFixed ? 0 : docTop; + + setLeft = setLeft < dl ? left : + (setLeft + wrapWidth > winWidth) && (left - wrapWidth > dl) + ? left - wrapWidth + width + : setLeft; + + setTop = (setTop + wrapHeight > winHeight + dt) + && (top - wrapHeight > dt) + ? top - wrapHeight + : setTop; + + style.left = setLeft + 'px'; + style.top = setTop + 'px'; + + that._follow && that._follow.removeAttribute(expando); + that._follow = elem; + elem[expando] = config.id; + that._autoPositionType(); + return that; + }, + + /** + * 自定义按钮 + * @example + button({ + name: 'login', + callback: function () {}, + disabled: false, + focus: true + }, .., ..) + */ + button: function () { + var that = this, + ags = arguments, + DOM = that.DOM, + buttons = DOM.buttons, + elem = buttons[0], + strongButton = 'aui_state_highlight', + listeners = that._listeners = that._listeners || {}, + list = $.isArray(ags[0]) ? ags[0] : [].slice.call(ags); + + if (ags[0] === undefined) return elem; + $.each(list, function (i, val) { + var name = val.name, + isNewButton = !listeners[name], + button = !isNewButton ? + listeners[name].elem : + document.createElement('button'); + + if (!listeners[name]) listeners[name] = {}; + if (val.callback) listeners[name].callback = val.callback; + if (val.className) button.className = val.className; + if (val.focus) { + that._focus && that._focus.removeClass(strongButton); + that._focus = $(button).addClass(strongButton); + that.focus(); + }; + + // Internet Explorer 的默认类型是 "button", + // 而其他浏览器中(包括 W3C 规范)的默认值是 "submit" + // @see http://www.w3school.com.cn/tags/att_button_type.asp + button.setAttribute('type', 'button'); + + button[_expando + 'callback'] = name; + button.disabled = !!val.disabled; + + if (isNewButton) { + button.innerHTML = name; + listeners[name].elem = button; + elem.appendChild(button); + }; + }); + + buttons[0].style.display = list.length ? '' : 'none'; + + that._ie6SelectFix(); + return that; + }, + + /** 显示对话框 */ + show: function () { + this.DOM.wrap.show(); + !arguments[0] && this._lockMaskWrap && this._lockMaskWrap.show(); + return this; + }, + + /** 隐藏对话框 */ + hide: function () { + this.DOM.wrap.hide(); + !arguments[0] && this._lockMaskWrap && this._lockMaskWrap.hide(); + return this; + }, + + /** 关闭对话框 */ + close: function () { + if (this.closed) return this; + + var that = this, + DOM = that.DOM, + wrap = DOM.wrap, + list = artDialog.list, + fn = that.config.close, + follow = that.config.follow; + + that.time(); + if (typeof fn === 'function' && fn.call(that, window) === false) { + return that; + }; + + that.unlock(); + + // 置空内容 + that._elemBack && that._elemBack(); + wrap[0].className = wrap[0].style.cssText = ''; + DOM.title.html(''); + DOM.content.html(''); + DOM.buttons.html(''); + + if (artDialog.focus === that) artDialog.focus = null; + if (follow) follow.removeAttribute(_expando + 'follow'); + delete list[that.config.id]; + that._removeEvent(); + that.hide(true)._setAbsolute(); + + // 清空除this.DOM之外临时对象,恢复到初始状态,以便使用单例模式 + for (var i in that) { + if (that.hasOwnProperty(i) && i !== 'DOM') delete that[i]; + }; + + // 移除HTMLElement或重用 + _box ? wrap.remove() : _box = that; + + return that; + }, + + /** + * 定时关闭 + * @param {Number} 单位为秒, 无参数则停止计时器 + */ + time: function (second) { + var that = this, + cancel = that.config.cancelVal, + timer = that._timer; + + timer && clearTimeout(timer); + + if (second) { + that._timer = setTimeout(function(){ + that._click(cancel); + }, 1000 * second); + }; + + return that; + }, + + /** 设置焦点 */ + focus: function () { + try { + if (this.config.focus) { + var elem = this._focus && this._focus[0] || this.DOM.close[0]; + elem && elem.focus(); + } + } catch (e) {}; // IE对不可见元素设置焦点会报错 + return this; + }, + + /** 置顶对话框 */ + zIndex: function () { + var that = this, + DOM = that.DOM, + wrap = DOM.wrap, + top = artDialog.focus, + index = artDialog.defaults.zIndex ++; + + // 设置叠加高度 + wrap.css('zIndex', index); + that._lockMask && that._lockMask.css('zIndex', index - 1); + + // 设置最高层的样式 + top && top.DOM.wrap.removeClass('aui_state_focus'); + artDialog.focus = that; + wrap.addClass('aui_state_focus'); + + return that; + }, + + /** 设置屏锁 */ + lock: function () { + if (this._lock) return this; + + var that = this, + index = artDialog.defaults.zIndex - 1, + wrap = that.DOM.wrap, + config = that.config, + docWidth = _$document.width(), + docHeight = _$document.height(), + lockMaskWrap = that._lockMaskWrap || $(document.body.appendChild(document.createElement('div'))), + lockMask = that._lockMask || $(lockMaskWrap[0].appendChild(document.createElement('div'))), + domTxt = '(document).documentElement', + sizeCss = _isMobile ? 'width:' + docWidth + 'px;height:' + docHeight + + 'px' : 'width:100%;height:100%', + ie6Css = _isIE6 ? + 'position:absolute;left:expression(' + domTxt + '.scrollLeft);top:expression(' + + domTxt + '.scrollTop);width:expression(' + domTxt + + '.clientWidth);height:expression(' + domTxt + '.clientHeight)' + : ''; + + that.zIndex(); + wrap.addClass('aui_state_lock'); + + lockMaskWrap[0].style.cssText = sizeCss + ';position:fixed;z-index:' + + index + ';top:0;left:0;overflow:hidden;' + ie6Css; + lockMask[0].style.cssText = 'height:100%;background:' + config.background + + ';filter:alpha(opacity=0);opacity:0'; + + // 让IE6锁屏遮罩能够盖住下拉控件 + if (_isIE6) lockMask.html( + ''); + + lockMask.stop(); + lockMask.bind('click', function () { + that._reset(); + }).bind('dblclick', function () { + that._click(that.config.cancelVal); + }); + + if (config.duration === 0) { + lockMask.css({opacity: config.opacity}); + } else { + lockMask.animate({opacity: config.opacity}, config.duration); + }; + + that._lockMaskWrap = lockMaskWrap; + that._lockMask = lockMask; + + that._lock = true; + return that; + }, + + /** 解开屏锁 */ + unlock: function () { + var that = this, + lockMaskWrap = that._lockMaskWrap, + lockMask = that._lockMask; + + if (!that._lock) return that; + var style = lockMaskWrap[0].style; + var un = function () { + if (_isIE6) { + style.removeExpression('width'); + style.removeExpression('height'); + style.removeExpression('left'); + style.removeExpression('top'); + }; + style.cssText = 'display:none'; + + _box && lockMaskWrap.remove(); + }; + + lockMask.stop().unbind(); + that.DOM.wrap.removeClass('aui_state_lock'); + if (!that.config.duration) {// 取消动画,快速关闭 + un(); + } else { + lockMask.animate({opacity: 0}, that.config.duration, un); + }; + + that._lock = false; + return that; + }, + + // 获取元素 + _getDOM: function () { + var wrap = document.createElement('div'), + body = document.body; + wrap.style.cssText = 'position:absolute;left:0;top:0'; + wrap.innerHTML = artDialog._templates; + body.insertBefore(wrap, body.firstChild); + + var name, i = 0, + DOM = {wrap: $(wrap)}, + els = wrap.getElementsByTagName('*'), + elsLen = els.length; + + for (; i < elsLen; i ++) { + name = els[i].className.split('aui_')[1]; + if (name) DOM[name] = $(els[i]); + }; + + return DOM; + }, + + // px与%单位转换成数值 (百分比单位按照最大值换算) + // 其他的单位返回原值 + _toNumber: function (thisValue, maxValue) { + if (!thisValue && thisValue !== 0 || typeof thisValue === 'number') { + return thisValue; + }; + + var last = thisValue.length - 1; + if (thisValue.lastIndexOf('px') === last) { + thisValue = parseInt(thisValue); + } else if (thisValue.lastIndexOf('%') === last) { + thisValue = parseInt(maxValue * thisValue.split('%')[0] / 100); + }; + + return thisValue; + }, + + // 让IE6 CSS支持PNG背景 + _ie6PngFix: _isIE6 ? function () { + var i = 0, elem, png, pngPath, runtimeStyle, + path = artDialog.defaults.path + '/skins/', + list = this.DOM.wrap[0].getElementsByTagName('*'); + + for (; i < list.length; i ++) { + elem = list[i]; + png = elem.currentStyle['png']; + if (png) { + pngPath = path + png; + runtimeStyle = elem.runtimeStyle; + runtimeStyle.backgroundImage = 'none'; + runtimeStyle.filter = "progid:DXImageTransform.Microsoft." + + "AlphaImageLoader(src='" + pngPath + "',sizingMethod='crop')"; + }; + }; + } : $.noop, + + // 强制覆盖IE6下拉控件 + _ie6SelectFix: _isIE6 ? function () { + var $wrap = this.DOM.wrap, + wrap = $wrap[0], + expando = _expando + 'iframeMask', + iframe = $wrap[expando], + width = wrap.offsetWidth, + height = wrap.offsetHeight; + + width = width + 'px'; + height = height + 'px'; + if (iframe) { + iframe.style.width = width; + iframe.style.height = height; + } else { + iframe = wrap.appendChild(document.createElement('iframe')); + $wrap[expando] = iframe; + iframe.src = 'about:blank'; + iframe.style.cssText = 'position:absolute;z-index:-1;left:0;top:0;' + + 'filter:alpha(opacity=0);width:' + width + ';height:' + height; + }; + } : $.noop, + + // 解析HTML片段中自定义类型脚本,其this指向artDialog内部 + // + _runScript: function (elem) { + var fun, i = 0, n = 0, + tags = elem.getElementsByTagName('script'), + length = tags.length, + script = []; + + for (; i < length; i ++) { + if (tags[i].type === 'text/dialog') { + script[n] = tags[i].innerHTML; + n ++; + }; + }; + + if (script.length) { + script = script.join(''); + fun = new Function(script); + fun.call(this); + }; + }, + + // 自动切换定位类型 + _autoPositionType: function () { + this[this.config.fixed ? '_setFixed' : '_setAbsolute']();///////////// + }, + + + // 设置静止定位 + // IE6 Fixed @see: http://www.planeart.cn/?p=877 + _setFixed: (function () { + _isIE6 && $(function () { + var bg = 'backgroundAttachment'; + if (_$html.css(bg) !== 'fixed' && $('body').css(bg) !== 'fixed') { + _$html.css({ + zoom: 1,// 避免偶尔出现body背景图片异常的情况 + backgroundImage: 'url(about:blank)', + backgroundAttachment: 'fixed' + }); + }; + }); + + return function () { + var $elem = this.DOM.wrap, + style = $elem[0].style; + + if (_isIE6) { + var left = parseInt($elem.css('left')), + top = parseInt($elem.css('top')), + sLeft = _$document.scrollLeft(), + sTop = _$document.scrollTop(), + txt = '(document.documentElement)'; + + this._setAbsolute(); + style.setExpression('left', 'eval(' + txt + '.scrollLeft + ' + + (left - sLeft) + ') + "px"'); + style.setExpression('top', 'eval(' + txt + '.scrollTop + ' + + (top - sTop) + ') + "px"'); + } else { + style.position = 'fixed'; + }; + }; + }()), + + // 设置绝对定位 + _setAbsolute: function () { + var style = this.DOM.wrap[0].style; + + if (_isIE6) { + style.removeExpression('left'); + style.removeExpression('top'); + }; + + style.position = 'absolute'; + }, + + // 按钮回调函数触发 + _click: function (name) { + var that = this, + fn = that._listeners[name] && that._listeners[name].callback; + return typeof fn !== 'function' || fn.call(that, window) !== false ? + that.close() : that; + }, + + // 重置位置与尺寸 + _reset: function (test) { + var newSize, + that = this, + oldSize = that._winSize || _$window.width() * _$window.height(), + elem = that._follow, + width = that._width, + height = that._height, + left = that._left, + top = that._top; + + if (test) { + // IE6~7 window.onresize bug + newSize = that._winSize = _$window.width() * _$window.height(); + if (oldSize === newSize) return; + }; + + if (width || height) that.size(width, height); + + if (elem) { + that.follow(elem); + } else if (left || top) { + that.position(left, top); + }; + }, + + // 事件代理 + _addEvent: function () { + var resizeTimer, + that = this, + config = that.config, + isIE = 'CollectGarbage' in window, + DOM = that.DOM; + + // 窗口调节事件 + that._winResize = function () { + resizeTimer && clearTimeout(resizeTimer); + resizeTimer = setTimeout(function () { + that._reset(isIE); + }, 40); + }; + _$window.bind('resize', that._winResize); + + // 监听点击 + DOM.wrap + .bind('click', function (event) { + var target = event.target, callbackID; + + if (target.disabled) return false; // IE BUG + + if (target === DOM.close[0]) { + that._click(config.cancelVal); + return false; + } else { + callbackID = target[_expando + 'callback']; + callbackID && that._click(callbackID); + }; + + that._ie6SelectFix(); + }) + .bind('mousedown', function () { + that.zIndex(); + }); + }, + + // 卸载事件代理 + _removeEvent: function () { + var that = this, + DOM = that.DOM; + + DOM.wrap.unbind(); + _$window.unbind('resize', that._winResize); + } + +}; + +artDialog.fn._init.prototype = artDialog.fn; +$.fn.dialog = $.fn.artDialog = function () { + var config = arguments; + this[this.live ? 'live' : 'bind']('click', function () { + artDialog.apply(this, config); + return false; + }); + return this; +}; + + + +/** 最顶层的对话框API */ +artDialog.focus = null; + + +/** 获取某对话框API */ +artDialog.get = function (id) { + return id === undefined + ? artDialog.list + : artDialog.list[id]; +}; + +artDialog.list = {}; + + + +// 全局快捷键 +_$document.bind('keydown', function (event) { + var target = event.target, + nodeName = target.nodeName, + rinput = /^INPUT|TEXTAREA$/, + api = artDialog.focus, + keyCode = event.keyCode; + + if (!api || !api.config.esc || rinput.test(nodeName)) return; + + keyCode === 27 && api._click(api.config.cancelVal); +}); + + + +// 获取artDialog路径 +_path = window['_artDialog_path'] || (function (script, i, me) { + for (i in script) { + // 如果通过第三方脚本加载器加载本文件,请保证文件名含有"artDialog"字符 + if (script[i].src && script[i].src.indexOf('artDialog') !== -1) me = script[i]; + }; + + _thisScript = me || script[script.length - 1]; + me = _thisScript.src.replace(/\\/g, '/'); + return me.lastIndexOf('/') < 0 ? '.' : me.substring(0, me.lastIndexOf('/')); +}(document.getElementsByTagName('script'))); + + + +// 无阻塞载入CSS (如"artDialog.js?skin=aero") +_skin = _thisScript.src.split('skin=')[1]; +if (_skin) { + var link = document.createElement('link'); + link.rel = 'stylesheet'; + link.href = _path + '/skins/' + _skin + '.css?' + artDialog.fn.version; + _thisScript.parentNode.insertBefore(link, _thisScript); +}; + + + +// 触发浏览器预先缓存背景图片 +_$window.bind('load', function () { + setTimeout(function () { + if (_count) return; + artDialog({left: '-9999em',time: 9,fixed: false,lock: false,focus: false}); + }, 150); +}); + + + +// 开启IE6 CSS背景图片缓存 +try { + document.execCommand('BackgroundImageCache', false, true); +} catch (e) {}; + + + + +// 使用uglifyjs压缩能够预先处理"+"号合并字符串 +// uglifyjs: http://marijnhaverbeke.nl/uglifyjs +artDialog._templates = +'
' ++ '' ++ '' +// + '' +// + '' +// + '' +// + '' +// + '' ++ '' +// + '' ++ '' +// + '' ++ '' +// + '' +// + '' +// + '' +// + '' +// + '' ++ '' ++ '
' ++ '
' ++ '' ++ '' ++ '' ++ '' ++ '' ++ '' ++ '' ++ '' ++ '' ++ '' ++ '' ++ '' ++ '' ++ '
' ++ '
' ++ '
' ++ '' ++ '\xd7' ++ '' ++ '
' ++ '
' ++ '
' ++ '
' ++ '
' ++ '
' ++ '
' ++ '
' ++'
'; + + + +/** + * 默认配置 + */ +artDialog.defaults = { + // 消息内容 + content: '
loading..
', + title: '\u6d88\u606f', // 标题. 默认'消息' + button: null, // 自定义按钮 + ok: null, // 确定按钮回调函数 + cancel: null, // 取消按钮回调函数 + init: null, // 对话框初始化后执行的函数 + close: null, // 对话框关闭前执行的函数 + okVal: '\u786E\u5B9A', // 确定按钮文本. 默认'确定' + cancelVal: '\u53D6\u6D88', // 取消按钮文本. 默认'取消' + width: 'auto', // 内容宽度 + height: 'auto', // 内容高度 + minWidth: 96, // 最小宽度限制 + minHeight: 32, // 最小高度限制 + padding: '20px 25px', // 内容与边界填充距离 + skin: '', // 皮肤名(预留接口,尚未实现) + icon: null, // 消息图标名称 + time: null, // 自动关闭时间 + esc: true, // 是否支持Esc键关闭 + focus: true, // 是否支持对话框按钮自动聚焦 + show: true, // 初始化后是否显示对话框 + follow: null, // 跟随某元素(即让对话框在元素附近弹出) + path: _path, // artDialog路径 + lock: false, // 是否锁屏 + background: '#000', // 遮罩颜色 + opacity: .7, // 遮罩透明度 + duration: 300, // 遮罩透明度渐变动画速度 + fixed: false, // 是否静止定位 + left: '50%', // X轴坐标 + top: '38.2%', // Y轴坐标 + zIndex: 1987, // 对话框叠加高度值(重要:此值不能超过浏览器最大限制) + resize: true, // 是否允许用户调节尺寸 + drag: true // 是否允许用户拖动位置 + +}; + +window.artDialog = $.dialog = $.artDialog = artDialog; +}(this.art || this.jQuery && (this.art = jQuery), this)); + + + + + + +//------------------------------------------------ +// 对话框模块-拖拽支持(可选外置模块) +//------------------------------------------------ +;(function ($) { + +var _dragEvent, _use, + _$window = $(window), + _$document = $(document), + _elem = document.documentElement, + _isIE6 = !('minWidth' in _elem.style), + _isLosecapture = 'onlosecapture' in _elem, + _isSetCapture = 'setCapture' in _elem; + +// 拖拽事件 +artDialog.dragEvent = function () { + var that = this, + proxy = function (name) { + var fn = that[name]; + that[name] = function () { + return fn.apply(that, arguments); + }; + }; + + proxy('start'); + proxy('move'); + proxy('end'); +}; + +artDialog.dragEvent.prototype = { + + // 开始拖拽 + onstart: $.noop, + start: function (event) { + _$document + .bind('mousemove', this.move) + .bind('mouseup', this.end); + + this._sClientX = event.clientX; + this._sClientY = event.clientY; + this.onstart(event.clientX, event.clientY); + + return false; + }, + + // 正在拖拽 + onmove: $.noop, + move: function (event) { + this._mClientX = event.clientX; + this._mClientY = event.clientY; + this.onmove( + event.clientX - this._sClientX, + event.clientY - this._sClientY + ); + + return false; + }, + + // 结束拖拽 + onend: $.noop, + end: function (event) { + _$document + .unbind('mousemove', this.move) + .unbind('mouseup', this.end); + + this.onend(event.clientX, event.clientY); + return false; + } + +}; + +_use = function (event) { + var limit, startWidth, startHeight, startLeft, startTop, isResize, + api = artDialog.focus, + //config = api.config, + DOM = api.DOM, + wrap = DOM.wrap, + title = DOM.title, + main = DOM.main; + + // 清除文本选择 + var clsSelect = 'getSelection' in window ? function () { + window.getSelection().removeAllRanges(); + } : function () { + try { + document.selection.empty(); + } catch (e) {}; + }; + + // 对话框准备拖动 + _dragEvent.onstart = function (x, y) { + if (isResize) { + startWidth = main[0].offsetWidth; + startHeight = main[0].offsetHeight; + } else { + startLeft = wrap[0].offsetLeft; + startTop = wrap[0].offsetTop; + }; + + _$document.bind('dblclick', _dragEvent.end); + !_isIE6 && _isLosecapture ? + title.bind('losecapture', _dragEvent.end) : + _$window.bind('blur', _dragEvent.end); + _isSetCapture && title[0].setCapture(); + + wrap.addClass('aui_state_drag'); + api.focus(); + }; + + // 对话框拖动进行中 + _dragEvent.onmove = function (x, y) { + if (isResize) { + var wrapStyle = wrap[0].style, + style = main[0].style, + width = x + startWidth, + height = y + startHeight; + + wrapStyle.width = 'auto'; + style.width = Math.max(0, width) + 'px'; + wrapStyle.width = wrap[0].offsetWidth + 'px'; + + style.height = Math.max(0, height) + 'px'; + + } else { + var style = wrap[0].style, + left = Math.max(limit.minX, Math.min(limit.maxX, x + startLeft)), + top = Math.max(limit.minY, Math.min(limit.maxY, y + startTop)); + + style.left = left + 'px'; + style.top = top + 'px'; + }; + + clsSelect(); + api._ie6SelectFix(); + }; + + // 对话框拖动结束 + _dragEvent.onend = function (x, y) { + _$document.unbind('dblclick', _dragEvent.end); + !_isIE6 && _isLosecapture ? + title.unbind('losecapture', _dragEvent.end) : + _$window.unbind('blur', _dragEvent.end); + _isSetCapture && title[0].releaseCapture(); + + _isIE6 && !api.closed && api._autoPositionType(); + + wrap.removeClass('aui_state_drag'); + }; + + isResize = event.target === DOM.se[0] ? true : false; + limit = (function () { + var maxX, maxY, + wrap = api.DOM.wrap[0], + fixed = wrap.style.position === 'fixed', + ow = wrap.offsetWidth, + oh = wrap.offsetHeight, + ww = _$window.width(), + wh = _$window.height(), + dl = fixed ? 0 : _$document.scrollLeft(), + dt = fixed ? 0 : _$document.scrollTop(), + + // 坐标最大值限制 + maxX = ww - ow + dl; + maxY = wh - oh + dt; + + return { + minX: dl, + minY: dt, + maxX: maxX, + maxY: maxY + }; + })(); + + _dragEvent.start(event); +}; + +// 代理 mousedown 事件触发对话框拖动 +_$document.bind('mousedown', function (event) { + var api = artDialog.focus; + if (!api) return; + + var target = event.target, + config = api.config, + DOM = api.DOM; + + if (config.drag !== false && target === DOM.title[0] + || config.resize !== false && target === DOM.se[0]) { + _dragEvent = _dragEvent || new artDialog.dragEvent(); + _use(event); + return false;// 防止firefox与chrome滚屏 + }; +}); + +})(this.art || this.jQuery && (this.art = jQuery)); + diff --git a/js/artDialog/jquery.artDialog.js b/js/artDialog/jquery.artDialog.js new file mode 100644 index 0000000..3f681b6 --- /dev/null +++ b/js/artDialog/jquery.artDialog.js @@ -0,0 +1,10 @@ +/*! + * artDialog 4.1.7 + * Date: 2013-03-03 08:04 + * http://code.google.com/p/artdialog/ + * (c) 2009-2012 TangBin, http://www.planeArt.cn + * + * This is licensed under the GNU LGPL, version 2.1 or later. + * For details, see: http://creativecommons.org/licenses/LGPL/2.1/ + */ +(function(e,t,n){e.noop=e.noop||function(){};var r,i,s,o,u=0,a=e(t),f=e(document),l=e("html"),c=document.documentElement,h=t.VBArray&&!t.XMLHttpRequest,p="createTouch"in document&&!("onmousemove"in c)||/(iPhone|iPad|iPod)/i.test(navigator.userAgent),d="artDialog"+ +(new Date),v=function(t,i,s){t=t||{};if(typeof t=="string"||t.nodeType===1)t={content:t,fixed:!p};var o,a=v.defaults,f=t.follow=this.nodeType===1&&this||t.follow;for(var l in a)t[l]===n&&(t[l]=a[l]);return e.each({ok:"yesFn",cancel:"noFn",close:"closeFn",init:"initFn",okVal:"yesText",cancelVal:"noText"},function(e,r){t[e]=t[e]!==n?t[e]:t[r]}),typeof f=="string"&&(f=e(f)[0]),t.id=f&&f[d+"follow"]||t.id||d+u,o=v.list[t.id],f&&o?o.follow(f).zIndex().focus():o?o.zIndex().focus():(p&&(t.fixed=!1),e.isArray(t.button)||(t.button=t.button?[t.button]:[]),i!==n&&(t.ok=i),s!==n&&(t.cancel=s),t.ok&&t.button.push({name:t.okVal,callback:t.ok,focus:!0}),t.cancel&&t.button.push({name:t.cancelVal,callback:t.cancel}),v.defaults.zIndex=t.zIndex,u++,v.list[t.id]=r?r._init(t):new v.fn._init(t))};v.fn=v.prototype={version:"4.1.7",closed:!0,_init:function(e){var n=this,i,s=e.icon,o=s&&(h?{png:"icons/"+s+".png"}:{backgroundImage:"url('"+e.path+"/skins/icons/"+s+".png')"});return n.closed=!1,n.config=e,n.DOM=i=n.DOM||n._getDOM(),i.wrap.addClass(e.skin),i.close[e.cancel===!1?"hide":"show"](),i.icon[0].style.display=s?"":"none",i.iconBg.css(o||{background:"none"}),i.se.css("cursor",e.resize?"se-resize":"auto"),i.title.css("cursor",e.drag?"move":"auto"),i.content.css("padding",e.padding),n[e.show?"show":"hide"](!0),n.button(e.button).title(e.title).content(e.content,!0).size(e.width,e.height).time(e.time),e.follow?n.follow(e.follow):n.position(e.left,e.top),n.zIndex().focus(),e.lock&&n.lock(),n._addEvent(),n._ie6PngFix(),r=null,e.init&&e.init.call(n,t),n},content:function(e){var t,r,i,s,o=this,u=o.DOM,a=u.wrap[0],f=a.offsetWidth,l=a.offsetHeight,c=parseInt(a.style.left),h=parseInt(a.style.top),p=a.style.width,d=u.content,v=d[0];return o._elemBack&&o._elemBack(),a.style.width="auto",e===n?v:(typeof e=="string"?d.html(e):e&&e.nodeType===1&&(s=e.style.display,t=e.previousSibling,r=e.nextSibling,i=e.parentNode,o._elemBack=function(){t&&t.parentNode?t.parentNode.insertBefore(e,t.nextSibling):r&&r.parentNode?r.parentNode.insertBefore(e,r):i&&i.appendChild(e),e.style.display=s,o._elemBack=null},d.html(""),v.appendChild(e),e.style.display="block"),arguments[1]||(o.config.follow?o.follow(o.config.follow):(f=a.offsetWidth-f,l=a.offsetHeight-l,c-=f/2,h-=l/2,a.style.left=Math.max(c,0)+"px",a.style.top=Math.max(h,0)+"px"),p&&p!=="auto"&&(a.style.width=a.offsetWidth+"px"),o._autoPositionType()),o._ie6SelectFix(),o._runScript(v),o)},title:function(e){var t=this.DOM,r=t.wrap,i=t.title,s="aui_state_noTitle";return e===n?i[0]:(e===!1?(i.hide().html(""),r.addClass(s)):(i.show().html(e||""),r.removeClass(s)),this)},position:function(e,t){var r=this,i=r.config,s=r.DOM.wrap[0],o=h?!1:i.fixed,u=h&&r.config.fixed,l=f.scrollLeft(),c=f.scrollTop(),p=o?0:l,d=o?0:c,v=a.width(),m=a.height(),g=s.offsetWidth,y=s.offsetHeight,b=s.style;if(e||e===0)r._left=e.toString().indexOf("%")!==-1?e:null,e=r._toNumber(e,v-g),typeof e=="number"?(e=u?e+=l:e+p,b.left=Math.max(e,p)+"px"):typeof e=="string"&&(b.left=e);if(t||t===0)r._top=t.toString().indexOf("%")!==-1?t:null,t=r._toNumber(t,m-y),typeof t=="number"?(t=u?t+=c:t+d,b.top=Math.max(t,d)+"px"):typeof t=="string"&&(b.top=t);return e!==n&&t!==n&&(r._follow=null,r._autoPositionType()),r},size:function(e,t){var n,r,i,s,o=this,u=o.config,f=o.DOM,l=f.wrap,c=f.main,h=l[0].style,p=c[0].style;return e&&(o._width=e.toString().indexOf("%")!==-1?e:null,n=a.width()-l[0].offsetWidth+c[0].offsetWidth,i=o._toNumber(e,n),e=i,typeof e=="number"?(h.width="auto",p.width=Math.max(o.config.minWidth,e)+"px",h.width=l[0].offsetWidth+"px"):typeof e=="string"&&(p.width=e,e==="auto"&&l.css("width","auto"))),t&&(o._height=t.toString().indexOf("%")!==-1?t:null,r=a.height()-l[0].offsetHeight+c[0].offsetHeight,s=o._toNumber(t,r),t=s,typeof t=="number"?p.height=Math.max(o.config.minHeight,t)+"px":typeof t=="string"&&(p.height=t)),o._ie6SelectFix(),o},follow:function(t){var n,r=this,i=r.config;if(typeof t=="string"||t&&t.nodeType===1)n=e(t),t=n[0];if(!t||!t.offsetWidth&&!t.offsetHeight)return r.position(r._left,r._top);var s=d+"follow",o=a.width(),u=a.height(),l=f.scrollLeft(),c=f.scrollTop(),p=n.offset(),v=t.offsetWidth,m=t.offsetHeight,g=h?!1:i.fixed,y=g?p.left-l:p.left,b=g?p.top-c:p.top,w=r.DOM.wrap[0],E=w.style,S=w.offsetWidth,x=w.offsetHeight,T=y-(S-v)/2,N=b+m,C=g?0:l,k=g?0:c;return T=To&&y-S>C?y-S+v:T,N=N+x>u+k&&b-x>k?b-x:N,E.left=T+"px",E.top=N+"px",r._follow&&r._follow.removeAttribute(s),r._follow=t,t[s]=i.id,r._autoPositionType(),r},button:function(){var t=this,r=arguments,i=t.DOM,s=i.buttons,o=s[0],u="aui_state_highlight",a=t._listeners=t._listeners||{},f=e.isArray(r[0])?r[0]:[].slice.call(r);return r[0]===n?o:(e.each(f,function(n,r){var i=r.name,s=!a[i],f=s?document.createElement("button"):a[i].elem;a[i]||(a[i]={}),r.callback&&(a[i].callback=r.callback),r.className&&(f.className=r.className),r.focus&&(t._focus&&t._focus.removeClass(u),t._focus=e(f).addClass(u),t.focus()),f.setAttribute("type","button"),f[d+"callback"]=i,f.disabled=!!r.disabled,s&&(f.innerHTML=i,a[i].elem=f,o.appendChild(f))}),s[0].style.display=f.length?"":"none",t._ie6SelectFix(),t)},show:function(){return this.DOM.wrap.show(),!arguments[0]&&this._lockMaskWrap&&this._lockMaskWrap.show(),this},hide:function(){return this.DOM.wrap.hide(),!arguments[0]&&this._lockMaskWrap&&this._lockMaskWrap.hide(),this},close:function(){if(this.closed)return this;var e=this,n=e.DOM,i=n.wrap,s=v.list,o=e.config.close,u=e.config.follow;e.time();if(typeof o=="function"&&o.call(e,t)===!1)return e;e.unlock(),e._elemBack&&e._elemBack(),i[0].className=i[0].style.cssText="",n.title.html(""),n.content.html(""),n.buttons.html(""),v.focus===e&&(v.focus=null),u&&u.removeAttribute(d+"follow"),delete s[e.config.id],e._removeEvent(),e.hide(!0)._setAbsolute();for(var a in e)e.hasOwnProperty(a)&&a!=="DOM"&&delete e[a];return r?i.remove():r=e,e},time:function(e){var t=this,n=t.config.cancelVal,r=t._timer;return r&&clearTimeout(r),e&&(t._timer=setTimeout(function(){t._click(n)},1e3*e)),t},focus:function(){try{if(this.config.focus){var e=this._focus&&this._focus[0]||this.DOM.close[0];e&&e.focus()}}catch(t){}return this},zIndex:function(){var e=this,t=e.DOM,n=t.wrap,r=v.focus,i=v.defaults.zIndex++;return n.css("zIndex",i),e._lockMask&&e._lockMask.css("zIndex",i-1),r&&r.DOM.wrap.removeClass("aui_state_focus"),v.focus=e,n.addClass("aui_state_focus"),e},lock:function(){if(this._lock)return this;var t=this,n=v.defaults.zIndex-1,r=t.DOM.wrap,i=t.config,s=f.width(),o=f.height(),u=t._lockMaskWrap||e(document.body.appendChild(document.createElement("div"))),a=t._lockMask||e(u[0].appendChild(document.createElement("div"))),l="(document).documentElement",c=p?"width:"+s+"px;height:"+o+"px":"width:100%;height:100%",d=h?"position:absolute;left:expression("+l+".scrollLeft);top:expression("+l+".scrollTop);width:expression("+l+".clientWidth);height:expression("+l+".clientHeight)":"";return t.zIndex(),r.addClass("aui_state_lock"),u[0].style.cssText=c+";position:fixed;z-index:"+n+";top:0;left:0;overflow:hidden;"+d,a[0].style.cssText="height:100%;background:"+i.background+";filter:alpha(opacity=0);opacity:0",h&&a.html(''),a.stop(),a.bind("click",function(){t._reset()}).bind("dblclick",function(){t._click(t.config.cancelVal)}),i.duration===0?a.css({opacity:i.opacity}):a.animate({opacity:i.opacity},i.duration),t._lockMaskWrap=u,t._lockMask=a,t._lock=!0,t},unlock:function(){var e=this,t=e._lockMaskWrap,n=e._lockMask;if(!e._lock)return e;var i=t[0].style,s=function(){h&&(i.removeExpression("width"),i.removeExpression("height"),i.removeExpression("left"),i.removeExpression("top")),i.cssText="display:none",r&&t.remove()};return n.stop().unbind(),e.DOM.wrap.removeClass("aui_state_lock"),e.config.duration?n.animate({opacity:0},e.config.duration,s):s(),e._lock=!1,e},_getDOM:function(){var t=document.createElement("div"),n=document.body;t.style.cssText="position:absolute;left:0;top:0",t.innerHTML=v._templates,n.insertBefore(t,n.firstChild);var r,i=0,s={wrap:e(t)},o=t.getElementsByTagName("*"),u=o.length;for(;i
',v.defaults={content:'
loading..
',title:"\u6d88\u606f",button:null,ok:null,cancel:null,init:null,close:null,okVal:"\u786e\u5b9a",cancelVal:"\u53d6\u6d88",width:"auto",height:"auto",minWidth:96,minHeight:32,padding:"20px 25px",skin:"",icon:null,time:null,esc:!0,focus:!0,show:!0,follow:null,path:o,lock:!1,background:"#000",opacity:.7,duration:300,fixed:!1,left:"50%",top:"38.2%",zIndex:1987,resize:!0,drag:!0},t.artDialog=e.dialog=e.artDialog=v})(this.art||this.jQuery&&(this.art=jQuery),this),function(e){var t,n,r=e(window),i=e(document),s=document.documentElement,o=!("minWidth"in s.style),u="onlosecapture"in s,a="setCapture"in s;artDialog.dragEvent=function(){var e=this,t=function(t){var n=e[t];e[t]=function(){return n.apply(e,arguments)}};t("start"),t("move"),t("end")},artDialog.dragEvent.prototype={onstart:e.noop,start:function(e){return i.bind("mousemove",this.move).bind("mouseup",this.end),this._sClientX=e.clientX,this._sClientY=e.clientY,this.onstart(e.clientX,e.clientY),!1},onmove:e.noop,move:function(e){return this._mClientX=e.clientX,this._mClientY=e.clientY,this.onmove(e.clientX-this._sClientX,e.clientY-this._sClientY),!1},onend:e.noop,end:function(e){return i.unbind("mousemove",this.move).unbind("mouseup",this.end),this.onend(e.clientX,e.clientY),!1}},n=function(e){var n,s,f,l,c,h,p=artDialog.focus,d=p.DOM,v=d.wrap,m=d.title,g=d.main,y="getSelection"in window?function(){window.getSelection().removeAllRanges()}:function(){try{document.selection.empty()}catch(e){}};t.onstart=function(e,n){h?(s=g[0].offsetWidth,f=g[0].offsetHeight):(l=v[0].offsetLeft,c=v[0].offsetTop),i.bind("dblclick",t.end),!o&&u?m.bind("losecapture",t.end):r.bind("blur",t.end),a&&m[0].setCapture(),v.addClass("aui_state_drag"),p.focus()},t.onmove=function(e,t){if(h){var r=v[0].style,i=g[0].style,o=e+s,u=t+f;r.width="auto",i.width=Math.max(0,o)+"px",r.width=v[0].offsetWidth+"px",i.height=Math.max(0,u)+"px"}else{var i=v[0].style,a=Math.max(n.minX,Math.min(n.maxX,e+l)),d=Math.max(n.minY,Math.min(n.maxY,t+c));i.left=a+"px",i.top=d+"px"}y(),p._ie6SelectFix()},t.onend=function(e,n){i.unbind("dblclick",t.end),!o&&u?m.unbind("losecapture",t.end):r.unbind("blur",t.end),a&&m[0].releaseCapture(),o&&!p.closed&&p._autoPositionType(),v.removeClass("aui_state_drag")},h=e.target===d.se[0]?!0:!1,n=function(){var e,t,n=p.DOM.wrap[0],s=n.style.position==="fixed",o=n.offsetWidth,u=n.offsetHeight,a=r.width(),f=r.height(),l=s?0:i.scrollLeft(),c=s?0:i.scrollTop(),e=a-o+l;return t=f-u+c,{minX:l,minY:c,maxX:e,maxY:t}}(),t.start(e)},i.bind("mousedown",function(e){var r=artDialog.focus;if(!r)return;var i=e.target,s=r.config,o=r.DOM;if(s.drag!==!1&&i===o.title[0]||s.resize!==!1&&i===o.se[0])return t=t||new artDialog.dragEvent,n(e),!1})}(this.art||this.jQuery&&(this.art=jQuery)) \ No newline at end of file diff --git a/js/artDialog/jquery.artDialog.source.js b/js/artDialog/jquery.artDialog.source.js new file mode 100644 index 0000000..8114c2a --- /dev/null +++ b/js/artDialog/jquery.artDialog.source.js @@ -0,0 +1,1261 @@ +/*! + * artDialog 4.1.7 + * Date: 2013-03-03 08:04 + * http://code.google.com/p/artdialog/ + * (c) 2009-2012 TangBin, http://www.planeArt.cn + * + * This is licensed under the GNU LGPL, version 2.1 or later. + * For details, see: http://creativecommons.org/licenses/LGPL/2.1/ + */ + + + + +//------------------------------------------------ +// 对话框模块 +//------------------------------------------------ +;(function ($, window, undefined) { + +$.noop = $.noop || function () {}; // jQuery 1.3.2 +var _box, _thisScript, _skin, _path, + _count = 0, + _$window = $(window), + _$document = $(document), + _$html = $('html'), + _elem = document.documentElement, + _isIE6 = window.VBArray && !window.XMLHttpRequest, + _isMobile = 'createTouch' in document && !('onmousemove' in _elem) + || /(iPhone|iPad|iPod)/i.test(navigator.userAgent), + _expando = 'artDialog' + + new Date; + +var artDialog = function (config, ok, cancel) { + config = config || {}; + + if (typeof config === 'string' || config.nodeType === 1) { + config = {content: config, fixed: !_isMobile}; + }; + + var api, + defaults = artDialog.defaults, + elem = config.follow = this.nodeType === 1 && this || config.follow; + + // 合并默认配置 + for (var i in defaults) { + if (config[i] === undefined) config[i] = defaults[i]; + }; + + // 兼容v4.1.0之前的参数,未来版本将删除此 + $.each({ok:"yesFn",cancel:"noFn",close:"closeFn",init:"initFn",okVal:"yesText",cancelVal:"noText"}, + function(i,o){config[i]=config[i]!==undefined?config[i]:config[o]}); + + // 返回跟随模式或重复定义的ID + if (typeof elem === 'string') elem = $(elem)[0]; + config.id = elem && elem[_expando + 'follow'] || config.id || _expando + _count; + api = artDialog.list[config.id]; + if (elem && api) return api.follow(elem).zIndex().focus(); + if (api) return api.zIndex().focus(); + + // 目前主流移动设备对fixed支持不好 + if (_isMobile) config.fixed = false; + + // 按钮队列 + if (!$.isArray(config.button)) { + config.button = config.button ? [config.button] : []; + }; + if (ok !== undefined) config.ok = ok; + if (cancel !== undefined) config.cancel = cancel; + config.ok && config.button.push({ + name: config.okVal, + callback: config.ok, + focus: true + }); + config.cancel && config.button.push({ + name: config.cancelVal, + callback: config.cancel + }); + + // zIndex全局配置 + artDialog.defaults.zIndex = config.zIndex; + + _count ++; + + return artDialog.list[config.id] = _box ? + _box._init(config) : new artDialog.fn._init(config); +}; + +artDialog.fn = artDialog.prototype = { + + version: '4.1.7', + + closed: true, + + _init: function (config) { + var that = this, DOM, + icon = config.icon, + iconBg = icon && (_isIE6 ? {png: 'icons/' + icon + '.png'} + : {backgroundImage: 'url(\'' + config.path + '/skins/icons/' + icon + '.png\')'}); + + that.closed = false; + that.config = config; + that.DOM = DOM = that.DOM || that._getDOM(); + + DOM.wrap.addClass(config.skin); + DOM.close[config.cancel === false ? 'hide' : 'show'](); + DOM.icon[0].style.display = icon ? '' : 'none'; + DOM.iconBg.css(iconBg || {background: 'none'}); + DOM.se.css('cursor', config.resize ? 'se-resize' : 'auto'); + DOM.title.css('cursor', config.drag ? 'move' : 'auto'); + DOM.content.css('padding', config.padding); + + that[config.show ? 'show' : 'hide'](true) + that.button(config.button) + .title(config.title) + .content(config.content, true) + .size(config.width, config.height) + .time(config.time); + + config.follow + ? that.follow(config.follow) + : that.position(config.left, config.top); + + that.zIndex().focus(); + config.lock && that.lock(); + + that._addEvent(); + that._ie6PngFix(); + _box = null; + + config.init && config.init.call(that, window); + return that; + }, + + /** + * 设置内容 + * @param {String, HTMLElement} 内容 (可选) + * @return {this, HTMLElement} 如果无参数则返回内容容器DOM对象 + */ + content: function (msg) { + var prev, next, parent, display, + that = this, + DOM = that.DOM, + wrap = DOM.wrap[0], + width = wrap.offsetWidth, + height = wrap.offsetHeight, + left = parseInt(wrap.style.left), + top = parseInt(wrap.style.top), + cssWidth = wrap.style.width, + $content = DOM.content, + content = $content[0]; + + that._elemBack && that._elemBack(); + wrap.style.width = 'auto'; + + if (msg === undefined) return content; + if (typeof msg === 'string') { + $content.html(msg); + } else if (msg && msg.nodeType === 1) { + + // 让传入的元素在对话框关闭后可以返回到原来的地方 + display = msg.style.display; + prev = msg.previousSibling; + next = msg.nextSibling; + parent = msg.parentNode; + that._elemBack = function () { + if (prev && prev.parentNode) { + prev.parentNode.insertBefore(msg, prev.nextSibling); + } else if (next && next.parentNode) { + next.parentNode.insertBefore(msg, next); + } else if (parent) { + parent.appendChild(msg); + }; + msg.style.display = display; + that._elemBack = null; + }; + + $content.html(''); + content.appendChild(msg); + msg.style.display = 'block'; + + }; + + // 新增内容后调整位置 + if (!arguments[1]) { + if (that.config.follow) { + that.follow(that.config.follow); + } else { + width = wrap.offsetWidth - width; + height = wrap.offsetHeight - height; + left = left - width / 2; + top = top - height / 2; + wrap.style.left = Math.max(left, 0) + 'px'; + wrap.style.top = Math.max(top, 0) + 'px'; + }; + if (cssWidth && cssWidth !== 'auto') { + wrap.style.width = wrap.offsetWidth + 'px'; + }; + that._autoPositionType(); + }; + + that._ie6SelectFix(); + that._runScript(content); + + return that; + }, + + /** + * 设置标题 + * @param {String, Boolean} 标题内容. 为false则隐藏标题栏 + * @return {this, HTMLElement} 如果无参数则返回内容器DOM对象 + */ + title: function (text) { + var DOM = this.DOM, + wrap = DOM.wrap, + title = DOM.title, + className = 'aui_state_noTitle'; + + if (text === undefined) return title[0]; + if (text === false) { + title.hide().html(''); + wrap.addClass(className); + } else { + title.show().html(text || ''); + wrap.removeClass(className); + }; + + return this; + }, + + /** + * 位置(相对于可视区域) + * @param {Number, String} + * @param {Number, String} + */ + position: function (left, top) { + var that = this, + config = that.config, + wrap = that.DOM.wrap[0], + isFixed = _isIE6 ? false : config.fixed, + ie6Fixed = _isIE6 && that.config.fixed, + docLeft = _$document.scrollLeft(), + docTop = _$document.scrollTop(), + dl = isFixed ? 0 : docLeft, + dt = isFixed ? 0 : docTop, + ww = _$window.width(), + wh = _$window.height(), + ow = wrap.offsetWidth, + oh = wrap.offsetHeight, + style = wrap.style; + + if (left || left === 0) { + that._left = left.toString().indexOf('%') !== -1 ? left : null; + left = that._toNumber(left, ww - ow); + + if (typeof left === 'number') { + left = ie6Fixed ? (left += docLeft) : left + dl; + style.left = Math.max(left, dl) + 'px'; + } else if (typeof left === 'string') { + style.left = left; + }; + }; + + if (top || top === 0) { + that._top = top.toString().indexOf('%') !== -1 ? top : null; + top = that._toNumber(top, wh - oh); + + if (typeof top === 'number') { + top = ie6Fixed ? (top += docTop) : top + dt; + style.top = Math.max(top, dt) + 'px'; + } else if (typeof top === 'string') { + style.top = top; + }; + }; + + if (left !== undefined && top !== undefined) { + that._follow = null; + that._autoPositionType(); + }; + + return that; + }, + + /** + * 尺寸 + * @param {Number, String} 宽度 + * @param {Number, String} 高度 + */ + size: function (width, height) { + var maxWidth, maxHeight, scaleWidth, scaleHeight, + that = this, + config = that.config, + DOM = that.DOM, + wrap = DOM.wrap, + main = DOM.main, + wrapStyle = wrap[0].style, + style = main[0].style; + + if (width) { + that._width = width.toString().indexOf('%') !== -1 ? width : null; + maxWidth = _$window.width() - wrap[0].offsetWidth + main[0].offsetWidth; + scaleWidth = that._toNumber(width, maxWidth); + width = scaleWidth; + + if (typeof width === 'number') { + wrapStyle.width = 'auto'; + style.width = Math.max(that.config.minWidth, width) + 'px'; + wrapStyle.width = wrap[0].offsetWidth + 'px'; // 防止未定义宽度的表格遇到浏览器右边边界伸缩 + } else if (typeof width === 'string') { + style.width = width; + width === 'auto' && wrap.css('width', 'auto'); + }; + }; + + if (height) { + that._height = height.toString().indexOf('%') !== -1 ? height : null; + maxHeight = _$window.height() - wrap[0].offsetHeight + main[0].offsetHeight; + scaleHeight = that._toNumber(height, maxHeight); + height = scaleHeight; + + if (typeof height === 'number') { + style.height = Math.max(that.config.minHeight, height) + 'px'; + } else if (typeof height === 'string') { + style.height = height; + }; + }; + + that._ie6SelectFix(); + + return that; + }, + + /** + * 跟随元素 + * @param {HTMLElement, String} + */ + follow: function (elem) { + var $elem, that = this, config = that.config; + + if (typeof elem === 'string' || elem && elem.nodeType === 1) { + $elem = $(elem); + elem = $elem[0]; + }; + + // 隐藏元素不可用 + if (!elem || !elem.offsetWidth && !elem.offsetHeight) { + return that.position(that._left, that._top); + }; + + var expando = _expando + 'follow', + winWidth = _$window.width(), + winHeight = _$window.height(), + docLeft = _$document.scrollLeft(), + docTop = _$document.scrollTop(), + offset = $elem.offset(), + width = elem.offsetWidth, + height = elem.offsetHeight, + isFixed = _isIE6 ? false : config.fixed, + left = isFixed ? offset.left - docLeft : offset.left, + top = isFixed ? offset.top - docTop : offset.top, + wrap = that.DOM.wrap[0], + style = wrap.style, + wrapWidth = wrap.offsetWidth, + wrapHeight = wrap.offsetHeight, + setLeft = left - (wrapWidth - width) / 2, + setTop = top + height, + dl = isFixed ? 0 : docLeft, + dt = isFixed ? 0 : docTop; + + setLeft = setLeft < dl ? left : + (setLeft + wrapWidth > winWidth) && (left - wrapWidth > dl) + ? left - wrapWidth + width + : setLeft; + + setTop = (setTop + wrapHeight > winHeight + dt) + && (top - wrapHeight > dt) + ? top - wrapHeight + : setTop; + + style.left = setLeft + 'px'; + style.top = setTop + 'px'; + + that._follow && that._follow.removeAttribute(expando); + that._follow = elem; + elem[expando] = config.id; + that._autoPositionType(); + return that; + }, + + /** + * 自定义按钮 + * @example + button({ + name: 'login', + callback: function () {}, + disabled: false, + focus: true + }, .., ..) + */ + button: function () { + var that = this, + ags = arguments, + DOM = that.DOM, + buttons = DOM.buttons, + elem = buttons[0], + strongButton = 'aui_state_highlight', + listeners = that._listeners = that._listeners || {}, + list = $.isArray(ags[0]) ? ags[0] : [].slice.call(ags); + + if (ags[0] === undefined) return elem; + $.each(list, function (i, val) { + var name = val.name, + isNewButton = !listeners[name], + button = !isNewButton ? + listeners[name].elem : + document.createElement('button'); + + if (!listeners[name]) listeners[name] = {}; + if (val.callback) listeners[name].callback = val.callback; + if (val.className) button.className = val.className; + if (val.focus) { + that._focus && that._focus.removeClass(strongButton); + that._focus = $(button).addClass(strongButton); + that.focus(); + }; + + // Internet Explorer 的默认类型是 "button", + // 而其他浏览器中(包括 W3C 规范)的默认值是 "submit" + // @see http://www.w3school.com.cn/tags/att_button_type.asp + button.setAttribute('type', 'button'); + + button[_expando + 'callback'] = name; + button.disabled = !!val.disabled; + + if (isNewButton) { + button.innerHTML = name; + listeners[name].elem = button; + elem.appendChild(button); + }; + }); + + buttons[0].style.display = list.length ? '' : 'none'; + + that._ie6SelectFix(); + return that; + }, + + /** 显示对话框 */ + show: function () { + this.DOM.wrap.show(); + !arguments[0] && this._lockMaskWrap && this._lockMaskWrap.show(); + return this; + }, + + /** 隐藏对话框 */ + hide: function () { + this.DOM.wrap.hide(); + !arguments[0] && this._lockMaskWrap && this._lockMaskWrap.hide(); + return this; + }, + + /** 关闭对话框 */ + close: function () { + if (this.closed) return this; + + var that = this, + DOM = that.DOM, + wrap = DOM.wrap, + list = artDialog.list, + fn = that.config.close, + follow = that.config.follow; + + that.time(); + if (typeof fn === 'function' && fn.call(that, window) === false) { + return that; + }; + + that.unlock(); + + // 置空内容 + that._elemBack && that._elemBack(); + wrap[0].className = wrap[0].style.cssText = ''; + DOM.title.html(''); + DOM.content.html(''); + DOM.buttons.html(''); + + if (artDialog.focus === that) artDialog.focus = null; + if (follow) follow.removeAttribute(_expando + 'follow'); + delete list[that.config.id]; + that._removeEvent(); + that.hide(true)._setAbsolute(); + + // 清空除this.DOM之外临时对象,恢复到初始状态,以便使用单例模式 + for (var i in that) { + if (that.hasOwnProperty(i) && i !== 'DOM') delete that[i]; + }; + + // 移除HTMLElement或重用 + _box ? wrap.remove() : _box = that; + + return that; + }, + + /** + * 定时关闭 + * @param {Number} 单位为秒, 无参数则停止计时器 + */ + time: function (second) { + var that = this, + cancel = that.config.cancelVal, + timer = that._timer; + + timer && clearTimeout(timer); + + if (second) { + that._timer = setTimeout(function(){ + that._click(cancel); + }, 1000 * second); + }; + + return that; + }, + + /** 设置焦点 */ + focus: function () { + try { + if (this.config.focus) { + var elem = this._focus && this._focus[0] || this.DOM.close[0]; + elem && elem.focus(); + } + } catch (e) {}; // IE对不可见元素设置焦点会报错 + return this; + }, + + /** 置顶对话框 */ + zIndex: function () { + var that = this, + DOM = that.DOM, + wrap = DOM.wrap, + top = artDialog.focus, + index = artDialog.defaults.zIndex ++; + + // 设置叠加高度 + wrap.css('zIndex', index); + that._lockMask && that._lockMask.css('zIndex', index - 1); + + // 设置最高层的样式 + top && top.DOM.wrap.removeClass('aui_state_focus'); + artDialog.focus = that; + wrap.addClass('aui_state_focus'); + + return that; + }, + + /** 设置屏锁 */ + lock: function () { + if (this._lock) return this; + + var that = this, + index = artDialog.defaults.zIndex - 1, + wrap = that.DOM.wrap, + config = that.config, + docWidth = _$document.width(), + docHeight = _$document.height(), + lockMaskWrap = that._lockMaskWrap || $(document.body.appendChild(document.createElement('div'))), + lockMask = that._lockMask || $(lockMaskWrap[0].appendChild(document.createElement('div'))), + domTxt = '(document).documentElement', + sizeCss = _isMobile ? 'width:' + docWidth + 'px;height:' + docHeight + + 'px' : 'width:100%;height:100%', + ie6Css = _isIE6 ? + 'position:absolute;left:expression(' + domTxt + '.scrollLeft);top:expression(' + + domTxt + '.scrollTop);width:expression(' + domTxt + + '.clientWidth);height:expression(' + domTxt + '.clientHeight)' + : ''; + + that.zIndex(); + wrap.addClass('aui_state_lock'); + + lockMaskWrap[0].style.cssText = sizeCss + ';position:fixed;z-index:' + + index + ';top:0;left:0;overflow:hidden;' + ie6Css; + lockMask[0].style.cssText = 'height:100%;background:' + config.background + + ';filter:alpha(opacity=0);opacity:0'; + + // 让IE6锁屏遮罩能够盖住下拉控件 + if (_isIE6) lockMask.html( + ''); + + lockMask.stop(); + lockMask.bind('click', function () { + that._reset(); + }).bind('dblclick', function () { + that._click(that.config.cancelVal); + }); + + if (config.duration === 0) { + lockMask.css({opacity: config.opacity}); + } else { + lockMask.animate({opacity: config.opacity}, config.duration); + }; + + that._lockMaskWrap = lockMaskWrap; + that._lockMask = lockMask; + + that._lock = true; + return that; + }, + + /** 解开屏锁 */ + unlock: function () { + var that = this, + lockMaskWrap = that._lockMaskWrap, + lockMask = that._lockMask; + + if (!that._lock) return that; + var style = lockMaskWrap[0].style; + var un = function () { + if (_isIE6) { + style.removeExpression('width'); + style.removeExpression('height'); + style.removeExpression('left'); + style.removeExpression('top'); + }; + style.cssText = 'display:none'; + + _box && lockMaskWrap.remove(); + }; + + lockMask.stop().unbind(); + that.DOM.wrap.removeClass('aui_state_lock'); + if (!that.config.duration) {// 取消动画,快速关闭 + un(); + } else { + lockMask.animate({opacity: 0}, that.config.duration, un); + }; + + that._lock = false; + return that; + }, + + // 获取元素 + _getDOM: function () { + var wrap = document.createElement('div'), + body = document.body; + wrap.style.cssText = 'position:absolute;left:0;top:0'; + wrap.innerHTML = artDialog._templates; + body.insertBefore(wrap, body.firstChild); + + var name, i = 0, + DOM = {wrap: $(wrap)}, + els = wrap.getElementsByTagName('*'), + elsLen = els.length; + + for (; i < elsLen; i ++) { + name = els[i].className.split('aui_')[1]; + if (name) DOM[name] = $(els[i]); + }; + + return DOM; + }, + + // px与%单位转换成数值 (百分比单位按照最大值换算) + // 其他的单位返回原值 + _toNumber: function (thisValue, maxValue) { + if (!thisValue && thisValue !== 0 || typeof thisValue === 'number') { + return thisValue; + }; + + var last = thisValue.length - 1; + if (thisValue.lastIndexOf('px') === last) { + thisValue = parseInt(thisValue); + } else if (thisValue.lastIndexOf('%') === last) { + thisValue = parseInt(maxValue * thisValue.split('%')[0] / 100); + }; + + return thisValue; + }, + + // 让IE6 CSS支持PNG背景 + _ie6PngFix: _isIE6 ? function () { + var i = 0, elem, png, pngPath, runtimeStyle, + path = artDialog.defaults.path + '/skins/', + list = this.DOM.wrap[0].getElementsByTagName('*'); + + for (; i < list.length; i ++) { + elem = list[i]; + png = elem.currentStyle['png']; + if (png) { + pngPath = path + png; + runtimeStyle = elem.runtimeStyle; + runtimeStyle.backgroundImage = 'none'; + runtimeStyle.filter = "progid:DXImageTransform.Microsoft." + + "AlphaImageLoader(src='" + pngPath + "',sizingMethod='crop')"; + }; + }; + } : $.noop, + + // 强制覆盖IE6下拉控件 + _ie6SelectFix: _isIE6 ? function () { + var $wrap = this.DOM.wrap, + wrap = $wrap[0], + expando = _expando + 'iframeMask', + iframe = $wrap[expando], + width = wrap.offsetWidth, + height = wrap.offsetHeight; + + width = width + 'px'; + height = height + 'px'; + if (iframe) { + iframe.style.width = width; + iframe.style.height = height; + } else { + iframe = wrap.appendChild(document.createElement('iframe')); + $wrap[expando] = iframe; + iframe.src = 'about:blank'; + iframe.style.cssText = 'position:absolute;z-index:-1;left:0;top:0;' + + 'filter:alpha(opacity=0);width:' + width + ';height:' + height; + }; + } : $.noop, + + // 解析HTML片段中自定义类型脚本,其this指向artDialog内部 + // + _runScript: function (elem) { + var fun, i = 0, n = 0, + tags = elem.getElementsByTagName('script'), + length = tags.length, + script = []; + + for (; i < length; i ++) { + if (tags[i].type === 'text/dialog') { + script[n] = tags[i].innerHTML; + n ++; + }; + }; + + if (script.length) { + script = script.join(''); + fun = new Function(script); + fun.call(this); + }; + }, + + // 自动切换定位类型 + _autoPositionType: function () { + this[this.config.fixed ? '_setFixed' : '_setAbsolute']();///////////// + }, + + + // 设置静止定位 + // IE6 Fixed @see: http://www.planeart.cn/?p=877 + _setFixed: (function () { + _isIE6 && $(function () { + var bg = 'backgroundAttachment'; + if (_$html.css(bg) !== 'fixed' && $('body').css(bg) !== 'fixed') { + _$html.css({ + zoom: 1,// 避免偶尔出现body背景图片异常的情况 + backgroundImage: 'url(about:blank)', + backgroundAttachment: 'fixed' + }); + }; + }); + + return function () { + var $elem = this.DOM.wrap, + style = $elem[0].style; + + if (_isIE6) { + var left = parseInt($elem.css('left')), + top = parseInt($elem.css('top')), + sLeft = _$document.scrollLeft(), + sTop = _$document.scrollTop(), + txt = '(document.documentElement)'; + + this._setAbsolute(); + style.setExpression('left', 'eval(' + txt + '.scrollLeft + ' + + (left - sLeft) + ') + "px"'); + style.setExpression('top', 'eval(' + txt + '.scrollTop + ' + + (top - sTop) + ') + "px"'); + } else { + style.position = 'fixed'; + }; + }; + }()), + + // 设置绝对定位 + _setAbsolute: function () { + var style = this.DOM.wrap[0].style; + + if (_isIE6) { + style.removeExpression('left'); + style.removeExpression('top'); + }; + + style.position = 'absolute'; + }, + + // 按钮回调函数触发 + _click: function (name) { + var that = this, + fn = that._listeners[name] && that._listeners[name].callback; + return typeof fn !== 'function' || fn.call(that, window) !== false ? + that.close() : that; + }, + + // 重置位置与尺寸 + _reset: function (test) { + var newSize, + that = this, + oldSize = that._winSize || _$window.width() * _$window.height(), + elem = that._follow, + width = that._width, + height = that._height, + left = that._left, + top = that._top; + + if (test) { + // IE6~7 window.onresize bug + newSize = that._winSize = _$window.width() * _$window.height(); + if (oldSize === newSize) return; + }; + + if (width || height) that.size(width, height); + + if (elem) { + that.follow(elem); + } else if (left || top) { + that.position(left, top); + }; + }, + + // 事件代理 + _addEvent: function () { + var resizeTimer, + that = this, + config = that.config, + isIE = 'CollectGarbage' in window, + DOM = that.DOM; + + // 窗口调节事件 + that._winResize = function () { + resizeTimer && clearTimeout(resizeTimer); + resizeTimer = setTimeout(function () { + that._reset(isIE); + }, 40); + }; + _$window.bind('resize', that._winResize); + + // 监听点击 + DOM.wrap + .bind('click', function (event) { + var target = event.target, callbackID; + + if (target.disabled) return false; // IE BUG + + if (target === DOM.close[0]) { + that._click(config.cancelVal); + return false; + } else { + callbackID = target[_expando + 'callback']; + callbackID && that._click(callbackID); + }; + + that._ie6SelectFix(); + }) + .bind('mousedown', function () { + that.zIndex(); + }); + }, + + // 卸载事件代理 + _removeEvent: function () { + var that = this, + DOM = that.DOM; + + DOM.wrap.unbind(); + _$window.unbind('resize', that._winResize); + } + +}; + +artDialog.fn._init.prototype = artDialog.fn; +$.fn.dialog = $.fn.artDialog = function () { + var config = arguments; + this[this.live ? 'live' : 'bind']('click', function () { + artDialog.apply(this, config); + return false; + }); + return this; +}; + + + +/** 最顶层的对话框API */ +artDialog.focus = null; + + +/** 获取某对话框API */ +artDialog.get = function (id) { + return id === undefined + ? artDialog.list + : artDialog.list[id]; +}; + +artDialog.list = {}; + + + +// 全局快捷键 +_$document.bind('keydown', function (event) { + var target = event.target, + nodeName = target.nodeName, + rinput = /^INPUT|TEXTAREA$/, + api = artDialog.focus, + keyCode = event.keyCode; + + if (!api || !api.config.esc || rinput.test(nodeName)) return; + + keyCode === 27 && api._click(api.config.cancelVal); +}); + + + +// 获取artDialog路径 +_path = window['_artDialog_path'] || (function (script, i, me) { + for (i in script) { + // 如果通过第三方脚本加载器加载本文件,请保证文件名含有"artDialog"字符 + if (script[i].src && script[i].src.indexOf('artDialog') !== -1) me = script[i]; + }; + + _thisScript = me || script[script.length - 1]; + me = _thisScript.src.replace(/\\/g, '/'); + return me.lastIndexOf('/') < 0 ? '.' : me.substring(0, me.lastIndexOf('/')); +}(document.getElementsByTagName('script'))); + + + +// 无阻塞载入CSS (如"artDialog.js?skin=aero") +_skin = _thisScript.src.split('skin=')[1]; +if (_skin) { + var link = document.createElement('link'); + link.rel = 'stylesheet'; + link.href = _path + '/skins/' + _skin + '.css?' + artDialog.fn.version; + _thisScript.parentNode.insertBefore(link, _thisScript); +}; + + + +// 触发浏览器预先缓存背景图片 +_$window.bind('load', function () { + setTimeout(function () { + if (_count) return; + artDialog({left: '-9999em',time: 9,fixed: false,lock: false,focus: false}); + }, 150); +}); + + + +// 开启IE6 CSS背景图片缓存 +try { + document.execCommand('BackgroundImageCache', false, true); +} catch (e) {}; + + + + +// 使用uglifyjs压缩能够预先处理"+"号合并字符串 +// uglifyjs: http://marijnhaverbeke.nl/uglifyjs +artDialog._templates = +'
' ++ '' ++ '' ++ '' ++ '' ++ '' ++ '' ++ '' ++ '' ++ '' ++ '' ++ '' ++ '' ++ '' ++ '' ++ '' ++ '' ++ '' ++ '' ++ '
' ++ '
' ++ '' ++ '' ++ '' ++ '' ++ '' ++ '' ++ '' ++ '' ++ '' ++ '' ++ '' ++ '' ++ '' ++ '
' ++ '
' ++ '
' ++ '' ++ '\xd7' ++ '' ++ '
' ++ '
' ++ '
' ++ '
' ++ '
' ++ '
' ++ '
' ++ '
' ++'
'; + + + +/** + * 默认配置 + */ +artDialog.defaults = { + // 消息内容 + content: '
loading..
', + title: '\u6d88\u606f', // 标题. 默认'消息' + button: null, // 自定义按钮 + ok: null, // 确定按钮回调函数 + cancel: null, // 取消按钮回调函数 + init: null, // 对话框初始化后执行的函数 + close: null, // 对话框关闭前执行的函数 + okVal: '\u786E\u5B9A', // 确定按钮文本. 默认'确定' + cancelVal: '\u53D6\u6D88', // 取消按钮文本. 默认'取消' + width: 'auto', // 内容宽度 + height: 'auto', // 内容高度 + minWidth: 96, // 最小宽度限制 + minHeight: 32, // 最小高度限制 + padding: '20px 25px', // 内容与边界填充距离 + skin: '', // 皮肤名(预留接口,尚未实现) + icon: null, // 消息图标名称 + time: null, // 自动关闭时间 + esc: true, // 是否支持Esc键关闭 + focus: true, // 是否支持对话框按钮自动聚焦 + show: true, // 初始化后是否显示对话框 + follow: null, // 跟随某元素(即让对话框在元素附近弹出) + path: _path, // artDialog路径 + lock: false, // 是否锁屏 + background: '#000', // 遮罩颜色 + opacity: .7, // 遮罩透明度 + duration: 300, // 遮罩透明度渐变动画速度 + fixed: false, // 是否静止定位 + left: '50%', // X轴坐标 + top: '38.2%', // Y轴坐标 + zIndex: 1987, // 对话框叠加高度值(重要:此值不能超过浏览器最大限制) + resize: true, // 是否允许用户调节尺寸 + drag: true // 是否允许用户拖动位置 + +}; + +window.artDialog = $.dialog = $.artDialog = artDialog; +}(this.art || this.jQuery && (this.art = jQuery), this)); + + + + + + +//------------------------------------------------ +// 对话框模块-拖拽支持(可选外置模块) +//------------------------------------------------ +;(function ($) { + +var _dragEvent, _use, + _$window = $(window), + _$document = $(document), + _elem = document.documentElement, + _isIE6 = !('minWidth' in _elem.style), + _isLosecapture = 'onlosecapture' in _elem, + _isSetCapture = 'setCapture' in _elem; + +// 拖拽事件 +artDialog.dragEvent = function () { + var that = this, + proxy = function (name) { + var fn = that[name]; + that[name] = function () { + return fn.apply(that, arguments); + }; + }; + + proxy('start'); + proxy('move'); + proxy('end'); +}; + +artDialog.dragEvent.prototype = { + + // 开始拖拽 + onstart: $.noop, + start: function (event) { + _$document + .bind('mousemove', this.move) + .bind('mouseup', this.end); + + this._sClientX = event.clientX; + this._sClientY = event.clientY; + this.onstart(event.clientX, event.clientY); + + return false; + }, + + // 正在拖拽 + onmove: $.noop, + move: function (event) { + this._mClientX = event.clientX; + this._mClientY = event.clientY; + this.onmove( + event.clientX - this._sClientX, + event.clientY - this._sClientY + ); + + return false; + }, + + // 结束拖拽 + onend: $.noop, + end: function (event) { + _$document + .unbind('mousemove', this.move) + .unbind('mouseup', this.end); + + this.onend(event.clientX, event.clientY); + return false; + } + +}; + +_use = function (event) { + var limit, startWidth, startHeight, startLeft, startTop, isResize, + api = artDialog.focus, + //config = api.config, + DOM = api.DOM, + wrap = DOM.wrap, + title = DOM.title, + main = DOM.main; + + // 清除文本选择 + var clsSelect = 'getSelection' in window ? function () { + window.getSelection().removeAllRanges(); + } : function () { + try { + document.selection.empty(); + } catch (e) {}; + }; + + // 对话框准备拖动 + _dragEvent.onstart = function (x, y) { + if (isResize) { + startWidth = main[0].offsetWidth; + startHeight = main[0].offsetHeight; + } else { + startLeft = wrap[0].offsetLeft; + startTop = wrap[0].offsetTop; + }; + + _$document.bind('dblclick', _dragEvent.end); + !_isIE6 && _isLosecapture ? + title.bind('losecapture', _dragEvent.end) : + _$window.bind('blur', _dragEvent.end); + _isSetCapture && title[0].setCapture(); + + wrap.addClass('aui_state_drag'); + api.focus(); + }; + + // 对话框拖动进行中 + _dragEvent.onmove = function (x, y) { + if (isResize) { + var wrapStyle = wrap[0].style, + style = main[0].style, + width = x + startWidth, + height = y + startHeight; + + wrapStyle.width = 'auto'; + style.width = Math.max(0, width) + 'px'; + wrapStyle.width = wrap[0].offsetWidth + 'px'; + + style.height = Math.max(0, height) + 'px'; + + } else { + var style = wrap[0].style, + left = Math.max(limit.minX, Math.min(limit.maxX, x + startLeft)), + top = Math.max(limit.minY, Math.min(limit.maxY, y + startTop)); + + style.left = left + 'px'; + style.top = top + 'px'; + }; + + clsSelect(); + api._ie6SelectFix(); + }; + + // 对话框拖动结束 + _dragEvent.onend = function (x, y) { + _$document.unbind('dblclick', _dragEvent.end); + !_isIE6 && _isLosecapture ? + title.unbind('losecapture', _dragEvent.end) : + _$window.unbind('blur', _dragEvent.end); + _isSetCapture && title[0].releaseCapture(); + + _isIE6 && !api.closed && api._autoPositionType(); + + wrap.removeClass('aui_state_drag'); + }; + + isResize = event.target === DOM.se[0] ? true : false; + limit = (function () { + var maxX, maxY, + wrap = api.DOM.wrap[0], + fixed = wrap.style.position === 'fixed', + ow = wrap.offsetWidth, + oh = wrap.offsetHeight, + ww = _$window.width(), + wh = _$window.height(), + dl = fixed ? 0 : _$document.scrollLeft(), + dt = fixed ? 0 : _$document.scrollTop(), + + // 坐标最大值限制 + maxX = ww - ow + dl; + maxY = wh - oh + dt; + + return { + minX: dl, + minY: dt, + maxX: maxX, + maxY: maxY + }; + })(); + + _dragEvent.start(event); +}; + +// 代理 mousedown 事件触发对话框拖动 +_$document.bind('mousedown', function (event) { + var api = artDialog.focus; + if (!api) return; + + var target = event.target, + config = api.config, + DOM = api.DOM; + + if (config.drag !== false && target === DOM.title[0] + || config.resize !== false && target === DOM.se[0]) { + _dragEvent = _dragEvent || new artDialog.dragEvent(); + _use(event); + return false;// 防止firefox与chrome滚屏 + }; +}); + +})(this.art || this.jQuery && (this.art = jQuery)); + diff --git a/js/artDialog/plugins/iframeTools.js b/js/artDialog/plugins/iframeTools.js new file mode 100644 index 0000000..54d4d00 --- /dev/null +++ b/js/artDialog/plugins/iframeTools.js @@ -0,0 +1,10 @@ +/*! + * artDialog iframeTools + * Date: 2011-12-08 1:32 + * http://code.google.com/p/artdialog/ + * (c) 2009-2011 TangBin, http://www.planeArt.cn + * + * This is licensed under the GNU LGPL, version 2.1 or later. + * For details, see: http://creativecommons.org/licenses/LGPL/2.1/ + */ +eval(function(B,D,A,G,E,F){function C(A){return A<62?String.fromCharCode(A+=A<26?65:A<52?71:-4):A<63?'_':A<64?'$':C(A>>6)+C(A&63)}while(A>0)E[C(G--)]=D[--A];return B.replace(/[\w\$]+/g,function(A){return E[A]==F[A]?A:E[A]})}('(6(E,C,D,A){c B,X,W,J="@_.DATA",K="@_.OPEN",H="@_.OPENER",I=C.k=C.k||"@_.WINNAME"+(Bd Bo).Be(),F=C.VBArray&&!C.XMLHttpRequest;E(6(){!C.Bu&&7.BY==="B0"&&Br("9 Error: 7.BY === \\"B0\\"")});c G=D.d=6(){c W=C,X=6(A){f{c W=C[A].7;W.BE}u(X){v!V}v C[A].9&&W.BE("frameset").length===U};v X("d")?W=C.d:X("BB")&&(W=C.BB),W}();D.BB=G,B=G.9,W=6(){v B.BW.w},D.m=6(C,B){c W=D.d,X=W[J]||{};W[J]=X;b(B!==A)X[C]=B;else v X[C];v X},D.BQ=6(W){c X=D.d[J];X&&X[W]&&1 X[W]},D.through=X=6(){c X=B.BR(i,BJ);v G!==C&&(D.B4[X.0.Z]=X),X},G!==C&&E(C).BN("unload",6(){c A=D.B4,W;BO(c X BS A)A[X]&&(W=A[X].0,W&&(W.duration=U),A[X].s(),1 A[X])}),D.p=6(B,O,BZ){O=O||{};c N,L,M,Bc,T,S,R,Q,BF,P=D.d,Ba="8:BD;n:-Bb;d:-Bb;Bp:o U;Bf:transparent",BI="r:g%;x:g%;Bp:o U";b(BZ===!V){c BH=(Bd Bo).Be(),BG=B.replace(/([?&])W=[^&]*/,"$1_="+BH);B=BG+(BG===B?(/\\?/.test(B)?"&":"?")+"W="+BH:"")}c G=6(){c B,C,W=L.2.B2(".aui_loading"),A=N.0;M.addClass("Bi"),W&&W.hide();f{Q=T.$,R=E(Q.7),BF=Q.7.Bg}u(X){T.q.5=BI,A.z?N.z(A.z):N.8(A.n,A.d),O.j&&O.j.l(N,Q,P),O.j=By;v}B=A.r==="Bt"?R.r()+(F?U:parseInt(E(BF).Bv("marginLeft"))):A.r,C=A.x==="Bt"?R.x():A.x,setTimeout(6(){T.q.5=BI},U),N.Bk(B,C),A.z?N.z(A.z):N.8(A.n,A.d),O.j&&O.j.l(N,Q,P),O.j=By},I={w:W(),j:6(){N=i,L=N.h,Bc=L.BM,M=L.2,T=N.BK=P.7.Bn("BK"),T.Bx=B,T.k="Open"+N.0.Z,T.q.5=Ba,T.BX("frameborder",U,U),T.BX("allowTransparency",!U),S=E(T),N.2().B3(T),Q=T.$;f{Q.k=T.k,D.m(T.k+K,N),D.m(T.k+H,C)}u(X){}S.BN("BC",G)},s:6(){S.Bv("4","o").unbind("BC",G);b(O.s&&O.s.l(i,T.$,P)===!V)v!V;M.removeClass("Bi"),S[U].Bx="about:blank",S.remove();f{D.BQ(T.k+K),D.BQ(T.k+H)}u(X){}}};Bq O.Y=="6"&&(I.Y=6(){v O.Y.l(N,T.$,P)}),Bq O.y=="6"&&(I.y=6(){v O.y.l(N,T.$,P)}),1 O.2;BO(c J BS O)I[J]===A&&(I[J]=O[J]);v X(I)},D.p.Bw=D.m(I+K),D.BT=D.m(I+H)||C,D.p.origin=D.BT,D.s=6(){c X=D.m(I+K);v X&&X.s(),!V},G!=C&&E(7).BN("mousedown",6(){c X=D.p.Bw;X&&X.w()}),D.BC=6(C,D,B){B=B||!V;c G=D||{},H={w:W(),j:6(A){c W=i,X=W.0;E.ajax({url:C,success:6(X){W.2(X),G.j&&G.j.l(W,A)},cache:B})}};1 D.2;BO(c F BS G)H[F]===A&&(H[F]=G[F]);v X(H)},D.Br=6(B,A){v X({Z:"Alert",w:W(),BL:"warning",t:!U,BA:!U,2:B,Y:!U,s:A})},D.confirm=6(C,A,B){v X({Z:"Confirm",w:W(),BL:"Bm",t:!U,BA:!U,3:U.V,2:C,Y:6(X){v A.l(i,X)},y:6(X){v B&&B.l(i,X)}})},D.prompt=6(D,B,C){C=C||"";c A;v X({Z:"Prompt",w:W(),BL:"Bm",t:!U,BA:!U,3:U.V,2:["",D,"","","",""].join(""),j:6(){A=i.h.2.B2("Bl")[U],A.select(),A.BP()},Y:6(X){v B&&B.l(i,A.B1,X)},y:!U})},D.tips=6(B,A){v X({Z:"Tips",w:W(),title:!V,y:!V,t:!U,BA:!V}).2(""+B+"").time(A||V.B6)},E(6(){c A=D.dragEvent;b(!A)v;c B=E(C),X=E(7),W=F?"BD":"t",H=A.prototype,I=7.Bn("e"),G=I.q;G.5="4:o;8:"+W+";n:U;d:U;r:g%;x:g%;"+"cursor:move;filter:alpha(3=U);3:U;Bf:#FFF",7.Bg.B3(I),H.Bj=H.Bs,H.BV=H.Bz,H.Bs=6(){c E=D.BP.h,C=E.BM[U],A=E.2[U].BE("BK")[U];H.Bj.BR(i,BJ),G.4="block",G.w=D.BW.w+B5,W==="BD"&&(G.r=B.r()+"a",G.x=B.x()+"a",G.n=X.scrollLeft()+"a",G.d=X.scrollTop()+"a"),A&&C.offsetWidth*C.offsetHeight>307200&&(C.q.BU="hidden")},H.Bz=6(){c X=D.BP;H.BV.BR(i,BJ),G.4="o",X&&(X.h.BM[U].q.BU="visible")}})})(i.art||i.Bu,i,i.9)','P|R|T|U|V|W|0|1|_|$|ok|id|px|if|var|top|div|try|100|DOM|this|init|name|call|data|left|none|open|style|width|close|fixed|catch|return|zIndex|height|cancel|follow|config|delete|content|opacity|display|cssText|function|document|position|artDialog|ARTDIALOG|contentWindow|lock|parent|load|absolute|getElementsByTagName|S|Y|Z|a|arguments|iframe|icon|main|bind|for|focus|removeData|apply|in|opener|visibility|_end|defaults|setAttribute|compatMode|O|Q|9999em|X|new|getTime|background|body|padding|aui_state_full|_start|size|input|question|createElement|Date|border|typeof|alert|start|auto|jQuery|css|api|src|null|end|BackCompat|value|find|appendChild|list|3|5'.split('|'),109,122,{},{})) \ No newline at end of file diff --git a/js/artDialog/plugins/iframeTools.source.js b/js/artDialog/plugins/iframeTools.source.js new file mode 100644 index 0000000..8be76f1 --- /dev/null +++ b/js/artDialog/plugins/iframeTools.source.js @@ -0,0 +1,468 @@ +/*! + * artDialog iframeTools + * Date: 2011-11-25 13:54 + * http://code.google.com/p/artdialog/ + * (c) 2009-2011 TangBin, http://www.planeArt.cn + * + * This is licensed under the GNU LGPL, version 2.1 or later. + * For details, see: http://creativecommons.org/licenses/LGPL/2.1/ + */ + +;(function ($, window, artDialog, undefined) { + +var _topDialog, _proxyDialog, _zIndex, + _data = '@ARTDIALOG.DATA', + _open = '@ARTDIALOG.OPEN', + _opener = '@ARTDIALOG.OPENER', + _winName = window.name = window.name + || '@ARTDIALOG.WINNAME' + + new Date, + _isIE6 = window.VBArray && !window.XMLHttpRequest; + +$(function () { + !window.jQuery && document.compatMode === 'BackCompat' + // 不支持怪异模式,请用主流的XHTML1.0或者HTML5的DOCTYPE申明 + && alert('artDialog Error: document.compatMode === "BackCompat"'); +}); + + +/** 获取 artDialog 可跨级调用的最高层的 window 对象 */ +var _top = artDialog.top = function () { + var top = window, + test = function (name) { + try { + var doc = window[name].document; // 跨域|无权限 + doc.getElementsByTagName; // chrome 本地安全限制 + } catch (e) { + return false; + }; + + return window[name].artDialog + // 框架集无法显示第三方元素 + && doc.getElementsByTagName('frameset').length === 0; + }; + + if (test('top')) { + top = window.top; + } else if (test('parent')) { + top = window.parent; + }; + + return top; +}(); +artDialog.parent = _top; // 兼容v4.1之前版本,未来版本将删除此 + + +_topDialog = _top.artDialog; + + +// 获取顶层页面对话框叠加值 +_zIndex = function () { + return _topDialog.defaults.zIndex; +}; + + + +/** + * 跨框架数据共享接口 + * @see http://www.planeart.cn/?p=1554 + * @param {String} 存储的数据名 + * @param {Any} 将要存储的任意数据(无此项则返回被查询的数据) + */ +artDialog.data = function (name, value) { + var top = artDialog.top, + cache = top[_data] || {}; + top[_data] = cache; + + if (value !== undefined) { + cache[name] = value; + } else { + return cache[name]; + }; + return cache; +}; + + +/** + * 数据共享删除接口 + * @param {String} 删除的数据名 + */ +artDialog.removeData = function (name) { + var cache = artDialog.top[_data]; + if (cache && cache[name]) delete cache[name]; +}; + + +/** 跨框架普通对话框 */ +artDialog.through = _proxyDialog = function () { + var api = _topDialog.apply(this, arguments); + + // 缓存从当前 window(可能为iframe)调出所有跨框架对话框, + // 以便让当前 window 卸载前去关闭这些对话框。 + // 因为iframe注销后也会从内存中删除其创建的对象,这样可以防止回调函数报错 + if (_top !== window) artDialog.list[api.config.id] = api; + return api; +}; + +// 框架页面卸载前关闭所有穿越的对话框 +_top !== window && $(window).bind('unload', function () { + var list = artDialog.list, config; + for (var i in list) { + if (list[i]) { + config = list[i].config; + if (config) config.duration = 0; // 取消动画 + list[i].close(); + //delete list[i]; + }; + }; +}); + + +/** + * 弹窗 (iframe) + * @param {String} 地址 + * @param {Object} 配置参数. 这里传入的回调函数接收的第1个参数为iframe内部window对象 + * @param {Boolean} 是否允许缓存. 默认true + */ +artDialog.open = function (url, options, cache) { + options = options || {}; + + var api, DOM, + $content, $main, iframe, $iframe, $idoc, iwin, ibody, + top = artDialog.top, + initCss = 'position:absolute;left:-9999em;top:-9999em;border:none 0;background:transparent', + loadCss = 'width:100%;height:100%;border:none 0'; + + if (cache === false) { + var ts = + new Date, + ret = url.replace(/([?&])_=[^&]*/, "$1_=" + ts ); + url = ret + ((ret === url) ? (/\?/.test(url) ? "&" : "?") + "_=" + ts : ""); + }; + + var load = function () { + var iWidth, iHeight, + loading = DOM.content.find('.aui_loading'), + aConfig = api.config; + + $content.addClass('aui_state_full'); + + loading && loading.hide(); + + try { + iwin = iframe.contentWindow; + $idoc = $(iwin.document); + ibody = iwin.document.body; + } catch (e) {// 跨域 + iframe.style.cssText = loadCss; + + aConfig.follow + ? api.follow(aConfig.follow) + : api.position(aConfig.left, aConfig.top); + + options.init && options.init.call(api, iwin, top); + options.init = null; + return; + }; + + // 获取iframe内部尺寸 + iWidth = aConfig.width === 'auto' + ? $idoc.width() + (_isIE6 ? 0 : parseInt($(ibody).css('marginLeft'))) + : aConfig.width; + + iHeight = aConfig.height === 'auto' + ? $idoc.height() + : aConfig.height; + + // 适应iframe尺寸 + setTimeout(function () { + iframe.style.cssText = loadCss; + }, 0);// setTimeout: 防止IE6~7对话框样式渲染异常 + api.size(iWidth, iHeight); + + // 调整对话框位置 + aConfig.follow + ? api.follow(aConfig.follow) + : api.position(aConfig.left, aConfig.top); + + options.init && options.init.call(api, iwin, top); + options.init = null; + }; + + var config = { + zIndex: _zIndex(), + init: function () { + api = this; + DOM = api.DOM; + $main = DOM.main; + $content = DOM.content; + + iframe = api.iframe = top.document.createElement('iframe'); + iframe.src = url; + iframe.name = 'Open' + api.config.id; + iframe.style.cssText = initCss; + iframe.setAttribute('frameborder', 0, 0); + iframe.setAttribute('allowTransparency', true); + + $iframe = $(iframe); + api.content().appendChild(iframe); + iwin = iframe.contentWindow; + + try { + iwin.name = iframe.name; + artDialog.data(iframe.name + _open, api); + artDialog.data(iframe.name + _opener, window); + } catch (e) {}; + + $iframe.bind('load', load); + }, + close: function () { + $iframe.css('display', 'none').unbind('load', load); + + if (options.close && options.close.call(this, iframe.contentWindow, top) === false) { + return false; + }; + $content.removeClass('aui_state_full'); + + // 重要!需要重置iframe地址,否则下次出现的对话框在IE6、7无法聚焦input + // IE删除iframe后,iframe仍然会留在内存中出现上述问题,置换src是最容易解决的方法 + $iframe[0].src = 'about:blank'; + $iframe.remove(); + + try { + artDialog.removeData(iframe.name + _open); + artDialog.removeData(iframe.name + _opener); + } catch (e) {}; + } + }; + + // 回调函数第一个参数指向iframe内部window对象 + if (typeof options.ok === 'function') config.ok = function () { + return options.ok.call(api, iframe.contentWindow, top); + }; + if (typeof options.cancel === 'function') config.cancel = function () { + return options.cancel.call(api, iframe.contentWindow, top); + }; + + delete options.content; + + for (var i in options) { + if (config[i] === undefined) config[i] = options[i]; + }; + + return _proxyDialog(config); +}; + + +/** 引用open方法扩展方法(在open打开的iframe内部私有方法) */ +artDialog.open.api = artDialog.data(_winName + _open); + + +/** 引用open方法触发来源页面window(在open打开的iframe内部私有方法) */ +artDialog.opener = artDialog.data(_winName + _opener) || window; +artDialog.open.origin = artDialog.opener; // 兼容v4.1之前版本,未来版本将删除此 + +/** artDialog.open 打开的iframe页面里关闭对话框快捷方法 */ +artDialog.close = function () { + var api = artDialog.data(_winName + _open); + api && api.close(); + return false; +}; + +// 点击iframe内容切换叠加高度 +_top != window && $(document).bind('mousedown', function () { + var api = artDialog.open.api; + api && api.zIndex(); +}); + + +/** + * Ajax填充内容 + * @param {String} 地址 + * @param {Object} 配置参数 + * @param {Boolean} 是否允许缓存. 默认true + */ +artDialog.load = function(url, options, cache){ + cache = cache || false; + var opt = options || {}; + + var config = { + zIndex: _zIndex(), + init: function(here){ + var api = this, + aConfig = api.config; + + $.ajax({ + url: url, + success: function (content) { + api.content(content); + opt.init && opt.init.call(api, here); + }, + cache: cache + }); + + } + }; + + delete options.content; + + for (var i in opt) { + if (config[i] === undefined) config[i] = opt[i]; + }; + + return _proxyDialog(config); +}; + + +/** + * 警告 + * @param {String} 消息内容 + */ +artDialog.alert = function (content, callback) { + return _proxyDialog({ + id: 'Alert', + zIndex: _zIndex(), + icon: 'warning', + fixed: true, + lock: true, + content: content, + ok: true, + close: callback + }); +}; + + +/** + * 确认 + * @param {String} 消息内容 + * @param {Function} 确定按钮回调函数 + * @param {Function} 取消按钮回调函数 + */ +artDialog.confirm = function (content, yes, no) { + return _proxyDialog({ + id: 'Confirm', + zIndex: _zIndex(), + icon: 'question', + fixed: true, + lock: true, + opacity: .1, + content: content, + ok: function (here) { + return yes.call(this, here); + }, + cancel: function (here) { + return no && no.call(this, here); + } + }); +}; + + +/** + * 提问 + * @param {String} 提问内容 + * @param {Function} 回调函数. 接收参数:输入值 + * @param {String} 默认值 + */ +artDialog.prompt = function (content, yes, value) { + value = value || ''; + var input; + + return _proxyDialog({ + id: 'Prompt', + zIndex: _zIndex(), + icon: 'question', + fixed: true, + lock: true, + opacity: .1, + content: [ + '
', + content, + '
', + '
', + '', + '
' + ].join(''), + init: function () { + input = this.DOM.content.find('input')[0]; + input.select(); + input.focus(); + }, + ok: function (here) { + return yes && yes.call(this, input.value, here); + }, + cancel: true + }); +}; + + +/** + * 短暂提示 + * @param {String} 提示内容 + * @param {Number} 显示时间 (默认1.5秒) + */ +artDialog.tips = function (content, time) { + return _proxyDialog({ + id: 'Tips', + zIndex: _zIndex(), + title: false, + cancel: false, + fixed: true, + lock: false + }) + .content('
' + content + '
') + .time(time || 1.5); +}; + + +// 增强artDialog拖拽体验 +// - 防止鼠标落入iframe导致不流畅 +// - 对超大对话框拖动优化 +$(function () { + var event = artDialog.dragEvent; + if (!event) return; + + var $window = $(window), + $document = $(document), + positionType = _isIE6 ? 'absolute' : 'fixed', + dragEvent = event.prototype, + mask = document.createElement('div'), + style = mask.style; + + style.cssText = 'display:none;position:' + positionType + ';left:0;top:0;width:100%;height:100%;' + + 'cursor:move;filter:alpha(opacity=0);opacity:0;background:#FFF'; + + document.body.appendChild(mask); + dragEvent._start = dragEvent.start; + dragEvent._end = dragEvent.end; + + dragEvent.start = function () { + var DOM = artDialog.focus.DOM, + main = DOM.main[0], + iframe = DOM.content[0].getElementsByTagName('iframe')[0]; + + dragEvent._start.apply(this, arguments); + style.display = 'block'; + style.zIndex = artDialog.defaults.zIndex + 3; + + if (positionType === 'absolute') { + style.width = $window.width() + 'px'; + style.height = $window.height() + 'px'; + style.left = $document.scrollLeft() + 'px'; + style.top = $document.scrollTop() + 'px'; + }; + + if (iframe && main.offsetWidth * main.offsetHeight > 307200) { + main.style.visibility = 'hidden'; + }; + }; + + dragEvent.end = function () { + var dialog = artDialog.focus; + dragEvent._end.apply(this, arguments); + style.display = 'none'; + if (dialog) dialog.DOM.main[0].style.visibility = 'visible'; + }; +}); + +})(this.art || this.jQuery, this, this.artDialog); + diff --git a/js/artDialog/skins/aero.css b/js/artDialog/skins/aero.css new file mode 100644 index 0000000..3b11a2a --- /dev/null +++ b/js/artDialog/skins/aero.css @@ -0,0 +1,61 @@ +@charset "utf-8"; +/* + * artDialog skin + * http://code.google.com/p/artdialog/ + * (c) 2009-2011 TangBin, http://www.planeArt.cn + * + * This is licensed under the GNU LGPL, version 2.1 or later. + * For details, see: http://creativecommons.org/licenses/LGPL/2.1/ + */ + +/* common start */ +body { _margin:0; _height:100%; /*IE6 BUG*/ } +.aui_outer { text-align:left; } +table.aui_border, table.aui_dialog { border:0; margin:0; border-collapse:collapse; width:auto; } +.aui_nw, .aui_n, .aui_ne, .aui_w, .aui_c, .aui_e, .aui_sw, .aui_s, .aui_se, .aui_header, .aui_tdIcon, .aui_main, .aui_footer { padding:0; } +.aui_header, .aui_buttons button { font: 12px/1.11 'Microsoft Yahei', Tahoma, Arial, Helvetica, STHeiti; _font-family:Tahoma,Arial,Helvetica,STHeiti; -o-font-family: Tahoma, Arial; } +.aui_title { overflow:hidden; text-overflow: ellipsis; } +.aui_state_noTitle .aui_title { display:none; } +.aui_close { display:block; position:absolute; text-decoration:none; outline:none; _cursor:pointer; } +.aui_close:hover { text-decoration:none; } +.aui_main { text-align:center; min-width:9em; min-width:0\9/*IE8 BUG*/; } +.aui_content { display:inline-block; *zoom:1; *display:inline; text-align:left; border:none 0; } +.aui_content.aui_state_full { display:block; width:100%; margin:0; padding:0!important; height:100%; } +.aui_loading { width:96px; height:32px; text-align:left; text-indent:-999em; overflow:hidden; background:url(icons/loading.gif) no-repeat center center; } +.aui_icon { vertical-align: middle; } +.aui_icon div { width:48px; height:48px; margin:10px 0 10px 10px; background-position: center center; background-repeat:no-repeat; } +.aui_buttons { padding:8px; text-align:right; white-space:nowrap; } +.aui_buttons button { margin-left:15px; padding: 6px 8px; cursor: pointer; display: inline-block; text-align: center; line-height: 1; *padding:4px 10px; *height:2em; letter-spacing:2px; font-family: Tahoma, Arial/9!important; width:auto; overflow:visible; *width:1; color: #333; border: solid 1px #999; border-radius: 5px; background: #DDD; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFF', endColorstr='#DDDDDD'); background: linear-gradient(top, #FFF, #DDD); background: -moz-linear-gradient(top, #FFF, #DDD); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#FFF), to(#DDD)); text-shadow: 0px 1px 1px rgba(255, 255, 255, 1); box-shadow: 0 1px 0 rgba(255, 255, 255, .7), 0 -1px 0 rgba(0, 0, 0, .09); -moz-transition:-moz-box-shadow linear .2s; -webkit-transition: -webkit-box-shadow linear .2s; transition: box-shadow linear .2s; } +.aui_buttons button::-moz-focus-inner{ border:0; padding:0; margin:0; } +.aui_buttons button:focus { outline:none 0; border-color:#426DC9; box-shadow:0 0 8px rgba(66, 109, 201, .9); } +.aui_buttons button:hover { color:#000; border-color:#666; } +.aui_buttons button:active { border-color:#666; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#DDDDDD', endColorstr='#FFFFFF'); background: linear-gradient(top, #DDD, #FFF); background: -moz-linear-gradient(top, #DDD, #FFF); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#DDD), to(#FFF)); box-shadow:inset 0 1px 5px rgba(66, 109, 201, .9), inset 0 1px 1em rgba(0, 0, 0, .3); } +.aui_buttons button[disabled] { cursor:default; color:#666; background:#DDD; border: solid 1px #999; filter:alpha(opacity=50); opacity:.5; box-shadow:none; } +button.aui_state_highlight { color: #FFF; border: solid 1px #1c6a9e; background: #2288cc; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#33bbee', endColorstr='#2288cc'); background: linear-gradient(top, #33bbee, #2288cc); background: -moz-linear-gradient(top, #33bbee, #2288cc); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#33bbee), to(#2288cc)); text-shadow: -1px -1px 1px #1c6a9e; } +button.aui_state_highlight:hover { color:#FFF; border-color:#0F3A56; } +button.aui_state_highlight:active { border-color:#1c6a9e; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#33bbee', endColorstr='#2288cc'); background: linear-gradient(top, #33bbee, #2288cc); background: -moz-linear-gradient(top, #33bbee, #2288cc); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#33bbee), to(#2288cc)); } +/* common end */ + +.aui_inner { background:#FFF; } +.aui_titleBar { width:100%; height:0; position:relative; bottom:30px; _bottom:0; _margin-top:-30px; } +.aui_title { height:29px; line-height:29px; padding:0 16px 0 0; _padding:0; color:#FFF; font-weight:700; text-shadow:1px 1px 0 rgba(0, 0, 0, .9); } +.aui_nw, .aui_ne, .aui_sw, .aui_se, .aui_n, .aui_s, .aui_close { background-image:url(aero/aero_s.png); background-repeat:no-repeat; } +.aui_nw { width:14px; height:34px; background-position: 0 0; _png:aero/ie6/aui_nw.png; } +.aui_ne { width:14px; height:34px; background-position: -14px 0; _png:aero/ie6/aui_ne.png; } +.aui_sw { width:14px; height:14px; background-position: 0 -34px; _png:aero/ie6/aui_sw.png; } +.aui_se { width:14px; height:14px; background-position: -14px -34px; _png:aero/ie6/aui_se.png; } +.aui_close { top:7px; right:0; _z-index:1; width:13px; height:13px; _font-size:0; _line-height:0; text-indent:-9999em; background-position:left -96px; _background:url(aero/ie6/aui_close.png); } +.aui_close:hover { background-position:right -96px; _background:url(aero/ie6/aui_close.hover.png); } +.aui_n, .aui_s { background-repeat:repeat-x; } +.aui_n { background-position: 0 -48px; _png:aero/ie6/aui_n.png; } +.aui_s { background-position: 0 -82px; _png:aero/ie6/aui_s.png; } +.aui_w, .aui_e { background-image:url(aero/aero_s2.png); background-repeat:repeat-y; } +.aui_w { background-position:left top; _png:aero/ie6/aui_w.png; } +.aui_e { background-position: right bottom; _png:aero/ie6/aui_e.png; } +.aui_state_noTitle .aui_nw, .aui_state_noTitle .aui_ne, .aui_state_noTitle .aui_sw, .aui_state_noTitle .aui_se { width:3px; height:3px; } +.aui_state_noTitle .aui_inner { border:1px solid #666; background:#FFF; } +.aui_state_noTitle .aui_outer { box-shadow:none; } +.aui_state_noTitle .aui_nw, .aui_state_noTitle .aui_n, .aui_state_noTitle .aui_ne, .aui_state_noTitle .aui_w, .aui_state_noTitle .aui_e, .aui_state_noTitle .aui_sw, .aui_state_noTitle .aui_s, .aui_state_noTitle .aui_se { background:rgba(0, 0, 0, .05); background:#000\9!important; filter:alpha(opacity=5)!important; } +.aui_state_noTitle .aui_titleBar { bottom:0; _bottom:0; _margin-top:0; } +.aui_state_noTitle .aui_close { top:0; right:0; width:18px; height:18px; line-height:18px; text-align:center; text-indent:0; font-family: Helvetica, STHeiti; _font-family: '\u9ed1\u4f53', 'Book Antiqua', Palatino; font-size:18px; text-decoration:none; color:#214FA3; background:none; filter:!important; } +.aui_state_noTitle .aui_close:hover, .aui_state_noTitle .aui_close:active { text-decoration:none; color:#900; } \ No newline at end of file diff --git a/js/artDialog/skins/aero/aero_s.png b/js/artDialog/skins/aero/aero_s.png new file mode 100644 index 0000000..ff3a379 Binary files /dev/null and b/js/artDialog/skins/aero/aero_s.png differ diff --git a/js/artDialog/skins/aero/aero_s2.png b/js/artDialog/skins/aero/aero_s2.png new file mode 100644 index 0000000..6fda697 Binary files /dev/null and b/js/artDialog/skins/aero/aero_s2.png differ diff --git a/js/artDialog/skins/aero/ie6/aui_close.hover.png b/js/artDialog/skins/aero/ie6/aui_close.hover.png new file mode 100644 index 0000000..d424838 Binary files /dev/null and b/js/artDialog/skins/aero/ie6/aui_close.hover.png differ diff --git a/js/artDialog/skins/aero/ie6/aui_close.png b/js/artDialog/skins/aero/ie6/aui_close.png new file mode 100644 index 0000000..6aef1a8 Binary files /dev/null and b/js/artDialog/skins/aero/ie6/aui_close.png differ diff --git a/js/artDialog/skins/aero/ie6/aui_e.png b/js/artDialog/skins/aero/ie6/aui_e.png new file mode 100644 index 0000000..413cd23 Binary files /dev/null and b/js/artDialog/skins/aero/ie6/aui_e.png differ diff --git a/js/artDialog/skins/aero/ie6/aui_n.png b/js/artDialog/skins/aero/ie6/aui_n.png new file mode 100644 index 0000000..5b0b0cd Binary files /dev/null and b/js/artDialog/skins/aero/ie6/aui_n.png differ diff --git a/js/artDialog/skins/aero/ie6/aui_ne.png b/js/artDialog/skins/aero/ie6/aui_ne.png new file mode 100644 index 0000000..23e82f6 Binary files /dev/null and b/js/artDialog/skins/aero/ie6/aui_ne.png differ diff --git a/js/artDialog/skins/aero/ie6/aui_nw.png b/js/artDialog/skins/aero/ie6/aui_nw.png new file mode 100644 index 0000000..8212d5a Binary files /dev/null and b/js/artDialog/skins/aero/ie6/aui_nw.png differ diff --git a/js/artDialog/skins/aero/ie6/aui_s.png b/js/artDialog/skins/aero/ie6/aui_s.png new file mode 100644 index 0000000..4e24a73 Binary files /dev/null and b/js/artDialog/skins/aero/ie6/aui_s.png differ diff --git a/js/artDialog/skins/aero/ie6/aui_se.png b/js/artDialog/skins/aero/ie6/aui_se.png new file mode 100644 index 0000000..668bd83 Binary files /dev/null and b/js/artDialog/skins/aero/ie6/aui_se.png differ diff --git a/js/artDialog/skins/aero/ie6/aui_sw.png b/js/artDialog/skins/aero/ie6/aui_sw.png new file mode 100644 index 0000000..539584e Binary files /dev/null and b/js/artDialog/skins/aero/ie6/aui_sw.png differ diff --git a/js/artDialog/skins/aero/ie6/aui_title_icon.png b/js/artDialog/skins/aero/ie6/aui_title_icon.png new file mode 100644 index 0000000..149aba4 Binary files /dev/null and b/js/artDialog/skins/aero/ie6/aui_title_icon.png differ diff --git a/js/artDialog/skins/aero/ie6/aui_w.png b/js/artDialog/skins/aero/ie6/aui_w.png new file mode 100644 index 0000000..a00691b Binary files /dev/null and b/js/artDialog/skins/aero/ie6/aui_w.png differ diff --git a/js/artDialog/skins/black.css b/js/artDialog/skins/black.css new file mode 100644 index 0000000..94ec943 --- /dev/null +++ b/js/artDialog/skins/black.css @@ -0,0 +1,79 @@ +@charset "utf-8"; +/* + * artDialog skin + * http://code.google.com/p/artdialog/ + * (c) 2009-2011 TangBin, http://www.planeArt.cn + * + * This is licensed under the GNU LGPL, version 2.1 or later. + * For details, see: http://creativecommons.org/licenses/LGPL/2.1/ + */ + +/* common start */ +body { _margin:0; _height:100%; /*IE6 BUG*/ } +.aui_outer { text-align:left; } +table.aui_border, table.aui_dialog { border:0; margin:0; border-collapse:collapse; width:auto; } +.aui_nw, .aui_n, .aui_ne, .aui_w, .aui_c, .aui_e, .aui_sw, .aui_s, .aui_se, .aui_header, .aui_tdIcon, .aui_main, .aui_footer { padding:0; } +.aui_header, .aui_buttons button { font: 12px/1.11 'Microsoft Yahei', Tahoma, Arial, Helvetica, STHeiti; _font-family:Tahoma,Arial,Helvetica,STHeiti; -o-font-family: Tahoma, Arial; } +.aui_title { overflow:hidden; text-overflow: ellipsis; } +.aui_state_noTitle .aui_title { display:none; } +.aui_close { display:block; position:absolute; text-decoration:none; outline:none; _cursor:pointer; } +.aui_close:hover { text-decoration:none; } +.aui_main { text-align:center; min-width:9em; min-width:0 \9/*IE8 BUG*/; } +.aui_content { display:inline-block; *zoom:1; *display:inline; text-align:left; border:none 0; } +.aui_content.aui_state_full { display:block; width:100%; margin:0; padding:0!important; height:100%; } +.aui_loading { width:96px; height:32px; text-align:left; text-indent:-999em; overflow:hidden; background:url(icons/loading.gif) no-repeat center center; } +.aui_icon { vertical-align: middle; } +.aui_icon div { width:48px; height:48px; margin:10px 0 10px 10px; background-position: center center; background-repeat:no-repeat; } +.aui_buttons { padding:8px; text-align:right; white-space:nowrap; } +.aui_buttons button { margin-left:15px; padding: 6px 8px; cursor: pointer; display: inline-block; text-align: center; line-height: 1; *padding:4px 10px; *height:2em; letter-spacing:2px; font-family: Tahoma, Arial/9!important; width:auto; overflow:visible; *width:1; color: #333; border: solid 1px #999; border-radius: 5px; background: #DDD; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFF', endColorstr='#DDDDDD'); background: linear-gradient(top, #FFF, #DDD); background: -moz-linear-gradient(top, #FFF, #DDD); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#FFF), to(#DDD)); text-shadow: 0px 1px 1px rgba(255, 255, 255, 1); box-shadow: 0 1px 0 rgba(255, 255, 255, .7), 0 -1px 0 rgba(0, 0, 0, .09); -moz-transition:-moz-box-shadow linear .2s; -webkit-transition: -webkit-box-shadow linear .2s; transition: box-shadow linear .2s; } +.aui_buttons button::-moz-focus-inner{ border:0; padding:0; margin:0; } +.aui_buttons button:focus { outline:none 0; border-color:#426DC9; box-shadow:0 0 8px rgba(66, 109, 201, .9); } +.aui_buttons button:hover { color:#000; border-color:#666; } +.aui_buttons button:active { border-color:#666; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#DDDDDD', endColorstr='#FFFFFF'); background: linear-gradient(top, #DDD, #FFF); background: -moz-linear-gradient(top, #DDD, #FFF); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#DDD), to(#FFF)); box-shadow:inset 0 1px 5px rgba(66, 109, 201, .9), inset 0 1px 1em rgba(0, 0, 0, .3); } +.aui_buttons button[disabled] { cursor:default; color:#666; background:#DDD; border: solid 1px #999; filter:alpha(opacity=50); opacity:.5; box-shadow:none; } +button.aui_state_highlight { color: #FFF; border: solid 1px #3399dd; background: #2288cc; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#33bbee', endColorstr='#2288cc'); background: linear-gradient(top, #33bbee, #2288cc); background: -moz-linear-gradient(top, #33bbee, #2288cc); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#33bbee), to(#2288cc)); text-shadow: -1px -1px 1px #1c6a9e; } +button.aui_state_highlight:hover { color:#FFF; border-color:#1c6a9e; } +button.aui_state_highlight:active { border-color:#1c6a9e; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#33bbee', endColorstr='#2288cc'); background: linear-gradient(top, #33bbee, #2288cc); background: -moz-linear-gradient(top, #33bbee, #2288cc); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#33bbee), to(#2288cc)); } +/* common end */ + +.aui_inner { background:#f7f7f7; } +.aui_titleBar { width:100%; height:0; position:relative; bottom:30px; _bottom:0; _margin-top:-30px; } +.aui_title { height:29px; line-height:29px; padding:0 25px 0 0; _padding:0; text-indent:5px; color:#FFF; font-weight:700; text-shadow:-1px -1px 0 rgba(0, 0, 0, .7); } +.aui_nw, .aui_ne, .aui_sw, .aui_se, .aui_n, .aui_s, .aui_close { background-image:url(black/bg.png); background-repeat:no-repeat; } +.aui_nw { width:15px; height:38px; background-position: 0 0; _png:black/ie6/nw.png; } +.aui_ne { width:15px; height:38px; background-position: -15px 0; _png:black/ie6/ne.png; } +.aui_sw { width:15px; height:18px; background-position: 0 -38px; _png:black/ie6/sw.png; } +.aui_se { width:15px; height:18px; background-position: -15px -38px; _png:black/ie6/se.png; } +.aui_close { top:4px; right:4px; _z-index:1; width:20px; height:20px; _font-size:0; _line-height:0; text-indent:-9999em; background-position:0 -112px; _png:black/ie6/close.png; } +.aui_close:hover { background-position:0 -132px; } +.aui_n, .aui_s { background-repeat:repeat-x; } +.aui_n { background-position: 0 -56px; _png:black/ie6/n.png; } +.aui_s { background-position: 0 -94px; _png:black/ie6/s.png; } +.aui_w, .aui_e { background-image:url(black/bg2.png); background-repeat:repeat-y; } +.aui_w { background-position:left top; _png:black/ie6/w.png; } +.aui_e { background-position: right bottom; _png:black/ie6/e.png; } +aui_icon, .aui_main { padding-top:3px; } +@media screen and (min-width:0) { + .aui_outer { border-radius:8px; box-shadow:0 5px 15px rgba(0, 0, 0, .4); -moz-transition:-moz-box-shadow linear .2s; -webkit-transition: -webkit-box-shadow linear .2s; transition: -webkit-box-shadow linear .2s; } + .aui_state_drag .aui_outer { box-shadow:none; } + .aui_state_lock .aui_outer { box-shadow:0 3px 26px rgba(0, 0, 0, .9); } + .aui_outer:active { box-shadow:0 0 5px rgba(0, 0, 0, .1)!important; } + .aui_state_drag .aui_outer { box-shadow:none!important; } + .aui_nw, .aui_ne, .aui_sw, .aui_se, .aui_n, .aui_s, .aui_close { background-image:url(black/bg_css3.png); } + .aui_nw { width:5px; height:31px; } + .aui_ne { width:5px; height:31px; background-position: -5px 0; _png:black/ie6/ne.png; } + .aui_sw { width:5px; height:5px;background-position: 0 -31px; } + .aui_se { width:5px; height:5px; background-position: -5px -31px; } + .aui_close { background-position:0 -72px; } + .aui_close:hover { background-position:0 -92px; } + .aui_n { background-position: 0 -36px; } + .aui_s { background-position: 0 -67px; } + .aui_w, .aui_e { background-image:url(black/bg_css3_2.png); } +} +.aui_state_noTitle .aui_nw, .aui_state_noTitle .aui_ne, .aui_state_noTitle .aui_sw, .aui_state_noTitle .aui_se { width:3px; height:3px; } +.aui_state_noTitle .aui_inner { border:1px solid #666; background:#FFF; } +.aui_state_noTitle .aui_outer { box-shadow:none; } +.aui_state_noTitle .aui_nw, .aui_state_noTitle .aui_n, .aui_state_noTitle .aui_ne, .aui_state_noTitle .aui_w, .aui_state_noTitle .aui_e, .aui_state_noTitle .aui_sw, .aui_state_noTitle .aui_s, .aui_state_noTitle .aui_se { background:rgba(0, 0, 0, .05); background:#000\9!important; filter:alpha(opacity=5)!important; } +.aui_state_noTitle .aui_titleBar { bottom:0; _bottom:0; _margin-top:0; } +.aui_state_noTitle .aui_close { top:0; right:0; width:18px; height:18px; line-height:18px; text-align:center; text-indent:0; font-family: Helvetica, STHeiti; _font-family: '\u9ed1\u4f53', 'Book Antiqua', Palatino; font-size:18px; text-decoration:none; color:#214FA3; background:none; filter:!important; } +.aui_state_noTitle .aui_close:hover, .aui_state_noTitle .aui_close:active { text-decoration:none; color:#900; } \ No newline at end of file diff --git a/js/artDialog/skins/black/bg.png b/js/artDialog/skins/black/bg.png new file mode 100644 index 0000000..6d42b89 Binary files /dev/null and b/js/artDialog/skins/black/bg.png differ diff --git a/js/artDialog/skins/black/bg2.png b/js/artDialog/skins/black/bg2.png new file mode 100644 index 0000000..8f5568d Binary files /dev/null and b/js/artDialog/skins/black/bg2.png differ diff --git a/js/artDialog/skins/black/bg_css3.png b/js/artDialog/skins/black/bg_css3.png new file mode 100644 index 0000000..32cc89d Binary files /dev/null and b/js/artDialog/skins/black/bg_css3.png differ diff --git a/js/artDialog/skins/black/bg_css3_2.png b/js/artDialog/skins/black/bg_css3_2.png new file mode 100644 index 0000000..4e5801b Binary files /dev/null and b/js/artDialog/skins/black/bg_css3_2.png differ diff --git a/js/artDialog/skins/black/ie6/close.hover.png b/js/artDialog/skins/black/ie6/close.hover.png new file mode 100644 index 0000000..73b02c4 Binary files /dev/null and b/js/artDialog/skins/black/ie6/close.hover.png differ diff --git a/js/artDialog/skins/black/ie6/close.png b/js/artDialog/skins/black/ie6/close.png new file mode 100644 index 0000000..d18600b Binary files /dev/null and b/js/artDialog/skins/black/ie6/close.png differ diff --git a/js/artDialog/skins/black/ie6/e.png b/js/artDialog/skins/black/ie6/e.png new file mode 100644 index 0000000..0dbe769 Binary files /dev/null and b/js/artDialog/skins/black/ie6/e.png differ diff --git a/js/artDialog/skins/black/ie6/n.png b/js/artDialog/skins/black/ie6/n.png new file mode 100644 index 0000000..67ba731 Binary files /dev/null and b/js/artDialog/skins/black/ie6/n.png differ diff --git a/js/artDialog/skins/black/ie6/ne.png b/js/artDialog/skins/black/ie6/ne.png new file mode 100644 index 0000000..7f34d69 Binary files /dev/null and b/js/artDialog/skins/black/ie6/ne.png differ diff --git a/js/artDialog/skins/black/ie6/nw.png b/js/artDialog/skins/black/ie6/nw.png new file mode 100644 index 0000000..74b5285 Binary files /dev/null and b/js/artDialog/skins/black/ie6/nw.png differ diff --git a/js/artDialog/skins/black/ie6/s.png b/js/artDialog/skins/black/ie6/s.png new file mode 100644 index 0000000..aadc5bc Binary files /dev/null and b/js/artDialog/skins/black/ie6/s.png differ diff --git a/js/artDialog/skins/black/ie6/se.png b/js/artDialog/skins/black/ie6/se.png new file mode 100644 index 0000000..6a4ac96 Binary files /dev/null and b/js/artDialog/skins/black/ie6/se.png differ diff --git a/js/artDialog/skins/black/ie6/sw.png b/js/artDialog/skins/black/ie6/sw.png new file mode 100644 index 0000000..5637896 Binary files /dev/null and b/js/artDialog/skins/black/ie6/sw.png differ diff --git a/js/artDialog/skins/black/ie6/w.png b/js/artDialog/skins/black/ie6/w.png new file mode 100644 index 0000000..910b3a1 Binary files /dev/null and b/js/artDialog/skins/black/ie6/w.png differ diff --git a/js/artDialog/skins/blue.css b/js/artDialog/skins/blue.css new file mode 100644 index 0000000..35f8042 --- /dev/null +++ b/js/artDialog/skins/blue.css @@ -0,0 +1,79 @@ +@charset "utf-8"; +/* + * artDialog skin + * http://code.google.com/p/artdialog/ + * (c) 2009-2011 TangBin, http://www.planeArt.cn + * + * This is licensed under the GNU LGPL, version 2.1 or later. + * For details, see: http://creativecommons.org/licenses/LGPL/2.1/ + */ + +/* common start */ +body { _margin:0; _height:100%; /*IE6 BUG*/ } +.aui_outer { text-align:left; } +table.aui_border, table.aui_dialog { border:0; margin:0; border-collapse:collapse; width:auto; } +.aui_nw, .aui_n, .aui_ne, .aui_w, .aui_c, .aui_e, .aui_sw, .aui_s, .aui_se, .aui_header, .aui_tdIcon, .aui_main, .aui_footer { padding:0; } +.aui_header, .aui_buttons button { font: 12px/1.11 'Microsoft Yahei', Tahoma, Arial, Helvetica, STHeiti; _font-family:Tahoma,Arial,Helvetica,STHeiti; -o-font-family: Tahoma, Arial; } +.aui_title { overflow:hidden; text-overflow: ellipsis; } +.aui_state_noTitle .aui_title { display:none; } +.aui_close { display:block; position:absolute; text-decoration:none; outline:none; _cursor:pointer; } +.aui_close:hover { text-decoration:none; } +.aui_main { text-align:center; min-width:9em; min-width:0 \9/*IE8 BUG*/; } +.aui_content { display:inline-block; *zoom:1; *display:inline; text-align:left; border:none 0; } +.aui_content.aui_state_full { display:block; width:100%; margin:0; padding:0!important; height:100%; } +.aui_loading { width:96px; height:32px; text-align:left; text-indent:-999em; overflow:hidden; background:url(icons/loading.gif) no-repeat center center; } +.aui_icon { vertical-align: middle; } +.aui_icon div { width:48px; height:48px; margin:10px 0 10px 10px; background-position: center center; background-repeat:no-repeat; } +.aui_buttons { padding:8px; text-align:right; white-space:nowrap; } +.aui_buttons button { margin-left:15px; padding: 6px 8px; cursor: pointer; display: inline-block; text-align: center; line-height: 1; *padding:4px 10px; *height:2em; letter-spacing:2px; font-family: Tahoma, Arial/9!important; width:auto; overflow:visible; *width:1; color: #333; border: solid 1px #999; border-radius: 5px; background: #DDD; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFF', endColorstr='#DDDDDD'); background: linear-gradient(top, #FFF, #DDD); background: -moz-linear-gradient(top, #FFF, #DDD); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#FFF), to(#DDD)); text-shadow: 0px 1px 1px rgba(255, 255, 255, 1); box-shadow: 0 1px 0 rgba(255, 255, 255, .7), 0 -1px 0 rgba(0, 0, 0, .09); -moz-transition:-moz-box-shadow linear .2s; -webkit-transition: -webkit-box-shadow linear .2s; transition: box-shadow linear .2s; } +.aui_buttons button::-moz-focus-inner{ border:0; padding:0; margin:0; } +.aui_buttons button:focus { outline:none 0; border-color:#426DC9; box-shadow:0 0 8px rgba(66, 109, 201, .9); } +.aui_buttons button:hover { color:#000; border-color:#666; } +.aui_buttons button:active { border-color:#666; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#DDDDDD', endColorstr='#FFFFFF'); background: linear-gradient(top, #DDD, #FFF); background: -moz-linear-gradient(top, #DDD, #FFF); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#DDD), to(#FFF)); box-shadow:inset 0 1px 5px rgba(66, 109, 201, .9), inset 0 1px 1em rgba(0, 0, 0, .3); } +.aui_buttons button[disabled] { cursor:default; color:#666; background:#DDD; border: solid 1px #999; filter:alpha(opacity=50); opacity:.5; box-shadow:none; } +button.aui_state_highlight { color: #FFF; border: solid 1px #3399dd; background: #2288cc; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#33bbee', endColorstr='#2288cc'); background: linear-gradient(top, #33bbee, #2288cc); background: -moz-linear-gradient(top, #33bbee, #2288cc); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#33bbee), to(#2288cc)); text-shadow: -1px -1px 1px #1c6a9e; } +button.aui_state_highlight:hover { color:#FFF; border-color:#1c6a9e; } +button.aui_state_highlight:active { border-color:#1c6a9e; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#33bbee', endColorstr='#2288cc'); background: linear-gradient(top, #33bbee, #2288cc); background: -moz-linear-gradient(top, #33bbee, #2288cc); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#33bbee), to(#2288cc)); } +/* common end */ + +.aui_inner { background:#f7f7f7; } +.aui_titleBar { width:100%; height:0; position:relative; bottom:30px; _bottom:0; _margin-top:-30px; } +.aui_title { height:29px; line-height:29px; padding:0 25px 0 0; _padding:0; text-indent:5px; color:#FFF; font-weight:700; text-shadow:-1px -1px 0 rgba(33, 79, 183, .7); } +.aui_nw, .aui_ne, .aui_sw, .aui_se, .aui_n, .aui_s, .aui_close { background-image:url(blue/bg.png); background-repeat:no-repeat; } +.aui_nw { width:15px; height:38px; background-position: 0 0; _png:blue/ie6/nw.png; } +.aui_ne { width:15px; height:38px; background-position: -15px 0; _png:blue/ie6/ne.png; } +.aui_sw { width:15px; height:18px; background-position: 0 -38px; _png:blue/ie6/sw.png; } +.aui_se { width:15px; height:18px; background-position: -15px -38px; _png:blue/ie6/se.png; } +.aui_close { top:4px; right:4px; _z-index:1; width:20px; height:20px; _font-size:0; _line-height:0; text-indent:-9999em; background-position:0 -112px; _png:blue/ie6/close.png; } +.aui_close:hover { background-position:0 -132px; } +.aui_n, .aui_s { background-repeat:repeat-x; } +.aui_n { background-position: 0 -56px; _png:blue/ie6/n.png; } +.aui_s { background-position: 0 -94px; _png:blue/ie6/s.png; } +.aui_w, .aui_e { background-image:url(blue/bg2.png); background-repeat:repeat-y; } +.aui_w { background-position:left top; _png:blue/ie6/w.png; } +.aui_e { background-position: right bottom; _png:blue/ie6/e.png; } +aui_icon, .aui_main { padding-top:3px; } +@media screen and (min-width:0) { + .aui_outer { border-radius:8px; box-shadow:0 5px 15px rgba(2, 37, 69, .4); -moz-transition:-moz-box-shadow linear .2s; -webkit-transition: -webkit-box-shadow linear .2s; transition: -webkit-box-shadow linear .2s; } + .aui_state_drag .aui_outer { box-shadow:none; } + .aui_state_lock .aui_outer { box-shadow:0 3px 26px rgba(0, 0, 0, .9); } + .aui_outer:active { box-shadow:0 0 5px rgba(2, 37, 69, .1)!important; } + .aui_state_drag .aui_outer { box-shadow:none!important; } + .aui_nw, .aui_ne, .aui_sw, .aui_se, .aui_n, .aui_s, .aui_close { background-image:url(blue/bg_css3.png); } + .aui_nw { width:5px; height:31px; } + .aui_ne { width:5px; height:31px; background-position: -5px 0; _png:blue/ie6/ne.png; } + .aui_sw { width:5px; height:5px;background-position: 0 -31px; } + .aui_se { width:5px; height:5px; background-position: -5px -31px; } + .aui_close { background-position:0 -72px; } + .aui_close:hover { background-position:0 -92px; } + .aui_n { background-position: 0 -36px; } + .aui_s { background-position: 0 -67px; } + .aui_w, .aui_e { background-image:url(blue/bg_css3_2.png); } +} +.aui_state_noTitle .aui_nw, .aui_state_noTitle .aui_ne, .aui_state_noTitle .aui_sw, .aui_state_noTitle .aui_se { width:3px; height:3px; } +.aui_state_noTitle .aui_inner { border:1px solid #666; background:#FFF; } +.aui_state_noTitle .aui_outer { box-shadow:none; } +.aui_state_noTitle .aui_nw, .aui_state_noTitle .aui_n, .aui_state_noTitle .aui_ne, .aui_state_noTitle .aui_w, .aui_state_noTitle .aui_e, .aui_state_noTitle .aui_sw, .aui_state_noTitle .aui_s, .aui_state_noTitle .aui_se { background:rgba(0, 0, 0, .05); background:#000\9!important; filter:alpha(opacity=5)!important; } +.aui_state_noTitle .aui_titleBar { bottom:0; _bottom:0; _margin-top:0; } +.aui_state_noTitle .aui_close { top:0; right:0; width:18px; height:18px; line-height:18px; text-align:center; text-indent:0; font-family: Helvetica, STHeiti; _font-family: '\u9ed1\u4f53', 'Book Antiqua', Palatino; font-size:18px; text-decoration:none; color:#214FA3; background:none; filter:!important; } +.aui_state_noTitle .aui_close:hover, .aui_state_noTitle .aui_close:active { text-decoration:none; color:#900; } \ No newline at end of file diff --git a/js/artDialog/skins/blue/bg.png b/js/artDialog/skins/blue/bg.png new file mode 100644 index 0000000..52c1c01 Binary files /dev/null and b/js/artDialog/skins/blue/bg.png differ diff --git a/js/artDialog/skins/blue/bg2.png b/js/artDialog/skins/blue/bg2.png new file mode 100644 index 0000000..834c17a Binary files /dev/null and b/js/artDialog/skins/blue/bg2.png differ diff --git a/js/artDialog/skins/blue/bg_css3.png b/js/artDialog/skins/blue/bg_css3.png new file mode 100644 index 0000000..8f55b85 Binary files /dev/null and b/js/artDialog/skins/blue/bg_css3.png differ diff --git a/js/artDialog/skins/blue/bg_css3_2.png b/js/artDialog/skins/blue/bg_css3_2.png new file mode 100644 index 0000000..b8f66eb Binary files /dev/null and b/js/artDialog/skins/blue/bg_css3_2.png differ diff --git a/js/artDialog/skins/blue/ie6/close.hover.png b/js/artDialog/skins/blue/ie6/close.hover.png new file mode 100644 index 0000000..40de707 Binary files /dev/null and b/js/artDialog/skins/blue/ie6/close.hover.png differ diff --git a/js/artDialog/skins/blue/ie6/close.png b/js/artDialog/skins/blue/ie6/close.png new file mode 100644 index 0000000..72c7157 Binary files /dev/null and b/js/artDialog/skins/blue/ie6/close.png differ diff --git a/js/artDialog/skins/blue/ie6/e.png b/js/artDialog/skins/blue/ie6/e.png new file mode 100644 index 0000000..d892f02 Binary files /dev/null and b/js/artDialog/skins/blue/ie6/e.png differ diff --git a/js/artDialog/skins/blue/ie6/n.png b/js/artDialog/skins/blue/ie6/n.png new file mode 100644 index 0000000..28c2ff5 Binary files /dev/null and b/js/artDialog/skins/blue/ie6/n.png differ diff --git a/js/artDialog/skins/blue/ie6/ne.png b/js/artDialog/skins/blue/ie6/ne.png new file mode 100644 index 0000000..eaa3cb4 Binary files /dev/null and b/js/artDialog/skins/blue/ie6/ne.png differ diff --git a/js/artDialog/skins/blue/ie6/nw.png b/js/artDialog/skins/blue/ie6/nw.png new file mode 100644 index 0000000..45bb037 Binary files /dev/null and b/js/artDialog/skins/blue/ie6/nw.png differ diff --git a/js/artDialog/skins/blue/ie6/s.png b/js/artDialog/skins/blue/ie6/s.png new file mode 100644 index 0000000..ee9ab02 Binary files /dev/null and b/js/artDialog/skins/blue/ie6/s.png differ diff --git a/js/artDialog/skins/blue/ie6/se.png b/js/artDialog/skins/blue/ie6/se.png new file mode 100644 index 0000000..1e181ab Binary files /dev/null and b/js/artDialog/skins/blue/ie6/se.png differ diff --git a/js/artDialog/skins/blue/ie6/sw.png b/js/artDialog/skins/blue/ie6/sw.png new file mode 100644 index 0000000..b2193e3 Binary files /dev/null and b/js/artDialog/skins/blue/ie6/sw.png differ diff --git a/js/artDialog/skins/blue/ie6/w.png b/js/artDialog/skins/blue/ie6/w.png new file mode 100644 index 0000000..6c4472d Binary files /dev/null and b/js/artDialog/skins/blue/ie6/w.png differ diff --git a/js/artDialog/skins/chrome.css b/js/artDialog/skins/chrome.css new file mode 100644 index 0000000..78e4c34 --- /dev/null +++ b/js/artDialog/skins/chrome.css @@ -0,0 +1,61 @@ +@charset "utf-8"; +/* + * artDialog skin + * http://code.google.com/p/artdialog/ + * (c) 2009-2011 TangBin, http://www.planeArt.cn + * + * This is licensed under the GNU LGPL, version 2.1 or later. + * For details, see: http://creativecommons.org/licenses/LGPL/2.1/ + */ + +/* common start */ +body { _margin:0; _height:100%; /*IE6 BUG*/ } +.aui_outer { text-align:left; } +table.aui_border, table.aui_dialog { border:0; margin:0; border-collapse:collapse; width:auto; } +.aui_nw, .aui_n, .aui_ne, .aui_w, .aui_c, .aui_e, .aui_sw, .aui_s, .aui_se, .aui_header, .aui_tdIcon, .aui_main, .aui_footer { padding:0; } +.aui_header, .aui_buttons button { font: 12px/1.11 'Microsoft Yahei', Tahoma, Arial, Helvetica, STHeiti; _font-family:Tahoma,Arial,Helvetica,STHeiti; -o-font-family: Tahoma, Arial; } +.aui_title { overflow:hidden; text-overflow: ellipsis; } +.aui_state_noTitle .aui_title { display:none; } +.aui_close { display:block; position:absolute; text-decoration:none; outline:none; _cursor:pointer; } +.aui_close:hover { text-decoration:none; } +.aui_main { text-align:center; min-width:9em; min-width:0\9/*IE8 BUG*/; } +.aui_content { display:inline-block; *zoom:1; *display:inline; text-align:left; border:none 0; } +.aui_content.aui_state_full { display:block; width:100%; margin:0; padding:0!important; height:100%; } +.aui_loading { width:96px; height:32px; text-align:left; text-indent:-999em; overflow:hidden; background:url(icons/loading.gif) no-repeat center center; } +.aui_icon { vertical-align: middle; } +.aui_icon div { width:48px; height:48px; margin:10px 0 10px 10px; background-position: center center; background-repeat:no-repeat; } +.aui_buttons { padding:8px; text-align:right; white-space:nowrap; } +.aui_buttons button { margin-left:15px; padding: 6px 8px; cursor: pointer; display: inline-block; text-align: center; line-height: 1; *padding:4px 10px; *height:2em; letter-spacing:2px; font-family: Tahoma, Arial/9!important; width:auto; overflow:visible; *width:1; color: #333; border: solid 1px #999; border-radius: 5px; background: #DDD; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFF', endColorstr='#DDDDDD'); background: linear-gradient(top, #FFF, #DDD); background: -moz-linear-gradient(top, #FFF, #DDD); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#FFF), to(#DDD)); text-shadow: 0px 1px 1px rgba(255, 255, 255, 1); box-shadow: 0 1px 0 rgba(255, 255, 255, .7), 0 -1px 0 rgba(0, 0, 0, .09); -moz-transition:-moz-box-shadow linear .2s; -webkit-transition: -webkit-box-shadow linear .2s; transition: box-shadow linear .2s; } +.aui_buttons button::-moz-focus-inner{ border:0; padding:0; margin:0; } +.aui_buttons button:focus { outline:none 0; border-color:#426DC9; box-shadow:0 0 8px rgba(66, 109, 201, .9); } +.aui_buttons button:hover { color:#000; border-color:#666; } +.aui_buttons button:active { border-color:#666; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#DDDDDD', endColorstr='#FFFFFF'); background: linear-gradient(top, #DDD, #FFF); background: -moz-linear-gradient(top, #DDD, #FFF); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#DDD), to(#FFF)); box-shadow:inset 0 1px 5px rgba(66, 109, 201, .9), inset 0 1px 1em rgba(0, 0, 0, .3); } +.aui_buttons button[disabled] { cursor:default; color:#666; background:#DDD; border: solid 1px #999; filter:alpha(opacity=50); opacity:.5; box-shadow:none; } +button.aui_state_highlight { color: #FFF; border: solid 1px #1c6a9e; background: #2288cc; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#33bbee', endColorstr='#2288cc'); background: linear-gradient(top, #33bbee, #2288cc); background: -moz-linear-gradient(top, #33bbee, #2288cc); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#33bbee), to(#2288cc)); text-shadow: -1px -1px 1px #1c6a9e; } +button.aui_state_highlight:hover { color:#FFF; border-color:#0F3A56; } +button.aui_state_highlight:active { border-color:#1c6a9e; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#33bbee', endColorstr='#2288cc'); background: linear-gradient(top, #33bbee, #2288cc); background: -moz-linear-gradient(top, #33bbee, #2288cc); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#33bbee), to(#2288cc)); } +/* common end */ + +.aui_inner { background:#FFF; } +.aui_titleBar { width:100%; height:0; position:relative; bottom:26px; _bottom:0; _margin-top:-26px;} +.aui_title { height:26px; line-height:23px; padding:0 60px 0 5px; color:#FFF; font-weight:700; text-shadow:0 1px 0 #000; } +.aui_nw, .aui_ne, .aui_w, .aui_e, .aui_sw, .aui_se, .aui_close { background-image:url(chrome/chrome_s.png); background-repeat:no-repeat; } +.aui_nw { width:5px; height:26px; background-position: -46px -8px; } +.aui_ne { width:5px; height:26px; background-position: -53px -8px; } +.aui_w { background-position:-60px 0; background-repeat:repeat-y; } +.aui_e { background-position:-65px 0; background-repeat:repeat-y; } +.aui_sw { width:5px; height:5px; background-position: -46px -2px;} +.aui_se { width:5px; height:5px; background-position: -53px -2px;} +.aui_close { top:1px; right:0; width:44px; height:17px; background-position:0 0; _font-size:0; _line-height:0; text-indent:-9999em; } +.aui_close:hover { background-position:0 -18px; } +.aui_n, .aui_s { background-image:url(chrome/border.png); background-repeat:repeat-x; } +.aui_n { background-position:0 top; } +.aui_s { background-position: 0 bottom; } +.aui_buttons { background-color:#F6F6F6; border-top:solid 1px #DADEE5; } +.aui_state_noTitle .aui_nw, .aui_state_noTitle .aui_ne, .aui_state_noTitle .aui_sw, .aui_state_noTitle .aui_se { width:3px; height:3px; } +.aui_state_noTitle .aui_inner { border:1px solid #666; background:#FFF; } +.aui_state_noTitle .aui_outer { box-shadow:none; } +.aui_state_noTitle .aui_nw, .aui_state_noTitle .aui_n, .aui_state_noTitle .aui_ne, .aui_state_noTitle .aui_w, .aui_state_noTitle .aui_e, .aui_state_noTitle .aui_sw, .aui_state_noTitle .aui_s, .aui_state_noTitle .aui_se { background:rgba(0, 0, 0, .05); background:#000\9!important; filter:alpha(opacity=5)!important; } +.aui_state_noTitle .aui_titleBar { bottom:0; _bottom:0; _margin-top:0; } +.aui_state_noTitle .aui_close { top:0; right:0; width:18px; height:18px; line-height:18px; text-align:center; text-indent:0; font-family: Helvetica, STHeiti; _font-family: '\u9ed1\u4f53', 'Book Antiqua', Palatino; font-size:18px; text-decoration:none; color:#214FA3; background:none; filter:!important; } +.aui_state_noTitle .aui_close:hover, .aui_state_noTitle .aui_close:active { text-decoration:none; color:#900; } diff --git a/js/artDialog/skins/chrome/border.png b/js/artDialog/skins/chrome/border.png new file mode 100644 index 0000000..db3bdcd Binary files /dev/null and b/js/artDialog/skins/chrome/border.png differ diff --git a/js/artDialog/skins/chrome/chrome_s.png b/js/artDialog/skins/chrome/chrome_s.png new file mode 100644 index 0000000..3f62b86 Binary files /dev/null and b/js/artDialog/skins/chrome/chrome_s.png differ diff --git a/js/artDialog/skins/default.css b/js/artDialog/skins/default.css new file mode 100644 index 0000000..26d455d --- /dev/null +++ b/js/artDialog/skins/default.css @@ -0,0 +1,63 @@ +@charset "utf-8"; +/* + * artDialog skin + * http://code.google.com/p/artdialog/ + * (c) 2009-2011 TangBin, http://www.planeArt.cn + * + * This is licensed under the GNU LGPL, version 2.1 or later. + * For details, see: http://creativecommons.org/licenses/LGPL/2.1/ + */ + +/* common start */ +body { _margin:0; _height:100%; /*IE6 BUG*/ } +.aui_outer { text-align:left; } +table.aui_border, table.aui_dialog { border:0; margin:0; border-collapse:collapse; width:auto; } +.aui_c, .aui_header, .aui_tdIcon, .aui_main, .aui_footer {padding:0;} +.aui_nw, .aui_n, .aui_ne, .aui_w,.aui_e, .aui_sw, .aui_s, .aui_se{display: none} +.aui_header, .aui_buttons button { font: 12px/1.11 'Microsoft Yahei', Tahoma, Arial, Helvetica, STHeiti; _font-family:Tahoma,Arial,Helvetica,STHeiti; -o-font-family: Tahoma, Arial; } +.aui_title { overflow:hidden; text-overflow: ellipsis; } +.aui_state_noTitle .aui_title { display:none; } +.aui_close { display:block; position:absolute; text-decoration:none !important; _cursor:pointer;border: none !important; } +/*.aui_close:hover { text-decoration:none; }*/ +.aui_main { text-align:center; min-width:9em; min-width:0\9/*IE8 BUG*/; } +.aui_content { display:inline-block; *zoom:1; *display:inline; text-align:left; border:none 0; } +.aui_content.aui_state_full { display:block; width:100%; margin:0; padding:0!important; height:100%; } +.aui_loading { width:96px; height:32px; text-align:left; text-indent:-999em; overflow:hidden; background:url(icons/loading.gif) no-repeat center center; } +.aui_icon { vertical-align: middle; } +.aui_icon div { width:48px; height:48px; margin:10px 0 10px 10px; background-position: center center; background-repeat:no-repeat; } +.aui_buttons { padding:8px; text-align:right; white-space:nowrap; } +.aui_buttons button { margin-left:15px; padding: 6px 8px; cursor: pointer; display: inline-block; text-align: center; line-height: 1; *padding:4px 10px; *height:2em; letter-spacing:2px; font-family: Tahoma, Arial/9!important; width:auto; overflow:visible; *width:1; color: #333; border: solid 1px #999; border-radius: 5px; background: #DDD; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFF', endColorstr='#DDDDDD'); background: linear-gradient(top, #FFF, #DDD); background: -moz-linear-gradient(top, #FFF, #DDD); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#FFF), to(#DDD)); text-shadow: 0px 1px 1px rgba(255, 255, 255, 1); box-shadow: 0 1px 0 rgba(255, 255, 255, .7), 0 -1px 0 rgba(0, 0, 0, .09); -moz-transition:-moz-box-shadow linear .2s; -webkit-transition: -webkit-box-shadow linear .2s; transition: box-shadow linear .2s; } +.aui_buttons button::-moz-focus-inner{ border:0; padding:0; margin:0; } +.aui_buttons button:focus { outline:none 0; border-color:#426DC9; box-shadow:0 0 8px rgba(66, 109, 201, .9); } +.aui_buttons button:hover { color:#000; border-color:#666; } +.aui_buttons button:active { border-color:#666; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#DDDDDD', endColorstr='#FFFFFF'); background: linear-gradient(top, #DDD, #FFF); background: -moz-linear-gradient(top, #DDD, #FFF); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#DDD), to(#FFF)); box-shadow:inset 0 1px 5px rgba(66, 109, 201, .9), inset 0 1px 1em rgba(0, 0, 0, .3); } +.aui_buttons button[disabled] { cursor:default; color:#666; background:#DDD; border: solid 1px #999; filter:alpha(opacity=50); opacity:.5; box-shadow:none; } +button.aui_state_highlight { color: #FFF; border: solid 1px #1c6a9e; background: #2288cc; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#33bbee', endColorstr='#2288cc'); background: linear-gradient(top, #33bbee, #2288cc); background: -moz-linear-gradient(top, #33bbee, #2288cc); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#33bbee), to(#2288cc)); text-shadow: -1px -1px 1px #1c6a9e; } +button.aui_state_highlight:hover { color:#FFF; border-color:#0F3A56; } +button.aui_state_highlight:active { border-color:#1c6a9e; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#33bbee', endColorstr='#2288cc'); background: linear-gradient(top, #33bbee, #2288cc); background: -moz-linear-gradient(top, #33bbee, #2288cc); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#33bbee), to(#2288cc)); } +/* common end */ + +.aui_inner { background:#FFF; } +.aui_border { box-shadow: inset 0 0 1px rgba(255, 255, 255, .9); } +.aui_nw, .aui_ne, .aui_sw, .aui_se { width:8px; height:8px; } +.aui_nw, .aui_n, .aui_ne, .aui_w, .aui_e, .aui_sw, .aui_s, .aui_se { background:rgba(0, 0, 0, .4); background:#000\9!important; filter:alpha(opacity=40); } +.aui_state_lock .aui_nw, .aui_state_lock .aui_n, .aui_state_lock .aui_ne, .aui_state_lock .aui_w, .aui_state_lock .aui_e, .aui_state_lock .aui_sw, .aui_state_lock .aui_s, .aui_state_lock .aui_se { background:rgba(0, 0, 0, .5); background:#000\9!important; filter:alpha(opacity=50); } +.aui_state_focus .aui_dialog { box-shadow: 0 0 3px rgba(0, 0, 0, 0.4); } +.aui_state_focus .aui_outer { box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1); } +.aui_state_lock .aui_border { box-shadow:0 3px 26px rgba(0, 0, 0, .9); } +.aui_state_drag .aui_outer, .aui_outer:active { box-shadow:none; } +.aui_titleBar { position:relative; height:100%; } +.aui_title { height:36px; line-height:36px;font-size: 14px; padding:0 28px 0 10px; background-color:#3c8dbc !important; font-weight:bold; background: -moz-linear-gradient(top, #edf5f8, #bdc6cd);text-align: left;color: #fff !important; } +.aui_state_focus .aui_title { color:#4c5a5f; } +.aui_state_drag .aui_title { background: linear-gradient(top, #bdc6cd, #edf5f8); background: -moz-linear-gradient(top, #bdc6cd, #edf5f8); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#bdc6cd), to(#edf5f8)); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#bdc6cd', endColorstr='#edf5f8'); box-shadow:none; } +.aui_state_drag .aui_titleBar { box-shadow:none; } +.aui_close { padding:0; top:4px; right:4px; width:21px; height:21px; line-height:21px; font-size:18px; color:#68767b; text-align:center; } +.aui_content { color:#666; } +.aui_state_focus .aui_content { color:#000; } +.aui_buttons { background-color:#F6F6F6; border-top:solid 1px #DADEE5; } +.aui_state_noTitle .aui_nw, .aui_state_noTitle .aui_ne, .aui_state_noTitle .aui_sw, .aui_state_noTitle .aui_se { width:3px; height:3px; } +.aui_state_noTitle .aui_inner { border:1px solid #666; background:#FFF; } +.aui_state_noTitle .aui_outer { border:none 0; box-shadow:none; } +.aui_state_noTitle .aui_nw, .aui_state_noTitle .aui_n, .aui_state_noTitle .aui_ne, .aui_state_noTitle .aui_w, .aui_state_noTitle .aui_e, .aui_state_noTitle .aui_sw, .aui_state_noTitle .aui_s, .aui_state_noTitle .aui_se { background:rgba(0, 0, 0, .05); background:#000\9!important; filter:alpha(opacity=5)!important; } +.aui_state_noTitle .aui_titleBar { bottom:0; _bottom:0; _margin-top:0; } +.aui_state_noTitle .aui_dialog { box-shadow: none; } \ No newline at end of file diff --git a/js/artDialog/skins/green.css b/js/artDialog/skins/green.css new file mode 100644 index 0000000..48ea491 --- /dev/null +++ b/js/artDialog/skins/green.css @@ -0,0 +1,79 @@ +@charset "utf-8"; +/* + * artDialog skin + * http://code.google.com/p/artdialog/ + * (c) 2009-2011 TangBin, http://www.planeArt.cn + * + * This is licensed under the GNU LGPL, version 2.1 or later. + * For details, see: http://creativecommons.org/licenses/LGPL/2.1/ + */ + +/* common start */ +body { _margin:0; _height:100%; /*IE6 BUG*/ } +.aui_outer { text-align:left; } +table.aui_border, table.aui_dialog { border:0; margin:0; border-collapse:collapse; width:auto; } +.aui_nw, .aui_n, .aui_ne, .aui_w, .aui_c, .aui_e, .aui_sw, .aui_s, .aui_se, .aui_header, .aui_tdIcon, .aui_main, .aui_footer { padding:0; } +.aui_header, .aui_buttons button { font: 12px/1.11 'Microsoft Yahei', Tahoma, Arial, Helvetica, STHeiti; _font-family:Tahoma,Arial,Helvetica,STHeiti; -o-font-family: Tahoma, Arial; } +.aui_title { overflow:hidden; text-overflow: ellipsis; } +.aui_state_noTitle .aui_title { display:none; } +.aui_close { display:block; position:absolute; text-decoration:none; outline:none; _cursor:pointer; } +.aui_close:hover { text-decoration:none; } +.aui_main { text-align:center; min-width:9em; min-width:0 \9/*IE8 BUG*/; } +.aui_content { display:inline-block; *zoom:1; *display:inline; text-align:left; border:none 0; } +.aui_content.aui_state_full { display:block; width:100%; margin:0; padding:0!important; height:100%; } +.aui_loading { width:96px; height:32px; text-align:left; text-indent:-999em; overflow:hidden; background:url(icons/loading.gif) no-repeat center center; } +.aui_icon { vertical-align: middle; } +.aui_icon div { width:48px; height:48px; margin:10px 0 10px 10px; background-position: center center; background-repeat:no-repeat; } +.aui_buttons { padding:8px; text-align:right; white-space:nowrap; } +.aui_buttons button { margin-left:15px; padding: 6px 8px; cursor: pointer; display: inline-block; text-align: center; line-height: 1; *padding:4px 10px; *height:2em; letter-spacing:2px; font-family: Tahoma, Arial/9!important; width:auto; overflow:visible; *width:1; color: #333; border: solid 1px #999; border-radius: 5px; background: #DDD; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFF', endColorstr='#DDDDDD'); background: linear-gradient(top, #FFF, #DDD); background: -moz-linear-gradient(top, #FFF, #DDD); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#FFF), to(#DDD)); text-shadow: 0px 1px 1px rgba(255, 255, 255, 1); box-shadow: 0 1px 0 rgba(255, 255, 255, .7), 0 -1px 0 rgba(0, 0, 0, .09); -moz-transition:-moz-box-shadow linear .2s; -webkit-transition: -webkit-box-shadow linear .2s; transition: box-shadow linear .2s; } +.aui_buttons button::-moz-focus-inner{ border:0; padding:0; margin:0; } +.aui_buttons button:focus { outline:none 0; border-color:#426DC9; box-shadow:0 0 8px rgba(0, 50, 0, .7); } +.aui_buttons button:hover { color:#000; border-color:#666; } +.aui_buttons button:active { border-color:#666; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#DDDDDD', endColorstr='#FFFFFF'); background: linear-gradient(top, #DDD, #FFF); background: -moz-linear-gradient(top, #DDD, #FFF); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#DDD), to(#FFF)); box-shadow:inset 0 1px 5px rgba(0, 50, 0, .7), inset 0 1px 1em rgba(0, 0, 0, .3); } +.aui_buttons button[disabled] { cursor:default; color:#666; background:#DDD; border: solid 1px #999; filter:alpha(opacity=50); opacity:.5; box-shadow:none; } +button.aui_state_highlight { color: #FFF; border: solid 1px #679a10; background: #7cb61b; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#98d237', endColorstr='#7cb61b'); background: linear-gradient(top, #98d237, #7cb61b); background: -moz-linear-gradient(top, #98d237, #7cb61b); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#98d237), to(#7cb61b)); text-shadow: -1px -1px 1px #679a10; } +button.aui_state_highlight:focus { border-color:#679a10; } +button.aui_state_highlight:hover { color:#FFF; border-color:#3c5412; } +button.aui_state_highlight:active { border-color:#3c5412; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#98d237', endColorstr='#7cb61b'); background: linear-gradient(top, #98d237, #7cb61b); background: -moz-linear-gradient(top, #98d237, #7cb61b); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#98d237), to(#7cb61b)); } +/* common end */ + +.aui_inner { background:#f7f7f7; } +.aui_titleBar { width:100%; height:0; position:relative; bottom:30px; _bottom:0; _margin-top:-30px; } +.aui_title { height:29px; line-height:29px; padding:0 25px 0 0; _padding:0; text-indent:5px; color:#FFF; font-weight:700; text-shadow:-1px -1px 0 rgba(0, 50, 0, .7); } +.aui_nw, .aui_ne, .aui_sw, .aui_se, .aui_n, .aui_s, .aui_close { background-image:url(green/bg.png); background-repeat:no-repeat; } +.aui_nw { width:15px; height:38px; background-position: 0 0; _png:green/ie6/nw.png; } +.aui_ne { width:15px; height:38px; background-position: -15px 0; _png:green/ie6/ne.png; } +.aui_sw { width:15px; height:18px; background-position: 0 -38px; _png:green/ie6/sw.png; } +.aui_se { width:15px; height:18px; background-position: -15px -38px; _png:green/ie6/se.png; } +.aui_close { top:4px; right:4px; _z-index:1; width:20px; height:20px; _font-size:0; _line-height:0; text-indent:-9999em; background-position:0 -112px; _png:green/ie6/close.png; } +.aui_close:hover { background-position:0 -132px; } +.aui_n, .aui_s { background-repeat:repeat-x; } +.aui_n { background-position: 0 -56px; _png:green/ie6/n.png; } +.aui_s { background-position: 0 -94px; _png:green/ie6/s.png; } +.aui_w, .aui_e { background-image:url(green/bg2.png); background-repeat:repeat-y; } +.aui_w { background-position:left top; _png:green/ie6/w.png; } +.aui_e { background-position: right bottom; _png:green/ie6/e.png; } +aui_icon, .aui_main { padding-top:3px; } +@media screen and (min-width:0) { + .aui_outer { border-radius:8px; box-shadow:0 5px 15px rgba(0, 50, 0, .4); -moz-transition:-moz-box-shadow linear .2s; -webkit-transition: -webkit-box-shadow linear .2s; transition: -webkit-box-shadow linear .2s; } + .aui_state_lock .aui_outer { box-shadow:0 3px 26px rgba(0, 0, 0, .9); } + .aui_outer:active { box-shadow:0 0 5px rgba(0, 50, 0, .1)!important; } + .aui_state_drag .aui_outer { box-shadow:none!important; } + .aui_nw, .aui_ne, .aui_sw, .aui_se, .aui_n, .aui_s, .aui_close { background-image:url(green/bg_css3.png); } + .aui_nw { width:5px; height:31px; } + .aui_ne { width:5px; height:31px; background-position: -5px 0; _png:green/ie6/ne.png; } + .aui_sw { width:5px; height:5px;background-position: 0 -31px; } + .aui_se { width:5px; height:5px; background-position: -5px -31px; } + .aui_close { background-position:0 -72px; } + .aui_close:hover { background-position:0 -92px; } + .aui_n { background-position: 0 -36px; } + .aui_s { background-position: 0 -67px; } + .aui_w, .aui_e { background-image:url(green/bg_css3_2.png); } +} +.aui_state_noTitle .aui_nw, .aui_state_noTitle .aui_ne, .aui_state_noTitle .aui_sw, .aui_state_noTitle .aui_se { width:3px; height:3px; } +.aui_state_noTitle .aui_inner { border:1px solid #666; background:#FFF; } +.aui_state_noTitle .aui_outer { box-shadow:none; } +.aui_state_noTitle .aui_nw, .aui_state_noTitle .aui_n, .aui_state_noTitle .aui_ne, .aui_state_noTitle .aui_w, .aui_state_noTitle .aui_e, .aui_state_noTitle .aui_sw, .aui_state_noTitle .aui_s, .aui_state_noTitle .aui_se { background:rgba(0, 0, 0, .05); background:#000\9!important; filter:alpha(opacity=5)!important; } +.aui_state_noTitle .aui_titleBar { bottom:0; _bottom:0; _margin-top:0; } +.aui_state_noTitle .aui_close { top:0; right:0; width:18px; height:18px; line-height:18px; text-align:center; text-indent:0; font-family: Helvetica, STHeiti; _font-family: '\u9ed1\u4f53', 'Book Antiqua', Palatino; font-size:18px; text-decoration:none; color:#214FA3; background:none; filter:!important; } +.aui_state_noTitle .aui_close:hover, .aui_state_noTitle .aui_close:active { text-decoration:none; color:#900; } \ No newline at end of file diff --git a/js/artDialog/skins/green/bg.png b/js/artDialog/skins/green/bg.png new file mode 100644 index 0000000..7919c88 Binary files /dev/null and b/js/artDialog/skins/green/bg.png differ diff --git a/js/artDialog/skins/green/bg2.png b/js/artDialog/skins/green/bg2.png new file mode 100644 index 0000000..3faa0c8 Binary files /dev/null and b/js/artDialog/skins/green/bg2.png differ diff --git a/js/artDialog/skins/green/bg_css3.png b/js/artDialog/skins/green/bg_css3.png new file mode 100644 index 0000000..aa255e4 Binary files /dev/null and b/js/artDialog/skins/green/bg_css3.png differ diff --git a/js/artDialog/skins/green/bg_css3_2.png b/js/artDialog/skins/green/bg_css3_2.png new file mode 100644 index 0000000..4e5801b Binary files /dev/null and b/js/artDialog/skins/green/bg_css3_2.png differ diff --git a/js/artDialog/skins/green/color_bg.png b/js/artDialog/skins/green/color_bg.png new file mode 100644 index 0000000..7919c88 Binary files /dev/null and b/js/artDialog/skins/green/color_bg.png differ diff --git a/js/artDialog/skins/green/ie6/close.hover.png b/js/artDialog/skins/green/ie6/close.hover.png new file mode 100644 index 0000000..46fc9d7 Binary files /dev/null and b/js/artDialog/skins/green/ie6/close.hover.png differ diff --git a/js/artDialog/skins/green/ie6/close.png b/js/artDialog/skins/green/ie6/close.png new file mode 100644 index 0000000..932e597 Binary files /dev/null and b/js/artDialog/skins/green/ie6/close.png differ diff --git a/js/artDialog/skins/green/ie6/e.png b/js/artDialog/skins/green/ie6/e.png new file mode 100644 index 0000000..c3fc738 Binary files /dev/null and b/js/artDialog/skins/green/ie6/e.png differ diff --git a/js/artDialog/skins/green/ie6/n.png b/js/artDialog/skins/green/ie6/n.png new file mode 100644 index 0000000..8742f20 Binary files /dev/null and b/js/artDialog/skins/green/ie6/n.png differ diff --git a/js/artDialog/skins/green/ie6/ne.png b/js/artDialog/skins/green/ie6/ne.png new file mode 100644 index 0000000..57e8e62 Binary files /dev/null and b/js/artDialog/skins/green/ie6/ne.png differ diff --git a/js/artDialog/skins/green/ie6/nw.png b/js/artDialog/skins/green/ie6/nw.png new file mode 100644 index 0000000..a210191 Binary files /dev/null and b/js/artDialog/skins/green/ie6/nw.png differ diff --git a/js/artDialog/skins/green/ie6/s.png b/js/artDialog/skins/green/ie6/s.png new file mode 100644 index 0000000..67fcd94 Binary files /dev/null and b/js/artDialog/skins/green/ie6/s.png differ diff --git a/js/artDialog/skins/green/ie6/se.png b/js/artDialog/skins/green/ie6/se.png new file mode 100644 index 0000000..c6d9744 Binary files /dev/null and b/js/artDialog/skins/green/ie6/se.png differ diff --git a/js/artDialog/skins/green/ie6/sw.png b/js/artDialog/skins/green/ie6/sw.png new file mode 100644 index 0000000..d135dcd Binary files /dev/null and b/js/artDialog/skins/green/ie6/sw.png differ diff --git a/js/artDialog/skins/green/ie6/w.png b/js/artDialog/skins/green/ie6/w.png new file mode 100644 index 0000000..4337826 Binary files /dev/null and b/js/artDialog/skins/green/ie6/w.png differ diff --git a/js/artDialog/skins/icons/error.png b/js/artDialog/skins/icons/error.png new file mode 100644 index 0000000..4929a2e Binary files /dev/null and b/js/artDialog/skins/icons/error.png differ diff --git a/js/artDialog/skins/icons/face-sad.png b/js/artDialog/skins/icons/face-sad.png new file mode 100644 index 0000000..5d819d8 Binary files /dev/null and b/js/artDialog/skins/icons/face-sad.png differ diff --git a/js/artDialog/skins/icons/face-smile.png b/js/artDialog/skins/icons/face-smile.png new file mode 100644 index 0000000..f952c13 Binary files /dev/null and b/js/artDialog/skins/icons/face-smile.png differ diff --git a/js/artDialog/skins/icons/loading.gif b/js/artDialog/skins/icons/loading.gif new file mode 100644 index 0000000..e8c2892 Binary files /dev/null and b/js/artDialog/skins/icons/loading.gif differ diff --git a/js/artDialog/skins/icons/question.png b/js/artDialog/skins/icons/question.png new file mode 100644 index 0000000..941a4c9 Binary files /dev/null and b/js/artDialog/skins/icons/question.png differ diff --git a/js/artDialog/skins/icons/succeed.png b/js/artDialog/skins/icons/succeed.png new file mode 100644 index 0000000..c78d40b Binary files /dev/null and b/js/artDialog/skins/icons/succeed.png differ diff --git a/js/artDialog/skins/icons/warning.png b/js/artDialog/skins/icons/warning.png new file mode 100644 index 0000000..bcaab1e Binary files /dev/null and b/js/artDialog/skins/icons/warning.png differ diff --git a/js/artDialog/skins/idialog.css b/js/artDialog/skins/idialog.css new file mode 100644 index 0000000..23c6d87 --- /dev/null +++ b/js/artDialog/skins/idialog.css @@ -0,0 +1,71 @@ +@charset "utf-8"; +/* + * artDialog skin + * http://code.google.com/p/artdialog/ + * (c) 2009-2011 TangBin, http://www.planeArt.cn + * + * This is licensed under the GNU LGPL, version 2.1 or later. + * For details, see: http://creativecommons.org/licenses/LGPL/2.1/ + */ + +/* common start */ +body { _margin:0; _height:100%; /*IE6 BUG*/ } +.aui_outer { text-align:left; } +table.aui_border, table.aui_dialog { border:0; margin:0; border-collapse:collapse; width:auto; } +.aui_nw, .aui_n, .aui_ne, .aui_w, .aui_c, .aui_e, .aui_sw, .aui_s, .aui_se, .aui_header, .aui_tdIcon, .aui_main, .aui_footer { padding:0; } +.aui_header, .aui_buttons button { font: 12px/1.11 'Microsoft Yahei', Tahoma, Arial, Helvetica, STHeiti; _font-family:Tahoma,Arial,Helvetica,STHeiti; -o-font-family: Tahoma, Arial; } +.aui_title { overflow:hidden; text-overflow: ellipsis; } +.aui_state_noTitle .aui_title { display:none; } +.aui_close { display:block; position:absolute; text-decoration:none; outline:none; _cursor:pointer; } +.aui_close:hover { text-decoration:none; } +.aui_main { text-align:center; min-width:9em; min-width:0\9/*IE8 BUG*/; } +.aui_content { display:inline-block; *zoom:1; *display:inline; text-align:left; border:none 0; } +.aui_content.aui_state_full { display:block; width:100%; margin:0; padding:0!important; height:100%; } +.aui_loading { width:96px; height:32px; text-align:left; text-indent:-999em; overflow:hidden; background:url(icons/loading.gif) no-repeat center center; } +.aui_icon { vertical-align: middle; } +.aui_icon div { width:48px; height:48px; margin:10px 0 10px 10px; background-position: center center; background-repeat:no-repeat; } +.aui_buttons { padding:8px; text-align:right; white-space:nowrap; } +.aui_buttons button { margin-left:15px; padding: 6px 8px; cursor: pointer; display: inline-block; text-align: center; line-height: 1; *padding:4px 10px; *height:2em; letter-spacing:2px; font-family: Tahoma, Arial/9!important; width:auto; overflow:visible; *width:1; color: #333; border: solid 1px #999; border-radius: 5px; background: #DDD; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFF', endColorstr='#DDDDDD'); background: linear-gradient(top, #FFF, #DDD); background: -moz-linear-gradient(top, #FFF, #DDD); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#FFF), to(#DDD)); text-shadow: 0px 1px 1px rgba(255, 255, 255, 1); box-shadow: 0 1px 0 rgba(255, 255, 255, .7), 0 -1px 0 rgba(0, 0, 0, .09); -moz-transition:-moz-box-shadow linear .2s; -webkit-transition: -webkit-box-shadow linear .2s; transition: box-shadow linear .2s; } +.aui_buttons button::-moz-focus-inner{ border:0; padding:0; margin:0; } +.aui_buttons button:focus { outline:none 0; border-color:#426DC9; box-shadow:0 0 8px rgba(66, 109, 201, .9); } +.aui_buttons button:hover { color:#000; border-color:#666; } +.aui_buttons button:active { border-color:#666; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#DDDDDD', endColorstr='#FFFFFF'); background: linear-gradient(top, #DDD, #FFF); background: -moz-linear-gradient(top, #DDD, #FFF); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#DDD), to(#FFF)); box-shadow:inset 0 1px 5px rgba(66, 109, 201, .9), inset 0 1px 1em rgba(0, 0, 0, .3); } +.aui_buttons button[disabled] { cursor:default; color:#666; background:#DDD; border: solid 1px #999; filter:alpha(opacity=50); opacity:.5; box-shadow:none; } +button.aui_state_highlight { color: #FFF; border: solid 1px #1c6a9e; background: #2288cc; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#33bbee', endColorstr='#2288cc'); background: linear-gradient(top, #33bbee, #2288cc); background: -moz-linear-gradient(top, #33bbee, #2288cc); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#33bbee), to(#2288cc)); text-shadow: -1px -1px 1px #1c6a9e; } +button.aui_state_highlight:hover { color:#FFF; border-color:#0F3A56; } +button.aui_state_highlight:active { border-color:#1c6a9e; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#33bbee', endColorstr='#2288cc'); background: linear-gradient(top, #33bbee, #2288cc); background: -moz-linear-gradient(top, #33bbee, #2288cc); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#33bbee), to(#2288cc)); } +/* common end */ + +.aui_inner { background:#FFF; } +.aui_titleBar { width:100%; } +.aui_title { position:absolute; left:0; top:0; width:100%; height:22px; text-align:left; text-indent:-999em; font-size:0; } +.aui_nw, .aui_ne, .aui_sw, .aui_se, .aui_n, .aui_s, .aui_close { background-image:url(idialog/idialog_s.png); background-repeat:no-repeat; } +.aui_nw { width:15px; height:15px; background-position: 0 0; _png:idialog/ie6/aui_nw.png; } +.aui_ne { width:15px; height:15px; background-position: -15px 0; _png:idialog/ie6/aui_ne.png; } +.aui_sw { width:15px; height:15px; background-position: 0 -15px; _png:idialog/ie6/aui_sw.png; } +.aui_se { width:15px; height:15px; background-position: -15px -15px; _png:idialog/ie6/aui_se.png; } +.aui_close { position:absolute; right:-8px; top:-8px; _z-index:1; width:34px; height:34px; _font-size:0; _line-height:0; text-indent:-9999em; background-position:0 -60px; _png:idialog/ie6/aui_close.png; } +.aui_close:hover { background-position:0 -94px; _png:idialog/ie6/aui_close.hover.png; } +.aui_n, .aui_s { background-repeat:repeat-x; } +.aui_n { background-position: 0 -30px; _png:idialog/ie6/aui_n.png; } +.aui_s { background-position: 0 -45px; _png:idialog/ie6/aui_s.png; } +.aui_w, .aui_e { background-image:url(idialog/idialog_s2.png); background-repeat:repeat-y; } +.aui_w { background-position:left top; _png:idialog/ie6/aui_w.png; } +.aui_e { background-position: right bottom; _png:idialog/ie6/aui_e.png; } +@media screen and (min-width:0) {/* css3 */ + .aui_nw, .aui_ne, .aui_sw, .aui_se{ width:5px; height:5px; } + .aui_nw, .aui_n, .aui_ne, .aui_w, .aui_e, .aui_sw, .aui_s, .aui_se { background:none; } + .aui_sw, .aui_s, .aui_se { background:url(idialog/idialog_s.png) repeat-x 0 -45px; } + .aui_sw { border-radius:0 0 0 5px; } + .aui_se { border-radius:0 0 5px 0; } + .aui_outer { border:1px solid #929292; border-radius:5px; box-shadow:0 3px 8px rgba(0, 0, 0, .2); -moz-transition:-moz-box-shadow linear .2s; -webkit-transition: -webkit-box-shadow linear .2s; transition: -webkit-box-shadow linear .2s; } + .aui_border { border-radius:5px; background:#FFF; } + .aui_state_drag .aui_outer { box-shadow:none; } + .aui_state_lock .aui_outer { box-shadow:0 3px 26px rgba(0, 0, 0, .9); } + .aui_outer:active { box-shadow:0 0 5px rgba(0, 0, 0, .1)!important; } + .aui_state_drag .aui_outer { box-shadow:none!important; } + .aui_close { right:-16px; top:-16px; } +} +@media screen and (-webkit-min-device-pixel-ratio:0) {/* apple | webkit */ + .aui_close { right:auto; left:-16px; top:-16px; } +} diff --git a/js/artDialog/skins/idialog/idialog_s.png b/js/artDialog/skins/idialog/idialog_s.png new file mode 100644 index 0000000..d86d054 Binary files /dev/null and b/js/artDialog/skins/idialog/idialog_s.png differ diff --git a/js/artDialog/skins/idialog/idialog_s2.png b/js/artDialog/skins/idialog/idialog_s2.png new file mode 100644 index 0000000..7be06ad Binary files /dev/null and b/js/artDialog/skins/idialog/idialog_s2.png differ diff --git a/js/artDialog/skins/idialog/ie6/aui_close.hover.png b/js/artDialog/skins/idialog/ie6/aui_close.hover.png new file mode 100644 index 0000000..dd00dde Binary files /dev/null and b/js/artDialog/skins/idialog/ie6/aui_close.hover.png differ diff --git a/js/artDialog/skins/idialog/ie6/aui_close.png b/js/artDialog/skins/idialog/ie6/aui_close.png new file mode 100644 index 0000000..04ed8be Binary files /dev/null and b/js/artDialog/skins/idialog/ie6/aui_close.png differ diff --git a/js/artDialog/skins/idialog/ie6/aui_e.png b/js/artDialog/skins/idialog/ie6/aui_e.png new file mode 100644 index 0000000..b96ff2f Binary files /dev/null and b/js/artDialog/skins/idialog/ie6/aui_e.png differ diff --git a/js/artDialog/skins/idialog/ie6/aui_n.png b/js/artDialog/skins/idialog/ie6/aui_n.png new file mode 100644 index 0000000..34871be Binary files /dev/null and b/js/artDialog/skins/idialog/ie6/aui_n.png differ diff --git a/js/artDialog/skins/idialog/ie6/aui_ne.png b/js/artDialog/skins/idialog/ie6/aui_ne.png new file mode 100644 index 0000000..3644944 Binary files /dev/null and b/js/artDialog/skins/idialog/ie6/aui_ne.png differ diff --git a/js/artDialog/skins/idialog/ie6/aui_nw.png b/js/artDialog/skins/idialog/ie6/aui_nw.png new file mode 100644 index 0000000..dea0b9a Binary files /dev/null and b/js/artDialog/skins/idialog/ie6/aui_nw.png differ diff --git a/js/artDialog/skins/idialog/ie6/aui_s.png b/js/artDialog/skins/idialog/ie6/aui_s.png new file mode 100644 index 0000000..62746ee Binary files /dev/null and b/js/artDialog/skins/idialog/ie6/aui_s.png differ diff --git a/js/artDialog/skins/idialog/ie6/aui_se.png b/js/artDialog/skins/idialog/ie6/aui_se.png new file mode 100644 index 0000000..32247e8 Binary files /dev/null and b/js/artDialog/skins/idialog/ie6/aui_se.png differ diff --git a/js/artDialog/skins/idialog/ie6/aui_sw.png b/js/artDialog/skins/idialog/ie6/aui_sw.png new file mode 100644 index 0000000..478f609 Binary files /dev/null and b/js/artDialog/skins/idialog/ie6/aui_sw.png differ diff --git a/js/artDialog/skins/idialog/ie6/aui_w.png b/js/artDialog/skins/idialog/ie6/aui_w.png new file mode 100644 index 0000000..c4df489 Binary files /dev/null and b/js/artDialog/skins/idialog/ie6/aui_w.png differ diff --git a/js/artDialog/skins/opera.css b/js/artDialog/skins/opera.css new file mode 100644 index 0000000..06b6c8f --- /dev/null +++ b/js/artDialog/skins/opera.css @@ -0,0 +1,62 @@ +@charset "utf-8"; +/* + * artDialog skin + * http://code.google.com/p/artdialog/ + * (c) 2009-2011 TangBin, http://www.planeArt.cn + * + * This is licensed under the GNU LGPL, version 2.1 or later. + * For details, see: http://creativecommons.org/licenses/LGPL/2.1/ + */ + +/* common start */ +body { _margin:0; _height:100%; /*IE6 BUG*/ } +.aui_outer { text-align:left; } +table.aui_border, table.aui_dialog { border:0; margin:0; border-collapse:collapse; width:auto; } +.aui_nw, .aui_n, .aui_ne, .aui_w, .aui_c, .aui_e, .aui_sw, .aui_s, .aui_se, .aui_header, .aui_tdIcon, .aui_main, .aui_footer { padding:0; } +.aui_header, .aui_buttons button { font: 12px/1.11 'Microsoft Yahei', Tahoma, Arial, Helvetica, STHeiti; _font-family:Tahoma,Arial,Helvetica,STHeiti; -o-font-family: Tahoma, Arial; } +.aui_title { overflow:hidden; text-overflow: ellipsis; } +.aui_state_noTitle .aui_title { display:none; } +.aui_close { display:block; position:absolute; text-decoration:none; outline:none; _cursor:pointer; } +.aui_close:hover { text-decoration:none; } +.aui_main { text-align:center; min-width:9em; min-width:0\9/*IE8 BUG*/; } +.aui_content { display:inline-block; *zoom:1; *display:inline; text-align:left; border:none 0; } +.aui_content.aui_state_full { display:block; width:100%; margin:0; padding:0!important; height:100%; } +.aui_loading { width:96px; height:32px; text-align:left; text-indent:-999em; overflow:hidden; background:url(icons/loading.gif) no-repeat center center; } +.aui_icon { vertical-align: middle; } +.aui_icon div { width:48px; height:48px; margin:10px 0 10px 10px; background-position: center center; background-repeat:no-repeat; } +.aui_buttons { padding:8px; text-align:right; white-space:nowrap; } +.aui_buttons button { margin-left:15px; padding: 6px 8px; cursor: pointer; display: inline-block; text-align: center; line-height: 1; *padding:4px 10px; *height:2em; letter-spacing:2px; font-family: Tahoma, Arial/9!important; width:auto; overflow:visible; *width:1; color: #333; border: solid 1px #999; border-radius: 5px; background: #DDD; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFF', endColorstr='#DDDDDD'); background: linear-gradient(top, #FFF, #DDD); background: -moz-linear-gradient(top, #FFF, #DDD); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#FFF), to(#DDD)); text-shadow: 0px 1px 1px rgba(255, 255, 255, 1); box-shadow: 0 1px 0 rgba(255, 255, 255, .7), 0 -1px 0 rgba(0, 0, 0, .09); -moz-transition:-moz-box-shadow linear .2s; -webkit-transition: -webkit-box-shadow linear .2s; transition: box-shadow linear .2s; } +.aui_buttons button::-moz-focus-inner{ border:0; padding:0; margin:0; } +.aui_buttons button:focus { outline:none 0; border-color:#426DC9; box-shadow:0 0 8px rgba(66, 109, 201, .9); } +.aui_buttons button:hover { color:#000; border-color:#666; } +.aui_buttons button:active { border-color:#666; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#DDDDDD', endColorstr='#FFFFFF'); background: linear-gradient(top, #DDD, #FFF); background: -moz-linear-gradient(top, #DDD, #FFF); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#DDD), to(#FFF)); box-shadow:inset 0 1px 5px rgba(66, 109, 201, .9), inset 0 1px 1em rgba(0, 0, 0, .3); } +.aui_buttons button[disabled] { cursor:default; color:#666; background:#DDD; border: solid 1px #999; filter:alpha(opacity=50); opacity:.5; box-shadow:none; } +button.aui_state_highlight { color: #FFF; border: solid 1px #1c6a9e; background: #2288cc; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#33bbee', endColorstr='#2288cc'); background: linear-gradient(top, #33bbee, #2288cc); background: -moz-linear-gradient(top, #33bbee, #2288cc); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#33bbee), to(#2288cc)); text-shadow: -1px -1px 1px #1c6a9e; } +button.aui_state_highlight:hover { color:#FFF; border-color:#0F3A56; } +button.aui_state_highlight:active { border-color:#1c6a9e; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#33bbee', endColorstr='#2288cc'); background: linear-gradient(top, #33bbee, #2288cc); background: -moz-linear-gradient(top, #33bbee, #2288cc); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#33bbee), to(#2288cc)); } +/* common end */ + +.aui_inner { background:#f0f1f9; } +.aui_titleBar { width:100%; height:0; position:relative; bottom:27px; _bottom:0; _margin-top:-27px; } +.aui_title { height:27px; line-height:27px; padding:0 37px 0 0; _padding:0; color:#333; text-shadow:1px 1px 0 rgba(255, 255, 255, .7); } +.aui_nw, .aui_ne, .aui_sw, .aui_se, .aui_n, .aui_s, .aui_close { background-image:url(opera/s1.png); background-repeat:no-repeat; } +.aui_nw { width:15px; height:32px; background-position: 0 0; _png:opera/ie6/aui_nw.png; } +.aui_ne { width:15px; height:32px; background-position: -15px 0; _png:opera/ie6/aui_ne.png; } +.aui_sw { width:15px; height:15px; background-position: 0 -33px; _png:opera/ie6/aui_sw.png; } +.aui_se { width:15px; height:15px; background-position: -15px -33px; _png:opera/ie6/aui_se.png; } +.aui_close { top:0; right:0; _z-index:1; width:27px; height:27px; _font-size:0; _line-height:0; *zoom:1; text-indent:-9999em; background-position:0 -96px; _png:opera/ie6/aui_close.png; } +.aui_close:hover { background-position:0 -123px; _png:opera/ie6/aui_close.hover.png; } +.aui_n, .aui_s { background-repeat:repeat-x; } +.aui_n { background-position: 0 -48px; _png:opera/ie6/aui_n.png; } +.aui_s { background-position: 0 -81px; _png:opera/ie6/aui_s.png; } +.aui_w, .aui_e { background-image:url(opera/s2.png); background-repeat:repeat-y; } +.aui_w { background-position:left top; _png:opera/ie6/aui_w.png; } +.aui_e { background-position: right bottom; _png:opera/ie6/aui_e.png; } +.aui_icon, .aui_main { padding-top:10px; } +.aui_state_noTitle .aui_nw, .aui_state_noTitle .aui_ne, .aui_state_noTitle .aui_sw, .aui_state_noTitle .aui_se { width:3px; height:3px; } +.aui_state_noTitle .aui_inner { border:1px solid #666; background:#FFF; } +.aui_state_noTitle .aui_outer { box-shadow:none; } +.aui_state_noTitle .aui_nw, .aui_state_noTitle .aui_n, .aui_state_noTitle .aui_ne, .aui_state_noTitle .aui_w, .aui_state_noTitle .aui_e, .aui_state_noTitle .aui_sw, .aui_state_noTitle .aui_s, .aui_state_noTitle .aui_se { background:rgba(0, 0, 0, .05); background:#000\9!important; filter:alpha(opacity=5)!important; } +.aui_state_noTitle .aui_titleBar { bottom:0; _bottom:0; _margin-top:0; } +.aui_state_noTitle .aui_close { top:0; right:0; width:18px; height:18px; line-height:18px; text-align:center; text-indent:0; font-family: Helvetica, STHeiti; _font-family: '\u9ed1\u4f53', 'Book Antiqua', Palatino; font-size:18px; text-decoration:none; color:#214FA3; background:none; filter:!important; } +.aui_state_noTitle .aui_close:hover, .aui_state_noTitle .aui_close:active { text-decoration:none; color:#900; } \ No newline at end of file diff --git a/js/artDialog/skins/opera/ie6/aui_close.hover.png b/js/artDialog/skins/opera/ie6/aui_close.hover.png new file mode 100644 index 0000000..8e942f0 Binary files /dev/null and b/js/artDialog/skins/opera/ie6/aui_close.hover.png differ diff --git a/js/artDialog/skins/opera/ie6/aui_close.png b/js/artDialog/skins/opera/ie6/aui_close.png new file mode 100644 index 0000000..9442e41 Binary files /dev/null and b/js/artDialog/skins/opera/ie6/aui_close.png differ diff --git a/js/artDialog/skins/opera/ie6/aui_e.png b/js/artDialog/skins/opera/ie6/aui_e.png new file mode 100644 index 0000000..de6faba Binary files /dev/null and b/js/artDialog/skins/opera/ie6/aui_e.png differ diff --git a/js/artDialog/skins/opera/ie6/aui_n.png b/js/artDialog/skins/opera/ie6/aui_n.png new file mode 100644 index 0000000..840358d Binary files /dev/null and b/js/artDialog/skins/opera/ie6/aui_n.png differ diff --git a/js/artDialog/skins/opera/ie6/aui_ne.png b/js/artDialog/skins/opera/ie6/aui_ne.png new file mode 100644 index 0000000..fa30a50 Binary files /dev/null and b/js/artDialog/skins/opera/ie6/aui_ne.png differ diff --git a/js/artDialog/skins/opera/ie6/aui_nw.png b/js/artDialog/skins/opera/ie6/aui_nw.png new file mode 100644 index 0000000..6d09929 Binary files /dev/null and b/js/artDialog/skins/opera/ie6/aui_nw.png differ diff --git a/js/artDialog/skins/opera/ie6/aui_s.png b/js/artDialog/skins/opera/ie6/aui_s.png new file mode 100644 index 0000000..c031841 Binary files /dev/null and b/js/artDialog/skins/opera/ie6/aui_s.png differ diff --git a/js/artDialog/skins/opera/ie6/aui_se.png b/js/artDialog/skins/opera/ie6/aui_se.png new file mode 100644 index 0000000..8679228 Binary files /dev/null and b/js/artDialog/skins/opera/ie6/aui_se.png differ diff --git a/js/artDialog/skins/opera/ie6/aui_sw.png b/js/artDialog/skins/opera/ie6/aui_sw.png new file mode 100644 index 0000000..9866db3 Binary files /dev/null and b/js/artDialog/skins/opera/ie6/aui_sw.png differ diff --git a/js/artDialog/skins/opera/ie6/aui_w.png b/js/artDialog/skins/opera/ie6/aui_w.png new file mode 100644 index 0000000..519cf11 Binary files /dev/null and b/js/artDialog/skins/opera/ie6/aui_w.png differ diff --git a/js/artDialog/skins/opera/s1.png b/js/artDialog/skins/opera/s1.png new file mode 100644 index 0000000..e6941c1 Binary files /dev/null and b/js/artDialog/skins/opera/s1.png differ diff --git a/js/artDialog/skins/opera/s2.png b/js/artDialog/skins/opera/s2.png new file mode 100644 index 0000000..0debda0 Binary files /dev/null and b/js/artDialog/skins/opera/s2.png differ diff --git a/js/artDialog/skins/simple.css b/js/artDialog/skins/simple.css new file mode 100644 index 0000000..690b16c --- /dev/null +++ b/js/artDialog/skins/simple.css @@ -0,0 +1,55 @@ +@charset "utf-8"; +/* + * artDialog skin + * http://code.google.com/p/artdialog/ + * (c) 2009-2011 TangBin, http://www.planeArt.cn + * + * This is licensed under the GNU LGPL, version 2.1 or later. + * For details, see: http://creativecommons.org/licenses/LGPL/2.1/ + */ + +/* common start */ +body { _margin:0; _height:100%; /*IE6 BUG*/ } +.aui_outer { text-align:left; } +table.aui_border, table.aui_dialog { border:0; margin:0; border-collapse:collapse; width:auto; } +.aui_nw, .aui_n, .aui_ne, .aui_w, .aui_c, .aui_e, .aui_sw, .aui_s, .aui_se, .aui_header, .aui_tdIcon, .aui_main, .aui_footer { padding:0; } +.aui_header, .aui_buttons button { font: 12px/1.11 'Microsoft Yahei', Tahoma, Arial, Helvetica, STHeiti; _font-family:Tahoma,Arial,Helvetica,STHeiti; -o-font-family: Tahoma, Arial; } +.aui_title { overflow:hidden; text-overflow: ellipsis; } +.aui_state_noTitle .aui_title { display:none; } +.aui_close { display:block; position:absolute; text-decoration:none; outline:none; _cursor:pointer; } +.aui_close:hover { text-decoration:none; } +.aui_main { text-align:center; min-width:9em; min-width:0\9/*IE8 BUG*/; } +.aui_content { display:inline-block; *zoom:1; *display:inline; text-align:left; border:none 0; } +.aui_content.aui_state_full { display:block; width:100%; margin:0; padding:0!important; height:100%; } +.aui_loading { width:96px; height:32px; text-align:left; text-indent:-999em; overflow:hidden; background:url(icons/loading.gif) no-repeat center center; } +.aui_icon { vertical-align: middle; } +.aui_icon div { width:48px; height:48px; margin:10px 0 10px 10px; background-position: center center; background-repeat:no-repeat; } +.aui_buttons { padding:8px; text-align:right; white-space:nowrap; } +.aui_buttons button { margin-left:15px; padding: 6px 8px; cursor: pointer; display: inline-block; text-align: center; line-height: 1; *padding:4px 10px; *height:2em; letter-spacing:2px; font-family: Tahoma, Arial/9!important; width:auto; overflow:visible; *width:1; color: #333; border: solid 1px #999; border-radius: 5px; background: #DDD; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFF', endColorstr='#DDDDDD'); background: linear-gradient(top, #FFF, #DDD); background: -moz-linear-gradient(top, #FFF, #DDD); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#FFF), to(#DDD)); text-shadow: 0px 1px 1px rgba(255, 255, 255, 1); box-shadow: 0 1px 0 rgba(255, 255, 255, .7), 0 -1px 0 rgba(0, 0, 0, .09); -moz-transition:-moz-box-shadow linear .2s; -webkit-transition: -webkit-box-shadow linear .2s; transition: box-shadow linear .2s; } +.aui_buttons button::-moz-focus-inner{ border:0; padding:0; margin:0; } +.aui_buttons button:focus { outline:none 0; border-color:#426DC9; box-shadow:0 0 8px rgba(66, 109, 201, .9); } +.aui_buttons button:hover { color:#000; border-color:#666; } +.aui_buttons button:active { border-color:#666; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#DDDDDD', endColorstr='#FFFFFF'); background: linear-gradient(top, #DDD, #FFF); background: -moz-linear-gradient(top, #DDD, #FFF); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#DDD), to(#FFF)); box-shadow:inset 0 1px 5px rgba(66, 109, 201, .9), inset 0 1px 1em rgba(0, 0, 0, .3); } +.aui_buttons button[disabled] { cursor:default; color:#666; background:#DDD; border: solid 1px #999; filter:alpha(opacity=50); opacity:.5; box-shadow:none; } +button.aui_state_highlight { color: #FFF; border: solid 1px #1c6a9e; background: #2288cc; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#33bbee', endColorstr='#2288cc'); background: linear-gradient(top, #33bbee, #2288cc); background: -moz-linear-gradient(top, #33bbee, #2288cc); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#33bbee), to(#2288cc)); text-shadow: -1px -1px 1px #1c6a9e; } +button.aui_state_highlight:hover { color:#FFF; border-color:#0F3A56; } +button.aui_state_highlight:active { border-color:#1c6a9e; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#33bbee', endColorstr='#2288cc'); background: linear-gradient(top, #33bbee, #2288cc); background: -moz-linear-gradient(top, #33bbee, #2288cc); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#33bbee), to(#2288cc)); } +/* common end */ + +.aui_inner { background:#FFF; border:1px solid #666; } +.aui_nw, .aui_ne, .aui_sw, .aui_se { width:3px; height:3px; } +.aui_nw, .aui_n, .aui_ne, .aui_w, .aui_e, .aui_sw, .aui_s, .aui_se { background:rgba(0, 0, 0, .05); background:#000\9!important; filter:alpha(opacity=5); } +.aui_titleBar { position:relative; height:100%; } +.aui_title { position:absolute; top:0; left:0; width:100%; height:24px; text-indent:-9999em; overflow:hidden; font-size:0; } +.aui_state_drag .aui_title { color:#666; } +.aui_close { padding:0; top:0; right:0; width:18px; height:18px; line-height:18px; text-align:center; font-family: Helvetica, STHeiti; _font-family: '\u9ed1\u4f53', 'Book Antiqua', Palatino; font-size:18px; text-decoration:none; color:#214FA3; } +.aui_close:hover, .aui_close:active { text-decoration:none; color:#900; } +.aui_content { color:#666; } +.aui_state_focus .aui_content { color:#000; } +@media screen and (min-width:0) { + .aui_close { width:20px; height:20px; line-height:20px; right:-10px; top:-10px; border-radius:20px; background:#999; color:#FFF; box-shadow:0 1px 3px rgba(0, 0, 0, .3); -moz-transition: linear .06s; -webkit-transition: linear .06s; transition: linear .06s; } + .aui_close:hover { width:24px; height:24px; line-height:24px; right:-12px; top:-12px; color:#FFF; box-shadow:0 1px 3px rgba(209, 40, 42, .5); background:#d1282a; border-radius:24px; } + .aui_state_lock .aui_dialog { box-shadow:0 3px 26px rgba(0, 0, 0, .9); -moz-transition:-moz-box-shadow linear .2s; -webkit-transition: -webkit-box-shadow linear .2s; transition: -webkit-box-shadow linear .2s; } + .aui_dialog:active { box-shadow:0 0 5px rgba(0, 0, 0, .1)!important; } + .aui_state_drag .aui_outer { box-shadow:none!important; } +} diff --git a/js/artDialog/skins/twitter.css b/js/artDialog/skins/twitter.css new file mode 100644 index 0000000..aeeaf8e --- /dev/null +++ b/js/artDialog/skins/twitter.css @@ -0,0 +1,59 @@ +@charset "utf-8"; +/* + * artDialog skin + * http://code.google.com/p/artdialog/ + * (c) 2009-2011 TangBin, http://www.planeArt.cn + * + * This is licensed under the GNU LGPL, version 2.1 or later. + * For details, see: http://creativecommons.org/licenses/LGPL/2.1/ + */ + +/* common start */ +body { _margin:0; _height:100%; /*IE6 BUG*/ } +.aui_outer { text-align:left; } +table.aui_border, table.aui_dialog { border:0; margin:0; border-collapse:collapse; width:auto; } +.aui_nw, .aui_n, .aui_ne, .aui_w, .aui_c, .aui_e, .aui_sw, .aui_s, .aui_se, .aui_header, .aui_tdIcon, .aui_main, .aui_footer { padding:0; } +.aui_header, .aui_buttons button { font: 12px/1.11 'Microsoft Yahei', Tahoma, Arial, Helvetica, STHeiti; _font-family:Tahoma,Arial,Helvetica,STHeiti; -o-font-family: Tahoma, Arial; } +.aui_title { overflow:hidden; text-overflow: ellipsis; } +.aui_state_noTitle .aui_title { display:none; } +.aui_close { display:block; position:absolute; text-decoration:none; outline:none; _cursor:pointer; } +.aui_close:hover { text-decoration:none; } +.aui_main { text-align:center; min-width:9em; min-width:0\9/*IE8 BUG*/; } +.aui_content { display:inline-block; *zoom:1; *display:inline; text-align:left; border:none 0; } +.aui_content.aui_state_full { display:block; width:100%; margin:0; padding:0!important; height:100%; } +.aui_loading { width:96px; height:32px; text-align:left; text-indent:-999em; overflow:hidden; background:url(icons/loading.gif) no-repeat center center; } +.aui_icon { vertical-align: middle; } +.aui_icon div { width:48px; height:48px; margin:10px 0 10px 10px; background-position: center center; background-repeat:no-repeat; } +.aui_buttons { padding:8px; text-align:right; white-space:nowrap; } +.aui_buttons button { margin-left:15px; padding: 6px 8px; cursor: pointer; display: inline-block; text-align: center; line-height: 1; *padding:4px 10px; *height:2em; letter-spacing:2px; font-family: Tahoma, Arial/9!important; width:auto; overflow:visible; *width:1; color: #333; border: solid 1px #999; border-radius: 5px; background: #DDD; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFF', endColorstr='#DDDDDD'); background: linear-gradient(top, #FFF, #DDD); background: -moz-linear-gradient(top, #FFF, #DDD); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#FFF), to(#DDD)); text-shadow: 0px 1px 1px rgba(255, 255, 255, 1); box-shadow: 0 1px 0 rgba(255, 255, 255, .7), 0 -1px 0 rgba(0, 0, 0, .09); -moz-transition:-moz-box-shadow linear .2s; -webkit-transition: -webkit-box-shadow linear .2s; transition: box-shadow linear .2s; } +.aui_buttons button::-moz-focus-inner{ border:0; padding:0; margin:0; } +.aui_buttons button:focus { outline:none 0; border-color:#426DC9; box-shadow:0 0 8px rgba(66, 109, 201, .9); } +.aui_buttons button:hover { color:#000; border-color:#666; } +.aui_buttons button:active { border-color:#666; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#DDDDDD', endColorstr='#FFFFFF'); background: linear-gradient(top, #DDD, #FFF); background: -moz-linear-gradient(top, #DDD, #FFF); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#DDD), to(#FFF)); box-shadow:inset 0 1px 5px rgba(66, 109, 201, .9), inset 0 1px 1em rgba(0, 0, 0, .3); } +.aui_buttons button[disabled] { cursor:default; color:#666; background:#DDD; border: solid 1px #999; filter:alpha(opacity=50); opacity:.5; box-shadow:none; } +button.aui_state_highlight { color: #FFF; border: solid 1px #1c6a9e; background: #2288cc; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#33bbee', endColorstr='#2288cc'); background: linear-gradient(top, #33bbee, #2288cc); background: -moz-linear-gradient(top, #33bbee, #2288cc); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#33bbee), to(#2288cc)); text-shadow: -1px -1px 1px #1c6a9e; } +button.aui_state_highlight:hover { color:#FFF; border-color:#0F3A56; } +button.aui_state_highlight:active { border-color:#1c6a9e; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#33bbee', endColorstr='#2288cc'); background: linear-gradient(top, #33bbee, #2288cc); background: -moz-linear-gradient(top, #33bbee, #2288cc); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#33bbee), to(#2288cc)); } +/* common end */ + +.aui_inner { background:rgba(0, 0, 0, .7); } +.aui_dialog { background:#FFF; border-radius:3px; } +.aui_outer { border:1px solid #000; border-radius:5px; box-shadow: 0 3px 0 rgba(0,0,0,0.1); -moz-transition:-moz-box-shadow linear .2s; -webkit-transition: -webkit-box-shadow linear .2s; transition: -webkit-box-shadow linear .2s; } +.aui_state_lock .aui_outer { box-shadow:0 3px 26px rgba(0, 0, 0, .9); } +.aui_outer:active { box-shadow:none!important; } +.aui_state_drag .aui_outer { box-shadow:none!important; } +.aui_border { border-radius:3px; } +.aui_nw, .aui_ne { width:5px; height:37px; } +.aui_sw, .aui_se { width:5px; height:5px; } +.aui_nw, .aui_n, .aui_ne, .aui_w, .aui_e, .aui_sw, .aui_s, .aui_se { background:rgba(0, 0, 0, .7); background:#000\9!important; filter:alpha(opacity=70); } +.aui_titleBar { width:100%; height:0; position:relative; bottom:33px; _bottom:0; _margin-top:-33px; } +.aui_title { height:27px; line-height:27px; padding:0 16px 0 5px; color:#FFF; font-weight:700; text-shadow:0 1px 0 #000; } +.aui_close { padding:0; top:2px; right:5px; width:21px; height:21px; line-height:21px; font-size:18px; text-align:center; color:#EBEBEB; font-family: Helvetica, STHeiti; _font-family: Tahoma, '\u9ed1\u4f53', 'Book Antiqua', Palatino; border:1px solid transparent; _border:0 none; background:#000; border-radius:15px; } +.aui_state_drag .aui_close { color:#FFF; } +.aui_close:hover { background:#C72015; border:1px solid #000; _border:0 none; box-shadow: 0 1px 0 rgba(255, 255, 255, .3), inset 0 1px 0 rgba(255, 255, 255, .3); } +.aui_close:active { box-shadow: none; } +.aui_state_noTitle { } +.aui_content { color:#666; } +.aui_state_noTitle .aui_nw, .aui_state_noTitle .aui_ne { height:5px; } +.aui_state_noTitle .aui_titleBar { bottom:0; _bottom:0; _margin-top:0; } +.aui_state_noTitle .aui_close { top:5px; } diff --git a/js/bstable/.idea/.name b/js/bstable/.idea/.name new file mode 100644 index 0000000..65f5bb0 --- /dev/null +++ b/js/bstable/.idea/.name @@ -0,0 +1 @@ +ss \ No newline at end of file diff --git a/js/bstable/.idea/encodings.xml b/js/bstable/.idea/encodings.xml new file mode 100644 index 0000000..97626ba --- /dev/null +++ b/js/bstable/.idea/encodings.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/js/bstable/.idea/misc.xml b/js/bstable/.idea/misc.xml new file mode 100644 index 0000000..c9a8380 --- /dev/null +++ b/js/bstable/.idea/misc.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/js/bstable/.idea/modules.xml b/js/bstable/.idea/modules.xml new file mode 100644 index 0000000..406b1f3 --- /dev/null +++ b/js/bstable/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/js/bstable/.idea/ss.iml b/js/bstable/.idea/ss.iml new file mode 100644 index 0000000..c956989 --- /dev/null +++ b/js/bstable/.idea/ss.iml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/js/bstable/.idea/workspace.xml b/js/bstable/.idea/workspace.xml new file mode 100644 index 0000000..8a27eb4 --- /dev/null +++ b/js/bstable/.idea/workspace.xml @@ -0,0 +1,309 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + true + DEFINITION_ORDER + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + project + + + + + + + + + + + + + + + + + + $PROJECT_DIR$ + true + + bdd + + DIRECTORY + + false + + + + + + + + + + + + + + + + + + + + 1466068640712 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + file://$PROJECT_DIR$/index.html + 27 + + + file://$PROJECT_DIR$/index.html + 20 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/js/bstable/css/bootstrap-table.css b/js/bstable/css/bootstrap-table.css new file mode 100644 index 0000000..7af486a --- /dev/null +++ b/js/bstable/css/bootstrap-table.css @@ -0,0 +1,306 @@ +/** + * @author zhixin wen + * version: 1.10.1 + * https://github.com/wenzhixin/bootstrap-table/ + */ + +.bootstrap-table .table { + margin-bottom: 0 !important; + border: 1px solid #dddddd; + border-collapse: collapse !important; + border-radius: 1px; +} + +.bootstrap-table .table:not(.table-condensed), +.bootstrap-table .table:not(.table-condensed) > tbody > tr > th, +.bootstrap-table .table:not(.table-condensed) > tfoot > tr > th, +.bootstrap-table .table:not(.table-condensed) > thead > tr > td, +.bootstrap-table .table:not(.table-condensed) > tbody > tr > td, +.bootstrap-table .table:not(.table-condensed) > tfoot > tr > td { + padding: 8px; +} + +.bootstrap-table .table.table-no-bordered > thead > tr > th, +.bootstrap-table .table.table-no-bordered > tbody > tr > td { + border-right: 2px solid transparent; +} + +.fixed-table-container { + position: relative; + clear: both; + /*border: 1px solid #dddddd;*/ + border-radius: 4px; + -webkit-border-radius: 4px; + -moz-border-radius: 4px; +} + +.fixed-table-container.table-no-bordered { + border: 1px solid transparent; +} + +.fixed-table-footer, +.fixed-table-header { + overflow: hidden; +} + +.fixed-table-footer { + /*border-top: 1px solid #dddddd;*/ +} + +.fixed-table-body { + overflow-x: hidden; + overflow-y: auto; + height: auto; +} + +.fixed-table-container table { + width: 100%; +} + +.fixed-table-container thead th { + height: 0; + padding: 0; + margin: 0; + /*border-left: 1px solid #dddddd;*/ +} + +.fixed-table-container thead th:focus { + outline: 0 solid transparent; +} + +.fixed-table-container thead th:first-child { + border-left: none; + border-top-left-radius: 4px; + -webkit-border-top-left-radius: 4px; + -moz-border-radius-topleft: 4px; +} + +.fixed-table-container thead th .th-inner, +.fixed-table-container tbody td .th-inner { + padding: 8px; + line-height: 24px; + vertical-align: top; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +.fixed-table-container thead th .sortable { + cursor: pointer; + background-position: right; + background-repeat: no-repeat; + padding-right: 30px; +} + +.fixed-table-container thead th .both { + background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAAkElEQVQoz7X QMQ5AQBCF4dWQSJxC5wwax1Cq1e7BAdxD5SL+Tq/QCM1oNiJidwox0355mXnG/DrEtIQ6azioNZQxI0ykPhTQIwhCR+BmBYtlK7kLJYwWCcJA9M4qdrZrd8pPjZWPtOqdRQy320YSV17OatFC4euts6z39GYMKRPCTKY9UnPQ6P+GtMRfGtPnBCiqhAeJPmkqAAAAAElFTkSuQmCC'); +} + +.fixed-table-container thead th .asc { + background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAAZ0lEQVQ4y2NgGLKgquEuFxBPAGI2ahhWCsS/gDibUoO0gPgxEP8H4ttArEyuQYxAPBdqEAxPBImTY5gjEL9DM+wTENuQahAvEO9DMwiGdwAxOymGJQLxTyD+jgWDxCMZRsEoGAVoAADeemwtPcZI2wAAAABJRU5ErkJggg=='); +} + +.fixed-table-container thead th .desc { + background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAAZUlEQVQ4y2NgGAWjYBSggaqGu5FA/BOIv2PBIPFEUgxjB+IdQPwfC94HxLykus4GiD+hGfQOiB3J8SojEE9EM2wuSJzcsFMG4ttQgx4DsRalkZENxL+AuJQaMcsGxBOAmGvopk8AVz1sLZgg0bsAAAAASUVORK5CYII= '); +} + +.fixed-table-container th.detail { + width: 30px; +} + +.fixed-table-container tbody td { + border-left: 1px solid #dddddd; +} + +.fixed-table-container tbody tr:first-child td { + border-top: none; +} + +.fixed-table-container tbody td:first-child { + border-left: none; +} + +/* the same color with .active */ +.fixed-table-container tbody .selected td { + background-color: #f5f5f5; +} + +.fixed-table-container .bs-checkbox { + text-align: center; +} + +.fixed-table-container .bs-checkbox .th-inner { + padding: 8px 0; +} + +.fixed-table-container input[type="radio"], +.fixed-table-container input[type="checkbox"] { + margin: 0 auto !important; +} + +.fixed-table-container .no-records-found { + text-align: center; +} + +.fixed-table-pagination div.pagination, +.fixed-table-pagination .pagination-detail { + font-size: 12px; + margin-top: 10px; + margin-bottom: 10px; + margin-left: 20px; + margin-right: 30px; + color: #0D8BBD; +} + +.fixed-table-pagination div.pagination .pagination { + margin: 0; +} + +.fixed-table-pagination .pagination a { + padding: 6px 12px; + line-height: 1.428571429; +} + +.fixed-table-pagination .pagination-info { + line-height: 34px; + margin-right: 5px; +} + +.fixed-table-pagination .btn-group { + position: relative; + display: inline-block; + vertical-align: middle; +} + +.fixed-table-pagination .dropup .dropdown-menu { + margin-bottom: 0; +} + +.fixed-table-pagination .page-list { + display: none; +} + +.fixed-table-toolbar .columns-left { + margin-right: 5px; +} + +.fixed-table-toolbar .columns-right { + margin-left: 5px; +} + +.fixed-table-toolbar .columns label { + display: block; + padding: 3px 20px; + clear: both; + font-weight: normal; + line-height: 1.428571429; +} + +.fixed-table-toolbar .bars, +.fixed-table-toolbar .search, +.fixed-table-toolbar .columns { + position: relative; + margin-top: 10px; + margin-bottom: 10px; + line-height: 34px; +} + +.fixed-table-pagination li.disabled a { + pointer-events: none; + cursor: default; +} + +.fixed-table-loading { + display: none; + position: absolute; + top: 42px; + right: 0; + bottom: 0; + left: 0; + z-index: 99; + background-color: #fff; + text-align: center; +} + +.fixed-table-body .card-view .title { + font-weight: bold; + display: inline-block; + min-width: 30%; + text-align: left !important; +} + +/* support bootstrap 2 */ +.fixed-table-body thead th .th-inner { + box-sizing: border-box; +} + +.table th, .table td { + vertical-align: middle; + box-sizing: border-box; +} + +.fixed-table-toolbar .dropdown-menu { + text-align: left; + max-height: 300px; + overflow: auto; +} + +.fixed-table-toolbar .btn-group > .btn-group { + display: inline-block; + margin-left: -1px !important; +} + +.fixed-table-toolbar .btn-group > .btn-group > .btn { + border-radius: 0; +} + +.fixed-table-toolbar .btn-group > .btn-group:first-child > .btn { + border-top-left-radius: 4px; + border-bottom-left-radius: 4px; +} + +.fixed-table-toolbar .btn-group > .btn-group:last-child > .btn { + border-top-right-radius: 4px; + border-bottom-right-radius: 4px; +} + +.bootstrap-table .table > thead > tr > th { + vertical-align: bottom; + border-bottom: 1px solid #ddd; +} + +/* support bootstrap 3 */ +.bootstrap-table .table thead > tr > th { + padding: 0; + margin: 0; +} + +.bootstrap-table .fixed-table-footer tbody > tr > td { + padding: 0 !important; +} + +.bootstrap-table .fixed-table-footer .table { + border-bottom: none; + border-radius: 0; + padding: 0 !important; +} + +.pull-right .dropdown-menu { + right: 0; + left: auto; +} + +/* calculate scrollbar width */ +p.fixed-table-scroll-inner { + width: 100%; + height: 200px; +} + +div.fixed-table-scroll-outer { + top: 0; + left: 0; + visibility: hidden; + width: 200px; + height: 150px; + overflow: hidden; +} diff --git a/js/bstable/css/bootstrap.min.css b/js/bstable/css/bootstrap.min.css new file mode 100644 index 0000000..d65c66b --- /dev/null +++ b/js/bstable/css/bootstrap.min.css @@ -0,0 +1,5 @@ +/*! + * Bootstrap v3.3.5 (http://getbootstrap.com) + * Copyright 2011-2015 Twitter, Inc. + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + *//*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{margin:.67em 0;font-size:2em}mark{color:#000;background:#ff0}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{height:0;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{margin:0;font:inherit;color:inherit}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}input{line-height:normal}input[type=checkbox],input[type=radio]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;-webkit-appearance:textfield}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{padding:.35em .625em .75em;margin:0 2px;border:1px solid silver}legend{padding:0;border:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-spacing:0;border-collapse:collapse}td,th{padding:0}/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */@media print{*,:after,:before{color:#000!important;text-shadow:none!important;background:0 0!important;-webkit-box-shadow:none!important;box-shadow:none!important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}a[href^="javascript:"]:after,a[href^="#"]:after{content:""}blockquote,pre{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}img,tr{page-break-inside:avoid}img{max-width:100%!important}h2,h3,p{orphans:3;widows:3}h2,h3{page-break-after:avoid}.navbar{display:none}.btn>.caret,.dropup>.btn>.caret{border-top-color:#000!important}.label{border:1px solid #000}.table{border-collapse:collapse!important}.table td,.table th{background-color:#fff!important}.table-bordered td,.table-bordered th{border:1px solid #ddd!important}}@font-face{font-family:'Glyphicons Halflings';src:url(../fonts/glyphicons-halflings-regular.eot);src:url(../fonts/glyphicons-halflings-regular.eot?#iefix) format('embedded-opentype'),url(../fonts/glyphicons-halflings-regular.woff2) format('woff2'),url(../fonts/glyphicons-halflings-regular.woff) format('woff'),url(../fonts/glyphicons-halflings-regular.ttf) format('truetype'),url(../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular) format('svg')}.glyphicon{position:relative;top:1px;display:inline-block;font-family:'Glyphicons Halflings';font-style:normal;font-weight:400;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.glyphicon-asterisk:before{content:"\2a"}.glyphicon-plus:before{content:"\2b"}.glyphicon-eur:before,.glyphicon-euro:before{content:"\20ac"}.glyphicon-minus:before{content:"\2212"}.glyphicon-cloud:before{content:"\2601"}.glyphicon-envelope:before{content:"\2709"}.glyphicon-pencil:before{content:"\270f"}.glyphicon-glass:before{content:"\e001"}.glyphicon-music:before{content:"\e002"}.glyphicon-search:before{content:"\e003"}.glyphicon-heart:before{content:"\e005"}.glyphicon-star:before{content:"\e006"}.glyphicon-star-empty:before{content:"\e007"}.glyphicon-user:before{content:"\e008"}.glyphicon-film:before{content:"\e009"}.glyphicon-th-large:before{content:"\e010"}.glyphicon-th:before{content:"\e011"}.glyphicon-th-list:before{content:"\e012"}.glyphicon-ok:before{content:"\e013"}.glyphicon-remove:before{content:"\e014"}.glyphicon-zoom-in:before{content:"\e015"}.glyphicon-zoom-out:before{content:"\e016"}.glyphicon-off:before{content:"\e017"}.glyphicon-signal:before{content:"\e018"}.glyphicon-cog:before{content:"\e019"}.glyphicon-trash:before{content:"\e020"}.glyphicon-home:before{content:"\e021"}.glyphicon-file:before{content:"\e022"}.glyphicon-time:before{content:"\e023"}.glyphicon-road:before{content:"\e024"}.glyphicon-download-alt:before{content:"\e025"}.glyphicon-download:before{content:"\e026"}.glyphicon-upload:before{content:"\e027"}.glyphicon-inbox:before{content:"\e028"}.glyphicon-play-circle:before{content:"\e029"}.glyphicon-repeat:before{content:"\e030"}.glyphicon-refresh:before{content:"\e031"}.glyphicon-list-alt:before{content:"\e032"}.glyphicon-lock:before{content:"\e033"}.glyphicon-flag:before{content:"\e034"}.glyphicon-headphones:before{content:"\e035"}.glyphicon-volume-off:before{content:"\e036"}.glyphicon-volume-down:before{content:"\e037"}.glyphicon-volume-up:before{content:"\e038"}.glyphicon-qrcode:before{content:"\e039"}.glyphicon-barcode:before{content:"\e040"}.glyphicon-tag:before{content:"\e041"}.glyphicon-tags:before{content:"\e042"}.glyphicon-book:before{content:"\e043"}.glyphicon-bookmark:before{content:"\e044"}.glyphicon-print:before{content:"\e045"}.glyphicon-camera:before{content:"\e046"}.glyphicon-font:before{content:"\e047"}.glyphicon-bold:before{content:"\e048"}.glyphicon-italic:before{content:"\e049"}.glyphicon-text-height:before{content:"\e050"}.glyphicon-text-width:before{content:"\e051"}.glyphicon-align-left:before{content:"\e052"}.glyphicon-align-center:before{content:"\e053"}.glyphicon-align-right:before{content:"\e054"}.glyphicon-align-justify:before{content:"\e055"}.glyphicon-list:before{content:"\e056"}.glyphicon-indent-left:before{content:"\e057"}.glyphicon-indent-right:before{content:"\e058"}.glyphicon-facetime-video:before{content:"\e059"}.glyphicon-picture:before{content:"\e060"}.glyphicon-map-marker:before{content:"\e062"}.glyphicon-adjust:before{content:"\e063"}.glyphicon-tint:before{content:"\e064"}.glyphicon-edit:before{content:"\e065"}.glyphicon-share:before{content:"\e066"}.glyphicon-check:before{content:"\e067"}.glyphicon-move:before{content:"\e068"}.glyphicon-step-backward:before{content:"\e069"}.glyphicon-fast-backward:before{content:"\e070"}.glyphicon-backward:before{content:"\e071"}.glyphicon-play:before{content:"\e072"}.glyphicon-pause:before{content:"\e073"}.glyphicon-stop:before{content:"\e074"}.glyphicon-forward:before{content:"\e075"}.glyphicon-fast-forward:before{content:"\e076"}.glyphicon-step-forward:before{content:"\e077"}.glyphicon-eject:before{content:"\e078"}.glyphicon-chevron-left:before{content:"\e079"}.glyphicon-chevron-right:before{content:"\e080"}.glyphicon-plus-sign:before{content:"\e081"}.glyphicon-minus-sign:before{content:"\e082"}.glyphicon-remove-sign:before{content:"\e083"}.glyphicon-ok-sign:before{content:"\e084"}.glyphicon-question-sign:before{content:"\e085"}.glyphicon-info-sign:before{content:"\e086"}.glyphicon-screenshot:before{content:"\e087"}.glyphicon-remove-circle:before{content:"\e088"}.glyphicon-ok-circle:before{content:"\e089"}.glyphicon-ban-circle:before{content:"\e090"}.glyphicon-arrow-left:before{content:"\e091"}.glyphicon-arrow-right:before{content:"\e092"}.glyphicon-arrow-up:before{content:"\e093"}.glyphicon-arrow-down:before{content:"\e094"}.glyphicon-share-alt:before{content:"\e095"}.glyphicon-resize-full:before{content:"\e096"}.glyphicon-resize-small:before{content:"\e097"}.glyphicon-exclamation-sign:before{content:"\e101"}.glyphicon-gift:before{content:"\e102"}.glyphicon-leaf:before{content:"\e103"}.glyphicon-fire:before{content:"\e104"}.glyphicon-eye-open:before{content:"\e105"}.glyphicon-eye-close:before{content:"\e106"}.glyphicon-warning-sign:before{content:"\e107"}.glyphicon-plane:before{content:"\e108"}.glyphicon-calendar:before{content:"\e109"}.glyphicon-random:before{content:"\e110"}.glyphicon-comment:before{content:"\e111"}.glyphicon-magnet:before{content:"\e112"}.glyphicon-chevron-up:before{content:"\e113"}.glyphicon-chevron-down:before{content:"\e114"}.glyphicon-retweet:before{content:"\e115"}.glyphicon-shopping-cart:before{content:"\e116"}.glyphicon-folder-close:before{content:"\e117"}.glyphicon-folder-open:before{content:"\e118"}.glyphicon-resize-vertical:before{content:"\e119"}.glyphicon-resize-horizontal:before{content:"\e120"}.glyphicon-hdd:before{content:"\e121"}.glyphicon-bullhorn:before{content:"\e122"}.glyphicon-bell:before{content:"\e123"}.glyphicon-certificate:before{content:"\e124"}.glyphicon-thumbs-up:before{content:"\e125"}.glyphicon-thumbs-down:before{content:"\e126"}.glyphicon-hand-right:before{content:"\e127"}.glyphicon-hand-left:before{content:"\e128"}.glyphicon-hand-up:before{content:"\e129"}.glyphicon-hand-down:before{content:"\e130"}.glyphicon-circle-arrow-right:before{content:"\e131"}.glyphicon-circle-arrow-left:before{content:"\e132"}.glyphicon-circle-arrow-up:before{content:"\e133"}.glyphicon-circle-arrow-down:before{content:"\e134"}.glyphicon-globe:before{content:"\e135"}.glyphicon-wrench:before{content:"\e136"}.glyphicon-tasks:before{content:"\e137"}.glyphicon-filter:before{content:"\e138"}.glyphicon-briefcase:before{content:"\e139"}.glyphicon-fullscreen:before{content:"\e140"}.glyphicon-dashboard:before{content:"\e141"}.glyphicon-paperclip:before{content:"\e142"}.glyphicon-heart-empty:before{content:"\e143"}.glyphicon-link:before{content:"\e144"}.glyphicon-phone:before{content:"\e145"}.glyphicon-pushpin:before{content:"\e146"}.glyphicon-usd:before{content:"\e148"}.glyphicon-gbp:before{content:"\e149"}.glyphicon-sort:before{content:"\e150"}.glyphicon-sort-by-alphabet:before{content:"\e151"}.glyphicon-sort-by-alphabet-alt:before{content:"\e152"}.glyphicon-sort-by-order:before{content:"\e153"}.glyphicon-sort-by-order-alt:before{content:"\e154"}.glyphicon-sort-by-attributes:before{content:"\e155"}.glyphicon-sort-by-attributes-alt:before{content:"\e156"}.glyphicon-unchecked:before{content:"\e157"}.glyphicon-expand:before{content:"\e158"}.glyphicon-collapse-down:before{content:"\e159"}.glyphicon-collapse-up:before{content:"\e160"}.glyphicon-log-in:before{content:"\e161"}.glyphicon-flash:before{content:"\e162"}.glyphicon-log-out:before{content:"\e163"}.glyphicon-new-window:before{content:"\e164"}.glyphicon-record:before{content:"\e165"}.glyphicon-save:before{content:"\e166"}.glyphicon-open:before{content:"\e167"}.glyphicon-saved:before{content:"\e168"}.glyphicon-import:before{content:"\e169"}.glyphicon-export:before{content:"\e170"}.glyphicon-send:before{content:"\e171"}.glyphicon-floppy-disk:before{content:"\e172"}.glyphicon-floppy-saved:before{content:"\e173"}.glyphicon-floppy-remove:before{content:"\e174"}.glyphicon-floppy-save:before{content:"\e175"}.glyphicon-floppy-open:before{content:"\e176"}.glyphicon-credit-card:before{content:"\e177"}.glyphicon-transfer:before{content:"\e178"}.glyphicon-cutlery:before{content:"\e179"}.glyphicon-header:before{content:"\e180"}.glyphicon-compressed:before{content:"\e181"}.glyphicon-earphone:before{content:"\e182"}.glyphicon-phone-alt:before{content:"\e183"}.glyphicon-tower:before{content:"\e184"}.glyphicon-stats:before{content:"\e185"}.glyphicon-sd-video:before{content:"\e186"}.glyphicon-hd-video:before{content:"\e187"}.glyphicon-subtitles:before{content:"\e188"}.glyphicon-sound-stereo:before{content:"\e189"}.glyphicon-sound-dolby:before{content:"\e190"}.glyphicon-sound-5-1:before{content:"\e191"}.glyphicon-sound-6-1:before{content:"\e192"}.glyphicon-sound-7-1:before{content:"\e193"}.glyphicon-copyright-mark:before{content:"\e194"}.glyphicon-registration-mark:before{content:"\e195"}.glyphicon-cloud-download:before{content:"\e197"}.glyphicon-cloud-upload:before{content:"\e198"}.glyphicon-tree-conifer:before{content:"\e199"}.glyphicon-tree-deciduous:before{content:"\e200"}.glyphicon-cd:before{content:"\e201"}.glyphicon-save-file:before{content:"\e202"}.glyphicon-open-file:before{content:"\e203"}.glyphicon-level-up:before{content:"\e204"}.glyphicon-copy:before{content:"\e205"}.glyphicon-paste:before{content:"\e206"}.glyphicon-alert:before{content:"\e209"}.glyphicon-equalizer:before{content:"\e210"}.glyphicon-king:before{content:"\e211"}.glyphicon-queen:before{content:"\e212"}.glyphicon-pawn:before{content:"\e213"}.glyphicon-bishop:before{content:"\e214"}.glyphicon-knight:before{content:"\e215"}.glyphicon-baby-formula:before{content:"\e216"}.glyphicon-tent:before{content:"\26fa"}.glyphicon-blackboard:before{content:"\e218"}.glyphicon-bed:before{content:"\e219"}.glyphicon-apple:before{content:"\f8ff"}.glyphicon-erase:before{content:"\e221"}.glyphicon-hourglass:before{content:"\231b"}.glyphicon-lamp:before{content:"\e223"}.glyphicon-duplicate:before{content:"\e224"}.glyphicon-piggy-bank:before{content:"\e225"}.glyphicon-scissors:before{content:"\e226"}.glyphicon-bitcoin:before{content:"\e227"}.glyphicon-btc:before{content:"\e227"}.glyphicon-xbt:before{content:"\e227"}.glyphicon-yen:before{content:"\00a5"}.glyphicon-jpy:before{content:"\00a5"}.glyphicon-ruble:before{content:"\20bd"}.glyphicon-rub:before{content:"\20bd"}.glyphicon-scale:before{content:"\e230"}.glyphicon-ice-lolly:before{content:"\e231"}.glyphicon-ice-lolly-tasted:before{content:"\e232"}.glyphicon-education:before{content:"\e233"}.glyphicon-option-horizontal:before{content:"\e234"}.glyphicon-option-vertical:before{content:"\e235"}.glyphicon-menu-hamburger:before{content:"\e236"}.glyphicon-modal-window:before{content:"\e237"}.glyphicon-oil:before{content:"\e238"}.glyphicon-grain:before{content:"\e239"}.glyphicon-sunglasses:before{content:"\e240"}.glyphicon-text-size:before{content:"\e241"}.glyphicon-text-color:before{content:"\e242"}.glyphicon-text-background:before{content:"\e243"}.glyphicon-object-align-top:before{content:"\e244"}.glyphicon-object-align-bottom:before{content:"\e245"}.glyphicon-object-align-horizontal:before{content:"\e246"}.glyphicon-object-align-left:before{content:"\e247"}.glyphicon-object-align-vertical:before{content:"\e248"}.glyphicon-object-align-right:before{content:"\e249"}.glyphicon-triangle-right:before{content:"\e250"}.glyphicon-triangle-left:before{content:"\e251"}.glyphicon-triangle-bottom:before{content:"\e252"}.glyphicon-triangle-top:before{content:"\e253"}.glyphicon-console:before{content:"\e254"}.glyphicon-superscript:before{content:"\e255"}.glyphicon-subscript:before{content:"\e256"}.glyphicon-menu-left:before{content:"\e257"}.glyphicon-menu-right:before{content:"\e258"}.glyphicon-menu-down:before{content:"\e259"}.glyphicon-menu-up:before{content:"\e260"}*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}:after,:before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}html{font-size:10px;-webkit-tap-highlight-color:rgba(0,0,0,0)}body{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:1.42857143;color:#333;background-color:#fff}button,input,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit}a{color:#337ab7;text-decoration:none}a:focus,a:hover{color:#23527c;text-decoration:underline}a:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}figure{margin:0}img{vertical-align:middle}.carousel-inner>.item>a>img,.carousel-inner>.item>img,.img-responsive,.thumbnail a>img,.thumbnail>img{display:block;max-width:100%;height:auto}.img-rounded{border-radius:6px}.img-thumbnail{display:inline-block;max-width:100%;height:auto;padding:4px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.img-circle{border-radius:50%}hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}[role=button]{cursor:pointer}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{font-family:inherit;font-weight:500;line-height:1.1;color:inherit}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-weight:400;line-height:1;color:#777}.h1,.h2,.h3,h1,h2,h3{margin-top:20px;margin-bottom:10px}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small{font-size:65%}.h4,.h5,.h6,h4,h5,h6{margin-top:10px;margin-bottom:10px}.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-size:75%}.h1,h1{font-size:36px}.h2,h2{font-size:30px}.h3,h3{font-size:24px}.h4,h4{font-size:18px}.h5,h5{font-size:14px}.h6,h6{font-size:12px}p{margin:0 0 10px}.lead{margin-bottom:20px;font-size:16px;font-weight:300;line-height:1.4}@media (min-width:768px){.lead{font-size:21px}}.small,small{font-size:85%}.mark,mark{padding:.2em;background-color:#fcf8e3}.text-left{text-align:left}.text-right{text-align:right}.text-center{text-align:center}.text-justify{text-align:justify}.text-nowrap{white-space:nowrap}.text-lowercase{text-transform:lowercase}.text-uppercase{text-transform:uppercase}.text-capitalize{text-transform:capitalize}.text-muted{color:#777}.text-primary{color:#337ab7}a.text-primary:focus,a.text-primary:hover{color:#286090}.text-success{color:#3c763d}a.text-success:focus,a.text-success:hover{color:#2b542c}.text-info{color:#31708f}a.text-info:focus,a.text-info:hover{color:#245269}.text-warning{color:#8a6d3b}a.text-warning:focus,a.text-warning:hover{color:#66512c}.text-danger{color:#a94442}a.text-danger:focus,a.text-danger:hover{color:#843534}.bg-primary{color:#fff;background-color:#337ab7}a.bg-primary:focus,a.bg-primary:hover{background-color:#286090}.bg-success{background-color:#dff0d8}a.bg-success:focus,a.bg-success:hover{background-color:#c1e2b3}.bg-info{background-color:#d9edf7}a.bg-info:focus,a.bg-info:hover{background-color:#afd9ee}.bg-warning{background-color:#fcf8e3}a.bg-warning:focus,a.bg-warning:hover{background-color:#f7ecb5}.bg-danger{background-color:#f2dede}a.bg-danger:focus,a.bg-danger:hover{background-color:#e4b9b9}.page-header{padding-bottom:9px;margin:40px 0 20px;border-bottom:1px solid #eee}ol,ul{margin-top:0;margin-bottom:10px}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}.list-unstyled{padding-left:0;list-style:none}.list-inline{padding-left:0;margin-left:-5px;list-style:none}.list-inline>li{display:inline-block;padding-right:5px;padding-left:5px}dl{margin-top:0;margin-bottom:20px}dd,dt{line-height:1.42857143}dt{font-weight:700}dd{margin-left:0}@media (min-width:768px){.dl-horizontal dt{float:left;width:160px;overflow:hidden;clear:left;text-align:right;text-overflow:ellipsis;white-space:nowrap}.dl-horizontal dd{margin-left:180px}}abbr[data-original-title],abbr[title]{cursor:help;border-bottom:1px dotted #777}.initialism{font-size:90%;text-transform:uppercase}blockquote{padding:10px 20px;margin:0 0 20px;font-size:17.5px;border-left:5px solid #eee}blockquote ol:last-child,blockquote p:last-child,blockquote ul:last-child{margin-bottom:0}blockquote .small,blockquote footer,blockquote small{display:block;font-size:80%;line-height:1.42857143;color:#777}blockquote .small:before,blockquote footer:before,blockquote small:before{content:'\2014 \00A0'}.blockquote-reverse,blockquote.pull-right{padding-right:15px;padding-left:0;text-align:right;border-right:5px solid #eee;border-left:0}.blockquote-reverse .small:before,.blockquote-reverse footer:before,.blockquote-reverse small:before,blockquote.pull-right .small:before,blockquote.pull-right footer:before,blockquote.pull-right small:before{content:''}.blockquote-reverse .small:after,.blockquote-reverse footer:after,.blockquote-reverse small:after,blockquote.pull-right .small:after,blockquote.pull-right footer:after,blockquote.pull-right small:after{content:'\00A0 \2014'}address{margin-bottom:20px;font-style:normal;line-height:1.42857143}code,kbd,pre,samp{font-family:Menlo,Monaco,Consolas,"Courier New",monospace}code{padding:2px 4px;font-size:90%;color:#c7254e;background-color:#f9f2f4;border-radius:4px}kbd{padding:2px 4px;font-size:90%;color:#fff;background-color:#333;border-radius:3px;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.25);box-shadow:inset 0 -1px 0 rgba(0,0,0,.25)}kbd kbd{padding:0;font-size:100%;font-weight:700;-webkit-box-shadow:none;box-shadow:none}pre{display:block;padding:9.5px;margin:0 0 10px;font-size:13px;line-height:1.42857143;color:#333;word-break:break-all;word-wrap:break-word;background-color:#f5f5f5;border:1px solid #ccc;border-radius:4px}pre code{padding:0;font-size:inherit;color:inherit;white-space:pre-wrap;background-color:transparent;border-radius:0}.pre-scrollable{max-height:340px;overflow-y:scroll}.container{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media (min-width:768px){.container{width:750px}}@media (min-width:992px){.container{width:970px}}@media (min-width:1200px){.container{width:1170px}}.container-fluid{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}.row{margin-right:-15px;margin-left:-15px}.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{position:relative;min-height:1px;padding-right:15px;padding-left:15px}.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{float:left}.col-xs-12{width:100%}.col-xs-11{width:91.66666667%}.col-xs-10{width:83.33333333%}.col-xs-9{width:75%}.col-xs-8{width:66.66666667%}.col-xs-7{width:58.33333333%}.col-xs-6{width:50%}.col-xs-5{width:41.66666667%}.col-xs-4{width:33.33333333%}.col-xs-3{width:25%}.col-xs-2{width:16.66666667%}.col-xs-1{width:8.33333333%}.col-xs-pull-12{right:100%}.col-xs-pull-11{right:91.66666667%}.col-xs-pull-10{right:83.33333333%}.col-xs-pull-9{right:75%}.col-xs-pull-8{right:66.66666667%}.col-xs-pull-7{right:58.33333333%}.col-xs-pull-6{right:50%}.col-xs-pull-5{right:41.66666667%}.col-xs-pull-4{right:33.33333333%}.col-xs-pull-3{right:25%}.col-xs-pull-2{right:16.66666667%}.col-xs-pull-1{right:8.33333333%}.col-xs-pull-0{right:auto}.col-xs-push-12{left:100%}.col-xs-push-11{left:91.66666667%}.col-xs-push-10{left:83.33333333%}.col-xs-push-9{left:75%}.col-xs-push-8{left:66.66666667%}.col-xs-push-7{left:58.33333333%}.col-xs-push-6{left:50%}.col-xs-push-5{left:41.66666667%}.col-xs-push-4{left:33.33333333%}.col-xs-push-3{left:25%}.col-xs-push-2{left:16.66666667%}.col-xs-push-1{left:8.33333333%}.col-xs-push-0{left:auto}.col-xs-offset-12{margin-left:100%}.col-xs-offset-11{margin-left:91.66666667%}.col-xs-offset-10{margin-left:83.33333333%}.col-xs-offset-9{margin-left:75%}.col-xs-offset-8{margin-left:66.66666667%}.col-xs-offset-7{margin-left:58.33333333%}.col-xs-offset-6{margin-left:50%}.col-xs-offset-5{margin-left:41.66666667%}.col-xs-offset-4{margin-left:33.33333333%}.col-xs-offset-3{margin-left:25%}.col-xs-offset-2{margin-left:16.66666667%}.col-xs-offset-1{margin-left:8.33333333%}.col-xs-offset-0{margin-left:0}@media (min-width:768px){.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9{float:left}.col-sm-12{width:100%}.col-sm-11{width:91.66666667%}.col-sm-10{width:83.33333333%}.col-sm-9{width:75%}.col-sm-8{width:66.66666667%}.col-sm-7{width:58.33333333%}.col-sm-6{width:50%}.col-sm-5{width:41.66666667%}.col-sm-4{width:33.33333333%}.col-sm-3{width:25%}.col-sm-2{width:16.66666667%}.col-sm-1{width:8.33333333%}.col-sm-pull-12{right:100%}.col-sm-pull-11{right:91.66666667%}.col-sm-pull-10{right:83.33333333%}.col-sm-pull-9{right:75%}.col-sm-pull-8{right:66.66666667%}.col-sm-pull-7{right:58.33333333%}.col-sm-pull-6{right:50%}.col-sm-pull-5{right:41.66666667%}.col-sm-pull-4{right:33.33333333%}.col-sm-pull-3{right:25%}.col-sm-pull-2{right:16.66666667%}.col-sm-pull-1{right:8.33333333%}.col-sm-pull-0{right:auto}.col-sm-push-12{left:100%}.col-sm-push-11{left:91.66666667%}.col-sm-push-10{left:83.33333333%}.col-sm-push-9{left:75%}.col-sm-push-8{left:66.66666667%}.col-sm-push-7{left:58.33333333%}.col-sm-push-6{left:50%}.col-sm-push-5{left:41.66666667%}.col-sm-push-4{left:33.33333333%}.col-sm-push-3{left:25%}.col-sm-push-2{left:16.66666667%}.col-sm-push-1{left:8.33333333%}.col-sm-push-0{left:auto}.col-sm-offset-12{margin-left:100%}.col-sm-offset-11{margin-left:91.66666667%}.col-sm-offset-10{margin-left:83.33333333%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-8{margin-left:66.66666667%}.col-sm-offset-7{margin-left:58.33333333%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-5{margin-left:41.66666667%}.col-sm-offset-4{margin-left:33.33333333%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-2{margin-left:16.66666667%}.col-sm-offset-1{margin-left:8.33333333%}.col-sm-offset-0{margin-left:0}}@media (min-width:992px){.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9{float:left}.col-md-12{width:100%}.col-md-11{width:91.66666667%}.col-md-10{width:83.33333333%}.col-md-9{width:75%}.col-md-8{width:66.66666667%}.col-md-7{width:58.33333333%}.col-md-6{width:50%}.col-md-5{width:41.66666667%}.col-md-4{width:33.33333333%}.col-md-3{width:25%}.col-md-2{width:16.66666667%}.col-md-1{width:8.33333333%}.col-md-pull-12{right:100%}.col-md-pull-11{right:91.66666667%}.col-md-pull-10{right:83.33333333%}.col-md-pull-9{right:75%}.col-md-pull-8{right:66.66666667%}.col-md-pull-7{right:58.33333333%}.col-md-pull-6{right:50%}.col-md-pull-5{right:41.66666667%}.col-md-pull-4{right:33.33333333%}.col-md-pull-3{right:25%}.col-md-pull-2{right:16.66666667%}.col-md-pull-1{right:8.33333333%}.col-md-pull-0{right:auto}.col-md-push-12{left:100%}.col-md-push-11{left:91.66666667%}.col-md-push-10{left:83.33333333%}.col-md-push-9{left:75%}.col-md-push-8{left:66.66666667%}.col-md-push-7{left:58.33333333%}.col-md-push-6{left:50%}.col-md-push-5{left:41.66666667%}.col-md-push-4{left:33.33333333%}.col-md-push-3{left:25%}.col-md-push-2{left:16.66666667%}.col-md-push-1{left:8.33333333%}.col-md-push-0{left:auto}.col-md-offset-12{margin-left:100%}.col-md-offset-11{margin-left:91.66666667%}.col-md-offset-10{margin-left:83.33333333%}.col-md-offset-9{margin-left:75%}.col-md-offset-8{margin-left:66.66666667%}.col-md-offset-7{margin-left:58.33333333%}.col-md-offset-6{margin-left:50%}.col-md-offset-5{margin-left:41.66666667%}.col-md-offset-4{margin-left:33.33333333%}.col-md-offset-3{margin-left:25%}.col-md-offset-2{margin-left:16.66666667%}.col-md-offset-1{margin-left:8.33333333%}.col-md-offset-0{margin-left:0}}@media (min-width:1200px){.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9{float:left}.col-lg-12{width:100%}.col-lg-11{width:91.66666667%}.col-lg-10{width:83.33333333%}.col-lg-9{width:75%}.col-lg-8{width:66.66666667%}.col-lg-7{width:58.33333333%}.col-lg-6{width:50%}.col-lg-5{width:41.66666667%}.col-lg-4{width:33.33333333%}.col-lg-3{width:25%}.col-lg-2{width:16.66666667%}.col-lg-1{width:8.33333333%}.col-lg-pull-12{right:100%}.col-lg-pull-11{right:91.66666667%}.col-lg-pull-10{right:83.33333333%}.col-lg-pull-9{right:75%}.col-lg-pull-8{right:66.66666667%}.col-lg-pull-7{right:58.33333333%}.col-lg-pull-6{right:50%}.col-lg-pull-5{right:41.66666667%}.col-lg-pull-4{right:33.33333333%}.col-lg-pull-3{right:25%}.col-lg-pull-2{right:16.66666667%}.col-lg-pull-1{right:8.33333333%}.col-lg-pull-0{right:auto}.col-lg-push-12{left:100%}.col-lg-push-11{left:91.66666667%}.col-lg-push-10{left:83.33333333%}.col-lg-push-9{left:75%}.col-lg-push-8{left:66.66666667%}.col-lg-push-7{left:58.33333333%}.col-lg-push-6{left:50%}.col-lg-push-5{left:41.66666667%}.col-lg-push-4{left:33.33333333%}.col-lg-push-3{left:25%}.col-lg-push-2{left:16.66666667%}.col-lg-push-1{left:8.33333333%}.col-lg-push-0{left:auto}.col-lg-offset-12{margin-left:100%}.col-lg-offset-11{margin-left:91.66666667%}.col-lg-offset-10{margin-left:83.33333333%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-8{margin-left:66.66666667%}.col-lg-offset-7{margin-left:58.33333333%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-5{margin-left:41.66666667%}.col-lg-offset-4{margin-left:33.33333333%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-2{margin-left:16.66666667%}.col-lg-offset-1{margin-left:8.33333333%}.col-lg-offset-0{margin-left:0}}table{background-color:transparent}caption{padding-top:8px;padding-bottom:8px;color:#777;text-align:left}th{text-align:left}.table{width:100%;max-width:100%;margin-bottom:20px}.table>tbody>tr>td,.table>tbody>tr>th,.table>tfoot>tr>td,.table>tfoot>tr>th,.table>thead>tr>td,.table>thead>tr>th{padding:8px;line-height:1.42857143;vertical-align:top;border-top:1px solid #ddd}.table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd}.table>caption+thead>tr:first-child>td,.table>caption+thead>tr:first-child>th,.table>colgroup+thead>tr:first-child>td,.table>colgroup+thead>tr:first-child>th,.table>thead:first-child>tr:first-child>td,.table>thead:first-child>tr:first-child>th{border-top:0}.table>tbody+tbody{border-top:2px solid #ddd}.table .table{background-color:#fff}.table-condensed>tbody>tr>td,.table-condensed>tbody>tr>th,.table-condensed>tfoot>tr>td,.table-condensed>tfoot>tr>th,.table-condensed>thead>tr>td,.table-condensed>thead>tr>th{padding:5px}.table-bordered{border:1px solid #ddd}.table-bordered>tbody>tr>td,.table-bordered>tbody>tr>th,.table-bordered>tfoot>tr>td,.table-bordered>tfoot>tr>th,.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border:1px solid #ddd}.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border-bottom-width:2px}.table-striped>tbody>tr:nth-of-type(odd){background-color:#f9f9f9}.table-hover>tbody>tr:hover{background-color:#f5f5f5}table col[class*=col-]{position:static;display:table-column;float:none}table td[class*=col-],table th[class*=col-]{position:static;display:table-cell;float:none}.table>tbody>tr.active>td,.table>tbody>tr.active>th,.table>tbody>tr>td.active,.table>tbody>tr>th.active,.table>tfoot>tr.active>td,.table>tfoot>tr.active>th,.table>tfoot>tr>td.active,.table>tfoot>tr>th.active,.table>thead>tr.active>td,.table>thead>tr.active>th,.table>thead>tr>td.active,.table>thead>tr>th.active{background-color:#f5f5f5}.table-hover>tbody>tr.active:hover>td,.table-hover>tbody>tr.active:hover>th,.table-hover>tbody>tr:hover>.active,.table-hover>tbody>tr>td.active:hover,.table-hover>tbody>tr>th.active:hover{background-color:#e8e8e8}.table>tbody>tr.success>td,.table>tbody>tr.success>th,.table>tbody>tr>td.success,.table>tbody>tr>th.success,.table>tfoot>tr.success>td,.table>tfoot>tr.success>th,.table>tfoot>tr>td.success,.table>tfoot>tr>th.success,.table>thead>tr.success>td,.table>thead>tr.success>th,.table>thead>tr>td.success,.table>thead>tr>th.success{background-color:#dff0d8}.table-hover>tbody>tr.success:hover>td,.table-hover>tbody>tr.success:hover>th,.table-hover>tbody>tr:hover>.success,.table-hover>tbody>tr>td.success:hover,.table-hover>tbody>tr>th.success:hover{background-color:#d0e9c6}.table>tbody>tr.info>td,.table>tbody>tr.info>th,.table>tbody>tr>td.info,.table>tbody>tr>th.info,.table>tfoot>tr.info>td,.table>tfoot>tr.info>th,.table>tfoot>tr>td.info,.table>tfoot>tr>th.info,.table>thead>tr.info>td,.table>thead>tr.info>th,.table>thead>tr>td.info,.table>thead>tr>th.info{background-color:#d9edf7}.table-hover>tbody>tr.info:hover>td,.table-hover>tbody>tr.info:hover>th,.table-hover>tbody>tr:hover>.info,.table-hover>tbody>tr>td.info:hover,.table-hover>tbody>tr>th.info:hover{background-color:#c4e3f3}.table>tbody>tr.warning>td,.table>tbody>tr.warning>th,.table>tbody>tr>td.warning,.table>tbody>tr>th.warning,.table>tfoot>tr.warning>td,.table>tfoot>tr.warning>th,.table>tfoot>tr>td.warning,.table>tfoot>tr>th.warning,.table>thead>tr.warning>td,.table>thead>tr.warning>th,.table>thead>tr>td.warning,.table>thead>tr>th.warning{background-color:#fcf8e3}.table-hover>tbody>tr.warning:hover>td,.table-hover>tbody>tr.warning:hover>th,.table-hover>tbody>tr:hover>.warning,.table-hover>tbody>tr>td.warning:hover,.table-hover>tbody>tr>th.warning:hover{background-color:#faf2cc}.table>tbody>tr.danger>td,.table>tbody>tr.danger>th,.table>tbody>tr>td.danger,.table>tbody>tr>th.danger,.table>tfoot>tr.danger>td,.table>tfoot>tr.danger>th,.table>tfoot>tr>td.danger,.table>tfoot>tr>th.danger,.table>thead>tr.danger>td,.table>thead>tr.danger>th,.table>thead>tr>td.danger,.table>thead>tr>th.danger{background-color:#f2dede}.table-hover>tbody>tr.danger:hover>td,.table-hover>tbody>tr.danger:hover>th,.table-hover>tbody>tr:hover>.danger,.table-hover>tbody>tr>td.danger:hover,.table-hover>tbody>tr>th.danger:hover{background-color:#ebcccc}.table-responsive{min-height:.01%;overflow-x:auto}@media screen and (max-width:767px){.table-responsive{width:100%;margin-bottom:15px;overflow-y:hidden;-ms-overflow-style:-ms-autohiding-scrollbar;border:1px solid #ddd}.table-responsive>.table{margin-bottom:0}.table-responsive>.table>tbody>tr>td,.table-responsive>.table>tbody>tr>th,.table-responsive>.table>tfoot>tr>td,.table-responsive>.table>tfoot>tr>th,.table-responsive>.table>thead>tr>td,.table-responsive>.table>thead>tr>th{white-space:nowrap}.table-responsive>.table-bordered{border:0}.table-responsive>.table-bordered>tbody>tr>td:first-child,.table-responsive>.table-bordered>tbody>tr>th:first-child,.table-responsive>.table-bordered>tfoot>tr>td:first-child,.table-responsive>.table-bordered>tfoot>tr>th:first-child,.table-responsive>.table-bordered>thead>tr>td:first-child,.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.table-responsive>.table-bordered>tbody>tr>td:last-child,.table-responsive>.table-bordered>tbody>tr>th:last-child,.table-responsive>.table-bordered>tfoot>tr>td:last-child,.table-responsive>.table-bordered>tfoot>tr>th:last-child,.table-responsive>.table-bordered>thead>tr>td:last-child,.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.table-responsive>.table-bordered>tbody>tr:last-child>td,.table-responsive>.table-bordered>tbody>tr:last-child>th,.table-responsive>.table-bordered>tfoot>tr:last-child>td,.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}}fieldset{min-width:0;padding:0;margin:0;border:0}legend{display:block;width:100%;padding:0;margin-bottom:20px;font-size:21px;line-height:inherit;color:#333;border:0;border-bottom:1px solid #e5e5e5}label{display:inline-block;max-width:100%;margin-bottom:5px;font-weight:700}input[type=search]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}input[type=checkbox],input[type=radio]{margin:4px 0 0;margin-top:1px\9;line-height:normal}input[type=file]{display:block}input[type=range]{display:block;width:100%}select[multiple],select[size]{height:auto}input[type=file]:focus,input[type=checkbox]:focus,input[type=radio]:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}output{display:block;padding-top:7px;font-size:14px;line-height:1.42857143;color:#555}.form-control{display:block;width:100%;height:34px;padding:6px 12px;font-size:14px;line-height:1.42857143;color:#555;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;-o-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.form-control:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.form-control::-moz-placeholder{color:#999;opacity:1}.form-control:-ms-input-placeholder{color:#999}.form-control::-webkit-input-placeholder{color:#999}.form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control{background-color:#eee;opacity:1}.form-control[disabled],fieldset[disabled] .form-control{cursor:not-allowed}textarea.form-control{height:auto}input[type=search]{-webkit-appearance:none}@media screen and (-webkit-min-device-pixel-ratio:0){input[type=date].form-control,input[type=time].form-control,input[type=datetime-local].form-control,input[type=month].form-control{line-height:34px}.input-group-sm input[type=date],.input-group-sm input[type=time],.input-group-sm input[type=datetime-local],.input-group-sm input[type=month],input[type=date].input-sm,input[type=time].input-sm,input[type=datetime-local].input-sm,input[type=month].input-sm{line-height:30px}.input-group-lg input[type=date],.input-group-lg input[type=time],.input-group-lg input[type=datetime-local],.input-group-lg input[type=month],input[type=date].input-lg,input[type=time].input-lg,input[type=datetime-local].input-lg,input[type=month].input-lg{line-height:46px}}.form-group{margin-bottom:15px}.checkbox,.radio{position:relative;display:block;margin-top:10px;margin-bottom:10px}.checkbox label,.radio label{min-height:20px;padding-left:20px;margin-bottom:0;font-weight:400;cursor:pointer}.checkbox input[type=checkbox],.checkbox-inline input[type=checkbox],.radio input[type=radio],.radio-inline input[type=radio]{position:absolute;margin-top:4px\9;margin-left:-20px}.checkbox+.checkbox,.radio+.radio{margin-top:-5px}.checkbox-inline,.radio-inline{position:relative;display:inline-block;padding-left:20px;margin-bottom:0;font-weight:400;vertical-align:middle;cursor:pointer}.checkbox-inline+.checkbox-inline,.radio-inline+.radio-inline{margin-top:0;margin-left:10px}fieldset[disabled] input[type=checkbox],fieldset[disabled] input[type=radio],input[type=checkbox].disabled,input[type=checkbox][disabled],input[type=radio].disabled,input[type=radio][disabled]{cursor:not-allowed}.checkbox-inline.disabled,.radio-inline.disabled,fieldset[disabled] .checkbox-inline,fieldset[disabled] .radio-inline{cursor:not-allowed}.checkbox.disabled label,.radio.disabled label,fieldset[disabled] .checkbox label,fieldset[disabled] .radio label{cursor:not-allowed}.form-control-static{min-height:34px;padding-top:7px;padding-bottom:7px;margin-bottom:0}.form-control-static.input-lg,.form-control-static.input-sm{padding-right:0;padding-left:0}.input-sm{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-sm{height:30px;line-height:30px}select[multiple].input-sm,textarea.input-sm{height:auto}.form-group-sm .form-control{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.form-group-sm select.form-control{height:30px;line-height:30px}.form-group-sm select[multiple].form-control,.form-group-sm textarea.form-control{height:auto}.form-group-sm .form-control-static{height:30px;min-height:32px;padding:6px 10px;font-size:12px;line-height:1.5}.input-lg{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}select.input-lg{height:46px;line-height:46px}select[multiple].input-lg,textarea.input-lg{height:auto}.form-group-lg .form-control{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}.form-group-lg select.form-control{height:46px;line-height:46px}.form-group-lg select[multiple].form-control,.form-group-lg textarea.form-control{height:auto}.form-group-lg .form-control-static{height:46px;min-height:38px;padding:11px 16px;font-size:18px;line-height:1.3333333}.has-feedback{position:relative}.has-feedback .form-control{padding-right:42.5px}.form-control-feedback{position:absolute;top:0;right:0;z-index:2;display:block;width:34px;height:34px;line-height:34px;text-align:center;pointer-events:none}.form-group-lg .form-control+.form-control-feedback,.input-group-lg+.form-control-feedback,.input-lg+.form-control-feedback{width:46px;height:46px;line-height:46px}.form-group-sm .form-control+.form-control-feedback,.input-group-sm+.form-control-feedback,.input-sm+.form-control-feedback{width:30px;height:30px;line-height:30px}.has-success .checkbox,.has-success .checkbox-inline,.has-success .control-label,.has-success .help-block,.has-success .radio,.has-success .radio-inline,.has-success.checkbox label,.has-success.checkbox-inline label,.has-success.radio label,.has-success.radio-inline label{color:#3c763d}.has-success .form-control{border-color:#3c763d;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-success .form-control:focus{border-color:#2b542c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168}.has-success .input-group-addon{color:#3c763d;background-color:#dff0d8;border-color:#3c763d}.has-success .form-control-feedback{color:#3c763d}.has-warning .checkbox,.has-warning .checkbox-inline,.has-warning .control-label,.has-warning .help-block,.has-warning .radio,.has-warning .radio-inline,.has-warning.checkbox label,.has-warning.checkbox-inline label,.has-warning.radio label,.has-warning.radio-inline label{color:#8a6d3b}.has-warning .form-control{border-color:#8a6d3b;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-warning .form-control:focus{border-color:#66512c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b}.has-warning .input-group-addon{color:#8a6d3b;background-color:#fcf8e3;border-color:#8a6d3b}.has-warning .form-control-feedback{color:#8a6d3b}.has-error .checkbox,.has-error .checkbox-inline,.has-error .control-label,.has-error .help-block,.has-error .radio,.has-error .radio-inline,.has-error.checkbox label,.has-error.checkbox-inline label,.has-error.radio label,.has-error.radio-inline label{color:#a94442}.has-error .form-control{border-color:#a94442;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-error .form-control:focus{border-color:#843534;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483}.has-error .input-group-addon{color:#a94442;background-color:#f2dede;border-color:#a94442}.has-error .form-control-feedback{color:#a94442}.has-feedback label~.form-control-feedback{top:25px}.has-feedback label.sr-only~.form-control-feedback{top:0}.help-block{display:block;margin-top:5px;margin-bottom:10px;color:#737373}@media (min-width:768px){.form-inline .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.form-inline .form-control{display:inline-block;width:auto;vertical-align:middle}.form-inline .form-control-static{display:inline-block}.form-inline .input-group{display:inline-table;vertical-align:middle}.form-inline .input-group .form-control,.form-inline .input-group .input-group-addon,.form-inline .input-group .input-group-btn{width:auto}.form-inline .input-group>.form-control{width:100%}.form-inline .control-label{margin-bottom:0;vertical-align:middle}.form-inline .checkbox,.form-inline .radio{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.form-inline .checkbox label,.form-inline .radio label{padding-left:0}.form-inline .checkbox input[type=checkbox],.form-inline .radio input[type=radio]{position:relative;margin-left:0}.form-inline .has-feedback .form-control-feedback{top:0}}.form-horizontal .checkbox,.form-horizontal .checkbox-inline,.form-horizontal .radio,.form-horizontal .radio-inline{padding-top:7px;margin-top:0;margin-bottom:0}.form-horizontal .checkbox,.form-horizontal .radio{min-height:27px}.form-horizontal .form-group{margin-right:-15px;margin-left:-15px}@media (min-width:768px){.form-horizontal .control-label{padding-top:7px;margin-bottom:0;text-align:right}}.form-horizontal .has-feedback .form-control-feedback{right:15px}@media (min-width:768px){.form-horizontal .form-group-lg .control-label{padding-top:14.33px;font-size:18px}}@media (min-width:768px){.form-horizontal .form-group-sm .control-label{padding-top:6px;font-size:12px}}.btn{display:inline-block;padding:6px 12px;margin-bottom:0;font-size:14px;font-weight:400;line-height:1.42857143;text-align:center;white-space:nowrap;vertical-align:middle;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-image:none;border:1px solid transparent;border-radius:4px}.btn.active.focus,.btn.active:focus,.btn.focus,.btn:active.focus,.btn:active:focus,.btn:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.btn.focus,.btn:focus,.btn:hover{color:#333;text-decoration:none}.btn.active,.btn:active{background-image:none;outline:0;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn.disabled,.btn[disabled],fieldset[disabled] .btn{cursor:not-allowed;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none;opacity:.65}a.btn.disabled,fieldset[disabled] a.btn{pointer-events:none}.btn-default{color:#333;background-color:#fff;border-color:#ccc}.btn-default.focus,.btn-default:focus{color:#333;background-color:#e6e6e6;border-color:#8c8c8c}.btn-default:hover{color:#333;background-color:#e6e6e6;border-color:#adadad}.btn-default.active,.btn-default:active,.open>.dropdown-toggle.btn-default{color:#333;background-color:#e6e6e6;border-color:#adadad}.btn-default.active.focus,.btn-default.active:focus,.btn-default.active:hover,.btn-default:active.focus,.btn-default:active:focus,.btn-default:active:hover,.open>.dropdown-toggle.btn-default.focus,.open>.dropdown-toggle.btn-default:focus,.open>.dropdown-toggle.btn-default:hover{color:#333;background-color:#d4d4d4;border-color:#8c8c8c}.btn-default.active,.btn-default:active,.open>.dropdown-toggle.btn-default{background-image:none}.btn-default.disabled,.btn-default.disabled.active,.btn-default.disabled.focus,.btn-default.disabled:active,.btn-default.disabled:focus,.btn-default.disabled:hover,.btn-default[disabled],.btn-default[disabled].active,.btn-default[disabled].focus,.btn-default[disabled]:active,.btn-default[disabled]:focus,.btn-default[disabled]:hover,fieldset[disabled] .btn-default,fieldset[disabled] .btn-default.active,fieldset[disabled] .btn-default.focus,fieldset[disabled] .btn-default:active,fieldset[disabled] .btn-default:focus,fieldset[disabled] .btn-default:hover{background-color:#fff;border-color:#ccc}.btn-default .badge{color:#fff;background-color:#333}.btn-primary{color:#fff;background-color:#337ab7;border-color:#2e6da4}.btn-primary.focus,.btn-primary:focus{color:#fff;background-color:#286090;border-color:#122b40}.btn-primary:hover{color:#fff;background-color:#286090;border-color:#204d74}.btn-primary.active,.btn-primary:active,.open>.dropdown-toggle.btn-primary{color:#fff;background-color:#286090;border-color:#204d74}.btn-primary.active.focus,.btn-primary.active:focus,.btn-primary.active:hover,.btn-primary:active.focus,.btn-primary:active:focus,.btn-primary:active:hover,.open>.dropdown-toggle.btn-primary.focus,.open>.dropdown-toggle.btn-primary:focus,.open>.dropdown-toggle.btn-primary:hover{color:#fff;background-color:#204d74;border-color:#122b40}.btn-primary.active,.btn-primary:active,.open>.dropdown-toggle.btn-primary{background-image:none}.btn-primary.disabled,.btn-primary.disabled.active,.btn-primary.disabled.focus,.btn-primary.disabled:active,.btn-primary.disabled:focus,.btn-primary.disabled:hover,.btn-primary[disabled],.btn-primary[disabled].active,.btn-primary[disabled].focus,.btn-primary[disabled]:active,.btn-primary[disabled]:focus,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary,fieldset[disabled] .btn-primary.active,fieldset[disabled] .btn-primary.focus,fieldset[disabled] .btn-primary:active,fieldset[disabled] .btn-primary:focus,fieldset[disabled] .btn-primary:hover{background-color:#337ab7;border-color:#2e6da4}.btn-primary .badge{color:#337ab7;background-color:#fff}.btn-success{color:#fff;background-color:#5cb85c;border-color:#4cae4c}.btn-success.focus,.btn-success:focus{color:#fff;background-color:#449d44;border-color:#255625}.btn-success:hover{color:#fff;background-color:#449d44;border-color:#398439}.btn-success.active,.btn-success:active,.open>.dropdown-toggle.btn-success{color:#fff;background-color:#449d44;border-color:#398439}.btn-success.active.focus,.btn-success.active:focus,.btn-success.active:hover,.btn-success:active.focus,.btn-success:active:focus,.btn-success:active:hover,.open>.dropdown-toggle.btn-success.focus,.open>.dropdown-toggle.btn-success:focus,.open>.dropdown-toggle.btn-success:hover{color:#fff;background-color:#398439;border-color:#255625}.btn-success.active,.btn-success:active,.open>.dropdown-toggle.btn-success{background-image:none}.btn-success.disabled,.btn-success.disabled.active,.btn-success.disabled.focus,.btn-success.disabled:active,.btn-success.disabled:focus,.btn-success.disabled:hover,.btn-success[disabled],.btn-success[disabled].active,.btn-success[disabled].focus,.btn-success[disabled]:active,.btn-success[disabled]:focus,.btn-success[disabled]:hover,fieldset[disabled] .btn-success,fieldset[disabled] .btn-success.active,fieldset[disabled] .btn-success.focus,fieldset[disabled] .btn-success:active,fieldset[disabled] .btn-success:focus,fieldset[disabled] .btn-success:hover{background-color:#5cb85c;border-color:#4cae4c}.btn-success .badge{color:#5cb85c;background-color:#fff}.btn-info{color:#fff;background-color:#5bc0de;border-color:#46b8da}.btn-info.focus,.btn-info:focus{color:#fff;background-color:#31b0d5;border-color:#1b6d85}.btn-info:hover{color:#fff;background-color:#31b0d5;border-color:#269abc}.btn-info.active,.btn-info:active,.open>.dropdown-toggle.btn-info{color:#fff;background-color:#31b0d5;border-color:#269abc}.btn-info.active.focus,.btn-info.active:focus,.btn-info.active:hover,.btn-info:active.focus,.btn-info:active:focus,.btn-info:active:hover,.open>.dropdown-toggle.btn-info.focus,.open>.dropdown-toggle.btn-info:focus,.open>.dropdown-toggle.btn-info:hover{color:#fff;background-color:#269abc;border-color:#1b6d85}.btn-info.active,.btn-info:active,.open>.dropdown-toggle.btn-info{background-image:none}.btn-info.disabled,.btn-info.disabled.active,.btn-info.disabled.focus,.btn-info.disabled:active,.btn-info.disabled:focus,.btn-info.disabled:hover,.btn-info[disabled],.btn-info[disabled].active,.btn-info[disabled].focus,.btn-info[disabled]:active,.btn-info[disabled]:focus,.btn-info[disabled]:hover,fieldset[disabled] .btn-info,fieldset[disabled] .btn-info.active,fieldset[disabled] .btn-info.focus,fieldset[disabled] .btn-info:active,fieldset[disabled] .btn-info:focus,fieldset[disabled] .btn-info:hover{background-color:#5bc0de;border-color:#46b8da}.btn-info .badge{color:#5bc0de;background-color:#fff}.btn-warning{color:#fff;background-color:#f0ad4e;border-color:#eea236}.btn-warning.focus,.btn-warning:focus{color:#fff;background-color:#ec971f;border-color:#985f0d}.btn-warning:hover{color:#fff;background-color:#ec971f;border-color:#d58512}.btn-warning.active,.btn-warning:active,.open>.dropdown-toggle.btn-warning{color:#fff;background-color:#ec971f;border-color:#d58512}.btn-warning.active.focus,.btn-warning.active:focus,.btn-warning.active:hover,.btn-warning:active.focus,.btn-warning:active:focus,.btn-warning:active:hover,.open>.dropdown-toggle.btn-warning.focus,.open>.dropdown-toggle.btn-warning:focus,.open>.dropdown-toggle.btn-warning:hover{color:#fff;background-color:#d58512;border-color:#985f0d}.btn-warning.active,.btn-warning:active,.open>.dropdown-toggle.btn-warning{background-image:none}.btn-warning.disabled,.btn-warning.disabled.active,.btn-warning.disabled.focus,.btn-warning.disabled:active,.btn-warning.disabled:focus,.btn-warning.disabled:hover,.btn-warning[disabled],.btn-warning[disabled].active,.btn-warning[disabled].focus,.btn-warning[disabled]:active,.btn-warning[disabled]:focus,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning,fieldset[disabled] .btn-warning.active,fieldset[disabled] .btn-warning.focus,fieldset[disabled] .btn-warning:active,fieldset[disabled] .btn-warning:focus,fieldset[disabled] .btn-warning:hover{background-color:#f0ad4e;border-color:#eea236}.btn-warning .badge{color:#f0ad4e;background-color:#fff}.btn-danger{color:#fff;background-color:#d9534f;border-color:#d43f3a}.btn-danger.focus,.btn-danger:focus{color:#fff;background-color:#c9302c;border-color:#761c19}.btn-danger:hover{color:#fff;background-color:#c9302c;border-color:#ac2925}.btn-danger.active,.btn-danger:active,.open>.dropdown-toggle.btn-danger{color:#fff;background-color:#c9302c;border-color:#ac2925}.btn-danger.active.focus,.btn-danger.active:focus,.btn-danger.active:hover,.btn-danger:active.focus,.btn-danger:active:focus,.btn-danger:active:hover,.open>.dropdown-toggle.btn-danger.focus,.open>.dropdown-toggle.btn-danger:focus,.open>.dropdown-toggle.btn-danger:hover{color:#fff;background-color:#ac2925;border-color:#761c19}.btn-danger.active,.btn-danger:active,.open>.dropdown-toggle.btn-danger{background-image:none}.btn-danger.disabled,.btn-danger.disabled.active,.btn-danger.disabled.focus,.btn-danger.disabled:active,.btn-danger.disabled:focus,.btn-danger.disabled:hover,.btn-danger[disabled],.btn-danger[disabled].active,.btn-danger[disabled].focus,.btn-danger[disabled]:active,.btn-danger[disabled]:focus,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger,fieldset[disabled] .btn-danger.active,fieldset[disabled] .btn-danger.focus,fieldset[disabled] .btn-danger:active,fieldset[disabled] .btn-danger:focus,fieldset[disabled] .btn-danger:hover{background-color:#d9534f;border-color:#d43f3a}.btn-danger .badge{color:#d9534f;background-color:#fff}.btn-link{font-weight:400;color:#337ab7;border-radius:0}.btn-link,.btn-link.active,.btn-link:active,.btn-link[disabled],fieldset[disabled] .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.btn-link,.btn-link:active,.btn-link:focus,.btn-link:hover{border-color:transparent}.btn-link:focus,.btn-link:hover{color:#23527c;text-decoration:underline;background-color:transparent}.btn-link[disabled]:focus,.btn-link[disabled]:hover,fieldset[disabled] .btn-link:focus,fieldset[disabled] .btn-link:hover{color:#777;text-decoration:none}.btn-group-lg>.btn,.btn-lg{padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}.btn-group-sm>.btn,.btn-sm{padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.btn-group-xs>.btn,.btn-xs{padding:1px 5px;font-size:12px;line-height:1.5;border-radius:3px}.btn-block{display:block;width:100%}.btn-block+.btn-block{margin-top:5px}input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-block{width:100%}.fade{opacity:0;-webkit-transition:opacity .15s linear;-o-transition:opacity .15s linear;transition:opacity .15s linear}.fade.in{opacity:1}.collapse{display:none}.collapse.in{display:block}tr.collapse.in{display:table-row}tbody.collapse.in{display:table-row-group}.collapsing{position:relative;height:0;overflow:hidden;-webkit-transition-timing-function:ease;-o-transition-timing-function:ease;transition-timing-function:ease;-webkit-transition-duration:.35s;-o-transition-duration:.35s;transition-duration:.35s;-webkit-transition-property:height,visibility;-o-transition-property:height,visibility;transition-property:height,visibility}.caret{display:inline-block;width:0;height:0;margin-left:2px;vertical-align:middle;border-top:4px dashed;border-top:4px solid\9;border-right:4px solid transparent;border-left:4px solid transparent}.dropdown,.dropup{position:relative}.dropdown-toggle:focus{outline:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;font-size:14px;text-align:left;list-style:none;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.15);border-radius:4px;-webkit-box-shadow:0 6px 12px rgba(0,0,0,.175);box-shadow:0 6px 12px rgba(0,0,0,.175)}.dropdown-menu.pull-right{right:0;left:auto}.dropdown-menu .divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.dropdown-menu>li>a{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:1.42857143;color:#333;white-space:nowrap}.dropdown-menu>li>a:focus,.dropdown-menu>li>a:hover{color:#262626;text-decoration:none;background-color:#f5f5f5}.dropdown-menu>.active>a,.dropdown-menu>.active>a:focus,.dropdown-menu>.active>a:hover{color:#fff;text-decoration:none;background-color:#337ab7;outline:0}.dropdown-menu>.disabled>a,.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{color:#777}.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{text-decoration:none;cursor:not-allowed;background-color:transparent;background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.open>.dropdown-menu{display:block}.open>a{outline:0}.dropdown-menu-right{right:0;left:auto}.dropdown-menu-left{right:auto;left:0}.dropdown-header{display:block;padding:3px 20px;font-size:12px;line-height:1.42857143;color:#777;white-space:nowrap}.dropdown-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:990}.pull-right>.dropdown-menu{right:0;left:auto}.dropup .caret,.navbar-fixed-bottom .dropdown .caret{content:"";border-top:0;border-bottom:4px dashed;border-bottom:4px solid\9}.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:2px}@media (min-width:768px){.navbar-right .dropdown-menu{right:0;left:auto}.navbar-right .dropdown-menu-left{right:auto;left:0}}.btn-group,.btn-group-vertical{position:relative;display:inline-block;vertical-align:middle}.btn-group-vertical>.btn,.btn-group>.btn{position:relative;float:left}.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:hover,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus,.btn-group>.btn:hover{z-index:2}.btn-group .btn+.btn,.btn-group .btn+.btn-group,.btn-group .btn-group+.btn,.btn-group .btn-group+.btn-group{margin-left:-1px}.btn-toolbar{margin-left:-5px}.btn-toolbar .btn,.btn-toolbar .btn-group,.btn-toolbar .input-group{float:left}.btn-toolbar>.btn,.btn-toolbar>.btn-group,.btn-toolbar>.input-group{margin-left:5px}.btn-group>.btn:not(:first-child):not(:last-child):not(.dropdown-toggle){border-radius:0}.btn-group>.btn:first-child{margin-left:0}.btn-group>.btn:first-child:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn:last-child:not(:first-child),.btn-group>.dropdown-toggle:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.btn-group>.btn-group{float:left}.btn-group>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-left-radius:0;border-bottom-left-radius:0}.btn-group .dropdown-toggle:active,.btn-group.open .dropdown-toggle{outline:0}.btn-group>.btn+.dropdown-toggle{padding-right:8px;padding-left:8px}.btn-group>.btn-lg+.dropdown-toggle{padding-right:12px;padding-left:12px}.btn-group.open .dropdown-toggle{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn-group.open .dropdown-toggle.btn-link{-webkit-box-shadow:none;box-shadow:none}.btn .caret{margin-left:0}.btn-lg .caret{border-width:5px 5px 0;border-bottom-width:0}.dropup .btn-lg .caret{border-width:0 5px 5px}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group,.btn-group-vertical>.btn-group>.btn{display:block;float:none;width:100%;max-width:100%}.btn-group-vertical>.btn-group>.btn{float:none}.btn-group-vertical>.btn+.btn,.btn-group-vertical>.btn+.btn-group,.btn-group-vertical>.btn-group+.btn,.btn-group-vertical>.btn-group+.btn-group{margin-top:-1px;margin-left:0}.btn-group-vertical>.btn:not(:first-child):not(:last-child){border-radius:0}.btn-group-vertical>.btn:first-child:not(:last-child){border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn:last-child:not(:first-child){border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:4px}.btn-group-vertical>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group-vertical>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group-vertical>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-left-radius:0;border-top-right-radius:0}.btn-group-justified{display:table;width:100%;table-layout:fixed;border-collapse:separate}.btn-group-justified>.btn,.btn-group-justified>.btn-group{display:table-cell;float:none;width:1%}.btn-group-justified>.btn-group .btn{width:100%}.btn-group-justified>.btn-group .dropdown-menu{left:auto}[data-toggle=buttons]>.btn input[type=checkbox],[data-toggle=buttons]>.btn input[type=radio],[data-toggle=buttons]>.btn-group>.btn input[type=checkbox],[data-toggle=buttons]>.btn-group>.btn input[type=radio]{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.input-group{position:relative;display:table;border-collapse:separate}.input-group[class*=col-]{float:none;padding-right:0;padding-left:0}.input-group .form-control{position:relative;z-index:2;float:left;width:100%;margin-bottom:0}.input-group-lg>.form-control,.input-group-lg>.input-group-addon,.input-group-lg>.input-group-btn>.btn{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}select.input-group-lg>.form-control,select.input-group-lg>.input-group-addon,select.input-group-lg>.input-group-btn>.btn{height:46px;line-height:46px}select[multiple].input-group-lg>.form-control,select[multiple].input-group-lg>.input-group-addon,select[multiple].input-group-lg>.input-group-btn>.btn,textarea.input-group-lg>.form-control,textarea.input-group-lg>.input-group-addon,textarea.input-group-lg>.input-group-btn>.btn{height:auto}.input-group-sm>.form-control,.input-group-sm>.input-group-addon,.input-group-sm>.input-group-btn>.btn{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-group-sm>.form-control,select.input-group-sm>.input-group-addon,select.input-group-sm>.input-group-btn>.btn{height:30px;line-height:30px}select[multiple].input-group-sm>.form-control,select[multiple].input-group-sm>.input-group-addon,select[multiple].input-group-sm>.input-group-btn>.btn,textarea.input-group-sm>.form-control,textarea.input-group-sm>.input-group-addon,textarea.input-group-sm>.input-group-btn>.btn{height:auto}.input-group .form-control,.input-group-addon,.input-group-btn{display:table-cell}.input-group .form-control:not(:first-child):not(:last-child),.input-group-addon:not(:first-child):not(:last-child),.input-group-btn:not(:first-child):not(:last-child){border-radius:0}.input-group-addon,.input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}.input-group-addon{padding:6px 12px;font-size:14px;font-weight:400;line-height:1;color:#555;text-align:center;background-color:#eee;border:1px solid #ccc;border-radius:4px}.input-group-addon.input-sm{padding:5px 10px;font-size:12px;border-radius:3px}.input-group-addon.input-lg{padding:10px 16px;font-size:18px;border-radius:6px}.input-group-addon input[type=checkbox],.input-group-addon input[type=radio]{margin-top:0}.input-group .form-control:first-child,.input-group-addon:first-child,.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group>.btn,.input-group-btn:first-child>.dropdown-toggle,.input-group-btn:last-child>.btn-group:not(:last-child)>.btn,.input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.input-group-addon:first-child{border-right:0}.input-group .form-control:last-child,.input-group-addon:last-child,.input-group-btn:first-child>.btn-group:not(:first-child)>.btn,.input-group-btn:first-child>.btn:not(:first-child),.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group>.btn,.input-group-btn:last-child>.dropdown-toggle{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-addon:last-child{border-left:0}.input-group-btn{position:relative;font-size:0;white-space:nowrap}.input-group-btn>.btn{position:relative}.input-group-btn>.btn+.btn{margin-left:-1px}.input-group-btn>.btn:active,.input-group-btn>.btn:focus,.input-group-btn>.btn:hover{z-index:2}.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group{margin-right:-1px}.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group{z-index:2;margin-left:-1px}.nav{padding-left:0;margin-bottom:0;list-style:none}.nav>li{position:relative;display:block}.nav>li>a{position:relative;display:block;padding:10px 15px}.nav>li>a:focus,.nav>li>a:hover{text-decoration:none;background-color:#eee}.nav>li.disabled>a{color:#777}.nav>li.disabled>a:focus,.nav>li.disabled>a:hover{color:#777;text-decoration:none;cursor:not-allowed;background-color:transparent}.nav .open>a,.nav .open>a:focus,.nav .open>a:hover{background-color:#eee;border-color:#337ab7}.nav .nav-divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.nav>li>a>img{max-width:none}.nav-tabs{border-bottom:1px solid #ddd}.nav-tabs>li{float:left;margin-bottom:-1px}.nav-tabs>li>a{margin-right:2px;line-height:1.42857143;border:1px solid transparent;border-radius:4px 4px 0 0}.nav-tabs>li>a:hover{border-color:#eee #eee #ddd}.nav-tabs>li.active>a,.nav-tabs>li.active>a:focus,.nav-tabs>li.active>a:hover{color:#555;cursor:default;background-color:#fff;border:1px solid #ddd;border-bottom-color:transparent}.nav-tabs.nav-justified{width:100%;border-bottom:0}.nav-tabs.nav-justified>li{float:none}.nav-tabs.nav-justified>li>a{margin-bottom:5px;text-align:center}.nav-tabs.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width:768px){.nav-tabs.nav-justified>li{display:table-cell;width:1%}.nav-tabs.nav-justified>li>a{margin-bottom:0}}.nav-tabs.nav-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border:1px solid #ddd}@media (min-width:768px){.nav-tabs.nav-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border-bottom-color:#fff}}.nav-pills>li{float:left}.nav-pills>li>a{border-radius:4px}.nav-pills>li+li{margin-left:2px}.nav-pills>li.active>a,.nav-pills>li.active>a:focus,.nav-pills>li.active>a:hover{color:#fff;background-color:#337ab7}.nav-stacked>li{float:none}.nav-stacked>li+li{margin-top:2px;margin-left:0}.nav-justified{width:100%}.nav-justified>li{float:none}.nav-justified>li>a{margin-bottom:5px;text-align:center}.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width:768px){.nav-justified>li{display:table-cell;width:1%}.nav-justified>li>a{margin-bottom:0}}.nav-tabs-justified{border-bottom:0}.nav-tabs-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{border:1px solid #ddd}@media (min-width:768px){.nav-tabs-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{border-bottom-color:#fff}}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-left-radius:0;border-top-right-radius:0}.navbar{position:relative;min-height:50px;margin-bottom:20px;border:1px solid transparent}@media (min-width:768px){.navbar{border-radius:4px}}@media (min-width:768px){.navbar-header{float:left}}.navbar-collapse{padding-right:15px;padding-left:15px;overflow-x:visible;-webkit-overflow-scrolling:touch;border-top:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.1)}.navbar-collapse.in{overflow-y:auto}@media (min-width:768px){.navbar-collapse{width:auto;border-top:0;-webkit-box-shadow:none;box-shadow:none}.navbar-collapse.collapse{display:block!important;height:auto!important;padding-bottom:0;overflow:visible!important}.navbar-collapse.in{overflow-y:visible}.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse,.navbar-static-top .navbar-collapse{padding-right:0;padding-left:0}}.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse{max-height:340px}@media (max-device-width:480px) and (orientation:landscape){.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse{max-height:200px}}.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{margin-right:-15px;margin-left:-15px}@media (min-width:768px){.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{margin-right:0;margin-left:0}}.navbar-static-top{z-index:1000;border-width:0 0 1px}@media (min-width:768px){.navbar-static-top{border-radius:0}}.navbar-fixed-bottom,.navbar-fixed-top{position:fixed;right:0;left:0;z-index:1030}@media (min-width:768px){.navbar-fixed-bottom,.navbar-fixed-top{border-radius:0}}.navbar-fixed-top{top:0;border-width:0 0 1px}.navbar-fixed-bottom{bottom:0;margin-bottom:0;border-width:1px 0 0}.navbar-brand{float:left;height:50px;padding:15px 15px;font-size:18px;line-height:20px}.navbar-brand:focus,.navbar-brand:hover{text-decoration:none}.navbar-brand>img{display:block}@media (min-width:768px){.navbar>.container .navbar-brand,.navbar>.container-fluid .navbar-brand{margin-left:-15px}}.navbar-toggle{position:relative;float:right;padding:9px 10px;margin-top:8px;margin-right:15px;margin-bottom:8px;background-color:transparent;background-image:none;border:1px solid transparent;border-radius:4px}.navbar-toggle:focus{outline:0}.navbar-toggle .icon-bar{display:block;width:22px;height:2px;border-radius:1px}.navbar-toggle .icon-bar+.icon-bar{margin-top:4px}@media (min-width:768px){.navbar-toggle{display:none}}.navbar-nav{margin:7.5px -15px}.navbar-nav>li>a{padding-top:10px;padding-bottom:10px;line-height:20px}@media (max-width:767px){.navbar-nav .open .dropdown-menu{position:static;float:none;width:auto;margin-top:0;background-color:transparent;border:0;-webkit-box-shadow:none;box-shadow:none}.navbar-nav .open .dropdown-menu .dropdown-header,.navbar-nav .open .dropdown-menu>li>a{padding:5px 15px 5px 25px}.navbar-nav .open .dropdown-menu>li>a{line-height:20px}.navbar-nav .open .dropdown-menu>li>a:focus,.navbar-nav .open .dropdown-menu>li>a:hover{background-image:none}}@media (min-width:768px){.navbar-nav{float:left;margin:0}.navbar-nav>li{float:left}.navbar-nav>li>a{padding-top:15px;padding-bottom:15px}}.navbar-form{padding:10px 15px;margin-top:8px;margin-right:-15px;margin-bottom:8px;margin-left:-15px;border-top:1px solid transparent;border-bottom:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1)}@media (min-width:768px){.navbar-form .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.navbar-form .form-control{display:inline-block;width:auto;vertical-align:middle}.navbar-form .form-control-static{display:inline-block}.navbar-form .input-group{display:inline-table;vertical-align:middle}.navbar-form .input-group .form-control,.navbar-form .input-group .input-group-addon,.navbar-form .input-group .input-group-btn{width:auto}.navbar-form .input-group>.form-control{width:100%}.navbar-form .control-label{margin-bottom:0;vertical-align:middle}.navbar-form .checkbox,.navbar-form .radio{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.navbar-form .checkbox label,.navbar-form .radio label{padding-left:0}.navbar-form .checkbox input[type=checkbox],.navbar-form .radio input[type=radio]{position:relative;margin-left:0}.navbar-form .has-feedback .form-control-feedback{top:0}}@media (max-width:767px){.navbar-form .form-group{margin-bottom:5px}.navbar-form .form-group:last-child{margin-bottom:0}}@media (min-width:768px){.navbar-form{width:auto;padding-top:0;padding-bottom:0;margin-right:0;margin-left:0;border:0;-webkit-box-shadow:none;box-shadow:none}}.navbar-nav>li>.dropdown-menu{margin-top:0;border-top-left-radius:0;border-top-right-radius:0}.navbar-fixed-bottom .navbar-nav>li>.dropdown-menu{margin-bottom:0;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.navbar-btn{margin-top:8px;margin-bottom:8px}.navbar-btn.btn-sm{margin-top:10px;margin-bottom:10px}.navbar-btn.btn-xs{margin-top:14px;margin-bottom:14px}.navbar-text{margin-top:15px;margin-bottom:15px}@media (min-width:768px){.navbar-text{float:left;margin-right:15px;margin-left:15px}}@media (min-width:768px){.navbar-left{float:left!important}.navbar-right{float:right!important;margin-right:-15px}.navbar-right~.navbar-right{margin-right:0}}.navbar-default{background-color:#f8f8f8;border-color:#e7e7e7}.navbar-default .navbar-brand{color:#777}.navbar-default .navbar-brand:focus,.navbar-default .navbar-brand:hover{color:#5e5e5e;background-color:transparent}.navbar-default .navbar-text{color:#777}.navbar-default .navbar-nav>li>a{color:#777}.navbar-default .navbar-nav>li>a:focus,.navbar-default .navbar-nav>li>a:hover{color:#333;background-color:transparent}.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.active>a:focus,.navbar-default .navbar-nav>.active>a:hover{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav>.disabled>a,.navbar-default .navbar-nav>.disabled>a:focus,.navbar-default .navbar-nav>.disabled>a:hover{color:#ccc;background-color:transparent}.navbar-default .navbar-toggle{border-color:#ddd}.navbar-default .navbar-toggle:focus,.navbar-default .navbar-toggle:hover{background-color:#ddd}.navbar-default .navbar-toggle .icon-bar{background-color:#888}.navbar-default .navbar-collapse,.navbar-default .navbar-form{border-color:#e7e7e7}.navbar-default .navbar-nav>.open>a,.navbar-default .navbar-nav>.open>a:focus,.navbar-default .navbar-nav>.open>a:hover{color:#555;background-color:#e7e7e7}@media (max-width:767px){.navbar-default .navbar-nav .open .dropdown-menu>li>a{color:#777}.navbar-default .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>li>a:hover{color:#333;background-color:transparent}.navbar-default .navbar-nav .open .dropdown-menu>.active>a,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:hover{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#ccc;background-color:transparent}}.navbar-default .navbar-link{color:#777}.navbar-default .navbar-link:hover{color:#333}.navbar-default .btn-link{color:#777}.navbar-default .btn-link:focus,.navbar-default .btn-link:hover{color:#333}.navbar-default .btn-link[disabled]:focus,.navbar-default .btn-link[disabled]:hover,fieldset[disabled] .navbar-default .btn-link:focus,fieldset[disabled] .navbar-default .btn-link:hover{color:#ccc}.navbar-inverse{background-color:#222;border-color:#080808}.navbar-inverse .navbar-brand{color:#9d9d9d}.navbar-inverse .navbar-brand:focus,.navbar-inverse .navbar-brand:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-text{color:#9d9d9d}.navbar-inverse .navbar-nav>li>a{color:#9d9d9d}.navbar-inverse .navbar-nav>li>a:focus,.navbar-inverse .navbar-nav>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.active>a:focus,.navbar-inverse .navbar-nav>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav>.disabled>a,.navbar-inverse .navbar-nav>.disabled>a:focus,.navbar-inverse .navbar-nav>.disabled>a:hover{color:#444;background-color:transparent}.navbar-inverse .navbar-toggle{border-color:#333}.navbar-inverse .navbar-toggle:focus,.navbar-inverse .navbar-toggle:hover{background-color:#333}.navbar-inverse .navbar-toggle .icon-bar{background-color:#fff}.navbar-inverse .navbar-collapse,.navbar-inverse .navbar-form{border-color:#101010}.navbar-inverse .navbar-nav>.open>a,.navbar-inverse .navbar-nav>.open>a:focus,.navbar-inverse .navbar-nav>.open>a:hover{color:#fff;background-color:#080808}@media (max-width:767px){.navbar-inverse .navbar-nav .open .dropdown-menu>.dropdown-header{border-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu .divider{background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a{color:#9d9d9d}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#444;background-color:transparent}}.navbar-inverse .navbar-link{color:#9d9d9d}.navbar-inverse .navbar-link:hover{color:#fff}.navbar-inverse .btn-link{color:#9d9d9d}.navbar-inverse .btn-link:focus,.navbar-inverse .btn-link:hover{color:#fff}.navbar-inverse .btn-link[disabled]:focus,.navbar-inverse .btn-link[disabled]:hover,fieldset[disabled] .navbar-inverse .btn-link:focus,fieldset[disabled] .navbar-inverse .btn-link:hover{color:#444}.breadcrumb{padding:8px 15px;margin-bottom:20px;list-style:none;background-color:#f5f5f5;border-radius:4px}.breadcrumb>li{display:inline-block}.breadcrumb>li+li:before{padding:0 5px;color:#ccc;content:"/\00a0"}.breadcrumb>.active{color:#777}.pagination{display:inline-block;padding-left:0;margin:20px 0;border-radius:4px}.pagination>li{display:inline}.pagination>li>a,.pagination>li>span{position:relative;float:left;padding:6px 12px;margin-left:-1px;line-height:1.42857143;color:#337ab7;text-decoration:none;background-color:#fff;border:1px solid #ddd}.pagination>li:first-child>a,.pagination>li:first-child>span{margin-left:0;border-top-left-radius:4px;border-bottom-left-radius:4px}.pagination>li:last-child>a,.pagination>li:last-child>span{border-top-right-radius:4px;border-bottom-right-radius:4px}.pagination>li>a:focus,.pagination>li>a:hover,.pagination>li>span:focus,.pagination>li>span:hover{z-index:3;color:#23527c;background-color:#eee;border-color:#ddd}.pagination>.active>a,.pagination>.active>a:focus,.pagination>.active>a:hover,.pagination>.active>span,.pagination>.active>span:focus,.pagination>.active>span:hover{z-index:2;color:#fff;cursor:default;background-color:#337ab7;border-color:#337ab7}.pagination>.disabled>a,.pagination>.disabled>a:focus,.pagination>.disabled>a:hover,.pagination>.disabled>span,.pagination>.disabled>span:focus,.pagination>.disabled>span:hover{color:#777;cursor:not-allowed;background-color:#fff;border-color:#ddd}.pagination-lg>li>a,.pagination-lg>li>span{padding:10px 16px;font-size:18px;line-height:1.3333333}.pagination-lg>li:first-child>a,.pagination-lg>li:first-child>span{border-top-left-radius:6px;border-bottom-left-radius:6px}.pagination-lg>li:last-child>a,.pagination-lg>li:last-child>span{border-top-right-radius:6px;border-bottom-right-radius:6px}.pagination-sm>li>a,.pagination-sm>li>span{padding:5px 10px;font-size:12px;line-height:1.5}.pagination-sm>li:first-child>a,.pagination-sm>li:first-child>span{border-top-left-radius:3px;border-bottom-left-radius:3px}.pagination-sm>li:last-child>a,.pagination-sm>li:last-child>span{border-top-right-radius:3px;border-bottom-right-radius:3px}.pager{padding-left:0;margin:20px 0;text-align:center;list-style:none}.pager li{display:inline}.pager li>a,.pager li>span{display:inline-block;padding:5px 14px;background-color:#fff;border:1px solid #ddd;border-radius:15px}.pager li>a:focus,.pager li>a:hover{text-decoration:none;background-color:#eee}.pager .next>a,.pager .next>span{float:right}.pager .previous>a,.pager .previous>span{float:left}.pager .disabled>a,.pager .disabled>a:focus,.pager .disabled>a:hover,.pager .disabled>span{color:#777;cursor:not-allowed;background-color:#fff}.label{display:inline;padding:.2em .6em .3em;font-size:75%;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em}a.label:focus,a.label:hover{color:#fff;text-decoration:none;cursor:pointer}.label:empty{display:none}.btn .label{position:relative;top:-1px}.label-default{background-color:#777}.label-default[href]:focus,.label-default[href]:hover{background-color:#5e5e5e}.label-primary{background-color:#337ab7}.label-primary[href]:focus,.label-primary[href]:hover{background-color:#286090}.label-success{background-color:#5cb85c}.label-success[href]:focus,.label-success[href]:hover{background-color:#449d44}.label-info{background-color:#5bc0de}.label-info[href]:focus,.label-info[href]:hover{background-color:#31b0d5}.label-warning{background-color:#f0ad4e}.label-warning[href]:focus,.label-warning[href]:hover{background-color:#ec971f}.label-danger{background-color:#d9534f}.label-danger[href]:focus,.label-danger[href]:hover{background-color:#c9302c}.badge{display:inline-block;min-width:10px;padding:3px 7px;font-size:12px;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:middle;background-color:#777;border-radius:10px}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.btn-group-xs>.btn .badge,.btn-xs .badge{top:0;padding:1px 5px}a.badge:focus,a.badge:hover{color:#fff;text-decoration:none;cursor:pointer}.list-group-item.active>.badge,.nav-pills>.active>a>.badge{color:#337ab7;background-color:#fff}.list-group-item>.badge{float:right}.list-group-item>.badge+.badge{margin-right:5px}.nav-pills>li>a>.badge{margin-left:3px}.jumbotron{padding-top:30px;padding-bottom:30px;margin-bottom:30px;color:inherit;background-color:#eee}.jumbotron .h1,.jumbotron h1{color:inherit}.jumbotron p{margin-bottom:15px;font-size:21px;font-weight:200}.jumbotron>hr{border-top-color:#d5d5d5}.container .jumbotron,.container-fluid .jumbotron{border-radius:6px}.jumbotron .container{max-width:100%}@media screen and (min-width:768px){.jumbotron{padding-top:48px;padding-bottom:48px}.container .jumbotron,.container-fluid .jumbotron{padding-right:60px;padding-left:60px}.jumbotron .h1,.jumbotron h1{font-size:63px}}.thumbnail{display:block;padding:4px;margin-bottom:20px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:border .2s ease-in-out;-o-transition:border .2s ease-in-out;transition:border .2s ease-in-out}.thumbnail a>img,.thumbnail>img{margin-right:auto;margin-left:auto}a.thumbnail.active,a.thumbnail:focus,a.thumbnail:hover{border-color:#337ab7}.thumbnail .caption{padding:9px;color:#333}.alert{padding:15px;margin-bottom:20px;border:1px solid transparent;border-radius:4px}.alert h4{margin-top:0;color:inherit}.alert .alert-link{font-weight:700}.alert>p,.alert>ul{margin-bottom:0}.alert>p+p{margin-top:5px}.alert-dismissable,.alert-dismissible{padding-right:35px}.alert-dismissable .close,.alert-dismissible .close{position:relative;top:-2px;right:-21px;color:inherit}.alert-success{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.alert-success hr{border-top-color:#c9e2b3}.alert-success .alert-link{color:#2b542c}.alert-info{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.alert-info hr{border-top-color:#a6e1ec}.alert-info .alert-link{color:#245269}.alert-warning{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.alert-warning hr{border-top-color:#f7e1b5}.alert-warning .alert-link{color:#66512c}.alert-danger{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.alert-danger hr{border-top-color:#e4b9c0}.alert-danger .alert-link{color:#843534}@-webkit-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@-o-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}.progress{height:20px;margin-bottom:20px;overflow:hidden;background-color:#f5f5f5;border-radius:4px;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1)}.progress-bar{float:left;width:0;height:100%;font-size:12px;line-height:20px;color:#fff;text-align:center;background-color:#337ab7;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);-webkit-transition:width .6s ease;-o-transition:width .6s ease;transition:width .6s ease}.progress-bar-striped,.progress-striped .progress-bar{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);-webkit-background-size:40px 40px;background-size:40px 40px}.progress-bar.active,.progress.active .progress-bar{-webkit-animation:progress-bar-stripes 2s linear infinite;-o-animation:progress-bar-stripes 2s linear infinite;animation:progress-bar-stripes 2s linear infinite}.progress-bar-success{background-color:#5cb85c}.progress-striped .progress-bar-success{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-info{background-color:#5bc0de}.progress-striped .progress-bar-info{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-warning{background-color:#f0ad4e}.progress-striped .progress-bar-warning{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-danger{background-color:#d9534f}.progress-striped .progress-bar-danger{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.media{margin-top:15px}.media:first-child{margin-top:0}.media,.media-body{overflow:hidden;zoom:1}.media-body{width:10000px}.media-object{display:block}.media-object.img-thumbnail{max-width:none}.media-right,.media>.pull-right{padding-left:10px}.media-left,.media>.pull-left{padding-right:10px}.media-body,.media-left,.media-right{display:table-cell;vertical-align:top}.media-middle{vertical-align:middle}.media-bottom{vertical-align:bottom}.media-heading{margin-top:0;margin-bottom:5px}.media-list{padding-left:0;list-style:none}.list-group{padding-left:0;margin-bottom:20px}.list-group-item{position:relative;display:block;padding:10px 15px;margin-bottom:-1px;background-color:#fff;border:1px solid #ddd}.list-group-item:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.list-group-item:last-child{margin-bottom:0;border-bottom-right-radius:4px;border-bottom-left-radius:4px}a.list-group-item,button.list-group-item{color:#555}a.list-group-item .list-group-item-heading,button.list-group-item .list-group-item-heading{color:#333}a.list-group-item:focus,a.list-group-item:hover,button.list-group-item:focus,button.list-group-item:hover{color:#555;text-decoration:none;background-color:#f5f5f5}button.list-group-item{width:100%;text-align:left}.list-group-item.disabled,.list-group-item.disabled:focus,.list-group-item.disabled:hover{color:#777;cursor:not-allowed;background-color:#eee}.list-group-item.disabled .list-group-item-heading,.list-group-item.disabled:focus .list-group-item-heading,.list-group-item.disabled:hover .list-group-item-heading{color:inherit}.list-group-item.disabled .list-group-item-text,.list-group-item.disabled:focus .list-group-item-text,.list-group-item.disabled:hover .list-group-item-text{color:#777}.list-group-item.active,.list-group-item.active:focus,.list-group-item.active:hover{z-index:2;color:#fff;background-color:#337ab7;border-color:#337ab7}.list-group-item.active .list-group-item-heading,.list-group-item.active .list-group-item-heading>.small,.list-group-item.active .list-group-item-heading>small,.list-group-item.active:focus .list-group-item-heading,.list-group-item.active:focus .list-group-item-heading>.small,.list-group-item.active:focus .list-group-item-heading>small,.list-group-item.active:hover .list-group-item-heading,.list-group-item.active:hover .list-group-item-heading>.small,.list-group-item.active:hover .list-group-item-heading>small{color:inherit}.list-group-item.active .list-group-item-text,.list-group-item.active:focus .list-group-item-text,.list-group-item.active:hover .list-group-item-text{color:#c7ddef}.list-group-item-success{color:#3c763d;background-color:#dff0d8}a.list-group-item-success,button.list-group-item-success{color:#3c763d}a.list-group-item-success .list-group-item-heading,button.list-group-item-success .list-group-item-heading{color:inherit}a.list-group-item-success:focus,a.list-group-item-success:hover,button.list-group-item-success:focus,button.list-group-item-success:hover{color:#3c763d;background-color:#d0e9c6}a.list-group-item-success.active,a.list-group-item-success.active:focus,a.list-group-item-success.active:hover,button.list-group-item-success.active,button.list-group-item-success.active:focus,button.list-group-item-success.active:hover{color:#fff;background-color:#3c763d;border-color:#3c763d}.list-group-item-info{color:#31708f;background-color:#d9edf7}a.list-group-item-info,button.list-group-item-info{color:#31708f}a.list-group-item-info .list-group-item-heading,button.list-group-item-info .list-group-item-heading{color:inherit}a.list-group-item-info:focus,a.list-group-item-info:hover,button.list-group-item-info:focus,button.list-group-item-info:hover{color:#31708f;background-color:#c4e3f3}a.list-group-item-info.active,a.list-group-item-info.active:focus,a.list-group-item-info.active:hover,button.list-group-item-info.active,button.list-group-item-info.active:focus,button.list-group-item-info.active:hover{color:#fff;background-color:#31708f;border-color:#31708f}.list-group-item-warning{color:#8a6d3b;background-color:#fcf8e3}a.list-group-item-warning,button.list-group-item-warning{color:#8a6d3b}a.list-group-item-warning .list-group-item-heading,button.list-group-item-warning .list-group-item-heading{color:inherit}a.list-group-item-warning:focus,a.list-group-item-warning:hover,button.list-group-item-warning:focus,button.list-group-item-warning:hover{color:#8a6d3b;background-color:#faf2cc}a.list-group-item-warning.active,a.list-group-item-warning.active:focus,a.list-group-item-warning.active:hover,button.list-group-item-warning.active,button.list-group-item-warning.active:focus,button.list-group-item-warning.active:hover{color:#fff;background-color:#8a6d3b;border-color:#8a6d3b}.list-group-item-danger{color:#a94442;background-color:#f2dede}a.list-group-item-danger,button.list-group-item-danger{color:#a94442}a.list-group-item-danger .list-group-item-heading,button.list-group-item-danger .list-group-item-heading{color:inherit}a.list-group-item-danger:focus,a.list-group-item-danger:hover,button.list-group-item-danger:focus,button.list-group-item-danger:hover{color:#a94442;background-color:#ebcccc}a.list-group-item-danger.active,a.list-group-item-danger.active:focus,a.list-group-item-danger.active:hover,button.list-group-item-danger.active,button.list-group-item-danger.active:focus,button.list-group-item-danger.active:hover{color:#fff;background-color:#a94442;border-color:#a94442}.list-group-item-heading{margin-top:0;margin-bottom:5px}.list-group-item-text{margin-bottom:0;line-height:1.3}.panel{margin-bottom:20px;background-color:#fff;border:1px solid transparent;border-radius:4px;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.05);box-shadow:0 1px 1px rgba(0,0,0,.05)}.panel-body{padding:15px}.panel-heading{padding:10px 15px;border-bottom:1px solid transparent;border-top-left-radius:3px;border-top-right-radius:3px}.panel-heading>.dropdown .dropdown-toggle{color:inherit}.panel-title{margin-top:0;margin-bottom:0;font-size:16px;color:inherit}.panel-title>.small,.panel-title>.small>a,.panel-title>a,.panel-title>small,.panel-title>small>a{color:inherit}.panel-footer{padding:10px 15px;background-color:#f5f5f5;border-top:1px solid #ddd;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.list-group,.panel>.panel-collapse>.list-group{margin-bottom:0}.panel>.list-group .list-group-item,.panel>.panel-collapse>.list-group .list-group-item{border-width:1px 0;border-radius:0}.panel>.list-group:first-child .list-group-item:first-child,.panel>.panel-collapse>.list-group:first-child .list-group-item:first-child{border-top:0;border-top-left-radius:3px;border-top-right-radius:3px}.panel>.list-group:last-child .list-group-item:last-child,.panel>.panel-collapse>.list-group:last-child .list-group-item:last-child{border-bottom:0;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.panel-heading+.panel-collapse>.list-group .list-group-item:first-child{border-top-left-radius:0;border-top-right-radius:0}.panel-heading+.list-group .list-group-item:first-child{border-top-width:0}.list-group+.panel-footer{border-top-width:0}.panel>.panel-collapse>.table,.panel>.table,.panel>.table-responsive>.table{margin-bottom:0}.panel>.panel-collapse>.table caption,.panel>.table caption,.panel>.table-responsive>.table caption{padding-right:15px;padding-left:15px}.panel>.table-responsive:first-child>.table:first-child,.panel>.table:first-child{border-top-left-radius:3px;border-top-right-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child,.panel>.table:first-child>thead:first-child>tr:first-child{border-top-left-radius:3px;border-top-right-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table:first-child>thead:first-child>tr:first-child th:first-child{border-top-left-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table:first-child>thead:first-child>tr:first-child th:last-child{border-top-right-radius:3px}.panel>.table-responsive:last-child>.table:last-child,.panel>.table:last-child{border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child{border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:first-child{border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:last-child{border-bottom-right-radius:3px}.panel>.panel-body+.table,.panel>.panel-body+.table-responsive,.panel>.table+.panel-body,.panel>.table-responsive+.panel-body{border-top:1px solid #ddd}.panel>.table>tbody:first-child>tr:first-child td,.panel>.table>tbody:first-child>tr:first-child th{border-top:0}.panel>.table-bordered,.panel>.table-responsive>.table-bordered{border:0}.panel>.table-bordered>tbody>tr>td:first-child,.panel>.table-bordered>tbody>tr>th:first-child,.panel>.table-bordered>tfoot>tr>td:first-child,.panel>.table-bordered>tfoot>tr>th:first-child,.panel>.table-bordered>thead>tr>td:first-child,.panel>.table-bordered>thead>tr>th:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:first-child,.panel>.table-responsive>.table-bordered>thead>tr>td:first-child,.panel>.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.panel>.table-bordered>tbody>tr>td:last-child,.panel>.table-bordered>tbody>tr>th:last-child,.panel>.table-bordered>tfoot>tr>td:last-child,.panel>.table-bordered>tfoot>tr>th:last-child,.panel>.table-bordered>thead>tr>td:last-child,.panel>.table-bordered>thead>tr>th:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:last-child,.panel>.table-responsive>.table-bordered>thead>tr>td:last-child,.panel>.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.panel>.table-bordered>tbody>tr:first-child>td,.panel>.table-bordered>tbody>tr:first-child>th,.panel>.table-bordered>thead>tr:first-child>td,.panel>.table-bordered>thead>tr:first-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>th,.panel>.table-responsive>.table-bordered>thead>tr:first-child>td,.panel>.table-responsive>.table-bordered>thead>tr:first-child>th{border-bottom:0}.panel>.table-bordered>tbody>tr:last-child>td,.panel>.table-bordered>tbody>tr:last-child>th,.panel>.table-bordered>tfoot>tr:last-child>td,.panel>.table-bordered>tfoot>tr:last-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>th,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>td,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}.panel>.table-responsive{margin-bottom:0;border:0}.panel-group{margin-bottom:20px}.panel-group .panel{margin-bottom:0;border-radius:4px}.panel-group .panel+.panel{margin-top:5px}.panel-group .panel-heading{border-bottom:0}.panel-group .panel-heading+.panel-collapse>.list-group,.panel-group .panel-heading+.panel-collapse>.panel-body{border-top:1px solid #ddd}.panel-group .panel-footer{border-top:0}.panel-group .panel-footer+.panel-collapse .panel-body{border-bottom:1px solid #ddd}.panel-default{border-color:#ddd}.panel-default>.panel-heading{color:#333;background-color:#f5f5f5;border-color:#ddd}.panel-default>.panel-heading+.panel-collapse>.panel-body{border-top-color:#ddd}.panel-default>.panel-heading .badge{color:#f5f5f5;background-color:#333}.panel-default>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#ddd}.panel-primary{border-color:#337ab7}.panel-primary>.panel-heading{color:#fff;background-color:#337ab7;border-color:#337ab7}.panel-primary>.panel-heading+.panel-collapse>.panel-body{border-top-color:#337ab7}.panel-primary>.panel-heading .badge{color:#337ab7;background-color:#fff}.panel-primary>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#337ab7}.panel-success{border-color:#d6e9c6}.panel-success>.panel-heading{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.panel-success>.panel-heading+.panel-collapse>.panel-body{border-top-color:#d6e9c6}.panel-success>.panel-heading .badge{color:#dff0d8;background-color:#3c763d}.panel-success>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#d6e9c6}.panel-info{border-color:#bce8f1}.panel-info>.panel-heading{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.panel-info>.panel-heading+.panel-collapse>.panel-body{border-top-color:#bce8f1}.panel-info>.panel-heading .badge{color:#d9edf7;background-color:#31708f}.panel-info>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#bce8f1}.panel-warning{border-color:#faebcc}.panel-warning>.panel-heading{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.panel-warning>.panel-heading+.panel-collapse>.panel-body{border-top-color:#faebcc}.panel-warning>.panel-heading .badge{color:#fcf8e3;background-color:#8a6d3b}.panel-warning>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#faebcc}.panel-danger{border-color:#ebccd1}.panel-danger>.panel-heading{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.panel-danger>.panel-heading+.panel-collapse>.panel-body{border-top-color:#ebccd1}.panel-danger>.panel-heading .badge{color:#f2dede;background-color:#a94442}.panel-danger>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#ebccd1}.embed-responsive{position:relative;display:block;height:0;padding:0;overflow:hidden}.embed-responsive .embed-responsive-item,.embed-responsive embed,.embed-responsive iframe,.embed-responsive object,.embed-responsive video{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;border:0}.embed-responsive-16by9{padding-bottom:56.25%}.embed-responsive-4by3{padding-bottom:75%}.well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px solid #e3e3e3;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.05);box-shadow:inset 0 1px 1px rgba(0,0,0,.05)}.well blockquote{border-color:#ddd;border-color:rgba(0,0,0,.15)}.well-lg{padding:24px;border-radius:6px}.well-sm{padding:9px;border-radius:3px}.close{float:right;font-size:21px;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;filter:alpha(opacity=20);opacity:.2}.close:focus,.close:hover{color:#000;text-decoration:none;cursor:pointer;filter:alpha(opacity=50);opacity:.5}button.close{-webkit-appearance:none;padding:0;cursor:pointer;background:0 0;border:0}.modal-open{overflow:hidden}.modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1050;display:none;overflow:hidden;-webkit-overflow-scrolling:touch;outline:0}.modal.fade .modal-dialog{-webkit-transition:-webkit-transform .3s ease-out;-o-transition:-o-transform .3s ease-out;transition:transform .3s ease-out;-webkit-transform:translate(0,-25%);-ms-transform:translate(0,-25%);-o-transform:translate(0,-25%);transform:translate(0,-25%)}.modal.in .modal-dialog{-webkit-transform:translate(0,0);-ms-transform:translate(0,0);-o-transform:translate(0,0);transform:translate(0,0)}.modal-open .modal{overflow-x:hidden;overflow-y:auto}.modal-dialog{position:relative;width:auto;margin:10px}.modal-content{position:relative;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #999;border:1px solid rgba(0,0,0,.2);border-radius:6px;outline:0;-webkit-box-shadow:0 3px 9px rgba(0,0,0,.5);box-shadow:0 3px 9px rgba(0,0,0,.5)}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000}.modal-backdrop.fade{filter:alpha(opacity=0);opacity:0}.modal-backdrop.in{filter:alpha(opacity=50);opacity:.5}.modal-header{min-height:16.43px;padding:15px;border-bottom:1px solid #e5e5e5}.modal-header .close{margin-top:-2px}.modal-title{margin:0;line-height:1.42857143}.modal-body{position:relative;padding:15px}.modal-footer{padding:15px;text-align:right;border-top:1px solid #e5e5e5}.modal-footer .btn+.btn{margin-bottom:0;margin-left:5px}.modal-footer .btn-group .btn+.btn{margin-left:-1px}.modal-footer .btn-block+.btn-block{margin-left:0}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}@media (min-width:768px){.modal-dialog{width:600px;margin:30px auto}.modal-content{-webkit-box-shadow:0 5px 15px rgba(0,0,0,.5);box-shadow:0 5px 15px rgba(0,0,0,.5)}.modal-sm{width:300px}}@media (min-width:992px){.modal-lg{width:900px}}.tooltip{position:absolute;z-index:1070;display:block;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:12px;font-style:normal;font-weight:400;line-height:1.42857143;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;word-wrap:normal;white-space:normal;filter:alpha(opacity=0);opacity:0;line-break:auto}.tooltip.in{filter:alpha(opacity=90);opacity:.9}.tooltip.top{padding:5px 0;margin-top:-3px}.tooltip.right{padding:0 5px;margin-left:3px}.tooltip.bottom{padding:5px 0;margin-top:3px}.tooltip.left{padding:0 5px;margin-left:-3px}.tooltip-inner{max-width:200px;padding:3px 8px;color:#fff;text-align:center;background-color:#000;border-radius:4px}.tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.top-left .tooltip-arrow{right:5px;bottom:0;margin-bottom:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.top-right .tooltip-arrow{bottom:0;left:5px;margin-bottom:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-width:5px 5px 5px 0;border-right-color:#000}.tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-width:5px 0 5px 5px;border-left-color:#000}.tooltip.bottom .tooltip-arrow{top:0;left:50%;margin-left:-5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-left .tooltip-arrow{top:0;right:5px;margin-top:-5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-right .tooltip-arrow{top:0;left:5px;margin-top:-5px;border-width:0 5px 5px;border-bottom-color:#000}.popover{position:absolute;top:0;left:0;z-index:1060;display:none;max-width:276px;padding:1px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:1.42857143;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;word-wrap:normal;white-space:normal;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.2);border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2);line-break:auto}.popover.top{margin-top:-10px}.popover.right{margin-left:10px}.popover.bottom{margin-top:10px}.popover.left{margin-left:-10px}.popover-title{padding:8px 14px;margin:0;font-size:14px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-radius:5px 5px 0 0}.popover-content{padding:9px 14px}.popover>.arrow,.popover>.arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.popover>.arrow{border-width:11px}.popover>.arrow:after{content:"";border-width:10px}.popover.top>.arrow{bottom:-11px;left:50%;margin-left:-11px;border-top-color:#999;border-top-color:rgba(0,0,0,.25);border-bottom-width:0}.popover.top>.arrow:after{bottom:1px;margin-left:-10px;content:" ";border-top-color:#fff;border-bottom-width:0}.popover.right>.arrow{top:50%;left:-11px;margin-top:-11px;border-right-color:#999;border-right-color:rgba(0,0,0,.25);border-left-width:0}.popover.right>.arrow:after{bottom:-10px;left:1px;content:" ";border-right-color:#fff;border-left-width:0}.popover.bottom>.arrow{top:-11px;left:50%;margin-left:-11px;border-top-width:0;border-bottom-color:#999;border-bottom-color:rgba(0,0,0,.25)}.popover.bottom>.arrow:after{top:1px;margin-left:-10px;content:" ";border-top-width:0;border-bottom-color:#fff}.popover.left>.arrow{top:50%;right:-11px;margin-top:-11px;border-right-width:0;border-left-color:#999;border-left-color:rgba(0,0,0,.25)}.popover.left>.arrow:after{right:1px;bottom:-10px;content:" ";border-right-width:0;border-left-color:#fff}.carousel{position:relative}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner>.item{position:relative;display:none;-webkit-transition:.6s ease-in-out left;-o-transition:.6s ease-in-out left;transition:.6s ease-in-out left}.carousel-inner>.item>a>img,.carousel-inner>.item>img{line-height:1}@media all and (transform-3d),(-webkit-transform-3d){.carousel-inner>.item{-webkit-transition:-webkit-transform .6s ease-in-out;-o-transition:-o-transform .6s ease-in-out;transition:transform .6s ease-in-out;-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-perspective:1000px;perspective:1000px}.carousel-inner>.item.active.right,.carousel-inner>.item.next{left:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}.carousel-inner>.item.active.left,.carousel-inner>.item.prev{left:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}.carousel-inner>.item.active,.carousel-inner>.item.next.left,.carousel-inner>.item.prev.right{left:0;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}.carousel-inner>.active,.carousel-inner>.next,.carousel-inner>.prev{display:block}.carousel-inner>.active{left:0}.carousel-inner>.next,.carousel-inner>.prev{position:absolute;top:0;width:100%}.carousel-inner>.next{left:100%}.carousel-inner>.prev{left:-100%}.carousel-inner>.next.left,.carousel-inner>.prev.right{left:0}.carousel-inner>.active.left{left:-100%}.carousel-inner>.active.right{left:100%}.carousel-control{position:absolute;top:0;bottom:0;left:0;width:15%;font-size:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6);filter:alpha(opacity=50);opacity:.5}.carousel-control.left{background-image:-webkit-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-image:-o-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.5)),to(rgba(0,0,0,.0001)));background-image:linear-gradient(to right,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1);background-repeat:repeat-x}.carousel-control.right{right:0;left:auto;background-image:-webkit-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-image:-o-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.0001)),to(rgba(0,0,0,.5)));background-image:linear-gradient(to right,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1);background-repeat:repeat-x}.carousel-control:focus,.carousel-control:hover{color:#fff;text-decoration:none;filter:alpha(opacity=90);outline:0;opacity:.9}.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{position:absolute;top:50%;z-index:5;display:inline-block;margin-top:-10px}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{left:50%;margin-left:-10px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{right:50%;margin-right:-10px}.carousel-control .icon-next,.carousel-control .icon-prev{width:20px;height:20px;font-family:serif;line-height:1}.carousel-control .icon-prev:before{content:'\2039'}.carousel-control .icon-next:before{content:'\203a'}.carousel-indicators{position:absolute;bottom:10px;left:50%;z-index:15;width:60%;padding-left:0;margin-left:-30%;text-align:center;list-style:none}.carousel-indicators li{display:inline-block;width:10px;height:10px;margin:1px;text-indent:-999px;cursor:pointer;background-color:#000\9;background-color:rgba(0,0,0,0);border:1px solid #fff;border-radius:10px}.carousel-indicators .active{width:12px;height:12px;margin:0;background-color:#fff}.carousel-caption{position:absolute;right:15%;bottom:20px;left:15%;z-index:10;padding-top:20px;padding-bottom:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6)}.carousel-caption .btn{text-shadow:none}@media screen and (min-width:768px){.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{width:30px;height:30px;margin-top:-15px;font-size:30px}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{margin-left:-15px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{margin-right:-15px}.carousel-caption{right:20%;left:20%;padding-bottom:30px}.carousel-indicators{bottom:20px}}.btn-group-vertical>.btn-group:after,.btn-group-vertical>.btn-group:before,.btn-toolbar:after,.btn-toolbar:before,.clearfix:after,.clearfix:before,.container-fluid:after,.container-fluid:before,.container:after,.container:before,.dl-horizontal dd:after,.dl-horizontal dd:before,.form-horizontal .form-group:after,.form-horizontal .form-group:before,.modal-footer:after,.modal-footer:before,.nav:after,.nav:before,.navbar-collapse:after,.navbar-collapse:before,.navbar-header:after,.navbar-header:before,.navbar:after,.navbar:before,.pager:after,.pager:before,.panel-body:after,.panel-body:before,.row:after,.row:before{display:table;content:" "}.btn-group-vertical>.btn-group:after,.btn-toolbar:after,.clearfix:after,.container-fluid:after,.container:after,.dl-horizontal dd:after,.form-horizontal .form-group:after,.modal-footer:after,.nav:after,.navbar-collapse:after,.navbar-header:after,.navbar:after,.pager:after,.panel-body:after,.row:after{clear:both}.center-block{display:block;margin-right:auto;margin-left:auto}.pull-right{float:right!important}.pull-left{float:left!important}.hide{display:none!important}.show{display:block!important}.invisible{visibility:hidden}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.hidden{display:none!important}.affix{position:fixed}@-ms-viewport{width:device-width}.visible-lg,.visible-md,.visible-sm,.visible-xs{display:none!important}.visible-lg-block,.visible-lg-inline,.visible-lg-inline-block,.visible-md-block,.visible-md-inline,.visible-md-inline-block,.visible-sm-block,.visible-sm-inline,.visible-sm-inline-block,.visible-xs-block,.visible-xs-inline,.visible-xs-inline-block{display:none!important}@media (max-width:767px){.visible-xs{display:block!important}table.visible-xs{display:table!important}tr.visible-xs{display:table-row!important}td.visible-xs,th.visible-xs{display:table-cell!important}}@media (max-width:767px){.visible-xs-block{display:block!important}}@media (max-width:767px){.visible-xs-inline{display:inline!important}}@media (max-width:767px){.visible-xs-inline-block{display:inline-block!important}}@media (min-width:768px) and (max-width:991px){.visible-sm{display:block!important}table.visible-sm{display:table!important}tr.visible-sm{display:table-row!important}td.visible-sm,th.visible-sm{display:table-cell!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-block{display:block!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-inline{display:inline!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-inline-block{display:inline-block!important}}@media (min-width:992px) and (max-width:1199px){.visible-md{display:block!important}table.visible-md{display:table!important}tr.visible-md{display:table-row!important}td.visible-md,th.visible-md{display:table-cell!important}}@media (min-width:992px) and (max-width:1199px){.visible-md-block{display:block!important}}@media (min-width:992px) and (max-width:1199px){.visible-md-inline{display:inline!important}}@media (min-width:992px) and (max-width:1199px){.visible-md-inline-block{display:inline-block!important}}@media (min-width:1200px){.visible-lg{display:block!important}table.visible-lg{display:table!important}tr.visible-lg{display:table-row!important}td.visible-lg,th.visible-lg{display:table-cell!important}}@media (min-width:1200px){.visible-lg-block{display:block!important}}@media (min-width:1200px){.visible-lg-inline{display:inline!important}}@media (min-width:1200px){.visible-lg-inline-block{display:inline-block!important}}@media (max-width:767px){.hidden-xs{display:none!important}}@media (min-width:768px) and (max-width:991px){.hidden-sm{display:none!important}}@media (min-width:992px) and (max-width:1199px){.hidden-md{display:none!important}}@media (min-width:1200px){.hidden-lg{display:none!important}}.visible-print{display:none!important}@media print{.visible-print{display:block!important}table.visible-print{display:table!important}tr.visible-print{display:table-row!important}td.visible-print,th.visible-print{display:table-cell!important}}.visible-print-block{display:none!important}@media print{.visible-print-block{display:block!important}}.visible-print-inline{display:none!important}@media print{.visible-print-inline{display:inline!important}}.visible-print-inline-block{display:none!important}@media print{.visible-print-inline-block{display:inline-block!important}}@media print{.hidden-print{display:none!important}} \ No newline at end of file diff --git a/js/bstable/datel/.name b/js/bstable/datel/.name new file mode 100644 index 0000000..faea15e --- /dev/null +++ b/js/bstable/datel/.name @@ -0,0 +1 @@ +table \ No newline at end of file diff --git a/js/bstable/datel/encodings.xml b/js/bstable/datel/encodings.xml new file mode 100644 index 0000000..97626ba --- /dev/null +++ b/js/bstable/datel/encodings.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/js/bstable/datel/misc.xml b/js/bstable/datel/misc.xml new file mode 100644 index 0000000..c9a8380 --- /dev/null +++ b/js/bstable/datel/misc.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/js/bstable/datel/modules.xml b/js/bstable/datel/modules.xml new file mode 100644 index 0000000..43dc4e5 --- /dev/null +++ b/js/bstable/datel/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/js/bstable/datel/table.iml b/js/bstable/datel/table.iml new file mode 100644 index 0000000..c956989 --- /dev/null +++ b/js/bstable/datel/table.iml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/js/bstable/datel/workspace.xml b/js/bstable/datel/workspace.xml new file mode 100644 index 0000000..3fb4cd6 --- /dev/null +++ b/js/bstable/datel/workspace.xml @@ -0,0 +1,271 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + $PROJECT_DIR$ + true + + bdd + + DIRECTORY + + false + + + + + + + + 1466056781019 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/js/bstable/fonts/fontawesome-webfont.eot_ b/js/bstable/fonts/fontawesome-webfont.eot_ new file mode 100644 index 0000000..a30335d Binary files /dev/null and b/js/bstable/fonts/fontawesome-webfont.eot_ differ diff --git a/js/bstable/fonts/fontawesome-webfont.svg b/js/bstable/fonts/fontawesome-webfont.svg new file mode 100644 index 0000000..6fd19ab --- /dev/null +++ b/js/bstable/fonts/fontawesome-webfont.svg @@ -0,0 +1,640 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/js/bstable/fonts/fontawesome-webfont.ttf b/js/bstable/fonts/fontawesome-webfont.ttf new file mode 100644 index 0000000..d7994e1 Binary files /dev/null and b/js/bstable/fonts/fontawesome-webfont.ttf differ diff --git a/js/bstable/fonts/fontawesome-webfont.woff b/js/bstable/fonts/fontawesome-webfont.woff new file mode 100644 index 0000000..6fd4ede Binary files /dev/null and b/js/bstable/fonts/fontawesome-webfont.woff differ diff --git a/js/bstable/fonts/fontawesome-webfont.woff2 b/js/bstable/fonts/fontawesome-webfont.woff2 new file mode 100644 index 0000000..5560193 Binary files /dev/null and b/js/bstable/fonts/fontawesome-webfont.woff2 differ diff --git a/js/bstable/fonts/glyphicons-halflings-regular.eot b/js/bstable/fonts/glyphicons-halflings-regular.eot new file mode 100644 index 0000000..b93a495 Binary files /dev/null and b/js/bstable/fonts/glyphicons-halflings-regular.eot differ diff --git a/js/bstable/fonts/glyphicons-halflings-regular.eot_ b/js/bstable/fonts/glyphicons-halflings-regular.eot_ new file mode 100644 index 0000000..b93a495 Binary files /dev/null and b/js/bstable/fonts/glyphicons-halflings-regular.eot_ differ diff --git a/js/bstable/fonts/glyphicons-halflings-regular.svg b/js/bstable/fonts/glyphicons-halflings-regular.svg new file mode 100644 index 0000000..94fb549 --- /dev/null +++ b/js/bstable/fonts/glyphicons-halflings-regular.svg @@ -0,0 +1,288 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/js/bstable/fonts/glyphicons-halflings-regular.ttf b/js/bstable/fonts/glyphicons-halflings-regular.ttf new file mode 100644 index 0000000..1413fc6 Binary files /dev/null and b/js/bstable/fonts/glyphicons-halflings-regular.ttf differ diff --git a/js/bstable/fonts/glyphicons-halflings-regular.woff b/js/bstable/fonts/glyphicons-halflings-regular.woff new file mode 100644 index 0000000..9e61285 Binary files /dev/null and b/js/bstable/fonts/glyphicons-halflings-regular.woff differ diff --git a/js/bstable/fonts/glyphicons-halflings-regular.woff2 b/js/bstable/fonts/glyphicons-halflings-regular.woff2 new file mode 100644 index 0000000..64539b5 Binary files /dev/null and b/js/bstable/fonts/glyphicons-halflings-regular.woff2 differ diff --git a/js/bstable/js/bootstrap-table-zh-CN.min.js b/js/bstable/js/bootstrap-table-zh-CN.min.js new file mode 100644 index 0000000..e903fdf --- /dev/null +++ b/js/bstable/js/bootstrap-table-zh-CN.min.js @@ -0,0 +1,7 @@ +/* +* bootstrap-table - v1.10.1 - 2016-02-17 +* https://github.com/wenzhixin/bootstrap-table +* Copyright (c) 2016 zhixin wen +* Licensed MIT License +*/ +!function(a){"use strict";a.fn.bootstrapTable.locales["zh-CN"]={formatLoadingMessage:function(){return"正在努力地加载数据中,请稍候……"},formatRecordsPerPage:function(a){return"每页显示 "+a+" 条记录"},formatShowingRows:function(a,b,c){return"显示第 "+a+" 到第 "+b+" 条记录,总共 "+c+" 条记录"},formatSearch:function(){return"搜索"},formatNoMatches:function(){return"没有找到匹配的记录"},formatPaginationSwitch:function(){return"隐藏/显示分页"},formatRefresh:function(){return"刷新"},formatToggle:function(){return"切换"},formatColumns:function(){return"列"}},a.extend(a.fn.bootstrapTable.defaults,a.fn.bootstrapTable.locales["zh-CN"])}(jQuery); \ No newline at end of file diff --git a/js/bstable/js/bootstrap-table.js b/js/bstable/js/bootstrap-table.js new file mode 100644 index 0000000..2bf8240 --- /dev/null +++ b/js/bstable/js/bootstrap-table.js @@ -0,0 +1,2808 @@ +/** + * @author zhixin wen + * version: 1.10.1 + * https://github.com/wenzhixin/bootstrap-table/ + */ + +!function ($) { + 'use strict'; + + // TOOLS DEFINITION + // ====================== + + var cachedWidth = null; + + // it only does '%s', and return '' when arguments are undefined + var sprintf = function (str) { + var args = arguments, + flag = true, + i = 1; + + str = str.replace(/%s/g, function () { + var arg = args[i++]; + + if (typeof arg === 'undefined') { + flag = false; + return ''; + } + return arg; + }); + return flag ? str : ''; + }; + + var getPropertyFromOther = function (list, from, to, value) { + var result = ''; + $.each(list, function (i, item) { + if (item[from] === value) { + result = item[to]; + return false; + } + return true; + }); + return result; + }; + + var getFieldIndex = function (columns, field) { + var index = -1; + + $.each(columns, function (i, column) { + if (column.field === field) { + index = i; + return false; + } + return true; + }); + return index; + }; + + // http://jsfiddle.net/wenyi/47nz7ez9/3/ + var setFieldIndex = function (columns) { + var i, j, k, + totalCol = 0, + flag = []; + + for (i = 0; i < columns[0].length; i++) { + totalCol += columns[0][i].colspan || 1; + } + + for (i = 0; i < columns.length; i++) { + flag[i] = []; + for (j = 0; j < totalCol; j++) { + flag[i][j] = false; + } + } + + for (i = 0; i < columns.length; i++) { + for (j = 0; j < columns[i].length; j++) { + var r = columns[i][j], + rowspan = r.rowspan || 1, + colspan = r.colspan || 1, + index = $.inArray(false, flag[i]); + + if (colspan === 1) { + r.fieldIndex = index; + // when field is undefined, use index instead + if (typeof r.field === 'undefined') { + r.field = index; + } + } + + for (k = 0; k < rowspan; k++) { + flag[i + k][index] = true; + } + for (k = 0; k < colspan; k++) { + flag[i][index + k] = true; + } + } + } + }; + + var getScrollBarWidth = function () { + if (cachedWidth === null) { + var inner = $('

').addClass('fixed-table-scroll-inner'), + outer = $('

').addClass('fixed-table-scroll-outer'), + w1, w2; + + outer.append(inner); + $('body').append(outer); + + w1 = inner[0].offsetWidth; + outer.css('overflow', 'scroll'); + w2 = inner[0].offsetWidth; + + if (w1 === w2) { + w2 = outer[0].clientWidth; + } + + outer.remove(); + cachedWidth = w1 - w2; + } + return cachedWidth; + }; + + var calculateObjectValue = function (self, name, args, defaultValue) { + var func = name; + + if (typeof name === 'string') { + // support obj.func1.func2 + var names = name.split('.'); + + if (names.length > 1) { + func = window; + $.each(names, function (i, f) { + func = func[f]; + }); + } else { + func = window[name]; + } + } + if (typeof func === 'object') { + return func; + } + if (typeof func === 'function') { + return func.apply(self, args); + } + if (!func && typeof name === 'string' && sprintf.apply(this, [name].concat(args))) { + return sprintf.apply(this, [name].concat(args)); + } + return defaultValue; + }; + + var compareObjects = function (objectA, objectB, compareLength) { + // Create arrays of property names + var objectAProperties = Object.getOwnPropertyNames(objectA), + objectBProperties = Object.getOwnPropertyNames(objectB), + propName = ''; + + if (compareLength) { + // If number of properties is different, objects are not equivalent + if (objectAProperties.length !== objectBProperties.length) { + return false; + } + } + + for (var i = 0; i < objectAProperties.length; i++) { + propName = objectAProperties[i]; + + // If the property is not in the object B properties, continue with the next property + if ($.inArray(propName, objectBProperties) > -1) { + // If values of same property are not equal, objects are not equivalent + if (objectA[propName] !== objectB[propName]) { + return false; + } + } + } + + // If we made it this far, objects are considered equivalent + return true; + }; + + var escapeHTML = function (text) { + if (typeof text === 'string') { + return text + .replace(/&/g, '&') + .replace(//g, '>') + .replace(/"/g, '"') + .replace(/'/g, ''') + .replace(/`/g, '`'); + } + return text; + }; + + var getRealHeight = function ($el) { + var height = 0; + $el.children().each(function () { + if (height < $(this).outerHeight(true)) { + height = $(this).outerHeight(true); + } + }); + return height; + }; + + var getRealDataAttr = function (dataAttr) { + for (var attr in dataAttr) { + var auxAttr = attr.split(/(?=[A-Z])/).join('-').toLowerCase(); + if (auxAttr !== attr) { + dataAttr[auxAttr] = dataAttr[attr]; + delete dataAttr[attr]; + } + } + + return dataAttr; + }; + + var getItemField = function (item, field, escape) { + var value = item; + + if (typeof field !== 'string' || item.hasOwnProperty(field)) { + return escape ? escapeHTML(item[field]) : item[field]; + } + var props = field.split('.'); + for (var p in props) { + value = value && value[props[p]]; + } + return escape ? escapeHTML(value) : value; + }; + + var isIEBrowser = function () { + return !!(navigator.userAgent.indexOf("MSIE ") > 0 || !!navigator.userAgent.match(/Trident.*rv\:11\./)); + }; + + // BOOTSTRAP TABLE CLASS DEFINITION + // ====================== + + var BootstrapTable = function (el, options) { + this.options = options; + this.$el = $(el); + this.$el_ = this.$el.clone(); + this.timeoutId_ = 0; + this.timeoutFooter_ = 0; + + this.init(); + }; + + BootstrapTable.DEFAULTS = { + classes: 'table table-hover', + locale: undefined, + height: undefined, + undefinedText: '-', + sortName: undefined, + sortOrder: 'asc', + striped: false, + columns: [[]], + data: [], + dataField: 'rows', + method: 'get', + url: undefined, + ajax: undefined, + cache: true, + contentType: 'application/json', + dataType: 'json', + ajaxOptions: {}, + queryParams: function (params) { + return params; + }, + queryParamsType: 'limit', // undefined + responseHandler: function (res) { + return res; + }, + pagination: false, + onlyInfoPagination: false, + sidePagination: 'client', // client or server + totalRows: 0, // server side need to set + pageNumber: 1, + pageSize: 10, + pageList: [10, 25, 50, 100], + paginationHAlign: 'right', //right, left + paginationVAlign: 'bottom', //bottom, top, both + paginationDetailHAlign: 'left', //right, left + paginationPreText: '‹', + paginationNextText: '›', + search: false, + searchOnEnterKey: false, + strictSearch: false, + searchAlign: 'right', + selectItemName: 'btSelectItem', + showHeader: true, + showFooter: false, + showColumns: false, + showPaginationSwitch: false, + showRefresh: false, + showToggle: false, + buttonsAlign: 'right', + smartDisplay: true, + escape: false, + minimumCountColumns: 1, + idField: undefined, + uniqueId: undefined, + cardView: false, + detailView: false, + detailFormatter: function (index, row) { + return ''; + }, + trimOnSearch: true, + clickToSelect: false, + singleSelect: false, + toolbar: undefined, + toolbarAlign: 'left', + checkboxHeader: true, + sortable: true, + silentSort: true, + maintainSelected: false, + searchTimeOut: 500, + searchText: '', + iconSize: undefined, + iconsPrefix: 'glyphicon', // glyphicon of fa (font awesome) + icons: { + paginationSwitchDown: 'glyphicon-collapse-down icon-chevron-down', + paginationSwitchUp: 'glyphicon-collapse-up icon-chevron-up', + refresh: 'glyphicon-refresh icon-refresh', + toggle: 'glyphicon-list-alt icon-list-alt', + columns: 'glyphicon-th icon-th', + detailOpen: 'glyphicon-plus icon-plus', + detailClose: 'glyphicon-minus icon-minus' + }, + + rowStyle: function (row, index) { + return {}; + }, + + rowAttributes: function (row, index) { + return {}; + }, + + onAll: function (name, args) { + return false; + }, + onClickCell: function (field, value, row, $element) { + return false; + }, + onDblClickCell: function (field, value, row, $element) { + return false; + }, + onClickRow: function (item, $element) { + return false; + }, + onDblClickRow: function (item, $element) { + return false; + }, + onSort: function (name, order) { + return false; + }, + onCheck: function (row) { + return false; + }, + onUncheck: function (row) { + return false; + }, + onCheckAll: function (rows) { + return false; + }, + onUncheckAll: function (rows) { + return false; + }, + onCheckSome: function (rows) { + return false; + }, + onUncheckSome: function (rows) { + return false; + }, + onLoadSuccess: function (data) { + return false; + }, + onLoadError: function (status) { + return false; + }, + onColumnSwitch: function (field, checked) { + return false; + }, + onPageChange: function (number, size) { + return false; + }, + onSearch: function (text) { + return false; + }, + onToggle: function (cardView) { + return false; + }, + onPreBody: function (data) { + return false; + }, + onPostBody: function () { + return false; + }, + onPostHeader: function () { + return false; + }, + onExpandRow: function (index, row, $detail) { + return false; + }, + onCollapseRow: function (index, row) { + return false; + }, + onRefreshOptions: function (options) { + return false; + }, + onResetView: function () { + return false; + } + }; + + BootstrapTable.LOCALES = []; + + BootstrapTable.LOCALES['en-US'] = BootstrapTable.LOCALES['en'] = { + formatLoadingMessage: function () { + return 'Loading, please wait...'; + }, + formatRecordsPerPage: function (pageNumber) { + return sprintf('%s records per page', pageNumber); + }, + formatShowingRows: function (pageFrom, pageTo, totalRows) { + return sprintf('Showing %s to %s of %s rows', pageFrom, pageTo, totalRows); + }, + formatDetailPagination: function (totalRows) { + return sprintf('Showing %s rows', totalRows); + }, + formatSearch: function () { + return 'Search'; + }, + formatNoMatches: function () { + return 'No matching records found'; + }, + formatPaginationSwitch: function () { + return 'Hide/Show pagination'; + }, + formatRefresh: function () { + return 'Refresh'; + }, + formatToggle: function () { + return 'Toggle'; + }, + formatColumns: function () { + return 'Columns'; + }, + formatAllRows: function () { + return 'All'; + } + }; + + $.extend(BootstrapTable.DEFAULTS, BootstrapTable.LOCALES['en-US']); + + BootstrapTable.COLUMN_DEFAULTS = { + radio: false, + checkbox: false, + checkboxEnabled: true, + field: undefined, + title: undefined, + titleTooltip: undefined, + 'class': undefined, + align: undefined, // left, right, center + halign: undefined, // left, right, center + falign: undefined, // left, right, center + valign: undefined, // top, middle, bottom + width: undefined, + sortable: false, + order: 'asc', // asc, desc + visible: true, + switchable: true, + clickToSelect: true, + formatter: undefined, + footerFormatter: undefined, + events: undefined, + sorter: undefined, + sortName: undefined, + cellStyle: undefined, + searchable: true, + searchFormatter: true, + cardVisible: true + }; + + BootstrapTable.EVENTS = { + 'all.bs.table': 'onAll', + 'click-cell.bs.table': 'onClickCell', + 'dbl-click-cell.bs.table': 'onDblClickCell', + 'click-row.bs.table': 'onClickRow', + 'dbl-click-row.bs.table': 'onDblClickRow', + 'sort.bs.table': 'onSort', + 'check.bs.table': 'onCheck', + 'uncheck.bs.table': 'onUncheck', + 'check-all.bs.table': 'onCheckAll', + 'uncheck-all.bs.table': 'onUncheckAll', + 'check-some.bs.table': 'onCheckSome', + 'uncheck-some.bs.table': 'onUncheckSome', + 'load-success.bs.table': 'onLoadSuccess', + 'load-error.bs.table': 'onLoadError', + 'column-switch.bs.table': 'onColumnSwitch', + 'page-change.bs.table': 'onPageChange', + 'search.bs.table': 'onSearch', + 'toggle.bs.table': 'onToggle', + 'pre-body.bs.table': 'onPreBody', + 'post-body.bs.table': 'onPostBody', + 'post-header.bs.table': 'onPostHeader', + 'expand-row.bs.table': 'onExpandRow', + 'collapse-row.bs.table': 'onCollapseRow', + 'refresh-options.bs.table': 'onRefreshOptions', + 'reset-view.bs.table': 'onResetView' + }; + + BootstrapTable.prototype.init = function () { + this.initLocale(); + this.initContainer(); + this.initTable(); + this.initHeader(); + this.initData(); + this.initFooter(); + this.initToolbar(); + this.initPagination(); + this.initBody(); + this.initSearchText(); + this.initServer(); + }; + + BootstrapTable.prototype.initLocale = function () { + if (this.options.locale) { + var parts = this.options.locale.split(/-|_/); + parts[0].toLowerCase(); + parts[1] && parts[1].toUpperCase(); + if ($.fn.bootstrapTable.locales[this.options.locale]) { + // locale as requested + $.extend(this.options, $.fn.bootstrapTable.locales[this.options.locale]); + } else if ($.fn.bootstrapTable.locales[parts.join('-')]) { + // locale with sep set to - (in case original was specified with _) + $.extend(this.options, $.fn.bootstrapTable.locales[parts.join('-')]); + } else if ($.fn.bootstrapTable.locales[parts[0]]) { + // short locale language code (i.e. 'en') + $.extend(this.options, $.fn.bootstrapTable.locales[parts[0]]); + } + } + }; + + BootstrapTable.prototype.initContainer = function () { + this.$container = $([ + '
', + '
', + this.options.paginationVAlign === 'top' || this.options.paginationVAlign === 'both' ? + '
' : + '', + '
', + '
', + '
', + '
', + this.options.formatLoadingMessage(), + '
', + '
', + '', + this.options.paginationVAlign === 'bottom' || this.options.paginationVAlign === 'both' ? + '
' : + '', + '
', + '
' + ].join('')); + + this.$container.insertAfter(this.$el); + this.$tableContainer = this.$container.find('.fixed-table-container'); + this.$tableHeader = this.$container.find('.fixed-table-header'); + this.$tableBody = this.$container.find('.fixed-table-body'); + this.$tableLoading = this.$container.find('.fixed-table-loading'); + this.$tableFooter = this.$container.find('.fixed-table-footer'); + this.$toolbar = this.$container.find('.fixed-table-toolbar'); + this.$pagination = this.$container.find('.fixed-table-pagination'); + + this.$tableBody.append(this.$el); + this.$container.after('
'); + + this.$el.addClass(this.options.classes); + if (this.options.striped) { + this.$el.addClass('table-striped'); + } + if ($.inArray('table-no-bordered', this.options.classes.split(' ')) !== -1) { + this.$tableContainer.addClass('table-no-bordered'); + } + }; + + BootstrapTable.prototype.initTable = function () { + var that = this, + columns = [], + data = []; + + this.$header = this.$el.find('>thead'); + if (!this.$header.length) { + this.$header = $('').appendTo(this.$el); + } + this.$header.find('tr').each(function () { + var column = []; + + $(this).find('th').each(function () { + column.push($.extend({}, { + title: $(this).html(), + 'class': $(this).attr('class'), + titleTooltip: $(this).attr('title'), + rowspan: $(this).attr('rowspan') ? +$(this).attr('rowspan') : undefined, + colspan: $(this).attr('colspan') ? +$(this).attr('colspan') : undefined + }, $(this).data())); + }); + columns.push(column); + }); + if (!$.isArray(this.options.columns[0])) { + this.options.columns = [this.options.columns]; + } + this.options.columns = $.extend(true, [], columns, this.options.columns); + this.columns = []; + + setFieldIndex(this.options.columns); + $.each(this.options.columns, function (i, columns) { + $.each(columns, function (j, column) { + column = $.extend({}, BootstrapTable.COLUMN_DEFAULTS, column); + + if (typeof column.fieldIndex !== 'undefined') { + that.columns[column.fieldIndex] = column; + } + + that.options.columns[i][j] = column; + }); + }); + + // if options.data is setting, do not process tbody data + if (this.options.data.length) { + return; + } + + this.$el.find('>tbody>tr').each(function () { + var row = {}; + + // save tr's id, class and data-* attributes + row._id = $(this).attr('id'); + row._class = $(this).attr('class'); + row._data = getRealDataAttr($(this).data()); + + $(this).find('td').each(function (i) { + var field = that.columns[i].field; + + row[field] = $(this).html(); + // save td's id, class and data-* attributes + row['_' + field + '_id'] = $(this).attr('id'); + row['_' + field + '_class'] = $(this).attr('class'); + row['_' + field + '_rowspan'] = $(this).attr('rowspan'); + row['_' + field + '_title'] = $(this).attr('title'); + row['_' + field + '_data'] = getRealDataAttr($(this).data()); + }); + data.push(row); + }); + this.options.data = data; + }; + + BootstrapTable.prototype.initHeader = function () { + var that = this, + visibleColumns = {}, + html = []; + + this.header = { + fields: [], + styles: [], + classes: [], + formatters: [], + events: [], + sorters: [], + sortNames: [], + cellStyles: [], + searchables: [] + }; + + $.each(this.options.columns, function (i, columns) { + html.push(''); + + if (i == 0 && !that.options.cardView && that.options.detailView) { + html.push(sprintf('
', + that.options.columns.length)); + } + + $.each(columns, function (j, column) { + var text = '', + halign = '', // header align style + align = '', // body align style + style = '', + class_ = sprintf(' class="%s"', column['class']), + order = that.options.sortOrder || column.order, + unitWidth = 'px', + width = column.width; + + if (column.width !== undefined && (!that.options.cardView)) { + if (typeof column.width === 'string') { + if (column.width.indexOf('%') !== -1) { + unitWidth = '%'; + } + } + } + if (column.width && typeof column.width === 'string') { + width = column.width.replace('%', '').replace('px', ''); + } + + halign = sprintf('text-align: %s; ', column.halign ? column.halign : column.align); + align = sprintf('text-align: %s; ', column.align); + style = sprintf('vertical-align: %s; ', column.valign); + style += sprintf('width: %s; ', (column.checkbox || column.radio) && !width ? + '36px' : (width ? width + unitWidth : undefined)); + + if (typeof column.fieldIndex !== 'undefined') { + that.header.fields[column.fieldIndex] = column.field; + that.header.styles[column.fieldIndex] = align + style; + that.header.classes[column.fieldIndex] = class_; + that.header.formatters[column.fieldIndex] = column.formatter; + that.header.events[column.fieldIndex] = column.events; + that.header.sorters[column.fieldIndex] = column.sorter; + that.header.sortNames[column.fieldIndex] = column.sortName; + that.header.cellStyles[column.fieldIndex] = column.cellStyle; + that.header.searchables[column.fieldIndex] = column.searchable; + + if (!column.visible) { + return; + } + + if (that.options.cardView && (!column.cardVisible)) { + return; + } + + visibleColumns[column.field] = column; + } + + html.push(''); + + html.push(sprintf('
', that.options.sortable && column.sortable ? + 'sortable both' : '')); + + text = column.title; + + if (column.checkbox) { + if (!that.options.singleSelect && that.options.checkboxHeader) { + text = ''; + } + that.header.stateField = column.field; + } + if (column.radio) { + text = ''; + that.header.stateField = column.field; + that.options.singleSelect = true; + } + + html.push(text); + html.push('
'); + html.push('
'); + html.push('
'); + html.push(''); + }); + html.push(''); + }); + + this.$header.html(html.join('')); + this.$header.find('th[data-field]').each(function (i) { + $(this).data(visibleColumns[$(this).data('field')]); + }); + this.$container.off('click', '.th-inner').on('click', '.th-inner', function (event) { + var target = $(this); + if (target.closest('.bootstrap-table')[0] !== that.$container[0]) + return false; + + if (that.options.sortable && target.parent().data().sortable) { + that.onSort(event); + } + }); + + this.$header.children().children().off('keypress').on('keypress', function (event) { + if (that.options.sortable && $(this).data().sortable) { + var code = event.keyCode || event.which; + if (code == 13) { //Enter keycode + that.onSort(event); + } + } + }); + + if (!this.options.showHeader || this.options.cardView) { + this.$header.hide(); + this.$tableHeader.hide(); + this.$tableLoading.css('top', 0); + } else { + this.$header.show(); + this.$tableHeader.show(); + this.$tableLoading.css('top', this.$header.outerHeight() + 1); + // Assign the correct sortable arrow + this.getCaret(); + } + + this.$selectAll = this.$header.find('[name="btSelectAll"]'); + this.$selectAll.off('click').on('click', function () { + var checked = $(this).prop('checked'); + that[checked ? 'checkAll' : 'uncheckAll'](); + that.updateSelected(); + }); + }; + + BootstrapTable.prototype.initFooter = function () { + if (!this.options.showFooter || this.options.cardView) { + this.$tableFooter.hide(); + } else { + this.$tableFooter.show(); + } + }; + + /** + * @param data + * @param type: append / prepend + */ + BootstrapTable.prototype.initData = function (data, type) { + if (type === 'append') { + this.data = this.data.concat(data); + } else if (type === 'prepend') { + this.data = [].concat(data).concat(this.data); + } else { + this.data = data || this.options.data; + } + + // Fix #839 Records deleted when adding new row on filtered table + if (type === 'append') { + this.options.data = this.options.data.concat(data); + } else if (type === 'prepend') { + this.options.data = [].concat(data).concat(this.options.data); + } else { + this.options.data = this.data; + } + + if (this.options.sidePagination === 'server') { + return; + } + this.initSort(); + }; + + BootstrapTable.prototype.initSort = function () { + var that = this, + name = this.options.sortName, + order = this.options.sortOrder === 'desc' ? -1 : 1, + index = $.inArray(this.options.sortName, this.header.fields); + + if (index !== -1) { + this.data.sort(function (a, b) { + if (that.header.sortNames[index]) { + name = that.header.sortNames[index]; + } + var aa = getItemField(a, name, that.options.escape), + bb = getItemField(b, name, that.options.escape), + value = calculateObjectValue(that.header, that.header.sorters[index], [aa, bb]); + + if (value !== undefined) { + return order * value; + } + + // Fix #161: undefined or null string sort bug. + if (aa === undefined || aa === null) { + aa = ''; + } + if (bb === undefined || bb === null) { + bb = ''; + } + + // IF both values are numeric, do a numeric comparison + if ($.isNumeric(aa) && $.isNumeric(bb)) { + // Convert numerical values form string to float. + aa = parseFloat(aa); + bb = parseFloat(bb); + if (aa < bb) { + return order * -1; + } + return order; + } + + if (aa === bb) { + return 0; + } + + // If value is not a string, convert to string + if (typeof aa !== 'string') { + aa = aa.toString(); + } + + if (aa.localeCompare(bb) === -1) { + return order * -1; + } + + return order; + }); + } + }; + + BootstrapTable.prototype.onSort = function (event) { + var $this = event.type === "keypress" ? $(event.currentTarget) : $(event.currentTarget).parent(), + $this_ = this.$header.find('th').eq($this.index()); + + this.$header.add(this.$header_).find('span.order').remove(); + + if (this.options.sortName === $this.data('field')) { + this.options.sortOrder = this.options.sortOrder === 'asc' ? 'desc' : 'asc'; + } else { + this.options.sortName = $this.data('field'); + this.options.sortOrder = $this.data('order') === 'asc' ? 'desc' : 'asc'; + } + this.trigger('sort', this.options.sortName, this.options.sortOrder); + + $this.add($this_).data('order', this.options.sortOrder); + + // Assign the correct sortable arrow + this.getCaret(); + + if (this.options.sidePagination === 'server') { + this.initServer(this.options.silentSort); + return; + } + + this.initSort(); + this.initBody(); + }; + + BootstrapTable.prototype.initToolbar = function () { + var that = this, + html = [], + timeoutId = 0, + $keepOpen, + $search, + switchableCount = 0; + + if (this.$toolbar.find('.bars').children().length) { + $('body').append($(this.options.toolbar)); + } + this.$toolbar.html(''); + + if (typeof this.options.toolbar === 'string' || typeof this.options.toolbar === 'object') { + $(sprintf('
', this.options.toolbarAlign)) + .appendTo(this.$toolbar) + .append($(this.options.toolbar)); + } + + // showColumns, showToggle, showRefresh + html = [sprintf('
', + this.options.buttonsAlign, this.options.buttonsAlign)]; + + if (typeof this.options.icons === 'string') { + this.options.icons = calculateObjectValue(null, this.options.icons); + } + + if (this.options.showPaginationSwitch) { + html.push(sprintf(''); + } + + if (this.options.showRefresh) { + html.push(sprintf(''); + } + + if (this.options.showToggle) { + html.push(sprintf(''); + } + + if (this.options.showColumns) { + html.push(sprintf('
', + this.options.formatColumns()), + '', + '', + '
'); + } + + html.push('
'); + + // Fix #188: this.showToolbar is for extensions + if (this.showToolbar || html.length > 2) { + this.$toolbar.append(html.join('')); + } + + if (this.options.showPaginationSwitch) { + this.$toolbar.find('button[name="paginationSwitch"]') + .off('click').on('click', $.proxy(this.togglePagination, this)); + } + + if (this.options.showRefresh) { + this.$toolbar.find('button[name="refresh"]') + .off('click').on('click', $.proxy(this.refresh, this)); + } + + if (this.options.showToggle) { + this.$toolbar.find('button[name="toggle"]') + .off('click').on('click', function () { + that.toggleView(); + }); + } + + if (this.options.showColumns) { + $keepOpen = this.$toolbar.find('.keep-open'); + + if (switchableCount <= this.options.minimumCountColumns) { + $keepOpen.find('input').prop('disabled', true); + } + + $keepOpen.find('li').off('click').on('click', function (event) { + event.stopImmediatePropagation(); + }); + $keepOpen.find('input').off('click').on('click', function () { + var $this = $(this); + + that.toggleColumn(getFieldIndex(that.columns, + $(this).data('field')), $this.prop('checked'), false); + that.trigger('column-switch', $(this).data('field'), $this.prop('checked')); + }); + } + + if (this.options.search) { + html = []; + html.push( + ''); + + this.$toolbar.append(html.join('')); + $search = this.$toolbar.find('.search input'); + $search.off('keyup drop').on('keyup drop', function (event) { + if (that.options.searchOnEnterKey) { + if (event.keyCode !== 13) { + return; + } + } + + clearTimeout(timeoutId); // doesn't matter if it's 0 + timeoutId = setTimeout(function () { + that.onSearch(event); + }, that.options.searchTimeOut); + }); + + if (isIEBrowser()) { + $search.off('mouseup').on('mouseup', function (event) { + clearTimeout(timeoutId); // doesn't matter if it's 0 + timeoutId = setTimeout(function () { + that.onSearch(event); + }, that.options.searchTimeOut); + }); + } + } + }; + + BootstrapTable.prototype.onSearch = function (event) { + var text = $.trim($(event.currentTarget).val()); + + // trim search input + if (this.options.trimOnSearch && $(event.currentTarget).val() !== text) { + $(event.currentTarget).val(text); + } + + if (text === this.searchText) { + return; + } + this.searchText = text; + this.options.searchText = text; + + this.options.pageNumber = 1; + this.initSearch(); + this.updatePagination(); + this.trigger('search', text); + }; + + BootstrapTable.prototype.initSearch = function () { + var that = this; + + if (this.options.sidePagination !== 'server') { + var s = this.searchText && this.searchText.toLowerCase(); + var f = $.isEmptyObject(this.filterColumns) ? null : this.filterColumns; + + // Check filter + this.data = f ? $.grep(this.options.data, function (item, i) { + for (var key in f) { + if ($.isArray(f[key])) { + if ($.inArray(item[key], f[key]) === -1) { + return false; + } + } else if (item[key] !== f[key]) { + return false; + } + } + return true; + }) : this.options.data; + + this.data = s ? $.grep(this.data, function (item, i) { + for (var key in item) { + key = $.isNumeric(key) ? parseInt(key, 10) : key; + var value = item[key], + column = that.columns[getFieldIndex(that.columns, key)], + j = $.inArray(key, that.header.fields); + + // Fix #142: search use formatted data + if (column && column.searchFormatter) { + value = calculateObjectValue(column, + that.header.formatters[j], [value, item, i], value); + } + + var index = $.inArray(key, that.header.fields); + if (index !== -1 && that.header.searchables[index] && (typeof value === 'string' || typeof value === 'number')) { + if (that.options.strictSearch) { + if ((value + '').toLowerCase() === s) { + return true; + } + } else { + if ((value + '').toLowerCase().indexOf(s) !== -1) { + return true; + } + } + } + } + return false; + }) : this.data; + } + }; + + BootstrapTable.prototype.initPagination = function () { + if (!this.options.pagination) { + this.$pagination.hide(); + return; + } else { + this.$pagination.show(); + } + + var that = this, + html = [], + $allSelected = false, + i, from, to, + $pageList, + $first, $pre, + $next, $last, + $number, + data = this.getData(); + + if (this.options.sidePagination !== 'server') { + this.options.totalRows = data.length; + } + + this.totalPages = 0; + if (this.options.totalRows) { + if (this.options.pageSize === this.options.formatAllRows()) { + this.options.pageSize = this.options.totalRows; + $allSelected = true; + } else if (this.options.pageSize === this.options.totalRows) { + // Fix #667 Table with pagination, + // multiple pages and a search that matches to one page throws exception + var pageLst = typeof this.options.pageList === 'string' ? + this.options.pageList.replace('[', '').replace(']', '') + .replace(/ /g, '').toLowerCase().split(',') : this.options.pageList; + if ($.inArray(this.options.formatAllRows().toLowerCase(), pageLst) > -1) { + $allSelected = true; + } + } + + this.totalPages = ~~((this.options.totalRows - 1) / this.options.pageSize) + 1; + + this.options.totalPages = this.totalPages; + } + if (this.totalPages > 0 && this.options.pageNumber > this.totalPages) { + this.options.pageNumber = this.totalPages; + } + + this.pageFrom = (this.options.pageNumber - 1) * this.options.pageSize + 1; + this.pageTo = this.options.pageNumber * this.options.pageSize; + if (this.pageTo > this.options.totalRows) { + this.pageTo = this.options.totalRows; + } + + html.push( + '
', + '', + this.options.onlyInfoPagination ? this.options.formatDetailPagination(this.options.totalRows) : + this.options.formatShowingRows(this.pageFrom, this.pageTo, this.options.totalRows), + ''); + + if (!this.options.onlyInfoPagination) { + html.push(''); + + var pageNumber = [ + sprintf('', + this.options.paginationVAlign === 'top' || this.options.paginationVAlign === 'both' ? + 'dropdown' : 'dropup'), + '', + ''); + + html.push(this.options.formatRecordsPerPage(pageNumber.join(''))); + html.push(''); + + html.push('
', + ''); + } + this.$pagination.html(html.join('')); + + if (!this.options.onlyInfoPagination) { + $pageList = this.$pagination.find('.page-list a'); + $first = this.$pagination.find('.page-first'); + $pre = this.$pagination.find('.page-pre'); + $next = this.$pagination.find('.page-next'); + $last = this.$pagination.find('.page-last'); + $number = this.$pagination.find('.page-number'); + + if (this.options.smartDisplay) { + if (this.totalPages <= 1) { + this.$pagination.find('div.pagination').hide(); + } + if (pageList.length < 2 || this.options.totalRows <= pageList[0]) { + this.$pagination.find('span.page-list').hide(); + } + + // when data is empty, hide the pagination + this.$pagination[this.getData().length ? 'show' : 'hide'](); + } + if ($allSelected) { + this.options.pageSize = this.options.formatAllRows(); + } + $pageList.off('click').on('click', $.proxy(this.onPageListChange, this)); + $first.off('click').on('click', $.proxy(this.onPageFirst, this)); + $pre.off('click').on('click', $.proxy(this.onPagePre, this)); + $next.off('click').on('click', $.proxy(this.onPageNext, this)); + $last.off('click').on('click', $.proxy(this.onPageLast, this)); + $number.off('click').on('click', $.proxy(this.onPageNumber, this)); + } + }; + + BootstrapTable.prototype.updatePagination = function (event) { + // Fix #171: IE disabled button can be clicked bug. + if (event && $(event.currentTarget).hasClass('disabled')) { + return; + } + + if (!this.options.maintainSelected) { + this.resetRows(); + } + + this.initPagination(); + if (this.options.sidePagination === 'server') { + this.initServer(); + } else { + this.initBody(); + } + + this.trigger('page-change', this.options.pageNumber, this.options.pageSize); + }; + + BootstrapTable.prototype.onPageListChange = function (event) { + var $this = $(event.currentTarget); + + $this.parent().addClass('active').siblings().removeClass('active'); + this.options.pageSize = $this.text().toUpperCase() === this.options.formatAllRows().toUpperCase() ? + this.options.formatAllRows() : +$this.text(); + this.$toolbar.find('.page-size').text(this.options.pageSize); + + this.updatePagination(event); + }; + + BootstrapTable.prototype.onPageFirst = function (event) { + this.options.pageNumber = 1; + this.updatePagination(event); + }; + + BootstrapTable.prototype.onPagePre = function (event) { + if ((this.options.pageNumber - 1) == 0) { + this.options.pageNumber = this.options.totalPages; + } else { + this.options.pageNumber--; + } + this.updatePagination(event); + }; + + BootstrapTable.prototype.onPageNext = function (event) { + if ((this.options.pageNumber + 1) > this.options.totalPages) { + this.options.pageNumber = 1; + } else { + this.options.pageNumber++; + } + this.updatePagination(event); + }; + + BootstrapTable.prototype.onPageLast = function (event) { + this.options.pageNumber = this.totalPages; + this.updatePagination(event); + }; + + BootstrapTable.prototype.onPageNumber = function (event) { + if (this.options.pageNumber === +$(event.currentTarget).text()) { + return; + } + this.options.pageNumber = +$(event.currentTarget).text(); + this.updatePagination(event); + }; + + BootstrapTable.prototype.initBody = function (fixedScroll) { + var that = this, + html = [], + data = this.getData(); + + this.trigger('pre-body', data); + + this.$body = this.$el.find('>tbody'); + if (!this.$body.length) { + this.$body = $('').appendTo(this.$el); + } + + //Fix #389 Bootstrap-table-flatJSON is not working + + if (!this.options.pagination || this.options.sidePagination === 'server') { + this.pageFrom = 1; + this.pageTo = data.length; + } + + for (var i = this.pageFrom - 1; i < this.pageTo; i++) { + var key, + item = data[i], + style = {}, + csses = [], + data_ = '', + attributes = {}, + htmlAttributes = []; + + style = calculateObjectValue(this.options, this.options.rowStyle, [item, i], style); + + if (style && style.css) { + for (key in style.css) { + csses.push(key + ': ' + style.css[key]); + } + } + + attributes = calculateObjectValue(this.options, + this.options.rowAttributes, [item, i], attributes); + + if (attributes) { + for (key in attributes) { + htmlAttributes.push(sprintf('%s="%s"', key, escapeHTML(attributes[key]))); + } + } + + if (item._data && !$.isEmptyObject(item._data)) { + $.each(item._data, function (k, v) { + // ignore data-index + if (k === 'index') { + return; + } + data_ += sprintf(' data-%s="%s"', k, v); + }); + } + + html.push('' + ); + + if (this.options.cardView) { + html.push(sprintf('', this.header.fields.length)); + } + + if (!this.options.cardView && this.options.detailView) { + html.push('', + '', + sprintf('', this.options.iconsPrefix, this.options.icons.detailOpen), + '', + ''); + } + + $.each(this.header.fields, function (j, field) { + var text = '', + value = getItemField(item, field, that.options.escape), + type = '', + cellStyle = {}, + id_ = '', + class_ = that.header.classes[j], + data_ = '', + rowspan_ = '', + title_ = '', + column = that.columns[getFieldIndex(that.columns, field)]; + + if (!column.visible) { + return; + } + + style = sprintf('style="%s"', csses.concat(that.header.styles[j]).join('; ')); + + value = calculateObjectValue(column, + that.header.formatters[j], [value, item, i], value); + + // handle td's id and class + if (item['_' + field + '_id']) { + id_ = sprintf(' id="%s"', item['_' + field + '_id']); + } + if (item['_' + field + '_class']) { + class_ = sprintf(' class="%s"', item['_' + field + '_class']); + } + if (item['_' + field + '_rowspan']) { + rowspan_ = sprintf(' rowspan="%s"', item['_' + field + '_rowspan']); + } + if (item['_' + field + '_title']) { + title_ = sprintf(' title="%s"', item['_' + field + '_title']); + } + cellStyle = calculateObjectValue(that.header, + that.header.cellStyles[j], [value, item, i], cellStyle); + if (cellStyle.classes) { + class_ = sprintf(' class="%s"', cellStyle.classes); + } + if (cellStyle.css) { + var csses_ = []; + for (var key in cellStyle.css) { + csses_.push(key + ': ' + cellStyle.css[key]); + } + style = sprintf('style="%s"', csses_.concat(that.header.styles[j]).join('; ')); + } + + if (item['_' + field + '_data'] && !$.isEmptyObject(item['_' + field + '_data'])) { + $.each(item['_' + field + '_data'], function (k, v) { + // ignore data-index + if (k === 'index') { + return; + } + data_ += sprintf(' data-%s="%s"', k, v); + }); + } + + if (column.checkbox || column.radio) { + type = column.checkbox ? 'checkbox' : type; + type = column.radio ? 'radio' : type; + + text = [sprintf(that.options.cardView ? + '
' : '', column['class'] || ''), + '', + that.header.formatters[j] && typeof value === 'string' ? value : '', + that.options.cardView ? '
' : '' + ].join(''); + + item[that.header.stateField] = value === true || (value && value.checked); + } else { + value = typeof value === 'undefined' || value === null ? + that.options.undefinedText : value; + + text = that.options.cardView ? ['
', + that.options.showHeader ? sprintf('%s', style, + getPropertyFromOther(that.columns, 'field', 'title', field)) : '', + sprintf('%s', value), + '
' + ].join('') : [sprintf('', id_, class_, style, data_, rowspan_, title_), + value, + '' + ].join(''); + + // Hide empty data on Card view when smartDisplay is set to true. + if (that.options.cardView && that.options.smartDisplay && value === '') { + // Should set a placeholder for event binding correct fieldIndex + text = '
'; + } + } + + html.push(text); + }); + + if (this.options.cardView) { + html.push(''); + } + + html.push(''); + } + + // show no records + if (!html.length) { + html.push('', + sprintf('%s', + this.$header.find('th').length, this.options.formatNoMatches()), + ''); + } + + this.$body.html(html.join('')); + + if (!fixedScroll) { + this.scrollTo(0); + } + + // click to select by column + this.$body.find('> tr[data-index] > td').off('click dblclick').on('click dblclick', function (e) { + var $td = $(this), + $tr = $td.parent(), + item = that.data[$tr.data('index')], + index = $td[0].cellIndex, + field = that.header.fields[that.options.detailView && !that.options.cardView ? index - 1 : index], + column = that.columns[getFieldIndex(that.columns, field)], + value = getItemField(item, field, that.options.escape); + + if ($td.find('.detail-icon').length) { + return; + } + + that.trigger(e.type === 'click' ? 'click-cell' : 'dbl-click-cell', field, value, item, $td); + that.trigger(e.type === 'click' ? 'click-row' : 'dbl-click-row', item, $tr); + + // if click to select - then trigger the checkbox/radio click + if (e.type === 'click' && that.options.clickToSelect && column.clickToSelect) { + var $selectItem = $tr.find(sprintf('[name="%s"]', that.options.selectItemName)); + if ($selectItem.length) { + $selectItem[0].click(); // #144: .trigger('click') bug + } + } + }); + + this.$body.find('> tr[data-index] > td > .detail-icon').off('click').on('click', function () { + var $this = $(this), + $tr = $this.parent().parent(), + index = $tr.data('index'), + row = data[index]; // Fix #980 Detail view, when searching, returns wrong row + + // remove and update + if ($tr.next().is('tr.detail-view')) { + $this.find('i').attr('class', sprintf('%s %s', that.options.iconsPrefix, that.options.icons.detailOpen)); + $tr.next().remove(); + that.trigger('collapse-row', index, row); + } else { + $this.find('i').attr('class', sprintf('%s %s', that.options.iconsPrefix, that.options.icons.detailClose)); + $tr.after(sprintf('', $tr.find('td').length)); + var $element = $tr.next().find('td'); + var content = calculateObjectValue(that.options, that.options.detailFormatter, [index, row, $element], ''); + if($element.length === 1) { + $element.append(content); + } + that.trigger('expand-row', index, row, $element); + } + that.resetView(); + }); + + this.$selectItem = this.$body.find(sprintf('[name="%s"]', this.options.selectItemName)); + this.$selectItem.off('click').on('click', function (event) { + event.stopImmediatePropagation(); + + var $this = $(this), + checked = $this.prop('checked'), + row = that.data[$this.data('index')]; + + if (that.options.maintainSelected && $(this).is(':radio')) { + $.each(that.options.data, function (i, row) { + row[that.header.stateField] = false; + }); + } + + row[that.header.stateField] = checked; + + if (that.options.singleSelect) { + that.$selectItem.not(this).each(function () { + that.data[$(this).data('index')][that.header.stateField] = false; + }); + that.$selectItem.filter(':checked').not(this).prop('checked', false); + } + + that.updateSelected(); + that.trigger(checked ? 'check' : 'uncheck', row, $this); + }); + + $.each(this.header.events, function (i, events) { + if (!events) { + return; + } + // fix bug, if events is defined with namespace + if (typeof events === 'string') { + events = calculateObjectValue(null, events); + } + + var field = that.header.fields[i], + fieldIndex = $.inArray(field, that.getVisibleFields()); + + if (that.options.detailView && !that.options.cardView) { + fieldIndex += 1; + } + + for (var key in events) { + that.$body.find('>tr:not(.no-records-found)').each(function () { + var $tr = $(this), + $td = $tr.find(that.options.cardView ? '.card-view' : 'td').eq(fieldIndex), + index = key.indexOf(' '), + name = key.substring(0, index), + el = key.substring(index + 1), + func = events[key]; + + $td.find(el).off(name).on(name, function (e) { + var index = $tr.data('index'), + row = that.data[index], + value = row[field]; + + func.apply(this, [e, value, row, index]); + }); + }); + } + }); + + this.updateSelected(); + this.resetView(); + + this.trigger('post-body'); + }; + + BootstrapTable.prototype.initServer = function (silent, query) { + var that = this, + data = {}, + params = { + searchText: this.searchText, + sortName: this.options.sortName, + sortOrder: this.options.sortOrder + }, + request; + + if(this.options.pagination) { + params.pageSize = this.options.pageSize === this.options.formatAllRows() ? + this.options.totalRows : this.options.pageSize; + params.pageNumber = this.options.pageNumber; + } + + if (!this.options.url && !this.options.ajax) { + return; + } + + if (this.options.queryParamsType === 'limit') { + params = { + search: params.searchText, + sort: params.sortName, + order: params.sortOrder + }; + if (this.options.pagination) { + params.limit = this.options.pageSize === this.options.formatAllRows() ? + this.options.totalRows : this.options.pageSize; + params.offset = this.options.pageSize === this.options.formatAllRows() ? + 0 : this.options.pageSize * (this.options.pageNumber - 1); + } + } + + if (!($.isEmptyObject(this.filterColumnsPartial))) { + params['filter'] = JSON.stringify(this.filterColumnsPartial, null); + } + + data = calculateObjectValue(this.options, this.options.queryParams, [params], data); + + $.extend(data, query || {}); + + // false to stop request + if (data === false) { + return; + } + + if (!silent) { + this.$tableLoading.show(); + } + request = $.extend({}, calculateObjectValue(null, this.options.ajaxOptions), { + type: this.options.method, + url: this.options.url, + data: this.options.contentType === 'application/json' && this.options.method === 'post' ? + JSON.stringify(data) : data, + cache: this.options.cache, + contentType: this.options.contentType, + dataType: this.options.dataType, + success: function (res) { + res = calculateObjectValue(that.options, that.options.responseHandler, [res], res); + + that.load(res); + that.trigger('load-success', res); + if (!silent) that.$tableLoading.hide(); + }, + error: function (res) { + that.trigger('load-error', res.status, res); + if (!silent) that.$tableLoading.hide(); + } + }); + + if (this.options.ajax) { + calculateObjectValue(this, this.options.ajax, [request], null); + } else { + $.ajax(request); + } + }; + + BootstrapTable.prototype.initSearchText = function () { + if (this.options.search) { + if (this.options.searchText !== '') { + var $search = this.$toolbar.find('.search input'); + $search.val(this.options.searchText); + this.onSearch({currentTarget: $search}); + } + } + }; + + BootstrapTable.prototype.getCaret = function () { + var that = this; + + $.each(this.$header.find('th'), function (i, th) { + $(th).find('.sortable').removeClass('desc asc').addClass($(th).data('field') === that.options.sortName ? that.options.sortOrder : 'both'); + }); + }; + + BootstrapTable.prototype.updateSelected = function () { + var checkAll = this.$selectItem.filter(':enabled').length && + this.$selectItem.filter(':enabled').length === + this.$selectItem.filter(':enabled').filter(':checked').length; + + this.$selectAll.add(this.$selectAll_).prop('checked', checkAll); + + this.$selectItem.each(function () { + $(this).closest('tr')[$(this).prop('checked') ? 'addClass' : 'removeClass']('selected'); + }); + }; + + BootstrapTable.prototype.updateRows = function () { + var that = this; + + this.$selectItem.each(function () { + that.data[$(this).data('index')][that.header.stateField] = $(this).prop('checked'); + }); + }; + + BootstrapTable.prototype.resetRows = function () { + var that = this; + + $.each(this.data, function (i, row) { + that.$selectAll.prop('checked', false); + that.$selectItem.prop('checked', false); + if (that.header.stateField) { + row[that.header.stateField] = false; + } + }); + }; + + BootstrapTable.prototype.trigger = function (name) { + var args = Array.prototype.slice.call(arguments, 1); + + name += '.bs.table'; + this.options[BootstrapTable.EVENTS[name]].apply(this.options, args); + this.$el.trigger($.Event(name), args); + + this.options.onAll(name, args); + this.$el.trigger($.Event('all.bs.table'), [name, args]); + }; + + BootstrapTable.prototype.resetHeader = function () { + // fix #61: the hidden table reset header bug. + // fix bug: get $el.css('width') error sometime (height = 500) + clearTimeout(this.timeoutId_); + this.timeoutId_ = setTimeout($.proxy(this.fitHeader, this), this.$el.is(':hidden') ? 100 : 0); + }; + + BootstrapTable.prototype.fitHeader = function () { + var that = this, + fixedBody, + scrollWidth, + focused, + focusedTemp; + + if (that.$el.is(':hidden')) { + that.timeoutId_ = setTimeout($.proxy(that.fitHeader, that), 100); + return; + } + fixedBody = this.$tableBody.get(0); + + scrollWidth = fixedBody.scrollWidth > fixedBody.clientWidth && + fixedBody.scrollHeight > fixedBody.clientHeight + this.$header.outerHeight() ? + getScrollBarWidth() : 0; + + this.$el.css('margin-top', -this.$header.outerHeight()); + + focused = $(':focus'); + if (focused.length > 0) { + var $th = focused.parents('th'); + if ($th.length > 0) { + var dataField = $th.attr('data-field'); + if (dataField !== undefined) { + var $headerTh = this.$header.find("[data-field='" + dataField + "']"); + if ($headerTh.length > 0) { + $headerTh.find(":input").addClass("focus-temp"); + } + } + } + } + + this.$header_ = this.$header.clone(true, true); + this.$selectAll_ = this.$header_.find('[name="btSelectAll"]'); + this.$tableHeader.css({ + 'margin-right': scrollWidth + }).find('table').css('width', this.$el.outerWidth()) + .html('').attr('class', this.$el.attr('class')) + .append(this.$header_); + + + focusedTemp = $('.focus-temp:visible:eq(0)'); + if (focusedTemp.length > 0) { + focusedTemp.focus(); + this.$header.find('.focus-temp').removeClass('focus-temp'); + } + + // fix bug: $.data() is not working as expected after $.append() + this.$header.find('th[data-field]').each(function (i) { + that.$header_.find(sprintf('th[data-field="%s"]', $(this).data('field'))).data($(this).data()); + }); + + var visibleFields = this.getVisibleFields(); + + this.$body.find('>tr:first-child:not(.no-records-found) > *').each(function (i) { + var $this = $(this), + index = i; + + if (that.options.detailView && !that.options.cardView) { + if (i === 0) { + that.$header_.find('th.detail').find('.fht-cell').width($this.innerWidth()); + } + index = i - 1; + } + + that.$header_.find(sprintf('th[data-field="%s"]', visibleFields[index])) + .find('.fht-cell').width($this.innerWidth()); + }); + // horizontal scroll event + // TODO: it's probably better improving the layout than binding to scroll event + this.$tableBody.off('scroll').on('scroll', function () { + that.$tableHeader.scrollLeft($(this).scrollLeft()); + + if (that.options.showFooter && !that.options.cardView) { + that.$tableFooter.scrollLeft($(this).scrollLeft()); + } + }); + that.trigger('post-header'); + }; + + BootstrapTable.prototype.resetFooter = function () { + var that = this, + data = that.getData(), + html = []; + + if (!this.options.showFooter || this.options.cardView) { //do nothing + return; + } + + if (!this.options.cardView && this.options.detailView) { + html.push('
 
'); + } + + $.each(this.columns, function (i, column) { + var falign = '', // footer align style + style = '', + class_ = sprintf(' class="%s"', column['class']); + + if (!column.visible) { + return; + } + + if (that.options.cardView && (!column.cardVisible)) { + return; + } + + falign = sprintf('text-align: %s; ', column.falign ? column.falign : column.align); + style = sprintf('vertical-align: %s; ', column.valign); + + html.push(''); + html.push('
'); + + html.push(calculateObjectValue(column, column.footerFormatter, [data], ' ') || ' '); + + html.push('
'); + html.push('
'); + html.push(''); + html.push(''); + }); + + this.$tableFooter.find('tr').html(html.join('')); + clearTimeout(this.timeoutFooter_); + this.timeoutFooter_ = setTimeout($.proxy(this.fitFooter, this), + this.$el.is(':hidden') ? 100 : 0); + }; + + BootstrapTable.prototype.fitFooter = function () { + var that = this, + $footerTd, + elWidth, + scrollWidth; + + clearTimeout(this.timeoutFooter_); + if (this.$el.is(':hidden')) { + this.timeoutFooter_ = setTimeout($.proxy(this.fitFooter, this), 100); + return; + } + + elWidth = this.$el.css('width'); + scrollWidth = elWidth > this.$tableBody.width() ? getScrollBarWidth() : 0; + + this.$tableFooter.css({ + 'margin-right': scrollWidth + }).find('table').css('width', elWidth) + .attr('class', this.$el.attr('class')); + + $footerTd = this.$tableFooter.find('td'); + + this.$body.find('>tr:first-child:not(.no-records-found) > *').each(function (i) { + var $this = $(this); + + $footerTd.eq(i).find('.fht-cell').width($this.innerWidth()); + }); + }; + + BootstrapTable.prototype.toggleColumn = function (index, checked, needUpdate) { + if (index === -1) { + return; + } + this.columns[index].visible = checked; + this.initHeader(); + this.initSearch(); + this.initPagination(); + this.initBody(); + + if (this.options.showColumns) { + var $items = this.$toolbar.find('.keep-open input').prop('disabled', false); + + if (needUpdate) { + $items.filter(sprintf('[value="%s"]', index)).prop('checked', checked); + } + + if ($items.filter(':checked').length <= this.options.minimumCountColumns) { + $items.filter(':checked').prop('disabled', true); + } + } + }; + + BootstrapTable.prototype.toggleRow = function (index, uniqueId, visible) { + if (index === -1) { + return; + } + + this.$body.find(typeof index !== 'undefined' ? + sprintf('tr[data-index="%s"]', index) : + sprintf('tr[data-uniqueid="%s"]', uniqueId)) + [visible ? 'show' : 'hide'](); + }; + + BootstrapTable.prototype.getVisibleFields = function () { + var that = this, + visibleFields = []; + + $.each(this.header.fields, function (j, field) { + var column = that.columns[getFieldIndex(that.columns, field)]; + + if (!column.visible) { + return; + } + visibleFields.push(field); + }); + return visibleFields; + }; + + // PUBLIC FUNCTION DEFINITION + // ======================= + + BootstrapTable.prototype.resetView = function (params) { + var padding = 0; + + if (params && params.height) { + this.options.height = params.height; + } + + this.$selectAll.prop('checked', this.$selectItem.length > 0 && + this.$selectItem.length === this.$selectItem.filter(':checked').length); + + if (this.options.height) { + var toolbarHeight = getRealHeight(this.$toolbar), + paginationHeight = getRealHeight(this.$pagination), + height = this.options.height - toolbarHeight - paginationHeight; + + this.$tableContainer.css('height', height + 'px'); + } + + if (this.options.cardView) { + // remove the element css + this.$el.css('margin-top', '0'); + this.$tableContainer.css('padding-bottom', '0'); + return; + } + + if (this.options.showHeader && this.options.height) { + this.$tableHeader.show(); + this.resetHeader(); + padding += this.$header.outerHeight(); + } else { + this.$tableHeader.hide(); + this.trigger('post-header'); + } + + if (this.options.showFooter) { + this.resetFooter(); + if (this.options.height) { + padding += this.$tableFooter.outerHeight() + 1; + } + } + + // Assign the correct sortable arrow + this.getCaret(); + this.$tableContainer.css('padding-bottom', padding + 'px'); + this.trigger('reset-view'); + }; + + BootstrapTable.prototype.getData = function (useCurrentPage) { + return (this.searchText || !$.isEmptyObject(this.filterColumns) || !$.isEmptyObject(this.filterColumnsPartial)) ? + (useCurrentPage ? this.data.slice(this.pageFrom - 1, this.pageTo) : this.data) : + (useCurrentPage ? this.options.data.slice(this.pageFrom - 1, this.pageTo) : this.options.data); + }; + + BootstrapTable.prototype.load = function (data) { + var fixedScroll = false; + + // #431: support pagination + if (this.options.sidePagination === 'server') { + this.options.totalRows = data.total; + fixedScroll = data.fixedScroll; + data = data[this.options.dataField]; + } else if (!$.isArray(data)) { // support fixedScroll + fixedScroll = data.fixedScroll; + data = data.data; + } + + this.initData(data); + this.initSearch(); + this.initPagination(); + this.initBody(fixedScroll); + }; + + BootstrapTable.prototype.append = function (data) { + this.initData(data, 'append'); + this.initSearch(); + this.initPagination(); + this.initSort(); + this.initBody(true); + }; + + BootstrapTable.prototype.prepend = function (data) { + this.initData(data, 'prepend'); + this.initSearch(); + this.initPagination(); + this.initSort(); + this.initBody(true); + }; + + BootstrapTable.prototype.remove = function (params) { + var len = this.options.data.length, + i, row; + + if (!params.hasOwnProperty('field') || !params.hasOwnProperty('values')) { + return; + } + + for (i = len - 1; i >= 0; i--) { + row = this.options.data[i]; + + if (!row.hasOwnProperty(params.field)) { + continue; + } + if ($.inArray(row[params.field], params.values) !== -1) { + this.options.data.splice(i, 1); + } + } + + if (len === this.options.data.length) { + return; + } + + this.initSearch(); + this.initPagination(); + this.initSort(); + this.initBody(true); + }; + + BootstrapTable.prototype.removeAll = function () { + if (this.options.data.length > 0) { + this.options.data.splice(0, this.options.data.length); + this.initSearch(); + this.initPagination(); + this.initBody(true); + } + }; + + BootstrapTable.prototype.getRowByUniqueId = function (id) { + var uniqueId = this.options.uniqueId, + len = this.options.data.length, + dataRow = null, + i, row, rowUniqueId; + + for (i = len - 1; i >= 0; i--) { + row = this.options.data[i]; + + if (row.hasOwnProperty(uniqueId)) { // uniqueId is a column + rowUniqueId = row[uniqueId]; + } else if(row._data.hasOwnProperty(uniqueId)) { // uniqueId is a row data property + rowUniqueId = row._data[uniqueId]; + } else { + continue; + } + + if (typeof rowUniqueId === 'string') { + id = id.toString(); + } else if (typeof rowUniqueId === 'number') { + if ((Number(rowUniqueId) === rowUniqueId) && (rowUniqueId % 1 === 0)) { + id = parseInt(id); + } else if ((rowUniqueId === Number(rowUniqueId)) && (rowUniqueId !== 0)) { + id = parseFloat(id); + } + } + + if (rowUniqueId === id) { + dataRow = row; + break; + } + } + + return dataRow; + }; + + BootstrapTable.prototype.removeByUniqueId = function (id) { + var len = this.options.data.length, + row = this.getRowByUniqueId(id); + + if (row) { + this.options.data.splice(this.options.data.indexOf(row), 1); + } + + if (len === this.options.data.length) { + return; + } + + this.initSearch(); + this.initPagination(); + this.initBody(true); + }; + + BootstrapTable.prototype.updateByUniqueId = function (params) { + var rowId; + + if (!params.hasOwnProperty('id') || !params.hasOwnProperty('row')) { + return; + } + + rowId = $.inArray(this.getRowByUniqueId(params.id), this.options.data); + + if (rowId === -1) { + return; + } + + $.extend(this.data[rowId], params.row); + this.initSort(); + this.initBody(true); + }; + + BootstrapTable.prototype.insertRow = function (params) { + if (!params.hasOwnProperty('index') || !params.hasOwnProperty('row')) { + return; + } + this.data.splice(params.index, 0, params.row); + this.initSearch(); + this.initPagination(); + this.initSort(); + this.initBody(true); + }; + + BootstrapTable.prototype.updateRow = function (params) { + if (!params.hasOwnProperty('index') || !params.hasOwnProperty('row')) { + return; + } + $.extend(this.data[params.index], params.row); + this.initSort(); + this.initBody(true); + }; + + BootstrapTable.prototype.showRow = function (params) { + if (!params.hasOwnProperty('index') && !params.hasOwnProperty('uniqueId')) { + return; + } + this.toggleRow(params.index, params.uniqueId, true); + }; + + BootstrapTable.prototype.hideRow = function (params) { + if (!params.hasOwnProperty('index') && !params.hasOwnProperty('uniqueId')) { + return; + } + this.toggleRow(params.index, params.uniqueId, false); + }; + + BootstrapTable.prototype.getRowsHidden = function (show) { + var rows = $(this.$body[0]).children().filter(':hidden'), + i = 0; + if (show) { + for (; i < rows.length; i++) { + $(rows[i]).show(); + } + } + return rows; + }; + + BootstrapTable.prototype.mergeCells = function (options) { + var row = options.index, + col = $.inArray(options.field, this.getVisibleFields()), + rowspan = options.rowspan || 1, + colspan = options.colspan || 1, + i, j, + $tr = this.$body.find('>tr'), + $td; + + if (this.options.detailView && !this.options.cardView) { + col += 1; + } + + $td = $tr.eq(row).find('>td').eq(col); + + if (row < 0 || col < 0 || row >= this.data.length) { + return; + } + + for (i = row; i < row + rowspan; i++) { + for (j = col; j < col + colspan; j++) { + $tr.eq(i).find('>td').eq(j).hide(); + } + } + + $td.attr('rowspan', rowspan).attr('colspan', colspan).show(); + }; + + BootstrapTable.prototype.updateCell = function (params) { + if (!params.hasOwnProperty('index') || + !params.hasOwnProperty('field') || + !params.hasOwnProperty('value')) { + return; + } + this.data[params.index][params.field] = params.value; + + if (params.reinit === false) { + return; + } + this.initSort(); + this.initBody(true); + }; + + BootstrapTable.prototype.getOptions = function () { + return this.options; + }; + + BootstrapTable.prototype.getSelections = function () { + var that = this; + + return $.grep(this.data, function (row) { + return row[that.header.stateField]; + }); + }; + + BootstrapTable.prototype.getAllSelections = function () { + var that = this; + + return $.grep(this.options.data, function (row) { + return row[that.header.stateField]; + }); + }; + + BootstrapTable.prototype.checkAll = function () { + this.checkAll_(true); + }; + + BootstrapTable.prototype.uncheckAll = function () { + this.checkAll_(false); + }; + + BootstrapTable.prototype.checkInvert = function () { + var that = this; + var rows = that.$selectItem.filter(':enabled'); + var checked = rows.filter(':checked'); + rows.each(function() { + $(this).prop('checked', !$(this).prop('checked')); + }); + that.updateRows(); + that.updateSelected(); + that.trigger('uncheck-some', checked); + checked = that.getSelections(); + that.trigger('check-some', checked); + }; + + BootstrapTable.prototype.checkAll_ = function (checked) { + var rows; + if (!checked) { + rows = this.getSelections(); + } + this.$selectAll.add(this.$selectAll_).prop('checked', checked); + this.$selectItem.filter(':enabled').prop('checked', checked); + this.updateRows(); + if (checked) { + rows = this.getSelections(); + } + this.trigger(checked ? 'check-all' : 'uncheck-all', rows); + }; + + BootstrapTable.prototype.check = function (index) { + this.check_(true, index); + }; + + BootstrapTable.prototype.uncheck = function (index) { + this.check_(false, index); + }; + + BootstrapTable.prototype.check_ = function (checked, index) { + var $el = this.$selectItem.filter(sprintf('[data-index="%s"]', index)).prop('checked', checked); + this.data[index][this.header.stateField] = checked; + this.updateSelected(); + this.trigger(checked ? 'check' : 'uncheck', this.data[index], $el); + }; + + BootstrapTable.prototype.checkBy = function (obj) { + this.checkBy_(true, obj); + }; + + BootstrapTable.prototype.uncheckBy = function (obj) { + this.checkBy_(false, obj); + }; + + BootstrapTable.prototype.checkBy_ = function (checked, obj) { + if (!obj.hasOwnProperty('field') || !obj.hasOwnProperty('values')) { + return; + } + + var that = this, + rows = []; + $.each(this.options.data, function (index, row) { + if (!row.hasOwnProperty(obj.field)) { + return false; + } + if ($.inArray(row[obj.field], obj.values) !== -1) { + var $el = that.$selectItem.filter(':enabled') + .filter(sprintf('[data-index="%s"]', index)).prop('checked', checked); + row[that.header.stateField] = checked; + rows.push(row); + that.trigger(checked ? 'check' : 'uncheck', row, $el); + } + }); + this.updateSelected(); + this.trigger(checked ? 'check-some' : 'uncheck-some', rows); + }; + + BootstrapTable.prototype.destroy = function () { + this.$el.insertBefore(this.$container); + $(this.options.toolbar).insertBefore(this.$el); + this.$container.next().remove(); + this.$container.remove(); + this.$el.html(this.$el_.html()) + .css('margin-top', '0') + .attr('class', this.$el_.attr('class') || ''); // reset the class + }; + + BootstrapTable.prototype.showLoading = function () { + this.$tableLoading.show(); + }; + + BootstrapTable.prototype.hideLoading = function () { + this.$tableLoading.hide(); + }; + + BootstrapTable.prototype.togglePagination = function () { + this.options.pagination = !this.options.pagination; + var button = this.$toolbar.find('button[name="paginationSwitch"] i'); + if (this.options.pagination) { + button.attr("class", this.options.iconsPrefix + " " + this.options.icons.paginationSwitchDown); + } else { + button.attr("class", this.options.iconsPrefix + " " + this.options.icons.paginationSwitchUp); + } + this.updatePagination(); + }; + + BootstrapTable.prototype.refresh = function (params) { + if (params && params.url) { + this.options.url = params.url; + this.options.pageNumber = 1; + } + this.initServer(params && params.silent, params && params.query); + }; + + BootstrapTable.prototype.resetWidth = function () { + if (this.options.showHeader && this.options.height) { + this.fitHeader(); + } + if (this.options.showFooter) { + this.fitFooter(); + } + }; + + BootstrapTable.prototype.showColumn = function (field) { + this.toggleColumn(getFieldIndex(this.columns, field), true, true); + }; + + BootstrapTable.prototype.hideColumn = function (field) { + this.toggleColumn(getFieldIndex(this.columns, field), false, true); + }; + + BootstrapTable.prototype.getHiddenColumns = function () { + return $.grep(this.columns, function (column) { + return !column.visible; + }); + }; + + BootstrapTable.prototype.filterBy = function (columns) { + this.filterColumns = $.isEmptyObject(columns) ? {} : columns; + this.options.pageNumber = 1; + this.initSearch(); + this.updatePagination(); + }; + + BootstrapTable.prototype.scrollTo = function (value) { + if (typeof value === 'string') { + value = value === 'bottom' ? this.$tableBody[0].scrollHeight : 0; + } + if (typeof value === 'number') { + this.$tableBody.scrollTop(value); + } + if (typeof value === 'undefined') { + return this.$tableBody.scrollTop(); + } + }; + + BootstrapTable.prototype.getScrollPosition = function () { + return this.scrollTo(); + }; + + BootstrapTable.prototype.selectPage = function (page) { + if (page > 0 && page <= this.options.totalPages) { + this.options.pageNumber = page; + this.updatePagination(); + } + }; + + BootstrapTable.prototype.prevPage = function () { + if (this.options.pageNumber > 1) { + this.options.pageNumber--; + this.updatePagination(); + } + }; + + BootstrapTable.prototype.nextPage = function () { + if (this.options.pageNumber < this.options.totalPages) { + this.options.pageNumber++; + this.updatePagination(); + } + }; + + BootstrapTable.prototype.toggleView = function () { + this.options.cardView = !this.options.cardView; + this.initHeader(); + // Fixed remove toolbar when click cardView button. + //that.initToolbar(); + this.initBody(); + this.trigger('toggle', this.options.cardView); + }; + + BootstrapTable.prototype.refreshOptions = function (options) { + //If the objects are equivalent then avoid the call of destroy / init methods + if (compareObjects(this.options, options, true)) { + return; + } + this.options = $.extend(this.options, options); + this.trigger('refresh-options', this.options); + this.destroy(); + this.init(); + }; + + BootstrapTable.prototype.resetSearch = function (text) { + var $search = this.$toolbar.find('.search input'); + $search.val(text || ''); + this.onSearch({currentTarget: $search}); + }; + + BootstrapTable.prototype.expandRow_ = function (expand, index) { + var $tr = this.$body.find(sprintf('> tr[data-index="%s"]', index)); + if ($tr.next().is('tr.detail-view') === (expand ? false : true)) { + $tr.find('> td > .detail-icon').click(); + } + }; + + BootstrapTable.prototype.expandRow = function (index) { + this.expandRow_(true, index); + }; + + BootstrapTable.prototype.collapseRow = function (index) { + this.expandRow_(false, index); + }; + + BootstrapTable.prototype.expandAllRows = function (isSubTable) { + if (isSubTable) { + var $tr = this.$body.find(sprintf('> tr[data-index="%s"]', 0)), + that = this, + detailIcon = null, + executeInterval = false, + idInterval = -1; + + if (!$tr.next().is('tr.detail-view')) { + $tr.find('> td > .detail-icon').click(); + executeInterval = true; + } else if (!$tr.next().next().is('tr.detail-view')) { + $tr.next().find(".detail-icon").click(); + executeInterval = true; + } + + if (executeInterval) { + try { + idInterval = setInterval(function () { + detailIcon = that.$body.find("tr.detail-view").last().find(".detail-icon"); + if (detailIcon.length > 0) { + detailIcon.click(); + } else { + clearInterval(idInterval); + } + }, 1); + } catch (ex) { + clearInterval(idInterval); + } + } + } else { + var trs = this.$body.children(); + for (var i = 0; i < trs.length; i++) { + this.expandRow_(true, $(trs[i]).data("index")); + } + } + }; + + BootstrapTable.prototype.collapseAllRows = function (isSubTable) { + if (isSubTable) { + this.expandRow_(false, 0); + } else { + var trs = this.$body.children(); + for (var i = 0; i < trs.length; i++) { + this.expandRow_(false, $(trs[i]).data("index")); + } + } + }; + + BootstrapTable.prototype.updateFormatText = function (name, text) { + if (this.options[sprintf('format%s', name)]) { + if (typeof text === 'string') { + this.options[sprintf('format%s', name)] = function () { + return text; + }; + } else if (typeof text === 'function') { + this.options[sprintf('format%s', name)] = text; + } + } + this.initToolbar(); + this.initPagination(); + this.initBody(); + }; + + // BOOTSTRAP TABLE PLUGIN DEFINITION + // ======================= + + var allowedMethods = [ + 'getOptions', + 'getSelections', 'getAllSelections', 'getData', + 'load', 'append', 'prepend', 'remove', 'removeAll', + 'insertRow', 'updateRow', 'updateCell', 'updateByUniqueId', 'removeByUniqueId', + 'getRowByUniqueId', 'showRow', 'hideRow', 'getRowsHidden', + 'mergeCells', + 'checkAll', 'uncheckAll', 'checkInvert', + 'check', 'uncheck', + 'checkBy', 'uncheckBy', + 'refresh', + 'resetView', + 'resetWidth', + 'destroy', + 'showLoading', 'hideLoading', + 'showColumn', 'hideColumn', 'getHiddenColumns', + 'filterBy', + 'scrollTo', + 'getScrollPosition', + 'selectPage', 'prevPage', 'nextPage', + 'togglePagination', + 'toggleView', + 'refreshOptions', + 'resetSearch', + 'expandRow', 'collapseRow', 'expandAllRows', 'collapseAllRows', + 'updateFormatText' + ]; + + $.fn.bootstrapTable = function (option) { + var value, + args = Array.prototype.slice.call(arguments, 1); + + this.each(function () { + var $this = $(this), + data = $this.data('bootstrap.table'), + options = $.extend({}, BootstrapTable.DEFAULTS, $this.data(), + typeof option === 'object' && option); + + if (typeof option === 'string') { + if ($.inArray(option, allowedMethods) < 0) { + throw new Error("Unknown method: " + option); + } + + if (!data) { + return; + } + + value = data[option].apply(data, args); + + if (option === 'destroy') { + $this.removeData('bootstrap.table'); + } + } + + if (!data) { + $this.data('bootstrap.table', (data = new BootstrapTable(this, options))); + } + }); + + return typeof value === 'undefined' ? this : value; + }; + + $.fn.bootstrapTable.Constructor = BootstrapTable; + $.fn.bootstrapTable.defaults = BootstrapTable.DEFAULTS; + $.fn.bootstrapTable.columnDefaults = BootstrapTable.COLUMN_DEFAULTS; + $.fn.bootstrapTable.locales = BootstrapTable.LOCALES; + $.fn.bootstrapTable.methods = allowedMethods; + $.fn.bootstrapTable.utils = { + sprintf: sprintf, + getFieldIndex: getFieldIndex, + compareObjects: compareObjects, + calculateObjectValue: calculateObjectValue + }; + + // BOOTSTRAP TABLE INIT + // ======================= + + $(function () { + $('[data-toggle="table"]').bootstrapTable(); + }); +}(jQuery); diff --git a/js/bstable/js/bootstrap.min.js b/js/bstable/js/bootstrap.min.js new file mode 100644 index 0000000..c8f82e5 --- /dev/null +++ b/js/bstable/js/bootstrap.min.js @@ -0,0 +1,7 @@ +/*! + * Bootstrap v3.3.4 (http://getbootstrap.com) + * Copyright 2011-2015 Twitter, Inc. + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + */ +if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){"use strict";var b=a.fn.jquery.split(" ")[0].split(".");if(b[0]<2&&b[1]<9||1==b[0]&&9==b[1]&&b[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher")}(jQuery),+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]};return!1}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one("bsTransitionEnd",function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b(),a.support.transition&&(a.event.special.bsTransitionEnd={bindType:a.support.transition.end,delegateType:a.support.transition.end,handle:function(b){return a(b.target).is(this)?b.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var c=a(this),e=c.data("bs.alert");e||c.data("bs.alert",e=new d(this)),"string"==typeof b&&e[b].call(c)})}var c='[data-dismiss="alert"]',d=function(b){a(b).on("click",c,this.close)};d.VERSION="3.3.4",d.TRANSITION_DURATION=150,d.prototype.close=function(b){function c(){g.detach().trigger("closed.bs.alert").remove()}var e=a(this),f=e.attr("data-target");f||(f=e.attr("href"),f=f&&f.replace(/.*(?=#[^\s]*$)/,""));var g=a(f);b&&b.preventDefault(),g.length||(g=e.closest(".alert")),g.trigger(b=a.Event("close.bs.alert")),b.isDefaultPrevented()||(g.removeClass("in"),a.support.transition&&g.hasClass("fade")?g.one("bsTransitionEnd",c).emulateTransitionEnd(d.TRANSITION_DURATION):c())};var e=a.fn.alert;a.fn.alert=b,a.fn.alert.Constructor=d,a.fn.alert.noConflict=function(){return a.fn.alert=e,this},a(document).on("click.bs.alert.data-api",c,d.prototype.close)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.button"),f="object"==typeof b&&b;e||d.data("bs.button",e=new c(this,f)),"toggle"==b?e.toggle():b&&e.setState(b)})}var c=function(b,d){this.$element=a(b),this.options=a.extend({},c.DEFAULTS,d),this.isLoading=!1};c.VERSION="3.3.4",c.DEFAULTS={loadingText:"loading..."},c.prototype.setState=function(b){var c="disabled",d=this.$element,e=d.is("input")?"val":"html",f=d.data();b+="Text",null==f.resetText&&d.data("resetText",d[e]()),setTimeout(a.proxy(function(){d[e](null==f[b]?this.options[b]:f[b]),"loadingText"==b?(this.isLoading=!0,d.addClass(c).attr(c,c)):this.isLoading&&(this.isLoading=!1,d.removeClass(c).removeAttr(c))},this),0)},c.prototype.toggle=function(){var a=!0,b=this.$element.closest('[data-toggle="buttons"]');if(b.length){var c=this.$element.find("input");"radio"==c.prop("type")&&(c.prop("checked")&&this.$element.hasClass("active")?a=!1:b.find(".active").removeClass("active")),a&&c.prop("checked",!this.$element.hasClass("active")).trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active"));a&&this.$element.toggleClass("active")};var d=a.fn.button;a.fn.button=b,a.fn.button.Constructor=c,a.fn.button.noConflict=function(){return a.fn.button=d,this},a(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(c){var d=a(c.target);d.hasClass("btn")||(d=d.closest(".btn")),b.call(d,"toggle"),c.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(b){a(b.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(b.type))})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},c.DEFAULTS,d.data(),"object"==typeof b&&b),g="string"==typeof b?b:f.slide;e||d.data("bs.carousel",e=new c(this,f)),"number"==typeof b?e.to(b):g?e[g]():f.interval&&e.pause().cycle()})}var c=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",a.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",a.proxy(this.pause,this)).on("mouseleave.bs.carousel",a.proxy(this.cycle,this))};c.VERSION="3.3.4",c.TRANSITION_DURATION=600,c.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},c.prototype.keydown=function(a){if(!/input|textarea/i.test(a.target.tagName)){switch(a.which){case 37:this.prev();break;case 39:this.next();break;default:return}a.preventDefault()}},c.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},c.prototype.getItemIndex=function(a){return this.$items=a.parent().children(".item"),this.$items.index(a||this.$active)},c.prototype.getItemForDirection=function(a,b){var c=this.getItemIndex(b),d="prev"==a&&0===c||"next"==a&&c==this.$items.length-1;if(d&&!this.options.wrap)return b;var e="prev"==a?-1:1,f=(c+e)%this.$items.length;return this.$items.eq(f)},c.prototype.to=function(a){var b=this,c=this.getItemIndex(this.$active=this.$element.find(".item.active"));return a>this.$items.length-1||0>a?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){b.to(a)}):c==a?this.pause().cycle():this.slide(a>c?"next":"prev",this.$items.eq(a))},c.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},c.prototype.next=function(){return this.sliding?void 0:this.slide("next")},c.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},c.prototype.slide=function(b,d){var e=this.$element.find(".item.active"),f=d||this.getItemForDirection(b,e),g=this.interval,h="next"==b?"left":"right",i=this;if(f.hasClass("active"))return this.sliding=!1;var j=f[0],k=a.Event("slide.bs.carousel",{relatedTarget:j,direction:h});if(this.$element.trigger(k),!k.isDefaultPrevented()){if(this.sliding=!0,g&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var l=a(this.$indicators.children()[this.getItemIndex(f)]);l&&l.addClass("active")}var m=a.Event("slid.bs.carousel",{relatedTarget:j,direction:h});return a.support.transition&&this.$element.hasClass("slide")?(f.addClass(b),f[0].offsetWidth,e.addClass(h),f.addClass(h),e.one("bsTransitionEnd",function(){f.removeClass([b,h].join(" ")).addClass("active"),e.removeClass(["active",h].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger(m)},0)}).emulateTransitionEnd(c.TRANSITION_DURATION)):(e.removeClass("active"),f.addClass("active"),this.sliding=!1,this.$element.trigger(m)),g&&this.cycle(),this}};var d=a.fn.carousel;a.fn.carousel=b,a.fn.carousel.Constructor=c,a.fn.carousel.noConflict=function(){return a.fn.carousel=d,this};var e=function(c){var d,e=a(this),f=a(e.attr("data-target")||(d=e.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,""));if(f.hasClass("carousel")){var g=a.extend({},f.data(),e.data()),h=e.attr("data-slide-to");h&&(g.interval=!1),b.call(f,g),h&&f.data("bs.carousel").to(h),c.preventDefault()}};a(document).on("click.bs.carousel.data-api","[data-slide]",e).on("click.bs.carousel.data-api","[data-slide-to]",e),a(window).on("load",function(){a('[data-ride="carousel"]').each(function(){var c=a(this);b.call(c,c.data())})})}(jQuery),+function(a){"use strict";function b(b){var c,d=b.attr("data-target")||(c=b.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,"");return a(d)}function c(b){return this.each(function(){var c=a(this),e=c.data("bs.collapse"),f=a.extend({},d.DEFAULTS,c.data(),"object"==typeof b&&b);!e&&f.toggle&&/show|hide/.test(b)&&(f.toggle=!1),e||c.data("bs.collapse",e=new d(this,f)),"string"==typeof b&&e[b]()})}var d=function(b,c){this.$element=a(b),this.options=a.extend({},d.DEFAULTS,c),this.$trigger=a('[data-toggle="collapse"][href="#'+b.id+'"],[data-toggle="collapse"][data-target="#'+b.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};d.VERSION="3.3.4",d.TRANSITION_DURATION=350,d.DEFAULTS={toggle:!0},d.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},d.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var b,e=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(e&&e.length&&(b=e.data("bs.collapse"),b&&b.transitioning))){var f=a.Event("show.bs.collapse");if(this.$element.trigger(f),!f.isDefaultPrevented()){e&&e.length&&(c.call(e,"hide"),b||e.data("bs.collapse",null));var g=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[g](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var h=function(){this.$element.removeClass("collapsing").addClass("collapse in")[g](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return h.call(this);var i=a.camelCase(["scroll",g].join("-"));this.$element.one("bsTransitionEnd",a.proxy(h,this)).emulateTransitionEnd(d.TRANSITION_DURATION)[g](this.$element[0][i])}}}},d.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var b=a.Event("hide.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var e=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return a.support.transition?void this.$element[c](0).one("bsTransitionEnd",a.proxy(e,this)).emulateTransitionEnd(d.TRANSITION_DURATION):e.call(this)}}},d.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},d.prototype.getParent=function(){return a(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(a.proxy(function(c,d){var e=a(d);this.addAriaAndCollapsedClass(b(e),e)},this)).end()},d.prototype.addAriaAndCollapsedClass=function(a,b){var c=a.hasClass("in");a.attr("aria-expanded",c),b.toggleClass("collapsed",!c).attr("aria-expanded",c)};var e=a.fn.collapse;a.fn.collapse=c,a.fn.collapse.Constructor=d,a.fn.collapse.noConflict=function(){return a.fn.collapse=e,this},a(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(d){var e=a(this);e.attr("data-target")||d.preventDefault();var f=b(e),g=f.data("bs.collapse"),h=g?"toggle":e.data();c.call(f,h)})}(jQuery),+function(a){"use strict";function b(b){b&&3===b.which||(a(e).remove(),a(f).each(function(){var d=a(this),e=c(d),f={relatedTarget:this};e.hasClass("open")&&(e.trigger(b=a.Event("hide.bs.dropdown",f)),b.isDefaultPrevented()||(d.attr("aria-expanded","false"),e.removeClass("open").trigger("hidden.bs.dropdown",f)))}))}function c(b){var c=b.attr("data-target");c||(c=b.attr("href"),c=c&&/#[A-Za-z]/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d=c&&a(c);return d&&d.length?d:b.parent()}function d(b){return this.each(function(){var c=a(this),d=c.data("bs.dropdown");d||c.data("bs.dropdown",d=new g(this)),"string"==typeof b&&d[b].call(c)})}var e=".dropdown-backdrop",f='[data-toggle="dropdown"]',g=function(b){a(b).on("click.bs.dropdown",this.toggle)};g.VERSION="3.3.4",g.prototype.toggle=function(d){var e=a(this);if(!e.is(".disabled, :disabled")){var f=c(e),g=f.hasClass("open");if(b(),!g){"ontouchstart"in document.documentElement&&!f.closest(".navbar-nav").length&&a('',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},c.prototype.init=function(b,c,d){if(this.enabled=!0,this.type=b,this.$element=a(c),this.options=this.getOptions(d),this.$viewport=this.options.viewport&&a(this.options.viewport.selector||this.options.viewport),this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var e=this.options.trigger.split(" "),f=e.length;f--;){var g=e[f];if("click"==g)this.$element.on("click."+this.type,this.options.selector,a.proxy(this.toggle,this));else if("manual"!=g){var h="hover"==g?"mouseenter":"focusin",i="hover"==g?"mouseleave":"focusout";this.$element.on(h+"."+this.type,this.options.selector,a.proxy(this.enter,this)),this.$element.on(i+"."+this.type,this.options.selector,a.proxy(this.leave,this))}}this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.getOptions=function(b){return b=a.extend({},this.getDefaults(),this.$element.data(),b),b.delay&&"number"==typeof b.delay&&(b.delay={show:b.delay,hide:b.delay}),b},c.prototype.getDelegateOptions=function(){var b={},c=this.getDefaults();return this._options&&a.each(this._options,function(a,d){c[a]!=d&&(b[a]=d)}),b},c.prototype.enter=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c&&c.$tip&&c.$tip.is(":visible")?void(c.hoverState="in"):(c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),clearTimeout(c.timeout),c.hoverState="in",c.options.delay&&c.options.delay.show?void(c.timeout=setTimeout(function(){"in"==c.hoverState&&c.show()},c.options.delay.show)):c.show())},c.prototype.leave=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),clearTimeout(c.timeout),c.hoverState="out",c.options.delay&&c.options.delay.hide?void(c.timeout=setTimeout(function(){"out"==c.hoverState&&c.hide()},c.options.delay.hide)):c.hide()},c.prototype.show=function(){var b=a.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(b);var d=a.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(b.isDefaultPrevented()||!d)return;var e=this,f=this.tip(),g=this.getUID(this.type);this.setContent(),f.attr("id",g),this.$element.attr("aria-describedby",g),this.options.animation&&f.addClass("fade");var h="function"==typeof this.options.placement?this.options.placement.call(this,f[0],this.$element[0]):this.options.placement,i=/\s?auto?\s?/i,j=i.test(h);j&&(h=h.replace(i,"")||"top"),f.detach().css({top:0,left:0,display:"block"}).addClass(h).data("bs."+this.type,this),this.options.container?f.appendTo(this.options.container):f.insertAfter(this.$element);var k=this.getPosition(),l=f[0].offsetWidth,m=f[0].offsetHeight;if(j){var n=h,o=this.options.container?a(this.options.container):this.$element.parent(),p=this.getPosition(o);h="bottom"==h&&k.bottom+m>p.bottom?"top":"top"==h&&k.top-mp.width?"left":"left"==h&&k.left-lg.top+g.height&&(e.top=g.top+g.height-i)}else{var j=b.left-f,k=b.left+f+c;jg.width&&(e.left=g.left+g.width-k)}return e},c.prototype.getTitle=function(){var a,b=this.$element,c=this.options;return a=b.attr("data-original-title")||("function"==typeof c.title?c.title.call(b[0]):c.title)},c.prototype.getUID=function(a){do a+=~~(1e6*Math.random());while(document.getElementById(a));return a},c.prototype.tip=function(){return this.$tip=this.$tip||a(this.options.template)},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},c.prototype.enable=function(){this.enabled=!0},c.prototype.disable=function(){this.enabled=!1},c.prototype.toggleEnabled=function(){this.enabled=!this.enabled},c.prototype.toggle=function(b){var c=this;b&&(c=a(b.currentTarget).data("bs."+this.type),c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c))),c.tip().hasClass("in")?c.leave(c):c.enter(c)},c.prototype.destroy=function(){var a=this;clearTimeout(this.timeout),this.hide(function(){a.$element.off("."+a.type).removeData("bs."+a.type)})};var d=a.fn.tooltip;a.fn.tooltip=b,a.fn.tooltip.Constructor=c,a.fn.tooltip.noConflict=function(){return a.fn.tooltip=d,this}}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.popover"),f="object"==typeof b&&b;(e||!/destroy|hide/.test(b))&&(e||d.data("bs.popover",e=new c(this,f)),"string"==typeof b&&e[b]())})}var c=function(a,b){this.init("popover",a,b)};if(!a.fn.tooltip)throw new Error("Popover requires tooltip.js");c.VERSION="3.3.4",c.DEFAULTS=a.extend({},a.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),c.prototype=a.extend({},a.fn.tooltip.Constructor.prototype),c.prototype.constructor=c,c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.setContent=function(){var a=this.tip(),b=this.getTitle(),c=this.getContent();a.find(".popover-title")[this.options.html?"html":"text"](b),a.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof c?"html":"append":"text"](c),a.removeClass("fade top bottom left right in"),a.find(".popover-title").html()||a.find(".popover-title").hide()},c.prototype.hasContent=function(){return this.getTitle()||this.getContent()},c.prototype.getContent=function(){var a=this.$element,b=this.options;return a.attr("data-content")||("function"==typeof b.content?b.content.call(a[0]):b.content)},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var d=a.fn.popover;a.fn.popover=b,a.fn.popover.Constructor=c,a.fn.popover.noConflict=function(){return a.fn.popover=d,this}}(jQuery),+function(a){"use strict";function b(c,d){this.$body=a(document.body),this.$scrollElement=a(a(c).is(document.body)?window:c),this.options=a.extend({},b.DEFAULTS,d),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",a.proxy(this.process,this)),this.refresh(),this.process()}function c(c){return this.each(function(){var d=a(this),e=d.data("bs.scrollspy"),f="object"==typeof c&&c;e||d.data("bs.scrollspy",e=new b(this,f)),"string"==typeof c&&e[c]()})}b.VERSION="3.3.4",b.DEFAULTS={offset:10},b.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},b.prototype.refresh=function(){var b=this,c="offset",d=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),a.isWindow(this.$scrollElement[0])||(c="position",d=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var b=a(this),e=b.data("target")||b.attr("href"),f=/^#./.test(e)&&a(e);return f&&f.length&&f.is(":visible")&&[[f[c]().top+d,e]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){b.offsets.push(this[0]),b.targets.push(this[1])})},b.prototype.process=function(){var a,b=this.$scrollElement.scrollTop()+this.options.offset,c=this.getScrollHeight(),d=this.options.offset+c-this.$scrollElement.height(),e=this.offsets,f=this.targets,g=this.activeTarget;if(this.scrollHeight!=c&&this.refresh(),b>=d)return g!=(a=f[f.length-1])&&this.activate(a);if(g&&b=e[a]&&(void 0===e[a+1]||b .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),b.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),h?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu").length&&b.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),e&&e()}var g=d.find("> .active"),h=e&&a.support.transition&&(g.length&&g.hasClass("fade")||!!d.find("> .fade").length);g.length&&h?g.one("bsTransitionEnd",f).emulateTransitionEnd(c.TRANSITION_DURATION):f(),g.removeClass("in")};var d=a.fn.tab;a.fn.tab=b,a.fn.tab.Constructor=c,a.fn.tab.noConflict=function(){return a.fn.tab=d,this};var e=function(c){c.preventDefault(),b.call(a(this),"show")};a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',e).on("click.bs.tab.data-api",'[data-toggle="pill"]',e)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.affix"),f="object"==typeof b&&b;e||d.data("bs.affix",e=new c(this,f)),"string"==typeof b&&e[b]()})}var c=function(b,d){this.options=a.extend({},c.DEFAULTS,d),this.$target=a(this.options.target).on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(b),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};c.VERSION="3.3.4",c.RESET="affix affix-top affix-bottom",c.DEFAULTS={offset:0,target:window},c.prototype.getState=function(a,b,c,d){var e=this.$target.scrollTop(),f=this.$element.offset(),g=this.$target.height();if(null!=c&&"top"==this.affixed)return c>e?"top":!1;if("bottom"==this.affixed)return null!=c?e+this.unpin<=f.top?!1:"bottom":a-d>=e+g?!1:"bottom";var h=null==this.affixed,i=h?e:f.top,j=h?g:b;return null!=c&&c>=e?"top":null!=d&&i+j>=a-d?"bottom":!1},c.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(c.RESET).addClass("affix");var a=this.$target.scrollTop(),b=this.$element.offset();return this.pinnedOffset=b.top-a},c.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},c.prototype.checkPosition=function(){if(this.$element.is(":visible")){var b=this.$element.height(),d=this.options.offset,e=d.top,f=d.bottom,g=a(document.body).height();"object"!=typeof d&&(f=e=d),"function"==typeof e&&(e=d.top(this.$element)),"function"==typeof f&&(f=d.bottom(this.$element));var h=this.getState(g,b,e,f);if(this.affixed!=h){null!=this.unpin&&this.$element.css("top","");var i="affix"+(h?"-"+h:""),j=a.Event(i+".bs.affix");if(this.$element.trigger(j),j.isDefaultPrevented())return;this.affixed=h,this.unpin="bottom"==h?this.getPinnedOffset():null,this.$element.removeClass(c.RESET).addClass(i).trigger(i.replace("affix","affixed")+".bs.affix")}"bottom"==h&&this.$element.offset({top:g-b-f})}};var d=a.fn.affix;a.fn.affix=b,a.fn.affix.Constructor=c,a.fn.affix.noConflict=function(){return a.fn.affix=d,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var c=a(this),d=c.data();d.offset=d.offset||{},null!=d.offsetBottom&&(d.offset.bottom=d.offsetBottom),null!=d.offsetTop&&(d.offset.top=d.offsetTop),b.call(c,d)})})}(jQuery); \ No newline at end of file diff --git a/js/bstable/js/jquery-2.2.0.min.js b/js/bstable/js/jquery-2.2.0.min.js new file mode 100644 index 0000000..06ac263 --- /dev/null +++ b/js/bstable/js/jquery-2.2.0.min.js @@ -0,0 +1,4 @@ +/*! jQuery v2.2.0 | (c) jQuery Foundation | jquery.org/license */ +!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=a.document,e=c.slice,f=c.concat,g=c.push,h=c.indexOf,i={},j=i.toString,k=i.hasOwnProperty,l={},m="2.2.0",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return e.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:e.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a){return n.each(this,a)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(e.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor()},push:g,sort:c.sort,splice:c.splice},n.extend=n.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||n.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(a=arguments[h]))for(b in a)c=g[b],d=a[b],g!==d&&(j&&d&&(n.isPlainObject(d)||(e=n.isArray(d)))?(e?(e=!1,f=c&&n.isArray(c)?c:[]):f=c&&n.isPlainObject(c)?c:{},g[b]=n.extend(j,f,d)):void 0!==d&&(g[b]=d));return g},n.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===n.type(a)},isArray:Array.isArray,isWindow:function(a){return null!=a&&a===a.window},isNumeric:function(a){var b=a&&a.toString();return!n.isArray(a)&&b-parseFloat(b)+1>=0},isPlainObject:function(a){return"object"!==n.type(a)||a.nodeType||n.isWindow(a)?!1:a.constructor&&!k.call(a.constructor.prototype,"isPrototypeOf")?!1:!0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?i[j.call(a)]||"object":typeof a},globalEval:function(a){var b,c=eval;a=n.trim(a),a&&(1===a.indexOf("use strict")?(b=d.createElement("script"),b.text=a,d.head.appendChild(b).parentNode.removeChild(b)):c(a))},camelCase:function(a){return a.replace(p,"ms-").replace(q,r)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b){var c,d=0;if(s(a)){for(c=a.length;c>d;d++)if(b.call(a[d],d,a[d])===!1)break}else for(d in a)if(b.call(a[d],d,a[d])===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(o,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?n.merge(c,"string"==typeof a?[a]:a):g.call(c,a)),c},inArray:function(a,b,c){return null==b?-1:h.call(b,a,c)},merge:function(a,b){for(var c=+b.length,d=0,e=a.length;c>d;d++)a[e++]=b[d];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,e,g=0,h=[];if(s(a))for(d=a.length;d>g;g++)e=b(a[g],g,c),null!=e&&h.push(e);else for(g in a)e=b(a[g],g,c),null!=e&&h.push(e);return f.apply([],h)},guid:1,proxy:function(a,b){var c,d,f;return"string"==typeof b&&(c=a[b],b=a,a=c),n.isFunction(a)?(d=e.call(arguments,2),f=function(){return a.apply(b||this,d.concat(e.call(arguments)))},f.guid=a.guid=a.guid||n.guid++,f):void 0},now:Date.now,support:l}),"function"==typeof Symbol&&(n.fn[Symbol.iterator]=c[Symbol.iterator]),n.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(a,b){i["[object "+b+"]"]=b.toLowerCase()});function s(a){var b=!!a&&"length"in a&&a.length,c=n.type(a);return"function"===c||n.isWindow(a)?!1:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var t=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=ga(),z=ga(),A=ga(),B=function(a,b){return a===b&&(l=!0),0},C=1<<31,D={}.hasOwnProperty,E=[],F=E.pop,G=E.push,H=E.push,I=E.slice,J=function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},K="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",N="\\["+L+"*("+M+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+M+"))|)"+L+"*\\]",O=":("+M+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+N+")*)|.*)\\)|)",P=new RegExp(L+"+","g"),Q=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),R=new RegExp("^"+L+"*,"+L+"*"),S=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),T=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),U=new RegExp(O),V=new RegExp("^"+M+"$"),W={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M+"|[*])"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+O),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+K+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},X=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,$=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,_=/[+~]/,aa=/'|\\/g,ba=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),ca=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},da=function(){m()};try{H.apply(E=I.call(v.childNodes),v.childNodes),E[v.childNodes.length].nodeType}catch(ea){H={apply:E.length?function(a,b){G.apply(a,I.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function fa(a,b,d,e){var f,h,j,k,l,o,r,s,w=b&&b.ownerDocument,x=b?b.nodeType:9;if(d=d||[],"string"!=typeof a||!a||1!==x&&9!==x&&11!==x)return d;if(!e&&((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,p)){if(11!==x&&(o=$.exec(a)))if(f=o[1]){if(9===x){if(!(j=b.getElementById(f)))return d;if(j.id===f)return d.push(j),d}else if(w&&(j=w.getElementById(f))&&t(b,j)&&j.id===f)return d.push(j),d}else{if(o[2])return H.apply(d,b.getElementsByTagName(a)),d;if((f=o[3])&&c.getElementsByClassName&&b.getElementsByClassName)return H.apply(d,b.getElementsByClassName(f)),d}if(c.qsa&&!A[a+" "]&&(!q||!q.test(a))){if(1!==x)w=b,s=a;else if("object"!==b.nodeName.toLowerCase()){(k=b.getAttribute("id"))?k=k.replace(aa,"\\$&"):b.setAttribute("id",k=u),r=g(a),h=r.length,l=V.test(k)?"#"+k:"[id='"+k+"']";while(h--)r[h]=l+" "+qa(r[h]);s=r.join(","),w=_.test(a)&&oa(b.parentNode)||b}if(s)try{return H.apply(d,w.querySelectorAll(s)),d}catch(y){}finally{k===u&&b.removeAttribute("id")}}}return i(a.replace(Q,"$1"),b,d,e)}function ga(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ha(a){return a[u]=!0,a}function ia(a){var b=n.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ja(a,b){var c=a.split("|"),e=c.length;while(e--)d.attrHandle[c[e]]=b}function ka(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||C)-(~a.sourceIndex||C);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function la(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function ma(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function na(a){return ha(function(b){return b=+b,ha(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function oa(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=fa.support={},f=fa.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},m=fa.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=n.documentElement,p=!f(n),(e=n.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",da,!1):e.attachEvent&&e.attachEvent("onunload",da)),c.attributes=ia(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ia(function(a){return a.appendChild(n.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=Z.test(n.getElementsByClassName),c.getById=ia(function(a){return o.appendChild(a).id=u,!n.getElementsByName||!n.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c=b.getElementById(a);return c?[c]:[]}},d.filter.ID=function(a){var b=a.replace(ba,ca);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(ba,ca);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return"undefined"!=typeof b.getElementsByClassName&&p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=Z.test(n.querySelectorAll))&&(ia(function(a){o.appendChild(a).innerHTML="",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+L+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+L+"*(?:value|"+K+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),ia(function(a){var b=n.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+L+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=Z.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ia(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",O)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=Z.test(o.compareDocumentPosition),t=b||Z.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===n||a.ownerDocument===v&&t(v,a)?-1:b===n||b.ownerDocument===v&&t(v,b)?1:k?J(k,a)-J(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,g=[a],h=[b];if(!e||!f)return a===n?-1:b===n?1:e?-1:f?1:k?J(k,a)-J(k,b):0;if(e===f)return ka(a,b);c=a;while(c=c.parentNode)g.unshift(c);c=b;while(c=c.parentNode)h.unshift(c);while(g[d]===h[d])d++;return d?ka(g[d],h[d]):g[d]===v?-1:h[d]===v?1:0},n):n},fa.matches=function(a,b){return fa(a,null,null,b)},fa.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(T,"='$1']"),c.matchesSelector&&p&&!A[b+" "]&&(!r||!r.test(b))&&(!q||!q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return fa(b,n,null,[a]).length>0},fa.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},fa.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&D.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},fa.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},fa.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=fa.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=fa.selectors={cacheLength:50,createPseudo:ha,match:W,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(ba,ca),a[3]=(a[3]||a[4]||a[5]||"").replace(ba,ca),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||fa.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&fa.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return W.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&U.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(ba,ca).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+L+")"+a+"("+L+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=fa.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(P," ")+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h,t=!1;if(q){if(f){while(p){m=b;while(m=m[p])if(h?m.nodeName.toLowerCase()===r:1===m.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){m=q,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n&&j[2],m=n&&q.childNodes[n];while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if(1===m.nodeType&&++t&&m===b){k[a]=[w,n,t];break}}else if(s&&(m=b,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n),t===!1)while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if((h?m.nodeName.toLowerCase()===r:1===m.nodeType)&&++t&&(s&&(l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),k[a]=[w,t]),m===b))break;return t-=e,t===d||t%d===0&&t/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||fa.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ha(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=J(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ha(function(a){var b=[],c=[],d=h(a.replace(Q,"$1"));return d[u]?ha(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ha(function(a){return function(b){return fa(a,b).length>0}}),contains:ha(function(a){return a=a.replace(ba,ca),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ha(function(a){return V.test(a||"")||fa.error("unsupported lang: "+a),a=a.replace(ba,ca).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return Y.test(a.nodeName)},input:function(a){return X.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:na(function(){return[0]}),last:na(function(a,b){return[b-1]}),eq:na(function(a,b,c){return[0>c?c+b:c]}),even:na(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:na(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:na(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:na(function(a,b,c){for(var d=0>c?c+b:c;++db;b++)d+=a[b].value;return d}function ra(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=x++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j,k=[w,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(j=b[u]||(b[u]={}),i=j[b.uniqueID]||(j[b.uniqueID]={}),(h=i[d])&&h[0]===w&&h[1]===f)return k[2]=h[2];if(i[d]=k,k[2]=a(b,c,g))return!0}}}function sa(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function ta(a,b,c){for(var d=0,e=b.length;e>d;d++)fa(a,b[d],c);return c}function ua(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h));return g}function va(a,b,c,d,e,f){return d&&!d[u]&&(d=va(d)),e&&!e[u]&&(e=va(e,f)),ha(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||ta(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:ua(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=ua(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?J(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=ua(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):H.apply(g,r)})}function wa(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=ra(function(a){return a===b},h,!0),l=ra(function(a){return J(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];f>i;i++)if(c=d.relative[a[i].type])m=[ra(sa(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;f>e;e++)if(d.relative[a[e].type])break;return va(i>1&&sa(m),i>1&&qa(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(Q,"$1"),c,e>i&&wa(a.slice(i,e)),f>e&&wa(a=a.slice(e)),f>e&&qa(a))}m.push(c)}return sa(m)}function xa(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,o,q,r=0,s="0",t=f&&[],u=[],v=j,x=f||e&&d.find.TAG("*",k),y=w+=null==v?1:Math.random()||.1,z=x.length;for(k&&(j=g===n||g||k);s!==z&&null!=(l=x[s]);s++){if(e&&l){o=0,g||l.ownerDocument===n||(m(l),h=!p);while(q=a[o++])if(q(l,g||n,h)){i.push(l);break}k&&(w=y)}c&&((l=!q&&l)&&r--,f&&t.push(l))}if(r+=s,c&&s!==r){o=0;while(q=b[o++])q(t,u,g,h);if(f){if(r>0)while(s--)t[s]||u[s]||(u[s]=F.call(i));u=ua(u)}H.apply(i,u),k&&!f&&u.length>0&&r+b.length>1&&fa.uniqueSort(i)}return k&&(w=y,j=v),t};return c?ha(f):f}return h=fa.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=wa(b[c]),f[u]?d.push(f):e.push(f);f=A(a,xa(e,d)),f.selector=a}return f},i=fa.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"ID"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(b=(d.find.ID(k.matches[0].replace(ba,ca),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=W.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&&(f=m(k.matches[0].replace(ba,ca),_.test(j[0].type)&&oa(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&qa(j),!a)return H.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,!b||_.test(a)&&oa(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ia(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),ia(function(a){return a.innerHTML="","#"===a.firstChild.getAttribute("href")})||ja("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ia(function(a){return a.innerHTML="",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||ja("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),ia(function(a){return null==a.getAttribute("disabled")})||ja(K,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),fa}(a);n.find=t,n.expr=t.selectors,n.expr[":"]=n.expr.pseudos,n.uniqueSort=n.unique=t.uniqueSort,n.text=t.getText,n.isXMLDoc=t.isXML,n.contains=t.contains;var u=function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&n(a).is(c))break;d.push(a)}return d},v=function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c},w=n.expr.match.needsContext,x=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,y=/^.[^:#\[\.,]*$/;function z(a,b,c){if(n.isFunction(b))return n.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return n.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(y.test(b))return n.filter(b,a,c);b=n.filter(b,a)}return n.grep(a,function(a){return h.call(b,a)>-1!==c})}n.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?n.find.matchesSelector(d,a)?[d]:[]:n.find.matches(a,n.grep(b,function(a){return 1===a.nodeType}))},n.fn.extend({find:function(a){var b,c=this.length,d=[],e=this;if("string"!=typeof a)return this.pushStack(n(a).filter(function(){for(b=0;c>b;b++)if(n.contains(e[b],this))return!0}));for(b=0;c>b;b++)n.find(a,e[b],d);return d=this.pushStack(c>1?n.unique(d):d),d.selector=this.selector?this.selector+" "+a:a,d},filter:function(a){return this.pushStack(z(this,a||[],!1))},not:function(a){return this.pushStack(z(this,a||[],!0))},is:function(a){return!!z(this,"string"==typeof a&&w.test(a)?n(a):a||[],!1).length}});var A,B=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,C=n.fn.init=function(a,b,c){var e,f;if(!a)return this;if(c=c||A,"string"==typeof a){if(e="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:B.exec(a),!e||!e[1]&&b)return!b||b.jquery?(b||c).find(a):this.constructor(b).find(a);if(e[1]){if(b=b instanceof n?b[0]:b,n.merge(this,n.parseHTML(e[1],b&&b.nodeType?b.ownerDocument||b:d,!0)),x.test(e[1])&&n.isPlainObject(b))for(e in b)n.isFunction(this[e])?this[e](b[e]):this.attr(e,b[e]);return this}return f=d.getElementById(e[2]),f&&f.parentNode&&(this.length=1,this[0]=f),this.context=d,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):n.isFunction(a)?void 0!==c.ready?c.ready(a):a(n):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),n.makeArray(a,this))};C.prototype=n.fn,A=n(d);var D=/^(?:parents|prev(?:Until|All))/,E={children:!0,contents:!0,next:!0,prev:!0};n.fn.extend({has:function(a){var b=n(a,this),c=b.length;return this.filter(function(){for(var a=0;c>a;a++)if(n.contains(this,b[a]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=w.test(a)||"string"!=typeof a?n(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&n.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?n.uniqueSort(f):f)},index:function(a){return a?"string"==typeof a?h.call(n(a),this[0]):h.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(n.uniqueSort(n.merge(this.get(),n(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function F(a,b){while((a=a[b])&&1!==a.nodeType);return a}n.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return u(a,"parentNode")},parentsUntil:function(a,b,c){return u(a,"parentNode",c)},next:function(a){return F(a,"nextSibling")},prev:function(a){return F(a,"previousSibling")},nextAll:function(a){return u(a,"nextSibling")},prevAll:function(a){return u(a,"previousSibling")},nextUntil:function(a,b,c){return u(a,"nextSibling",c)},prevUntil:function(a,b,c){return u(a,"previousSibling",c)},siblings:function(a){return v((a.parentNode||{}).firstChild,a)},children:function(a){return v(a.firstChild)},contents:function(a){return a.contentDocument||n.merge([],a.childNodes)}},function(a,b){n.fn[a]=function(c,d){var e=n.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=n.filter(d,e)),this.length>1&&(E[a]||n.uniqueSort(e),D.test(a)&&e.reverse()),this.pushStack(e)}});var G=/\S+/g;function H(a){var b={};return n.each(a.match(G)||[],function(a,c){b[c]=!0}),b}n.Callbacks=function(a){a="string"==typeof a?H(a):n.extend({},a);var b,c,d,e,f=[],g=[],h=-1,i=function(){for(e=a.once,d=b=!0;g.length;h=-1){c=g.shift();while(++h-1)f.splice(c,1),h>=c&&h--}),this},has:function(a){return a?n.inArray(a,f)>-1:f.length>0},empty:function(){return f&&(f=[]),this},disable:function(){return e=g=[],f=c="",this},disabled:function(){return!f},lock:function(){return e=g=[],c||(f=c=""),this},locked:function(){return!!e},fireWith:function(a,c){return e||(c=c||[],c=[a,c.slice?c.slice():c],g.push(c),b||i()),this},fire:function(){return j.fireWith(this,arguments),this},fired:function(){return!!d}};return j},n.extend({Deferred:function(a){var b=[["resolve","done",n.Callbacks("once memory"),"resolved"],["reject","fail",n.Callbacks("once memory"),"rejected"],["notify","progress",n.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return n.Deferred(function(c){n.each(b,function(b,f){var g=n.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&n.isFunction(a.promise)?a.promise().progress(c.notify).done(c.resolve).fail(c.reject):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?n.extend(a,d):d}},e={};return d.pipe=d.then,n.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=e.call(arguments),d=c.length,f=1!==d||a&&n.isFunction(a.promise)?d:0,g=1===f?a:n.Deferred(),h=function(a,b,c){return function(d){b[a]=this,c[a]=arguments.length>1?e.call(arguments):d,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(d>1)for(i=new Array(d),j=new Array(d),k=new Array(d);d>b;b++)c[b]&&n.isFunction(c[b].promise)?c[b].promise().progress(h(b,j,i)).done(h(b,k,c)).fail(g.reject):--f;return f||g.resolveWith(k,c),g.promise()}});var I;n.fn.ready=function(a){return n.ready.promise().done(a),this},n.extend({isReady:!1,readyWait:1,holdReady:function(a){a?n.readyWait++:n.ready(!0)},ready:function(a){(a===!0?--n.readyWait:n.isReady)||(n.isReady=!0,a!==!0&&--n.readyWait>0||(I.resolveWith(d,[n]),n.fn.triggerHandler&&(n(d).triggerHandler("ready"),n(d).off("ready"))))}});function J(){d.removeEventListener("DOMContentLoaded",J),a.removeEventListener("load",J),n.ready()}n.ready.promise=function(b){return I||(I=n.Deferred(),"complete"===d.readyState||"loading"!==d.readyState&&!d.documentElement.doScroll?a.setTimeout(n.ready):(d.addEventListener("DOMContentLoaded",J),a.addEventListener("load",J))),I.promise(b)},n.ready.promise();var K=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===n.type(c)){e=!0;for(h in c)K(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,n.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(n(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},L=function(a){return 1===a.nodeType||9===a.nodeType||!+a.nodeType};function M(){this.expando=n.expando+M.uid++}M.uid=1,M.prototype={register:function(a,b){var c=b||{};return a.nodeType?a[this.expando]=c:Object.defineProperty(a,this.expando,{value:c,writable:!0,configurable:!0}),a[this.expando]},cache:function(a){if(!L(a))return{};var b=a[this.expando];return b||(b={},L(a)&&(a.nodeType?a[this.expando]=b:Object.defineProperty(a,this.expando,{value:b,configurable:!0}))),b},set:function(a,b,c){var d,e=this.cache(a);if("string"==typeof b)e[b]=c;else for(d in b)e[d]=b[d];return e},get:function(a,b){return void 0===b?this.cache(a):a[this.expando]&&a[this.expando][b]},access:function(a,b,c){var d;return void 0===b||b&&"string"==typeof b&&void 0===c?(d=this.get(a,b),void 0!==d?d:this.get(a,n.camelCase(b))):(this.set(a,b,c),void 0!==c?c:b)},remove:function(a,b){var c,d,e,f=a[this.expando];if(void 0!==f){if(void 0===b)this.register(a);else{n.isArray(b)?d=b.concat(b.map(n.camelCase)):(e=n.camelCase(b),b in f?d=[b,e]:(d=e,d=d in f?[d]:d.match(G)||[])),c=d.length;while(c--)delete f[d[c]]}(void 0===b||n.isEmptyObject(f))&&(a.nodeType?a[this.expando]=void 0:delete a[this.expando])}},hasData:function(a){var b=a[this.expando];return void 0!==b&&!n.isEmptyObject(b)}};var N=new M,O=new M,P=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Q=/[A-Z]/g;function R(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.replace(Q,"-$&").toLowerCase(),c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:P.test(c)?n.parseJSON(c):c}catch(e){}O.set(a,b,c); +}else c=void 0;return c}n.extend({hasData:function(a){return O.hasData(a)||N.hasData(a)},data:function(a,b,c){return O.access(a,b,c)},removeData:function(a,b){O.remove(a,b)},_data:function(a,b,c){return N.access(a,b,c)},_removeData:function(a,b){N.remove(a,b)}}),n.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=O.get(f),1===f.nodeType&&!N.get(f,"hasDataAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=n.camelCase(d.slice(5)),R(f,d,e[d])));N.set(f,"hasDataAttrs",!0)}return e}return"object"==typeof a?this.each(function(){O.set(this,a)}):K(this,function(b){var c,d;if(f&&void 0===b){if(c=O.get(f,a)||O.get(f,a.replace(Q,"-$&").toLowerCase()),void 0!==c)return c;if(d=n.camelCase(a),c=O.get(f,d),void 0!==c)return c;if(c=R(f,d,void 0),void 0!==c)return c}else d=n.camelCase(a),this.each(function(){var c=O.get(this,d);O.set(this,d,b),a.indexOf("-")>-1&&void 0!==c&&O.set(this,a,b)})},null,b,arguments.length>1,null,!0)},removeData:function(a){return this.each(function(){O.remove(this,a)})}}),n.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=N.get(a,b),c&&(!d||n.isArray(c)?d=N.access(a,b,n.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=n.queue(a,b),d=c.length,e=c.shift(),f=n._queueHooks(a,b),g=function(){n.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return N.get(a,c)||N.access(a,c,{empty:n.Callbacks("once memory").add(function(){N.remove(a,[b+"queue",c])})})}}),n.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length",""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};$.optgroup=$.option,$.tbody=$.tfoot=$.colgroup=$.caption=$.thead,$.th=$.td;function _(a,b){var c="undefined"!=typeof a.getElementsByTagName?a.getElementsByTagName(b||"*"):"undefined"!=typeof a.querySelectorAll?a.querySelectorAll(b||"*"):[];return void 0===b||b&&n.nodeName(a,b)?n.merge([a],c):c}function aa(a,b){for(var c=0,d=a.length;d>c;c++)N.set(a[c],"globalEval",!b||N.get(b[c],"globalEval"))}var ba=/<|&#?\w+;/;function ca(a,b,c,d,e){for(var f,g,h,i,j,k,l=b.createDocumentFragment(),m=[],o=0,p=a.length;p>o;o++)if(f=a[o],f||0===f)if("object"===n.type(f))n.merge(m,f.nodeType?[f]:f);else if(ba.test(f)){g=g||l.appendChild(b.createElement("div")),h=(Y.exec(f)||["",""])[1].toLowerCase(),i=$[h]||$._default,g.innerHTML=i[1]+n.htmlPrefilter(f)+i[2],k=i[0];while(k--)g=g.lastChild;n.merge(m,g.childNodes),g=l.firstChild,g.textContent=""}else m.push(b.createTextNode(f));l.textContent="",o=0;while(f=m[o++])if(d&&n.inArray(f,d)>-1)e&&e.push(f);else if(j=n.contains(f.ownerDocument,f),g=_(l.appendChild(f),"script"),j&&aa(g),c){k=0;while(f=g[k++])Z.test(f.type||"")&&c.push(f)}return l}!function(){var a=d.createDocumentFragment(),b=a.appendChild(d.createElement("div")),c=d.createElement("input");c.setAttribute("type","radio"),c.setAttribute("checked","checked"),c.setAttribute("name","t"),b.appendChild(c),l.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,b.innerHTML="",l.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue}();var da=/^key/,ea=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,fa=/^([^.]*)(?:\.(.+)|)/;function ga(){return!0}function ha(){return!1}function ia(){try{return d.activeElement}catch(a){}}function ja(a,b,c,d,e,f){var g,h;if("object"==typeof b){"string"!=typeof c&&(d=d||c,c=void 0);for(h in b)ja(a,h,c,d,b[h],f);return a}if(null==d&&null==e?(e=c,d=c=void 0):null==e&&("string"==typeof c?(e=d,d=void 0):(e=d,d=c,c=void 0)),e===!1)e=ha;else if(!e)return this;return 1===f&&(g=e,e=function(a){return n().off(a),g.apply(this,arguments)},e.guid=g.guid||(g.guid=n.guid++)),a.each(function(){n.event.add(this,b,e,d,c)})}n.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=N.get(a);if(r){c.handler&&(f=c,c=f.handler,e=f.selector),c.guid||(c.guid=n.guid++),(i=r.events)||(i=r.events={}),(g=r.handle)||(g=r.handle=function(b){return"undefined"!=typeof n&&n.event.triggered!==b.type?n.event.dispatch.apply(a,arguments):void 0}),b=(b||"").match(G)||[""],j=b.length;while(j--)h=fa.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o&&(l=n.event.special[o]||{},o=(e?l.delegateType:l.bindType)||o,l=n.event.special[o]||{},k=n.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&n.expr.match.needsContext.test(e),namespace:p.join(".")},f),(m=i[o])||(m=i[o]=[],m.delegateCount=0,l.setup&&l.setup.call(a,d,p,g)!==!1||a.addEventListener&&a.addEventListener(o,g)),l.add&&(l.add.call(a,k),k.handler.guid||(k.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,k):m.push(k),n.event.global[o]=!0)}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=N.hasData(a)&&N.get(a);if(r&&(i=r.events)){b=(b||"").match(G)||[""],j=b.length;while(j--)if(h=fa.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=n.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,m=i[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=f=m.length;while(f--)k=m[f],!e&&q!==k.origType||c&&c.guid!==k.guid||h&&!h.test(k.namespace)||d&&d!==k.selector&&("**"!==d||!k.selector)||(m.splice(f,1),k.selector&&m.delegateCount--,l.remove&&l.remove.call(a,k));g&&!m.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||n.removeEvent(a,o,r.handle),delete i[o])}else for(o in i)n.event.remove(a,o+b[j],c,d,!0);n.isEmptyObject(i)&&N.remove(a,"handle events")}},dispatch:function(a){a=n.event.fix(a);var b,c,d,f,g,h=[],i=e.call(arguments),j=(N.get(this,"events")||{})[a.type]||[],k=n.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=n.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,c=0;while((g=f.handlers[c++])&&!a.isImmediatePropagationStopped())(!a.rnamespace||a.rnamespace.test(g.namespace))&&(a.handleObj=g,a.data=g.data,d=((n.event.special[g.origType]||{}).handle||g.handler).apply(f.elem,i),void 0!==d&&(a.result=d)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&("click"!==a.type||isNaN(a.button)||a.button<1))for(;i!==this;i=i.parentNode||this)if(1===i.nodeType&&(i.disabled!==!0||"click"!==a.type)){for(d=[],c=0;h>c;c++)f=b[c],e=f.selector+" ",void 0===d[e]&&(d[e]=f.needsContext?n(e,this).index(i)>-1:n.find(e,this,null,[i]).length),d[e]&&d.push(f);d.length&&g.push({elem:i,handlers:d})}return h]*)\/>/gi,la=/\s*$/g;function pa(a,b){return n.nodeName(a,"table")&&n.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a:a}function qa(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function ra(a){var b=na.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function sa(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(N.hasData(a)&&(f=N.access(a),g=N.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;d>c;c++)n.event.add(b,e,j[e][c])}O.hasData(a)&&(h=O.access(a),i=n.extend({},h),O.set(b,i))}}function ta(a,b){var c=b.nodeName.toLowerCase();"input"===c&&X.test(a.type)?b.checked=a.checked:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}function ua(a,b,c,d){b=f.apply([],b);var e,g,h,i,j,k,m=0,o=a.length,p=o-1,q=b[0],r=n.isFunction(q);if(r||o>1&&"string"==typeof q&&!l.checkClone&&ma.test(q))return a.each(function(e){var f=a.eq(e);r&&(b[0]=q.call(this,e,f.html())),ua(f,b,c,d)});if(o&&(e=ca(b,a[0].ownerDocument,!1,a,d),g=e.firstChild,1===e.childNodes.length&&(e=g),g||d)){for(h=n.map(_(e,"script"),qa),i=h.length;o>m;m++)j=e,m!==p&&(j=n.clone(j,!0,!0),i&&n.merge(h,_(j,"script"))),c.call(a[m],j,m);if(i)for(k=h[h.length-1].ownerDocument,n.map(h,ra),m=0;i>m;m++)j=h[m],Z.test(j.type||"")&&!N.access(j,"globalEval")&&n.contains(k,j)&&(j.src?n._evalUrl&&n._evalUrl(j.src):n.globalEval(j.textContent.replace(oa,"")))}return a}function va(a,b,c){for(var d,e=b?n.filter(b,a):a,f=0;null!=(d=e[f]);f++)c||1!==d.nodeType||n.cleanData(_(d)),d.parentNode&&(c&&n.contains(d.ownerDocument,d)&&aa(_(d,"script")),d.parentNode.removeChild(d));return a}n.extend({htmlPrefilter:function(a){return a.replace(ka,"<$1>")},clone:function(a,b,c){var d,e,f,g,h=a.cloneNode(!0),i=n.contains(a.ownerDocument,a);if(!(l.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||n.isXMLDoc(a)))for(g=_(h),f=_(a),d=0,e=f.length;e>d;d++)ta(f[d],g[d]);if(b)if(c)for(f=f||_(a),g=g||_(h),d=0,e=f.length;e>d;d++)sa(f[d],g[d]);else sa(a,h);return g=_(h,"script"),g.length>0&&aa(g,!i&&_(a,"script")),h},cleanData:function(a){for(var b,c,d,e=n.event.special,f=0;void 0!==(c=a[f]);f++)if(L(c)){if(b=c[N.expando]){if(b.events)for(d in b.events)e[d]?n.event.remove(c,d):n.removeEvent(c,d,b.handle);c[N.expando]=void 0}c[O.expando]&&(c[O.expando]=void 0)}}}),n.fn.extend({domManip:ua,detach:function(a){return va(this,a,!0)},remove:function(a){return va(this,a)},text:function(a){return K(this,function(a){return void 0===a?n.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=a)})},null,a,arguments.length)},append:function(){return ua(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=pa(this,a);b.appendChild(a)}})},prepend:function(){return ua(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=pa(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return ua(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return ua(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},empty:function(){for(var a,b=0;null!=(a=this[b]);b++)1===a.nodeType&&(n.cleanData(_(a,!1)),a.textContent="");return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return n.clone(this,a,b)})},html:function(a){return K(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a&&1===b.nodeType)return b.innerHTML;if("string"==typeof a&&!la.test(a)&&!$[(Y.exec(a)||["",""])[1].toLowerCase()]){a=n.htmlPrefilter(a);try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(n.cleanData(_(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=[];return ua(this,arguments,function(b){var c=this.parentNode;n.inArray(this,a)<0&&(n.cleanData(_(this)),c&&c.replaceChild(b,this))},a)}}),n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){n.fn[a]=function(a){for(var c,d=[],e=n(a),f=e.length-1,h=0;f>=h;h++)c=h===f?this:this.clone(!0),n(e[h])[b](c),g.apply(d,c.get());return this.pushStack(d)}});var wa,xa={HTML:"block",BODY:"block"};function ya(a,b){var c=n(b.createElement(a)).appendTo(b.body),d=n.css(c[0],"display");return c.detach(),d}function za(a){var b=d,c=xa[a];return c||(c=ya(a,b),"none"!==c&&c||(wa=(wa||n("