modify some little bug && merge handle
This commit is contained in:
parent
806fae7b19
commit
8ff8d0f4d4
|
@ -77,7 +77,7 @@ class MyController < ApplicationController
|
|||
# ue.save
|
||||
# end
|
||||
|
||||
# added by bai 往数据库里写职业、性别和地区
|
||||
# added by bai
|
||||
if @user.user_extensions.nil?
|
||||
se = UserExtensions.new
|
||||
se.user_id = @user.id
|
||||
|
|
|
@ -366,7 +366,7 @@ class ProjectsController < ApplicationController
|
|||
r = Role.givable.find_by_id(Setting.new_project_user_role_id.to_i) || Role.givable.first
|
||||
m = Member.new(:user => User.current, :roles => [r])
|
||||
project = ProjectInfo.new(:user_id => User.current.id, :project_id => @project.id)
|
||||
if params[:project][:is_public] == 1
|
||||
if params[:project][:is_public] == '1' || @course_tag=="1"
|
||||
project_status = ProjectStatus.create(:project_id => @project.id, :watchers_count => 0, :changesets_count => 0)
|
||||
end
|
||||
@project.members << m
|
||||
|
|
|
@ -977,7 +977,7 @@ module ApplicationHelper
|
|||
end
|
||||
|
||||
def lang_options_for_select(blank=true)
|
||||
(blank ? [["(auto)", ""]] : []) + languages_options
|
||||
{ 'Chinese简体中文 '=> 'zh', :English => :en}
|
||||
end
|
||||
|
||||
def label_tag_for(name, option_tags = nil, options = {})
|
||||
|
|
|
@ -138,9 +138,9 @@ module ProjectsHelper
|
|||
type = []
|
||||
option1 = []
|
||||
option2 = []
|
||||
option1 << '作业最终以附件形式提交'
|
||||
option1 << '作业最终以附件形式提交'
|
||||
option1 << 1
|
||||
option2 << '作业最终以项目形式提交'
|
||||
option2 << '作业最终以项目形式提交'
|
||||
option2 << 2
|
||||
type << option1
|
||||
type << option2
|
||||
|
|
|
@ -64,9 +64,9 @@ module UsersHelper
|
|||
# added by fq
|
||||
# <div class="pagination" >
|
||||
# <ul>
|
||||
# <li><%= link_to("所有动态", {:controller => 'users', :action => 'show'}) %></li>
|
||||
# <li><%= link_to("只看自己", {:controller => 'users', :action => 'show', :type => 1}) %></li>
|
||||
# <li><%= link_to("所有反馈", {:controller => 'users', :action => 'show', :type => 2}) %></li>
|
||||
# <li><%= link_to("所有动态", {:controller => 'users', :action => 'show'}) %></li>
|
||||
# <li><%= link_to("只看自己", {:controller => 'users', :action => 'show', :type => 1}) %></li>
|
||||
# <li><%= link_to("所有反馈", {:controller => 'users', :action => 'show', :type => 2}) %></li>
|
||||
# </ul></div>
|
||||
|
||||
def show_activity(state)
|
||||
|
@ -95,16 +95,16 @@ module UsersHelper
|
|||
content = ''.html_safe
|
||||
case state
|
||||
when 0
|
||||
s = content_tag('span', '我的课程', :class => "current-page")
|
||||
s = content_tag('span', '我的课程', :class => "current-page")
|
||||
content << content_tag('li', s)
|
||||
content << content_tag('li', link_to('我的作业', {:controller => 'users', :action => 'user_courses', :type => 1}))
|
||||
content << content_tag('li', link_to('我的作业', {:controller => 'users', :action => 'user_courses', :type => 1}))
|
||||
when 1
|
||||
s = content_tag('span', '我的作业', :class => "current-page")
|
||||
content << content_tag('li', link_to('我的课程', {:controller => 'users', :action => 'user_courses'}))
|
||||
s = content_tag('span', '我的作业', :class => "current-page")
|
||||
content << content_tag('li', link_to('我的课程', {:controller => 'users', :action => 'user_courses'}))
|
||||
content << content_tag('li', s, :class => "current-page")
|
||||
when 2
|
||||
s = content_tag('span', '课程通知', :class => "current-page")
|
||||
content << content_tag('li', link_to('课程通知', {:controller => 'users', :action => 'user_courses'}))
|
||||
s = content_tag('span', '课程通知', :class => "current-page")
|
||||
content << content_tag('li', link_to('课程通知', {:controller => 'users', :action => 'user_courses'}))
|
||||
content << content_tag('li', s, :class => "current-page")
|
||||
end
|
||||
content_tag('div', content, :class => "pagination")
|
||||
|
|
|
@ -1,173 +1,173 @@
|
|||
<!-- added by bai 增加地区-->
|
||||
<!-- added by bai 增加地区-->
|
||||
<script type="text/javascript" language="javascript">
|
||||
function showcity(province, cityField) {
|
||||
switch (province) {
|
||||
case "北京" :
|
||||
case "北京" :
|
||||
var cityOptions = new Array(
|
||||
"东城","西城","朝阳","丰台","石景山","海淀","门头沟",
|
||||
"房山","通州","顺义","昌平","大兴","平谷","怀柔","密云","延庆");
|
||||
"东城","西城","朝阳","丰台","石景山","海淀","门头沟",
|
||||
"房山","通州","顺义","昌平","大兴","平谷","怀柔","密云","延庆");
|
||||
break;
|
||||
case "上海" :
|
||||
case "上海" :
|
||||
var cityOptions = new Array(
|
||||
"崇明","黄浦","卢湾","徐汇","长宁","静安","普陀","闸北","虹口","杨浦","闵行",
|
||||
"宝山","嘉定","浦东","金山","松江","青浦","南汇","奉贤");
|
||||
"崇明","黄浦","卢湾","徐汇","长宁","静安","普陀","闸北","虹口","杨浦","闵行",
|
||||
"宝山","嘉定","浦东","金山","松江","青浦","南汇","奉贤");
|
||||
break;
|
||||
case "广东" :
|
||||
case "广东" :
|
||||
var cityOptions = new Array(
|
||||
"广州","深圳","珠海","东莞","中山","佛山","惠州","河源","潮州","江门","揭阳","茂名",
|
||||
"梅州","清远","汕头","汕尾","韶关","顺德","阳江","云浮","湛江","肇庆");
|
||||
"广州","深圳","珠海","东莞","中山","佛山","惠州","河源","潮州","江门","揭阳","茂名",
|
||||
"梅州","清远","汕头","汕尾","韶关","顺德","阳江","云浮","湛江","肇庆");
|
||||
break;
|
||||
case "江苏" :
|
||||
case "江苏" :
|
||||
var cityOptions = new Array(
|
||||
"南京","常熟","常州","海门","淮安","江都","江阴","昆山","连云港","南通",
|
||||
"启东","沭阳","宿迁","苏州","太仓","泰州","同里","无锡","徐州","盐城",
|
||||
"扬州","宜兴","仪征","张家港","镇江","周庄");
|
||||
"南京","常熟","常州","海门","淮安","江都","江阴","昆山","连云港","南通",
|
||||
"启东","沭阳","宿迁","苏州","太仓","泰州","同里","无锡","徐州","盐城",
|
||||
"扬州","宜兴","仪征","张家港","镇江","周庄");
|
||||
break;
|
||||
case "重庆" :
|
||||
case "重庆" :
|
||||
var cityOptions = new Array(
|
||||
"万州","涪陵","渝中","大渡口","江北","沙坪坝","九龙坡","南岸","北碚","万盛",
|
||||
"双挢","渝北","巴南","黔江","长寿","綦江","潼南","铜梁","大足","荣昌","壁山",
|
||||
"梁平","城口","丰都","垫江","武隆","忠县","开县","云阳","奉节","巫山","巫溪",
|
||||
"石柱","秀山","酉阳","彭水","江津","合川","永川","南川");
|
||||
"万州","涪陵","渝中","大渡口","江北","沙坪坝","九龙坡","南岸","北碚","万盛",
|
||||
"双挢","渝北","巴南","黔江","长寿","綦江","潼南","铜梁","大足","荣昌","壁山",
|
||||
"梁平","城口","丰都","垫江","武隆","忠县","开县","云阳","奉节","巫山","巫溪",
|
||||
"石柱","秀山","酉阳","彭水","江津","合川","永川","南川");
|
||||
break;
|
||||
case "安徽" :
|
||||
case "安徽" :
|
||||
var cityOptions = new Array(
|
||||
"合肥","安庆","蚌埠","亳州","巢湖","滁州","阜阳","贵池","淮北","淮化","淮南",
|
||||
"黄山","九华山","六安","马鞍山","宿州","铜陵","屯溪","芜湖","宣城");
|
||||
"合肥","安庆","蚌埠","亳州","巢湖","滁州","阜阳","贵池","淮北","淮化","淮南",
|
||||
"黄山","九华山","六安","马鞍山","宿州","铜陵","屯溪","芜湖","宣城");
|
||||
break;
|
||||
case "福建" :
|
||||
case "福建" :
|
||||
var cityOptions = new Array(
|
||||
"福州","厦门","泉州","漳州","龙岩","南平","宁德","莆田","三明");
|
||||
"福州","厦门","泉州","漳州","龙岩","南平","宁德","莆田","三明");
|
||||
break;
|
||||
case "甘肃" :
|
||||
case "甘肃" :
|
||||
var cityOptions = new Array(
|
||||
"兰州","白银","定西","敦煌","甘南","金昌","酒泉","临夏","平凉","天水",
|
||||
"武都","武威","西峰","张掖");
|
||||
"兰州","白银","定西","敦煌","甘南","金昌","酒泉","临夏","平凉","天水",
|
||||
"武都","武威","西峰","张掖");
|
||||
break;
|
||||
case "广西" :
|
||||
case "广西" :
|
||||
var cityOptions = new Array(
|
||||
"南宁","百色","北海","桂林","防城港","贵港","河池","贺州","柳州","钦州","梧州","玉林");
|
||||
"南宁","百色","北海","桂林","防城港","贵港","河池","贺州","柳州","钦州","梧州","玉林");
|
||||
break;
|
||||
case "贵州" :
|
||||
case "贵州" :
|
||||
var cityOptions = new Array(
|
||||
"贵阳","安顺","毕节","都匀","凯里","六盘水","铜仁","兴义","玉屏","遵义");
|
||||
"贵阳","安顺","毕节","都匀","凯里","六盘水","铜仁","兴义","玉屏","遵义");
|
||||
break;
|
||||
case "海南" :
|
||||
case "海南" :
|
||||
var cityOptions = new Array(
|
||||
"海口","儋县","陵水","琼海","三亚","通什","万宁");
|
||||
"海口","儋县","陵水","琼海","三亚","通什","万宁");
|
||||
break;
|
||||
case "河北" :
|
||||
case "河北" :
|
||||
var cityOptions = new Array(
|
||||
"石家庄","保定","北戴河","沧州","承德","丰润","邯郸","衡水","廊坊","南戴河","秦皇岛",
|
||||
"唐山","新城","邢台","张家口");
|
||||
"石家庄","保定","北戴河","沧州","承德","丰润","邯郸","衡水","廊坊","南戴河","秦皇岛",
|
||||
"唐山","新城","邢台","张家口");
|
||||
break;
|
||||
case "黑龙江" :
|
||||
case "黑龙江" :
|
||||
var cityOptions = new Array(
|
||||
"哈尔滨","北安","大庆","大兴安岭","鹤岗","黑河","佳木斯","鸡西","牡丹江","齐齐哈尔",
|
||||
"七台河","双鸭山","绥化","伊春");
|
||||
"哈尔滨","北安","大庆","大兴安岭","鹤岗","黑河","佳木斯","鸡西","牡丹江","齐齐哈尔",
|
||||
"七台河","双鸭山","绥化","伊春");
|
||||
break;
|
||||
case "河南" :
|
||||
case "河南" :
|
||||
var cityOptions = new Array(
|
||||
"郑州","安阳","鹤壁","潢川","焦作","济源","开封","漯河","洛阳","南阳","平顶山",
|
||||
"濮阳","三门峡","商丘","新乡","信阳","许昌","周口","驻马店");
|
||||
"郑州","安阳","鹤壁","潢川","焦作","济源","开封","漯河","洛阳","南阳","平顶山",
|
||||
"濮阳","三门峡","商丘","新乡","信阳","许昌","周口","驻马店");
|
||||
break;
|
||||
case "香港" :
|
||||
case "香港" :
|
||||
var cityOptions = new Array(
|
||||
"香港","九龙","新界");
|
||||
"香港","九龙","新界");
|
||||
break;
|
||||
case "湖北" :
|
||||
case "湖北" :
|
||||
var cityOptions = new Array(
|
||||
"武汉","恩施","鄂州","黄冈","黄石","荆门","荆州","潜江","十堰","随州","武穴",
|
||||
"仙桃","咸宁","襄阳","襄樊","孝感","宜昌");
|
||||
"武汉","恩施","鄂州","黄冈","黄石","荆门","荆州","潜江","十堰","随州","武穴",
|
||||
"仙桃","咸宁","襄阳","襄樊","孝感","宜昌");
|
||||
break;
|
||||
case "湖南" :
|
||||
case "湖南" :
|
||||
var cityOptions = new Array(
|
||||
"长沙","常德","郴州","衡阳","怀化","吉首","娄底","邵阳","湘潭","益阳","岳阳",
|
||||
"永州","张家界","株洲");
|
||||
"长沙","常德","郴州","衡阳","怀化","吉首","娄底","邵阳","湘潭","益阳","岳阳",
|
||||
"永州","张家界","株洲");
|
||||
break;
|
||||
case "江西" :
|
||||
case "江西" :
|
||||
var cityOptions = new Array(
|
||||
"南昌","抚州","赣州","吉安","景德镇","井冈山","九江","庐山","萍乡",
|
||||
"上饶","新余","宜春","鹰潭");
|
||||
"南昌","抚州","赣州","吉安","景德镇","井冈山","九江","庐山","萍乡",
|
||||
"上饶","新余","宜春","鹰潭");
|
||||
break;
|
||||
case "吉林" :
|
||||
case "吉林" :
|
||||
var cityOptions = new Array(
|
||||
"长春","吉林","白城","白山","珲春","辽源","梅河","四平","松原","通化","延吉");
|
||||
"长春","吉林","白城","白山","珲春","辽源","梅河","四平","松原","通化","延吉");
|
||||
break;
|
||||
case "辽宁" :
|
||||
case "辽宁" :
|
||||
var cityOptions = new Array(
|
||||
"沈阳","鞍山","本溪","朝阳","大连","丹东","抚顺","阜新","葫芦岛","锦州",
|
||||
"辽阳","盘锦","铁岭","营口");
|
||||
"沈阳","鞍山","本溪","朝阳","大连","丹东","抚顺","阜新","葫芦岛","锦州",
|
||||
"辽阳","盘锦","铁岭","营口");
|
||||
break;
|
||||
case "澳门" :
|
||||
var cityOptions = new Array("澳门");
|
||||
case "澳门" :
|
||||
var cityOptions = new Array("澳门");
|
||||
break;
|
||||
case "内蒙古" :
|
||||
case "内蒙古" :
|
||||
var cityOptions = new Array(
|
||||
"呼和浩特","阿拉善盟","包头","赤峰","东胜","海拉尔","集宁","临河","通辽","乌海",
|
||||
"乌兰浩特","锡林浩特");
|
||||
"呼和浩特","阿拉善盟","包头","赤峰","东胜","海拉尔","集宁","临河","通辽","乌海",
|
||||
"乌兰浩特","锡林浩特");
|
||||
break;
|
||||
case "宁夏" :
|
||||
case "宁夏" :
|
||||
var cityOptions = new Array(
|
||||
"银川","固源","石嘴山","吴忠");
|
||||
"银川","固源","石嘴山","吴忠");
|
||||
break;
|
||||
case "青海" :
|
||||
case "青海" :
|
||||
var cityOptions = new Array(
|
||||
"西宁","德令哈","格尔木","共和","海东","海晏","玛沁","同仁","玉树");
|
||||
"西宁","德令哈","格尔木","共和","海东","海晏","玛沁","同仁","玉树");
|
||||
break;
|
||||
case "山东" :
|
||||
case "山东" :
|
||||
var cityOptions = new Array(
|
||||
"济南","滨州","兖州","德州","东营","菏泽","济宁","莱芜","聊城","临沂",
|
||||
"蓬莱","青岛","曲阜","日照","泰安","潍坊","威海","烟台","枣庄","淄博");
|
||||
"济南","滨州","兖州","德州","东营","菏泽","济宁","莱芜","聊城","临沂",
|
||||
"蓬莱","青岛","曲阜","日照","泰安","潍坊","威海","烟台","枣庄","淄博");
|
||||
break;
|
||||
case "山西" :
|
||||
case "山西" :
|
||||
var cityOptions = new Array(
|
||||
"太原","长治","大同","候马","晋城","离石","临汾","宁武","朔州","忻州",
|
||||
"阳泉","榆次","运城");
|
||||
"太原","长治","大同","候马","晋城","离石","临汾","宁武","朔州","忻州",
|
||||
"阳泉","榆次","运城");
|
||||
break;
|
||||
case "陕西" :
|
||||
case "陕西" :
|
||||
var cityOptions = new Array(
|
||||
"西安","安康","宝鸡","汉中","渭南","商州","绥德","铜川","咸阳","延安","榆林");
|
||||
"西安","安康","宝鸡","汉中","渭南","商州","绥德","铜川","咸阳","延安","榆林");
|
||||
break;
|
||||
case "四川" :
|
||||
case "四川" :
|
||||
var cityOptions = new Array(
|
||||
"成都","巴中","达川","德阳","都江堰","峨眉山","涪陵","广安","广元","九寨沟",
|
||||
"康定","乐山","泸州","马尔康","绵阳","眉山","南充","内江","攀枝花","遂宁",
|
||||
"汶川","西昌","雅安","宜宾","自贡","资阳");
|
||||
"成都","巴中","达川","德阳","都江堰","峨眉山","涪陵","广安","广元","九寨沟",
|
||||
"康定","乐山","泸州","马尔康","绵阳","眉山","南充","内江","攀枝花","遂宁",
|
||||
"汶川","西昌","雅安","宜宾","自贡","资阳");
|
||||
break;
|
||||
case "台湾" :
|
||||
case "台湾" :
|
||||
var cityOptions = new Array(
|
||||
"台北","基隆","台南","台中","高雄","屏东","南投","云林","新竹","彰化","苗栗",
|
||||
"嘉义","花莲","桃园","宜兰","台东","金门","马祖","澎湖");
|
||||
"台北","基隆","台南","台中","高雄","屏东","南投","云林","新竹","彰化","苗栗",
|
||||
"嘉义","花莲","桃园","宜兰","台东","金门","马祖","澎湖");
|
||||
break;
|
||||
case "天津" :
|
||||
case "天津" :
|
||||
var cityOptions = new Array(
|
||||
"天津","和平","东丽","河东","西青","河西","津南","南开","北辰","河北","武清","红挢",
|
||||
"塘沽","汉沽","大港","宁河","静海","宝坻","蓟县");
|
||||
"天津","和平","东丽","河东","西青","河西","津南","南开","北辰","河北","武清","红挢",
|
||||
"塘沽","汉沽","大港","宁河","静海","宝坻","蓟县");
|
||||
break;
|
||||
case "新疆" :
|
||||
case "新疆" :
|
||||
var cityOptions = new Array(
|
||||
"乌鲁木齐","阿克苏","阿勒泰","阿图什","博乐","昌吉","东山","哈密","和田","喀什",
|
||||
"克拉玛依","库车","库尔勒","奎屯","石河子","塔城","吐鲁番","伊宁");
|
||||
"乌鲁木齐","阿克苏","阿勒泰","阿图什","博乐","昌吉","东山","哈密","和田","喀什",
|
||||
"克拉玛依","库车","库尔勒","奎屯","石河子","塔城","吐鲁番","伊宁");
|
||||
break;
|
||||
case "西藏" :
|
||||
case "西藏" :
|
||||
var cityOptions = new Array(
|
||||
"拉萨","阿里","昌都","林芝","那曲","日喀则","山南");
|
||||
"拉萨","阿里","昌都","林芝","那曲","日喀则","山南");
|
||||
break;
|
||||
case "云南" :
|
||||
case "云南" :
|
||||
var cityOptions = new Array(
|
||||
"昆明","大理","保山","楚雄","大理","东川","个旧","景洪","开远","临沧","丽江",
|
||||
"六库","潞西","曲靖","思茅","文山","西双版纳","玉溪","中甸","昭通");
|
||||
"昆明","大理","保山","楚雄","大理","东川","个旧","景洪","开远","临沧","丽江",
|
||||
"六库","潞西","曲靖","思茅","文山","西双版纳","玉溪","中甸","昭通");
|
||||
break;
|
||||
case "浙江" :
|
||||
case "浙江" :
|
||||
var cityOptions = new Array(
|
||||
"杭州","安吉","慈溪","定海","奉化","海盐","黄岩","湖州","嘉兴","金华","临安",
|
||||
"临海","丽水","宁波","瓯海","平湖","千岛湖","衢州","江山","瑞安","绍兴","嵊州",
|
||||
"台州","温岭","温州","余姚","舟山");
|
||||
"杭州","安吉","慈溪","定海","奉化","海盐","黄岩","湖州","嘉兴","金华","临安",
|
||||
"临海","丽水","宁波","瓯海","平湖","千岛湖","衢州","江山","瑞安","绍兴","嵊州",
|
||||
"台州","温岭","温州","余姚","舟山");
|
||||
break;
|
||||
case "海外" :
|
||||
case "海外" :
|
||||
var cityOptions = new Array(
|
||||
"美国","日本","英国","法国","德国","其他");
|
||||
"美国","日本","英国","法国","德国","其他");
|
||||
break;
|
||||
default:
|
||||
var cityOptions = new Array("");
|
||||
|
@ -187,48 +187,6 @@
|
|||
}
|
||||
</script>
|
||||
|
||||
<!-- added by bai 增加职称-->
|
||||
<script type="text/javascript" language="javascript">
|
||||
function showtechnical_title(identity, technical_titleField) {
|
||||
switch (identity) {
|
||||
|
||||
case '0' :
|
||||
$('#technical_title').show()
|
||||
$('#no').hide()
|
||||
var technical_titleOptions = new Array(
|
||||
"教授","副教授","讲师","助教");
|
||||
|
||||
break;
|
||||
|
||||
case '1' :
|
||||
$('#technical_title').hide()
|
||||
$('#no').show()
|
||||
var titleOptions = new Array("");
|
||||
break;
|
||||
|
||||
|
||||
default:
|
||||
$('#technical_title').hide()
|
||||
$('#no').hide()
|
||||
var titleOptions = new Array("");
|
||||
|
||||
break;
|
||||
|
||||
}
|
||||
technical_titleField.options.length = 0;
|
||||
for(var i = 0; i < technical_titleOptions.length; i++) {
|
||||
technical_titleField.options[i]=new Option(technical_titleOptions[i],technical_titleOptions[i]);
|
||||
/*
|
||||
if (cityField.options[i].value==city)
|
||||
{
|
||||
//alert("here put City ok!");
|
||||
document.oblogform["city"].selectedIndex = i;
|
||||
}*/
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
</script>
|
||||
<!-- end -->
|
||||
|
||||
<h3><%=l(:label_register)%> <%=link_to l(:label_login_with_open_id_option), signin_url if Setting.openid? %></h3>
|
||||
|
@ -253,29 +211,14 @@
|
|||
<em class="info"><%="#{l(:label_mail_attention)} "%></em></p>
|
||||
<p><%= f.select :language, lang_options_for_select %></p>
|
||||
|
||||
<!-- added by bai 增加了身份、性别、地区和教师的职称-->
|
||||
<!-- added by bai 增加了身份、性别和地区-->
|
||||
|
||||
|
||||
<p><table><tr><td class="info" align="right" style="width: 90px"><strong><%= l(:label_identity) %><span class="required"> *</span></strong></td>
|
||||
<td class="info" style="width: 10px">
|
||||
|
||||
<select onchange="showtechnical_title(this.value, document.getElementById('userTechnical_title'));" name="identity" id="userProvince">
|
||||
<option value="">--请选择身份--</option>
|
||||
<option value="0">教师</option>
|
||||
<option value="1">学生</option>
|
||||
<option value="2">企业</option>
|
||||
<option value="3">开发者</option>
|
||||
|
||||
</select></td>
|
||||
<td class="info" style="width: 100px">
|
||||
<span id = 'technical_title' style = 'display:none'>
|
||||
<select name="technical_title" id="userTechnical_title"></select></span>
|
||||
<span id = 'no' style = 'display:none'>
|
||||
<input name="no" id="no" placeholder="请输入学号"></select></span>
|
||||
|
||||
</td></tr></table></p>
|
||||
<!-- end -->
|
||||
|
||||
<%= select_tag 'identity', "<option value = '0'>#{l(:label_teacher)}</option>
|
||||
<option value = '1'>#{l(:label_student)}</option>
|
||||
<option value = '2'>#{l(:label_other)}</option>".html_safe %></td></tr></table></p>
|
||||
|
||||
|
||||
<p><table><tr><td class="info" align="right" style="width: 90px"><strong><%= l(:label_gender) %></strong></td>
|
||||
|
@ -283,56 +226,54 @@
|
|||
<%= select_tag 'gender', "<option value = '0'>#{l(:label_gender_male)}</option>
|
||||
<option value = '1'>#{l(:label_gender_female)}</option>".html_safe %></td></tr></table></p>
|
||||
|
||||
<p><table><tr><td class="info" align="right" style="width: 90px"><strong><%= l(:label_location) %></strong></td>
|
||||
<p><table><tr><td class="info" align="right" style="width: 90px"><strong><%= l(:label_location) %><span class="required"> *</span></strong></td>
|
||||
<td class="info" style="width: 80px">
|
||||
<select onchange="showcity(this.value, document.getElementById('userCity'));" name="province" id="userProvince">
|
||||
<option value="">--请选择省份--</option>
|
||||
<option value="北京">北京</option>
|
||||
<option value="上海">上海</option>
|
||||
<option value="广东">广东</option>
|
||||
<option value="江苏">江苏</option>
|
||||
<option value="浙江">浙江</option>
|
||||
<option value="重庆">重庆</option>
|
||||
<option value="安徽">安徽</option>
|
||||
<option value="福建">福建</option>
|
||||
<option value="甘肃">甘肃</option>
|
||||
<option value="广西">广西</option>
|
||||
<option value="贵州">贵州</option>
|
||||
<option value="海南">海南</option>
|
||||
<option value="河北">河北</option>
|
||||
<option value="黑龙江">黑龙江</option>
|
||||
<option value="河南">河南</option>
|
||||
<option value="湖北">湖北</option>
|
||||
<option value="湖南">湖南</option>
|
||||
<option value="江西">江西</option>
|
||||
<option value="吉林">吉林</option>
|
||||
<option value="辽宁">辽宁</option>
|
||||
<option value="内蒙古">内蒙古</option>
|
||||
<option value="宁夏">宁夏</option>
|
||||
<option value="青海">青海</option>
|
||||
<option value="山东">山东</option>
|
||||
<option value="山西">山西</option>
|
||||
<option value="陕西">陕西</option>
|
||||
<option value="四川">四川</option>
|
||||
<option value="天津">天津</option>
|
||||
<option value="新疆">新疆</option>
|
||||
<option value="西藏">西藏</option>
|
||||
<option value="云南">云南</option>
|
||||
<option value="香港">香港特别行政区</option>
|
||||
<option value="澳门">澳门特别行政区</option>
|
||||
<option value="台湾">台湾</option>
|
||||
<option value="海外">海外</option>
|
||||
<option value="">--请选择省份--</option>
|
||||
<option value="北京">北京</option>
|
||||
<option value="上海">上海</option>
|
||||
<option value="广东">广东</option>
|
||||
<option value="江苏">江苏</option>
|
||||
<option value="浙江">浙江</option>
|
||||
<option value="重庆">重庆</option>
|
||||
<option value="安徽">安徽</option>
|
||||
<option value="福建">福建</option>
|
||||
<option value="甘肃">甘肃</option>
|
||||
<option value="广西">广西</option>
|
||||
<option value="贵州">贵州</option>
|
||||
<option value="海南">海南</option>
|
||||
<option value="河北">河北</option>
|
||||
<option value="黑龙江">黑龙江</option>
|
||||
<option value="河南">河南</option>
|
||||
<option value="湖北">湖北</option>
|
||||
<option value="湖南">湖南</option>
|
||||
<option value="江西">江西</option>
|
||||
<option value="吉林">吉林</option>
|
||||
<option value="辽宁">辽宁</option>
|
||||
<option value="内蒙古">内蒙古</option>
|
||||
<option value="宁夏">宁夏</option>
|
||||
<option value="青海">青海</option>
|
||||
<option value="山东">山东</option>
|
||||
<option value="山西">山西</option>
|
||||
<option value="陕西">陕西</option>
|
||||
<option value="四川">四川</option>
|
||||
<option value="天津">天津</option>
|
||||
<option value="新疆">新疆</option>
|
||||
<option value="西藏">西藏</option>
|
||||
<option value="云南">云南</option>
|
||||
<option value="香港">香港特别行政区</option>
|
||||
<option value="澳门">澳门特别行政区</option>
|
||||
<option value="台湾">台湾</option>
|
||||
<option value="海外">海外</option>
|
||||
</select></td>
|
||||
<td class="info" style="width: 100px">
|
||||
<select name="city" id="userCity"></select></td></tr></table></p>
|
||||
<!-- end -->
|
||||
</div>
|
||||
|
||||
|
||||
<p><table><tr><td><%= submit_tag l(:button_submit) %></td></tr></table></p>
|
||||
<% end %>
|
||||
|
||||
|
||||
<% if Setting.openid? %>
|
||||
<p><%= f.text_field :identity_url %></p>
|
||||
<% end %>
|
||||
|
|
|
@ -17,15 +17,11 @@
|
|||
</tr>
|
||||
<% unless bid.reward_type == 3 %>
|
||||
<tr>
|
||||
<td><span class="font_lighter"><%= l(:label_x_biding_project, :count => bid.biding_projects.count) %>(<strong><%= link_to bid.biding_projects.count, project_for_bid_path(bid) %></strong>)</span>
|
||||
<span class="font_lighter"><%= l(:label_x_bids_responses, :count => bid.commit) %>(<strong><%= link_to bid.commit, respond_path(bid) %></strong>)</span>
|
||||
<span class="font_lighter"> <%= l(:label_x_followers, :count => bid.watcher_users.count) %>(<strong><%= link_to bid.watcher_users.count, respond_path(bid) %></strong>)</span></td>
|
||||
<td><span class="font_lighter"><%= l(:label_x_biding_project, :count => bid.biding_projects.count) %>(<strong><%= link_to bid.biding_projects.count, project_for_bid_path(bid) %></strong>)</span><span class="font_lighter"><%= l(:label_x_bids_responses, :count => bid.commit) %>(<strong><%= link_to bid.commit, respond_path(bid) %></strong>)</span><span class="font_lighter"> <%= l(:label_x_followers, :count => bid.watcher_users.count) %>(<strong><%= link_to bid.watcher_users.count, respond_path(bid) %></strong>)</span></td>
|
||||
</tr>
|
||||
<% else %>
|
||||
<tr>
|
||||
<td><span class="font_lighter"><%= l(:label_x_homework_project, :count => bid.biding_projects.count) %>(<strong><%= link_to bid.biding_projects.count, project_for_bid_path(bid) %></strong>)
|
||||
</span><span class="font_lighter"><%= l(:label_x_responses, :count => bid.commit) %>(<strong><%= link_to bid.commit, respond_path(bid) %></strong>)</span>
|
||||
<span class="font_lighter"> <%= l(:label_x_followers, :count => bid.watcher_users.count) %>(<strong><%= link_to bid.watcher_users.count, respond_path(bid) %></strong>)</span></td>
|
||||
<td><span class="font_lighter"><%= l(:label_x_homework_project, :count => bid.biding_projects.count) %>(<strong><%= link_to bid.biding_projects.count, project_for_bid_path(bid) %></strong>) </span><span class="font_lighter"><%= l(:label_x_responses, :count => bid.commit) %>(<strong><%= link_to bid.commit, respond_path(bid) %></strong>)</span><span class="font_lighter"> <%= l(:label_x_followers, :count => bid.watcher_users.count) %>(<strong><%= link_to bid.watcher_users.count, respond_path(bid) %></strong>)</span></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</table></td>
|
||||
|
@ -51,61 +47,3 @@
|
|||
<ul>
|
||||
</div>
|
||||
|
||||
<!--new-->
|
||||
<!-- <% bids.each do |bid|%>
|
||||
<table width="98%" border="0" style="padding-left: 20px; padding-top: 10px;">
|
||||
<tr>
|
||||
<td valign="top" width="50px"><%= link_to(image_tag(url_to_avatar(bid.author), :class => 'avatar'), user_path(bid.author), :class => "avatar") %></td>
|
||||
<td>
|
||||
<table width="100%" border="0" class="font_description">
|
||||
<tr>
|
||||
<td><strong><%= link_to(bid.author, user_path(bid.author)) %></strong>
|
||||
<spanclass="font_lighter">
|
||||
<%= l(:label_bid_publish) %></span> <strong><%= link_to(bid.name, respond_path(bid), :class => 'bid_path') %></strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="500">
|
||||
<table border="0">
|
||||
<tr><td>
|
||||
<% if bid.reward_type.nil? or bid.reward_type == 1%>
|
||||
<strong><%= l(:label_bids_reward_method) %><span style="color: #ed8924;font-family: 14px; font-family: 微软雅黑"><%= l(:label_call_bonus) %> <%= l(:label_RMB_sign) %><%= bid.budget%></span></strong>
|
||||
<% elsif bid.reward_type == 2%>
|
||||
<strong><%= l(:label_bids_reward_method) %><span style="color: #15bccf;font-family: 14px; font-family: 微软雅黑"><%= bid.budget%></span></strong>
|
||||
<% else %>
|
||||
<strong><%= l(:label_bids_reward_method) %><span style="color: #00aa83;font-family: 14px; font-family: 微软雅黑"><%= l(:label_bids_credit) %> <%= bid.budget%> <%= l(:label_bids_credit_number) %></span></strong>
|
||||
<% end %>
|
||||
|
||||
<!-- <td style="color: rgb(255, 0, 0);"><strong><%= l(:label_price) %><%= l(:label_RMB_sign) %><%= bid.budget%></strong></td> -->
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td>
|
||||
<span class="font_lighter"><%= l(:label_x_biding_project, :count => bid.biding_projects.count) %>(<strong><%=link_to bid.biding_projects.count, project_for_bid_path(bid) %></strong>)</span>
|
||||
<span class="font_lighter"><%= l(:label_x_responses, :count => bid.commit) %>(<strong><%=link_to bid.commit, respond_path(bid) %></strong>)</span>
|
||||
<span class="font_lighter"><%= l(:label_x_followers, :count => bid.watcher_users.count) %>(<strong><%=link_to bid.watcher_users.count, respond_path(bid) %></strong>)</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table></td>
|
||||
<td width="200px" valign="bottom" style="padding-bottom: 5px">
|
||||
<table>
|
||||
<tr>
|
||||
<td style="float: right"><span><%= l(:label_bid_project) %>(<%= link_to bid.biding_projects.count, project_for_bid_path(bid),:class=> "bids_user" %>)</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="float: right"><span><%= l(:label_responses) %>(<%= link_to bid.commit, respond_path(bid),:class=> "bids_user" %>)</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="float: right"><span><%= l(:label_followers) %>(<%= link_to bid.watcher_users.count, respond_path(bid),:class=> "bids_user" %>)</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span style="float: right"><%= l(:field_deadline) %><span class="font_lighter" ><%= format_time bid.created_on %></span></span></td>
|
||||
</tr>
|
||||
</table></td>
|
||||
</tr>
|
||||
</table>
|
||||
<% end %>
|
||||
<div class="pagination">
|
||||
<ul>
|
||||
<%= pagination_links_full bid_pages %>
|
||||
<ul>
|
||||
</div> -->
|
||||
|
|
|
@ -13,22 +13,7 @@
|
|||
</span>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<!-- 在这里添加赞和踩-->
|
||||
<span id="praise_tread" style="float: right">
|
||||
<%= render :partial => "/praise_tread/praise_tread",
|
||||
:locals => {:obj => @bid,:show_flag => true,:user_id =>User.current.id}%>
|
||||
</span>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<!-- 在这里添加赞和踩-->
|
||||
<span id="praise_tread" style="float: right">
|
||||
<%= render :partial => "/praise_tread/praise_tread",
|
||||
:locals => {:obj => @bid,:show_flag => true,:user_id =>User.current.id}%>
|
||||
</span>
|
||||
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<% if @bid.reward_type.nil? or @bid.reward_type == 1%>
|
||||
|
|
|
@ -77,10 +77,16 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td valign="top" style="padding-left: 8px;">课程学期:</td><td class="font_lighter_sidebar"><%= @course.term %></td>
|
||||
</tr>
|
||||
</tr>
|
||||
<% unless @course.teacher.user_extensions.occupation.nil? %>
|
||||
<tr>
|
||||
<td valign="top" style="padding-left: 8px;">教师单位:</td><td class="font_lighter_sidebar"><%= @course.teacher.user_extensions.occupation %></td>
|
||||
</tr>
|
||||
</tr>
|
||||
<% else %>
|
||||
<tr>
|
||||
<td valign="top" style="padding-left: 8px;">教师单位:</td><td class="font_lighter_sidebar"><%= l(:field_course_un) %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
|
||||
</table>
|
||||
|
||||
|
|
|
@ -35,53 +35,6 @@
|
|||
</div> -->
|
||||
|
||||
|
||||
<!-- <div class="pagination_list">
|
||||
<ul>
|
||||
<li>
|
||||
<%= link_to l(:label_sort_by_time), projects_path(:project_sort_type => '0'),:class=>"test_new" %>
|
||||
</li>
|
||||
<li>
|
||||
<%= link_to l(:label_sort_by_active), projects_path(:project_sort_type => '1'),:class=>"test_new" %>
|
||||
</li>
|
||||
<li>
|
||||
<%= link_to l(:label_sort_by_influence), projects_path(:project_sort_type => '2'),:class=>"test_new" %>
|
||||
</li>
|
||||
</ul>
|
||||
</div> -->
|
||||
|
||||
|
||||
<%= sort_project(@s_type)%>
|
||||
<!-- <div class="pagination_list">
|
||||
<ul>
|
||||
<li>
|
||||
<%= link_to l(:label_sort_by_time), projects_path(:project_sort_type => '0'),:class=>"test_new" %>
|
||||
</li>
|
||||
<li>
|
||||
<%= link_to l(:label_sort_by_active), projects_path(:project_sort_type => '1'),:class=>"test_new" %>
|
||||
</li>
|
||||
<li>
|
||||
<%= link_to l(:label_sort_by_influence), projects_path(:project_sort_type => '2'),:class=>"test_new" %>
|
||||
</li>
|
||||
</ul>
|
||||
</div> -->
|
||||
|
||||
|
||||
<%= sort_project(@s_type)%>
|
||||
<!-- <div class="pagination_list">
|
||||
<ul>
|
||||
<li>
|
||||
<%= link_to l(:label_sort_by_time), projects_path(:project_sort_type => '0'),:class=>"test_new" %>
|
||||
</li>
|
||||
<li>
|
||||
<%= link_to l(:label_sort_by_active), projects_path(:project_sort_type => '1'),:class=>"test_new" %>
|
||||
</li>
|
||||
<li>
|
||||
<%= link_to l(:label_sort_by_influence), projects_path(:project_sort_type => '2'),:class=>"test_new" %>
|
||||
</li>
|
||||
</ul>
|
||||
</div> -->
|
||||
|
||||
|
||||
<div id="projects-index">
|
||||
<%= render_project_hierarchy(@projects)%>
|
||||
</div>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
production:
|
||||
adapter: mysql2
|
||||
database: redmine
|
||||
database: bitnami_redmine
|
||||
host: 10.0.47.245
|
||||
#socket: /home/pdl/redmine-2.3.1-2/mysql/tmp/mysql.sock
|
||||
port: 3306
|
||||
|
|
|
@ -223,6 +223,7 @@ zh:
|
|||
field_course_code: 学分
|
||||
field_state: 加入课程口令
|
||||
field_term: 学期
|
||||
field_course_un: 暂未填写
|
||||
#end
|
||||
field_description: 描述
|
||||
field_summary: 摘要
|
||||
|
|
Loading…
Reference in New Issue