1.修改匿评提示弹出提示样式

2.增加新增作业静态页面
This commit is contained in:
sw 2014-11-02 12:58:09 +08:00
parent c2e9363d44
commit 78bc458e84
5 changed files with 124 additions and 55 deletions

View File

@ -32,7 +32,7 @@
<% if !@is_teacher && @homework_list.count > 0%>
$('#ajax-modal').html('<%= escape_javascript(render :partial => 'homework_attach/praise_alert') %>');
showModal('ajax-modal', '480px');
$('#ajax-modal').css('height','250px');
$('#ajax-modal').css('height','240px');
<% end %>
}
</script>

View File

@ -10,9 +10,9 @@
<div id="popbox02">
<!--<div class="alert" style="position: fixed;">-->
<!--<div>-->
<!--<span class="close02" style="display: block;" onclick="pupclose()"></span>-->
<!--<span class="close02" style="display: block;" onclick="hideModal(this)"></span>-->
<!--</div>-->
<!--</div> &lt;!&ndash;-- alert end--&ndash;&gt;-->
<!--</div>-->
<div class="ni_con">
<h2><img src="/images/bid/pic_top.jpg" width="188" height="37" alt="匿名评价" /></h2>

View File

@ -1,51 +1,119 @@
<p style="font-weight: bold; color: rgb(237,137,36)" xmlns="http://www.w3.org/1999/html">
<%=h l(:label_new_homework)%>
</p>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>新建作业</title>
<%= stylesheet_link_tag 'css', :media => 'all' %>
<script type="text/javascript" language="javascript">
function g(o){return document.getElementById(o);}
function HoverLi(n){
for(var i=1;i<=2;i++){g('tb_'+i).className='normaltab';g('tbc_0'+i).className='undis';}g('tbc_0'+n).className='dis';g('tb_'+n).className='hovertab';
}
</script>
<div class="box">
<%= form_for('new_form', :method => :post,
:url => {:controller => 'homework_attach',
:action => 'create',
:user_id => User.current.id,
:bid_id => @bid
}) do |f|%>
<p style=" padding: 3px 0 3px 0;padding-left: 50px; clear:left;">
<strong>标&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;题&nbsp;<span style="color: red">*</span></strong>
<%= f.text_field "name", :required => true, :size => 60, :style => "width:490px;", :maxlength => 254 %>
</p>
<p style=" padding: 3px 0 3px 0;padding-left: 50px; clear:left;">
<strong>
提交项目&nbsp;&nbsp;
</strong>
<%= f.select :project_id,options_for_select(user_projects_option), {},{:style => "width:490px;"} %>
<%= link_to '创建项目', new_project_path(course: 0, project_type: 0), :target => '_blank' %>
<p class="font_lighter" style="padding-left:120px;clear:left;">
提交项目可以为空
</p>
</p>
<p style=" padding: 3px 0 3px 0;padding-left: 50px; clear:left;">
<strong style="vertical-align: top">
描&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;述&nbsp;&nbsp;
</strong>
<span style="margin-left:-10px;padding-right: 20px;">
<%= f.text_area "description", :rows => 8, :class => 'wiki-edit', :style => "font-size:small;width:490px;margin-left:10px;", :maxlength => 5000 %>
</span>
</p>
<p style="padding-left: 60px">
<fieldset style="text-align: left;">
<legend>
<%= l(:label_attachment_plural) %>
</legend>
<p style=" padding: 3px 0 3px 0;padding-left: 50px; clear:left;">
<%= render :partial => 'attachments/form' %>
</head>
<body>
<div class="container">
<div class="Newwork">
<div id="tb_" class="tb_">
<ul>
<li id="tb_1" class="hovertab" onmouseover="x:HoverLi(1);" style="width: auto; padding:5px 10px 0;">
课程名称课程名称</li>
<li id="tb_2" class="normaltab" onmouseover="i:HoverLi(2);">
成员</li>
<li class="N_top" ><a href="#" target="_blank" >创建项目</a></li>
</ul>
</div>
<div class="ctt">
<div class="dis" id="tbc_01">
<div class="N_con">
<form>
<p>
<label><span class="c_red">*</span>&nbsp;&nbsp;作品名称&nbsp;&nbsp;&nbsp;&nbsp;</label>
<input id="" type="text" name="" class="w430 bo" placeholder="作品名称">
</p>
</fieldset>
</p>
<p>
<label>&nbsp;&nbsp;&nbsp;提交项目<img src="images/pic_question.png" width="16" height="16" Title="项目是一种由用户创建的基于网络的协作空间能够为个人或小组提供分布式的协同交流和资料管理等方面的支持。项目托管平台http://forge.trustie.ne"></label>
<select name="" id="" class="w350 bo">
<option value="1">N</option>
<option value="2">M</option>
</select>
</p>
<p>
<label style="float:left;"><span class="c_red">*</span>&nbsp;&nbsp;作业描述&nbsp;&nbsp;&nbsp;&nbsp;</label>
<textarea id="" name="" placeholder="最多3000个汉字(或6000个英文字符)" class="w620" ></textarea>
</p>
<div class="cl"></div>
<p>
<label>&nbsp;&nbsp;&nbsp;添加附件&nbsp;&nbsp;&nbsp;&nbsp;</label>
<input type="button" name="" value="文件浏览" style="width:80px; height:26px; color:#606060;">&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-weight:normal; color:#999;">-文件不超过200MB</span>
</p>
<p>
<span style="float: left;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
<a href="#" target="_blank" class="tijiao">提交作业</a><a href="#" target="_blank" class="tijiao">重&nbsp;&nbsp;置</a>
<div class="cl"></div>
</p>
</form>
</div><!---创建作业内容结束-->
</div>
<div class="undis" id="tbc_02">
<div class="members_left">
<ul style=" border-bottom:none;">
<li><span class="w260 f_b" >用户</span><span class="w260 f_b">角色</span><span></span></li>
<li ><a href="#" class="w260">gugu01</a><span class="w260">发布人员</span><a href="#">删除</a></li>
<li><a href="#" class="w260">gugu01</a><span class="w260">参与人员</span ><a href="#">删除</a></li>
<li><a href="#" class="w260">gugu01</a><span class="w260">参与人员</span ><a href="#">删除</a></li>
<li><a href="#" class="w260">gugu01</a><span class="w260">参与人员</span ><a href="#">删除</a></li>
</ul>
</div><!-- 左边-->
<div class="members_right">
<fieldset style=" border:none; margin-top:10px;">
<legend style=" font-weight:bold; color:#15bccf;">添加成员</legend>
<p><label for="principal_search">搜索用户或组:</label><input id="principal_search" name="principal_search" type="text" class="N_search" data-value-was=""></p>
<div id="principals_for_new_member">
<div id="principals">
<label><input name="membership[user_ids][]" type="checkbox" value="195"> alan</label><br>
<label><input name="membership[user_ids][]" type="checkbox" value="231"> zoujiang09</label><br>
<label><input name="membership[user_ids][]" type="checkbox" value="241"> FANG_nudt</label><br>
<label><input name="membership[user_ids][]" type="checkbox" value="282"> gcm3651</label><br>
<label><input name="membership[user_ids][]" type="checkbox" value="307"> fhx569287825</label><br>
<label><input name="membership[user_ids][]" type="checkbox" value="500"> windleos</label><br>
<label><input name="membership[user_ids][]" type="checkbox" value="502"> acbuwa</label><br>
<label><input name="membership[user_ids][]" type="checkbox" value="575"> dislu</label><br>
<label><input name="membership[user_ids][]" type="checkbox" value="597"> huai_wang</label><br>
<label><input name="membership[user_ids][]" type="checkbox" value="603"> H.Lee</label><br>
</div>
<div class="pagination_new">
<ul class="wlist" style=" float:left;">
<li><a href="#">上一页</a></li>
<li><a href="#">1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">...</a></li>
<li><a href="#">下一页</a></li>
</ul>
<div class="cl"></div>
</div>
</div>
<p><a href="#" class="tijiao">新增成员</a></p>
</fieldset>
</div><!-- 右边-->
</div><!---成员结束-->
</div>
</div>
</div><!--新建作业结束-->
<p style="padding-left: 60px;padding-top: 5px;">
<span >
<%= submit_tag t(:label_button_ok), :sta => 0, :class => "enterprise"%>
</span>
</p>
<% end %>
</div>
</body>
</html>

View File

@ -1,3 +1,4 @@
$('#ajax-modal').html('<%= escape_javascript(render :partial => 'show',:locals => {:comprehensive_evaluation => @comprehensive_evaluation,:homework => @homework, :teaher_score => @teaher_score}) %>');
showModal('ajax-modal', '503px');
$('#ajax-modal').css('height','569px');

View File

@ -8,10 +8,7 @@ ul,li{ list-style-type:none}
a{ text-decoration:none; }
a:hover{ text-decoration:underline;}
.container{ width:940px; margin:0 auto; padding-top:125px;}
.container{ width:940px; margin:0 auto; }
/* 作业列表 */
.ttl{ }
.ctt{height:820px;clear:both; }
@ -120,7 +117,7 @@ a:hover.ping_sub{ background:#14a8b9;}
/* 创建作业 */
.Newwork{ width:918px; height:418px; border:1px solid #c3c3c3;}
.N_top{ height:35px; background:#e5e5e5; border:1px solid #fff; width:891px; padding:5px 10px 0 15px;}
.N_top{ height:35px; background:#e5e5e5; border:1px solid #fff; width:669px; padding:5px 10px 0 15px;}
.N_top h2{ color:#616161; font-size:14px; float:left;}
.N_top a{ float:right; font-size:14px; color:#15bccf; display:block; background:url(images/pic_ad.png) 0 5px no-repeat; height:20px; width:60px; padding-left:16px;}
.N_con{ color:#484747; font-weight:bold; width:720px; margin:15px auto;}
@ -140,6 +137,9 @@ a:hover.tijiao{ background:#0f99a9;}
.ni_con p{ color:#808181;}
.ni_con a:hover{ text-decoration:none;}
/*.ui-widget-header{display: none;}*/