diff --git a/app/controllers/account_controller.rb b/app/controllers/account_controller.rb index 128475e6..649cf19d 100644 --- a/app/controllers/account_controller.rb +++ b/app/controllers/account_controller.rb @@ -145,6 +145,7 @@ class AccountController < ApplicationController @com_coop_img = CooImg.where(:img_type => 'com_coop').order("position asc") @edu_coop_img = CooImg.where(:img_type => 'edu_coop').order("position asc") + @alliance_img = CooImg.where(:img_type => 'alliance_coop').order("position asc") render :layout => 'base_edu' end @@ -152,6 +153,7 @@ class AccountController < ApplicationController def update_help @edu_coop = "edu_coop" @com_coop = "com_coop" + @alliance_coop = "alliance_coop" end def update_agreement @@ -232,7 +234,7 @@ class AccountController < ApplicationController end if File.exist?(diskfile1) pos = CooImg.order("position asc").last.position - CooImg.create(:src_states =>params[:img_url] ,:url_states => diskfile2,:img_type =>params[:sourse_type], :position => pos) + CooImg.create(:src_states =>params[:img_url] ,:url_states => diskfile2,:img_type => params[:sourse_type], :position => pos) end redirect_to help_path(:index => 3) end diff --git a/app/views/account/_cooperative_partner_show.erb b/app/views/account/_cooperative_partner_show.erb index 67452b18..1d3bff9b 100644 --- a/app/views/account/_cooperative_partner_show.erb +++ b/app/views/account/_cooperative_partner_show.erb @@ -1,8 +1,28 @@ <%= stylesheet_link_tag 'css/public','css/common'%>

合作伙伴

+
+

产学联盟

+ + +
+
-

企业合作

+

知名企业

-

高校合作

+

各类院校