Merge branch 'Poll' of http://repository.trustie.net/xianbo/trustie2 into Poll
commit
40d6ebfd88
@ -1,3 +1,12 @@
|
|||||||
<div id="popbox">
|
<div id="popbox" style="text-align: center;margin-top: 25px">
|
||||||
shaksdkfdks
|
<% if status == 0 %>
|
||||||
|
<h3 style="font-weight: normal;color: green">提交成功!</h3>
|
||||||
|
<%= link_to "确定", poll_index_path(:polls_group_id => @course.id,:polls_type => 'Course'),:class => 'commit'%>
|
||||||
|
<% elsif status == 1 %>
|
||||||
|
<h3 style="font-weight: normal;color: red">您还有尚未作答的题目请完成后在提交!</h3>
|
||||||
|
<%= link_to "确定", "javascript:void(0)",:onclick => 'hidden_atert_form();',:class => 'commit'%>
|
||||||
|
<% else %>
|
||||||
|
<h3 style="font-weight: normal;color: red">发生未知错误,请检查您的网络。</h3>
|
||||||
|
<%= link_to "确定", "javascript:void(0)",:onclick => 'hidden_atert_form();',:class => 'commit'%>
|
||||||
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,10 +1,9 @@
|
|||||||
$('#ajax-modal').html('<%= escape_javascript(render :partial => 'commit_alert') %>');
|
$('#ajax-modal').html('<%= escape_javascript(render :partial => 'commit_alert',:locals => {:status => @status}) %>');
|
||||||
showModal('ajax-modal', '513px');
|
showModal('ajax-modal', '400px');
|
||||||
$('#ajax-modal').css('height','200px');
|
$('#ajax-modal').css('height','100px');
|
||||||
$('#ajax-modal').siblings().remove();
|
$('#ajax-modal').siblings().remove();
|
||||||
$('#ajax-modal').before("<span style='float: right;cursor:pointer;padding-left: 513px;'>" +
|
$('#ajax-modal').before("<span style='float: right;cursor:pointer;'>" +
|
||||||
"<a href='#' onclick='hidden_atert_form();'><img src='/images/bid/close.png' width='26px' height='26px' /></a></span>");
|
"<a href='#' onclick='hidden_atert_form();'><img src='/images/bid/close.png' width='26px' height='26px' /></a></span>");
|
||||||
$('#ajax-modal').parent().removeClass("alert_praise");
|
$('#ajax-modal').parent().removeClass("alert_praise");
|
||||||
$('#ajax-modal').parent().css("top","50%").css("left","20%");
|
$('#ajax-modal').parent().css("top","").css("left","");
|
||||||
$('#ajax-modal').parent().css("position","absolute");
|
|
||||||
$('#ajax-modal').parent().addClass("alert_box");
|
$('#ajax-modal').parent().addClass("alert_box");
|
@ -1,160 +1,160 @@
|
|||||||
.overlay_mac_os_x_dialog {
|
.overlay_mac_os_x_dialog {
|
||||||
background-color: #FF7224;
|
background-color: #FF7224;
|
||||||
filter:alpha(opacity=60);
|
filter:alpha(opacity=60);
|
||||||
-moz-opacity: 0.6;
|
-moz-opacity: 0.6;
|
||||||
opacity: 0.6;
|
opacity: 0.6;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mac_os_x_dialog_nw {
|
.mac_os_x_dialog_nw {
|
||||||
background: transparent url(mac_os_x_dialog/L.png) repeat-y top left;
|
background: transparent url(mac_os_x_dialog/L.png) repeat-y top left;
|
||||||
width:16px;
|
width:16px;
|
||||||
height:16px;
|
height:16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mac_os_x_dialog_n {
|
.mac_os_x_dialog_n {
|
||||||
background: transparent url(mac_os_x_dialog/bg.gif) repeat 0 0;
|
background: transparent url(mac_os_x_dialog/bg.gif) repeat 0 0;
|
||||||
height:18px;
|
height:18px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mac_os_x_dialog_ne {
|
.mac_os_x_dialog_ne {
|
||||||
background: transparent url(mac_os_x_dialog/R.png) repeat-y top left;
|
background: transparent url(mac_os_x_dialog/R.png) repeat-y top left;
|
||||||
width:16px;
|
width:16px;
|
||||||
height:16px;
|
height:16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mac_os_x_dialog_w {
|
.mac_os_x_dialog_w {
|
||||||
background: transparent url(mac_os_x_dialog/L.png) repeat-y top left;
|
background: transparent url(mac_os_x_dialog/L.png) repeat-y top left;
|
||||||
width:16px;
|
width:16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mac_os_x_dialog_e {
|
.mac_os_x_dialog_e {
|
||||||
background: transparent url(mac_os_x_dialog/R.png) repeat-y top right;
|
background: transparent url(mac_os_x_dialog/R.png) repeat-y top right;
|
||||||
width:16px;
|
width:16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mac_os_x_dialog_sw {
|
.mac_os_x_dialog_sw {
|
||||||
background: transparent url(mac_os_x_dialog/BL.png) no-repeat 0 0;
|
background: transparent url(mac_os_x_dialog/BL.png) no-repeat 0 0;
|
||||||
width:31px;
|
width:31px;
|
||||||
height:40px;
|
height:40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mac_os_x_dialog_s {
|
.mac_os_x_dialog_s {
|
||||||
background: transparent url(mac_os_x_dialog/B.png) repeat-x 0 0;
|
background: transparent url(mac_os_x_dialog/B.png) repeat-x 0 0;
|
||||||
height:40px;
|
height:40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mac_os_x_dialog_se, .mac_os_x_dialog_sizer {
|
.mac_os_x_dialog_se, .mac_os_x_dialog_sizer {
|
||||||
background: transparent url(mac_os_x_dialog/BR.png) no-repeat 0 0;
|
background: transparent url(mac_os_x_dialog/BR.png) no-repeat 0 0;
|
||||||
width:31px;
|
width:31px;
|
||||||
height:40px;
|
height:40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mac_os_x_dialog_sizer {
|
.mac_os_x_dialog_sizer {
|
||||||
cursor:se-resize;
|
cursor:se-resize;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mac_os_x_dialog_close {
|
.mac_os_x_dialog_close {
|
||||||
width: 19px;
|
width: 19px;
|
||||||
height: 19px;
|
height: 19px;
|
||||||
background: transparent url(mac_os_x_dialog/close.gif) no-repeat 0 0;
|
background: transparent url(mac_os_x_dialog/close.gif) no-repeat 0 0;
|
||||||
position:absolute;
|
position:absolute;
|
||||||
top:12px;
|
top:12px;
|
||||||
left:25px;
|
left:25px;
|
||||||
cursor:pointer;
|
cursor:pointer;
|
||||||
z-index:1000;
|
z-index:1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mac_os_x_dialog_minimize {
|
.mac_os_x_dialog_minimize {
|
||||||
width: 19px;
|
width: 19px;
|
||||||
height: 19px;
|
height: 19px;
|
||||||
background: transparent url(mac_os_x_dialog/minimize.gif) no-repeat 0 0;
|
background: transparent url(mac_os_x_dialog/minimize.gif) no-repeat 0 0;
|
||||||
position:absolute;
|
position:absolute;
|
||||||
top:12px;
|
top:12px;
|
||||||
left:45px;
|
left:45px;
|
||||||
cursor:pointer;
|
cursor:pointer;
|
||||||
z-index:1000;
|
z-index:1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mac_os_x_dialog_maximize {
|
.mac_os_x_dialog_maximize {
|
||||||
width: 19px;
|
width: 19px;
|
||||||
height: 19px;
|
height: 19px;
|
||||||
background: transparent url(mac_os_x_dialog/maximize.gif) no-repeat 0 0;
|
background: transparent url(mac_os_x_dialog/maximize.gif) no-repeat 0 0;
|
||||||
position:absolute;
|
position:absolute;
|
||||||
top:12px;
|
top:12px;
|
||||||
left:65px;
|
left:65px;
|
||||||
cursor:pointer;
|
cursor:pointer;
|
||||||
z-index:1000;
|
z-index:1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mac_os_x_dialog_title {
|
.mac_os_x_dialog_title {
|
||||||
float:left;
|
float:left;
|
||||||
height:14px;
|
height:14px;
|
||||||
font-family: Tahoma, Arial, sans-serif;
|
font-family: Tahoma, Arial, sans-serif;
|
||||||
font-size:12px;
|
font-size:12px;
|
||||||
text-align:center;
|
text-align:center;
|
||||||
margin-top:6px;
|
margin-top:6px;
|
||||||
width:100%;
|
width:100%;
|
||||||
color:#000;
|
color:#000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mac_os_x_dialog_content {
|
.mac_os_x_dialog_content {
|
||||||
overflow:auto;
|
overflow:auto;
|
||||||
color: #222;
|
color: #222;
|
||||||
font-family: Tahoma, Arial, sans-serif;
|
font-family: Tahoma, Arial, sans-serif;
|
||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
background: transparent url(mac_os_x_dialog/bg.gif) repeat 0 0;
|
background: transparent url(mac_os_x_dialog/bg.gif) repeat 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mac_os_x_dialog_buttons {
|
.mac_os_x_dialog_buttons {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
/* FOR IE */
|
/* FOR IE */
|
||||||
* html .mac_os_x_dialog_nw {
|
* html .mac_os_x_dialog_nw {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/L.png", sizingMethod="scale");
|
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/L.png", sizingMethod="scale");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
* html .mac_os_x_dialog_ne {
|
* html .mac_os_x_dialog_ne {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/R.png", sizingMethod="scale");
|
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/R.png", sizingMethod="scale");
|
||||||
}
|
}
|
||||||
|
|
||||||
* html .mac_os_x_dialog_w {
|
* html .mac_os_x_dialog_w {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/L.png", sizingMethod="scale");
|
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/L.png", sizingMethod="scale");
|
||||||
}
|
}
|
||||||
|
|
||||||
* html .mac_os_x_dialog_e {
|
* html .mac_os_x_dialog_e {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/R.png", sizingMethod="scale");
|
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/R.png", sizingMethod="scale");
|
||||||
}
|
}
|
||||||
|
|
||||||
* html .mac_os_x_dialog_sw {
|
* html .mac_os_x_dialog_sw {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/BL.png", sizingMethod="crop");
|
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/BL.png", sizingMethod="crop");
|
||||||
}
|
}
|
||||||
|
|
||||||
* html .mac_os_x_dialog_s {
|
* html .mac_os_x_dialog_s {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/B.png", sizingMethod="scale");
|
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/B.png", sizingMethod="scale");
|
||||||
}
|
}
|
||||||
|
|
||||||
* html .mac_os_x_dialog_se {
|
* html .mac_os_x_dialog_se {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/BR.png", sizingMethod="crop");
|
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/BR.png", sizingMethod="crop");
|
||||||
}
|
}
|
||||||
|
|
||||||
* html .mac_os_x_dialog_sizer {
|
* html .mac_os_x_dialog_sizer {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/BR.png", sizingMethod="crop");
|
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/BR.png", sizingMethod="crop");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in new issue