code stringlengths 1 2.01M | repo_name stringlengths 3 62 | path stringlengths 1 267 | language stringclasses 231 values | license stringclasses 13 values | size int64 1 2.01M |
|---|---|---|---|---|---|
.dialog-content{
overflow:auto;
}
.dialog-toolbar{
background:#fafafa;
padding:2px 5px;
border-bottom:1px solid #eee;
}
.dialog-tool-separator{
float:left;
height:24px;
border-left:1px solid #ccc;
border-right:1px solid #fff;
margin:2px 1px;
}
.dialog-button{
border-top:1px solid #eee;
background:#fafafa;
padding:5px 5px;
text-align:right;
}
.dialog-button .l-btn{
margin-left:5px;
} | zzyapps | trunk/JqFw/WebRoot/resource/themes/gray/dialog.css | CSS | asf20 | 422 |
.spinner{
display:inline-block;
white-space:nowrap;
font-size:12px;
margin:0;
padding:0;
border:1px solid #d3d3d3;
}
.spinner-text{
font-size:12px;
border:0px;
line-height:20px;
height:20px;
padding:0px;
*height:18px;
*line-height:18px;
_height:18px;
_line-height:18px;
}
.spinner-arrow{
display:inline-block;
vertical-align:top;
margin:0;
padding:0;
}
.spinner-arrow-up,.spinner-arrow-down{
display:block;
background:#E0ECF9 url('images/spinner_arrow_up.gif') no-repeat 5px 2px;
font-size:1px;
width:18px;
height:10px;
}
.spinner-arrow-down{
background:#E0ECF9 url('images/spinner_arrow_down.gif') no-repeat 5px 3px;
}
.spinner-arrow-hover{
background-color:#ECF9F9;
} | zzyapps | trunk/JqFw/WebRoot/resource/themes/gray/spinner.css | CSS | asf20 | 732 |
.validatebox-invalid{
background:#FFFFEE url('images/validatebox_warning.png') no-repeat right 1px;
}
.validatebox-tip{
position:absolute;
width:200px;
height:auto;
display:none;
z-index:9900000;
}
.validatebox-tip-content{
display:inline-block;
position:absolute;
top:0px;
left:10px;
padding:3px 5px;
border:1px solid #CC9933;
background:#FFFFCC;
z-index:9900001;
font-size:12px;
}
.validatebox-tip-pointer{
background:url('images/validatebox_pointer.gif') no-repeat left top;
display:inline-block;
width:10px;
height:19px;
position:absolute;
left:1px;
top:0px;
z-index:9900002;
} | zzyapps | trunk/JqFw/WebRoot/resource/themes/gray/validatebox.css | CSS | asf20 | 634 |
.calendar{
background:#fff;
border:1px solid #d3d3d3;
padding:1px;
overflow:hidden;
}
.calendar-noborder{
border:0px;
}
.calendar-header{
position:relative;
background:#efefef;
font-size:12px;
height:22px;
}
.calendar-title{
text-align:center;
height:22px;
}
.calendar-title span{
position:relative;
top:2px;
display:inline-block;
padding:3px;
cursor:pointer;
-moz-border-radius:4px;
-webkit-border-radius:4px;
}
.calendar-prevmonth,.calendar-nextmonth,.calendar-prevyear,.calendar-nextyear{
position:absolute;
top:4px;
width:14px;
height:14px;
line-height:12px;
cursor:pointer;
font-size:1px;
-moz-border-radius:4px;
-webkit-border-radius:4px;
}
.calendar-prevmonth{
left:20px;
background:url('images/calendar_prevmonth.gif') no-repeat 3px 2px;
}
.calendar-nextmonth{
right:20px;
background:url('images/calendar_nextmonth.gif') no-repeat 3px 2px;
}
.calendar-prevyear{
left:3px;
background:url('images/calendar_prevyear.gif') no-repeat 1px 2px;
}
.calendar-nextyear{
right:3px;
background:url('images/calendar_nextyear.gif') no-repeat 1px 2px;
}
.calendar-body{
font-size:12px;
position:relative;
}
.calendar-body table{
width:100%;
height:100%;
border:1px solid #eee;
font-size:12px;
padding1:5px;
}
.calendar-body th,.calendar-body td{
text-align:center;
}
.calendar-body th{
background:#fafafa;
color:#888;
border-bottom1:1px solid #ccc;
}
.calendar-day{
color:#222;
cursor:pointer;
border:1px solid #fff;
-moz-border-radius:4px;
-webkit-border-radius:4px;
}
.calendar-sunday{
color:#CC2222;
}
.calendar-saturday{
color:#00ee00;
}
.calendar-today{
color:#0000ff;
}
.calendar-other-month{
opacity:0.3;
filter:alpha(opacity=30);
}
.calendar-hover{
border:1px solid red;
}
.calendar-selected{
background:#FBEC88;
border:1px solid red;
}
.calendar-nav-hover{
background-color:#FBEC88;
}
.calendar-menu{
position:absolute;
top:0px;
left:0px;
width:180px;
height:150px;
padding:5px;
font-size:12px;
background:#fafafa;
opacity:0.8;
filter:alpha(opacity=80);
display:none;
}
.calendar-menu-year-inner{
text-align:center;
padding-bottom:5px;
}
.calendar-menu-year{
width:40px;
text-align:center;
border:1px solid #ccc;
padding:2px;
font-weight:bold;
}
.calendar-menu-prev,.calendar-menu-next{
display:inline-block;
width:21px;
height:21px;
vertical-align:top;
cursor:pointer;
}
.calendar-menu-prev{
margin-right:10px;
background:url('images/calendar_prevyear.gif') no-repeat 5px 6px;
}
.calendar-menu-next{
margin-left:10px;
background:url('images/calendar_nextyear.gif') no-repeat 5px 6px;
}
.calendar-menu-hover{
background-color:#FBEC88;
}
.calendar-menu-month-inner table{
width:100%;
height:100%;
}
.calendar-menu-month{
text-align:center;
cursor:pointer;
border:1px solid #fafafa;
font-weight:bold;
color:#666;
-moz-border-radius:4px;
-webkit-border-radius:4px;
}
| zzyapps | trunk/JqFw/WebRoot/resource/themes/gray/calendar.css | CSS | asf20 | 3,027 |
.panel{
overflow:hidden;
font-size:12px;
}
.panel-header{
padding:5px;
line-height:15px;
color:#3F3F3F;
font-weight:bold;
font-size:12px;
background:url('images/panel_title.gif') repeat-x;
position:relative;
border:1px solid #D3D3D3;
}
.panel-title{
background:url('images/blank.gif') no-repeat;
}
.panel-header-noborder{
border-width:0px;
border-bottom:1px solid #D3D3D3;
}
.panel-body{
overflow:auto;
border:1px solid #D3D3D3;
border-top-width:0px;
}
.panel-body-noheader{
border-top-width:1px;
}
.panel-body-noborder{
border-width:0px;
}
.panel-with-icon{
padding-left:18px;
}
.panel-icon{
position:absolute;
left:5px;
top:4px;
width:16px;
height:16px;
}
.panel-tool{
position:absolute;
right:5px;
top:4px;
}
.panel-tool div{
display:block;
float:right;
width:16px;
height:16px;
margin-left:2px;
cursor:pointer;
opacity:0.6;
filter:alpha(opacity=60);
}
.panel-tool div.panel-tool-over{
opacity:1;
filter:alpha(opacity=100);
}
.panel-tool-close{
background:url('images/panel_tools.gif') no-repeat -16px 0px;
}
.panel-tool-min{
background:url('images/panel_tools.gif') no-repeat 0px 0px;
}
.panel-tool-max{
background:url('images/panel_tools.gif') no-repeat 0px -16px;
}
.panel-tool-restore{
background:url('images/panel_tools.gif') no-repeat -16px -16px;
}
.panel-tool-collapse{
background:url('images/panel_tool_collapse.gif') no-repeat;
}
.panel-tool-expand{
background:url('images/panel_tool_expand.gif') no-repeat;
}
.panel-loading{
padding:11px 0px 10px 30px;
background:url('images/panel_loading.gif') no-repeat 10px 10px;
}
| zzyapps | trunk/JqFw/WebRoot/resource/themes/gray/panel.css | CSS | asf20 | 1,665 |
.propertygrid .datagrid-view1 .datagrid-body,.propertygrid .datagrid-group{
background:#fafafa;
}
.propertygrid .datagrid-group{
height:21px;
overflow:hidden;
}
.propertygrid .datagrid-view1 .datagrid-body td{
border-color:#fafafa;
}
.propertygrid .datagrid-view1 .datagrid-row-over,.propertygrid .datagrid-view1 .datagrid-row-selected{
background:#fafafa;
}
.propertygrid .datagrid-group span{
color:#3F3F3F;
font-weight:bold;
padding-left:4px;
}
.propertygrid .datagrid-row-collapse,.propertygrid .datagrid-row-expand{
background-position:3px center;
} | zzyapps | trunk/JqFw/WebRoot/resource/themes/gray/propertygrid.css | CSS | asf20 | 583 |
.datebox .combo-arrow{
background:url('images/datebox_arrow.png') no-repeat center center;
}
.datebox-calendar-inner{
height:180px;
}
.datebox-button{
height:18px;
padding:2px 5px;
font-size:12px;
background-color:#fafafa;
text-align:center;
}
.datebox-current,.datebox-close{
float:left;
color:#888;
text-decoration:none;
font-weight:bold;
}
.datebox-close{
float:right;
}
.datebox-ok{
color:#888;
text-decoration:none;
font-weight:bold;
}
.datebox-button-hover{
color:#A4BED4;
}
| zzyapps | trunk/JqFw/WebRoot/resource/themes/gray/datebox.css | CSS | asf20 | 527 |
.pagination{
zoom:1;
}
.pagination table{
float:left;
height:30px;
}
.pagination-btn-separator{
float:left;
height:24px;
border-left:1px solid #ccc;
border-right:1px solid #fff;
margin:3px 1px;
}
.pagination-num{
border:1px solid #ccc;
margin:0 2px;
}
.pagination-page-list{
margin:0px 6px;
}
.pagination-info{
float:right;
padding-right:6px;
padding-top:8px;
font-size:12px;
}
.pagination span{
font-size:12px;
}
.pagination-first{
background:url('images/pagination_first.gif') no-repeat;
}
.pagination-prev{
background:url('images/pagination_prev.gif') no-repeat;
}
.pagination-next{
background:url('images/pagination_next.gif') no-repeat;
}
.pagination-last{
background:url('images/pagination_last.gif') no-repeat;
}
.pagination-load{
background:url('images/pagination_load.png') no-repeat;
}
.pagination-loading{
background:url('images/pagination_loading.gif') no-repeat;
}
| zzyapps | trunk/JqFw/WebRoot/resource/themes/gray/pagination.css | CSS | asf20 | 948 |
.progressbar{
border:1px solid #D3D3D3;
border-radius:5px;
overflow:hidden;
}
.progressbar-text{
text-align:center;
color:#3F3F3F;
position:absolute;
}
.progressbar-value{
background-color:#eee;
border-radius:5px;
width:0;
}
| zzyapps | trunk/JqFw/WebRoot/resource/themes/gray/progressbar.css | CSS | asf20 | 249 |
.s-btn-downarrow{
display:inline-block;
width:16px;
line-height:14px;
*line-height:15px;
background:url('images/menu_downarrow.png') no-repeat 9px center;
}
a.s-btn-active{
background-position: bottom right;
}
a.s-btn-active span.l-btn-left{
background-position: bottom left;
}
a.s-btn-active .s-btn-downarrow{
background:url('images/menu_split_downarrow.png') no-repeat 4px -19px;
}
a:hover.l-btn .s-btn-downarrow{
background:url('images/menu_split_downarrow.png') no-repeat 4px -19px;
}
a.s-btn-plain-active{
background:transparent;
border:1px solid #d3d3d3;
_padding:0px 5px 0px 0px;
-moz-border-radius:3px;
-webkit-border-radius: 3px;
}
a.s-btn-plain-active .s-btn-downarrow{
background:url('images/menu_split_downarrow.png') no-repeat 4px -19px;
} | zzyapps | trunk/JqFw/WebRoot/resource/themes/gray/splitbutton.css | CSS | asf20 | 799 |
.combobox-item{
padding:2px;
font-size:12px;
padding:3px;
padding-right:0px;
}
.combobox-item-hover{
background:#fafafa;
}
.combobox-item-selected{
background:#FBEC88;
} | zzyapps | trunk/JqFw/WebRoot/resource/themes/gray/combobox.css | CSS | asf20 | 186 |
.accordion{
background:#fff;
overflow:hidden;
}
.accordion .accordion-header{
background:#efefef;
border-top-width:0;
cursor:pointer;
}
.accordion .accordion-header .panel-title{
font-weight:normal;
}
.accordion .accordion-header-selected .panel-title{
font-weight:bold;
}
.accordion-noborder .accordion-header{
border-width:0 0 1px;
}
.accordion-noborder .accordion-body{
border-width:0px;
}
.accordion-collapse{
background:url('images/accordion_collapse.png') no-repeat;
}
.accordion-expand{
background:url('images/accordion_expand.png') no-repeat;
}
.calendar{
background:#fff;
border:1px solid #d3d3d3;
padding:1px;
overflow:hidden;
}
.calendar-noborder{
border:0px;
}
.calendar-header{
position:relative;
background:#efefef;
font-size:12px;
height:22px;
}
.calendar-title{
text-align:center;
height:22px;
}
.calendar-title span{
position:relative;
top:2px;
display:inline-block;
padding:3px;
cursor:pointer;
-moz-border-radius:4px;
-webkit-border-radius:4px;
}
.calendar-prevmonth,.calendar-nextmonth,.calendar-prevyear,.calendar-nextyear{
position:absolute;
top:4px;
width:14px;
height:14px;
line-height:12px;
cursor:pointer;
font-size:1px;
-moz-border-radius:4px;
-webkit-border-radius:4px;
}
.calendar-prevmonth{
left:20px;
background:url('images/calendar_prevmonth.gif') no-repeat 3px 2px;
}
.calendar-nextmonth{
right:20px;
background:url('images/calendar_nextmonth.gif') no-repeat 3px 2px;
}
.calendar-prevyear{
left:3px;
background:url('images/calendar_prevyear.gif') no-repeat 1px 2px;
}
.calendar-nextyear{
right:3px;
background:url('images/calendar_nextyear.gif') no-repeat 1px 2px;
}
.calendar-body{
font-size:12px;
position:relative;
}
.calendar-body table{
width:100%;
height:100%;
border:1px solid #eee;
font-size:12px;
padding1:5px;
}
.calendar-body th,.calendar-body td{
text-align:center;
}
.calendar-body th{
background:#fafafa;
color:#888;
border-bottom1:1px solid #ccc;
}
.calendar-day{
color:#222;
cursor:pointer;
border:1px solid #fff;
-moz-border-radius:4px;
-webkit-border-radius:4px;
}
.calendar-sunday{
color:#CC2222;
}
.calendar-saturday{
color:#00ee00;
}
.calendar-today{
color:#0000ff;
}
.calendar-other-month{
opacity:0.3;
filter:alpha(opacity=30);
}
.calendar-hover{
border:1px solid red;
}
.calendar-selected{
background:#FBEC88;
border:1px solid red;
}
.calendar-nav-hover{
background-color:#FBEC88;
}
.calendar-menu{
position:absolute;
top:0px;
left:0px;
width:180px;
height:150px;
padding:5px;
font-size:12px;
background:#fafafa;
opacity:0.8;
filter:alpha(opacity=80);
display:none;
}
.calendar-menu-year-inner{
text-align:center;
padding-bottom:5px;
}
.calendar-menu-year{
width:40px;
text-align:center;
border:1px solid #ccc;
padding:2px;
font-weight:bold;
}
.calendar-menu-prev,.calendar-menu-next{
display:inline-block;
width:21px;
height:21px;
vertical-align:top;
cursor:pointer;
}
.calendar-menu-prev{
margin-right:10px;
background:url('images/calendar_prevyear.gif') no-repeat 5px 6px;
}
.calendar-menu-next{
margin-left:10px;
background:url('images/calendar_nextyear.gif') no-repeat 5px 6px;
}
.calendar-menu-hover{
background-color:#FBEC88;
}
.calendar-menu-month-inner table{
width:100%;
height:100%;
}
.calendar-menu-month{
text-align:center;
cursor:pointer;
border:1px solid #fafafa;
font-weight:bold;
color:#666;
-moz-border-radius:4px;
-webkit-border-radius:4px;
}
.combo{
display:inline-block;
white-space:nowrap;
font-size:12px;
margin:0;
padding:0;
border:1px solid #d3d3d3;
background:#fff;
}
.combo-text{
font-size:12px;
border:0px;
line-height:20px;
height:20px;
padding:0px;
*height:18px;
*line-height:18px;
_height:18px;
_line-height:18px;
}
.combo-arrow{
background:#E0ECF9 url('images/combo_arrow.gif') no-repeat 3px 4px;
width:18px;
height:20px;
overflow:hidden;
display:inline-block;
vertical-align:top;
cursor:pointer;
opacity:0.6;
filter:alpha(opacity=60);
}
.combo-arrow-hover{
opacity:1.0;
filter:alpha(opacity=100);
}
.combo-panel{
background:#fff;
overflow:auto;
}
.combobox-item{
padding:2px;
font-size:12px;
padding:3px;
padding-right:0px;
}
.combobox-item-hover{
background:#fafafa;
}
.combobox-item-selected{
background:#FBEC88;
}.datagrid .panel-body{
overflow:hidden;
}
.datagrid-wrap{
position:relative;
}
.datagrid-view{
position:relative;
overflow:hidden;
}
.datagrid-view1{
position:absolute;
overflow:hidden;
left:0px;
top:0px;
}
.datagrid-view2{
position:absolute;
overflow:hidden;
left:210px;
top:0px;
}
.datagrid-mask{
position:absolute;
left:0;
top:0;
background:#ccc;
opacity:0.3;
filter:alpha(opacity=30);
display:none;
}
.datagrid-mask-msg{
position:absolute;
left:100px;
top:50px;
width:auto;
height:16px;
padding:12px 5px 10px 30px;
background:#fff url('images/pagination_loading.gif') no-repeat scroll 5px 10px;
border:2px solid #ccc;
color:#222;
display:none;
}
.datagrid-title{
background:url('images/datagrid_title_bg.gif') repeat-x;
border-bottom:1px solid #D3D3D3;
border-top:1px solid #fff;
position:relative;
padding:5px 0px;
}
.datagrid-title-text{
color:#3F3F3F;
font-weight:bold;
padding-left:5px;
}
.datagrid-title-with-icon{
padding-left:22px;
}
.datagrid-title-icon{
position:absolute;
width:16px;
height:16px;
left:3px;
top:4px!important;
top:6px;
}
.datagrid-sort-desc .datagrid-sort-icon{
padding:2px 13px 3px 0px;
background:url('images/datagrid_sort_desc.gif') no-repeat center center;
}
.datagrid-sort-asc .datagrid-sort-icon{
padding:2px 13px 3px 0px;
background:url('images/datagrid_sort_asc.gif') no-repeat center center;
}
.datagrid-toolbar{
height:28px;
background:#efefef;
padding:1px 2px;
border-bottom:1px solid #ccc;
}
.datagrid-btn-separator{
float:left;
height:24px;
border-left:1px solid #ccc;
border-right:1px solid #fff;
margin:2px 1px;
}
.datagrid-pager{
background:#efefef;
border-top:1px solid #ccc;
position:relative;
}
.datagrid-header{
overflow:hidden;
background:#fafafa url('images/datagrid_header_bg.gif') repeat-x left bottom;
border-bottom:1px solid #ccc;
cursor:default;
}
.datagrid-header-inner{
float:left;
width:10000px;
}
.datagrid-header td{
border-right:1px dotted #ccc;
font-size:12px;
font-weight:normal;
background:#fafafa url('images/datagrid_header_bg.gif') repeat-x left bottom;
border-bottom:1px dotted #ccc;
border-top:1px dotted #fff;
}
.datagrid-header td.datagrid-header-over{
background:#EBF3FD;
}
.datagrid-header .datagrid-cell{
margin:0;
padding:3px 4px;
white-space:nowrap;
word-wrap:normal;
overflow:hidden;
text-align:center;
}
.datagrid-header .datagrid-cell-group{
margin:0;
padding:4px 2px 4px 4px;
white-space:nowrap;
word-wrap:normal;
overflow:hidden;
text-align:center;
}
.datagrid-header-rownumber{
width:25px;
text-align:center;
margin:0px;
padding:3px 0px;
}
.datagrid-td-rownumber{
background:#fafafa url('images/datagrid_header_bg.gif') repeat-x left bottom;
}
.datagrid-cell-rownumber{
width:25px;
text-align:center;
margin:0px;
padding:3px 0px;
color:#000;
}
.datagrid-body{
margin:0;
padding:0;
overflow:auto;
zoom:1;
}
.datagrid-view1 .datagrid-body-inner{
padding-bottom:20px;
}
.datagrid-view1 .datagrid-body{
overflow:hidden;
}
.datagrid-footer{
overflow:hidden;
}
.datagrid-footer-inner{
border-top:1px solid #ccc;
width:10000px;
float:left;
}
.datagrid-body td,.datagrid-footer td{
font-size:12px;
border-right:1px dotted #ccc;
border-bottom:1px dotted #ccc;
overflow:hidden;
padding:0;
margin:0;
}
.datagrid-body .datagrid-cell,.datagrid-footer .datagrid-cell{
overflow:hidden;
margin:0;
padding:3px 4px;
white-space:nowrap;
word-wrap:normal;
}
.datagrid-header-check{
padding:3px 6px;
}
.datagrid-cell-check{
padding:3px 6px;
font-size:1px;
overflow:hidden;
}
.datagrid-header-check input{
margin:0;
padding:0;
width:15px;
height:15px;
}
.datagrid-cell-check input{
margin:0;
padding:0;
width:15px;
height:15px;
}
.datagrid-row-collapse{
background:url('images/datagrid_row_collapse.gif') no-repeat center center;
}
.datagrid-row-expand{
background:url('images/datagrid_row_expand.gif') no-repeat center center;
}
.datagrid-row-alt{
background:#fafafa;
}
.datagrid-row-over{
background:#efefef;
background1:#FBEC88;
cursor:default;
}
.datagrid-row-selected{
background:#FBEC88;
}
.datagrid-resize-proxy{
position:absolute;
width:1px;
top:0;
height:10000px;
background:red;
cursor:e-resize;
display:none;
}
.datagrid-body .datagrid-editable{
padding:0;
}
.datagrid-body .datagrid-editable td{
border:0;
padding:0;
}
.datagrid-body .datagrid-editable .datagrid-editable-input{
width:100%;
font-size:12px;
border:1px solid #ccc;
padding:3px 2px;
}.datebox .combo-arrow{
background:url('images/datebox_arrow.png') no-repeat center center;
}
.datebox-calendar-inner{
height:180px;
}
.datebox-button{
height:18px;
padding:2px 5px;
font-size:12px;
background-color:#fafafa;
text-align:center;
}
.datebox-current,.datebox-close{
float:left;
color:#888;
text-decoration:none;
font-weight:bold;
}
.datebox-close{
float:right;
}
.datebox-ok{
color:#888;
text-decoration:none;
font-weight:bold;
}
.datebox-button-hover{
color:#A4BED4;
}
.dialog-content{
overflow:auto;
}
.dialog-toolbar{
background:#fafafa;
padding:2px 5px;
border-bottom:1px solid #eee;
}
.dialog-tool-separator{
float:left;
height:24px;
border-left:1px solid #ccc;
border-right:1px solid #fff;
margin:2px 1px;
}
.dialog-button{
border-top:1px solid #eee;
background:#fafafa;
padding:5px 5px;
text-align:right;
}
.dialog-button .l-btn{
margin-left:5px;
}.layout{
position:relative;
overflow:hidden;
margin:0;
padding:0;
}
.layout-panel{
position:absolute;
overflow:hidden;
}
.layout-panel-east,.layout-panel-west{
z-index:2;
background1:#fff;
}
.layout-panel-north,.layout-panel-south{
z-index:3;
background1:#fff;
}
.layout-button-up{
background:url('images/layout_button_up.gif') no-repeat;
}
.layout-button-down{
background:url('images/layout_button_down.gif') no-repeat;
}
.layout-button-left{
background:url('images/layout_button_left.gif') no-repeat;
}
.layout-button-right{
background:url('images/layout_button_right.gif') no-repeat;
}
.layout-expand{
position:absolute;
padding:0px 5px;
padding:0px;
background:#efefef;
font-size:1px;
cursor:pointer;
z-index:1;
}
.layout-expand .panel-header{
background:transparent;
border-bottom-width:0px;
}
.layout-expand .panel-header .panel-tool{
top: 5px;
}
.layout-expand .panel-body{
overflow:hidden;
}
.layout-expand-over{
background:#fafafa;
}
.layout-body{
overflow:auto;
background:#fff;
}
.layout-split-proxy-h{
position:absolute;
width:5px;
background:#ccc;
font-size:1px;
cursor:e-resize;
display:none;
z-index:5;
}
.layout-split-proxy-v{
position:absolute;
height:5px;
background:#ccc;
font-size:1px;
cursor:n-resize;
display:none;
z-index:5;
}
.layout-split-north{
border-bottom:5px solid #efefef;
}
.layout-split-south{
border-top:5px solid #efefef;
}
.layout-split-east{
border-left:5px solid #efefef;
}
.layout-split-west{
border-right:5px solid #efefef;
}
.layout-mask{
position:absolute;
background:#fafafa;
filter:alpha(opacity=10);
opacity:0.10;
z-index:4;
}
a.l-btn{
color:#444;
background:url('images/button_a_bg.gif') no-repeat top right;
font-size:12px;
text-decoration:none;
display:inline-block;
zoom:1;
height:24px;
padding-right:18px;
cursor:pointer;
outline:none;
}
a.l-btn-plain{
background:transparent;
padding-right:5px;
border:1px solid transparent;
_border:0px solid #efefef;
_padding:1px 6px 1px 1px;
}
a.l-btn-disabled{
color:#ccc;
opacity:0.5;
filter:alpha(opacity=50);
cursor:default;
}
a.l-btn span.l-btn-left{
display:inline-block;
background:url('images/button_span_bg.gif') no-repeat top left;
padding:4px 0px 4px 18px;
line-height:16px;
height:16px;
}
a.l-btn-plain span.l-btn-left{
background:transparent;
padding-left:5px;
}
a.l-btn span span.l-btn-text{
display:inline-block;
height:16px;
line-height:16px;
padding:0px;
}
a.l-btn span span span.l-btn-empty{
display:inline-block;
padding:0px;
width:16px;
}
a:hover.l-btn{
background-position: bottom right;
outline:none;
}
a:hover.l-btn span.l-btn-left{
background-position: bottom left;
}
a:hover.l-btn-plain{
border:1px solid #d3d3d3;
background:url('images/button_plain_hover.png') repeat-x left bottom;
_padding:0px 5px 0px 0px;
-moz-border-radius:3px;
-webkit-border-radius: 3px;
}
a:hover.l-btn-disabled{
background-position:top right;
}
a:hover.l-btn-disabled span.l-btn-left{
background-position:top left;
}
.menu{
position:absolute;
background:#f0f0f0 url('images/menu.gif') repeat-y;
margin:0;
padding:2px;
border:1px solid #ccc;
overflow:hidden;
}
.menu-item{
position:relative;
margin:0;
padding:0;
height:22px;
line-height:20px;
overflow:hidden;
font-size:12px;
cursor:pointer;
border:1px solid transparent;
_border:1px solid #f0f0f0;
}
.menu-text{
position:absolute;
left:28px;
top:0px;
}
.menu-icon{
position:absolute;
width:16px;
height:16px;
top:3px;
left:2px;
}
.menu-rightarrow{
position: absolute;
width:4px;
height:7px;
top:7px;
right:5px;
background:url('images/menu_rightarrow.png') no-repeat;
}
.menu-sep{
margin:3px 0px 3px 24px;
line-height:2px;
font-size:2px;
background:url('images/menu_sep.png') repeat-x;
}
.menu-active{
border:1px solid #d3d3d3;
background:#fafafa;
-moz-border-radius:3px;
-webkit-border-radius: 3px;
}
.menu-shadow{
position:absolute;
background:#ddd;
-moz-border-radius:5px;
-webkit-border-radius: 5px;
-moz-box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
-webkit-box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
filter: progid:DXImageTransform.Microsoft.Blur(pixelRadius=2,MakeShadow=false,ShadowOpacity=0.2);
}
.menu-item-disabled{
opacity:0.5;
filter:alpha(opacity=50);
cursor:default;
}
.menu-active-disabled{
border-color:#d3d3d3;
}
.m-btn-downarrow{
display:inline-block;
width:12px;
line-height:14px;
*line-height:15px;
background:url('images/menu_downarrow.png') no-repeat 4px center;
}
a.m-btn-active{
background-position: bottom right;
}
a.m-btn-active span.l-btn-left{
background-position: bottom left;
}
a.m-btn-plain-active{
background:transparent;
border:1px solid #d3d3d3;
_padding:0px 5px 0px 0px;
-moz-border-radius:3px;
-webkit-border-radius: 3px;
}
.messager-body{
padding:5px 10px;
}
.messager-button{
text-align:center;
padding-top:10px;
}
.messager-icon{
float:left;
width:47px;
height:35px;
}
.messager-error{
background:url('images/messager_error.gif') no-repeat scroll left top;
}
.messager-info{
background:url('images/messager_info.gif') no-repeat scroll left top;
}
.messager-question{
background:url('images/messager_question.gif') no-repeat scroll left top;
}
.messager-warning{
background:url('images/messager_warning.gif') no-repeat scroll left top;
}
.messager-input{
width: 262px;
border:1px solid #ccc;
}
.messager-progress{
padding:10px;
}
.messager-p-msg{
margin-bottom:5px;
}.pagination{
zoom:1;
}
.pagination table{
float:left;
height:30px;
}
.pagination-btn-separator{
float:left;
height:24px;
border-left:1px solid #ccc;
border-right:1px solid #fff;
margin:3px 1px;
}
.pagination-num{
border:1px solid #ccc;
margin:0 2px;
}
.pagination-page-list{
margin:0px 6px;
}
.pagination-info{
float:right;
padding-right:6px;
padding-top:8px;
font-size:12px;
}
.pagination span{
font-size:12px;
}
.pagination-first{
background:url('images/pagination_first.gif') no-repeat;
}
.pagination-prev{
background:url('images/pagination_prev.gif') no-repeat;
}
.pagination-next{
background:url('images/pagination_next.gif') no-repeat;
}
.pagination-last{
background:url('images/pagination_last.gif') no-repeat;
}
.pagination-load{
background:url('images/pagination_load.png') no-repeat;
}
.pagination-loading{
background:url('images/pagination_loading.gif') no-repeat;
}
.panel{
overflow:hidden;
font-size:12px;
}
.panel-header{
padding:5px;
line-height:15px;
color:#3F3F3F;
font-weight:bold;
font-size:12px;
background:url('images/panel_title.gif') repeat-x;
position:relative;
border:1px solid #D3D3D3;
}
.panel-title{
background:url('images/blank.gif') no-repeat;
}
.panel-header-noborder{
border-width:0px;
border-bottom:1px solid #D3D3D3;
}
.panel-body{
overflow:auto;
border:1px solid #D3D3D3;
border-top-width:0px;
}
.panel-body-noheader{
border-top-width:1px;
}
.panel-body-noborder{
border-width:0px;
}
.panel-with-icon{
padding-left:18px;
}
.panel-icon{
position:absolute;
left:5px;
top:4px;
width:16px;
height:16px;
}
.panel-tool{
position:absolute;
right:5px;
top:4px;
}
.panel-tool div{
display:block;
float:right;
width:16px;
height:16px;
margin-left:2px;
cursor:pointer;
opacity:0.6;
filter:alpha(opacity=60);
}
.panel-tool div.panel-tool-over{
opacity:1;
filter:alpha(opacity=100);
}
.panel-tool-close{
background:url('images/panel_tools.gif') no-repeat -16px 0px;
}
.panel-tool-min{
background:url('images/panel_tools.gif') no-repeat 0px 0px;
}
.panel-tool-max{
background:url('images/panel_tools.gif') no-repeat 0px -16px;
}
.panel-tool-restore{
background:url('images/panel_tools.gif') no-repeat -16px -16px;
}
.panel-tool-collapse{
background:url('images/panel_tool_collapse.gif') no-repeat;
}
.panel-tool-expand{
background:url('images/panel_tool_expand.gif') no-repeat;
}
.panel-loading{
padding:11px 0px 10px 30px;
background:url('images/panel_loading.gif') no-repeat 10px 10px;
}
.progressbar{
border:1px solid #D3D3D3;
border-radius:5px;
overflow:hidden;
}
.progressbar-text{
text-align:center;
color:#3F3F3F;
position:absolute;
}
.progressbar-value{
background-color:#eee;
border-radius:5px;
width:0;
}
.propertygrid .datagrid-view1 .datagrid-body,.propertygrid .datagrid-group{
background:#fafafa;
}
.propertygrid .datagrid-group{
height:21px;
overflow:hidden;
}
.propertygrid .datagrid-view1 .datagrid-body td{
border-color:#fafafa;
}
.propertygrid .datagrid-view1 .datagrid-row-over,.propertygrid .datagrid-view1 .datagrid-row-selected{
background:#fafafa;
}
.propertygrid .datagrid-group span{
color:#3F3F3F;
font-weight:bold;
padding-left:4px;
}
.propertygrid .datagrid-row-collapse,.propertygrid .datagrid-row-expand{
background-position:3px center;
}.searchbox{
display:inline-block;
white-space:nowrap;
font-size:12px;
margin:0;
padding:0;
border:1px solid #d3d3d3;
background:#fff;
}
.searchbox-text{
font-size:12px;
border:0px;
line-height:20px;
height:20px;
padding:0px;
*height:18px;
*line-height:18px;
_height:18px;
_line-height:18px;
}
.searchbox-button{
background:url('images/searchbox_button.png') no-repeat center center;
width:18px;
height:20px;
overflow:hidden;
display:inline-block;
vertical-align:top;
cursor:pointer;
opacity:0.6;
filter:alpha(opacity=60);
}
.searchbox-button-hover{
opacity:1.0;
filter:alpha(opacity=100);
}
.searchbox-prompt{
font-size:12px;
color:#ccc;
}
.searchbox a.l-btn-plain{
background-color:#efefef;
height:20px;
border:0;
padding:0 6px 0 0;
vertical-align:top;
}
.searchbox a.l-btn .l-btn-left{
padding:2px 0 2px 2px;
}
.searchbox a.l-btn-plain:hover{
-moz-border-radius:0px;
-webkit-border-radius: 0px;
border:0;
padding:0 6px 0 0;
}
.searchbox a.m-btn-plain-active{
-moz-border-radius:0px;
-webkit-border-radius: 0px;
}.spinner{
display:inline-block;
white-space:nowrap;
font-size:12px;
margin:0;
padding:0;
border:1px solid #d3d3d3;
}
.spinner-text{
font-size:12px;
border:0px;
line-height:20px;
height:20px;
padding:0px;
*height:18px;
*line-height:18px;
_height:18px;
_line-height:18px;
}
.spinner-arrow{
display:inline-block;
vertical-align:top;
margin:0;
padding:0;
}
.spinner-arrow-up,.spinner-arrow-down{
display:block;
background:#E0ECF9 url('images/spinner_arrow_up.gif') no-repeat 5px 2px;
font-size:1px;
width:18px;
height:10px;
}
.spinner-arrow-down{
background:#E0ECF9 url('images/spinner_arrow_down.gif') no-repeat 5px 3px;
}
.spinner-arrow-hover{
background-color:#ECF9F9;
}.s-btn-downarrow{
display:inline-block;
width:16px;
line-height:14px;
*line-height:15px;
background:url('images/menu_downarrow.png') no-repeat 9px center;
}
a.s-btn-active{
background-position: bottom right;
}
a.s-btn-active span.l-btn-left{
background-position: bottom left;
}
a.s-btn-active .s-btn-downarrow{
background:url('images/menu_split_downarrow.png') no-repeat 4px -19px;
}
a:hover.l-btn .s-btn-downarrow{
background:url('images/menu_split_downarrow.png') no-repeat 4px -19px;
}
a.s-btn-plain-active{
background:transparent;
border:1px solid #d3d3d3;
_padding:0px 5px 0px 0px;
-moz-border-radius:3px;
-webkit-border-radius: 3px;
}
a.s-btn-plain-active .s-btn-downarrow{
background:url('images/menu_split_downarrow.png') no-repeat 4px -19px;
}.tabs-container{
overflow:hidden;
background:#fff;
}
.tabs-header{
border:1px solid #D3D3D3;
background:#efefef;
border-bottom:0px;
position:relative;
overflow:hidden;
padding:0px;
padding-top:2px;
overflow:hidden;
}
.tabs-header-noborder{
border:0px;
}
.tabs-header-plain{
border:0px;
background:transparent;
}
.tabs-scroller-left{
position:absolute;
left:0px;
top:-1px;
width:18px;
height:28px!important;
height:30px;
border:1px solid #D3D3D3;
font-size:1px;
display:none;
cursor:pointer;
background:#efefef url('images/tabs_leftarrow.png') no-repeat 1px 5px;
}
.tabs-scroller-right{
position:absolute;
right:0;
top:-1px;
width:18px;
height:28px!important;
height:30px;
border:1px solid #D3D3D3;
font-size:1px;
display:none;
cursor:pointer;
background:#efefef url('images/tabs_rightarrow.png') no-repeat 2px 5px;
}
.tabs-tool{
position:absolute;
top:-1px;
border:1px solid #D3D3D3;
padding:1px;
background:#efefef;
overflow:hidden;
}
.tabs-header-plain .tabs-scroller-left{
top:2px;
height:25px!important;
height:27px;
}
.tabs-header-plain .tabs-scroller-right{
top:2px;
height:25px!important;
height:27px;
}
.tabs-header-plain .tabs-tool{
top:2px;
padding-top:0;
}
.tabs-scroller-over{
background-color:#fafafa;
}
.tabs-wrap{
position:relative;
left:0px;
overflow:hidden;
width:100%;
margin:0px;
padding:0px;
}
.tabs-scrolling{
margin-left:18px;
margin-right:18px;
}
.tabs{
list-style-type:none;
height:26px;
margin:0px;
padding:0px;
padding-left:4px;
font-size:12px;
width:5000px;
border-bottom:1px solid #D3D3D3;
}
.tabs li{
float:left;
display:inline-block;
margin1:0px 1px;
margin-right:4px;
margin-bottom:-1px;
padding:0;
position:relative;
border:1px solid #D3D3D3;
-moz-border-radius-topleft:5px;
-moz-border-radius-topright:5px;
-webkit-border-top-left-radius:5px;
-webkit-border-top-right-radius:5px;
}
.tabs li a.tabs-inner{
display:inline-block;
text-decoration:none;
color:#3F3F3F;
background:url('images/tabs_enabled.gif') repeat-x left top;
margin:0px;
padding:0px 10px;
height:25px;
line-height:25px;
text-align:center;
white-space:nowrap;
-moz-border-radius-topleft:5px;
-moz-border-radius-topright:5px;
-webkit-border-top-left-radius:5px;
-webkit-border-top-right-radius:5px;
}
.tabs li a.tabs-inner:hover{
background:#fff;
}
.tabs li.tabs-selected{
border:1px solid #D3D3D3;
border-bottom:1px solid #fff;
border-top1:2px solid #D3D3D3;
}
.tabs li.tabs-selected a{
color:#3F3F3F;
font-weight:bold;
background:#fff;
background:#fff;
outline: none;
}
.tabs li.tabs-selected a:hover{
cursor:default;
pointer:default;
}
.tabs-with-icon{
padding-left:18px;
}
.tabs-icon{
position:absolute;
width:16px;
height:16px;
left:10px;
top:5px;
}
.tabs-closable{
padding-right:8px;
}
.tabs li a.tabs-close{
position:absolute;
font-size:1px;
display:block;
padding:0px;
width:11px;
height:11px;
top:7px;
right:5px;
opacity:0.6;
filter:alpha(opacity=60);
background:url('images/tabs_close.gif') no-repeat 2px 2px;
}
.tabs li a:hover.tabs-close{
opacity:1;
filter:alpha(opacity=100);
cursor:hand;
cursor:pointer;
background-color:#D3D3D3;
}
.tabs-panels{
margin:0px;
padding:0px;
border:1px solid #D3D3D3;
border-top:0px;
overflow:hidden;
}
.tabs-panels-noborder{
border:0px;
}
.tree{
font-size:12px;
margin:0;
padding:0;
list-style-type:none;
}
.tree li{
white-space:nowrap;
}
.tree li ul{
list-style-type:none;
margin:0;
padding:0;
}
.tree-node{
height:18px;
white-space:nowrap;
cursor:pointer;
}
.tree-indent{
display:inline-block;
width:16px;
height:18px;
vertical-align:middle;
}
.tree-hit{
cursor:pointer;
}
.tree-expanded{
display:inline-block;
width:16px;
height:18px;
vertical-align:middle;
background:url('images/tree_arrows.gif') no-repeat -18px 0px;
}
.tree-expanded-hover{
background:url('images/tree_arrows.gif') no-repeat -50px 0px;
}
.tree-collapsed{
display:inline-block;
width:16px;
height:18px;
vertical-align:middle;
background:url('images/tree_arrows.gif') no-repeat 0px 0px;
}
.tree-collapsed-hover{
background:url('images/tree_arrows.gif') no-repeat -32px 0px;
}
.tree-folder{
display:inline-block;
background:url('images/tree_folder.gif') no-repeat;
width:16px;
height:18px;
vertical-align:middle;
}
.tree-folder-open{
background:url('images/tree_folder_open.gif') no-repeat;
}
.tree-file{
display:inline-block;
background:url('images/tree_file.gif') no-repeat;
width:16px;
height:18px;
vertical-align:middle;
}
.tree-loading{
background:url('images/tree_loading.gif') no-repeat;
}
.tree-title{
display:inline-block;
text-decoration:none;
vertical-align:middle;
padding:1px 2px 1px 2px;
white-space:nowrap;
}
.tree-node-hover{
background:#fafafa;
}
.tree-node-selected{
background:#FBEC88;
}
.tree-checkbox{
display:inline-block;
width:16px;
height:18px;
vertical-align:middle;
}
.tree-checkbox0{
background:url('images/tree_checkbox_0.gif') no-repeat;
}
.tree-checkbox1{
background:url('images/tree_checkbox_1.gif') no-repeat;
}
.tree-checkbox2{
background:url('images/tree_checkbox_2.gif') no-repeat;
}
.tree-node-proxy{
font-size:12px;
padding:1px 2px 1px 18px;
background:#fafafa;
border:1px solid #ccc;
z-index:9900000;
}
.tree-dnd-yes{
background:url('images/tree_dnd_yes.png') no-repeat 0 center;
}
.tree-dnd-no{
background:url('images/tree_dnd_no.png') no-repeat 0 center;
}
.tree-node-top{
border-top:1px dotted red;
}
.tree-node-bottom{
border-bottom:1px dotted red;
}
.tree-node-append .tree-title{
border:1px dotted red;
}
.tree-editor{
border:1px solid #ccc;
font-size:12px;
line-height:16px;
width:80px;
position:absolute;
top:0;
}
.validatebox-invalid{
background:#FFFFEE url('images/validatebox_warning.png') no-repeat right 1px;
}
.validatebox-tip{
position:absolute;
width:200px;
height:auto;
display:none;
z-index:9900000;
}
.validatebox-tip-content{
display:inline-block;
position:absolute;
top:0px;
left:10px;
padding:3px 5px;
border:1px solid #CC9933;
background:#FFFFCC;
z-index:9900001;
font-size:12px;
}
.validatebox-tip-pointer{
background:url('images/validatebox_pointer.gif') no-repeat left top;
display:inline-block;
width:10px;
height:19px;
position:absolute;
left:1px;
top:0px;
z-index:9900002;
}.window {
font-size:12px;
position:absolute;
overflow:hidden;
background:#eee url('images/panel_title.gif') repeat-x;
padding:5px;
border:1px solid #D3D3D3;
border-radius:5px;
-moz-border-radius:5px;
-webkit-border-radius: 5px;
}
.window-shadow{
position:absolute;
background:#ddd;
border-radius:5px;
-moz-border-radius:5px;
-webkit-border-radius: 5px;
-moz-box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
-webkit-box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
filter: progid:DXImageTransform.Microsoft.Blur(pixelRadius=2,MakeShadow=false,ShadowOpacity=0.2);
}
.window .window-header{
background:transparent;
padding:2px 0px 4px 0px;
}
.window .window-body{
background:#fff;
border:1px solid #D3D3D3;
border-top-width:0px;
}
.window .window-body-noheader{
border-top-width:1px;
}
.window .window-header .panel-icon{
left:1px;
top:1px;
}
.window .window-header .panel-with-icon{
padding-left:18px;
}
.window .window-header .panel-tool{
top:0px;
right:1px;
}
.window-proxy{
position:absolute;
overflow:hidden;
border:1px dashed #3F3F3F;
}
.window-proxy-mask{
position:absolute;
background:#fafafa;
filter:alpha(opacity=10);
opacity:0.10;
}
.window-mask{
position:absolute;
left:0;
top:0;
width:100%;
height:100%;
filter:alpha(opacity=40);
opacity:0.40;
background:#ccc;
display1:none;
font-size:1px;
*zoom:1;
overflow:hidden;
}
/**zzy+*/
.easyui-tbar{
background-color: #ECECEC;
background-image: url(images/tbarBg-gray.gif);
background-repeat: repeat-x;
background-position: top;
border: 1px solid #D3D3D3;
width: 100%;
height: 35px;
}
.top{
background: transparent;
background-image: url(images/top_bg.jpg);
background-repeat: repeat-x;
background-position: left top;
width: 100%;
}
.logo {
font: bold 32px Tahoma, Verdana, Arial, Helvetica, sans-serif;
background-repeat: no-repeat;
position: absolute;
width: 337px;
height: 68px;
left: 0px;
top: 0px;
background:url('images/logo.jpg') no-repeat;
}
| zzyapps | trunk/JqFw/WebRoot/resource/themes/gray/easyui.css | CSS | asf20 | 30,638 |
.menu{
position:absolute;
background:#f0f0f0 url('images/menu.gif') repeat-y;
margin:0;
padding:2px;
border:1px solid #ccc;
overflow:hidden;
}
.menu-item{
position:relative;
margin:0;
padding:0;
height:22px;
line-height:20px;
overflow:hidden;
font-size:12px;
cursor:pointer;
border:1px solid transparent;
_border:1px solid #f0f0f0;
}
.menu-text{
position:absolute;
left:28px;
top:0px;
}
.menu-icon{
position:absolute;
width:16px;
height:16px;
top:3px;
left:2px;
}
.menu-rightarrow{
position: absolute;
width:4px;
height:7px;
top:7px;
right:5px;
background:url('images/menu_rightarrow.png') no-repeat;
}
.menu-sep{
margin:3px 0px 3px 24px;
line-height:2px;
font-size:2px;
background:url('images/menu_sep.png') repeat-x;
}
.menu-active{
border:1px solid #d3d3d3;
background:#fafafa;
-moz-border-radius:3px;
-webkit-border-radius: 3px;
}
.menu-shadow{
position:absolute;
background:#ddd;
-moz-border-radius:5px;
-webkit-border-radius: 5px;
-moz-box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
-webkit-box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
filter: progid:DXImageTransform.Microsoft.Blur(pixelRadius=2,MakeShadow=false,ShadowOpacity=0.2);
}
.menu-item-disabled{
opacity:0.5;
filter:alpha(opacity=50);
cursor:default;
}
.menu-active-disabled{
border-color:#d3d3d3;
}
| zzyapps | trunk/JqFw/WebRoot/resource/themes/gray/menu.css | CSS | asf20 | 1,381 |
.combo{
display:inline-block;
white-space:nowrap;
font-size:12px;
margin:0;
padding:0;
border:1px solid #d3d3d3;
background:#fff;
}
.combo-text{
font-size:12px;
border:0px;
line-height:20px;
height:20px;
padding:0px;
*height:18px;
*line-height:18px;
_height:18px;
_line-height:18px;
}
.combo-arrow{
background:#E0ECF9 url('images/combo_arrow.gif') no-repeat 3px 4px;
width:18px;
height:20px;
overflow:hidden;
display:inline-block;
vertical-align:top;
cursor:pointer;
opacity:0.6;
filter:alpha(opacity=60);
}
.combo-arrow-hover{
opacity:1.0;
filter:alpha(opacity=100);
}
.combo-panel{
background:#fff;
overflow:auto;
}
| zzyapps | trunk/JqFw/WebRoot/resource/themes/gray/combo.css | CSS | asf20 | 686 |
.tree{
font-size:12px;
margin:0;
padding:0;
list-style-type:none;
}
.tree li{
white-space:nowrap;
}
.tree li ul{
list-style-type:none;
margin:0;
padding:0;
}
.tree-node{
height:18px;
white-space:nowrap;
cursor:pointer;
}
.tree-indent{
display:inline-block;
width:16px;
height:18px;
vertical-align:middle;
}
.tree-hit{
cursor:pointer;
}
.tree-expanded{
display:inline-block;
width:16px;
height:18px;
vertical-align:middle;
background:url('images/tree_arrows.gif') no-repeat -18px 0px;
}
.tree-expanded-hover{
background:url('images/tree_arrows.gif') no-repeat -50px 0px;
}
.tree-collapsed{
display:inline-block;
width:16px;
height:18px;
vertical-align:middle;
background:url('images/tree_arrows.gif') no-repeat 0px 0px;
}
.tree-collapsed-hover{
background:url('images/tree_arrows.gif') no-repeat -32px 0px;
}
.tree-folder{
display:inline-block;
background:url('images/tree_folder.gif') no-repeat;
width:16px;
height:18px;
vertical-align:middle;
}
.tree-folder-open{
background:url('images/tree_folder_open.gif') no-repeat;
}
.tree-file{
display:inline-block;
background:url('images/tree_file.gif') no-repeat;
width:16px;
height:18px;
vertical-align:middle;
}
.tree-loading{
background:url('images/tree_loading.gif') no-repeat;
}
.tree-title{
display:inline-block;
text-decoration:none;
vertical-align:middle;
padding:1px 2px 1px 2px;
white-space:nowrap;
}
.tree-node-hover{
background:#fafafa;
}
.tree-node-selected{
background:#FBEC88;
}
.tree-checkbox{
display:inline-block;
width:16px;
height:18px;
vertical-align:middle;
}
.tree-checkbox0{
background:url('images/tree_checkbox_0.gif') no-repeat;
}
.tree-checkbox1{
background:url('images/tree_checkbox_1.gif') no-repeat;
}
.tree-checkbox2{
background:url('images/tree_checkbox_2.gif') no-repeat;
}
.tree-node-proxy{
font-size:12px;
padding:1px 2px 1px 18px;
background:#fafafa;
border:1px solid #ccc;
z-index:9900000;
}
.tree-dnd-yes{
background:url('images/tree_dnd_yes.png') no-repeat 0 center;
}
.tree-dnd-no{
background:url('images/tree_dnd_no.png') no-repeat 0 center;
}
.tree-node-top{
border-top:1px dotted red;
}
.tree-node-bottom{
border-bottom:1px dotted red;
}
.tree-node-append .tree-title{
border:1px dotted red;
}
.tree-editor{
border:1px solid #ccc;
font-size:12px;
line-height:16px;
width:80px;
position:absolute;
top:0;
}
| zzyapps | trunk/JqFw/WebRoot/resource/themes/gray/tree.css | CSS | asf20 | 2,490 |
.messager-body{
padding:5px 10px;
}
.messager-button{
text-align:center;
padding-top:10px;
}
.messager-icon{
float:left;
width:47px;
height:35px;
}
.messager-error{
background:url('images/messager_error.gif') no-repeat scroll left top;
}
.messager-info{
background:url('images/messager_info.gif') no-repeat scroll left top;
}
.messager-question{
background:url('images/messager_question.gif') no-repeat scroll left top;
}
.messager-warning{
background:url('images/messager_warning.gif') no-repeat scroll left top;
}
.messager-input{
width: 262px;
border:1px solid #ccc;
}
.messager-progress{
padding:10px;
}
.messager-p-msg{
margin-bottom:5px;
} | zzyapps | trunk/JqFw/WebRoot/resource/themes/gray/messager.css | CSS | asf20 | 692 |
.accordion{
background:#fff;
overflow:hidden;
}
.accordion .accordion-header{
background:#daf8de;
border-top-width:0;
cursor:pointer;
}
.accordion .accordion-header .panel-title{
font-weight:normal;
}
.accordion .accordion-header-selected .panel-title{
font-weight:bold;
}
.accordion-noborder .accordion-header{
border-width:0 0 1px;
}
.accordion-noborder .accordion-body{
border-width:0px;
}
.accordion-collapse{
background:url('images/accordion_collapse.png') no-repeat;
}
.accordion-expand{
background:url('images/accordion_expand.png') no-repeat;
}
.calendar{
background:#fff;
border:1px solid #cae5bc;
padding:1px;
overflow:hidden;
}
.calendar-noborder{
border:0px;
}
.calendar-header{
position:relative;
background:#daf8de;
font-size:12px;
height:22px;
}
.calendar-title{
text-align:center;
height:22px;
}
.calendar-title span{
position:relative;
top:2px;
line-height:12px;
display:inline-block;
padding:3px;
cursor:pointer;
-moz-border-radius:4px;
-webkit-border-radius:4px;
}
.calendar-prevmonth,.calendar-nextmonth,.calendar-prevyear,.calendar-nextyear{
position:absolute;
top:4px;
width:14px;
height:14px;
line-height:12px;
cursor:pointer;
font-size:1px;
-moz-border-radius:4px;
-webkit-border-radius:4px;
}
.calendar-prevmonth{
left:20px;
background:url('images/calendar_prevmonth.gif') no-repeat 3px 2px;
}
.calendar-nextmonth{
right:20px;
background:url('images/calendar_nextmonth.gif') no-repeat 3px 2px;
}
.calendar-prevyear{
left:3px;
background:url('images/calendar_prevyear.gif') no-repeat 1px 2px;
}
.calendar-nextyear{
right:3px;
background:url('images/calendar_nextyear.gif') no-repeat 1px 2px;
}
.calendar-body{
font-size:12px;
position:relative;
}
.calendar-body table{
width:100%;
height:100%;
border:1px solid #eee;
font-size:12px;
padding1:5px;
}
.calendar-body th,.calendar-body td{
text-align:center;
}
.calendar-body th{
background:#fafafa;
color:#888;
border-bottom1:1px solid #ccc;
}
.calendar-day{
color:#222;
cursor:pointer;
border:1px solid #fff;
-moz-border-radius:4px;
-webkit-border-radius:4px;
}
.calendar-sunday{
color:#CC2222;
}
.calendar-saturday{
color:#00ee00;
}
.calendar-today{
color:#0000ff;
}
.calendar-other-month{
opacity:0.3;
filter:alpha(opacity=30);
}
.calendar-hover{
border:1px solid red;
}
.calendar-selected{
background:#FBEC88;
border:1px solid red;
}
.calendar-nav-hover{
background-color:#FBEC88;
}
.calendar-menu{
position:absolute;
top:0px;
left:0px;
width:180px;
height:150px;
padding:5px;
font-size:12px;
background:#fafafa;
opacity:0.8;
filter:alpha(opacity=80);
display:none;
}
.calendar-menu-year-inner{
text-align:center;
padding-bottom:5px;
}
.calendar-menu-year{
width:40px;
text-align:center;
border:1px solid #ccc;
padding:2px;
font-weight:bold;
}
.calendar-menu-prev,.calendar-menu-next{
display:inline-block;
width:21px;
height:21px;
vertical-align:top;
cursor:pointer;
}
.calendar-menu-prev{
margin-right:10px;
background:url('images/calendar_prevyear.gif') no-repeat 5px 6px;
}
.calendar-menu-next{
margin-left:10px;
background:url('images/calendar_nextyear.gif') no-repeat 5px 6px;
}
.calendar-menu-hover{
background-color:#FBEC88;
}
.calendar-menu-month-inner table{
width:100%;
height:100%;
}
.calendar-menu-month{
text-align:center;
cursor:pointer;
border:1px solid #fafafa;
font-weight:bold;
color:#666;
-moz-border-radius:4px;
-webkit-border-radius:4px;
}
.combo{
display:inline-block;
white-space:nowrap;
font-size:12px;
margin:0;
padding:0;
border:1px solid #cae5bc;
background:#fff;
}
.combo-text{
font-size:12px;
border:0px;
line-height:20px;
height:20px;
padding:0px;
*height:18px;
*line-height:18px;
_height:18px;
_line-height:18px;
}
.combo-arrow{
background:#E0ECF9 url('images/combo_arrow.gif') no-repeat 3px 4px;
width:18px;
height:20px;
overflow:hidden;
display:inline-block;
vertical-align:top;
cursor:pointer;
opacity:0.6;
filter:alpha(opacity=60);
}
.combo-arrow-hover{
opacity:1.0;
filter:alpha(opacity=100);
}
.combo-panel{
background:#fff;
overflow:auto;
}
.combobox-item{
padding:2px;
font-size:12px;
padding:3px;
padding-right:0px;
}
.combobox-item-hover{
background:#fafafa;
}
.combobox-item-selected{
background:#FBEC88;
}.datagrid .panel-body{
overflow:hidden;
}
.datagrid-wrap{
position:relative;
}
.datagrid-view{
position:relative;
overflow:hidden;
}
.datagrid-view1{
position:absolute;
overflow:hidden;
left:0px;
top:0px;
border-right1:1px solid #ccc;
}
.datagrid-view2{
position:absolute;
overflow:hidden;
left:210px;
top:0px;
}
.datagrid-mask{
position:absolute;
left:0;
top:0;
background:#ccc;
opacity:0.3;
filter:alpha(opacity=30);
display:none;
}
.datagrid-mask-msg{
position:absolute;
cursor1:wait;
left:100px;
top:50px;
width:auto;
height:16px;
padding:12px 5px 10px 30px;
background:#fff url('images/pagination_loading.gif') no-repeat scroll 5px 10px;
border:2px solid #6593CF;
color:#222;
display:none;
}
.datagrid-title{
background:url('images/datagrid_title_bg.png') repeat-x;
border-bottom:1px solid #cae5bc;
border-top:1px solid #fff;
position:relative;
padding:5px 0px;
}
.datagrid-title-text{
color:#15428b;
font-weight:bold;
padding-left:5px;
}
.datagrid-title-with-icon{
padding-left:22px;
}
.datagrid-title-icon{
position:absolute;
width:16px;
height:16px;
left:3px;
top:4px!important;
top:6px;
}
.datagrid-sort-desc .datagrid-sort-icon{
padding:2px 13px 3px 0px;
background:url('images/datagrid_sort_desc.gif') no-repeat center center;
}
.datagrid-sort-asc .datagrid-sort-icon{
padding:2px 13px 3px 0px;
background:url('images/datagrid_sort_asc.gif') no-repeat center center;
}
.datagrid-toolbar{
height:28px;
background:#efefef;
padding:1px 2px;
border-bottom:1px solid #ccc;
}
.datagrid-btn-separator{
float:left;
height:24px;
border-left:1px solid #ccc;
border-right:1px solid #fff;
margin:2px 1px;
}
.datagrid-pager{
background:#efefef;
border-top:1px solid #ccc;
position:relative;
}
.datagrid-header{
overflow:hidden;
background:#fafafa url('images/datagrid_header_bg.gif') repeat-x left bottom;
border-bottom:1px solid #ccc;
}
.datagrid-header-inner{
float:left;
width:10000px;
}
.datagrid-header td{
border-right:1px dotted #ccc;
font-size:12px;
font-weight:normal;
background:#fafafa url('images/datagrid_header_bg.gif') repeat-x left bottom;
border-bottom:1px dotted #ccc;
border-top:1px dotted #fff;
}
.datagrid-header td.datagrid-header-over{
background:#EBF3FD;
}
.datagrid-header .datagrid-cell{
margin:0;
padding:3px 4px;
white-space:nowrap;
word-wrap:normal;
overflow:hidden;
text-align:center;
}
.datagrid-header .datagrid-cell-group{
margin:0;
padding:4px 2px 4px 4px;
white-space:nowrap;
word-wrap:normal;
overflow:hidden;
text-align:center;
}
.datagrid-header-rownumber{
width:25px;
text-align:center;
margin:0px;
padding:3px 0px;
}
.datagrid-td-rownumber{
background:#fafafa url('images/datagrid_header_bg.gif') repeat-x left bottom;
}
.datagrid-cell-rownumber{
width:25px;
text-align:center;
margin:0px;
padding:3px 0px;
color:#000;
}
.datagrid-body{
margin:0;
padding:0;
overflow:auto;
zoom:1;
}
.datagrid-view1 .datagrid-body-inner{
padding-bottom:20px;
}
.datagrid-view1 .datagrid-body{
overflow:hidden;
}
.datagrid-footer{
overflow:hidden;
}
.datagrid-footer-inner{
border-top:1px solid #ccc;
width:10000px;
float:left;
}
.datagrid-body td,.datagrid-footer td{
font-size:12px;
border-right:1px dotted #ccc;
border-bottom:1px dotted #ccc;
overflow:hidden;
padding:0;
margin:0;
}
.datagrid-body .datagrid-cell,.datagrid-footer .datagrid-cell{
overflow:hidden;
margin:0;
padding:3px 4px;
white-space:nowrap;
word-wrap:normal;
}
.datagrid-header-check{
padding:3px 6px;
}
.datagrid-cell-check{
padding:3px 6px;
font-size:1px;
overflow:hidden;
}
.datagrid-header-check input{
margin:0;
padding:0;
width:15px;
height:15px;
}
.datagrid-cell-check input{
margin:0;
padding:0;
width:15px;
height:15px;
}
.datagrid-row-collapse{
background:url('images/datagrid_row_collapse.gif') no-repeat center center;
}
.datagrid-row-expand{
background:url('images/datagrid_row_expand.gif') no-repeat center center;
}
.datagrid-row-alt{
background:#EEEEFF;
}
.datagrid-row-over{
background:#DAF8DE;
background1:#FBEC88;
cursor:default;
}
.datagrid-row-selected{
background:#FBEC88;
}
.datagrid-resize-proxy{
position:absolute;
width:1px;
top:0;
height:10000px;
background:red;
cursor:e-resize;
display:none;
}
.datagrid-body .datagrid-editable{
padding:0;
}
.datagrid-body .datagrid-editable table{
width:100%;
height:100%;
}
.datagrid-body .datagrid-editable td{
border:0;
padding:0;
}
.datagrid-body .datagrid-editable .datagrid-editable-input{
width:100%;
font-size:12px;
border:1px solid #cae5bc;
padding:3px 2px;
}
.datebox .combo-arrow{
background:url('images/datebox_arrow.png') no-repeat center center;
}
.datebox-calendar-inner{
height:180px;
}
.datebox-button{
height:18px;
padding:2px 5px;
font-size:12px;
background-color:#fafafa;
text-align:center;
}
.datebox-current,.datebox-close{
float:left;
color:#888;
text-decoration:none;
font-weight:bold;
}
.datebox-close{
float:right;
}
.datebox-ok{
color:#888;
text-decoration:none;
font-weight:bold;
}
.datebox-button-hover{
color:#cae5bc;
}
.dialog-content{
overflow:auto;
}
.dialog-toolbar{
background:#fafafa;
padding:2px 5px;
border-bottom:1px solid #eee;
}
.dialog-tool-separator{
float:left;
height:24px;
border-left:1px solid #ccc;
border-right:1px solid #fff;
margin:2px 1px;
}
.dialog-button{
border-top:1px solid #eee;
background:#fafafa;
padding:5px 5px;
text-align:right;
}
.dialog-button .l-btn{
margin-left:5px;
}.layout{
position:relative;
overflow:hidden;
margin:0;
padding:0;
}
.layout-panel{
position:absolute;
overflow:hidden;
}
.layout-panel-east,.layout-panel-west{
z-index:2;
background1:#fff;
}
.layout-panel-north,.layout-panel-south{
z-index:3;
background1:#fff;
}
.layout-button-up{
background:url('images/layout_button_up.gif') no-repeat;
}
.layout-button-down{
background:url('images/layout_button_down.gif') no-repeat;
}
.layout-button-left{
background:url('images/layout_button_left.gif') no-repeat;
}
.layout-button-right{
background:url('images/layout_button_right.gif') no-repeat;
}
.layout-expand{
position:absolute;
padding:0px 5px;
padding:0px;
background:#e9ffea;
font-size:1px;
cursor:pointer;
z-index:1;
}
.layout-expand .panel-header{
background:transparent;
border-bottom-width:0px;
}
.layout-expand .panel-header .panel-tool{
top: 5px;
}
.layout-expand .panel-body{
overflow:hidden;
}
.layout-expand-over{
background:#E1F0F2;
}
.layout-body{
overflow:auto;
background:#fff;
}
.layout-split-proxy-h{
position:absolute;
width:5px;
background:#ccc;
font-size:1px;
cursor:e-resize;
display:none;
z-index:5;
}
.layout-split-proxy-v{
position:absolute;
height:5px;
background:#ccc;
font-size:1px;
cursor:n-resize;
display:none;
z-index:5;
}
.layout-split-north{
border-bottom:5px solid #e9ffea;
}
.layout-split-south{
border-top:5px solid #e9ffea;
}
.layout-split-east{
border-left:5px solid #e9ffea;
}
.layout-split-west{
border-right:5px solid #e9ffea;
}
.layout-mask{
position:absolute;
background:#fafafa;
filter:alpha(opacity=10);
opacity:0.10;
z-index:4;
}
a.l-btn{
color:#444;
background:url('images/button_a_bg.gif') no-repeat top right;
font-size:12px;
text-decoration:none;
display:inline-block;
zoom:1;
height:24px;
padding-right:18px;
cursor:pointer;
outline:none;
}
a.l-btn-plain{
background:transparent;
padding-right:5px;
border:1px solid transparent;
_border:0px solid #efefef;
_padding:1px 6px 1px 1px;
}
a.l-btn-disabled{
color:#ccc;
opacity:0.5;
filter:alpha(opacity=50);
cursor:default;
}
a.l-btn span.l-btn-left{
display:inline-block;
background:url('images/button_span_bg.gif') no-repeat top left;
padding:4px 0px 4px 18px;
line-height:16px;
height:16px;
}
a.l-btn-plain span.l-btn-left{
background:transparent;
padding-left:5px;
}
a.l-btn span span.l-btn-text{
display:inline-block;
height:16px;
line-height:16px;
padding:0px;
}
a.l-btn span span span.l-btn-empty{
display:inline-block;
padding:0px;
width:16px;
}
a:hover.l-btn{
background-position: bottom right;
outline:none;
}
a:hover.l-btn span.l-btn-left{
background-position: bottom left;
}
a:hover.l-btn-plain{
border:1px solid #7eabcd;
background:url('images/button_plain_hover.png') repeat-x left bottom;
_padding:0px 5px 0px 0px;
-moz-border-radius:3px;
-webkit-border-radius: 3px;
}
a:hover.l-btn-disabled{
background-position:top right;
}
a:hover.l-btn-disabled span.l-btn-left{
background-position:top left;
}
.menu{
position:absolute;
background:#f0f0f0 url('images/menu.gif') repeat-y;
margin:0;
padding:2px;
border:1px solid #ccc;
overflow:hidden;
}
.menu-item{
position:relative;
margin:0;
padding:0;
height:22px;
line-height:20px;
overflow:hidden;
font-size:12px;
cursor:pointer;
border:1px solid transparent;
_border:1px solid #f0f0f0;
}
.menu-text{
position:absolute;
left:28px;
top:0px;
}
.menu-icon{
position:absolute;
width:16px;
height:16px;
top:3px;
left:2px;
}
.menu-rightarrow{
position: absolute;
width:4px;
height:7px;
top:7px;
right:5px;
background:url('images/menu_rightarrow.png') no-repeat;
}
.menu-sep{
margin:3px 0px 3px 24px;
line-height:2px;
font-size:2px;
background:url('images/menu_sep.png') repeat-x;
}
.menu-active{
border:1px solid #7eabcd;
background:#fafafa;
-moz-border-radius:3px;
-webkit-border-radius: 3px;
}
.menu-shadow{
position:absolute;
background:#ddd;
-moz-border-radius:5px;
-webkit-border-radius: 5px;
-moz-box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
-webkit-box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
filter: progid:DXImageTransform.Microsoft.Blur(pixelRadius=2,MakeShadow=false,ShadowOpacity=0.2);
}
.menu-item-disabled{
opacity:0.5;
filter:alpha(opacity=50);
cursor:default;
}
.menu-active-disabled{
border-color:#d3d3d3;
}
.m-btn-downarrow{
display:inline-block;
width:12px;
line-height:14px;
*line-height:15px;
background:url('images/menu_downarrow.png') no-repeat 4px center;
}
a.m-btn-active{
background-position: bottom right;
}
a.m-btn-active span.l-btn-left{
background-position: bottom left;
}
a.m-btn-plain-active{
background:transparent;
border:1px solid #7eabcd;
_padding:0px 5px 0px 0px;
-moz-border-radius:3px;
-webkit-border-radius: 3px;
}
.messager-body{
padding:5px 10px;
}
.messager-button{
text-align:center;
padding-top:10px;
}
.messager-icon{
float:left;
width:47px;
height:35px;
}
.messager-error{
background:url('images/messager_error.gif') no-repeat scroll left top;
}
.messager-info{
background:url('images/messager_info.gif') no-repeat scroll left top;
}
.messager-question{
background:url('images/messager_question.gif') no-repeat scroll left top;
}
.messager-warning{
background:url('images/messager_warning.gif') no-repeat scroll left top;
}
.messager-input{
width: 262px;
border:1px solid #ccc;
}
.messager-progress{
padding:10px;
}
.messager-p-msg{
margin-bottom:5px;
}.pagination{
zoom:1;
}
.pagination table{
float:left;
height:30px;
}
.pagination-btn-separator{
float:left;
height:24px;
border-left:1px solid #ccc;
border-right:1px solid #fff;
margin:3px 1px;
}
.pagination-num{
border:1px solid #ccc;
margin:0 2px;
}
.pagination-page-list{
margin:0px 6px;
}
.pagination-info{
float:right;
padding-right:6px;
padding-top:8px;
font-size:12px;
}
.pagination span{
font-size:12px;
}
.pagination-first{
background:url('images/pagination_first.gif') no-repeat;
}
.pagination-prev{
background:url('images/pagination_prev.gif') no-repeat;
}
.pagination-next{
background:url('images/pagination_next.gif') no-repeat;
}
.pagination-last{
background:url('images/pagination_last.gif') no-repeat;
}
.pagination-load{
background:url('images/pagination_load.png') no-repeat;
}
.pagination-loading{
background:url('images/pagination_loading.gif') no-repeat;
}
.panel{
overflow:hidden;
font-size:12px;
}
.panel-header{
padding:5px;
line-height:15px;
color:#15428b;
font-weight:bold;
font-size:12px;
background:url('images/panel_title.png') repeat-x;
position:relative;
border:1px solid #d0e2bc;
}
.panel-title{
background:url('images/blank.gif') no-repeat;
}
.panel-header-noborder{
border-width:0px;
border-bottom:1px solid #d0e2bc;
}
.panel-body{
overflow:auto;
border:1px solid #d0e2bc;
border-top-width:0px;
}
.panel-body-noheader{
border-top-width:1px;
}
.panel-body-noborder{
border-width:0px;
}
.panel-with-icon{
padding-left:18px;
}
.panel-icon{
position:absolute;
left:5px;
top:4px;
width:16px;
height:16px;
}
.panel-tool{
position:absolute;
right:5px;
top:4px;
}
.panel-tool div{
display:block;
float:right;
width:16px;
height:16px;
margin-left:2px;
cursor:pointer;
opacity:0.6;
filter:alpha(opacity=60);
}
.panel-tool div.panel-tool-over{
opacity:1;
filter:alpha(opacity=100);
}
.panel-tool-close{
background:url('images/panel_tools.gif') no-repeat -16px 0px;
}
.panel-tool-min{
background:url('images/panel_tools.gif') no-repeat 0px 0px;
}
.panel-tool-max{
background:url('images/panel_tools.gif') no-repeat 0px -16px;
}
.panel-tool-restore{
background:url('images/panel_tools.gif') no-repeat -16px -16px;
}
.panel-tool-collapse{
background:url('images/panel_tool_collapse.gif') no-repeat;
}
.panel-tool-expand{
background:url('images/panel_tool_expand.gif') no-repeat;
}
.panel-loading{
padding:11px 0px 10px 30px;
background:url('images/panel_loading.gif') no-repeat 10px 10px;
}
.progressbar{
border:1px solid #d0e2bc;
border-radius:5px;
overflow:hidden;
}
.progressbar-text{
text-align:center;
color:#15428b;
position:absolute;
}
.progressbar-value{
background-color:#FF8D40;
border-radius:5px;
width:0;
}
.propertygrid .datagrid-view1 .datagrid-body,.propertygrid .datagrid-group{
background:#daf8de;
}
.propertygrid .datagrid-group{
height:21px;
overflow:hidden;
}
.propertygrid .datagrid-view1 .datagrid-body td{
border-color:#daf8de;
}
.propertygrid .datagrid-view1 .datagrid-row-over,.propertygrid .datagrid-view1 .datagrid-row-selected{
background:#daf8de;
}
.propertygrid .datagrid-group span{
color:#416AA3;
font-weight:bold;
padding-left:4px;
}
.propertygrid .datagrid-row-collapse,.propertygrid .datagrid-row-expand{
background-position:3px center;
}.searchbox{
display:inline-block;
white-space:nowrap;
font-size:12px;
margin:0;
padding:0;
border:1px solid #cae5bc;
background:#fff;
}
.searchbox-text{
font-size:12px;
border:0px;
line-height:20px;
height:20px;
padding:0px;
*height:18px;
*line-height:18px;
_height:18px;
_line-height:18px;
}
.searchbox-button{
background:url('images/searchbox_button.png') no-repeat center center;
width:18px;
height:20px;
overflow:hidden;
display:inline-block;
vertical-align:top;
cursor:pointer;
opacity:0.6;
filter:alpha(opacity=60);
}
.searchbox-button-hover{
opacity:1.0;
filter:alpha(opacity=100);
}
.searchbox-prompt{
font-size:12px;
color:#ccc;
}
.searchbox a.l-btn-plain{
background-color:#E0ECF9;
height:20px;
border:0;
padding:0 6px 0 0;
vertical-align:top;
}
.searchbox a.l-btn .l-btn-left{
padding:2px 0 2px 2px;
}
.searchbox a.l-btn-plain:hover{
-moz-border-radius:0px;
-webkit-border-radius: 0px;
border:0;
padding:0 6px 0 0;
}
.searchbox a.m-btn-plain-active{
-moz-border-radius:0px;
-webkit-border-radius: 0px;
}.spinner{
display:inline-block;
white-space:nowrap;
font-size:12px;
margin:0;
padding:0;
border:1px solid #cae5bc;
}
.spinner-text{
font-size:12px;
border:0px;
line-height:20px;
height:20px;
padding:0px;
*height:18px;
*line-height:18px;
_height:18px;
_line-height:18px;
}
.spinner-arrow{
display:inline-block;
vertical-align:top;
margin:0;
padding:0;
}
.spinner-arrow-up,.spinner-arrow-down{
display:block;
background:#E0ECF9 url('images/spinner_arrow_up.gif') no-repeat 5px 2px;
font-size:1px;
width:18px;
height:10px;
}
.spinner-arrow-down{
background:#E0ECF9 url('images/spinner_arrow_down.gif') no-repeat 5px 3px;
}
.spinner-arrow-hover{
background-color:#ECF9F9;
}.s-btn-downarrow{
display:inline-block;
width:16px;
line-height:14px;
*line-height:15px;
background:url('images/menu_downarrow.png') no-repeat 9px center;
}
a.s-btn-active{
background-position: bottom right;
}
a.s-btn-active span.l-btn-left{
background-position: bottom left;
}
a.s-btn-active .s-btn-downarrow{
background:url('images/menu_split_downarrow.png') no-repeat 4px -19px;
}
a:hover.l-btn .s-btn-downarrow{
background:url('images/menu_split_downarrow.png') no-repeat 4px -19px;
}
a.s-btn-plain-active{
background:transparent;
border:1px solid #7eabcd;
_padding:0px 5px 0px 0px;
-moz-border-radius:3px;
-webkit-border-radius: 3px;
}
a.s-btn-plain-active .s-btn-downarrow{
background:url('images/menu_split_downarrow.png') no-repeat 4px -19px;
}.tabs-container{
overflow:hidden;
background:#fff;
}
.tabs-header{
border:1px solid #cae5bc;
background:#daf8de;
border-bottom:0px;
position:relative;
overflow:hidden;
padding:0px;
padding-top:2px;
overflow:hidden;
}
.tabs-header-noborder{
border:0px;
}
.tabs-header-plain{
border:0px;
background:transparent;
}
.tabs-scroller-left{
position:absolute;
left:0px;
top:-1px;
width:18px;
height:28px!important;
height:30px;
border:1px solid #cae5bc;
font-size:1px;
display:none;
cursor:pointer;
background:#daf8de url('images/tabs_leftarrow.png') no-repeat 1px 5px;
}
.tabs-scroller-right{
position:absolute;
right:0;
top:-1px;
width:18px;
height:28px!important;
height:30px;
border:1px solid #cae5bc;
font-size:1px;
display:none;
cursor:pointer;
background:#daf8de url('images/tabs_rightarrow.png') no-repeat 2px 5px;
}
.tabs-tool{
position:absolute;
top:-1px;
border:1px solid #cae5bc;
padding:1px;
background:#daf8de;
overflow:hidden;
}
.tabs-header-plain .tabs-scroller-left{
top:2px;
height:25px!important;
height:27px;
}
.tabs-header-plain .tabs-scroller-right{
top:2px;
height:25px!important;
height:27px;
}
.tabs-header-plain .tabs-tool{
top:2px;
padding-top:0;
}
.tabs-scroller-over{
background-color:#ECF9F9;
}
.tabs-wrap{
position:relative;
left:0px;
overflow:hidden;
width:100%;
margin:0px;
padding:0px;
}
.tabs-scrolling{
margin-left:18px;
margin-right:18px;
}
.tabs{
list-style-type:none;
height:26px;
margin:0px;
padding:0px;
padding-left:4px;
font-size:12px;
width:5000px;
border-bottom:1px solid #cae5bc;
}
.tabs li{
float:left;
display:inline-block;
margin1:0px 1px;
margin-right:4px;
margin-bottom:-1px;
padding:0;
position:relative;
border:1px solid #cae5bc;
-moz-border-radius-topleft:5px;
-moz-border-radius-topright:5px;
-webkit-border-top-left-radius:5px;
-webkit-border-top-right-radius:5px;
}
.tabs li a.tabs-inner{
display:inline-block;
text-decoration:none;
color:#416AA3;
background:url('images/tabs_enabled.png') repeat-x left top;
margin:0px;
padding:0px 10px;
height:25px;
line-height:25px;
text-align:center;
white-space:nowrap;
-moz-border-radius-topleft:5px;
-moz-border-radius-topright:5px;
-webkit-border-top-left-radius:5px;
-webkit-border-top-right-radius:5px;
}
.tabs li a.tabs-inner:hover{
background:url('images/tabs_active.png') repeat-x left bottom;
}
.tabs li.tabs-selected{
border:1px solid #cae5bc;
border-bottom:1px solid #fff;
border-top1:2px solid #cae5bc;
}
.tabs li.tabs-selected a{
color:#416AA3;
font-weight:bold;
background:#fff;
background:#7eabcd url('images/tabs_active.png') repeat-x left bottom;
outline: none;
}
.tabs li.tabs-selected a:hover{
cursor:default;
pointer:default;
}
.tabs-with-icon{
padding-left:18px;
}
.tabs-icon{
position:absolute;
width:16px;
height:16px;
left:10px;
top:5px;
}
.tabs-closable{
padding-right:8px;
}
.tabs li a.tabs-close{
position:absolute;
font-size:1px;
display:block;
padding:0px;
width:11px;
height:11px;
top:7px;
right:5px;
opacity:0.6;
filter:alpha(opacity=60);
background:url('images/tabs_close.gif') no-repeat 2px 2px;
}
.tabs li a:hover.tabs-close{
opacity:1;
filter:alpha(opacity=100);
cursor:hand;
cursor:pointer;
background-color:#cae5bc;
}
.tabs-panels{
margin:0px;
padding:0px;
border:1px solid #cae5bc;
border-top:0px;
overflow:hidden;
}
.tabs-panels-noborder{
border:0px;
}
.tree{
font-size:12px;
margin:0;
padding:0;
list-style-type:none;
}
.tree li{
white-space:nowrap;
}
.tree li ul{
list-style-type:none;
margin:0;
padding:0;
}
.tree-node{
height:18px;
white-space:nowrap;
cursor:pointer;
}
.tree-indent{
display:inline-block;
width:16px;
height:18px;
vertical-align:middle;
}
.tree-hit{
cursor:pointer;
}
.tree-expanded{
display:inline-block;
width:16px;
height:18px;
vertical-align:middle;
background:url('images/tree_arrows.gif') no-repeat -18px 0px;
}
.tree-expanded-hover{
background:url('images/tree_arrows.gif') no-repeat -50px 0px;
}
.tree-collapsed{
display:inline-block;
width:16px;
height:18px;
vertical-align:middle;
background:url('images/tree_arrows.gif') no-repeat 0px 0px;
}
.tree-collapsed-hover{
background:url('images/tree_arrows.gif') no-repeat -32px 0px;
}
.tree-folder{
display:inline-block;
background:url('images/tree_folder.gif') no-repeat;
width:16px;
height:18px;
vertical-align:middle;
}
.tree-folder-open{
background:url('images/tree_folder_open.gif') no-repeat;
}
.tree-file{
display:inline-block;
background:url('images/tree_file.gif') no-repeat;
width:16px;
height:18px;
vertical-align:middle;
}
.tree-loading{
background:url('images/tree_loading.gif') no-repeat;
}
.tree-title{
display:inline-block;
text-decoration:none;
vertical-align:middle;
padding:1px 2px 1px 2px;
white-space:nowrap;
}
.tree-node-hover{
background:#fafafa;
}
.tree-node-selected{
background:#FBEC88;
}
.tree-checkbox{
display:inline-block;
width:16px;
height:18px;
vertical-align:middle;
}
.tree-checkbox0{
background:url('images/tree_checkbox_0.gif') no-repeat;
}
.tree-checkbox1{
background:url('images/tree_checkbox_1.gif') no-repeat;
}
.tree-checkbox2{
background:url('images/tree_checkbox_2.gif') no-repeat;
}
.tree-node-proxy{
font-size:12px;
padding:1px 2px 1px 18px;
background:#fafafa;
border:1px solid #ccc;
z-index:9900000;
}
.tree-dnd-yes{
background:url('images/tree_dnd_yes.png') no-repeat 0 center;
}
.tree-dnd-no{
background:url('images/tree_dnd_no.png') no-repeat 0 center;
}
.tree-node-top{
border-top:1px dotted red;
}
.tree-node-bottom{
border-bottom:1px dotted red;
}
.tree-node-append .tree-title{
border:1px dotted red;
}
.tree-editor{
border:1px solid #ccc;
font-size:12px;
line-height:16px;
width:80px;
position:absolute;
top:0;
}
.validatebox-invalid{
background:#FFFFEE url('images/validatebox_warning.png') no-repeat right 1px;
}
.validatebox-tip{
position:absolute;
width:200px;
height:auto;
display:none;
z-index:9900000;
}
.validatebox-tip-content{
display:inline-block;
position:absolute;
top:0px;
left:10px;
padding:3px 5px;
border:1px solid #CC9933;
background:#FFFFCC;
z-index:9900001;
font-size:12px;
}
.validatebox-tip-pointer{
background:url('images/validatebox_pointer.gif') no-repeat left top;
display:inline-block;
width:10px;
height:19px;
position:absolute;
left:1px;
top:0px;
z-index:9900002;
}.window {
font-size:12px;
position:absolute;
overflow:hidden;
background:transparent url('images/panel_title.png');
background1:#878787;
padding:5px;
border:1px solid #d0e2bc;
border-radius:5px;
-moz-border-radius:5px;
-webkit-border-radius: 5px;
}
.window-shadow{
position:absolute;
background:#ddd;
border-radius:5px;
-moz-border-radius:5px;
-webkit-border-radius: 5px;
-moz-box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
-webkit-box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
filter: progid:DXImageTransform.Microsoft.Blur(pixelRadius=2,MakeShadow=false,ShadowOpacity=0.2);
}
.window .window-header{
background:transparent;
padding:2px 0px 4px 0px;
}
.window .window-body{
background:#fff;
border:1px solid #d0e2bc;
border-top-width:0px;
}
.window .window-body-noheader{
border-top-width:1px;
}
.window .window-header .panel-icon{
left:1px;
top:1px;
}
.window .window-header .panel-with-icon{
padding-left:18px;
}
.window .window-header .panel-tool{
top:0px;
right:1px;
}
.window-proxy{
position:absolute;
overflow:hidden;
border:1px dashed #15428b;
}
.window-proxy-mask{
position:absolute;
background:#fafafa;
filter:alpha(opacity=10);
opacity:0.10;
}
.window-mask{
position:absolute;
left:0;
top:0;
width:100%;
height:100%;
filter:alpha(opacity=40);
opacity:0.40;
background:#ccc;
display1:none;
font-size:1px;
*zoom:1;
overflow:hidden;
}
<!-- change style button-->
.bs{ }
.bs a{ width:10px; height:9px; margin-right:10px; float:left; }
.bs .a1{ background:url(images/hua.gif) no-repeat;float:left;margin-left:55px;display:inline; margin-top:8px;}
.bs .a2{ background:url(images/lv2.gif) no-repeat;margin-top:8px;}
.bs .a3{ background:url(images/lan.gif) no-repeat;margin-top:8px;}
.bs .a4{ background:url(images/hui.gif) no-repeat;margin-top:8px;}
.bs .a5{ background:url(images/fen.gif) no-repeat;margin-top:8px;}
#top{
background:url(images/top_bg.jpg) no-repeat;
height:65px;
margin:0 auto;
padding:0;
font-size:12px;}
#toppiz{
float:right;
width:400px;
height:65px;}
.huanying{
margin-top:8px;
margin-right:15px;
color:#FFFFFF;
float:right;
display:inline;
height:30px;}
.anniu{
padding-top:13px;
padding-right:12px;
}
.bb{ float:right;}
.bb a{display:block; width:80px; height:25px; float:right; display:inline;}
.bb .xiugai{background:url(images/xiugai.jpg) no-repeat; }
.bb .tuichu{background:url(images/tuichu.jpg) no-repeat;}
/**zzy+*/
.easyui-tbar{
background-color: #CBF3D0;
background-image: url(images/tbarBg-green.gif);
background-repeat: repeat-x;
background-position: top;
border: 1px solid #BAD59B;
width: 100%;
height: 35px;
}
.top{
background: transparent;
background-image: url(images/top_bg.jpg);
background-repeat: repeat-x;
background-position: left top;
width: 100%;
}
.logo {
font: bold 32px Tahoma, Verdana, Arial, Helvetica, sans-serif;
background-repeat: no-repeat;
position: absolute;
width: 337px;
height: 68px;
left: 0px;
top: 0px;
background:url('images/logo.jpg') no-repeat;
} | zzyapps | trunk/JqFw/WebRoot/resource/themes/green/easyui.css | CSS | asf20 | 31,999 |
<%@ page language="java" import="java.util.*,cn.com.widemex.domain.system.SmFunction,cn.com.widemex.core.utils.reflection.Bean" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "
http://www.w3.org/TR/html4/strict.dtd">
<html>
<!-- 表头区 -->
<head>
<title>北京万维美思轻量级开发平台</title>
${jqFW }
<!-- 自定义JS -->
<script type="text/javascript" src="${path }/view/home/left.js" ></script>
<script type="text/javascript" src="${path }/view/home/top.js" ></script>
<script type="text/javascript" src="${path }/view/home/main.js" ></script>
<script type="text/javascript" src="${path }/view/home/home.js"></script>
</head>
<!-- 内容区 -->
<body class="easyui-layout" >
<!-- Top布局 -->
<div region="north" style="height:70px;" id="layout-top" class="top" >
<div>
<div class="logo" ></div>
</div>
<div class="ad" >
<div id="top-info-div" style="text-align:right;padding:3px;" class="toolbar" >
<a href="#" class="easyui-linkbutton" iconCls="icon-home" id="deskBtn" >桌面</a>
<a href="javascript:void(0)" id="mb2" class="easyui-menubutton" menu="#skinmb" plain="false" iconCls="icon-skin" >皮肤</a>
<div id="skinmb" style="width:100px;" >
<div id="skin-default">默认</div>
<div id="skin-pink">红色</div>
<div id="skin-orange">橘色</div>
<div id="skin-gray">灰色</div>
<div id="skin-green">绿色</div>
</div>
<a href="#" class="easyui-linkbutton" iconCls="icon-cancel" id="quitSysBtn" >退出系统</a>
</div>
<div id="top-info-div" style="text-align:right;padding:3px;" class="toolbar" >
当前用户:${USER_INFO.acc }【${USER_INFO.name }】
<a href="#" class="easyui-linkbutton" id="modiPwd" iconCls="icon-pwd" title="修改个人信息!"></a>
</div>
</div>
</div>
<!-- 左菜单布局 -->
<div region="west" split="true" title="功能菜单"
headerCls="main-left-header"
style="width: 280px; padding1: 1px; overflow: hidden;">
<div class="easyui-accordion" fit="true" border="false" id="menu">
<%
List<SmFunction> funList = (List<SmFunction>)session.getAttribute("USER_FUN_LIST");
for(int index=0; index<funList.size(); index++){
SmFunction fun = funList.get(index);
out.println("<div title='"+ fun.getName() +"' selected=false>\n " +
"<ul class='easyui-tree' id='FunTree-"+ fun.getId() +"' animate='true' textField='name' other='Wide.Left.funEvent'>\n " +
"</ul> \n"+
"</div>\n");
}
%>
</div>
</div>
<!-- 主显示区内容布局 -->
<div region="center" style="overflow: hidden;">
<div class="easyui-tabs" id="mainTabs" fit="true" border="false">
<div title="首页" closable="false" >
<iframe src="" style="width:100%;height:100%;" frameborder="no" scrolling="auto"></iframe>
</div>
</div>
</div>
<!-- 用户修改form表单 -->
<div id="userFormWin" class="easyui-window"
closed="true"
modal="true"
title="个人信息修改"
resizable=false
style="width:600px;height:300px;">
<div class="easyui-layout" fit="true">
<div region="center" border="false" style="padding:5px;">
<!-- 表单 -->
<form id="userForm">
<table class="form-content" height="205">
<tr>
<!-- 机构id -->
<td colspan="4"><input type="hidden" name="id"/></td>
</tr>
<tr>
<td width="80">登录账号:</td>
<td><input class="easyui-validatebox" type="text" name="acc" disabled="disabled" validType="length[1,40]" required="true"/></td>
<td width="95">员工姓名:</td>
<td><input class="easyui-validatebox" type="text" name="name" validType="length[1,40]" required="true"/> </td>
</tr>
<tr>
<td>登录密码:</td>
<td><input class="easyui-validatebox" type="password" name="pwd" id="pwd" validType="length[1,32]" required="true"/></td>
<td>确认密码:</td>
<td><input name="pwd2" class="easyui-validatebox" type="password" validType="pwdTow['pwd']" required="true"/> </td>
</tr>
<tr>
<td>员工编号:</td>
<td><input class="easyui-validatebox" type="text" disabled="disabled" name="code" validType="length[1,10]" required="true"/></td>
<td>联系电话:</td>
<td><input name="phone" class="easyui-validatebox" type="text" validType="length[0,40]" /> </td>
</tr>
<tr>
<td>电子邮件:</td>
<td><input class="easyui-validatebox" type="text" name="email" validType="email;length[0,80]"/></td>
<td>所属机构:</td>
<td><input name="smOrgText" class="easyui-validatebox" type="text" required="true" disabled="true"/> </td>
</tr>
<tr>
<td>员工类型:</td>
<td>
<input name="type" value=1 type="radio" checked=true disabled="disabled" /><span class="blue">普通用户</span>
<input name="type" value=0 type="radio" disabled="disabled" /><span class="red">系统用户</span>
</td>
<td>使用状态:</td>
<td>
<input name="status" value=1 type="radio" checked=true disabled="disabled" /><span class="blue">有效</span>
<input name="status" value=0 type="radio" disabled="disabled" /><span class="red">无效</span>
</td>
</tr>
<tr>
<td>备 注:</td>
<td colspan="3">
<textarea class="easyui-validatebox"
name="remark"
validType="length[0,200]"
style="height:55px;width:400">
</textarea>
</td>
</tr>
</table>
</form>
</div>
<!-- 按钮区 -->
<div region="south" border="false" style="text-align:center;height:30px;">
<a class="easyui-linkbutton" iconCls="icon-ok" href="javascript:void(0)" id="userSaveBtn" form="userForm">保存</a>
<a class="easyui-linkbutton" iconCls="icon-cancel" href="javascript:void(0)" onclick="$('#userFormWin').window('close')">取消</a>
</div>
</div>
</div>
<script type="text/javascript">
<%
// 赋值给JS公共变量
out.println("USER_FUN_LIST= " +Bean.toJson(session.getAttribute("USER_FUN_LIST")).replaceAll("childrenFuns", "children")+ "; ");
out.println("USER_INFO=" +Bean.toJson(session.getAttribute("USER_INFO")));
%>
</script>
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/WEB-INF/view/home.jsp | Java Server Pages | asf20 | 6,814 |
// 定义对象
Org = function(){
// ...定义变量
var treegridEl,formWinEl,orgFormEl;
return{
/**
* 初始化组件
*/
init: function(){
treegridEl = $('#orgTable');
formWinEl = $('#formWin');
orgFormEl = $('#orgForm');
// 加载要使用的组件
using(['msg', 'combobox', 'form', 'treegrid'], Org.initCom);
},
/**
* 初始化组件
*/
initCom: function(){
formWinEl.window({
onClose: function(){
orgFormEl.form('findField', 'code').enable();
orgFormEl.form('clear');
}
});
// 初始化事件
Org.initEvent();
},
/**
* 初始化监听事件
*/
initEvent: function(){
// 查询记录
$('#search').click(function(){
treegridEl.treegrid('reload', '0');
});
// 添加记录
$('#add').click(Org.doAdd);
// 修改记录
$('#update').click(Org.doUpdate);
// 删除记录
$('#remove').click(Org.doRemove);
// 保存记录
$('#save').click(function(){
var isValid = orgFormEl.form('validate');
if(!isValid){return;}
$.msg.cfm('是否保存当前记录?', function(a){
if(a){
if(Org.isNew){
$.query('sys/org/isHasRecord', orgFormEl.serialize(), function(msg){
if(!msg['success']){
Org.saveRecord();
}else{
$.msg.say("已经存在相同编码的记录,请确定!");
}
});
}else{
Org.saveRecord();
}
}
})
});
$('#cancel').click(function(){
formWinEl.window('close');
});
},
/**
* 添加记录
*/
doAdd: function(){
var row = treegridEl.treegrid('getSelected');
/*if(!row){
$.msg.say("请先选择一条记录作为新增的父节点!");
return;
}*/
formWinEl.window({title:'【新增】组织机构'});
formWinEl.window('open');
orgFormEl.form('findField', 'parentName').disable();
Org.isNew = true; // 新增
orgFormEl.form('load',{
status:1,
parentName: row ? row['name']: null
});
},
/**
* 更新记录
*/
doUpdate: function(){
var row = treegridEl.treegrid('getSelected');
if(!row){
$.msg.say("必需先选择一行,再进行修改!");
return;
}
Org.isNew = false; // 修改
orgFormEl.form('load', row); // 设置form值
orgFormEl.form('findField', 'code').disable();
$('#smOrgTypeCombobox').combobox('setValue', row['smOrgType']);
if(row['parentId']){
orgFormEl.form('findField', 'parentName').val(treegridEl.treegrid('find',row['parentId'])['name'] );
}
formWinEl.window({title:'【修改】组织机构'});
formWinEl.window('open');
},
/**
* 删除记录
*/
doRemove: function(){
var row = treegridEl.treegrid('getSelected');
if(!row){
$.msg.say("必需先选择一行,再进行删除!");
return;
}
$.msg.cfm('是否确定删除当前选中记录?', function(a){
if(a){
$.crud("sys/org/remove", row, function(data){
if(data['success'] == false){
$.msg.err(data['message']);
}else{
$.msg.say("删除成功!");
treegridEl.treegrid('reload', row.parentId);
}
});
}
})
},
/**
* 保存记录
*/
saveRecord: function(){
// form的值
var formVal = orgFormEl.form('getValue', true);
// 当前选中的行值
var row = treegridEl.treegrid('getSelected');
if(Org.isNew){
formVal['id'] = formVal['code'];
if(row && row['id']){
formVal['smOrg'] = row;
}
}else{
if(row && row['parentId']){
formVal['smOrg'] = {id: row['parentId']};
}
}
orgFormEl.form('ajax', {
url: 'sys/org/save',
data:formVal,
onSubmit: function(){
// 表单不可用
formWinEl.disable();
$.msg.say("正在保存数据,请稍候...");
return true;
},
success: function(data) {
if(Org.isNew){
treegridEl.treegrid('reload', row ? row.id : null);
}else{
treegridEl.treegrid('reload', row ? row.parentId: null);
}
formWinEl.enable();
$.msg.say("保存成功!");
formWinEl.window('close');
}
});
}
};
}();
/**初始化界面*/
$(Org.init); | zzyapps | trunk/JqFw/WebRoot/WEB-INF/view/system/org/org.js | JavaScript | asf20 | 4,442 |
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<!-- 表头区 -->
<head>
<!-- jq框架 -->
${jqFW}
<!-- 自定义js -->
<script type="text/javascript" src="<c:url value="/view/system/org/org.js" />"></script>
</head>
<!-- 内容区 -->
<body class="easyui-layout">
<!-- 菜单区 -->
<div region="north" style="padding:5 10 5 10px;" border=false >
<table class="easyui-tbar">
<tr>
<td>
<a id="search" href="#" class="easyui-linkbutton" iconCls="icon-search">查询</a>
<a id="add" href="#" class="easyui-linkbutton" iconCls="icon-add">新增</a>
<a id="update" href="#" class="easyui-linkbutton" iconCls="icon-update">修改</a>
<a id="remove" href="#" class="easyui-linkbutton" iconCls="icon-delete">删除</a>
</td>
</tr>
</table>
</div>
<!-- 内容区 -->
<div region="center" style="padding:5 10 5 10px;" border=false>
<table id="orgTable" class="easyui-treegrid"
idField="id"
treeField="name"
fitColumns="true"
fit=true
url="sys/org"
>
<!-- root="{id:0, name:'芜湖卷烟厂', state:'closed', expand:true}"-->
<thead>
<tr>
<th field="name" width="100">名称</th>
<th field="code" width="80">编号</th>
<th field="fullName" width="120">全称</th>
<th field="smOrgType" width="60" formatter="Fmt.showFun('typeName')">类型</th>
<th field="status" width="50" formatter="Fmt.status">状态</th>
<th field="remark" width="150">备注</th>
</tr>
</thead>
</table>
</div>
<!-- form表单 -->
<div id="formWin" class="easyui-window"
closed="true"
modal="true"
title="维护表单"
resizable=false
style="width:550px;height:300px;">
<div class="easyui-layout" fit="true">
<div region="center" border="false" style="padding:10px;">
<!-- 表单 -->
<form id="orgForm">
<table class="form-content" height="185">
<tr>
<!-- 机构id -->
<td colspan="4"><input type="hidden" name="id"/></td>
</tr>
<tr>
<td width="80">机构编号:</td>
<td><input class="easyui-validatebox" type="text" name="code" validType="length[1,32]" required="true"/></td>
<td width="95">父机构名称:</td>
<td><input name="parentName" type="text" disabled="true"/> </td>
</tr>
<tr>
<td>机构名称:</td>
<td><input class="easyui-validatebox" type="text" name="name" validType="length[1,32]" required="true"/></td>
<td>机构全称:</td>
<td><input name="fullName" class="easyui-validatebox" type="text" validType="length[1,100]" required="true"/> </td>
</tr>
<tr>
<td>机构类型:</td>
<td>
<select class="easyui-combobox"
id="smOrgTypeCombobox"
name="smOrgType.orgTypeId"
list="sys/orgType/list4ValidData"
valueField="orgTypeId"
textField="typeName"
required="true">
</select>
</td>
<td>使用状态:</td>
<td>
<input name="status" value=1 type="radio" checked=true/><span class="blue">有效</span>
<input name="status" value=0 type="radio"/><span class="red">无效</span>
</td>
</tr>
<tr>
<td>备 注:</td>
<td colspan="3">
<textarea class="easyui-validatebox"
name="remark"
validType="length[0,1000]"
style="height:35px;width:100%">
</textarea>
</td>
</tr>
</table>
</form>
</div>
<!-- 按钮区 -->
<div region="south" border="false" style="text-align:center;height:30px;line-height:30px;">
<a class="easyui-linkbutton" iconCls="icon-ok" href="javascript:void(0)" form="orgForm" id="save">保存</a>
<a class="easyui-linkbutton" iconCls="icon-cancel" href="javascript:void(0)" id="cancel">取消</a>
</div>
</div>
</div>
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/WEB-INF/view/system/org/org.jsp | Java Server Pages | asf20 | 4,278 |
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<!-- 表头区 -->
<head>
<!-- jq框架 -->
${jqFW}
<!-- 自定义js -->
<script type="text/javascript" src="<c:url value="/view/system/user/user.js" />"></script>
</head>
<!-- 内容区 -->
<body class="easyui-layout">
<!-- 部门信息 -->
<div region="west" border=true split="true"
title="部门"
style="width: 280px; padding: 1px; overflow: hidden;">
<table id="orgTree" class="easyui-treegrid"
idField="id"
treeField="name"
fitColumns="true"
fit=true
border=false
url="sys/org"
other="User.orgTreeEvent"
queryParams="$.statusParam"
>
<thead>
<tr>
<th field="name" width="180">名称</th>
<th field="code" width="60">编号</th>
<th field="smOrgType" width="60" formatter="Fmt.showFun('typeName')">类型</th>
</tr>
</thead>
</table>
</div>
<!-- 维护用户-->
<div region="center" border=false
class="easyui-layout"
fit=true
>
<div region="north" border="false">
<table class="easyui-tbar" style="padding:0px;">
<tr>
<td>
<a id="add" href="#" class="easyui-linkbutton" iconCls="icon-add">新增</a>
<a id="update" href="#" class="easyui-linkbutton" iconCls="icon-update">修改</a>
<a id="remove" href="#" class="easyui-linkbutton" iconCls="icon-remove">删除</a>
</td>
</tr>
</table>
</div>
<div region="center" border="false">
<table id="userGrid" class="easyui-datagrid"
singleSelect="true"
idField="id"
fit=true
pagination=true
queryParams="User.queryParams"
autoLoad="false"
url="sys/user">
<thead>
<tr>
<th field="ck" width="40" checkbox=true></th>
<th field="acc" width="80">账号</th>
<th field="name" width="80">姓名</th>
<th field="code" width="80">编号</th>
<th field="phone" width="50">电话</th>
<th field="smRoles" formatter="Fmt.hasRoles" width="100">拥有角色</th>
<th field="type" width="50">类型</th>
<th field="status" width="50" formatter="Formatter.status">使用状态</th>
</tr>
</thead>
</table>
</div>
</div>
<!-- form表单 -->
<div id="formWin" class="easyui-window"
closed="true"
modal="true"
title="维护表单"
resizable=false
style="width:600px;height:350px;">
<div class="easyui-layout" fit="true">
<div region="center" border="false" >
<!-- 用户基本信息 -->
<div class="easyui-tabs" fit="true" border=false>
<div title="基本信息" style="padding:5px;">
<!-- 表单 -->
<form id="form">
<table class="form-content" height="225">
<tr>
<!-- 机构id -->
<td colspan="4"><input type="hidden" name="id"/></td>
</tr>
<tr>
<td width="80">登录账号:</td>
<td><input class="easyui-validatebox" type="text" name="acc" validType="length[1,40]" required="true"/></td>
<td width="95">员工姓名:</td>
<td><input class="easyui-validatebox" type="text" name="name" validType="length[1,40]" required="true"/> </td>
</tr>
<tr>
<td>登录密码:</td>
<td><input class="easyui-validatebox" type="password" name="pwd" id="pwd" validType="length[1,32]" required="true"/></td>
<td>确认密码:</td>
<td><input name="pwd2" class="easyui-validatebox" type="password" validType="pwdTow['pwd']" required="true"/> </td>
</tr>
<tr>
<td>员工编号:</td>
<td><input class="easyui-validatebox" type="text" name="code" validType="length[1,10]" required="true"/></td>
<td>联系电话:</td>
<td><input name="phone" class="easyui-validatebox" type="text" validType="length[0,40]" /> </td>
</tr>
<tr>
<td>电子邮件:</td>
<td><input class="easyui-validatebox" type="text" name="email" validType="email;length[0,80]"/></td>
<td>所属机构:</td>
<td><input name="smOrg" class="easyui-validatebox" type="text" required="true" disabled="true"/> </td>
</tr>
<tr>
<td>员工类型:</td>
<td>
<input name="type" value=1 type="radio" checked=true/><span class="blue">普通用户</span>
<input name="type" value=0 type="radio"/><span class="red">系统用户</span>
</td>
<td>使用状态:</td>
<td>
<input name="status" value=1 type="radio" checked=true/><span class="blue">有效</span>
<input name="status" value=0 type="radio"/><span class="red">无效</span>
</td>
</tr>
<tr>
<td>备 注:</td>
<td colspan="3">
<textarea class="easyui-validatebox"
name="remark"
validType="length[0,200]"
style="height:55px;width:400">
</textarea>
</td>
</tr>
</table>
</form>
</div>
<div title="设置角色" style="padding:5px;">
<!-- 表单 -->
<table class="form-content" style="width:576px;height:225px;">
<tr>
<td>
<table id="roleGrid" class="easyui-datagrid"
singleSelect="false"
idField="id"
fit=true
autoLoad="false"
queryParams="User.queryParams"
url="sys/role">
<thead>
<tr>
<th field="ck" width="80" checkbox="true"></th>
<th field="name" width="80">角色名称</th>
<th field="smOrg" formatter="Fmt.showFun('name')" width="80">所属机构</th>
<th field="type" width="80" formatter="Fmt.roleType">角色类型</th>
<th field="status" width="60" formatter="Formatter.status">使用状态</th>
<th field="remark" width="150">角色描述</th>
</tr>
</thead>
</table>
</td>
</tr>
</table>
</div>
</div>
</div>
<!-- 按钮区 -->
<div region="south" border="false" style="text-align:center;height:30px;line-height:30px;">
<a class="easyui-linkbutton" iconCls="icon-ok" href="javascript:void(0)" id="save">保存</a>
<a class="easyui-linkbutton" iconCls="icon-cancel" href="javascript:void(0)" onclick="$('#formWin').window('close')">取消</a>
</div>
</div>
</div>
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/WEB-INF/view/system/user/user.jsp | Java Server Pages | asf20 | 6,937 |
// 定义对象
User = function(){
// ...定义变量
var orgTreeEl,
userGridEl,
formWinEl,
formEl,
roleGridEl;
return{
/**
* 初始化组件
*/
init: function(){
// 加载要使用的组件
using(['msg', 'form', 'treegrid', 'grid'], User.initCom);
orgTreeEl = $('#orgTree');
userGridEl = $('#userGrid');
formWinEl = $('#formWin');
formEl = $('#form');
roleGridEl = $('#roleGrid');
},
/**
* 组织树事件
*/
orgTreeEvent: {
onSelect: function(row){
User.onSearch(row);
roleGridEl.datagrid('reload', {status: 1});
}
},
/**
* 查询参数
*/
queryParams: function(){
var orgId = null;
try{
orgId = orgTreeEl.treegrid('getSelected')['id'];
}catch(e){}
return{
orgId: orgId
};
},
/**
* 初始化组件
*/
initCom: function(){
formWinEl.window({
onClose: function(){
formEl.form('clear');
formEl.form('findField', 'acc').enable();
formEl.form('findField', 'smOrg').enable();
}
})
// 初始化事件
User.initEvent();
},
/**
* 初始化事件
*/
initEvent: function(){
// 监听事件
$('#add').click(User.doAdd);
$('#update').click(User.doUpdate);
$('#remove').click(User.doRemove);
$('#save').click(function(){
var isValid = formEl.form('validate');
if(!isValid){
$.msg.say("请确保表单正常!");
return;
}
$.msg.cfm('是否保存当前记录?', function(a){
if(a){
// form的值
var formVal = formEl.form('getValue', true);
// 当前选中的组织机构
var org = orgTreeEl.treegrid('getSelected');
if(User.isNew){
formVal['id'] = formVal['acc'];
}
formVal['smOrg'] = {id: org['id']};
if(User.isNew){
$.crud('sys/user/isHasRecord', formVal, function(data){
if(!data){
User.doSave(formVal);
}else{
$.msg.say("已经存在相同账号的记录,请确认!");
}
});
}else{
User.doSave(formVal);
}
}
})
});
$('#cancel').click(function(){
formWinEl.window('close');
});
},
/**
* 添加记录
*/
doAdd: function(){
var row = orgTreeEl.treegrid('getSelected');
if(!row){
$.msg.say("请先选择部门作为用户的所在部门!");
return;
}
formWinEl.window({title:'【新增】用户'});
formWinEl.window('open');
User.isNew = true; // 新增
formEl.form('load',{
type:1,
status:1,
smOrg: orgTreeEl.treegrid('getSelected')['name']
});
},
/**
* 编辑修改记录
*/
doUpdate: function(){
var row = userGridEl.datagrid('getSelected');
if(!row){
$.msg.say("请先选择要修改的用户!");
return;
}
row['smOrg'] = orgTreeEl.treegrid('getSelected')['name'];
User.isNew = false; // 修改
formEl.form('load', row); // 设置form值
formEl.form('findField', 'acc').disable();
formEl.form('findField', 'smOrg').disable();
if(row['smRoles']){
$.each(row['smRoles'], function(idx, role){
roleGridEl.datagrid('selectRecord', role['id']);
});
}
formWinEl.window({title:'【修改】用户'});
formWinEl.window('open');
},
/**
* 删除记录
*/
doRemove: function(){
var row = userGridEl.datagrid('getSelected');
if(!row){
$.msg.say("请先选择要删除的用户!");
return;
}
row = {id: row['id']};
$.msg.cfm('是否确定删除当前选中记录?', function(a){
if(a){
$.crud("sys/user/remove", row, function(data){
if(data['success'] == false){
$.msg.err(data['message']);
}else{
$.msg.say("删除成功!");
userGridEl.datagrid('reload');
}
});
}
});
},
/**
* 保存记录
*/
doSave: function(formVal){
// 获取当前记录的相关权限
var roles = roleGridEl.datagrid('getSelections');
if(roles){
var rs = [];
$.each(roles, function(idx, role){
rs.push({id: role['id']});
});
formVal['smRoles'] = rs;
}
formEl.form('ajax', {
url: 'sys/user/save',
data:formVal,
onSubmit: function(){
// 表单不可用
formWinEl.disable();
$.msg.say("正在保存数据,请稍候...");
return true;
},
success: function(data) {
User.onSearch();
formWinEl.enable();
$.msg.say("保存成功!");
formWinEl.window('close');
}
});
},
/**
* 查询数据
*/
onSearch: function(){
userGridEl.datagrid('reload');
}
};
}();
/**
* 拥有角色
*/
Fmt.hasRoles = function(v){
if($.isEmpty(v))return '';
var nameArr = [];
$.each(v, function(idx, role){
nameArr.push(role['name']);
});
return nameArr.join(',');
}
/**初始化界面*/
$(User.init); | zzyapps | trunk/JqFw/WebRoot/WEB-INF/view/system/user/user.js | JavaScript | asf20 | 5,145 |
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<!-- 表头区 -->
<head>
<!-- jq框架 -->
${jqFW}
<!-- 自定义js -->
<script type="text/javascript" src="<c:url value="/view/system/function/funOrder.js" />"></script>
</head>
<!-- 内容区 -->
<body class="easyui-layout">
<!-- 菜单区 -->
<div region="north" style="padding:5 10 5 10px;" border=false >
<table class="easyui-tbar">
<tr>
<td>
<a id="showRoleBtn" href="${path}/sys/fun/" class="easyui-linkbutton" iconCls="icon-add">返回功能维护</a>
</td>
</tr>
</table>
</div>
<!-- 内容区 -->
<div region="center" style="padding:5 10 5 10px;" border=false>
<ul id="funTable" class="easyui-tree"
idField="id"
textField="name"
fitColumns="true"
fit=true
dnd=true
url="sys/fun"
>
</ul>
</div>
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/WEB-INF/view/system/function/funOrder.jsp | Java Server Pages | asf20 | 1,051 |
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<!-- 表头区 -->
<head>
<!-- jq框架 -->
${jqFW}
<!-- 自定义js -->
<script type="text/javascript" src="<c:url value="/view/system/function/fun2Role.js" />"></script>
<script type="text/javascript" src="<c:url value="/view/system/function/fun.js" />"></script>
</head>
<!-- 内容区 -->
<body class="easyui-layout">
<!-- 菜单区 -->
<div region="north" style="padding:5 10 5 10px;" border=false >
<table class="easyui-tbar">
<tr>
<td>
<a id="search" href="#" class="easyui-linkbutton" iconCls="icon-search">查询</a>
<a id="add" href="#" class="easyui-linkbutton" iconCls="icon-add">新增</a>
<a id="update" href="#" class="easyui-linkbutton" iconCls="icon-update">修改</a>
<a id="remove" href="#" class="easyui-linkbutton" iconCls="icon-delete">删除</a>
<a id="showRoleBtn" href="#" class="easyui-linkbutton" iconCls="icon-add">角色授权</a>
<%-- --%>
<%-- <a id="showRoleBtn" href="${path}/sys/fun/initFunOrder" class="easyui-linkbutton" iconCls="icon-add">功能排序</a>--%>
</td>
</tr>
</table>
</div>
<!-- 内容区 -->
<div region="center" style="padding:5 10 5 10px;" border=false>
<table id="funTable" class="easyui-treegrid"
idField="id"
treeField="name"
fitColumns="true"
fit=true
url="sys/fun"
other="Fun.funEvent"
>
<thead>
<tr>
<th field="name" width="100">名称</th>
<th field="code" width="80">编号</th>
<th field="type" width="120" formatter="Fmt.funsType">类型</th>
<th field="status" width="50" formatter="Fmt.status">状态</th>
<th field="orderInd" width="50">排序号</th>
<th field="remark" width="150">备注</th>
</tr>
</thead>
</table>
</div>
<!-- form表单 -->
<div id="formWin" class="easyui-window"
closed="true"
modal="true"
title="维护表单"
resizable=false
style="width:550px;height:320px;">
<div class="easyui-layout" fit="true">
<div region="center" border="false" style="padding:10px;">
<!-- 表单 -->
<form id="funForm">
<table class="form-content" height="200">
<tr>
<!-- 机构id -->
<td colspan="4"><input type="hidden" name="id"/></td>
</tr>
<tr>
<td width="80">功能编号:</td>
<td><input class="easyui-validatebox" type="text" name="code" validType="length[1,20]" required="true"/></td>
<td width="95">功能名称:</td>
<td><input class="easyui-validatebox" type="text" name="name" validType="length[1,40]" required="true"/></td>
</tr>
<tr>
<td>菜单图标:</td>
<td>
<input id="iconClsCombo" name="iconCls">
</td>
<td>上级菜单:</td>
<td><input class="easyui-validatebox" type="text" name="parentName"/></td>
</tr>
<tr>
<td>菜单路径:</td>
<td colspan="2"><input class="easyui-validatebox" type="text" name="uiPath" validType="length[1,500]" required="true" style="width:300px;"/></td>
<td>
排序号:
<input name="orderInd" size="9" class="easyui-validatebox"/>
</td>
</tr>
<tr>
<td>功能类型:</td>
<td>
<input name="type" value="BASE" type="radio" checked=true/><span class="blue">基本功能</span>
<input name="type" value="SUBSYS" type="radio"/><span class="red">子系统</span>
</td>
<td>使用状态:</td>
<td>
<input name="status" value=1 type="radio" checked=true/><span class="blue">有效</span>
<input name="status" value=0 type="radio"/><span class="red">无效</span>
</td>
</tr>
<tr>
<td>备 注:</td>
<td colspan="3">
<textarea class="easyui-validatebox"
name="remark"
validType="length[0,2000]"
style="height:35px;width:100%">
</textarea>
</td>
</tr>
</table>
</form>
</div>
<!-- 按钮区 -->
<div region="south" border="false" style="text-align:center;height:30px;line-height:30px;">
<a class="easyui-linkbutton" iconCls="icon-ok" href="javascript:void(0)" id="save">保存</a>
<a class="easyui-linkbutton" iconCls="icon-cancel" href="javascript:void(0)" id="cancel">取消</a>
</div>
</div>
</div>
<!-- 角色维护window -->
<div id="roleWin" class="easyui-window"
closed="true"
modal="true"
title="功能到角色关联"
resizable=false
style="width:650px;height:380px;">
<div class="easyui-layout" fit="true">
<div region="center" border="false" >
<table>
<tr>
<td >
<div style="width:180px;height:300px;">
<table id="roleOrgTree" class="easyui-treegrid"
idField="id"
treeField="name"
fitColumns="true"
fit=true
border=true
url="sys/org"
other="Fun2Role.orgTreeEvent"
queryParams="$.statusParam"
>
<thead>
<tr>
<th field="name" width="140">名称</th>
<th field="code" width="40">编号</th>
</tr>
</thead>
</table>
</div>
</td>
<td >
<div style="width:445px;height:300px;">
<!-- 维护角色-->
<div class="easyui-tabs" fit="true">
<div title="角色" border="false">
<table id="roleGrid" class="easyui-datagrid"
singleSelect="false"
idField="id"
pagination=true
queryParams="Fun2Role.queryRoleParams"
autoLoad="false"
url="sys/role"
fit=true
border=false
other="Fun2Role.roleGridEvent"
sytle="width:200px;height:240px;">
<thead>
<tr>
<th field="ck" checkbox=true width="40">账号</th>
<th field="name" width="80">角色名称</th>
<th field="smOrg" formatter="Fmt.showFun('name')" width="80">所属机构</th>
<th field="type" width="80" formatter="Fmt.roleType">角色类型</th>
<th field="status" width="60" formatter="Formatter.status">使用状态</th>
<th field="remark" width="150">角色描述</th>
</tr>
</thead>
</table>
</div>
<div title="已选" border="false">
<textarea id="selctedRole" rows="17" cols="60"></textarea>
</div>
</div>
</div>
</td>
</tr>
</table>
</div>
<!-- 按钮区 -->
<div region="south" border="false" style="text-align:center;height:30px;line-height:30px;">
<a class="easyui-linkbutton" iconCls="icon-ok" href="javascript:void(0)" id="roleOKBtn">保存</a>
<a class="easyui-linkbutton" iconCls="icon-cancel" href="javascript:void(0)" onclick="$('#roleWin').window('close')">取消</a>
</div>
</div>
</div>
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/WEB-INF/view/system/function/fun.jsp | Java Server Pages | asf20 | 7,643 |
// 定义对象
Fun = function(){
// ...定义变量
var treegridEl,formWinEl,funFormEl, iconClsComboEl;
return{
/**
* 初始化组件
*/
init: function(){
treegridEl = $('#funTable');
formWinEl = $('#formWin');
funFormEl = $('#funForm');
iconClsComboEl = $('#iconClsCombo');
// 加载要使用的组件
using(['msg', 'combobox', 'form', 'treegrid', 'combogrid'], Fun.initCom);
},
/**
* 初始化组件
*/
initCom: function(){
Fun2Role.init();
formWinEl.window({
onClose: function(){
funFormEl.find('*[name=code]').enable();
funFormEl.form('findField', 'parentName').enable();
funFormEl.form('findField', 'uiPath').enable();
funFormEl.form('clear');
}
});
iconClsComboEl.combogrid({
panelWidth:150,
idField:'iconCls',
textField:'text',
columns:[[
{field:'iconCls',title:' ',width:40, formatter: function(v){
return "<span class='"+v+"'> </span>"
}},
{field:'text',title:'名称',width:80}
]]
});
var combGrid = $.data(iconClsComboEl[0], "combogrid").grid
combGrid.datagrid('loadData', iconClsArr);
// 初始化事件
Fun.initEvent();
},
/**
* 初始化监听事件
*/
initEvent: function(){
// 查询记录
$('#search').click(function(){
treegridEl.treegrid('reload');
});
// 添加记录
$('#add').click(Fun.doAdd);
// 修改记录
$('#update').click(Fun.doUpdate);
// 删除记录
$('#remove').click(Fun.doRemove);
// 保存记录
$('#save').click(function(){
var isValid = funFormEl.form('validate');
if(!isValid){return;}
// form的值
var formVal = funFormEl.form('getValue', true);
// 当前选中的行值
var row = treegridEl.treegrid('getSelected');
if(Fun.isNew){
formVal['id'] = formVal['code'];
if(row && row['id']){
formVal['parentFun'] = {id: row['id']};
}
}else{
if(row && row['parentId']){
formVal['parentFun'] = {id: row['parentId']};
}
}
$.msg.cfm('是否保存当前记录?', function(a){
if(a){
if(Fun.isNew){
$.query('sys/fun/isHasRecord', formVal, function(msg){
if(!msg['success']){
Fun.saveRecord(formVal, row);
}else{
$.msg.say("已经存在相同编码的记录,请确定!");
}
});
}else{
Fun.saveRecord(formVal, row);
}
}
})
});
$('#cancel').click(function(){
formWinEl.window('close');
});
// 类型事件监听
funFormEl.form('findField', 'type').change(function(){
if(this.value == 'SUBSYS'){
funFormEl.form('findField', 'uiPath').val(null);
funFormEl.form('findField', 'uiPath').disable();//validatebox('clear');
}else{
funFormEl.form('findField', 'uiPath').enable();
}
});
},
/**
* 添加记录
*/
doAdd: function(){
var row = treegridEl.treegrid('getSelected');
if(row['type'] == 'BASE') {
$.msg.say('只能对子系统添加信息!');
return;
}
formWinEl.window({title:'【新增】功能菜单'});
formWinEl.window('open');
Fun.isNew = true; // 新增
funFormEl.form('findField', 'parentName').disable();
funFormEl.form('load',{
type: 'BASE',
status:1,
parentName: row ? row['name']: ''
});
},
/**
* 更新记录
*/
doUpdate: function(){
var row = treegridEl.treegrid('getSelected');
if(!row){
$.msg.say("必需先选择一行,再进行修改!");
return;
}
if(row['id'] == '0'){
$.msg.say("根节点不允许修改!");
return;
}
Fun.isNew = false; // 修改
funFormEl.form('load', row); // 设置form值
funFormEl.form('findField', 'code').disable();
$('#smOrgTypeCombobox').combobox('setValue', row['smOrgType']);
if(! $.isEmpty(row['parentId'])){
funFormEl.form('findField', 'parentName').val(treegridEl.treegrid('find',row['parentId'])['name'] );
}
if(row['type'] == 'SUBSYS'){
funFormEl.form('findField', 'uiPath').disable();
}
funFormEl.form('findField', 'parentName').disable();
formWinEl.window({title:'【修改】功能菜单'});
formWinEl.window('open');
},
/**
* 删除记录
*/
doRemove: function(){
var row = treegridEl.treegrid('getSelected');
if(!row){
$.msg.say("必需先选择一行,再进行删除!");
return;
}
if(row['id'] == '0'){
$.msg.say("根节点不允许删除!");
return;
}
$.msg.cfm('是否确定删除当前选中记录?', function(a){
if(a){
$.crud("sys/fun/remove", row, function(data){
if(data['success'] == false){
$.msg.err(data['message']);
}else{
$.msg.say("删除成功!");
treegridEl.treegrid('reload', row ? row.parentId : null);
}
});
}
});
},
/**
* 保存记录
*/
saveRecord: function(formVal, row){
funFormEl.form('ajax', {
url: 'sys/fun/save',
data:formVal,
onSubmit: function(){
// 表单不可用
formWinEl.disable();
$.msg.say("正在保存数据,请稍候...");
return true;
},
success: function(data) {
if(Fun.isNew){
treegridEl.treegrid('reload', (row ? row.id : null));
}else{
treegridEl.treegrid('reload', (row ? row.parentId : null));
}
formWinEl.enable();
$.msg.say("保存成功!");
formWinEl.window('close');
$('#roleWin').window('close');
}
});
},
/**
* 获取功能选中的记录
*/
getFunSelected: function(){
return treegridEl.treegrid('getSelected');
},
/**
* 功能相关事件
*/
funEvent: {
/**
* 对遍历的结果集进行处理
*/
eachLoadData: function(row, index){
if(row['type'] == 'SUBSYS'){
row['iconCls'] = 'icon-tree-folder';
row['state'] = 'closed';
}else{
row['iconCls'] = 'icon-tree-action';
row['state'] = 'open';
}
}
}
};
}();
/**
* 图标数组
* @type
*/
var iconClsArr = [
{iconCls:'icon-fun-edit', text:'编辑图标'},
{iconCls:'icon-fun-search', text:'查询图标'},
{iconCls:'icon-fun-subsys', text:'子系统图标'}
];
/**
* 显示功能类型格式化
* @param {} v
* @return {String}
*/
Fmt['funsType']= function(v){
if(!v) return '';
return v=='BASE' ? '<span class="blue">基本功能</span>'
: '<span class="red">子系统</span>';
}
/**初始化界面*/
$(Fun.init); | zzyapps | trunk/JqFw/WebRoot/WEB-INF/view/system/function/fun.js | JavaScript | asf20 | 6,933 |
Fun2Role = function(){
//定义私有变量
var showRoleBtnEl/*显示用户维护弹出框的按钮*/,
roleWinEl/*用户弹出框*/,
roleOrgTreeEl/*显示用户组织结构树*/,
roleGridEl/*用户表格*/,
selctedRoleEl/*已选用户显示文本框*/,
roleOKBtnEl/*用户保存按钮*/;
/*当前角色的相关用户*/
var currFunRoles = [];
/*是否是自动选中表格*/
var isAutoSelect = false;
return{
/**
* 初始化模块
* @returns
*/
init: function(){
showRoleBtnEl = $('#showRoleBtn');
roleWinEl = $('#roleWin');
roleOrgTreeEl = $('#roleOrgTree');
roleGridEl = $('#roleGrid');
selctedRoleEl = $('#selctedRole');
roleOKBtnEl = $('#roleOKBtn');
Fun2Role.initEvent();
},
/**
* 初始化监听事件
* @returns
*/
initEvent: function(){
showRoleBtnEl.click(function(){
var row = Fun.getFunSelected();
if(!row){
$.msg.say("请先选择要设置角色的功能!");
return;
}
if(row['type'] != 'BASE'){
$.msg.say("只可对<span class='red'>基本功能</span>进行分配角色");
return;
}
currFunRoles = row['smRoles'] ? row['smRoles'] : [];
Fun2Role.setRoleGridSelect();
Fun2Role.setRoleText();
roleWinEl.window('open');
});
roleOKBtnEl.click(function(){
$.msg.cfm("是否确定保存当前功能设置的关联角色?", function(a){
if(a){
Fun2Role.doSaveFun2Role();
}
});
});
},
/**
* 用户查询
* @returns
*/
queryRoleParams: function(){
var org = roleOrgTreeEl.treegrid('getSelected');
return {
status:1,
orgId: org['id']
};
},
/**
* 组织树事件
*/
orgTreeEvent: {
onSelect: function(row){
//Fun2Role.onSearch(row);
roleGridEl.datagrid('reload', {status: 1});
}
},
/**
* 用户表格事件
*/
roleGridEvent: {
onSelect: function(idx, row){
if(currFunRoles.indexOfByProp('id', row['id']) == -1){
currFunRoles.push(row);
Fun2Role.setRoleText();
}
},
onUnselect: function(idx, row){
currFunRoles.remove(row);
Fun2Role.setRoleText();
},
onLoadSuccess: function(){
Fun2Role.setRoleGridSelect();
}
},
/**
* 保存角色和用户的关联信息
* @returns
*/
doSaveFun2Role: function(){
var fun = Fun.getFunSelected();
// fun['smFuns'] = $.fetchListProp(role['smFuns'], 'id');
fun['smRoles'] = $.fetchListProp(currFunRoles, 'id');
fun['parentFun'] = {id: fun.parentId};
Fun.saveRecord(fun, fun);
},
/**
* 设置用户选中
* @param Roles
* @returns
*/
setRoleGridSelect: function(){
roleGridEl.datagrid('clearSelections');
$.each(currFunRoles, function(idx, role){
roleGridEl.datagrid('selectRecord', role['id']);
});
},
/**
* 设置用户选中的显示值
* @param roles
* @returns
*/
setRoleText: function(){
var showRoles = [];
$.each(currFunRoles, function(idx, role){
showRoles.push(role['name'] + "【"+ role['smOrg']['name'] +"】");
});
selctedRoleEl.val(showRoles.join('\n'));
}
};
}();
| zzyapps | trunk/JqFw/WebRoot/WEB-INF/view/system/function/fun2Role.js | JavaScript | asf20 | 3,263 |
FunOrder = function(){
return {
/**
* 初始化界面
*/
init: function(){
using(['tree', 'draggable', 'droppable', 'msg'], function(){alert('init ok!')});
}
};
}();
$(FunOrder.init);
| zzyapps | trunk/JqFw/WebRoot/WEB-INF/view/system/function/funOrder.js | JavaScript | asf20 | 224 |
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<!-- 表头区 -->
<head>
<!-- jq框架 -->
${jqFW}
<!-- 自定义js -->
<script type="text/javascript" src="<c:url value="/view/system/role/role2User.js" />"></script>
<script type="text/javascript" src="<c:url value="/view/system/role/role2Fun.js" />"></script>
<script type="text/javascript" src="<c:url value="/view/system/role/role.js" />"></script>
</head>
<!-- 内容区 -->
<body class="easyui-layout">
<!-- 部门信息 -->
<div region="west" border=true split="true"
title="部门"
style="width: 280px; padding: 1px; overflow: hidden;">
<table id="orgTree" class="easyui-treegrid"
idField="id"
treeField="name"
fitColumns="true"
fit=true
border=false
url="sys/org"
other="Role.orgTreeEvent"
>
<thead>
<tr>
<th field="name" width="180">名称</th>
<th field="code" width="60">编号</th>
<th field="smOrgType" width="60" formatter="Fmt.showFun('typeName')">类型</th>
</tr>
</thead>
</table>
</div>
<!-- 维护用户-->
<div region="center" border=false
class="easyui-layout"
fit=true
>
<div region="north" border="false">
<table class="easyui-tbar" style="padding:0px;">
<tr>
<td>
<a id="add" href="#" class="easyui-linkbutton" iconCls="icon-add">新增</a>
<a id="update" href="#" class="easyui-linkbutton" iconCls="icon-update">修改</a>
<a id="remove" href="#" class="easyui-linkbutton" iconCls="icon-remove">删除</a>
<a id="showFunBtn" href="#" class="easyui-linkbutton" iconCls="icon-setting">设置功能</a>
<a id="showUserBtn" href="#" class="easyui-linkbutton" iconCls="icon-setting">用户授权</a>
</td>
</tr>
</table>
</div>
<div region="center" border="false">
<table id="roleGrid" class="easyui-datagrid"
singleSelect="true"
idField="id"
fit=true
pagination=true
autoLoad=false
queryParams="Role.queryParams"
url="sys/role">
<thead>
<tr>
<th field="ck" width="40" checkbox=true></th>
<th field="name" width="80">角色名称</th>
<th field="smOrg" formatter="Fmt.showFun('name')" width="80">所属机构</th>
<th field="type" width="80" formatter="Fmt.roleType">角色类型</th>
<th field="status" width="60" formatter="Formatter.status">使用状态</th>
<th field="remark" width="150">角色描述</th>
</tr>
</thead>
</table>
</div>
</div>
<!-- 维护表单form -->
<div id="formWin" class="easyui-window"
closed="true"
modal="true"
title="维护表单"
resizable=false
style="width:650px;height:320px;">
<div class="easyui-layout" fit="true">
<div region="center" border="false" >
<!-- 表单 -->
<form id="form">
<table class="form-content" height="200">
<tr>
<!-- 机构id -->
<td colspan="4"><input type="hidden" name="id"/></td>
</tr>
<tr>
<td width="80">角色名称:</td>
<td><input class="easyui-validatebox" type="text" name="name" validType="length[1,60]" required="true"/></td>
</tr>
<tr>
<td width="95">所属机构:</td>
<td><input class="easyui-validatebox" type="text" name="smOrg" disabled="disabled" /> </td>
</tr>
<tr>
<td>角色类型</td>
<td>
<input name="type" value=GR type="radio" checked=true/>
<span class="blue">正常角色(可授予当前及其下级机构的所有用户,并且不能拥有系统管理功能)</span><br/>
<input name="type" value=PR type="radio"/>
<span class="red">公共角色(当前及其下级机构的所有用户将默认拥有该角色,并且不能拥有系统管理功能)</span><br/>
</td>
</tr>
<tr>
<td>使用状态:</td>
<td>
<input name="status" value=1 type="radio" checked=true/><span class="blue">有效</span>
<input name="status" value=0 type="radio"/><span class="red">无效</span>
</td>
</tr>
<tr>
<td>角色描述:</td>
<td colspan="1">
<textarea class="easyui-validatebox"
name="remark"
validType="length[0,200]"
style="height:35px;width:100%">
</textarea>
</td>
</tr>
</table>
</form>
</div>
<!-- 按钮区 -->
<div region="south" border="false" style="text-align:center;height:30px;line-height:30px;">
<a class="easyui-linkbutton" iconCls="icon-ok" href="javascript:void(0)" id="save">保存</a>
<a class="easyui-linkbutton" iconCls="icon-cancel" href="javascript:void(0)" id="cancel">取消</a>
</div>
</div>
</div>
<!-- 设置功能window -->
<div id="funWin" class="easyui-window"
title="设置功能"
closed="true"
style="width:450px;height:290px;">
<div class="easyui-layout" fit="true">
<div region="center" border="false" >
<!-- 内容区 -->
<div region="center" border=false>
<ul id="funTree" class="easyui-tree"
list="sys/fun/listOnce"
idField = 'id'
textField='name'
animate="false"
checkbox="true"
style="width:400px;height:220px"
>
</ul>
<!-- <table id="funTree" class="easyui-tree"-->
<!-- idField="id"-->
<!-- treeField="name"-->
<!-- list="sys/fun/listOnce"-->
<!-- border=false-->
<!-- singleSelect=false-->
<!-- style="width:436px;height:220px"-->
<!-- >-->
<!-- <thead>-->
<!-- <tr>-->
<!-- <th field="name" width="100" formatter="Fmt['renderCheckbox']">名称</th>-->
<!-- <th field="code" width="80">编号</th>-->
<!-- <th field="type" width="120" formatter="Fmt.funsType">类型</th>-->
<!-- </tr>-->
<!-- </thead>-->
<!-- </table>-->
</div>
</div>
<!-- 按钮区 -->
<div region="south" border="false" style="text-align:center;height:30px;line-height:30px;">
<a class="easyui-linkbutton" iconCls="icon-ok" href="javascript:void(0)" id="funOKBtn">保存</a>
<a class="easyui-linkbutton" iconCls="icon-cancel" href="javascript:void(0)" onclick="$('#funWin').window('close')">取消</a>
</div>
</div>
</div>
<!-- 用户维护window -->
<div id="userWin" class="easyui-window"
closed="true"
modal="true"
title="角色跟用户关联"
resizable=false
style="width:650px;height:380px;">
<div class="easyui-layout" fit="true">
<div region="center" border="false" >
<table>
<tr>
<td >
<div style="width:180px;height:300px;">
<table id="userOrgTree" class="easyui-treegrid"
idField="id"
treeField="name"
fitColumns="true"
fit=true
border=true
url="sys/org"
other="Role2User.orgTreeEvent"
queryParams="$.statusParam"
>
<thead>
<tr>
<th field="name" width="140">名称</th>
<th field="code" width="40">编号</th>
</tr>
</thead>
</table>
</div>
</td>
<td >
<div style="width:445px;height:300px;">
<!-- 维护用户-->
<div class="easyui-tabs" fit="true">
<div title="用户" border="false">
<table id="userGrid" class="easyui-datagrid"
singleSelect="false"
idField="id"
pagination=true
queryParams="Role2User.queryUserParams"
autoLoad="false"
url="sys/user"
fit=true
border=false
other="Role2User.userGridEvent"
sytle="width:200px;height:240px;">
<thead>
<tr>
<th field="ck" checkbox=true width="40">账号</th>
<th field="acc" width="80">账号</th>
<th field="name" width="80">姓名</th>
<th field="code" width="80">编号</th>
<th field="phone" width="50">电话</th>
<th field="type" width="50">类型</th>
</tr>
</thead>
</table>
</div>
<div title="已选" border="false">
<textarea id="selctedUser" rows="17" cols="60"></textarea>
</div>
</div>
</div>
</td>
</tr>
</table>
</div>
<!-- 按钮区 -->
<div region="south" border="false" style="text-align:center;height:30px;line-height:30px;">
<a class="easyui-linkbutton" iconCls="icon-ok" href="javascript:void(0)" id="userOKBtn">保存</a>
<a class="easyui-linkbutton" iconCls="icon-cancel" href="javascript:void(0)" onclick="$('#userWin').window('close')">取消</a>
</div>
</div>
</div>
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/WEB-INF/view/system/role/role.jsp | Java Server Pages | asf20 | 9,464 |
// 定义对象
Role = function(){
// ...定义变量
var orgTreeEl,
roleGridEl,
formWinEl,
formEl;
return{
/**
* 获取角色表格元素
* @returns
*/
getRoleSelected: function(){
return roleGridEl.datagrid('getSelected');
},
/**
* 初始化组件
*/
init: function(){
// 加载要使用的组件
using(['msg', 'form', 'treegrid', 'grid'], Role.initCom);
orgTreeEl = $('#orgTree');
roleGridEl = $('#roleGrid');
formWinEl = $('#formWin');
formEl = $('#form');
},
/**
* 组织树事件
*/
orgTreeEvent: {
onSelect: function(row){
Role.onSearch(row);
}
},
/**
* 查询参数
*/
queryParams: function(){
var orgId = null;
try{
orgId = orgTreeEl.treegrid('getSelected')['id'];
}catch(e){}
return{
orgId: orgId
};
},
/**
* 初始化组件
*/
initCom: function(){
Role2Fun.init();
Role2User.init();
formWinEl.window({
onClose: function(){
formEl.form('clear');
formEl.form('findField', 'acc').enable();
formEl.form('findField', 'smOrg').enable();
}
})
// 初始化事件
Role.initEvent();
},
/**
* 初始化事件
*/
initEvent: function(){
// 监听事件
$('#add').click(Role.doAdd);
$('#update').click(Role.doUpdate);
$('#remove').click(Role.doRemove);
$('#save').click(function(){
var isValid = formEl.form('validate');
if(!isValid){
$.msg.say("请确保表单正常!");
return;
}
$.msg.cfm('是否保存当前记录?', function(a){
if(a){
// form的值
var formVal = formEl.form('getValue', true);
// 当前选中的组织机构
var org = orgTreeEl.treegrid('getSelected');
formVal['smOrg'] = org['id']=='0'? null :{id: org['id']};
if(Role.isNew){
delete formVal['id'];
}
Role.doSave(formVal);
}
})
});
$('#cancel').click(function(){
formWinEl.window('close');
});
},
/**
* 添加记录
*/
doAdd: function(){
var row = orgTreeEl.treegrid('getSelected');
if(!row){
$.msg.say("请先选择部门作为角色的所在部门!");
return;
}
formWinEl.window({title:'【新增】角色'});
formWinEl.window('open');
Role.isNew = true; // 新增
formEl.form('load',{
type:'GR',
status:1,
smOrg: orgTreeEl.treegrid('getSelected')['name']
});
},
/**
* 编辑修改记录
*/
doUpdate: function(){
var row = roleGridEl.datagrid('getSelected');
if(!row){
$.msg.say("请先选择要修改的角色!");
return;
}
row['smOrg'] = orgTreeEl.treegrid('getSelected')['name'];
Role.isNew = false; // 修改
formEl.form('load', row); // 设置form值
formEl.form('findField', 'acc').disable();
formEl.form('findField', 'smOrg').disable();
formWinEl.window({title:'【修改】角色'});
formWinEl.window('open');
},
/**
* 删除记录
*/
doRemove: function(){
var row = roleGridEl.datagrid('getSelected');
if(!row){
$.msg.say("请先选择要删除的角色!");
return;
}
$.msg.cfm('是否确定删除当前选中记录?', function(a){
if(a){
$.crud("sys/role/remove", row, function(data){
if(data['success'] == false){
$.msg.err(data['message']);
}else{
$.msg.say("删除成功!");
roleGridEl.datagrid('reload');
}
});
}
})
},
/**
* 保存记录
*/
doSave: function(formVal){
formEl.form('ajax', {
url: 'sys/role/save',
data:formVal,
onSubmit: function(){
// 表单不可用
formWinEl.disable();
$.msg.say("正在保存数据,请稍候...");
return true;
},
success: function(data) {
Role.onSearch();
formWinEl.enable();
$.msg.say("保存成功!");
formWinEl.window('close');
$('#funWin').window('close');
$('#userWin').window('close');
}
});
},
/**
* 查询数据
*/
onSearch: function(){
roleGridEl.datagrid('reload');
}
};
}();
/**初始化界面*/
$(Role.init); | zzyapps | trunk/JqFw/WebRoot/WEB-INF/view/system/role/role.js | JavaScript | asf20 | 4,416 |
/**
* 分配角色到功能
*/
Role2Fun = function(){
//私有变量
var showFunBtnEl/*设置功能按钮*/,
funWinEl/* 功能window*/,
funTreeEl/*功能树*/,
funOKBtnEl/*功能window的确定按钮*/,
funCancelBtnEl/*功能树的取消按钮*/;
return{
/**
* 初始化模块功能
* @returns
*/
init: function(){
showFunBtnEl = $('#showFunBtn');
funWinEl = $('#funWin');
funTreeEl = $('#funTree');
funOKBtnEl = $('#funOKBtn');
funCancelBtnEl = $('#funCancelBtn');
Role2Fun.initCmp();
},
/**
* 初始化组件
* @returns
*/
initCmp: function(){
/*funWinEl.window({
onClose: function(){
}
});*/
Role2Fun.initEvent();
},
/**
* 初始化事件
* @returns
*/
initEvent: function(){
showFunBtnEl.click(function(){
var row = Role.getRoleSelected();
if(!row){
$.msg.say("请先选择要设置功能的角色!");
return;
}
funTreeEl.tree('clearAllChecked');
var funList = row['smFuns'];
funTreeEl.tree('setListChecked', funList);
// $.each(funList, function(idx, fun){
//
// });
funWinEl.window('open');
});
funOKBtnEl.click(function(){
$.msg.cfm("是否确定保存当前角色设置的功能?", function(a){
if(a){
Role2Fun.doSaveFun();
}
});
});
funCancelBtnEl.click(function(){
funWinEl.window('close');
});
},
doSaveFun: function(){
var role = Role.getRoleSelected();
var funList = funTreeEl.tree('getAllChecked');
role['smFuns'] = $.fetchListProp(funList, 'id');
role['smUsers'] = $.fetchListProp(role['smUsers'], 'id');
role['smOrg'] = {id: role['smOrg']['id']};
Role.doSave(role);
}
};
}();
/**
* 显示功能类型格式化
* @param {} v
* @return {String}
*/
Fmt['funsType']= function(v){
if(!v) return '';
return v=='BASE' ? '<span class="blue">基本功能</span>'
: '<span class="red">子系统</span>';
}
Fmt['renderCheckbox']= function(v){
return '<input type="checkbox" />'+v;
}
| zzyapps | trunk/JqFw/WebRoot/WEB-INF/view/system/role/role2Fun.js | JavaScript | asf20 | 2,166 |
Role2User = function(){
//定义私有变量
var showUserBtnEl/*显示用户维护弹出框的按钮*/,
userWinEl/*用户弹出框*/,
userOrgTreeEl/*显示用户组织结构树*/,
userGridEl/*用户表格*/,
selctedUserEl/*已选用户显示文本框*/,
userOKBtnEl/*用户保存按钮*/;
/*当前角色的相关用户*/
var currRoleUsers = [];
/*是否是自动选中表格*/
var isAutoSelect = false;
return{
/**
* 初始化模块
* @returns
*/
init: function(){
showUserBtnEl = $('#showUserBtn');
userWinEl = $('#userWin');
userOrgTreeEl = $('#userOrgTree');
userGridEl = $('#userGrid');
selctedUserEl = $('#selctedUser');
userOKBtnEl = $('#userOKBtn');
Role2User.initEvent();
},
/**
* 初始化监听事件
* @returns
*/
initEvent: function(){
showUserBtnEl.click(function(){
var row = Role.getRoleSelected();
if(!row){
$.msg.say("请先选择要设置功能的角色!");
return;
}
currRoleUsers = row['smUsers'] ? row['smUsers'] : [];
Role2User.setUserGridSelect();
Role2User.setUserText();
userWinEl.window('open');
});
userOKBtnEl.click(function(){
$.msg.cfm("是否确定保存当前角色设置的关联用户?", function(a){
if(a){
Role2User.doSaveRole2User();
}
});
});
},
/**
* 用户查询
* @returns
*/
queryUserParams: function(){
var org = userOrgTreeEl.treegrid('getSelected');
return {
status:1,
orgId: org['id']
};
},
/**
* 组织树事件
*/
orgTreeEvent: {
onSelect: function(row){
//Role2User.onSearch(row);
userGridEl.datagrid('reload', {status: 1});
}
},
/**
* 用户表格事件
*/
userGridEvent: {
onSelect: function(idx, row){
if(currRoleUsers.indexOfByProp('id', row['id']) == -1){
currRoleUsers.push(row);
Role2User.setUserText();
}
},
onUnselect: function(idx, row){
currRoleUsers.remove(row);
Role2User.setUserText();
},
onLoadSuccess: function(){
Role2User.setUserGridSelect();
}
},
/**
* 保存角色和用户的关联信息
* @returns
*/
doSaveRole2User: function(){
var role = Role.getRoleSelected();
role['smFuns'] = $.fetchListProp(role['smFuns'], 'id');
role['smUsers'] = $.fetchListProp(currRoleUsers, 'id');
Role.doSave(role);
},
/**
* 设置用户选中
* @param users
* @returns
*/
setUserGridSelect: function(){
$.each(currRoleUsers, function(idx, user){
userGridEl.datagrid('selectRecord', user['id']);
});
},
/**
* 设置用户选中的显示值
* @param users
* @returns
*/
setUserText: function(){
var showUsers = [];
$.each(currRoleUsers, function(idx, user){
showUsers.push(user['name'] + "【"+ user['smOrg']['name'] +"】");
});
selctedUserEl.val(showUsers.join('\n'));
}
};
}();
| zzyapps | trunk/JqFw/WebRoot/WEB-INF/view/system/role/role2User.js | JavaScript | asf20 | 3,060 |
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<!-- 表头区 -->
<head>
<!-- jq框架 -->
${jqFW}
<!-- 自定义js -->
<script type="text/javascript" src="<c:url value="/view/system/orgType/orgType.js" />"></script>
</head>
<!-- 内容区 -->
<body class="easyui-layout">
<!-- 工具栏区 -->
<div region="north" style="padding:5 10 5 10px;" border=false >
<table class="easyui-tbar">
<tr>
<td>
<a id="search" href="#" class="easyui-linkbutton" iconCls="icon-search">查询</a>
<a id="add" href="#" class="easyui-linkbutton" iconCls="icon-add">新增</a>
<a id="update" href="#" class="easyui-linkbutton" iconCls="icon-update">修改</a>
<a id="remove" href="#" class="easyui-linkbutton" iconCls="icon-remove">删除</a>
</td>
</tr>
</table>
</div>
<!-- 内容区 -->
<div region="center" style="padding:5 10 5 10px;" border=false>
<table id="datagridDIV" class="easyui-datagrid"
singleSelect="true"
idField="id"
fit=true
url="sys/orgType"
>
<thead>
<tr>
<th field="ck" width="40" checkbox=true></th>
<th field="orgTypeId" width="200">类型编号</th>
<th field="typeName" width="200">类型名称</th>
<th field="orgLevel" width="200">机构级别</th>
<th field="status" width="200" formatter="Formatter.status">使用状态</th>
</tr>
</thead>
</table>
</div>
<!-- form表单 -->
<div id="formWin" class="easyui-window"
closed="true"
modal="true"
title="维护表单"
resizable=false
style="width:400px;height:250px;">
<div class="easyui-layout" fit="true">
<div region="center" border="false" style="padding:10px;">
<!-- 表单 -->
<form id="orgTypeForm">
<table class="form-content" height="145">
<tr>
<td width="100">类型编号:</td>
<td><input class="easyui-validatebox" type="text" name="orgTypeId" validType="length[1,32]" required="true"/></td>
</tr>
<tr>
<td>类型名称:</td>
<td><input class="easyui-validatebox" type="text" name="typeName" validType="length[1,32]" required="true"/></td>
</tr>
<tr>
<td>机构级别:</td>
<td><input name="orgLevel" class="easyui-numberbox" type="text" min="0" max="20" required="true"/> </td>
</tr>
<tr>
<td>使用状态:</td>
<td>
<input name="status" value=1 type="radio" checked=true/><span class="blue">有效</span>
<input name="status" value=0 type="radio"/><span class="red">无效</span>
</td>
</tr>
</table>
</form>
</div>
<!-- 按钮区 -->
<div region="south" border="false" style="text-align:center;height:30px;line-height:30px;">
<a class="easyui-linkbutton" iconCls="icon-ok" href="javascript:void(0)" id="save">保存</a>
<a class="easyui-linkbutton" iconCls="icon-cancel" href="javascript:void(0)" id="cancel">取消</a>
</div>
</div>
</div>
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/WEB-INF/view/system/orgType/orgType.jsp | Java Server Pages | asf20 | 3,264 |
// 定义对象
OrgType = function(){
// ...定义变量
var gridEl,formWinEl,orgTypeFormEl;
return{
/**
* 初始化组件
*/
init: function(){
// 加载要使用的组件
using(['msg', 'form', 'grid'], OrgType.initCom);
gridEl = $('#datagridDIV');
formWinEl = $('#formWin');
orgTypeFormEl = $('#orgTypeForm');
// 初始化事件
OrgType.initEvent();
},
/**
* 初始化组件
*/
initCom: function(){
formWinEl.window({
onClose: function(){
orgTypeFormEl.form('findField', 'orgTypeId').enable();
orgTypeFormEl.form('clear');
}
})
},
/**
* 初始化监听事件
*/
initEvent: function(){
// 查询记录
$('#search').click(function(){
gridEl.datagrid('reload');
});
// 添加记录
$('#add').click(function(){
formWinEl.window({title:'【新增】组织机构类型'});
formWinEl.window('open');
OrgType.isNew = true; // 新增
orgTypeFormEl.form('load',{status:1});
});
// 修改记录
$('#update').click(function(){
var row = gridEl.datagrid('getSelected');
if(!row){
$.msg.say("必需先选择一行,再进行修改!");
return;
}
OrgType.isNew = false; // 修改
orgTypeFormEl.form('clear'); // 清空form
orgTypeFormEl.form('load', row); // 设置form值
orgTypeFormEl.form('findField', 'orgTypeId').disable();
formWinEl.window({title:'【修改】组织机构类型'});
formWinEl.window('open');
});
// 删除记录
$('#remove').click(function(){
var row = gridEl.datagrid('getSelected');
if(!row){
$.msg.say("必需先选择一行,再进行删除!");
return;
}
$.msg.cfm('是否确定删除当前选中记录?', function(a){
if(a){
$.crud("sys/orgType/remove", row, function(data){
if(data['success'] == false){
$.msg.err(data['message']);
}else{
$.msg.say("删除成功!");
gridEl.datagrid('deleteRow', row);
}
});
}
})
});
// 保存记录
$('#save').click(function(){
var isValid = orgTypeFormEl.form('validate');
if(!isValid){
$.msg.say("请确保表单正常!");
return;
}
$.msg.cfm('是否保存当前记录?', function(a){
if(a){
if(OrgType.isNew){
$.query('sys/orgType/isHasRecord', orgTypeFormEl.serialize(), function(msg){
if(!msg['success']){
OrgType.saveRecord();
}else{
$.msg.say("已经存在相同编码的记录,请确定!");
}
});
}else{
OrgType.saveRecord();
}
}
})
});
$('#cancel').click(function(){
formWinEl.window('close');
});
},
/**
* 保存记录
*/
saveRecord: function(){
orgTypeFormEl.form('ajax', {
url: 'sys/orgType/save',
onSubmit: function(){
// 表单不可用
formWinEl.disable();
$.msg.say("正在保存数据,请稍候...");
return true;
},
success: function(data) {
if(OrgType.isNew){
gridEl.datagrid('appendRow', data);
}else{
gridEl.datagrid('updateRow', {
index: gridEl.datagrid("getRowIndex", gridEl.datagrid('getSelected')),
row: data
});
}
formWinEl.enable();
$.msg.say("保存成功!");
formWinEl.window('close');
}
});
}
};
}();
/**初始化界面*/
$(OrgType.init); | zzyapps | trunk/JqFw/WebRoot/WEB-INF/view/system/orgType/orgType.js | JavaScript | asf20 | 3,661 |
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!-- 校验是否已经登录,如果已经登录则直接跳转到首界面 -->
<%
if(session.getAttribute("USER_INFO") != null)
request.getRequestDispatcher("/sys/home").forward(request, response);
%>
<html>
<!-- 表头区 -->
<head>
<!-- JQ 框架组件 -->
<link rel="stylesheet" type="text/css" href="<c:url value="/resource/themes/default/easyui.css"/>" />
<link rel="stylesheet" type="text/css" href="<c:url value="/resource/themes/icon.css"/>" />
<script type="text/javascript" src="<c:url value="/resource/easyui/jquery-1.6.min.js" />"></script>
<script type="text/javascript" src="<c:url value="/resource/wide/Wide.js" />"></script>
<script type="text/javascript" src="<c:url value="/resource/easyui/easyloader.js" />"></script>
<!-- 自定义JS -->
<script type="text/javascript">
if(parent && parent.window && parent.window.USER_INFO){
parent.window.location.reload();
}
</script>
<script type="text/javascript" src="<c:url value="/view/login/login.js" />"></script>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
font-size: 12px;
background-color: #EEF9FF;
background-repeat: repeat-x;
background-position: center top;
background-image: url(<c:url value="/resource/themes/custom/login-bg2.jpg" />);
}
-->
</style>
</head>
<!-- 内容区 -->
<body >
<table width="735" height="315" border="0" align="center"
cellpadding="0" cellspacing="0">
<tr>
<td height="215">
</td>
</tr>
<tr>
<td height="245" align="right" valign="top"
background="<c:url value="/resource/themes/custom/login-bg.jpg" />">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="55%">
</td>
<td width="45%" height="215" align="left" valign="bottom">
<br />
<br />
<!-- Form表单 -->
<form id="loginForm" method="post">
<table width="300" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="77" height="38" align="right">
</td>
<td width="223">
</td>
</tr>
<tr>
<td width="77" height="30" align="right">
账 号:
</td>
<td width="223">
<input name="acc" type="text" class="easyui-validatebox input" size="25" required="true"/>
</td>
</tr>
<tr>
<td height="30" align="right">
密 码:
</td>
<td>
<input name="pwd" type="password" class="easyui-validatebox input" size="26" required="true"/>
</td>
</tr>
<tr>
<td>
</td>
<td align="left">
<label>
<input type="checkbox" name="savePwd" />
保存密码
</label>
</td>
</tr>
<tr>
<td height="38">
</td>
<td>
<a href="#" class="easyui-linkbutton" id="loginBtn" form="loginForm">登录</a>
<a href="#" class="easyui-linkbutton" id="resetBtn" >重置</a>
</td>
</tr>
<tr>
<td colspan=2 style="text-align:right;">
<div id="checkLoadingDiv" class="icon-loading30" style="display:none;height:18px;width:130px;">
正在校验登录信息...
</div>
</td>
</tr>
</table>
</form>
<!-- Form表单 -->
</td>
</tr>
</table>
<br />
</td>
</tr>
</table>
<table width="680" border="0" align="center" cellpadding="0"
cellspacing="0">
<tr>
<td class="fonts1">
Copyright © 2010 北京万维美思科技. All rights reserved
</td>
</tr>
</table>
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/WEB-INF/view/login.jsp | Java Server Pages | asf20 | 4,328 |
/**
* 主界面内容显示区操作
*/
Wide['Main'] = function(){
var mainTabsEl;
return {
/**
* 初始化界面
*/
init: function(){
mainTabsEl = $('#mainTabs');
Wide.Main.initEvent();
},
/**
* 初始化事件
*/
initEvent: function(){
},
/**
* 添加tab
*/
addTab: function(fun){
var tab = mainTabsEl.tabs('getSelected');
var idx = 0;
$.timer(function(){ // 当主界面渲染后,或者2秒之后,执行更新主界面的操作
return !Wide.mainPageIsLoading || idx++>20;
}, function(){
Wide.mainPageIsLoading = true;
mainTabsEl.tabs('update', {
tab: tab,
options:{
title: fun['name'],
iconCls:'icon-save',
content: Wide.iframe(fun['uiPath'])
}
});
}, 100);
}
};
}(); | zzyapps | trunk/JqFw/WebRoot/WEB-INF/view/home/main.js | JavaScript | asf20 | 844 |
//$.extend(Wide,{
// USER_FUN_LIST: USER_FUN_LIST, // 用户所有菜单
// USER_INFO: USER_INFO// 用户相关信息
//}); | zzyapps | trunk/JqFw/WebRoot/WEB-INF/view/home/user.js | JavaScript | asf20 | 126 |
/**
* 首界面
*/
Home = function(){
return{
/**
* 初始化界面
*/
init: function(){
using(['msg', 'form'], Home.initCom);
},
/**
* 初始化组件
*/
initCom: function(){
Wide['Left'].init();
Wide['Top'].init();
Wide['Main'].init();
},
/**
* 初始化事件
*/
initEvent: function(){
}
};
}();
$(Home.init);
| zzyapps | trunk/JqFw/WebRoot/WEB-INF/view/home/home.js | JavaScript | asf20 | 412 |
/**
* 左边功能菜单
*/
Wide['Left']=function(){
var funList;
var cookieMenuTitle,cookieMenuTreeId, cookieMenuTreeItemId;
return{
/**
* 初始化界面
*/
init: function(){
funList = USER_FUN_LIST;
// 初始化菜单状态
cookieMenuTitle = $.cookie("menuTitle");
cookieMenuTreeId = $.cookie("menuTreeId");
cookieMenuTreeItemId = $.cookie("menuTreeItemId");
using(["tree", "accordion"], Wide.Left.initCom);
},
/**
* 初始化组件
*/
initCom: function(){
$('#menu').accordion({
/**
*选中事件
*/
onSelect: function(title){
$.cookie("menuTitle", title);
}
});
$.util.Fun.defer(Wide['Left'].initEvent, 500)
},
/**
* 初始化事件
*/
initEvent: function(){
if(funList && funList.length > 0){
// var fun = funList[0];
for (var index = 0; index < funList.length; index++) {
var fun = funList[index];
$('#FunTree-'+fun['id']).tree('loadData', fun['children']);
}
}
$('#menu').accordion('select', cookieMenuTitle);
$.timer(function(){
return $('#' + cookieMenuTreeId).find('*[node-id]').length > 1;
}, function(){
$('#' + cookieMenuTreeId).tree('select', cookieMenuTreeItemId);
}, 500);
},
/**
* 菜单事件配置
*/
funEvent: {
/**
* 选中事件处理
*/
onSelect: function(row){
$.cookie("menuTreeId", this.id)
$.cookie("menuTreeItemId", row['id']);
if(row['type'] == 'BASE'){
Wide['Main'].addTab(row);
}else{
// $(this).tree('expand', row['target']);
$(this).tree('toggle', row['target']);
}
},
/**
* 遍历加载数据事件
*/
eachLoadData: function(row, idx){
if(row['type'] != 'SUBSYS'){
if(!row['iconCls']){
row['iconCls'] = 'icon-tree-action';
}
row['state'] = 'open';
}else{
row['iconCls'] = 'icon-fun-subsys';
}
}
}
}
}(); | zzyapps | trunk/JqFw/WebRoot/WEB-INF/view/home/left.js | JavaScript | asf20 | 2,019 |
/**
* 主界面Top操作
*/
Wide['Top'] = function(){
var quitSysBtnEl, deskBtnEl, skinBtnEl,
userFormWinEl, userFormEl, modiPwdEl,
userSaveBtnEl;
return {
/**
* 初始化界面
*/
init: function(){
deskBtnEl = $('#deskBtn');
skinBtnEl = $('#skinBtn');
quitSysBtnEl = $('#quitSysBtn');
userFormWinEl = $('#userFormWin');
userFormEl = $('#userForm');
modiPwdEl = $('#modiPwd');
userSaveBtnEl = $('#userSaveBtn');
Wide['Top'].initCom();
Wide['Top'].initEvent();
},
/**
* 初始化组件
*/
initCom: function(){
userFormWinEl.window({
onClose: function(){
// userFormEl.form('clear');
},
onOpen: function(){
userFormEl.form('clear');
userFormEl.form('load', USER_INFO);
userFormEl.find('input[name=smOrgText]').val(USER_INFO['smOrg']['name']);
}
});
},
/**
* 初始化事件
*/
initEvent: function(){
// 监听换肤事件
$('div[id*=skin-]').click(function(){
var skinName = this.id.replace('skin-', '');
Wide.changeSkin(skinName);
});
quitSysBtnEl.click(function(){
$.msg.cfm("是否退出本系统?", function(a){
if(a){
// 注销session
$.crud('sys/logout',null, function(){
window.location.reload();
});
}
});
});
modiPwdEl.click(function(){
userFormWinEl.window('open');
});
userSaveBtnEl.click(function(){
// 验证是否正常
if(userFormEl.form('validate')){
$.msg.cfm('是否保存您个人信息?', function(a){
if(a){
var user = $.extend(USER_INFO, {
name: userFormEl.form('findField', 'name').val(),
pwd: userFormEl.form('findField', 'pwd').val(),
phone: userFormEl.form('findField', 'phone').val(),
email: userFormEl.form('findField', 'email').val(),
remark: userFormEl.form('findField', 'remark').val()
});
user['smOrg'] = {id: user['smOrg']['id']};
user['smRoles'] = $.fetchListProp(user['smRoles'], 'id');
$.crud('sys/user/save', user, function(a){
userFormWinEl.window('close');
$.msg.say('恭喜<span class=red>'+ a['name'] +'</span>,您的个人信息修改成功!')
$.msg.cfm('系统需要重新登录,才可以刷新个人信息?', function(a){
if(a){
// 注销session
$.crud('sys/logout',null, function(){
window.location.reload();
});
}
});
})
}
});
}
});
deskBtnEl.click(function(){
$.msg.say($.blue('暂不支持该功能'))
});
skinBtnEl.click(function(){
$.msg.say($.blue('暂不支持该功能'));
});
}
};
}(); | zzyapps | trunk/JqFw/WebRoot/WEB-INF/view/home/top.js | JavaScript | asf20 | 2,841 |
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page session="false" %>
<html>
<!-- 表头区 -->
<head>
<!-- jq框架 -->
${jqFW}
<!-- 自定义js -->
</head>
<!-- 内容区 -->
<body>
<table>
<tr>
<td>
<div class="easyui-panel" title = 'Tree、TreeGrid组件:' style="height:200px;width:400px;">
<br/>
<a href="/JqFw/demo/pojo/treegrid/initTree" class="easyui-linkbutton" iconCls="icon-add">树操作</a>
<br/>
<a href="/JqFw/demo/pojo/treegrid/init" class="easyui-linkbutton" iconCls="icon-add">基于hibernate的CRUD</a>
</div>
</td>
<td>
<div class="easyui-panel" title = 'DataGrid组件:' style="height:200px;width:400px;">
<br/>
<a href="/JqFw/demo/pojo/datagrid/init" class="easyui-linkbutton" iconCls="icon-add">基于hibernate的CRUD</a>
</div>
</td>
</tr>
<tr>
<td>
<div class="easyui-panel" title = 'FORM组件:' style="height:200px;width:400px;">
<br/>
<a href="/JqFw/demo/combo/init" class="easyui-linkbutton" iconCls="icon-add">下拉框信息</a>
</div>
</td>
</tr>
</table>
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/WEB-INF/view/demo/demo.jsp | Java Server Pages | asf20 | 1,305 |
// 定义对象
DataCombo = function(){
// ...定义变量
return{
/**
* 初始化组件
*/
init: function(){
// 加载要使用的组件
using(['msg', 'form', 'combogrid'], DataCombo.initCom);
//....
// 初始化事件
DataCombo.initEvent();
},
/**
* 初始化组件
*/
initCom: function(){
// 下拉列表
$('#datacombo').combobox({
url:'demo/combo',
valueField:'id',
textField:'typeName'
});
$('#datagrid').combogrid({
width: 200,
panelWidth:200,
value:'1',
idField:'id',
textField:'typeName',
url:'demo/combo',
columns:[[
{field:'code',title:'Code',width:60},
{field:'typeName',title:'Name',width:100}
]]
});
},
/**
* 初始化监听事件
*/
initEvent: function(){
// 监听事件
$('#datacobo_btn').click(function(){
$.msg.info(
"获取值:" + $('#datacombo').combobox('getValue') + '\n' +
"获取对象值:" + $.encode($('#datacombo').combobox('getValue', true))
);
});
$('#datacobo_btn_setVal').click(function(){
$('#datacombo').combobox('setValue', 2);
});
$('#datacobo_btn_setBeanVal').click(function(){
$('#datacombo').combobox('setValue', {id:3});
});
$('#datagrid_btn').click(function(){
$.msg.info("获取值:" + $('#datagrid').combogrid('getValue') + '\n' +
"获取对象值:" + $.encode($('#datagrid').combobox('getValue', true))
);
});
$('#combogrid_cfg_btn').click(function(){
$.msg.info("获取值:" + $('#combogrid_cfg').combogrid('getValue') + '\n' +
"获取对象值:" + $.encode($('#combogrid_cfg').combobox('getValue', true))
);
});
$('#combogrid_btn_setVal').click(function(){
$('#combogrid_cfg').combogrid('setValue', 2);
});
$('#combogrid_btn_setBeanVal').click(function(){
$('#combogrid_cfg').combogrid('setValue', {id:3});
});
$('#datatree_btn').click(function(){
$.msg.info("获取值:" + $('#datatree').combogrid('getValue') + '\n' +
"获取对象值:" + $.encode($('#datatree').combobox('getValue', true))
);
});
$('#datatree_cfg_btn').click(function(){
$.msg.info("获取值:" + $('#datatree_cfg').combogrid('getValues') + '\n' +
"获取对象值:" + $.encode($('#datatree_cfg').combobox('getValue', true))
);
});
$('#datatree1_btn_setVal').click(function(){
$('#datatree_cfg').combotree('setValue', 22);
});
$('#datatree1_btn_setBeanVal').click(function(){
$('#datatree_cfg').combotree('setValue', {id:'DYeH1j24Frern1LWrMKjWGr6ZuVKDGnT'});
});
}
//....其他方法
};
}();
/**初始化界面*/
$(DataCombo.init); | zzyapps | trunk/JqFw/WebRoot/WEB-INF/view/demo/form/combo.js | JavaScript | asf20 | 2,815 |
// 定义对象
Tmp = function(){
// ...定义变量
return{
/**
* 初始化组件
*/
init: function(){
// 加载要使用的组件
using(['msg', 'form', 'grid'], Tmp.initCom);
//....
// 初始化事件
Tmp.initEvent();
},
/**
* 初始化组件
*/
initCom: function(){
},
/**
* 初始化监听事件
*/
initEvent: function(){
// 监听事件
$('#xxx').click(function(){});
//...
}
//....其他方法
};
}();
/**初始化界面*/
$(Tmp.init); | zzyapps | trunk/JqFw/WebRoot/WEB-INF/view/demo/form/tmp.js | JavaScript | asf20 | 573 |
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<!-- 表头区 -->
<head>
<!-- jq框架 -->
${jqFW}
<!-- 自定义js -->
<script type="text/javascript" src="<c:url value="/view/example/tmp.js" />"></script>
</head>
<!-- 内容区 -->
<body>
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/WEB-INF/view/demo/form/tmp.jsp | Java Server Pages | asf20 | 386 |
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<!-- 表头区 -->
<head>
<!-- jq框架 -->
${jqFW}
<!-- 自定义js -->
<script type="text/javascript" src="<c:url value="/view/demo/form/combo.js" />"></script>
</head>
<!-- 内容区 -->
<body>
<table>
<tr>
<td>
<br/>
<br/>
简单下拉列表:
<select id="cc" class="easyui-combobox" name="state" style="width:200px;" required="true">
<option value="AL">Alabama</option>
<option value="AK">Alaska</option>
<option value="WY">Wyoming</option>
<option value="AK">Alaska</option>
<option value="AK">Alaska</option>
<option value="AK">Alaska</option>
</select>
</td>
<td>
<br/>
<br/>
后台下拉列表:
<select id="datacombo" name="state" style="width:200px;" required="true">
</select>
<a href="#" id="datacobo_btn" class="easyui-linkbutton" iconCls="icon-ok">获取值</a>
<a href="#" id="datacobo_btn_setVal" class="easyui-linkbutton" iconCls="icon-ok" >设置值</a>
<a href="#" id="datacobo_btn_setBeanVal" class="easyui-linkbutton" iconCls="icon-ok">设置对象值</a>
</td>
</tr>
<tr>
<td>
<br/>
<br/>
下拉表格:
<select id="datagrid"></select>
<a href="#" id="datagrid_btn" class="easyui-linkbutton" iconCls="icon-ok">获取值</a>
</td>
<td>
<br/>
<br/>
后台下拉列表:
<select class="easyui-combogrid"
id="combogrid_cfg"
url="demo/combo"
value='006'
idField='id'
textField='typeName'
columns="[[{field:'code',title:'编码',width:60},{field:'typeName',title:'名称',width:60}]]"
>
</select>
<a href="#" id="combogrid_cfg_btn" class="easyui-linkbutton" iconCls="icon-ok">获取值</a>
<a href="#" id="combogrid_btn_setVal" class="easyui-linkbutton" iconCls="icon-ok" >设置值</a>
<a href="#" id="combogrid_btn_setBeanVal" class="easyui-linkbutton" iconCls="icon-ok">设置对象值</a>
</td>
</tr>
<tr>
<td>
<br/>
<br/>
下拉单选树:
<select class="easyui-combotree"
id="datatree"
url="demo/pojo/treegrid"
textField="name"
idField="id"
style="width:200px;">
</select>
<a href="#" id="datatree_btn" class="easyui-linkbutton" iconCls="icon-ok">获取值</a>
</td>
<td>
<br/>
<br/>
后台下拉多选树:
<select class="easyui-combotree"
id="datatree_cfg"
list="demo/pojo/treegrid/list"
multiple="true"
cascadeCheck="true"
textField="name"
idField="id"
style="width:200px;"
queryParams="function(){return {aaa: 1111};}">
</select>
<a href="#" id="datatree_cfg_btn" class="easyui-linkbutton" iconCls="icon-ok">获取值</a>
<a href="#" id="datatree1_btn_setVal" class="easyui-linkbutton" iconCls="icon-ok" >设置值</a>
<a href="#" id="datatree1_btn_setBeanVal" class="easyui-linkbutton" iconCls="icon-ok">设置对象值</a>
</td>
</tr>
</table>
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/WEB-INF/view/demo/form/combo.jsp | Java Server Pages | asf20 | 3,325 |
// 定义对象
DataGridDemo = function(){
// ...定义变量
return{
/**
* 初始化组件
*/
init: function(){
// 加载要使用的组件
using(['msg', 'form', 'grid'], DataGridDemo.initCom);
//....
// 初始化事件
DataGridDemo.initEvent();
},
/**
* 初始化组件
*/
initCom: function(){
$('#datagridDIV').datagrid({
title:'My DataGrid',
iconCls:'icon-save',
width:700,
height:350,
nowrap: false,
striped: true,
collapsible:true,
url:'datagrid_data.json',
sortName: 'code',
sortOrder: 'desc',
remoteSort: false,
idField:'code',
frozenColumns:[[
{field:'ck',checkbox:true},
{title:'code',field:'code',width:80,sortable:true}
]],
columns:[[
{title:'Base Information',colspan:3},
{field:'opt',title:'Operation',width:100,align:'center', rowspan:2,
formatter:function(value,rec){
return '<span style="color:red">Edit Delete</span>';
}
}
],[
{field:'name',title:'Name',width:120},
{field:'addr',title:'Address',width:220,rowspan:2,sortable:true,
sorter:function(a,b){
return (a>b?1:-1);
}
},
{field:'col4',title:'Col41',width:150,rowspan:2}
]],
pagination:true,
rownumbers:true,
toolbar:[{
id:'btnadd',
text:'Add',
iconCls:'icon-add',
handler:function(){
$('#btnsave').linkbutton('enable');
alert('add')
}
},{
id:'btncut',
text:'Cut',
iconCls:'icon-cut',
handler:function(){
$('#btnsave').linkbutton('enable');
alert('cut')
}
},'-',{
id:'btnsave',
text:'Save',
disabled:true,
iconCls:'icon-save',
handler:function(){
$('#btnsave').linkbutton('disable');
alert('save')
}
}]
});
},
initEvent: function(){
// 监听事件
$('#xxx').click(function(){});
//...
}
//....其他方法
};
}();
/**初始化界面*/
$(DataGridDemo.init); | zzyapps | trunk/JqFw/WebRoot/WEB-INF/view/demo/datagrid/datagrid.js | JavaScript | asf20 | 2,135 |
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<!-- 表头区 -->
<head>
<!-- jq框架 -->
${jqFW}
<!-- 自定义js -->
<script type="text/javascript" src="<c:url value="/view/demo/datagrid/datagrid.js" />"></script>
</head>
<!-- 内容区 -->
<body>
<table id="datagridDIV"></table>
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/WEB-INF/view/demo/datagrid/datagrid.jsp | Java Server Pages | asf20 | 438 |
// 定义对象
DataGridDemo = function(){
// ...定义变量
return{
/**
* 初始化组件
*/
init: function(){
// 加载要使用的组件
using(['msg', 'form', 'grid', 'datetimebox'], DataGridDemo.initCom);
//....
// 初始化事件
DataGridDemo.initEvent();
},
/**
* 初始化组件
*/
initCom: function(){
$('#datagridDIV').datagrid({
striped: true,
url: 'demo/pojo/datagrid', //访问controller,会自动生成list,save,remove等方法
sortName: 'id', //排序字段
sortOrder: 'asc', // ASC,DESC
remoteSort: true, // 是否远程排序
idField:'id', // 组件字段
pagination:true, // 是否分页页
rownumbers:true, // 是否显示好好
frozenColumns:[[ //冻结列
{field:'ck',checkbox:true}, // checkbox列
{title:'账号',field:'acc',width:80,sortable:true,
editor: 'text'
}
]],
columns:[[
{
field:'pwd',title:'密码',width:100,align:'center', rowspan:2,
formatter:function(value,rec){
return '<span style="color:red">Edit Delete</span>';
},
editor: 'text'
},
{title:'综合信息',colspan:3}
],[
{field:'name',title:'姓名',width:120,
editor: 'text'
},
{field:'email',title:'E-mail',width:220,rowspan:2,sortable:true,
editor: 'text'
},
{field:'createTime',title:'创建时间',width:150,rowspan:2,
editor: 'datetimebox'
}
]]
});
},
/**
* 初始化监听事件
*/
initEvent: function(){
var idx = 1000;
// 监听事件
$('#add').click(function(){
idx++;
var vo = {
code: "code-"+idx,
name: "name-"+idx
};
$('#datagridDIV').datagrid('add', vo);
});
$('#eidt').click(function(){
$('#datagridDIV').datagrid('edit');
});
$('#save').click(function(){
$('#datagridDIV').datagrid('save');
});
$('#delete').click(function(){
$('#datagridDIV').datagrid('delete');
});
}
//....其他方法
};
}();
/**初始化界面*/
$(DataGridDemo.init); | zzyapps | trunk/JqFw/WebRoot/WEB-INF/view/demo/datagrid/pojoCRUD/datagrid.js | JavaScript | asf20 | 2,258 |
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<!-- 表头区 -->
<head>
<!-- jq框架 -->
${jqFW}
<!-- 自定义js -->
<script type="text/javascript" src="<c:url value="/view/demo/datagrid/pojoCRUD/datagrid.js" />"></script>
</head>
<!-- 内容区 -->
<body class="easyui-layout">
<!-- 工具栏区 -->
<div region="north" style="padding:5 10 5 10px;" border=false >
<table class="easyui-tbar">
<tr>
<td>
<a id="add" href="#" class="easyui-linkbutton" iconCls="icon-add">新增</a>
<a id="eidt" href="#" class="easyui-linkbutton" iconCls="icon-update">修改</a>
<a id="save" href="#" class="easyui-linkbutton" iconCls="icon-save">保存</a>
<a id="delete" href="#" class="easyui-linkbutton" iconCls="icon-delete">删除</a>
</td>
</tr>
</table>
</div>
<!-- 内容区 -->
<div region="center" style="padding:5 10 5 10px;" border=false>
<table id="datagridDIV" fit=true></table>
</div>
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/WEB-INF/view/demo/datagrid/pojoCRUD/datagrid.jsp | Java Server Pages | asf20 | 1,124 |
// 定义对象
MyTree = function(){
// ...定义变量
return{
/**
* 初始化组件
*/
init: function(){
// 加载要使用的组件
using(['msg', 'tree'], MyTree.initCom);
//....
// 初始化事件
MyTree.initEvent();
},
/**
* 初始化组件
*/
initCom: function(){
},
/**
* 初始化监听事件
*/
initEvent: function(){
// 监听事件
$('#xxx').click(function(){});
//...
}
//....其他方法
};
}();
/**初始化界面*/
$(MyTree.init); | zzyapps | trunk/JqFw/WebRoot/WEB-INF/view/demo/tree/tree.js | JavaScript | asf20 | 572 |
<%@ page language="java" import="java.lang.*,java.util.*,cn.com.widemex.domain.demo.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<!-- 表头区 -->
<head>
<!-- jq框架 -->
${jqFW}
<!-- 自定义js -->
<script type="text/javascript" src="<c:url value="/view/demo/tree/tree.js" />"></script>
</head>
<!-- 内容区 -->
<body>
<table>
<tr>
<td>
jsp渲染树:<br/>
<ul id="tt1" class="easyui-tree" animate="true" dnd="true">
<%!
public String toTree(Collection<DemoDept> deptList){
String str = "";
for(DemoDept dept : deptList){
if(dept.getDemoDepts()!=null && dept.getDemoDepts().size()>0){
str += "<li state='closed'> \n";
}else{
str += "<li> \n";
}
str += " <span>" + dept.getName() + "</span> \n";
if(dept.getDemoDepts()!=null && dept.getDemoDepts().size()>0){
str += " <ul state='closed'> \n";
str += toTree(dept.getDemoDepts());
str += " </ul> \n";
}
str += " </li> \n";
}
return str;
}
%>
<%= toTree((List<DemoDept>)request.getAttribute("deptList")) %>
</ul>
</td>
<td width=200>
</td>
<td>
ajax异步渲染树:<br/>
<ul id="ajaxTree" class="easyui-tree"
url="demo/pojo/treegrid"
idField = 'id'
textField='name'
animate="true"
url="xxx">
</ul>
</td>
</tr>
</table>
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/WEB-INF/view/demo/tree/tree.jsp | Java Server Pages | asf20 | 1,732 |
// 定义对象
Tmp = function(){
// ...定义变量
return{
/**
* 初始化组件
*/
init: function(){
// 加载要使用的组件
using(['msg', 'form', 'grid'], Tmp.initCom);
//....
// 初始化事件
Tmp.initEvent();
},
/**
* 初始化组件
*/
initCom: function(){
},
/**
* 初始化监听事件
*/
initEvent: function(){
// 监听事件
$('#xxx').click(function(){});
//...
}
//....其他方法
};
}();
/**初始化界面*/
$(Tmp.init); | zzyapps | trunk/JqFw/WebRoot/WEB-INF/view/demo/tmp.js | JavaScript | asf20 | 573 |
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<!-- 表头区 -->
<head>
<!-- jq框架 -->
${jqFW}
<!-- 自定义js -->
<script type="text/javascript" src="<c:url value="/view/example/tmp.js" />"></script>
</head>
<!-- 内容区 -->
<body>
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/WEB-INF/view/demo/tmp.jsp | Java Server Pages | asf20 | 386 |
// 定义对象
TreeGridDemo = function(){
// ...定义变量
return{
/**
* 初始化组件
*/
init: function(){
// 加载要使用的组件
using(['treegrid'], TreeGridDemo.initCom);
// 初始化事件
TreeGridDemo.initEvent();
},
/**
* 初始化组件
*/
initCom: function(){
/** 静态数据源treegrid **/
$('#test1').treegrid({
title:'前台加载',
iconCls:'icon-ok',
width:700,
height:250,
rownumbers: true,
animate:true,
collapsible:true,
fitColumns:true,
url:'listTreeGrid', // 绑定后台数据源
idField:'id',
treeField:'name',
showFooter:true,
rowStyler:function(row){
if (row.persons > 1){
return 'background:#AAD684;color:#fff';
}
},
columns:[[
{title:'Task Name',field:'name',width:180},
{field:'persons',title:'Persons',width:60,align:'right'},
{field:'begin',title:'Begin Date',width:80},
{field:'end',title:'End Date',width:80,rowspan:2},
{field:'progress',title:'Progress',width:120,rowspan:2,
formatter:function(value){
if (value){
var s = '<div style="width:100%;background:#fff;border:1px solid #ccc">' +
'<div style="width:' + value + '%;background:red">' + value + '%' + '</div>'
'</div>';
return s;
} else {
return '';
}
}
}
]]
});
$('#test1').treegrid('loadData', {"total":7,"rows":[
{"id":1,"name":"All Tasks","begin":"3/4/2010","end":"3/20/2010","progress":60,"iconCls":"icon-ok"},
{"id":2,"name":"Designing","begin":"3/4/2010","end":"3/10/2010","progress":100,"_parentId":1,"state":"closed"},
{"id":21,"name":"Database","persons":2,"begin":"3/4/2010","end":"3/6/2010","progress":100,"_parentId":2},
{"id":22,"name":"UML","persons":1,"begin":"3/7/2010","end":"3/8/2010","progress":100,"_parentId":2},
{"id":23,"name":"Export Document","persons":1,"begin":"3/9/2010","end":"3/10/2010","progress":100,"_parentId":2},
{"id":3,"name":"Coding","persons":2,"begin":"3/11/2010","end":"3/18/2010","progress":80},
{"id":4,"name":"Testing","persons":1,"begin":"3/19/2010","end":"3/20/2010","progress":20}
],"footer":[
{"name":"Total Persons:","persons":7,"iconCls":"icon-sum"}
]});
/** 一次性从后台加载整个数据treegrid **/
$('#test2').treegrid({
title:'整个加载',
iconCls:'icon-ok',
width:700,
height:250,
rownumbers: true,
animate:true,
collapsible:true,
fitColumns:true,
url:'listTreeGrid', // 绑定后台数据源
idField:'id',
treeField:'name',
showFooter:true,
rowStyler:function(row){
if (row.persons > 1){
return 'background:#AAD684;color:#fff';
}
},
columns:[[
{title:'Task Name',field:'name',width:180},
{field:'persons',title:'Persons',width:60,align:'right'},
{field:'begin',title:'Begin Date',width:80},
{field:'end',title:'End Date',width:80,rowspan:2},
{field:'progress',title:'Progress',width:120,rowspan:2,
formatter:function(value){
if (value){
var s = '<div style="width:100%;background:#fff;border:1px solid #ccc">' +
'<div style="width:' + value + '%;background:red">' + value + '%' + '</div>'
'</div>';
return s;
} else {
return '';
}
}
}
]]
});
/** 异步加载treegrid **/
$('#test3').treegrid({
title:'异步加载',
width:700,
height:250,
rownumbers: true,
animate:true,
collapsible:true,
fitColumns:true,
url:'listTreeGrid2', // 绑定后台数据源
idField:'id',
treeField:'name',
columns:[[
{title:'Task Name',field:'name',width:180},
{field:'persons',title:'Persons',width:60,align:'right'},
{field:'begin',title:'Begin Date',width:80},
{field:'end',title:'End Date',width:80,rowspan:2},
{field:'progress',title:'Progress',width:120,rowspan:2}
]],
// 加载前传参数
onBeforeLoad: function(row, param){
param['name'] = 'zzy';
}
});
},
initEvent: function(){
// 监听事件
// $('#xxx').click(function(){});
//...
}
//....其他方法
};
}();
/**初始化界面*/
$(TreeGridDemo.init);
| zzyapps | trunk/JqFw/WebRoot/WEB-INF/view/demo/treegrid/treegrid.js | JavaScript | asf20 | 4,547 |
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<!-- 表头区 -->
<head>
<!-- jq框架 -->
${jqFW}
<!-- 自定义js -->
<script type="text/javascript" src="<c:url value="/view/demo/treegrid/treegrid.js" />"></script>
</head>
<!-- 内容区 -->
<body>
<h2>TreeGrid</h2>
<div class="demo-info" style="margin-bottom:10px">
<div class="demo-tip icon-tip"></div>
<div>Show summary information on treegrid footer.</div>
</div>
<table id="test1"></table>
<table id="test2"></table>
<table id="test3"></table>
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/WEB-INF/view/demo/treegrid/treegrid.jsp | Java Server Pages | asf20 | 687 |
// 定义对象
Tmp = function(){
// ...定义变量
return{
/**
* 初始化组件
*/
init: function(){
// 加载要使用的组件
using(['msg', 'form', 'grid'], Tmp.initCom);
//....
// 初始化事件
Tmp.initEvent();
},
/**
* 初始化组件
*/
initCom: function(){
},
/**
* 初始化监听事件
*/
initEvent: function(){
// 监听事件
$('#xxx').click(function(){});
//...
}
//....其他方法
};
}();
/**初始化界面*/
$(Tmp.init); | zzyapps | trunk/JqFw/WebRoot/WEB-INF/view/demo/treegrid/jdbcCRUD/curd.js | JavaScript | asf20 | 573 |
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<!-- 表头区 -->
<head>
<!-- jq框架 -->
${jqFW}
<!-- 自定义js -->
<script type="text/javascript" src="<c:url value="/view/example/tmp.js" />"></script>
</head>
<!-- 内容区 -->
<body>
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/WEB-INF/view/demo/treegrid/jdbcCRUD/curd.jsp | Java Server Pages | asf20 | 386 |
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<!-- 表头区 -->
<head>
<!-- jq框架 -->
${jqFW}
<!-- 自定义js -->
<script type="text/javascript" src="<c:url value="/view/demo/treegrid/pojoCRUD/crud.js" />"></script>
</head>
<!-- 内容区 -->
<body class="easyui-layout">
<!-- 菜单区 -->
<div region="north" style="padding:5 10 5 10px;" border=false >
<table class="easyui-tbar">
<tr>
<td>
<a id="add" href="#" class="easyui-linkbutton" iconCls="icon-add">新增</a>
<a id="eidt" href="#" class="easyui-linkbutton" iconCls="icon-update">修改</a>
<a id="save" href="#" class="easyui-linkbutton" iconCls="icon-save">保存</a>
<a id="delete" href="#" class="easyui-linkbutton" iconCls="icon-delete">删除</a>
</td>
</tr>
</table>
</div>
<!-- 内容区 -->
<div region="center" style="padding:5 10 5 10px;" border=false>
<table id="test"></table>
</div>
</body>
</html> | zzyapps | trunk/JqFw/WebRoot/WEB-INF/view/demo/treegrid/pojoCRUD/crud.jsp | Java Server Pages | asf20 | 1,101 |
// 定义对象
PojoTreeGrid = function(){
// ...定义变量
var treeGrid = null;
return{
/**
* 初始化组件
*/
init: function(){
// 加载要使用的组件
using(['msg', 'numberbox', 'datetimebox', 'form', 'treegrid'], PojoTreeGrid.initCom);
//....
// 初始化事件
PojoTreeGrid.initEvent();
},
/**
* 初始化组件
*/
initCom: function(){
treeGrid = $('#test');
treeGrid.treegrid({
// url: Wide['path'] + 'demo/pojo/treegrid/list',
url: 'demo/pojo/treegrid/', // 对应的controller类的path,如果配置了本属性,则会自动生成list/save/remove,等方法
// list: 'demo/pojo/treegrid/list',
// save: 'demo/pojo/treegrid/save',
// remove: 'demo/pojo/treegrid/remove',
// 查询参数
queryParams: function(){
return {
mm: 1111,
yy: 2222
};
},
parentField: 'pDept',
idField:'id', // 主键字段映射
treeField:'code', // 树列的字段映射
fit: true,
// rownumbers: true,
frozenColumns:[[
{title:'编码',field:'code',width:200, editor:{type:'numberbox',options:{precision:1}}}
]],
columns:[[
{
field:'name',
title:'部门名称',
width:150,
editor:'text'
},
{
field:'status',
title:'status',
width:150,
editor:{
type:'checkbox',
options:{
on: '1',
off: '0'
}
}
},
{
field:'createTime',
title:'createTime',
width:150,
editor:'datetimebox'
}
]]
});
},
/**
* 初始化监听事件
*/
initEvent: function(){
var idx = 1000;
// 监听事件
$('#add').click(function(){
idx++;
var vo = {
code: "code-"+idx,
name: "name-"+idx
};
$('#test').treegrid('add', vo);
});
$('#eidt').click(function(){
$('#test').treegrid('edit');
});
$('#save').click(function(){
$('#test').treegrid('save');
});
$('#delete').click(function(){
$('#test').treegrid('delete');
});
}
//....其他方法
};
}();
/**初始化界面*/
$(PojoTreeGrid.init); | zzyapps | trunk/JqFw/WebRoot/WEB-INF/view/demo/treegrid/pojoCRUD/crud.js | JavaScript | asf20 | 2,373 |
Login = function(){
// var accField, pwdField;
var accEl, pwdEl, savePwdEl, loginFormEl;
return{
/**
* 初始化信息
*/
init: function(){
// 初始化,要引用的组件
using(['form', 'msg'], Login.initCom);
loginFormEl = $('#loginForm');
accEl = loginFormEl.find('input[name=acc]');
pwdEl = loginFormEl.find('input[name=pwd]');
savePwdEl = loginFormEl.find('input[name=savePwd]');
Login.initEvent();
},
/**
* 初始化组件
*/
initCom: function(){
//cookie用户信息
var user = $.cookie('user');
loginFormEl.form('load', $.decode(user));
},
/**
* 初始化事件
*/
initEvent: function(){
$('input[name=acc]').focus();
$('#loginBtn').click(Login.loginCheck);
$('#resetBtn').click(Login.reset);
},
/**
* 重置登录信息
*/
reset: function(){
loginFormEl.form('clear');
},
/**
* 登录校验
*/
loginCheck: function(){
loginFormEl.form('ajax', {
url: 'sys/checkLogin',
onSubmit: function(){
var isValid = $(this).form('validate');
if(isValid){
// 加载信息
$('#checkLoadingDiv').show();
// 表单不可用
$(this).disable();
}
return isValid;
},
success: function(data) {
loginFormEl.enable();
$('#checkLoadingDiv').hide();
if(data == true){
$.msg.say("登录成功!");
if(savePwdEl.attr('checked')){
$.cookie('user', $.encode({
acc: accEl.val(),
pwd: pwdEl.val(),
savePwd: savePwdEl.val()
}));
}else{
$.removeCookie('user');
}
// 刷新界面
location.reload();
// window.location = window.location;//easyloader.base.replace('resource/easyui/','');
}else{
$.msg.say("登录失败,请确认你的账号密码是否正确!");
Login.reset();
}
}
});
}
};
}();
/**
* 初始化组件
*/
$(Login.init);
| zzyapps | trunk/JqFw/WebRoot/WEB-INF/view/login/login.js | JavaScript | asf20 | 2,050 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>张志工作室 - DanceZZ's Studio</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="/css/style.css" rel="stylesheet" type="text/css" media="screen" />
<link href="/css/galleria.css" rel="stylesheet" type="text/css" media="screen" />
<script type="text/javascript" src="/js/jquery.js"></script>
<!-- Include Lightbox (Production) -->
<script type="text/javascript" src="jquery_lightbox/js/jquery.lightbox.packed.js"></script>
<!-- Include Lightbox (Development) -->
<!--<script type="text/javascript" src="jquery_lightbox/js/jquery.lightbox.js"></script>-->
<style media="screen,projection" type="text/css">
#page h2 { margin-left:5%; font-weight:bold; font-size:16px; clear: both;}
.section {
margin-top:15px;
margin-left:5%; margin-right:5%;
padding: 5px;
padding-bottom:0px;
background-color:white;
}
.section ul {
list-style: none; margin-top:5px;
}
.section ul li {
display: inline;
}
.section ul a {
background-color:#ECECEC;
border:1px solid #999999;
padding: 5px 5px 10px;
display:block;
float:left;
margin:5px;
}
.section ul a:hover {
background-color:#FFFFFF;
border:1px solid #333333;
}
.section ul a img {
border:1px solid #999999;
}
.section ul a.lightbox-enabled img {
border:1px dotted #999999;
}
.section span.code {
font-family:"Courier New", Courier, monospace;
margin-left:10px; padding-left:10px;
font-size:11px;
border-left:1px solid #000;
}
.section .link { font-size:12px; font-style:italic; padding-left:10px; margin-left:10px; }
.section .important { text-decoration:underline; }
.clear { clear:left; }
.section.header { text-align:center; font-size:12px; padding-top:10px; border-top:none; }
.section.footer { text-align:center; font-size:12px; padding-top:10px; }
</style>
</head>
<body>
<!-- start header -->
<div id="header">
<div id="menu">
<ul>
<li><a href="/default.aspx">首页</a></li>
<li><a href="/newslist.aspx">最新资讯</a></li>
<li><a href="#_">放映厅</a></li>
<li><a href="#_">演出信息</a></li>
<li class="current_page_item"><a href="/bar.html">张廊吧</a></li>
<li><a href="/messages.aspx">我有话说</a></li>
</ul>
</div>
<div id="search">
<!--<form id="searchform" method="get" action="#">
<fieldset>
<input id="s" type="text" name="s" value="" class="text" />
<input id="x" type="submit" value="Search" class="button" />
</fieldset>
</form>-->
</div>
</div>
<div id="logo">
<h1><a href="/default.aspx">张志工作室</a></h1>
<h2>Waiting for you</h2>
</div>
<!-- end header -->
<!-- start page -->
<div id="page">
<h2>参观张廊吧</h2>
<div class="section">
<ul>
<li>
<a rel="lightbox-tour" href="/bar/bar1.jpg" title="这是张廊吧的吧台。">
<img src="/bar/bar1_small.jpg" alt="" />
</a>
</li>
<li>
<a rel="lightbox-tour" href="/bar/bar2.jpg" title="张廊吧">
<img src="/bar/bar2_small.jpg" alt="" />
</a>
</li>
<li>
<a rel="lightbox-tour" href="/bar/bar3.jpg" title="张廊吧">
<img src="/bar/bar3_small.jpg" alt="" />
</a>
</li>
<li>
<a rel="lightbox-tour" href="/bar/bar4.jpg" title="张廊吧。">
<img src="/bar/bar4_small.jpg" alt="" />
</a>
</li>
<li>
<a rel="lightbox-tour" href="/bar/bar5.jpg" title="张廊吧">
<img src="/bar/bar5_small.jpg" alt="" />
</a>
</li>
<li>
<a rel="lightbox-tour" href="/bar/bar6.jpg" title="张廊吧">
<img src="/bar/bar6_small.jpg" alt="" />
</a>
</li>
<li>
<a rel="lightbox-tour" href="/bar/bar7.jpg" title="张廊吧">
<img src="/bar/bar7_small.jpg" alt="" />
</a>
</li>
<li>
<a rel="lightbox-tour" href="/bar/bar8.jpg" title="张廊吧">
<img src="/bar/bar8_small.jpg" alt="" />
</a>
</li>
<li>
<a rel="lightbox-tour" href="/bar/bar9.jpg" title="张廊吧">
<img src="/bar/bar9_small.jpg" alt="" />
</a>
</li>
<li>
<a rel="lightbox-tour" href="/bar/bar10.jpg" title="张廊吧">
<img src="/bar/bar10_small.jpg" alt="" />
</a>
</li>
<li>
<a rel="lightbox-tour" href="/bar/bar11.jpg" title="张廊吧">
<img src="/bar/bar11_small.jpg" alt="" />
</a>
</li>
<li>
<a rel="lightbox-tour" href="/bar/bar12.jpg" title="张廊吧">
<img src="/bar/bar12_small.jpg" alt="" />
</a>
</li>
<li>
<a rel="lightbox-tour" href="/bar/bar13.jpg" title="张廊吧">
<img src="/bar/bar13_small.jpg" alt="" />
</a>
</li>
<li>
<a rel="lightbox-tour" href="/bar/bar14.jpg" title="张廊吧">
<img src="/bar/bar14_small.jpg" alt="" />
</a>
</li>
<li>
<a rel="lightbox-tour" href="/bar/bar15.jpg" title="张廊吧">
<img src="/bar/bar15_small.jpg" alt="" />
</a>
</li>
<li>
<a rel="lightbox-tour" href="/bar/bar16.jpg" title="张廊吧">
<img src="/bar/bar16_small.jpg" alt="" />
</a>
</li>
<li>
<a rel="lightbox-tour" href="/bar/bar17.jpg" title="张廊吧">
<img src="/bar/bar17_small.jpg" alt="" />
</a>
</li>
<li>
<a rel="lightbox-tour" href="/bar/bar18.jpg" title="张廊吧">
<img src="/bar/bar18_small.jpg" alt="" />
</a>
</li>
<li>
<a rel="lightbox-tour" href="/bar/bar19.jpg" title="张廊吧">
<img src="/bar/bar19_small.jpg" alt="" />
</a>
</li>
<li>
<a rel="lightbox-tour" href="/bar/bar20.jpg" title="张廊吧">
<img src="/bar/bar20_small.jpg" alt="" />
</a>
</li>
<li>
<a rel="lightbox-tour" href="/bar/bar21.jpg" title="张廊吧">
<img src="/bar/bar21_small.jpg" alt="" />
</a>
</li>
<li>
<a rel="lightbox-tour" href="/bar/bar22.jpg" title="张廊吧">
<img src="/bar/bar22_small.jpg" alt="" />
</a>
</li>
<li>
<a rel="lightbox-tour" href="/bar/bar23.jpg" title="张廊吧">
<img src="/bar/bar23_small.jpg" alt="" />
</a>
</li>
<li>
<a rel="lightbox-tour" href="/bar/bar24.jpg" title="张廊吧">
<img src="/bar/bar24_small.jpg" alt="" />
</a>
</li>
<li>
<a rel="lightbox-tour" href="/bar/bar25.jpg" title="张廊吧">
<img src="/bar/bar25_small.jpg" alt="" />
</a>
</li>
<li>
<a rel="lightbox-tour" href="/bar/bar26.jpg" title="张廊吧">
<img src="/bar/bar26_small.jpg" alt="" />
</a>
</li>
<li>
<a rel="lightbox-tour" href="/bar/bar27.jpg" title="张廊吧">
<img src="/bar/bar27_small.jpg" alt="" />
</a>
</li>
<li>
<a rel="lightbox-tour" href="/bar/bar28.jpg" title="张廊吧">
<img src="/bar/bar28_small.jpg" alt="" />
</a>
</li>
<li>
<a rel="lightbox-tour" href="/bar/bar29.jpg" title="张廊吧">
<img src="/bar/bar29_small.jpg" alt="" />
</a>
</li>
<li>
<a rel="lightbox-tour" href="/bar/bar30.jpg" title="张廊吧">
<img src="/bar/bar30_small.jpg" alt="" />
</a>
</li>
<li>
<a rel="lightbox-tour" href="/bar/bar31.jpg" title="张廊吧">
<img src="/bar/bar31_small.jpg" alt="" />
</a>
</li>
<li>
<a rel="lightbox-tour" href="/bar/bar32.jpg" title="张廊吧">
<img src="/bar/bar32_small.jpg" alt="" />
</a>
</li>
<li>
<a rel="lightbox-tour" href="/bar/bar33.jpg" title="张廊吧">
<img src="/bar/bar33_small.jpg" alt="" />
</a>
</li>
<li>
<a rel="lightbox-tour" href="/bar/bar34.jpg" title="张廊吧">
<img src="/bar/bar34_small.jpg" alt="" />
</a>
</li>
<li>
<a rel="lightbox-tour" href="/bar/bar35.jpg" title="张廊吧">
<img src="/bar/bar35_small.jpg" alt="" />
</a>
</li>
<li>
<a rel="lightbox-tour" href="/bar/bar36.jpg" title="张廊吧">
<img src="/bar/bar36_small.jpg" alt="" />
</a>
</li>
<li>
<a rel="lightbox-tour" href="/bar/bar37.jpg" title="张廊吧">
<img src="/bar/bar37_small.jpg" alt="" />
</a>
</li>
<li>
<a rel="lightbox-tour" href="/bar/bar38.jpg" title="张廊吧">
<img src="/bar/bar38_small.jpg" alt="" />
</a>
</li>
<li>
<a rel="lightbox-tour" href="/bar/bar39.jpg" title="张廊吧">
<img src="/bar/bar39_small.jpg" alt="" />
</a>
</li>
</ul>
<div class="clear"></div>
<div class="info">
<h2>关于张廊吧</h2>
<p class="footer">马上就来...</p>
</div>
</div>
</div>
<!-- end page -->
<!-- start footer -->
<div id="footer">
<p>联系张志:020-84319909,Email:<a href="mailto:azhi121@sina.com">azhi121@sina.com</a>,QQ:31819135,您还可以查看<a href="http://blog.sina.com.cn/danceZz">张志's Blog</a></p>
<p><a href="/">张志工作室</a>©2008 All Rights Reserved. •
<a href="http://www.miibeian.gov.cn" target="_blank">粤ICP备08009253号</a> • Designed by <a href="http://www.net4.com.cn/">Net4 Studio</a>.
</p>
</div>
<!-- end footer -->
</body>
</html>
| zzstudiowebsite | trunk/bar.html | HTML | lgpl | 9,368 |
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using Net4.Services.Access;
using Net4.Common.Entities;
public partial class NewsList : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
this.rptNews.DataSource = AccessArticleService.Instance.SelectArticles(Category.News, 1, 15);
this.rptNews.DataBind();
}
}
}
| zzstudiowebsite | trunk/NewsList.aspx.cs | C# | lgpl | 658 |
<%@ Page Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Movie.aspx.cs" Inherits="Movie" Title="Untitled Page" ValidateRequest="false" %>
<%@ Register src="Controls/SidebarRight.ascx" tagname="SidebarRight" tagprefix="uc1" %>
<%@ Register src="Controls/FilesView.ascx" tagname="FilesView" tagprefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<!-- TinyMCE -->
<script type="text/javascript" src="/js/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
// O2k7 skin (silver)
tinyMCE.init({
// General options
mode : "exact",
elements : '<%= articleContent.ClientID %>, <%= articleDescription.ClientID %>',
theme : "advanced",
skin : "o2k7",
skin_variant : "silver",
plugins : "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",
// Theme options
theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect",
theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl",
theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_resizing : true,
// Example content CSS (should be your site CSS)
content_css : "css/tinyMCE.css"
});
$(document).ready(function($) {
$.formValidator.initConfig({alertMessage: false});
$("#<%=articleTitle.ClientID %>").formValidator({empty:false, onshow:"请输入标题", onfocus:"姓名至少1个字符,最多50个字符", oncorrect:"输入正确"}).InputValidator({min:1, max:50, onerror:"请输入正确的标题"});
$("#<%=fuAttachment.ClientID %>").formValidator({empty:false, onshow:"请选择文件", onfocus:"请选择文件", oncorrect:"已选择"}).InputValidator({min:3, onerror:"请选择文件"});
});
</script>
<!-- /TinyMCE -->
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<!-- start page -->
<div id="page">
<!-- start contentTwo -->
<div id="contentTwo">
<div id="articleForm" class="form" runat="server" visible="false">
<label>电影名</label>
<input class="text" type="text" size="100" id="articleTitle" value="" runat="server" />
<label id='<%= articleTitle.ClientID %>Tip'></label>
<label>摘要介绍</label>
<textarea id="articleDescription" rows="3" cols="5" runat="server"></textarea>
<%-- <label id="emailTip"></label>--%>
<label>图片或附件</label>
<uc2:FilesView ID="FilesView1" ShowSnapShot="true" Editable="true" runat="server" />
<asp:FileUpload ContentEditable="false" ID="fuAttachment" CssClass="file" runat="server" />
<asp:Button ID="btnUploadAttachment" OnClientClick="return $.formValidator.PageIsValid();" CssClass="button" runat="server" Text="上传"
onclick="btnUploadAttachment_Click" />
<label id='<%= fuAttachment.ClientID %>Tip'></label>
<label>详细介绍</label>
<textarea id="articleContent" rows="5" cols="5" style="height: 500px" runat="server"></textarea>
<br />
<asp:Button ID="btnSaveArticle" CssClass="button" runat="server" Text="发布"
onclick="btnSaveArticle_Click" />
</div>
<div id="articleContainer" class="post" runat="server">
<h1 class="title">
<a title='<%= CurrentArticle.Title %>' href='<%= Page.ResolveUrl(string.Format("~/News.aspx?id={0}", CurrentArticle.Id)) %>'><%= CurrentArticle.Title %></a></h1>
<p class="meta"><a href="#" class="author"><%= CurrentArticle.Author %></a> 发布于 <%= CurrentArticle.CreateDate.ToString() %></p>
<div class="entry">
<%= CurrentArticle.Content %>
</div>
<p class="links"><a href='<%= Page.ResolveUrl(string.Format("~/News.aspx?id={0}", CurrentArticle.Id)) %>' class="permalink">永久链接</a>
<% if (User.Identity.IsAuthenticated) { %>
| <a href='<%= Page.ResolveUrl(string.Format("~/News.aspx?id={0}&action=edit", CurrentArticle.Id)) %>'>编辑</a>
| <a href='<%= Page.ResolveUrl(string.Format("~/News.aspx?id={0}&action=delete", CurrentArticle.Id)) %>' onclick="return window.confirm('确定要删除吗?');">删除</a>
<%} %>
</p>
<p class="tags"><strong>Tags:</strong></p>
</div>
</div>
<!-- end contentTwo -->
<uc1:SidebarRight ID="SidebarRight2" runat="server" />
<div style="clear: both;"> </div>
</div>
<!-- end page -->
</asp:Content>
| zzstudiowebsite | trunk/Movie.aspx | ASP.NET | lgpl | 5,338 |
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.Services;
using Net4.Services.Access;
using Net4.Common.Entities;
public partial class Comment : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
BindDatas();
}
}
private int PageIndex
{
get
{
int page = 1;
if (!string.IsNullOrEmpty(Request.QueryString["page"]))
{
page = int.Parse(Request.QueryString["page"]);
if (page < 1) page = 1;
}
return page;
}
}
private void BindDatas()
{
this.rptMessageList.DataSource =
AccessMessageService.Instance.SelectMessages(PageIndex, anpMessagesList.PageSize);
this.rptMessageList.DataBind();
anpMessagesList.RecordCount = AccessMessageService.Instance.GetMessagesTotalCount();
}
[WebMethod]
public static Message AddMessage(string userName, string email, string subject, string message)
{
AccessMessageService service = AccessMessageService.Instance;
Message msg = new Message(userName, email, subject,
message, HttpContext.Current.Request.UserHostAddress);
service.Insert(msg);
return msg;
}
[WebMethod]
public static Message ReplyMessage(int id, string replyBody)
{
if (!HttpContext.Current.User.Identity.IsAuthenticated)
{
throw new System.Security.SecurityException("没有权限.");
}
AccessMessageService service = AccessMessageService.Instance;
Message msg = service.Select(id);
msg.Reply = replyBody;
msg.ReplyDate = DateTime.Now;
service.Update(msg);
return msg;
}
[WebMethod]
public static bool DeleteMessage(int id)
{
if (!HttpContext.Current.User.Identity.IsAuthenticated)
{
throw new System.Security.SecurityException("没有权限.");
}
AccessMessageService service = AccessMessageService.Instance;
service.Delete(id);
return true;
}
protected void lbtnRefreshMessages_Click(object sender, EventArgs e)
{
BindDatas();
}
}
| zzstudiowebsite | trunk/Messages.aspx.cs | C# | lgpl | 2,580 |
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
public partial class Index : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Page.Response.Expires = -1; //设置马上过期,因为浏览器会缓存上次的内容
Random rand = new Random(DateTime.Now.Millisecond);
indexLogo.Src = string.Format("~/images/index_logo{0}.jpg", rand.Next(1, 12));
}
}
| zzstudiowebsite | trunk/Index.aspx.cs | C# | lgpl | 653 |
<%@ Page Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Login" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div id="page">
<asp:LoginView ID="LoginView1" runat="server">
<AnonymousTemplate>
<asp:Login ID="Login1" runat="server">
</asp:Login>
</AnonymousTemplate>
<LoggedInTemplate>
<asp:LoginStatus ID="LoginStatus1" runat="server" />
</LoggedInTemplate>
</asp:LoginView>
</div>
</asp:Content>
| zzstudiowebsite | trunk/Login.aspx | ASP.NET | lgpl | 652 |
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class Site : System.Web.UI.MasterPage
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
| zzstudiowebsite | trunk/Site.master.cs | C# | lgpl | 411 |
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.Services;
using Net4.Common.Entities;
using Net4.Services.Access;
using Net4.Common;
using System.IO;
public partial class News : System.Web.UI.Page
{
private Article _CurrentArticle;
protected Article CurrentArticle
{
get
{
if (_CurrentArticle == null && !string.IsNullOrEmpty(Request.QueryString["id"]))
{
int id = int.Parse(Request.QueryString["id"]);
_CurrentArticle = AccessArticleService.Instance.Select(id);
}
return _CurrentArticle;
}
set
{
_CurrentArticle = value;
}
}
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
if (CurrentArticle == null) //new
{
if (User.Identity.IsAuthenticated)
{
this.articleContainer.Visible = false;
this.articleForm.Visible = true;
}
else
{
Response.Redirect("~/NewsList.aspx", true);
}
}
else if (User.Identity.IsAuthenticated && Request.QueryString["action"] == "edit") //edit
{
this.articleContainer.Visible = false;
this.articleForm.Visible = true;
this.articleTitle.Value = CurrentArticle.Title;
this.articleDescription.Value = CurrentArticle.Description;
this.articleContent.Value = CurrentArticle.Content;
}
else if (User.Identity.IsAuthenticated && Request.QueryString["action"] == "delete") //delete
{
AccessArticleService.Instance.Delete(CurrentArticle.Id);
Response.Redirect("~/NewsList.aspx", true);
}
//others, view
BindFilesView();
}
}
protected void btnSaveArticle_Click(object sender, EventArgs e)
{
if (CurrentArticle == null)
{
AddArticle();
}
else
{
UpdateArticle();
}
Response.Redirect(string.Format("~/News.aspx?id={0}", CurrentArticle.Id), true);
}
private void BindFilesView()
{
if (CurrentArticle != null)
{
this.FilesView1.DataSource = CurrentArticle.Attachments;
}
}
private void AddArticle()
{
string title = HttpUtility.HtmlEncode(articleTitle.Value);
string description = articleDescription.Value;
string content = articleContent.Value;
AccessArticleService service = AccessArticleService.Instance;
if (CurrentArticle == null)
{
Article art = new Article(title, HttpContext.Current.User.Identity.Name,
string.Empty, content, description, string.Empty, Category.News);
service.Insert(art);
CurrentArticle = art;
}
}
private void UpdateArticle()
{
string title = HttpUtility.HtmlEncode(articleTitle.Value);
string description = articleDescription.Value;
string content = articleContent.Value;
AccessArticleService service = AccessArticleService.Instance;
CurrentArticle.Title = title;
CurrentArticle.Description = description;
CurrentArticle.Content = content;
service.Update(CurrentArticle);
}
private void SaveFile()
{
string filepath = AttachmentManager.Instance.SaveAttachment(fuAttachment.PostedFile, fuAttachment.FileName);
Attachment attach;
if (AttachmentManager.Instance.IsImage(fuAttachment.FileName)) // is image
{
attach = new ImageInfo(fuAttachment.FileName, CurrentArticle.Id);
articleContent.Value += string.Format("<img src='{0}' alt='{1}' />", attach.VirtualPath, attach.FileName);
}
else //file
{
attach = new Attachment(fuAttachment.FileName, CurrentArticle.Id);
articleContent.Value += string.Format("<a href='{0}' title='{1}' alt='{1}'>{1}</a> ({2})",
attach.VirtualPath, attach.FileName, attach.DisplaySize);
}
AccessFileService.Instance.Insert(attach);
CurrentArticle.Attachments.Add(attach);
UpdateArticle();
}
protected void btnUploadAttachment_Click(object sender, EventArgs e)
{
//1.如果是新添加文章,先添加文章
if (CurrentArticle == null)
{
AddArticle();
Response.Redirect(string.Format("~/News.aspx?id={0}&action=edit", CurrentArticle.Id), false);
}
//2.保存文件
SaveFile();
BindFilesView();
}
}
| zzstudiowebsite | trunk/News.aspx.cs | C# | lgpl | 5,182 |
/**
* Galleria (http://monc.se/kitchen)
*
* Galleria is a javascript image gallery written in jQuery.
* It loads the images one by one from an unordered list and displays thumbnails when each image is loaded.
* It will create thumbnails for you if you choose so, scaled or unscaled,
* centered and cropped inside a fixed thumbnail box defined by CSS.
*
* The core of Galleria lies in it's smart preloading behaviour, snappiness and the fresh absence
* of obtrusive design elements. Use it as a foundation for your custom styled image gallery.
*
* MAJOR CHANGES v.FROM 0.9
* Galleria now features a useful history extension, enabling back button and bookmarking for each image.
* The main image is no longer stored inside each list item, instead it is placed inside a container
* onImage and onThumb functions lets you customize the behaviours of the images on the site
*
* Tested in Safari 3, Firefox 2, MSIE 6, MSIE 7, Opera 9
*
* Version 1.0
* Februari 21, 2008
*
* Copyright (c) 2008 David Hellsing (http://monc.se)
* Licensed under the GPL licenses.
* http://www.gnu.org/licenses/gpl.txt
**/
;(function($){
var $$;
/**
*
* @desc Convert images from a simple html <ul> into a thumbnail gallery
* @author David Hellsing
* @version 1.0
*
* @name Galleria
* @type jQuery
*
* @cat plugins/Media
*
* @example $('ul.gallery').galleria({options});
* @desc Create a a gallery from an unordered list of images with thumbnails
* @options
* insert: (selector string) by default, Galleria will create a container div before your ul that holds the image.
* You can, however, specify a selector where the image will be placed instead (f.ex '#main_img')
* history: Boolean for setting the history object in action with enabled back button, bookmarking etc.
* onImage: (function) a function that gets fired when the image is displayed and brings the jQuery image object.
* You can use it to add click functionality and effects.
* f.ex onImage(image) { image.css('display','none').fadeIn(); } will fadeIn each image that is displayed
* onThumb: (function) a function that gets fired when the thumbnail is displayed and brings the jQuery thumb object.
* Works the same as onImage except it targets the thumbnail after it's loaded.
*
**/
$$ = $.fn.galleria = function($options) {
// check for basic CSS support
if (!$$.hasCSS()) { return false; }
// init the modified history object
$.historyInit($$.onPageLoad);
// set default options
var $defaults = {
insert : '.galleria_container',
history : true,
clickNext : true,
onImage : function(image,caption,thumb) {},
onThumb : function(thumb) {}
};
// extend the options
var $opts = $.extend($defaults, $options);
// bring the options to the galleria object
for (var i in $opts) {
$.galleria[i] = $opts[i];
}
// if no insert selector, create a new division and insert it before the ul
var _insert = ( $($opts.insert).is($opts.insert) ) ?
$($opts.insert) :
jQuery(document.createElement('div')).insertBefore(this);
// create a wrapping div for the image
var _div = $(document.createElement('div')).addClass('galleria_wrapper');
// create a caption span
var _span = $(document.createElement('span')).addClass('caption');
// inject the wrapper in in the insert selector
_insert.addClass('galleria_container').append(_div).append(_span);
//-------------
return this.each(function(){
// add the Galleria class
$(this).addClass('galleria');
// loop through list
$(this).children('li').each(function(i) {
// bring the scope
var _container = $(this);
// build element specific options
var _o = $.meta ? $.extend({}, $opts, _container.data()) : $opts;
// remove the clickNext if image is only child
_o.clickNext = $(this).is(':only-child') ? false : _o.clickNext;
// try to fetch an anchor
var _a = $(this).find('a').is('a') ? $(this).find('a') : false;
// reference the original image as a variable and hide it
var _img = $(this).children('img').css('display','none');
// extract the original source
var _src = _a ? _a.attr('href') : _img.attr('src');
// find a title
var _title = _a ? _a.attr('title') : _img.attr('title');
// create loader image
var _loader = new Image();
// check url and activate container if match
if (_o.history && (window.location.hash && window.location.hash.replace(/\#/,'') == _src)) {
_container.siblings('.active').removeClass('active');
_container.addClass('active');
}
// begin loader
$(_loader).load(function () {
// try to bring the alt
$(this).attr('alt',_img.attr('alt'));
//-----------------------------------------------------------------
// the image is loaded, let's create the thumbnail
var _thumb = _a ?
_a.find('img').addClass('thumb noscale').css('display','none') :
_img.clone(true).addClass('thumb').css('display','none');
if (_a) { _a.replaceWith(_thumb); }
if (!_thumb.hasClass('noscale')) { // scaled tumbnails!
var w = Math.ceil( _img.width() / _img.height() * _container.height() );
var h = Math.ceil( _img.height() / _img.width() * _container.width() );
if (w < h) {
_thumb.css({ height: 'auto', width: _container.width(), marginTop: -(h-_container.height())/2 });
} else {
_thumb.css({ width: 'auto', height: _container.height(), marginLeft: -(w-_container.width())/2 });
}
} else { // Center thumbnails.
// a tiny timer fixed the width/height
window.setTimeout(function() {
_thumb.css({
marginLeft: -( _thumb.width() - _container.width() )/2,
marginTop: -( _thumb.height() - _container.height() )/2
});
}, 1);
}
// add the rel attribute
_thumb.attr('rel',_src);
// add the title attribute
_thumb.attr('title',_title);
// add the click functionality to the _thumb
_thumb.click(function() {
$.galleria.activate(_src);
});
// hover classes for IE6
_thumb.hover(
function() { $(this).addClass('hover'); },
function() { $(this).removeClass('hover'); }
);
_container.hover(
function() { _container.addClass('hover'); },
function() { _container.removeClass('hover'); }
);
// prepend the thumbnail in the container
_container.prepend(_thumb);
// show the thumbnail
_thumb.css('display','block');
// call the onThumb function
_o.onThumb(jQuery(_thumb));
// check active class and activate image if match
if (_container.hasClass('active')) {
$.galleria.activate(_src);
//_span.text(_title);
}
//-----------------------------------------------------------------
// finally delete the original image
_img.remove();
}).error(function () {
// Error handling
_container.html('<span class="error" style="color:red">Error loading image: '+_src+'</span>');
}).attr('src', _src);
});
});
};
/**
*
* @name NextSelector
*
* @desc Returns the sibling sibling, or the first one
*
**/
$$.nextSelector = function(selector) {
return $(selector).is(':last-child') ?
$(selector).siblings(':first-child') :
$(selector).next();
};
/**
*
* @name previousSelector
*
* @desc Returns the previous sibling, or the last one
*
**/
$$.previousSelector = function(selector) {
return $(selector).is(':first-child') ?
$(selector).siblings(':last-child') :
$(selector).prev();
};
/**
*
* @name hasCSS
*
* @desc Checks for CSS support and returns a boolean value
*
**/
$$.hasCSS = function() {
$('body').append(
$(document.createElement('div')).attr('id','css_test')
.css({ width:'1px', height:'1px', display:'none' })
);
var _v = ($('#css_test').width() != 1) ? false : true;
$('#css_test').remove();
return _v;
};
/**
*
* @name onPageLoad
*
* @desc The function that displays the image and alters the active classes
*
* Note: This function gets called when:
* 1. after calling $.historyInit();
* 2. after calling $.historyLoad();
* 3. after pushing "Go Back" button of a browser
*
**/
$$.onPageLoad = function(_src) {
// get the wrapper
var _wrapper = $('.galleria_wrapper');
// get the thumb
var _thumb = $('.galleria img[@rel="'+_src+'"]');
if (_src) {
// new hash location
if ($.galleria.history) {
window.location = window.location.href.replace(/\#.*/,'') + '#' + _src;
}
// alter the active classes
_thumb.parents('li').siblings('.active').removeClass('active');
_thumb.parents('li').addClass('active');
// define a new image
var _img = $(new Image()).attr('src',_src).addClass('replaced');
// empty the wrapper and insert the new image
_wrapper.empty().append(_img);
// insert the caption
_wrapper.siblings('.caption').text(_thumb.attr('title'));
// fire the onImage function to customize the loaded image's features
$.galleria.onImage(_img,_wrapper.siblings('.caption'),_thumb);
// add clickable image helper
if($.galleria.clickNext) {
_img.css('cursor','pointer').click(function() { $.galleria.next(); })
}
} else {
// clean up the container if none are active
_wrapper.siblings().andSelf().empty();
// remove active classes
$('.galleria li.active').removeClass('active');
}
// place the source in the galleria.current variable
$.galleria.current = _src;
}
/**
*
* @name jQuery.galleria
*
* @desc The global galleria object holds four constant variables and four public methods:
* $.galleria.history = a boolean for setting the history object in action with named URLs
* $.galleria.current = is the current source that's being viewed.
* $.galleria.clickNext = boolean helper for adding a clickable image that leads to the next one in line
* $.galleria.next() = displays the next image in line, returns to first image after the last.
* $.galleria.prev() = displays the previous image in line, returns to last image after the first.
* $.galleria.activate(_src) = displays an image from _src in the galleria container.
* $.galleria.onImage(image,caption) = gets fired when the image is displayed.
*
**/
$.extend({galleria : {
current : '',
onImage : function(){},
activate : function(_src) {
if ($.galleria.history) {
$.historyLoad(_src);
} else {
$$.onPageLoad(_src);
}
},
next : function() {
var _next = $($$.nextSelector($('.galleria img[@rel="'+$.galleria.current+'"]').parents('li'))).find('img').attr('rel');
$.galleria.activate(_next);
},
prev : function() {
var _prev = $($$.previousSelector($('.galleria img[@rel="'+$.galleria.current+'"]').parents('li'))).find('img').attr('rel');
$.galleria.activate(_prev);
}
}
});
})(jQuery);
/**
*
* Packed history extension for jQuery
* Credits to http://www.mikage.to/
*
**/
jQuery.extend({historyCurrentHash:undefined,historyCallback:undefined,historyInit:function(callback){jQuery.historyCallback=callback;var current_hash=location.hash;jQuery.historyCurrentHash=current_hash;if(jQuery.browser.msie){if(jQuery.historyCurrentHash==''){jQuery.historyCurrentHash='#'}$("body").prepend('<iframe id="jQuery_history" style="display: none;"></iframe>');var ihistory=$("#jQuery_history")[0];var iframe=ihistory.contentWindow.document;iframe.open();iframe.close();iframe.location.hash=current_hash}else if($.browser.safari){jQuery.historyBackStack=[];jQuery.historyBackStack.length=history.length;jQuery.historyForwardStack=[];jQuery.isFirst=true}jQuery.historyCallback(current_hash.replace(/^#/,''));setInterval(jQuery.historyCheck,100)},historyAddHistory:function(hash){jQuery.historyBackStack.push(hash);jQuery.historyForwardStack.length=0;this.isFirst=true},historyCheck:function(){if(jQuery.browser.msie){var ihistory=$("#jQuery_history")[0];var iframe=ihistory.contentDocument||ihistory.contentWindow.document;var current_hash=iframe.location.hash;if(current_hash!=jQuery.historyCurrentHash){location.hash=current_hash;jQuery.historyCurrentHash=current_hash;jQuery.historyCallback(current_hash.replace(/^#/,''))}}else if($.browser.safari){if(!jQuery.dontCheck){var historyDelta=history.length-jQuery.historyBackStack.length;if(historyDelta){jQuery.isFirst=false;if(historyDelta<0){for(var i=0;i<Math.abs(historyDelta);i++)jQuery.historyForwardStack.unshift(jQuery.historyBackStack.pop())}else{for(var i=0;i<historyDelta;i++)jQuery.historyBackStack.push(jQuery.historyForwardStack.shift())}var cachedHash=jQuery.historyBackStack[jQuery.historyBackStack.length-1];if(cachedHash!=undefined){jQuery.historyCurrentHash=location.hash;jQuery.historyCallback(cachedHash)}}else if(jQuery.historyBackStack[jQuery.historyBackStack.length-1]==undefined&&!jQuery.isFirst){if(document.URL.indexOf('#')>=0){jQuery.historyCallback(document.URL.split('#')[1])}else{var current_hash=location.hash;jQuery.historyCallback('')}jQuery.isFirst=true}}}else{var current_hash=location.hash;if(current_hash!=jQuery.historyCurrentHash){jQuery.historyCurrentHash=current_hash;jQuery.historyCallback(current_hash.replace(/^#/,''))}}},historyLoad:function(hash){var newhash;if(jQuery.browser.safari){newhash=hash}else{newhash='#'+hash;location.hash=newhash}jQuery.historyCurrentHash=newhash;if(jQuery.browser.msie){var ihistory=$("#jQuery_history")[0];var iframe=ihistory.contentWindow.document;iframe.open();iframe.close();iframe.location.hash=newhash;jQuery.historyCallback(hash)}else if(jQuery.browser.safari){jQuery.dontCheck=true;this.historyAddHistory(hash);var fn=function(){jQuery.dontCheck=false};window.setTimeout(fn,200);jQuery.historyCallback(hash);location.hash=newhash}else{jQuery.historyCallback(hash)}}});
| zzstudiowebsite | trunk/js/jquery.galleria.js | JavaScript | lgpl | 13,875 |
/*
HTMLEncode - Encode HTML special characters.
Copyright (c) 2006 Thomas Peri, http://www.tumuski.com/
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The Software shall be used for Good, not Evil.
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
/**
* HTML-Encode the supplied input
*
* Parameters:
*
* (String) source The text to be encoded.
*
* (boolean) display The output is intended for display.
*
* If true:
* * Tabs will be expanded to the number of spaces
* indicated by the 'tabs' argument.
* * Line breaks will be converted to <br />.
*
* If false:
* * Tabs and linebreaks get turned into &#____;
* entities just like all other control characters.
*
* (integer) tabs The number of spaces to expand tabs to. (Ignored
* when the 'display' parameter evaluates to false.)
*
* v 0.3 - January 4, 2006
*/
function htmlEncode(source, display, tabs)
{
function special(source)
{
var result = '';
for (var i = 0; i < source.length; i++)
{
var c = source.charAt(i);
if (c < ' ' || c > '~')
{
c = '&#' + c.charCodeAt() + ';';
}
result += c;
}
return result;
}
function format(source)
{
// Use only integer part of tabs, and default to 4
tabs = (tabs >= 0) ? Math.floor(tabs) : 4;
// split along line breaks
var lines = source.split(/\r\n|\r|\n/);
// expand tabs
for (var i = 0; i < lines.length; i++)
{
var line = lines[i];
var newLine = '';
for (var p = 0; p < line.length; p++)
{
var c = line.charAt(p);
if (c === '\t')
{
var spaces = tabs - (newLine.length % tabs);
for (var s = 0; s < spaces; s++)
{
newLine += ' ';
}
}
else
{
newLine += c;
}
}
// If a line starts or ends with a space, it evaporates in html
// unless it's an nbsp.
newLine = newLine.replace(/(^ )|( $)/g, ' ');
lines[i] = newLine;
}
// re-join lines
var result = lines.join('<br />');
// break up contiguous blocks of spaces with non-breaking spaces
result = result.replace(/ /g, ' ');
// tada!
return result;
}
var result = source;
// ampersands (&)
result = result.replace(/\&/g,'&');
// less-thans (<)
result = result.replace(/\</g,'<');
// greater-thans (>)
result = result.replace(/\>/g,'>');
if (display)
{
// format for display
result = format(result);
}
else
{
// Replace quotes if it isn't for display,
// since it's probably going in an html attribute.
result = result.replace(new RegExp('"','g'), '"');
}
// special characters
result = special(result);
// tada!
return result;
}
| zzstudiowebsite | trunk/js/inputHelper.js | JavaScript | lgpl | 3,872 |
// change by mk2.
//
(function($) {
$.formValidator = {
_sustainType : function(elem, setting) {
setting = setting || elem.settings[0];
switch(setting.validateType) {
case "InitValidator":
return true;
case "InputValidator":
return (elem.tagName == "INPUT" || elem.tagName == "TEXTAREA");
case "SelectValidator":
return elem.tagName == "SELECT";
case "CompareValidator":
if (elem.tagName == "INPUT" || elem.tagName == "TEXTAREA") {
if (elem.type == "checkbox" || elem.type == "radio") return false;
return true;
}
return false;
case "AjaxValidator":
return false;
case "RegexValidator":
if (elem.tagName == "INPUT" || elem.tagName == "TEXTAREA") {
if (elem.type == "checkbox" || elem.type == "radio") return false;
return true;
}
return false;
}
},
initConfig : function(options) {
var setting = $.extend({
validatorGroup : "1",
alertMessage: false, //是否弹出窗口
onSuccess: null, //mk2: null
onError: null, //mk2: null
submitOnce:false //校验通过后,是否灰掉所有的提交按钮
}, options);
$.formValidator._configs = $.formValidator._configs || []; //若使用dictionary或hash方式比较简单
var config = $.formValidator._getInitConfig(setting.validatorGroup);
if(config) $.extend(config, setting);
else $.formValidator._configs.push(setting);
},
//如果validator对象对应的element对象的validator属性追加要进行的校验。
_appendValid : function(elem, setting) {
//如果是各种校验不支持的类型,就不追加到。返回-1表示没有追加成功
if(!$.formValidator._sustainType(elem, setting)) return -1;
if(setting.validateType == "InitValidator" || !elem.settings) elem.settings = [];
elem.settings.push(setting);
return elem.settings.length - 1;
},
//如果validator对象对应的element对象的validator属性追加要进行的校验。
_getInitConfig : function(validatorGroup)
{
var configs = $.map($.formValidator._configs, function(i) {
return i.validatorGroup == validatorGroup ? i : null;
});
return configs[0];
},
//触发每个控件上的各种校验
_triggerValidate : function(elem, setting)
{
setting = setting || elem.settings[0];
switch(setting.validateType)
{
case "InputValidator":
$.formValidator.InputValid(elem, setting);
break;
case "SelectValidator":
$.formValidator.SelectValid(elem, setting);
break;
case "CompareValidator":
$.formValidator.CompareValid(elem, setting);
break;
case "AjaxValidator":
$.formValidator.InputValid(elem, setting);
break;
case "RegexValidator":
$.formValidator.RegexValid(elem, setting);
break;
}
},
//根据单个对象,正确:正确提示,错误:错误提示
_showMessage : function(returnObj) {
var id = returnObj.id
var isValid = returnObj.isValid;
var setting = returnObj.setting;//正确:setting[0],错误:对应的setting[i]
var tip = $("#"+returnObj.id+"Tip");
var elem = $("#"+id).get(0);
var jo = $(elem);
var setting0 = elem.settings[0];
var config = $.formValidator._getInitConfig(setting0.validatorGroup);
if (!isValid) { //验证失败,给出提示,并重新设置样式 //获取是否自动修正
var auto = setting0.automodify && (jo.attr("type") == "text" || jo.attr("type") == "textarea" || jo.attr("type") == "file")
if(config.alertMessage) {
alert(setting.onerror);
}
else {
tip.removeClass();
if(auto) {
tip.html(setting.onshow);
tip.addClass("onShow");
alert(setting.onerror);
}
else {
tip.html(setting.onerror);
tip.addClass("onError");
}
}
if(auto) jo.val(elem.validoldvalue);
}
else { //验证成功
//验证成功后,如果没有设置成功提示信息,则给出默认提示,否则给出自定义提示;允许为空,值为空的提示
if(!config.alertMessage) {
tip.removeClass();
tip.addClass("onSuccess");
if (setting.empty && jo.val().length == 0)
tip.html(setting.onempty);
else
tip.html(setting.oncorrect);
}
}
},
//验证单个是否验证通过,正确返回settings[0],错误返回对应的settings[i]
OneIsValid : function (elem, index) {
var returnObj = {id: elem.id, isValid: true, index: 0};
var settings = elem.settings;
//一个控件理捆绑了多种校验方式,要逐一校验
for(var i = index ; i < settings.length ; i ++){
returnObj.index = i;
returnObj.setting = settings[i];
$.formValidator._triggerValidate(elem, settings[i]);
if(!settings[i].isValid) {
returnObj.isValid = false;
return returnObj;
}
}
if(settings[0].onvalid) settings[0].onvalid(elem, $(elem).val());
returnObj.setting = settings[0];
return returnObj;
},
//验证所有需要验证的对象,并返回是否验证成功。这里只对标志进行判断。
PageIsValid : function (validatorGroup) {
validatorGroup = validatorGroup || "1";
var isValid = true;
var returnObj = null;
var thefirstid = null;
var config = $.formValidator._getInitConfig(validatorGroup);
$("input, textarea, select").each(function() {
if(this.settings) {
if(this.settings[0].validatorGroup == validatorGroup) {
if(config.alertMessage) {
if(isValid) { //如果是弹出窗口的,发现一个错误就马上停止,并提示
returnObj = $.formValidator.OneIsValid(this, 1);
if (!returnObj.isValid) {
$.formValidator._showMessage(returnObj);
isValid = false;
thefirstid = thefirstid || returnObj.id;
}
}
}
else {
returnObj = $.formValidator.OneIsValid(this, 1);
if (!returnObj.isValid) {
isValid = false;
thefirstid = thefirstid || returnObj.id;
}
$.formValidator._showMessage(returnObj);
}
}
}
});
//成功或失败后,进行回调函数的处理,以及成功后的灰掉提交按钮的功能
if(isValid) {
isValid = config.onSuccess ? config.onSuccess() : true;
if(config.submitOnce) {
$("input[@type='submit']").attr("disabled", true);
}
}
else {
if(config.onError) config.onError();
if(thefirstid) $("#"+thefirstid).focus();
}
return isValid;
},
//ajax校验
AjaxValid : function(elem, setting) {
setting = setting || elem.settings[0];
$.ajax({
type: setting.type,
url: setting.url,
data: setting.data,
async:setting.async,
dataType:setting.datatype,
success: setting.success,
complete: setting.complete,
beforeSend:setting.beforesend,
error:setting.error,
processData : setting.processdata
});
},
//对正则表达式进行校验(目前只针对input和textarea)
RegexValid : function(elem, setting) {
setting = setting || elem.settings[0];
var srcTag = elem.tagName;
//如果有输入正则表达式,就进行表达式校验
if(elem.settings[0].empty && $(elem).val() == "") {
setting.isValid = true;
}
else if (setting.regexp && typeof setting.regexp == "string" && $.trim(setting.regexp) != "") {
var exp = new RegExp(setting.regexp, setting.param);
setting.isValid = exp.test($(elem).val());
}
},
//对input类型控件进行校验
InputValid : function(elem, setting) {
setting = setting || elem.settings[0];
var jElem = $(elem);
var val = jElem.val();
var type = elem.type;
var len = 0 ;
switch(type)
{
case "text":
case "hidden":
case "password":
case "textarea":
case "file":
if (val.length == 0 && elem.settings[0].empty) {
setting.isValid = true;
return;
}
if (setting.type == "size") { //获得输入的字符长度,并进行校验
for (var i = 0; i < val.length; i++) {
if (val.charCodeAt(i) >= 0x4e00 && val.charCodeAt(i) <= 0x9fa5) //两字节编码
len += 2;
else
len++;
}
setting.isValid = len >= setting.min && len <= setting.max;
}
else{
var checkType = (typeof setting.min);
if(checkType == "number") {
if(!isNaN(val)) {
var nval = parseFloat(val);
setting.isValid = nval >= setting.min && nval <= setting.max;
if(setting.isValid && setting.valueType == "int") { //如果验证值是整型数, 会自动去掉小数部分
jElem.val(parseInt(nval));
}
}
else
setting.isValid = false;
}
else if(checkType == "string") {
setting.isValid = val >= setting.min && val <= setting.max;
}
}
break;
case "checkbox":
case "radio":
var sValue = "";
var objs = $("input[@type='" + type + "'][@name='" + jElem.attr("name") + "'][@checked]");
len = objs.length;
if (len == 0 && elem.settings[0].empty) {
setting.isValid = true;
}
else if(len < setting.min || len > setting.max)
setting.isValid =false;
else
setting.isValid = true;
break;
}
},
SelectValid : function(elem, setting) {
setting = setting || elem.settings[0];
var isValid = true;
var jo;
var groupname = $(elem).attr("groupname");
if (groupname)
jo = $("select[@groupname='" + groupname + "']");
else
jo = $(elem);
//如果存在有关联的一组下拉框,即我选了,其他的也得选
jo.each(function() {
if(this.options.length > 0 ) {
if ($(this).val() == "" || $(this).val() == "-1")
isValid = false;
else {
isValid = isValid && true;
}
}
else {
isValid = isValid && true;
}
});
//都没有选中,并且可以为空
if (elem.settings[0].empty && !isValid) isValid = true;
setting.isValid = isValid;
},
CompareValid : function(elem, setting) {
setting = setting || elem.settings[0];
var srcjo = $(elem);
var desjo = $("#" + setting.desID);
setting.isValid = false;
curvalue = srcjo.val();
ls_data = desjo.val();
//对数值型的,进行转换
if(setting.datatype == "number") {
if(!isNaN(curvalue) && !isNaN(ls_data)) {
curvalue = parseFloat(curvalue);
ls_data = parseFloat(ls_data);
}
else
return;
}
switch($.trim(setting.operateor)) {
case "==":
case "=":
setting.isValid = curvalue == ls_data;
break;
case "!=":
setting.isValid = curvalue != ls_data;
break;
case ">":
setting.isValid = curvalue > ls_data;
break;
case ">=":
setting.isValid = curvalue >= ls_data;
break;
case "<":
setting.isValid = curvalue < ls_data;
break;
case "<=":
setting.isValid = curvalue <= ls_data;
break;
}
}
}
//每个校验控件必须初始化的
$.fn.formValidator = function(options)
{
var jo = this;
var setting = $.extend({
validatorGroup : "1",
empty :false,
submitonce : false,
automodify : false,
onshow :"请输入内容",
onfocus: "请输入内容",
oncorrect: "输入正确",
onempty: "输入内容为空",
onvalid : null,
onfocusevent : null,
onblurevent : null,
validateType : "InitValidator"
}, options);
return jo.each(function() {
var trigger = this;
$.formValidator._appendValid(this, setting);
var config = $.formValidator._getInitConfig(setting.validatorGroup);
if(!config.alertMessage)
{
//初始化提示对象的样式和文字
var tip = $( "#"+ trigger.id +"Tip" );
tip.html(setting.onshow);
tip.removeClass();
tip.addClass( "onShow" );
}
//获得element对象
var srcTag = trigger.tagName;
if (srcTag == "INPUT" || srcTag=="TEXTAREA")
{
var joeach = $(trigger);
var stype = joeach.attr("type");
var defaultVal = joeach.val();
//只要有值,就默认算合法
if (!defaultVal && defaultVal != '') setting.isValid = true;
//设置默认选中的值
if (stype == "checkbox" || stype == "radio") {
joeach = $("input[@name=" + joeach.attr("name") + "]");
//设置默认选中的值
var checkedValue = joeach.attr("checkedValue");
if (checkedValue) {
joeach.each(function() {
if (this.value == checkedValue) {
this.checked = "checked";
}
});
}
}
//注册获得焦点的事件。改变提示对象的文字和样式,保存原值
joeach.focus(function() {
if(!config.alertMessage) {
var tip = $("#" + trigger.id + "Tip");
tip.html(setting.onfocus);
tip.removeClass();
tip.addClass("onFocus");
}
if (stype == "text" || stype == "textarea" || stype == "file") {
this.validoldvalue = $(this).val();
}
if(setting.onfocusevent) setting.onfocusevent(trigger);
});
//注册失去焦点的事件。进行校验,改变提示对象的文字和样式;出错就提示处理
joeach.blur(function() {
var thefirstsettings = trigger.settings;
var settingslen = thefirstsettings.length;
var returnObj = $.formValidator.OneIsValid(trigger, 1);
//出错或成功的setting如果是ajax校验,就等待异步返回结果再_showMessage
if (thefirstsettings[returnObj.index].validateType != "AjaxValidator") {
$.formValidator._showMessage(returnObj);
}
if(setting.onblurevent) setting.onblurevent(trigger);
});
}
else if (srcTag == "SELECT") { //如果存在一组的select,则只需注册改组的第一个;
//设置默认选中的值,存在就算默认校验通过
var groupname = $(trigger).attr("groupname");
var joeach = groupname ? $("select[@groupname='" + groupname + "']") : $(trigger);
joeach.each(function() {
var selectedValue = $(this).attr('selectedValue');
if (selectedValue) {
$.each(this.options, function() {
if ($.trim(this.value) == $.trim(selectedValue) || this.text == selectedValue) {
this.selected = true;
setting.isValid = true;
}
});
}
});
//注册获得焦点的事件。改变提示对象的文字和样式
joeach.focus(function() {
if(!config.alertMessage) {
var tip = $( "#" + trigger.id + "Tip" );
tip.html(setting.onfocus);
tip.removeClass();
tip.addClass("onFocus");
}
});
//只有进行初始化的select对象触发change事件后才进行ajax校验
joeach.bind("change", function() {
var settings = trigger.settings; //只取第一个select
var returnObj = $.formValidator.OneIsValid(trigger, 1);
if (settings[returnObj.index].validateType != "AjaxValidator") {
$.formValidator._showMessage(returnObj);
}
});
}
});
};
$.fn.InputValidator = function(options) {
var jo = this; //the jquery object contains the validator elements
var setting = $.extend({
isValid : false,
min : 0,
max : 99999999999999,
forceValid : false, //出错时,是否一定要输入正确为止
type : "size",
valueType: "int",
defaultValue: null,
onerror: "输入错误",
validateType: "InputValidator"
}, options);
return jo.each(function() {
$.formValidator._appendValid(this, setting);
});
}
//注意一点:对下拉框进行验证,不选中的时候,你设置的值必须为""或者"-1"
//如果有依赖的下拉框组的话,必须设置groupname为一样
$.fn.SelectValidator = function(options) {
var jo = this;
var setting = $.extend({
isValid : false,
onerror:"必须选择",
defaultValue:null,
validateType:"SelectValidator"
}, options);
return jo.each(function() {
$.formValidator._appendValid(this, setting);
});
}
//提供比较。扩展(比较大小)
$.fn.CompareValidator = function(options) {
var jo = this;
var setting = $.extend({
isValid : false,
desID : "",
operateor :"=",
onerror:"输入错误",
validateType:"CompareValidator"
}, options);
return jo.each(function(){
var li_index = $.formValidator._appendValid(this, setting);
if(li_index == -1) return;
var elem = this;
//当要比较的对象失去焦点的时候,要改变Tip现实的内容
$("#"+setting.desID).blur(function() {
var returnObj = $.formValidator.OneIsValid(elem, 1);
if(!returnObj.isValid && returnObj.index == li_index) { //如果是比较这里出错,就从比较这里依次触发校验
var returnObj = $.formValidator.OneIsValid(elem, li_index);
}
if(elem.settings[returnObj.index].validateType != "AjaxValidator") {
$.formValidator._showMessage(returnObj);
}
});
});
}
$.fn.RegexValidator = function(options) {
var jo = this;
var setting = $.extend({
isValid : false,
regexp : "",
param : "i",
onerror:"输入的格式不正确",
validateType:"RegexValidator"
}, options);
return jo.each(function() {
$.formValidator._appendValid(this, setting);
});
}
$.fn.AjaxValidator = function(options) {
var jo = this;
var setting = $.extend({
isValid : false,
url : "",
dataType : "resposeText",
data : "html",
async : true,
beforesend : null,
success : null,
complete : null,
processdata : true,
onerror:"输入的格式不正确",
validateType:"RegexValidator"
}, options);
return jo.each(function() {
$.formValidator._appendValid(this, setting);
});
}
})(jQuery); | zzstudiowebsite | trunk/js/pageValidator.js | JavaScript | lgpl | 20,129 |
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using Net4.Common.Entities;
using Net4.Services.Access;
public partial class Movie : System.Web.UI.Page
{
private Article _CurrentArticle;
protected Article CurrentArticle
{
get
{
if (_CurrentArticle == null && !string.IsNullOrEmpty(Request.QueryString["id"]))
{
int id = int.Parse(Request.QueryString["id"]);
_CurrentArticle = AccessArticleService.Instance.Select(id);
}
return _CurrentArticle;
}
set
{
_CurrentArticle = value;
}
}
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
if (CurrentArticle == null) //new
{
if (User.Identity.IsAuthenticated)
{
this.articleContainer.Visible = false;
this.articleForm.Visible = true;
}
else
{
Response.Redirect("~/MovieList.aspx", true);
}
}
else if (User.Identity.IsAuthenticated && Request.QueryString["action"] == "edit") //edit
{
this.articleContainer.Visible = false;
this.articleForm.Visible = true;
this.articleTitle.Value = CurrentArticle.Title;
this.articleDescription.Value = CurrentArticle.Description;
this.articleContent.Value = CurrentArticle.Content;
}
else if (User.Identity.IsAuthenticated && Request.QueryString["action"] == "delete") //delete
{
AccessArticleService.Instance.Delete(CurrentArticle.Id);
Response.Redirect("~/MovieList.aspx", true);
}
//others, view
BindFilesView();
}
}
protected void btnSaveArticle_Click(object sender, EventArgs e)
{
if (CurrentArticle == null)
{
AddArticle();
}
else
{
UpdateArticle();
}
Response.Redirect(string.Format("~/Movie.aspx?id={0}", CurrentArticle.Id), true);
}
private void BindFilesView()
{
if (CurrentArticle != null)
{
this.FilesView1.DataSource = CurrentArticle.Attachments;
}
}
private void AddArticle()
{
string title = HttpUtility.HtmlEncode(articleTitle.Value);
string description = articleDescription.Value;
string content = articleContent.Value;
AccessArticleService service = AccessArticleService.Instance;
if (CurrentArticle == null)
{
Article art = new Article(title, HttpContext.Current.User.Identity.Name,
string.Empty, content, description, string.Empty, Category.Movie);
service.Insert(art);
CurrentArticle = art;
}
}
private void UpdateArticle()
{
string title = HttpUtility.HtmlEncode(articleTitle.Value);
string description = articleDescription.Value;
string content = articleContent.Value;
AccessArticleService service = AccessArticleService.Instance;
CurrentArticle.Title = title;
CurrentArticle.Description = description;
CurrentArticle.Content = content;
service.Update(CurrentArticle);
}
private void SaveFile()
{
string filepath = AttachmentManager.Instance.SaveAttachment(fuAttachment.PostedFile, fuAttachment.FileName);
Attachment attach;
if (AttachmentManager.Instance.IsImage(fuAttachment.FileName)) // is image
{
attach = new ImageInfo(fuAttachment.FileName, CurrentArticle.Id);
articleContent.Value += string.Format("<img src='{0}' alt='{1}' />", attach.VirtualPath, attach.FileName);
}
else //file
{
attach = new Attachment(fuAttachment.FileName, CurrentArticle.Id);
articleContent.Value += string.Format("<a href='{0}' title='{1}' alt='{1}'>{1}</a> ({2})",
attach.VirtualPath, attach.FileName, attach.DisplaySize);
}
AccessFileService.Instance.Insert(attach);
CurrentArticle.Attachments.Add(attach);
UpdateArticle();
}
protected void btnUploadAttachment_Click(object sender, EventArgs e)
{
//1.如果是新添加文章,先添加文章
if (CurrentArticle == null)
{
AddArticle();
Response.Redirect(string.Format("~/Movie.aspx?id={0}&action=edit", CurrentArticle.Id), false);
}
//2.保存文件
SaveFile();
BindFilesView();
}
}
| zzstudiowebsite | trunk/Movie.aspx.cs | C# | lgpl | 5,119 |
<%@ Page Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="MovieList.aspx.cs" Inherits="MovieList" Title="Untitled Page" %>
<%@ Register src="Controls/SidebarRight.ascx" tagname="SidebarRight" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<!-- start page -->
<div id="page">
<!-- start contentTwo -->
<div id="contentTwo">
<% if (User.Identity.IsAuthenticated) { %>
<p><asp:HyperLink ID="hlAddMovie" NavigateUrl="~/Movie.aspx" runat="server">添加放映信息</asp:HyperLink></p>
<%} %>
<asp:Repeater ID="rptMovies" runat="server">
<ItemTemplate>
<div class="post">
<h1 class="title">
<asp:HyperLink ID="HyperLink1" ToolTip='<%# Eval("Title") %>' NavigateUrl='<%# Eval("Id", "~/Movie.aspx?id={0}") %>' runat="server"><%# Eval("Title") %></asp:HyperLink></h1>
<p class="meta"><a href="#" class="author"><%# Eval("Author") %></a> 发布于 <%# Eval("CreateDate") %></p>
<div class="entry">
<p><%# Eval("Description") %></p>
</div>
</div>
</ItemTemplate>
</asp:Repeater>
</div>
<!-- end contentTwo -->
<uc1:SidebarRight ID="SidebarRight2" runat="server" />
<div style="clear: both;"> </div>
</div>
<!-- end page -->
</asp:Content>
| zzstudiowebsite | trunk/MovieList.aspx | ASP.NET | lgpl | 1,419 |
using System;
using System.Collections.Generic;
using System.Text;
namespace Net4.Core
{
/// <summary>
///
/// Threadsafe Singleton best practice design pattern template
///
/// Sample:
///
/// public class Demo
/// {
/// public static Form1 instance1
/// {
/// get
/// {
/// return Singleton<Form1>.Instance;
/// }
/// }
/// }
/// </summary>
/// <typeparam name="T">Any class that implements default constructor</typeparam>
public sealed class Singleton<T> where T : new()
{
private Singleton()
{
}
public static T Instance
{
get { return Nested.instance; }
}
private class Nested
{
// Explicit static constructor to tell C# compiler
// not to mark type as beforefieldinit
static Nested()
{
}
internal static readonly T instance = new T();
}
}
}
| zzstudiowebsite | trunk/App_Code/Singleton.cs | C# | lgpl | 1,113 |
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
/// <summary>
/// Summary description for Util
/// </summary>
public class Util
{
public Util()
{
//
// TODO: Add constructor logic here
//
}
public readonly static string YapFileName = HttpContext.Current.Server.MapPath("/App_Data/ZzStudio.Yap");
}
| zzstudiowebsite | trunk/App_Code/Util.cs | C# | lgpl | 528 |
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Collections.Generic;
using System.Reflection;
using System.Xml;
/// <summary>
/// Summary description for Webpage
/// </summary>
public class Webpage
{
private string _authorIntroTitle;
/// <summary>
/// Gets or sets the author intro title.
/// </summary>
/// <value>The author intro title.</value>
public string AuthorIntroTitle
{
get
{
return string.IsNullOrEmpty(_authorIntroTitle) ? "author introductory title" : _authorIntroTitle;
}
set { _authorIntroTitle = value; }
}
private string _authorIntro;
/// <summary>
/// Gets or sets the author intro.
/// </summary>
/// <value>The author intro.</value>
public string AuthorIntro
{
get
{
return string.IsNullOrEmpty(_authorIntro) ? "author introductory" : _authorIntro;
}
set { _authorIntro = value; }
}
private string _studioIntroTitle;
/// <summary>
/// Gets or sets the studio intro title.
/// </summary>
/// <value>The studio intro title.</value>
public string StudioIntroTitle
{
get
{
return string.IsNullOrEmpty(_studioIntroTitle) ? "studio introductory title" : _studioIntroTitle;
}
set { _studioIntroTitle = value; }
}
private string _studioIntro;
/// <summary>
/// Gets or sets the studio intro.
/// </summary>
/// <value>The studio intro.</value>
public string StudioIntro
{
get
{
return string.IsNullOrEmpty(_studioIntro) ? "studio introductory" : _studioIntro;
}
set { _studioIntro = value; }
}
private Webpage()
{
Load();
}
private void Load()
{
Type type = this.GetType();
string filename = System.Web.HttpContext.Current.Server.MapPath("~/App_Data/webpageInfos.xml");
if (!System.IO.File.Exists(filename))
{
this.Save();
}
XmlDocument doc = new XmlDocument();
doc.Load(filename);
foreach (XmlNode settingsNode in doc.SelectSingleNode("webpageInfos").ChildNodes)
{
string name = settingsNode.Name;
string value = settingsNode.InnerText;
type.GetProperty(name).SetValue(this, value, null);
}
}
private static Webpage _instance;
/// <summary>
/// Gets the instance.
/// </summary>
/// <value>The instance.</value>
public static Webpage Instance
{
get
{
if (_instance == null)
{
_instance = new Webpage();
}
return _instance;
}
}
/// <summary>
/// Updates the specified property name.
/// </summary>
/// <param name="propertyName">Name of the property.</param>
/// <param name="propertyValue">The property value.</param>
public void Update(string propertyName, string propertyValue)
{
this.GetType().GetProperty(propertyName).SetValue(this, propertyValue, null);
this.Save();
}
#region Save()
/// <summary>
/// Saves the webpage information to disk.
/// </summary>
public void Save()
{
Type settingsType = this.GetType();
string filename = System.Web.HttpContext.Current.Server.MapPath("~/App_Data/webpageInfos.xml");
XmlWriterSettings writerSettings = new XmlWriterSettings(); ;
writerSettings.Indent = true;
using (XmlWriter writer = XmlWriter.Create(filename, writerSettings))
{
writer.WriteStartElement("webpageInfos");
//------------------------------------------------------------
// Enumerate through settings properties
//------------------------------------------------------------
foreach (PropertyInfo propertyInformation in settingsType.GetProperties())
{
try
{
if (propertyInformation.Name != "Instance")
{
//------------------------------------------------------------
// Extract property value and its string representation
//------------------------------------------------------------
object propertyValue = propertyInformation.GetValue(this, null);
string valueAsString = propertyValue.ToString();
//------------------------------------------------------------
// Format null/default property values as empty strings
//------------------------------------------------------------
if (propertyValue.Equals(null))
{
valueAsString = String.Empty;
}
if (propertyValue.Equals(Int32.MinValue))
{
valueAsString = String.Empty;
}
if (propertyValue.Equals(Single.MinValue))
{
valueAsString = String.Empty;
}
//------------------------------------------------------------
// Write property name/value pair
//------------------------------------------------------------
writer.WriteElementString(propertyInformation.Name, valueAsString);
}
}
catch
{ }
}
writer.WriteEndElement();
}
}
#endregion
} | zzstudiowebsite | trunk/App_Code/Webpage.cs | C# | lgpl | 6,178 |
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="FilesView.ascx.cs" Inherits="Controls_FilesView" %>
<%@ Import namespace="System.Data" %>
<%@ Import namespace="Net4.Common.Entities" %>
<ul class="filesView">
<asp:Repeater ID="rptFiles" runat="server">
<ItemTemplate>
<li>
<label><a href='<%# Eval("VirtualPath") %>'
title='<%# Eval("FileName") %>'><%# Eval("FileName") %> <%# Eval("DisplaySize", "({0})")%></a></label>
<p>
<%# Container.DataItem is ImageInfo && this.ShowSnapShot ?
string.Format("<img src='{0}' alt='{1}' />", Eval("Snapshot"), Eval("FileName"))
: string.Format("<img src='/images/icons/32/{1}.gif' alt='{0}' />", Eval("FileName"), Eval("Extension").ToString().Substring(1))%>
</p>
</li>
</ItemTemplate>
</asp:Repeater>
</ul>
| zzstudiowebsite | trunk/Controls/FilesView.ascx | ASP.NET | lgpl | 828 |
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="SidebarRight.ascx.cs" Inherits="Controls_SidebarRight" %>
<!-- start sidebar two -->
<div id="sidebar2" class="sidebar">
<ul>
<%--<li>
<h2>放映厅</h2>
<ul>
<li><a href="#">每周六,日下午都会播放艺术资料或优秀影视作品,定期会请专家和大家一起交流讨论影视作品观赏心得。</a></li>
</ul>
</li>--%>
<li>
<h2>演出信息</h2>
<ul>
<li><a href="#">期待中...</a></li>
</ul>
</li>
<li>
<h2>链接</h2>
<ul>
<li><a href="http://blog.sina.com.cn/danceZz">张志's Blog</a></li>
</ul>
</li>
</ul>
</div>
<!-- end sidebar two --> | zzstudiowebsite | trunk/Controls/SidebarRight.ascx | ASP.NET | lgpl | 707 |
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
public partial class Controls_FilesView : System.Web.UI.UserControl
{
public object DataSource
{
set
{
this.rptFiles.DataSource = value;
//this.rptFiles.DataBind();
}
}
protected bool _ShowSnapShot = false;
public bool ShowSnapShot
{
get { return _ShowSnapShot; }
set { _ShowSnapShot = value; }
}
protected void Page_Load(object sender, EventArgs e)
{
}
}
| zzstudiowebsite | trunk/Controls/FilesView.ascx.cs | C# | lgpl | 765 |
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
public partial class Controls_SidebarRight : System.Web.UI.UserControl
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
| zzstudiowebsite | trunk/Controls/SidebarRight.ascx.cs | C# | lgpl | 429 |
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Index.aspx.cs" Inherits="Index" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>张志工作室 - DanceZZ's Studio</title>
<link href="/css/style.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
<form id="form1" runat="server">
<!-- start page -->
<div id="indexPage">
<a title="点击进入张志工作室" href="/default.aspx">
<img id="indexLogo" alt="点击进入张志工作室" runat="server" /></a>
<br /><a title="点击进入张志工作室" href="/default.aspx">点击进入张志工作室</a>
</div>
<!-- end page -->
<!-- start footer -->
<div id="footer">
<p>联系张志:020-84319909,Email:<a href="mailto:azhi121@sina.com">azhi121@sina.com</a>,QQ:31819135,您还可以查看<a href="http://blog.sina.com.cn/danceZz">张志's Blog</a></p>
<p><a href="/">张志工作室</a>©2008 All Rights Reserved. •
<a href="http://www.miibeian.gov.cn" target="_blank">粤ICP备08009253号</a> • Designed by <a href="http://www.net4.com.cn/">Net4 Studio</a>.
</p>
</div>
<!-- end footer -->
</form>
</body>
</html>
| zzstudiowebsite | trunk/Index.aspx | ASP.NET | lgpl | 1,357 |
<%@ Page Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="News.aspx.cs" Inherits="News" ValidateRequest="false" %>
<%@ Register src="Controls/SidebarRight.ascx" tagname="SidebarRight" tagprefix="uc1" %>
<%@ Register src="Controls/FilesView.ascx" tagname="FilesView" tagprefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<!-- TinyMCE -->
<script type="text/javascript" src="/js/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
// O2k7 skin (silver)
tinyMCE.init({
// General options
mode : "exact",
elements : '<%= articleContent.ClientID %>, <%= articleDescription.ClientID %>',
theme : "advanced",
skin : "o2k7",
skin_variant : "silver",
plugins : "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",
// Theme options
theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect",
theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl",
theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_resizing : true,
// Example content CSS (should be your site CSS)
content_css : "css/tinyMCE.css"
});
$(document).ready(function($) {
$.formValidator.initConfig({alertMessage: false});
$("#<%=articleTitle.ClientID %>").formValidator({empty:false, onshow:"请输入标题", onfocus:"姓名至少1个字符,最多50个字符", oncorrect:"输入正确"}).InputValidator({min:1, max:50, onerror:"请输入正确的标题"});
$("#<%=fuAttachment.ClientID %>").formValidator({empty:false, onshow:"请选择文件", onfocus:"请选择文件", oncorrect:"已选择"}).InputValidator({min:3, onerror:"请选择文件"});
});
</script>
<!-- /TinyMCE -->
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<!-- start page -->
<div id="page">
<!-- start contentTwo -->
<div id="contentTwo">
<div id="articleForm" class="form" runat="server" visible="false">
<label>标题</label>
<input class="text" type="text" size="100" id="articleTitle" value="" runat="server" />
<label id='<%= articleTitle.ClientID %>Tip'></label>
<label>摘要</label>
<textarea id="articleDescription" rows="3" cols="5" runat="server"></textarea>
<%-- <label id="emailTip"></label>--%>
<label>附件</label>
<uc2:FilesView ID="FilesView1" ShowSnapShot="true" Editable="true" runat="server" />
<asp:FileUpload ContentEditable="false" ID="fuAttachment" CssClass="file" runat="server" />
<asp:Button ID="btnUploadAttachment" OnClientClick="return $.formValidator.PageIsValid();" CssClass="button" runat="server" Text="上传"
onclick="btnUploadAttachment_Click" />
<label id='<%= fuAttachment.ClientID %>Tip'></label>
<label>内容</label>
<textarea id="articleContent" rows="5" cols="5" style="height: 500px" runat="server"></textarea>
<br />
<asp:Button ID="btnSaveArticle" CssClass="button" runat="server" Text="发布"
onclick="btnSaveArticle_Click" />
</div>
<div id="articleContainer" class="post" runat="server">
<h1 class="title">
<a title='<%= CurrentArticle.Title %>' href='<%= Page.ResolveUrl(string.Format("~/News.aspx?id={0}", CurrentArticle.Id)) %>'><%= CurrentArticle.Title %></a></h1>
<p class="meta"><a href="#" class="author"><%= CurrentArticle.Author %></a> 发布于 <%= CurrentArticle.CreateDate.ToString() %></p>
<div class="entry">
<%= CurrentArticle.Content %>
</div>
<p class="links"><a href='<%= Page.ResolveUrl(string.Format("~/News.aspx?id={0}", CurrentArticle.Id)) %>' class="permalink">永久链接</a>
<% if (User.Identity.IsAuthenticated) { %>
| <a href='<%= Page.ResolveUrl(string.Format("~/News.aspx?id={0}&action=edit", CurrentArticle.Id)) %>'>编辑</a>
| <a href='<%= Page.ResolveUrl(string.Format("~/News.aspx?id={0}&action=delete", CurrentArticle.Id)) %>' onclick="return window.confirm('确定要删除吗?');">删除</a>
<%} %>
</p>
<p class="tags"><strong>Tags:</strong></p>
</div>
</div>
<!-- end contentTwo -->
<uc1:SidebarRight ID="SidebarRight2" runat="server" />
<div style="clear: both;"> </div>
</div>
<!-- end page -->
</asp:Content>
| zzstudiowebsite | trunk/News.aspx | ASP.NET | lgpl | 5,292 |
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using Net4.Services.Access;
using Net4.Common.Entities;
public partial class MovieList : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
this.rptMovies.DataSource = AccessArticleService.Instance.SelectArticles(Category.Movie, 1, 15);
this.rptMovies.DataBind();
}
}
}
| zzstudiowebsite | trunk/MovieList.aspx.cs | C# | lgpl | 664 |
.galleria{list-style:none;width:200px}
.galleria li{display:block;width:80px;height:80px;overflow:hidden;float:left;margin:0 10px 10px 0}
.galleria li a{display:none}
.galleria li div{position:absolute;display:none;top:0;left:180px}
.galleria li div img{cursor:pointer}
.galleria li.active div img,.galleria li.active div{display:block}
.galleria li img.thumb{cursor:pointer;top:auto;left:auto;display:block;width:auto;height:auto}
.galleria li .caption{display:block;padding-top:.5em}
* html .galleria li div span{width:400px} /* MSIE bug */ | zzstudiowebsite | trunk/css/galleria.css | CSS | lgpl | 550 |
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.Services;
using Net4.Services.Access;
using Net4.Common.Entities;
public partial class _Default : System.Web.UI.Page
{
protected Webpage webpage;
protected void Page_Load(object sender, EventArgs e)
{
webpage = Webpage.Instance;
if (!IsPostBack)
{
rptNews.DataSource = AccessArticleService.Instance.SelectArticles(Category.News, 1, 5);
rptNews.DataBind();
rptMovies.DataSource = AccessArticleService.Instance.SelectArticles(Category.Movie, 1, 5);
rptMovies.DataBind();
}
}
[WebMethod]
public static void SaveData(string propertyName, string propertyValue)
{
Webpage p = Webpage.Instance;
p.Update(propertyName, propertyValue);
}
}
| zzstudiowebsite | trunk/Default.aspx.cs | C# | lgpl | 1,084 |
<%@ Page Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
Namespace="System.Web.UI" TagPrefix="asp" %>
<%@ Register src="Controls/SidebarRight.ascx" tagname="SidebarRight" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<script type="text/javascript">
jQuery(document).ready(function($) {
$('a[rel*=facebox]').facebox();
$('*[rel*=editable_not]').click(function(event) {
event.preventDefault();
var context = $(this);
var id = context.attr("id") || "editableObject";
var container = $("#"+ id +"Container");
if(container.size() == 0) {
var editor = context.attr("editor") || "text";
switch(editor) {
case "text" : editor = "<input id='" + id
+ "Text' type='text' class='text' editElementId='"
+ context.attr("id") +"' />";break;
case "textarea" : editor = "<textarea id='" + id
+ "Text' class='text' editElementId='"
+ context.attr("id") +"' />";break;
}
container = $("<div id='" + id
+ "Container'>" + editor + " <input id='" + id
+ "Submit' type='button' class='button' value='保存' /> <input id='" + id
+ "Cancel' type='button' class='button' value='取消' /> </div>");
context.before(container);
$("#"+id+"Submit").click(function() {
saveData($("#"+id+"Text"));
container.hide();
context.show();
});
$("#"+id+"Cancel").click(function() {
container.hide();
context.show();
});
}
context.hide();
container.show();
//设置文本框的值,并设置直接在文本框上回车就可以保存.
$("#"+id+"Text").val(context.html()).keypress(function(event) {
if(event.which == 13) {
event.preventDefault(); //禁止默认的事件发生
saveData($(this));
container.hide();
context.show();
//event.stopPropagation();
}
});
});
});
//保存数据到服务器端
function saveData(jqText) {
var value = jqText.val();
var editElement = $("#"+jqText.attr("editElementId"));
var key = editElement.attr("field");
editElement.html(value);
PageMethods.SaveData(key, value);
}
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<!-- start page -->
<div id="page">
<!-- start content -->
<div id="content">
<div class="post">
<h1 class="title"><a href="#whoiszz" id="authorIntroTitle" rel="editable" field="AuthorIntroTitle"><%= webpage.AuthorIntroTitle %></a></h1>
<div id="authorIntro" class="entry" editor="textarea" rel="editable" field="AuthorIntro"><%= webpage.AuthorIntro %>
<br /><a href="#zhangzhiInfo" rel="facebox">点击查看更多关于张志的信息</a>
</div>
<div id="zhangzhiInfo" style="display:none;">
<p><strong>张志</strong>的个人资料:<br />
1995年毕业于北京解放军艺术学院舞蹈系。<br />
1995年开始参加工作。<br />
1998年-2000年再次考入北京解放军艺术学院舞蹈系“表演导演”大专毕业。<br />
表演主要获奖情况:<br />
2005年第二届韩国首尔国际芭蕾舞及现代舞大赛,现代舞组唯一金奖。<br />
2004年第八届全军文艺汇演,获表演一等奖。<br />
2003年主演的舞剧《菊夫人》获浙江省第九届戏剧节新剧目大奖<br />
2002年第二届CCTV电视舞蹈作品评选中获唯一的男演员最佳表演奖;<br />
2002年第二届CCTV电视舞蹈大赛当代舞组银奖。<br />
2001年第五届全国舞蹈比赛表演一等奖;<br />
2001年第六届日本国际“洋舞”大赛,现代舞组第二名,并获国际交流奖;<br />
2001年第六届全军文艺新作品奖表演一等奖;<br />
2000年全国桃李杯舞蹈比赛,古典舞青年组银奖;<br />
1999年第七届全军文艺汇演表演一等奖;<br />
<br />
编创获奖情况:<br />
2006年作为特邀编导,副总导演为辽宁芭蕾舞团创作的芭蕾舞剧《二泉映月》获(2005-2006)国家十佳舞台艺术精品工程奖。<br />
参加创作的舞剧《妈勒访天边》获“荷花杯”舞剧金奖,2002年文华大奖;文华大奖单项奖“编导奖”;第七届中国戏剧节优秀导演奖。<br />
第八届全军文艺会演编导一等奖。 <br />
第五届中国舞蹈荷花奖获现代舞编导铜奖,作品铜奖。<br />
主要重大演出或晚会情况:<br />
2003年曾应中国爱乐乐团邀请,与乐团七位首席演员还有姜昆、娄乃敏等人一起,自编自演了乐、舞、诗合作的斯特拉文斯基舞剧作品《一个士兵的故事》在中国的首演。<br />
2006年多哈亚运会闭幕式广州十分钟表演的舞蹈设计。<br />
1997年被评为广东跨世纪之星。<br />
2006年被评为广东新世纪之星。<br />
多次作为编导,演员参加2001、2003、2007中央电视台春节联欢晚会。2001年在中央电视台春节联欢晚会上编排的歌舞《越来越好》还获得了当年观众投票选出的歌舞类节目的一等奖;<br />
2003底至04年初期间,应邀作为中国红星舞蹈团特邀演员参加了“中法文化年”的活动。在法国巡回表演舞蹈专场。历时90天,演出多达60场。还曾赴、瑞士、西班牙、罗马尼亚、希腊、马耳他、安道尔、蒙古等国家进行过交流访问演出。<br />
2005年曾举办过名为“又是一年”的现代舞专场演出。<br />
中宣部、文化部、总政治部等单位联合主办的建国五十周年大型歌舞晚会<br />
首届中国舞蹈节精品展演晚会<br />
南宁民歌艺术节<br />
中央电视台同一首歌<br />
宁波国际服装节文艺晚会<br />
首届佛经论坛协会文艺晚会<br />
首届北京国际美术双年展文艺晚会。<br />
庆祝香港回归十周年文艺晚会等等一系列各种重大活动的演出与编排<br />
</p>
</div>
</div>
<div class="post">
<h1 class="title"><a href="#">张志工作室的目的性和功能</a></h1>
<div class="entry">
<p><strong>工作室</strong>是希望能够更长的延续自己的艺术生命和试图打破现有的一些局限,在舞蹈与其他类艺术结合方面做更多的尝试,以丰富舞蹈的表现力。所以我希望更多的人关注这个平台,并积极参与进来,让艺术丰富生活,让生活充满艺术。
</p>
<p>
<strong>工作室的主要功能:</strong><br />
<strong>舞蹈类:</strong>舞蹈编排,晚会策划,形体培训,私人指导,专业院校考学前辅导。<br />
<strong>其他类:</strong>音乐剪辑,视频编辑,录音,代为联系各艺术类专业权威的指导老师进行学习指导。
<br /><a href="#zzStudioInfo" rel="facebox">查看更多关于张志工作室的信息</a>。
</p>
</div>
</div>
<div id="zzStudioInfo" style="display:none;">
<p>
<strong>张志工作室</strong>位于广州海珠区昌岗中路110号11号楼,在远洋宿舍小区里一个独立的三层小楼。三楼是一个大约近百平方的练功房,可以用于练功,排舞,形体训练,摄影等。我会在此做一些实验性的创作,并定期邀请相关的专业人士在此做一些交流表演。
</p>
<p>
二楼与三楼的面积相近,设置为一个小型会所。在这里准备了许多与艺术还有时尚相关的资料,(如舞蹈,话剧,音乐,杂技,时装,美术,人文地理等等影视资料)定期进行播放。以提供一个机会给专业人士和艺术爱好者欣赏各类作品和了解最新的艺术信息。同时还会不定期举办酒会,邀请各类的艺术专业人士,如:演员、画家、音乐人等,建立一个简易的平台,让更多人近距离接触艺术。还有,由于楼层的特殊结构,十分适合举办小型的美术作品和摄影图片的展览,如果有需要工作室将无偿提供给学生或者美术摄影爱好者展示作品。
</p>
<p>
做这个工作室是希望能够更长的延续自己的艺术生命和试图打破现有的一些局限,在舞蹈与其他类艺术结合方面做更多的尝试,以丰富舞蹈的表现力。所以我希望更多的人关注这个平台,并积极参与进来,让艺术丰富生活,让生活充满艺术。
</p>
<p>
<strong>张志工作室</strong>线路指引:因门口地铁正在施工当中。所以地铁只能乘坐至晓港站,A出口上来乘坐(69,70,206,565,812,)等公车2站地至橡胶新村下,行至马路对面昌岗综合市场进入20米左边就为远洋宿舍小区。
进入小区直行60米转右直行100米转右看见独立的三层小楼就为张志工作室。
</p>
<p>
<strong>张志工作室</strong>的主要功能:
舞蹈类:舞蹈编排,晚会策划,形体培训,私人指导,专业院校考学前辅导。
其他类:音乐剪辑,视频编辑,录音,代为联系各艺术类专业权威的指导老师进行学习指导。
</p>
</div>
</div>
<!-- end content -->
<!-- start sidebar one -->
<div id="sidebar1" class="sidebar">
<ul>
<li id="recent-posts">
<h2><a href="/newslist.aspx">最新资讯</a></h2>
<ul>
<asp:Repeater ID="rptNews" runat="server">
<ItemTemplate>
<li>
<h3><a href="<%# Eval("Id", "/News.aspx?id={0}") %>"><%# Eval("Title") %></a></h3>
<%# Eval("Description").ToString().Substring(0, Eval("Description").ToString().LastIndexOf("</p>")) %>
<a href="<%# Eval("Id", "/News.aspx?id={0}") %>">More…</a></p>
</li>
</ItemTemplate>
</asp:Repeater>
</ul>
</li>
</ul>
</div>
<!-- end sidebar one -->
<div id="sidebar2" class="sidebar">
<ul>
<li>
<h2><a href="/movielist.aspx">放映厅</a></h2>
<ul>
<asp:Repeater ID="rptMovies" runat="server">
<ItemTemplate>
<li>
<h3><a href="<%# Eval("Id", "/Movie.aspx?id={0}") %>"><%# Eval("Title") %></a></h3>
<%# Eval("Description").ToString().Substring(0, Eval("Description").ToString().LastIndexOf("</p>")) %>
<a href="<%# Eval("Id", "/Movie.aspx?id={0}") %>">More…</a></p>
</li>
</ItemTemplate>
</asp:Repeater>
<%--<li><a href="#">每周六,日下午都会播放艺术资料或优秀影视作品,定期会请专家和大家一起交流讨论影视作品观赏心得。</a></li>--%>
</ul>
</li>
<li>
<h2>演出信息</h2>
<ul>
<li><a href="#">期待中...</a></li>
</ul>
</li>
<li>
<h2>链接</h2>
<ul>
<li><a href="http://blog.sina.com.cn/danceZz">张志's Blog</a></li>
</ul>
</li>
</ul>
</div>
<div style="clear: both;"> </div>
</div>
<!-- end page -->
</asp:Content>
| zzstudiowebsite | trunk/Default.aspx | ASP.NET | lgpl | 11,807 |
<%@ Page Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Messages.aspx.cs" Inherits="Comment" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<!-- TinyMCE -->
<script type="text/javascript" src="/js/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
// O2k7 skin (silver)
tinyMCE.init({
// General options
// mode : "exact",
// elements : "message",
mode : "textareas",
theme : "advanced",
skin : "o2k7",
skin_variant : "silver",
plugins : "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",
// Theme options
theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect",
theme_advanced_buttons2 : "bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,|,insertdate,inserttime,preview,|,forecolor,backcolor,|,sub,sup,|,charmap,emotions,iespell,media,advhr",
theme_advanced_buttons3 : "",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_resizing : true,
// Example content CSS (should be your site CSS)
content_css : "css/tinyMCE.css",
// Replace values for the template plugin
template_replace_values : {
XSS : "",
staffid : "991234"
}
});
</script>
<!-- /TinyMCE -->
<script type="text/javascript">
$(document).ready(function($) {
//提交留言
$("#submitMessage").click(function() {
if(!$.formValidator.PageIsValid()) return false;
if(tinyMCE.get('message').getContent() == "") {
alert("内容不能为空!");
return false;
}
var name = htmlEncode($("#username").val());
var email = htmlEncode($("#email").val());
var subjest = htmlEncode($("#subject").val());
var message = tinyMCE.get('message').getContent();
$("#aspnetForm :text").attr("disable", "disable");
PageMethods.AddMessage(name, email, subjest, message, function(result) {
refreshMessagesList();
$("#aspnetForm :text").attr("disable", "disable").val("");
tinyMCE.get('message').setContent("");
});
});
$.formValidator.initConfig({alertMessage: false});
$("#username").formValidator({empty:false,onshow:"请输入姓名",onfocus:"姓名至少3个字符,最多30个字符",oncorrect:"你输对了"}).InputValidator({min:3,max:30,onerror:"你输入的姓名非法,请确认"});
$("#email").formValidator({onshow:"请输入邮箱",onfocus:"邮箱至少6个字符,最多50个字符",oncorrect:"你输对了"}).InputValidator({min:6,max:50,onerror:"你输入的邮箱长度非法,请确认"}).RegexValidator({regexp:"^([\\w-.]+)@(([[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.)|(([\\w-]+.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(]?)$",onerror:"你输入的邮箱格式不正确"});
$("#subject").formValidator({empty:false,onshow:"请输入主题",onfocus:"主题至少2个字符, 最多100个字符",oncorrect:"你输对了"}).InputValidator({min:2, max:100,onerror:"你输入的主题非法,请确认"});
});
Sys.Application.add_load(function() {
bindButtonEvent();
});
var replyMsgId;
function bindButtonEvent() {
//回复
$("a.replyMessageButton").click(function(event) {
event.preventDefault();
tinyMCE.get('replyBody').setContent("");
$(this).parent().before($("#replyForm").show());
replyMsgId = $(this).attr("msgId");
if($("#reply"+replyMsgId).length == 1) {
var oldMsg = $("#reply"+replyMsgId).html();
tinyMCE.get('replyBody').setContent(oldMsg);
}
});
//提交回复
$("#submitReply").click(function() {
var replyBody = tinyMCE.get('replyBody').getContent();
PageMethods.ReplyMessage(replyMsgId, replyBody, function(result) {
$("#aspnetForm").append($("#replyForm").hide()); //将replyForm移出List
refreshMessagesList();
});
});
//删除
$("a.deleteMessageButton").click(function(event) {
event.preventDefault();
replyMsgId = $(this).attr("msgId");
if(window.confirm("确定删除此留言吗?")) {
PageMethods.DeleteMessage(replyMsgId, function(result) {
if(result) {
refreshMessagesList();
}
});
}
});
}
function refreshMessagesList() {
__doPostBack('<%=lbtnRefreshMessagesBottom.UniqueID %>','');
}
</script>
<div id="page">
<h1 class="name">我要留言</h1>
<div class="form">
<p>
<label>姓名</label>
<input class="text" type="text" size="30" id="username" value="" />
<span id="usernameTip"></span>
<label>邮箱</label>
<input class="text" type="text" size="30" id="email" value="" />
<span id="emailTip"></span>
<label>主题</label>
<input class="text" type="text" size="100" id="subject" value="" />
<span id="subjectTip"></span>
<label>内容</label>
<textarea id="message" rows="5" cols="5"></textarea>
<br />
<input id="submitMessage" class="button" type="button" value="发送留言" />
</p>
</div>
<div class="form" id="replyForm" style="display: none;">
<p>
<label>回复内容</label>
<textarea id="replyBody" rows="5" cols="5"></textarea>
<br />
<input id="submitReply" class="button" type="button" value="发送回复" />
</p>
</div>
<h1 class="name">留言列表</h1>
<div id="messageList">
<%--<asp:LinkButton ID="lbtnRefreshMessagesTop" runat="server"
onclick="lbtnRefreshMessages_Click">刷新留言列表</asp:LinkButton>--%>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Repeater ID="rptMessageList" runat="server">
<ItemTemplate>
<div class="message">
<h1>
<a href='mailto:<%# Eval("Email") %>' title='mailto:<%# Eval("Email") %>'><%# Eval("UserName") %>(<%# Eval("Email") %>)</a> |
<strong><%# Eval("Subject") %></strong> | <%# Eval("CreateDate", "发表于 {0}") %></h1>
<%# Eval("Body") %>
<%# Eval("Reply").ToString() != string.Empty ?
string.Format("<div class='messageReply'><p class='replyDate'>回复于 {0}:</p><div class='replyBody' id='reply{1}'>{2}</div></div>",
Eval("ReplyDate"), Eval("Id"), Eval("Reply")) : string.Empty%>
<% if (User.Identity.IsAuthenticated)
{ %>
<p><a class="replyMessageButton" href='#' msgId='<%# Eval("Id") %>'> 回复 </a> |
<%--<a class="editMessageButton" href='#' msgId='<%# Eval("Id") %>'> 修改 </a> | --%>
<a class="deleteMessageButton" href='#' msgId='<%# Eval("Id") %>'> 删除 </a></p>
<%} %>
</div>
</ItemTemplate>
</asp:Repeater>
<webdiyer:AspNetPager ID="anpMessagesList" runat="server" PageSize="15"
UrlPaging="True"></webdiyer:AspNetPager>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="lbtnRefreshMessagesBottom" />
</Triggers>
</asp:UpdatePanel>
<asp:LinkButton ID="lbtnRefreshMessagesBottom" runat="server"
onclick="lbtnRefreshMessages_Click">刷新留言列表</asp:LinkButton>
</div>
</div>
</asp:Content>
| zzstudiowebsite | trunk/Messages.aspx | ASP.NET | lgpl | 8,037 |
/*
* Facebox (for jQuery)
* version: 1.1 (03/01/2008)
* @requires jQuery v1.2 or later
*
* Examples at http://famspam.com/facebox/
*
* Licensed under the MIT:
* http://www.opensource.org/licenses/mit-license.php
*
* Copyright 2007, 2008 Chris Wanstrath [ chris@ozmm.org ]
*
* Usage:
*
* jQuery(document).ready(function() {
* jQuery('a[rel*=facebox]').facebox()
* })
*
* <a href="#terms" rel="facebox">Terms</a>
* Loads the #terms div in the box
*
* <a href="terms.html" rel="facebox">Terms</a>
* Loads the terms.html page in the box
*
* <a href="terms.png" rel="facebox">Terms</a>
* Loads the terms.png image in the box
*
*
* You can also use it programmatically:
*
* jQuery.facebox('some html')
*
* This will open a facebox with "some html" as the content.
*
* jQuery.facebox(function() { ajaxes })
*
* This will show a loading screen before the passed function is called,
* allowing for a better ajax experience.
*
*/
(function($) {
$.facebox = function(data, klass) {
$.facebox.init()
$.facebox.loading()
$.isFunction(data) ? data.call($) : $.facebox.reveal(data, klass)
}
$.facebox.settings = {
loading_image : '/facebox/loading.gif',
close_image : '/facebox/closelabel.gif',
image_types : [ 'png', 'jpg', 'jpeg', 'gif' ],
facebox_html : '\
<div id="facebox" style="display:none;"> \
<div class="popup"> \
<table> \
<tbody> \
<tr> \
<td class="tl"/><td class="b"/><td class="tr"/> \
</tr> \
<tr> \
<td class="b"/> \
<td class="body"> \
<div class="content"> \
</div> \
<div class="footer"> \
<a href="#" class="close"> \
<img src="/facebox/closelabel.gif" title="close" class="close_image" /> \
</a> \
</div> \
</td> \
<td class="b"/> \
</tr> \
<tr> \
<td class="bl"/><td class="b"/><td class="br"/> \
</tr> \
</tbody> \
</table> \
</div> \
</div>'
}
$.facebox.loading = function() {
if ($('#facebox .loading').length == 1) return true
$('#facebox .content').empty()
$('#facebox .body').children().hide().end().
append('<div class="loading"><img src="'+$.facebox.settings.loading_image+'"/></div>')
var pageScroll = $.facebox.getPageScroll()
$('#facebox').css({
top: pageScroll[1] + ($.facebox.getPageHeight() / 10),
left: pageScroll[0]
}).show()
$(document).bind('keydown.facebox', function(e) {
if (e.keyCode == 27) $.facebox.close()
})
}
$.facebox.reveal = function(data, klass) {
if (klass) $('#facebox .content').addClass(klass)
$('#facebox .content').append(data)
$('#facebox .loading').remove()
$('#facebox .body').children().fadeIn('normal')
}
$.facebox.close = function() {
$(document).trigger('close.facebox')
return false
}
$(document).bind('close.facebox', function() {
$(document).unbind('keydown.facebox')
$('#facebox').fadeOut(function() {
$('#facebox .content').removeClass().addClass('content')
})
})
$.fn.facebox = function(settings) {
$.facebox.init(settings)
var image_types = $.facebox.settings.image_types.join('|')
image_types = new RegExp('\.' + image_types + '$', 'i')
function click_handler() {
$.facebox.loading(true)
// support for rel="facebox[.inline_popup]" syntax, to add a class
var klass = this.rel.match(/facebox\[\.(\w+)\]/)
if (klass) klass = klass[1]
// div
if (this.href.match(/#/)) {
var url = window.location.href.split('#')[0]
var target = this.href.replace(url,'')
$.facebox.reveal($(target).clone().show(), klass)
// image
} else if (this.href.match(image_types)) {
var image = new Image()
image.onload = function() {
$.facebox.reveal('<div class="image"><img src="' + image.src + '" /></div>', klass)
}
image.src = this.href
// ajax
} else {
$.get(this.href, function(data) { $.facebox.reveal(data, klass) })
}
return false
}
this.click(click_handler)
return this
}
$.facebox.init = function(settings) {
if ($.facebox.settings.inited) {
return true
} else {
$.facebox.settings.inited = true
}
if (settings) $.extend($.facebox.settings, settings)
$('body').append($.facebox.settings.facebox_html)
var preload = [ new Image(), new Image() ]
preload[0].src = $.facebox.settings.close_image
preload[1].src = $.facebox.settings.loading_image
$('#facebox').find('.b:first, .bl, .br, .tl, .tr').each(function() {
preload.push(new Image())
preload.slice(-1).src = $(this).css('background-image').replace(/url\((.+)\)/, '$1')
})
$('#facebox .close').click($.facebox.close)
$('#facebox .close_image').attr('src', $.facebox.settings.close_image)
}
// getPageScroll() by quirksmode.com
$.facebox.getPageScroll = function() {
var xScroll, yScroll;
if (self.pageYOffset) {
yScroll = self.pageYOffset;
xScroll = self.pageXOffset;
} else if (document.documentElement && document.documentElement.scrollTop) { // Explorer 6 Strict
yScroll = document.documentElement.scrollTop;
xScroll = document.documentElement.scrollLeft;
} else if (document.body) {// all other Explorers
yScroll = document.body.scrollTop;
xScroll = document.body.scrollLeft;
}
return new Array(xScroll,yScroll)
}
// adapter from getPageSize() by quirksmode.com
$.facebox.getPageHeight = function() {
var windowHeight
if (self.innerHeight) { // all except Explorer
windowHeight = self.innerHeight;
} else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
windowHeight = document.documentElement.clientHeight;
} else if (document.body) { // other Explorers
windowHeight = document.body.clientHeight;
}
return windowHeight
}
})(jQuery);
| zzstudiowebsite | trunk/facebox/facebox.js | JavaScript | lgpl | 6,192 |
#facebox .b {
background:url(/facebox/b.png);
}
#facebox .tl {
background:url(/facebox/tl.png);
}
#facebox .tr {
background:url(/facebox/tr.png);
}
#facebox .bl {
background:url(/facebox/bl.png);
}
#facebox .br {
background:url(/facebox/br.png);
}
#facebox {
position: absolute;
width: 100%;
top: 0;
left: 0;
z-index: 100;
text-align: left;
}
#facebox .popup {
position: relative;
}
#facebox table {
margin: auto;
border-collapse: collapse;
}
#facebox .body {
padding: 10px;
background: #fff;
width: 700px;
}
#facebox .loading {
text-align: center;
}
#facebox .image {
text-align: center;
}
#facebox img {
border: 0;
}
#facebox .footer {
border-top: 1px solid #DDDDDD;
padding-top: 5px;
margin-top: 10px;
text-align: right;
}
#facebox .tl, #facebox .tr, #facebox .bl, #facebox .br {
height: 10px;
width: 10px;
overflow: hidden;
padding: 0;
}
| zzstudiowebsite | trunk/facebox/facebox.css | CSS | lgpl | 911 |
<%@ Page Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="NewsList.aspx.cs" Inherits="NewsList" %>
<%@ Register src="Controls/SidebarRight.ascx" tagname="SidebarRight" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<!-- start page -->
<div id="page">
<!-- start contentTwo -->
<div id="contentTwo">
<% if (User.Identity.IsAuthenticated) { %>
<p><asp:HyperLink ID="hlAddNews" NavigateUrl="~/News.aspx" runat="server">添加资讯</asp:HyperLink></p>
<%} %>
<asp:Repeater ID="rptNews" runat="server">
<ItemTemplate>
<div class="post">
<h1 class="title">
<asp:HyperLink ToolTip='<%# Eval("Title") %>' NavigateUrl='<%# Eval("Id", "~/News.aspx?id={0}") %>' runat="server"><%# Eval("Title") %></asp:HyperLink></h1>
<p class="meta"><a href="#" class="author"><%# Eval("Author") %></a> 发布于 <%# Eval("CreateDate") %></p>
<div class="entry">
<p><%# Eval("Description") %></p>
</div>
<%-- <p class="links"><asp:HyperLink ID="HyperLink1" ToolTip='permalink' NavigateUrl='<%# Eval("Id", "~/News.aspx?id={0}") %>' CssClass="permalink" runat="server">Permalink</asp:HyperLink></p>
--%> <%--<p class="tags"><strong>Tags:</strong> <%# Eval("Tags") %></p>--%>
</div>
</ItemTemplate>
</asp:Repeater>
</div>
<!-- end contentTwo -->
<uc1:SidebarRight ID="SidebarRight2" runat="server" />
<div style="clear: both;"> </div>
</div>
<!-- end page -->
</asp:Content>
| zzstudiowebsite | trunk/NewsList.aspx | ASP.NET | lgpl | 1,643 |
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
public partial class Login : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
| zzstudiowebsite | trunk/Login.aspx.cs | C# | lgpl | 406 |
/*
* jQuery Lightbox Plugin (balupton edition) - Lightboxes for jQuery
* Copyright (C) 2007 Benjamin Arthur Lupton
*
* This file is part of jQuery Lightbox (balupton edition).
*
* jQuery Lightbox (balupton edition) is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* jQuery Lightbox (balupton edition) is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with jQuery Lightbox (balupton edition). If not, see <http://www.gnu.org/licenses/>.
*
* @name jquery_lightbox: jquery.lightbox.css
* @package jQuery Lightbox Plugin (balupton edition)
* @version 1.0.0-final
* @date December 31, 2007
* @category jQuery plugin
* @author Benjamin "balupton" Lupton {@link http://www.balupton.com}
* @copyright (c) 2007 Benjamin Arthur Lupton {@link http://www.balupton.com}
* @license GNU Affero General Public License - {@link http://www.gnu.org/licenses/agpl.html}
* @example Visit {@link http://jquery.com/plugins/project/jquerylightbox_bal} for more information.
*/
#lightbox, #lightbox-overlay {
position: absolute;
top: 0px;
left: 0px;
bottom:auto;
right:auto;
z-index:100;
width:100%;
height:auto;
text-align:center;
color:#333333;
/* stop stupid conflicts */
margin:0px;
padding:0px;
border:none;
outline:none;
line-height:0;
/* general conflict stopper */
text-decoration:none;
background:none;
word-spacing:normal;
letter-spacing:normal;
float:none;
clear:none;
display:block;
}
#lightbox-overlay {
z-index: 90;
background-color:#000000;
height: 100%;
}
#lightbox-overlay-text {
text-align: right;
margin-right: 20px;
margin-top: 20px;
color: white;
font-size: 12px;
cursor: default;
line-height:normal;
}
#lightbox-overlay-text a, #lightbox-overlay-text a:hover, #lightbox-overlay-text a:visited, #lightbox-overlay-text a:link {
text-decoration:underline;
color:white;
}
#lightbox-overlay-text span {
padding-left:5px;
padding-right:5px;
}
#lightbox img, #lightbox a img, #lightbox a { border:none; outline:none; }
#lightbox-imageBox {
position:relative;
border:1px solid black;;
background-color:white;
width:250px;
height:250px;
margin:0 auto;
}
#lightbox-imageContainer {
padding:1px;
}
#lightbox-loading {
position:absolute;
top:40%;
left:0%;
height:25%;
width:100%;
text-align:center;
line-height:0;
}
#lightbox-nav {
position:absolute;
top:0;
left:0;
height:100%;
width:100%;
z-index:10;
}
/* #lightbox-imageBox > #lightbox-nav { left: 0; }
#lightbox-nav a { outline: none; }*/
#lightbox-nav-btnPrev, #lightbox-nav-btnNext {
display:block;
width:49%;
height: 100%;
background:transparent url("../images/blank.gif") no-repeat; /* Trick IE into showing hover */
/* cursor:pointer; */
zoom:1; /* who knows why? */
padding:0px;
margin:0px;
}
#lightbox-nav-btnPrev {
left:0;
right:auto;
float:left;
}
#lightbox-nav-btnNext {
left:auto;
right:0;
float:right;
}
/*
.preload_largeLink, #prevLink:hover, #prevLink:visited:hover {
background:url("../images/prev.gif") left 45% no-repeat;
}
.preload_nextLink, #nextLink:hover, #nextLink:visited:hover {
background:url("../images/next.gif") right 45% no-repeat;
}
*/
#lightbox-infoBox {
font:10px Verdana, Helvetica, sans-serif;
background-color:#FFFFFF;
margin:0 auto;
padding:none;
/* width: 100%;
padding: 0 10px 0; */
}
#lightbox-infoContainer {
padding-left:10px;
padding-right:10px;
padding-top:5px;
padding-bottom:5px;
color:#666;
line-height:normal;
/* height:30px; */
}
#lightbox-infoHeader {
width:100%;
text-align:center;
}
#lightbox-caption {
text-align:justify;
}
#lightbox-caption-title {
font-weight:bold;
}
#lightbox-caption-description {
font-weight:normal;
}
#lightbox-infoFooter {
margin-top:3px;
color:#999999;
}
#lightbox-currentNumber {
display:block;
width:49%;
float:left;
text-align:left;
}
#lightbox-close {
display:block;
width:45%;
float:right;
text-align:right;
}
#lightbox-close-button{
padding-left:30%;
}
#lightbox-close-button, #lightbox-close-button:link, #lightbox-close-button:visited, #lightbox-close-button:hover {
text-decoration:underline;
color:#999999;
}
#lightbox-close-button:hover {
color:#666666;
}
#lightbox-infoContainer-clear {
clear:both;
visibility:hidden;
} | zzstudiowebsite | trunk/jquery_lightbox/css/jquery.lightbox.css | CSS | lgpl | 4,896 |
# generate tag file for lookupfile plugin
echo -e "!_TAG_FILE_SORTED\t2\t/2=foldcase/" > filenametags
find . -not -regex '.*\.\(png\|gif\|svn-base\|o\|Po\)' -type f -printf "%f\t%p\t1\n" | sort -f >> filenametags
| zybdoc | trunk/cfg/genlkfile.sh | Shell | asf20 | 213 |
<?php
/**
* This makes our life easier when dealing with paths. Everything is relative
* to the application root now.
*/
chdir(dirname(__DIR__));
// Decline static file requests back to the PHP built-in webserver
if (php_sapi_name() === 'cli-server' && is_file(__DIR__ . parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH))) {
return false;
}
// Setup autoloading
require 'init_autoloader.php';
// Run the application!
Zend\Mvc\Application::init(require 'config/application.config.php')->run();
| zz-phy | trunk/public/index_dist.php | PHP | asf20 | 502 |
/*
Created on : 2014. 3. 15, 오후 1:06:23
Author : Yonse
*/
@font-face {
font-family: 'NanumBarunGothic';
font-style: normal;
font-weight: 400;
src: local('NanumBarunGothic'), url(../fonts/NanumBarunGothic.woff) format('woff');
}
@font-face {
font-family: 'NanumBarunGothicBold';
font-style: normal;
font-weight: 700;
src: local('NanumBarunGothicBold'), url(../fonts/NanumBarunGothicBold.woff) format('woff');
}
body {
font-family: "NanumBarunGothic";
}
| zz-phy | trunk/public/css/phy_zend.css | CSS | asf20 | 485 |
body {
padding-top: 60px;
padding-bottom: 40px;
}
.zf-green {
color: #68b604;
}
.btn-success {
background-color: #57a900;
background-image: -moz-linear-gradient(top, #70d900, #57a900);
background-image: -ms-linear-gradient(top, #70d900, #57a900);
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#70d900), to(#57a900));
background-image: -webkit-linear-gradient(top, #70d900, #57a900);
background-image: -o-linear-gradient(top, #70d900, #57a900);
background-image: linear-gradient(top, #70d900, #57a900);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#70d900', endColorstr='#57a900', GradientType=0);
}
.btn-success:hover,
.btn-success:active,
.btn-success.active,
.btn-success.disabled,
.btn-success[disabled] {
background-color: #57a900;
}
.btn-success:active, .btn-success.active {
background-color: #57a900;
}
div.container a.brand {
background: url("../img/zf2-logo.png") no-repeat scroll 0 10px transparent;
margin-left: 0;
padding: 8px 20px 12px 40px;
}
| zz-phy | trunk/public/css/style.css | CSS | asf20 | 1,042 |
<?php
/**
* application root
*/
chdir(dirname(__DIR__));
// Decline static file requests back to the PHP built-in webserver
if (php_sapi_name() === 'cli-server' && is_file(__DIR__ . parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH))) {
return false;
}
// Setup autoloading
require 'init_autoloader.php';
// Run the application!
Zend\Mvc\Application::init(require 'config/application.config.php')->run();
| zz-phy | trunk/public/index.php | PHP | asf20 | 412 |
<?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
namespace Application;
use Zend\Mvc\ModuleRouteListener;
use Zend\Mvc\MvcEvent;
class Module
{
public function onBootstrap(MvcEvent $e)
{
$eventManager = $e->getApplication()->getEventManager();
$moduleRouteListener = new ModuleRouteListener();
$moduleRouteListener->attach($eventManager);
}
public function getConfig()
{
return include __DIR__ . '/config/module.config.php';
}
public function getAutoloaderConfig()
{
return array(
'Zend\Loader\StandardAutoloader' => array(
'namespaces' => array(
__NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__,
),
),
);
}
}
| zz-phy | trunk/module/Application/Module.php | PHP | asf20 | 1,064 |
<div class="jumbotron">
<h1><?php echo sprintf($this->translate('Welcome to %sZend Framework 2%s'), '<span class="zf-green">', '</span>') ?></h1>
<p><?php echo sprintf($this->translate('Congratulations! You have successfully installed the %sZF2 Skeleton Application%s. You are currently running Zend Framework version %s. This skeleton can serve as a simple starting point for you to begin building your application on ZF2.'), '<a href="https://github.com/zendframework/ZendSkeletonApplication" target="_blank">', '</a>', \Zend\Version\Version::VERSION) ?></p>
<p><a class="btn btn-success btn-lg" href="https://github.com/zendframework/zf2" target="_blank"><?php echo $this->translate('Fork Zend Framework 2 on GitHub') ?> »</a></p>
</div>
<div class="row">
<div class="col-md-4">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title"><?php echo $this->translate('Follow Development') ?></h3>
</div>
<div class="panel-body">
<p><?php echo sprintf($this->translate('Zend Framework 2 is under active development. If you are interested in following the development of ZF2, there is a special ZF2 portal on the official Zend Framework website which provides links to the ZF2 %swiki%s, %sdev blog%s, %sissue tracker%s, and much more. This is a great resource for staying up to date with the latest developments!'), '<a href="http://framework.zend.com/wiki/display/ZFDEV2/Home">', '</a>', '<a href="http://framework.zend.com/zf2/blog">', '</a>', '<a href="https://github.com/zendframework/zf2/issues">', '</a>') ?></p>
<p><a class="btn btn-success pull-right" href="http://framework.zend.com/zf2" target="_blank"><?php echo $this->translate('ZF2 Development Portal') ?> »</a></p>
</div>
</div>
</div>
<div class="col-md-4">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title"><?php echo $this->translate('Discover Modules') ?></h3>
</div>
<div class="panel-body">
<p><?php echo sprintf($this->translate('The community is working on developing a community site to serve as a repository and gallery for ZF2 modules. The project is available %son GitHub%s. The site is currently live and currently contains a list of some of the modules already available for ZF2.'), '<a href="https://github.com/zendframework/modules.zendframework.com">', '</a>') ?></p>
<p><a class="btn btn-success pull-right" href="http://modules.zendframework.com/" target="_blank"><?php echo $this->translate('Explore ZF2 Modules') ?> »</a></p>
</div>
</div>
</div>
<div class="col-md-4">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title"><?php echo $this->translate('Help & Support') ?></h3>
</div>
<div class="panel-body">
<p><?php echo sprintf($this->translate('If you need any help or support while developing with ZF2, you may reach us via IRC: %s#zftalk on Freenode%s. We\'d love to hear any questions or feedback you may have regarding the beta releases. Alternatively, you may subscribe and post questions to the %smailing lists%s.'), '<a href="irc://irc.freenode.net/zftalk">', '</a>', '<a href="http://framework.zend.com/wiki/display/ZFDEV/Mailing+Lists">', '</a>') ?></p>
<p><a class="btn btn-success pull-right" href="http://webchat.freenode.net?channels=zftalk" target="_blank"><?php echo $this->translate('Ping us on IRC') ?> »</a></p>
</div>
</div>
</div>
</div>
| zz-phy | trunk/module/Application/view/application/index/index_dist.phtml | HTML+PHP | asf20 | 3,748 |
<div class="well">
<h1><?php echo sprintf($this->translate('Welcome to %sPHY%s'), '<span class="zf-green">', '</span>') ?></h1>
<p><a class="btn btn-success" href=""><?php echo $this->translate('Test') ?> »</a></p>
</div>
<div class="row">
</div>
| zz-phy | trunk/module/Application/view/application/index/index.phtml | HTML+PHP | asf20 | 268 |
<h1><?php echo $this->translate('A 404 error occurred') ?></h1>
<h2><?php echo $this->message ?></h2>
<?php if (isset($this->reason) && $this->reason): ?>
<?php
$reasonMessage= '';
switch ($this->reason) {
case 'error-controller-cannot-dispatch':
$reasonMessage = $this->translate('The requested controller was unable to dispatch the request.');
break;
case 'error-controller-not-found':
$reasonMessage = $this->translate('The requested controller could not be mapped to an existing controller class.');
break;
case 'error-controller-invalid':
$reasonMessage = $this->translate('The requested controller was not dispatchable.');
break;
case 'error-router-no-match':
$reasonMessage = $this->translate('The requested URL could not be matched by routing.');
break;
default:
$reasonMessage = $this->translate('We cannot determine at this time why a 404 was generated.');
break;
}
?>
<p><?php echo $reasonMessage ?></p>
<?php endif ?>
<?php if (isset($this->controller) && $this->controller): ?>
<dl>
<dt><?php echo $this->translate('Controller') ?>:</dt>
<dd><?php echo $this->escapeHtml($this->controller) ?>
<?php
if (isset($this->controller_class)
&& $this->controller_class
&& $this->controller_class != $this->controller
) {
echo '(' . sprintf($this->translate('resolves to %s'), $this->escapeHtml($this->controller_class)) . ')';
}
?>
</dd>
</dl>
<?php endif ?>
<?php if (isset($this->display_exceptions) && $this->display_exceptions): ?>
<?php if(isset($this->exception) && $this->exception instanceof Exception): ?>
<hr/>
<h2><?php echo $this->translate('Additional information') ?>:</h2>
<h3><?php echo get_class($this->exception); ?></h3>
<dl>
<dt><?php echo $this->translate('File') ?>:</dt>
<dd>
<pre class="prettyprint linenums"><?php echo $this->exception->getFile() ?>:<?php echo $this->exception->getLine() ?></pre>
</dd>
<dt><?php echo $this->translate('Message') ?>:</dt>
<dd>
<pre class="prettyprint linenums"><?php echo $this->exception->getMessage() ?></pre>
</dd>
<dt><?php echo $this->translate('Stack trace') ?>:</dt>
<dd>
<pre class="prettyprint linenums"><?php echo $this->exception->getTraceAsString() ?></pre>
</dd>
</dl>
<?php
$e = $this->exception->getPrevious();
if ($e) :
?>
<hr/>
<h2><?php echo $this->translate('Previous exceptions') ?>:</h2>
<ul class="unstyled">
<?php while($e) : ?>
<li>
<h3><?php echo get_class($e); ?></h3>
<dl>
<dt><?php echo $this->translate('File') ?>:</dt>
<dd>
<pre class="prettyprint linenums"><?php echo $e->getFile() ?>:<?php echo $e->getLine() ?></pre>
</dd>
<dt><?php echo $this->translate('Message') ?>:</dt>
<dd>
<pre class="prettyprint linenums"><?php echo $e->getMessage() ?></pre>
</dd>
<dt><?php echo $this->translate('Stack trace') ?>:</dt>
<dd>
<pre class="prettyprint linenums"><?php echo $e->getTraceAsString() ?></pre>
</dd>
</dl>
</li>
<?php
$e = $e->getPrevious();
endwhile;
?>
</ul>
<?php endif; ?>
<?php else: ?>
<h3><?php echo $this->translate('No Exception available') ?></h3>
<?php endif ?>
<?php endif ?>
| zz-phy | trunk/module/Application/view/error/404.phtml | HTML+PHP | asf20 | 3,403 |