2016-03-15 15:42:20 +08:00
|
|
|
<%= javascript_include_tag 'bootstrap' %>
|
2015-09-25 10:35:04 +08:00
|
|
|
<%= stylesheet_link_tag 'project' %>
|
|
|
|
<%= stylesheet_link_tag 'leftside' %>
|
2016-03-15 15:42:20 +08:00
|
|
|
<%= javascript_include_tag 'attachments' %>
|
|
|
|
|
2015-09-25 10:35:04 +08:00
|
|
|
<script>
|
|
|
|
function remote_get_resources(user_id,type){
|
|
|
|
|
|
|
|
}
|
2016-03-02 16:54:07 +08:00
|
|
|
$(document).ready(function(){
|
2016-05-24 20:04:06 +08:00
|
|
|
$(".resource-switch").click(function(){
|
|
|
|
$(".resource-switch").children().removeClass("resource-tab-active");
|
|
|
|
$(this).children().addClass("resource-tab-active");
|
2016-03-02 16:54:07 +08:00
|
|
|
});
|
2016-05-24 20:04:06 +08:00
|
|
|
});
|
2015-09-25 10:35:04 +08:00
|
|
|
function remote_search(){
|
|
|
|
$("#resource_search_form").submit();
|
|
|
|
}
|
|
|
|
|
|
|
|
function closeModal()
|
|
|
|
{
|
|
|
|
hideModal($(".uploadBoxContainer"));
|
|
|
|
}
|
|
|
|
function closePopUp(){
|
|
|
|
hideModal($(".boxContainer"));
|
|
|
|
}
|
|
|
|
|
|
|
|
function check_files(){
|
|
|
|
return $("#attachments_fields").children().length == 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
function submit_files(){
|
|
|
|
$("#upload_form").submit();
|
|
|
|
}
|
2015-12-30 10:00:45 +08:00
|
|
|
|
|
|
|
function check_des(event){
|
|
|
|
if($(".sectionContent").find('input[type="radio"]:checked').length <= 0){
|
|
|
|
event.preventDefault();
|
|
|
|
$(".orgDirection").text('目标地址组织不能为空')
|
|
|
|
return false;
|
|
|
|
}else if($(".columnContent").find('input[type="radio"]:checked').length <= 0){
|
|
|
|
event.preventDefault();
|
|
|
|
$(".orgDirection").text('目标地址栏目不能为空')
|
|
|
|
return false;
|
|
|
|
}else{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
2015-09-25 10:35:04 +08:00
|
|
|
</script>
|
2016-03-04 09:57:54 +08:00
|
|
|
<div>
|
2016-03-02 11:30:19 +08:00
|
|
|
<ul class="resource-banner">
|
2016-03-02 16:54:07 +08:00
|
|
|
<li class="fl resource-switch">
|
2016-03-15 11:09:11 +08:00
|
|
|
<a href="<%= user_resource_user_path(@user, :type => '6', :status => 6) %>" class="resource-tab resource-tab-active" id="public_resource_list" data-remote="true">公共资源</a>
|
2016-03-02 16:54:07 +08:00
|
|
|
</li>
|
|
|
|
<li class="fl resource-switch">
|
2016-03-15 11:09:11 +08:00
|
|
|
<a href="<%= user_resource_user_path(@user, :type => '1', :status => 6) %>" class="resource-tab" id="my_resource_list" data-remote="true">我的资源</a>
|
2016-03-02 16:54:07 +08:00
|
|
|
</li>
|
2016-05-25 09:10:41 +08:00
|
|
|
<!--<li class="fl resource-switch">-->
|
|
|
|
<!--<a href="<%#= user_resource_user_path(@user, :type => '2', :status => 6) %>" class="resource-tab" id="private_resource_list" data-remote="true">申请资源</a>-->
|
|
|
|
<!--</li>-->
|
2016-05-25 14:08:05 +08:00
|
|
|
<li class="fl w770 border-bottom h34"> </li>
|
2016-03-02 11:30:19 +08:00
|
|
|
<li class="fr resource-banner-li border-bottom h34">
|
2016-03-15 11:09:11 +08:00
|
|
|
<div id="user_resource_type_filter">
|
|
|
|
<%= render :partial => 'user_resource_type_filter' %>
|
|
|
|
</div>
|
2016-03-02 11:30:19 +08:00
|
|
|
</li>
|
|
|
|
<div class="cl"></div>
|
|
|
|
</ul>
|
|
|
|
<div class="cl"></div>
|
|
|
|
<div id ="resource_remote">
|
|
|
|
<%= render :partial => 'user_resource_info' %>
|
2015-09-25 10:35:04 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="cl"></div>
|
2016-03-02 11:30:19 +08:00
|
|
|
|
|
|
|
|
2015-09-25 10:35:04 +08:00
|
|
|
|
|
|
|
|