Changeset 5758
- Timestamp:
- 05/22/08 15:30:42 (6 months ago)
- Files:
-
- rubricks_core/trunk/components/system/account_controller.rb (modified) (2 diffs)
- rubricks_core/trunk/components/system/admin_menu_controller.rb (modified) (5 diffs)
- rubricks_core/trunk/components/system/admin_trails/_main_trails_filter.rhtml (modified) (2 diffs)
- rubricks_core/trunk/components/system/admin_trails/user_select_window.rhtml (modified) (1 diff)
- rubricks_core/trunk/components/system/admin_trails_controller.rb (modified) (1 diff)
- rubricks_core/trunk/components/system/admin_trails_helper.rb (modified) (1 diff)
- rubricks_core/trunk/components/system/calendar/show_detail.rhtml (modified) (1 diff)
- rubricks_core/trunk/components/system/common (added)
- rubricks_core/trunk/components/system/common/_refuse_guest.rhtml (added)
- rubricks_core/trunk/components/system/languages/chinese.rb (modified) (1 diff)
- rubricks_core/trunk/components/system/languages/english.rb (modified) (1 diff)
- rubricks_core/trunk/components/system/languages/japanese.rb (modified) (2 diffs)
- rubricks_core/trunk/components/system/preload/_admin_trails.rhtml (modified) (1 diff)
- rubricks_core/trunk/components/system/search/atom.rxml (modified) (2 diffs)
- rubricks_core/trunk/components/system/search/no_result.rxml (modified) (2 diffs)
- rubricks_core/trunk/components/system/search_controller.rb (modified) (2 diffs)
- rubricks_core/trunk/components/system/system_mailer.rb (modified) (1 diff)
- rubricks_core/trunk/components/system/system_mailer/password_changed_chinese.rhtml (added)
- rubricks_core/trunk/components/system/system_mailer/password_changed_english.rhtml (added)
- rubricks_core/trunk/components/system/system_mailer/password_changed_japanese.rhtml (added)
- rubricks_core/trunk/components/system/user/group_select.rhtml (modified) (1 diff)
- rubricks_core/trunk/components/system/user/user_select.rhtml (modified) (3 diffs)
- rubricks_core/trunk/components/system/user_controller.rb (modified) (4 diffs)
- rubricks_core/trunk/components/system/user_management/_group_show_tab_user_belongs_to.rhtml (modified) (1 diff)
- rubricks_core/trunk/components/system/user_management/main.rhtml (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
rubricks_core/trunk/components/system/account_controller.rb
r5745 r5758 18 18 ActiveRecord::Base.transaction do 19 19 ru.certified = '' 20 ru.ignore_csrf_validation = true 20 21 ru.save! 21 22 if params[:login] == 'true' … … 132 133 ActiveRecord::Base.transaction do 133 134 ru.certified = '' 135 ru.ignore_csrf_validation = true 134 136 ru.save! 135 137 rubricks_logger({:action_type => :update, :component_name => 'auth', :component_display_name => '[_Common_Authentication]', :data => ru}) rubricks_core/trunk/components/system/admin_menu_controller.rb
r5745 r5758 24 24 @clear_ajax_history = true 25 25 headers["Content-Type"] = "text/javascript" 26 render : template => '/system/admin_menu/update.rjs'26 render :action => 'update' 27 27 end 28 28 … … 43 43 @clear_ajax_history = true 44 44 headers["Content-Type"] = "text/javascript" 45 render : template => '/system/admin_menu/update.rjs'45 render :action => 'update' 46 46 end 47 47 … … 88 88 @clear_ajax_history = true 89 89 headers["Content-Type"] = "text/javascript" 90 render : template => '/system/admin_menu/update.rjs'90 render :action => 'update' 91 91 end 92 92 … … 105 105 rubricks_logger({:action_type => :detail, :data => @menu_icon}) 106 106 else 107 render : template => '/system/admin_menu/show_empty'107 render :action => 'show_empty' 108 108 end 109 109 end … … 143 143 @refresh = true 144 144 headers["Content-Type"] = "text/javascript" 145 render : template => '/system/admin_menu/update.rjs'145 render :action => 'update' 146 146 end 147 147 end rubricks_core/trunk/components/system/admin_trails/_main_trails_filter.rhtml
r5695 r5758 3 3 <tr class="rubricks_general_table_even"> 4 4 <td style="width:15%;"><%= hl('[_Common_Date]') %></td> 5 <td style="width:85%;"> 6 <input type="hidden" id="filter_conditions_trails_date_begin" name="filter_conditions[trails_date_begin]" value="<%= hl(RubricksTrail::FILTER_DEFAULT[:trails_date]) %>" /> 7 <input type="hidden" id="filter_conditions_trails_date_end" name="filter_conditions[trails_date_end]" value="<%= hl(RubricksTrail::FILTER_DEFAULT[:trails_date]) %>" /> 8 <span id="display_trails_date_begin"><%= hl(RubricksTrail::FILTER_DEFAULT[:trails_date]) %></span> 9 <span id="datepicker_trails_date_begin_picker_form" class="icon_frame_inactive swap"><span id="datepicker_trails_date_begin_picker_button" class="rubricks_icon icon_datepicker"> </span></span><span id="datepicker_trails_date_begin_cancel_form" class="icon_frame_inactive swap" onclick="rubricks.system.admin_trails.trails_filter_date_begin_clear();"><span id="datepicker_trails_date_begin_cancel_button" class="rubricks_icon icon_dateclear"> </span></span> 10 <%= hl('[_Common_RangeMark]') %> 11 <span id="display_trails_date_end"><%= hl(RubricksTrail::FILTER_DEFAULT[:trails_date]) %></span> 12 <span id="datepicker_trails_date_end_picker_form" class="icon_frame_inactive swap"><span id="datepicker_trails_date_end_picker_button" class="rubricks_icon icon_datepicker"> </span></span><span id="datepicker_trails_date_end_cancel_form" class="icon_frame_inactive swap" onclick="rubricks.system.admin_trails.trails_filter_date_end_clear();"><span id="datepicker_trails_date_end_cancel_button" class="rubricks_icon icon_dateclear"> </span></span> 13 </td> 5 <td style="width:85%;"><%= render_filter_period %></td> 14 6 </tr> 15 7 <tr class="rubricks_general_table_even"> 16 8 <td><%= hl('[_Common_UserName]') %></td> 17 9 <td> 18 <input type="hidden" id="filter_conditions_trails_user_name" name="filter_conditions[trails_user_name]" value="<%= RubricksTrail::FILTER_DEFAULT[:trails_user_name] %>"> 19 <span id="display_trails_user_name"><%= hl(RubricksTrail::FILTER_DEFAULT[:trails_user_name]) %></span> 20 <span id="trails_user_select_window_form" class="icon_frame_inactive swap" onclick="rubricks.system.admin_trails.user_select_window_open();"><span id="trails_user_select_window_button" class="rubricks_icon icon_user"> </span></span><span id="trails_user_select_clear_form" class="icon_frame_inactive swap" onclick="rubricks.system.admin_trails.trails_filter_user_name_clear();"><span id="trails_user_select_clear_button" class="rubricks_icon icon_user_remove"> </span></span> 10 <input type="hidden" id="filter_conditions_trails_user_name" name="filter_conditions[trails_user_name]" /> 11 <input type="text" id="filter_conditions_trails_user_name_display" name="filter_conditions[trails_user_name_display]" class="background_readonly" size="24" readonly="readonly" /> 12 <span id="trails_user_select_window_form" class="icon_frame_inactive swap" title="<%= hl('[_Common_UserSelect]') %>" onclick="rubricks.system.admin_trails.user_select_window_open();"><span id="trails_user_select_window_button" class="rubricks_icon icon_user"> </span></span><span id="trails_user_select_clear_form" class="icon_frame_inactive swap" title="<%= hl('[_Common_UserSelectClear]') %>" onclick="rubricks.system.admin_trails.trails_filter_user_name_clear();"><span id="trails_user_select_clear_button" class="rubricks_icon icon_user_remove"> </span></span> 13 <%= rollover_swap('trails_user_select_window_form', 'trails_user_select_clear_form') %> 21 14 </td> 22 15 </tr> … … 52 45 <%= render :partial => 'main_trails_filter_user_select_window' %> 53 46 <script type="text/javascript"> 54 rubricks.common.datepicker.set('datepicker_trails_date_begin_picker_button', 'filter_conditions_trails_date_begin' , function() {rubricks.system.admin_trails.trails_filter_date_begin_set();});55 rubricks.common.datepicker.set('datepicker_trails_date_end_picker_button', 'filter_conditions_trails_date_end' , function() {rubricks.system.admin_trails.trails_filter_date_end_set();});47 rubricks.common.datepicker.set('datepicker_trails_date_begin_picker_button', 'filter_conditions_trails_date_begin'); 48 rubricks.common.datepicker.set('datepicker_trails_date_end_picker_button', 'filter_conditions_trails_date_end'); 56 49 </script> rubricks_core/trunk/components/system/admin_trails/user_select_window.rhtml
r5331 r5758 7 7 before_submit: function(idArray, dataArray) { 8 8 rubricks.system.admin_trails.user_select_window_close(); 9 var value;10 9 if(dataArray.length == 0) { 11 10 rubricks.system.admin_trails.trails_filter_user_name_clear(); 12 11 } else { 13 value = dataArray[0].name; 14 rubricks.system.admin_trails.trails_filter_user_name_set(value); 12 rubricks.system.admin_trails.trails_filter_user_name_set(dataArray[0]); 15 13 } 16 14 } rubricks_core/trunk/components/system/admin_trails_controller.rb
r5745 r5758 73 73 private 74 74 def fix_find_conditions(trails_filter) 75 find_conditions = {:conditions => RubricksTrail.filter_to_conditions(trails_filter)} unless RubricksTrail.filter_default?(trails_filter)75 find_conditions = {:conditions => RubricksTrail.filter_to_conditions(trails_filter)} 76 76 find_conditions = {} if find_conditions.blank? || find_conditions[:conditions].blank? 77 77 return find_conditions rubricks_core/trunk/components/system/admin_trails_helper.rb
r5372 r5758 1 1 module System::AdminTrailsHelper 2 def render_filter_period 3 html = [] 4 html << text_field('filter_conditions', 'trails_date_begin', {:class => 'input_text_inactive focus background_readonly', :size => 10, :readonly => 'readonly'}) 5 html << %Q|<span id="datepicker_trails_date_begin_picker_form" class="icon_frame_inactive swap" title="#{hl('[_Common_DatePicker]')}"><span id="datepicker_trails_date_begin_picker_button" class="rubricks_icon icon_datepicker"> </span></span>| 6 html << %Q|<span id="datepicker_trails_date_begin_cancel_form" class="icon_frame_inactive swap" title="#{hl('[_Common_DateClear]')}" onclick="rubricks.system.admin_trails.trails_filter_date_begin_clear();"><span id="datepicker_trails_date_begin_cancel_button" class="rubricks_icon icon_dateclear"> </span></span>| 7 html << hl('[_Common_RangeMark]') 8 html << text_field('filter_conditions', 'trails_date_end', {:class => 'input_text_inactive focus background_readonly', :size => 10, :readonly => 'readonly'}) 9 html << %Q|<span id="datepicker_trails_date_end_picker_form" class="icon_frame_inactive swap" title="#{hl('[_Common_DatePicker]')}"><span id="datepicker_trails_date_end_picker_button" class="rubricks_icon icon_datepicker"> </span></span>| 10 html << %Q|<span id="datepicker_trails_date_end_cancel_form" class="icon_frame_inactive swap" title="#{hl('[_Common_DateClear]')}" onclick="rubricks.system.admin_trails.trails_filter_date_end_clear();"><span id="datepicker_trails_date_end_cancel_button" class="rubricks_icon icon_dateclear"> </span></span>| 11 html << rollover_swap('datepicker_trails_date_begin_picker_form', 'datepicker_trails_date_begin_cancel_form', 'datepicker_trails_date_end_picker_form', 'datepicker_trails_date_end_cancel_form') 12 return html.join('') 13 end 14 2 15 def selectable_table_options 3 16 return { rubricks_core/trunk/components/system/calendar/show_detail.rhtml
r5056 r5758 79 79 return false; 80 80 } 81 }); 82 83 rubricks.common.Rollover.reload('scheduler_right_buttons'); 81 } 82 ); 84 83 </script> rubricks_core/trunk/components/system/languages/chinese.rb
r5748 r5758 34 34 '_System_Account_MessageReissueConfirm' => 'å¯ç ä¿®æ¹æ¹æ³å·²ç»åå°æ³šåé®ç®±äºã请æç 35 35 §é®ä»¶äžçæ¹æ³ä¿®æ¹å¯ç ã', 36 '_System_Account_PasswordChangedSubject' => '[%s] å¯ç ä¿®æ¹å®æ¯çéç¥', 36 37 '_System_Account_Register' => '泚ååžå·', 37 38 '_System_Account_ReissueMail' => 'é®ç®±å°åïŒ', rubricks_core/trunk/components/system/languages/english.rb
r5745 r5758 29 29 '_System_Account_MessageReissue' => 'Please change your password.', 30 30 '_System_Account_MessageReissueConfirm' => 'To change your password, confirm the mail please.', 31 '_System_Account_PasswordChangedSubject' => '[%s] Your password was changed', 31 32 '_System_Account_Register' => 'Register', 32 33 '_System_Account_ReissueMail' => 'Mail address : ', rubricks_core/trunk/components/system/languages/japanese.rb
r5745 r5758 38 38 '_System_Account_MessageReissue' => 'ãã¹ã¯ãŒãã倿ŽããŠãã ããã', 39 39 '_System_Account_MessageReissueConfirm' => 'ç»é²ã¢ãã¬ã¹å®ã«ãã¹ã¯ãŒãã®å€æŽæ¹æ³ãèšèŒããã¡ãŒã«ãéä¿¡ããŸãããã¡ãŒã«ã®æç€ºã«åŸã£ãŠãã¹ã¯ãŒãã倿ŽããŠãã ããã', 40 '_System_Account_PasswordChangedSubject' => '[%s] ãã¹ã¯ãŒã倿Žå®äºã®ãç¥ãã', 40 41 '_System_Account_Register' => 'ãŠãŒã¶ç»é²', 41 42 '_System_Account_ReissueMail' => 'ç»é²ã¡ãŒã«ã¢ãã¬ã¹ïŒ', … … 442 443 '_System_Attachment_UploadError' => 'ã¢ããããŒãã«å€±æããŸããããã¡ã€ã«ãäžæ£ã§ãã', 443 444 '_System_Attachment_UploadErrorByUnfocus' => 'ã¢ããããŒãã«å€±æããŸãããã¢ããããŒãæã«ã¯ãããã¢ãããããã©ãŒã«ã¹ãå€ããªãã§ãã ããã', 444 '_System_Attachment_InvalidFile' => 'ãã¡ã€ã«ã 圢åŒãäžæ£ã§ãã',445 '_System_Attachment_InvalidFile' => 'ãã¡ã€ã«ã®åœ¢åŒãäžæ£ã§ãã', 445 446 '_System_Attachment_InvalidLink' => 'æ·»ä»ãã¡ã€ã«ãžã®ãªã³ã¯ãäžæ£ã§ãã', 446 447 '_System_Block_Calendar' => 'ã«ã¬ã³ããŒ', rubricks_core/trunk/components/system/preload/_admin_trails.rhtml
r5587 r5758 2 2 count: 0, 3 3 export_max: <%= RubricksTrail::EXPORT_MAX %>, 4 filter_default: {5 'trails_date': "<%= hl(RubricksTrail::FILTER_DEFAULT[:trails_date]) %>",6 'trails_target_component': "<%= hl(RubricksTrail::FILTER_DEFAULT[:trails_target_component]) %>",7 'trails_user_name': "<%= hl(RubricksTrail::FILTER_DEFAULT[:trails_user_name]) %>",8 'trails_user_name_raw': "<%= RubricksTrail::FILTER_DEFAULT[:trails_user_name] %>"9 },10 4 msg_export_all: "<%= hl('[_System_AdminTrails_MessageExport][_System_AdminTrails_MessageExportCaution][_Common_ExportConfirm]') %>", 11 5 msg_export_limit: "<%= hl('[_System_AdminTrails_MessageExport]') + hl(['[_System_AdminTrails_MessageExportLimit]', RubricksTrail::EXPORT_MAX, RubricksTrail::EXPORT_MAX]) + hl('[_System_AdminTrails_MessageExportCaution][_Common_ExportConfirm]') %>", rubricks_core/trunk/components/system/search/atom.rxml
r3185 r5758 2 2 xml.feed :xmlns => 'http://www.w3.org/2005/Atom', 'xml:lang' => @site_info[:language] do 3 3 xml.title html_escape(@site_info[:title]), {:type => 'text'} 4 xml.subtitle 'Rubricks Search', {:type => 'text'}4 xml.subtitle html_escape(@site_info[:subtitle]), {:type => 'text'} 5 5 xml.link :type => 'application/xhtml+xml', :rel => 'alternate', :href => html_escape(@site_info[:site_url]) 6 6 xml.link :type => 'application/atom+xml', :rel => 'self', :href => html_escape(@site_info[:self]) 7 7 xml.updated html_escape(@entry_list.first[:date].strftime("%Y-%m-%dT%H:%M:%SZ")) 8 xml.id html_escape(@site_info[: search])8 xml.id html_escape(@site_info[:permalink]) 9 9 xml.author { 10 10 xml.name html_escape(@site_info[:author][:name]) … … 12 12 } 13 13 xml.generator 'Rubricks', {:type => 'text', :uri => html_escape('http://rubricks.org/')} 14 xml.icon html_escape( @site_info[:icon])15 xml.logo html_escape( @site_info[:logo])14 xml.icon html_escape(image_path(@site_info[:icon])) 15 xml.logo html_escape(image_path(@site_info[:logo])) 16 16 @entry_list.each do |entry| 17 17 xml.entry do rubricks_core/trunk/components/system/search/no_result.rxml
r2073 r5758 2 2 xml.feed :xmlns => 'http://www.w3.org/2005/Atom', 'xml:lang' => @site_info[:language] do 3 3 xml.title html_escape(@site_info[:title]), {:type => 'text'} 4 xml.subtitle 'Rubricks Search', {:type => 'text'}4 xml.subtitle html_escape(@site_info[:subtitle]), {:type => 'text'} 5 5 xml.link :type => 'application/xhtml+xml', :rel => 'alternate', :href => html_escape(@site_info[:site_url]) 6 6 xml.link :type => 'application/atom+xml', :rel => 'self', :href => html_escape(@site_info[:self]) 7 7 xml.updated '' 8 xml.id html_escape(@site_info[: search])8 xml.id html_escape(@site_info[:permalink]) 9 9 xml.author { 10 10 xml.name html_escape(@site_info[:author][:name]) … … 12 12 } 13 13 xml.generator 'Rubricks', {:type => 'text', :uri => html_escape('http://rubricks.org/')} 14 xml.icon html_escape( @site_info[:icon])15 xml.logo html_escape( @site_info[:logo])14 xml.icon html_escape(image_path(@site_info[:icon])) 15 xml.logo html_escape(image_path(@site_info[:logo])) 16 16 end rubricks_core/trunk/components/system/search_controller.rb
r5744 r5758 2 2 define_page 3 3 uses_component_template_root 4 authorize_by_server :actions => ['atom'] 4 5 5 6 def main … … 16 17 17 18 def atom 18 image_dir = "/images/themes/#{RubricksConfig.get('site_default_theme')}"19 self_url = url_for(:controller => '/system/search', :action => 'atom')20 search_action = url_for(:controller => '/system/search')21 site_url = url_for(:controller => '/')22 19 @site_info = { 23 :self => self_url,20 :self => url_for(:controller => '/system/search', :action => 'atom'), 24 21 :language => RubricksLib.lang_code, 25 22 :title => RubricksConfig.get('site_name'), 23 :subtitle => RubricksLib.l(RubricksMenuItem.find_by_controller('/system/search').title), 26 24 :author => { 27 25 :name => RubricksConfig.get('mail_from_name'), 28 26 :email => RubricksConfig.get('mail_from_address') 29 27 }, 30 :icon => image_path("#{image_dir}/favicon.ico"),31 :logo => image_path("#{image_dir}/logo.gif"),32 :site_url => site_url,33 : search => search_action28 :icon => "/images/themes/#{RubricksLib.current_theme_name}/favicon.ico", 29 :logo => "/images/themes/#{RubricksLib.current_theme_name}/logo.gif", 30 :site_url => url_for(:controller => '/'), 31 :permalink => url_for(:controller => '/system/search'), 34 32 } 35 33 q = (params[:q]) ? params[:q].slice(/.{0,255}/m) : '' rubricks_core/trunk/components/system/system_mailer.rb
r5744 r5758 24 24 end 25 25 26 def password_changed(name, recipient) 27 template "password_changed_#{RubricksLib.current_lang}" 28 recipients recipient 29 subject multi_lang!(sprintf(RubricksLib.l('[_System_Account_PasswordChangedSubject]'), RubricksConfig.get('site_name'))) 30 from multi_lang!(system_mail_address) 31 body(:name => name, :site_name => RubricksConfig.get('site_name')) 32 end 33 26 34 def reissue_password(name, recipient, key, path) 27 35 template "reissue_password_#{RubricksLib.current_lang}" rubricks_core/trunk/components/system/user/group_select.rhtml
r5695 r5758 79 79 </div> 80 80 <% else %> 81 <div id="<%= hl(@options[:prefix]) %>group_list_frame" class="system_user_select_list ">81 <div id="<%= hl(@options[:prefix]) %>group_list_frame" class="system_user_select_list rubricks_general_filter_border"> 82 82 <%= simple_render_component('/system/user', 'group_list', {:options => @options}) %> 83 83 </div> rubricks_core/trunk/components/system/user/user_select.rhtml
r5748 r5758 112 112 <tr> 113 113 <td class="system_user_select_list"> 114 <div class="system_user_select_title ">114 <div class="system_user_select_title background_user_select_title rubricks_general_filter_border"> 115 115 <%= hl(@options[:str_list_title]) %> 116 116 </div> 117 117 <div id="<%= hl(@options[:prefix]) %>filter_area" class="background_white"> 118 <% form_remote_tag(:url => {:controller => '/system/user', :action => 'user_list'}, :html => {:id => "#{hl(@options[:prefix])}filter_form", :class => 'system_user_select_filter '}, :update => "#{hl(@options[:prefix])}frame") do %>118 <% form_remote_tag(:url => {:controller => '/system/user', :action => 'user_list'}, :html => {:id => "#{hl(@options[:prefix])}filter_form", :class => 'system_user_select_filter rubricks_general_filter_border'}, :update => "#{hl(@options[:prefix])}frame") do %> 119 119 <input type="hidden" name="options" value="<%= hl(@params_options) %>" /> 120 120 <div class="system_user_select_filter_line"> … … 142 142 <% end %> 143 143 </div> 144 <div id="<%= hl(@options[:prefix]) %>frame" class="system_user_select_list ">144 <div id="<%= hl(@options[:prefix]) %>frame" class="system_user_select_list rubricks_general_filter_border"> 145 145 <%= simple_render_component('/system/user', 'user_list', {:options => @options}) %> 146 146 </div> … … 156 156 </td> 157 157 <td class="system_user_select_list"> 158 <div class="system_user_select_title ">158 <div class="system_user_select_title background_user_select_title rubricks_general_filter_border"> 159 159 <%= hl(@options[:str_selected_title]) %> 160 160 </div> 161 161 <% form_tag({:controller => '/'}, {:id => "#{hl(@options[:prefix])}form"}) do %> 162 <div class="system_user_select_selected ">162 <div class="system_user_select_selected rubricks_general_filter_border"> 163 163 <select id="<%= hl(@options[:prefix]) %>selected" size="12" multiple="multiple" class="system_user_select_selected background_white"></select> 164 164 <script type="text/javascript"> rubricks_core/trunk/components/system/user_controller.rb
r5390 r5758 5 5 def group_list 6 6 @options = fix_options(params[:options]) 7 @params_options = @options.to_json 7 @params_options = @options.to_json.json_fix_special_char 8 8 @rg = RubricksGroup.find_effective_group(params[:id]) rescue nil 9 9 conditions = (@rg) ? ['effective = true and private_component_id = ? and parent_id = ?', @options[:private_component_id], @rg.id] : ['effective = true and private_component_id = ? and parent_id is NULL', @options[:private_component_id]] … … 23 23 :str_submit_button => '[_Common_Decide]', 24 24 }.merge(input_options) 25 @params_options = @options.to_json 25 @params_options = @options.to_json.json_fix_special_char 26 26 @group_tree = (group_tree?) ? true : false 27 27 if @group_tree … … 41 41 def user_list 42 42 @options = merge_options(params) 43 @params_options = @options.to_json 43 @params_options = @options.to_json.json_fix_special_char 44 44 @pages, @ru_list = paginate(:rubricks_user, @options[:paginate]) 45 45 end … … 63 63 }.merge(input_options) 64 64 @options[:limit_msg] ||= (@options[:limit] <= 1) ? '[_System_User_MessageUserLimitSingle]' : RubricksLib.hl(['[_System_User_MessageUserLimitMultiple]', @options[:limit]]) 65 @params_options = @options.to_json 65 @params_options = @options.to_json.json_fix_special_char 66 66 @ru_list = (@options[:default].blank?) ? [] : RubricksUser.find_effective_user(:all, @options[:default]) 67 67 end rubricks_core/trunk/components/system/user_management/_group_show_tab_user_belongs_to.rhtml
r5695 r5758 2 2 <% render_tab_box_panel do %> 3 3 <div class="background_white"> 4 <% form_remote_tag(:update => 'users_belongs_to_frame', :url => {:controller => params[:controller].sub(%r(^/?), '/'), :action => 'group_show_user_list', :id => @rg.id}, :html => {:id => 'group_user_sort_form', :class => 'rubricks_general_sort'}) do %> 5 <select id="group_user_sort_key" name="group_user_sort[key]" onchange="rubricks.common.fire_onsubmit('group_user_sort_form');"> 6 <%= options_for_select([[hl('[_Common_SortKeyUserName]'), 'user_name'], [hl('[_Common_SortKeyUserId]'), 'user_id']], session[:system_sort_key]) %> 7 </select> 8 <select id="group_user_sort_order" name="group_user_sort[order]" onchange="rubricks.common.fire_onsubmit('group_user_sort_form');"> 9 <%= options_for_select([[hl('[_Common_Asc]'), 'asc'], [hl('[_Common_Desc]'), 'desc']], session[:system_sort_order]) %> 10 </select> 11 <% end %> 4 12 <% if @options[:flg_edit_group] %> 5 13 <% unless (@rg.id == RubricksGroup::GUEST_GROUP_ID || @rg.id == RubricksGroup::REGISTERED_GROUP_ID) %> rubricks_core/trunk/components/system/user_management/main.rhtml
r5748 r5758 49 49 <div class="rubricks_general_frame_borderless"> 50 50 <% render_operation_bar do %> 51 <% form_tag({:controller => params[:controller].sub(%r(^/?), '/'), :action => 'print', :p age=> 'print_control'}, {:id => 'operationbar_button_print', :class => 'operationbar_button_right_inactive swap', :target => "_blank"}) do %>51 <% form_tag({:controller => params[:controller].sub(%r(^/?), '/'), :action => 'print', :print_action => 'print_control'}, {:id => 'operationbar_button_print', :class => 'operationbar_button_right_inactive swap', :target => "_blank"}) do %> 52 52 <input type="hidden" id="user_management_print_target" name="print[target]" value="" /> 53 53 <input type="hidden" id="user_management_print_id" name="print[id]" value="" /> … … 55 55 <span id="print_button" class="buttons disabled darkicon_print textcolor_white" onclick="rubricks.system.admin_user.functions.print_control();"><%= hl('[_Common_Print]') %></span> 56 56 <% end %> 57 <% form_tag({:controller => params[:controller].sub(%r(^/?), '/'), :action => 'print', :p age=> 'print_control'}, {:id => 'user_list_print_form', :class => 'operationbar_button_right_inactive swap', :target => "_blank"}) do %>57 <% form_tag({:controller => params[:controller].sub(%r(^/?), '/'), :action => 'print', :print_action => 'print_control'}, {:id => 'user_list_print_form', :class => 'operationbar_button_right_inactive swap', :target => "_blank"}) do %> 58 58 <input type="hidden" id="user_management_list_print_target" name="print[target]" value="user_list" /> 59 59 <input type="hidden" id="user_management_list_print_page" name="print[page]" value="" />
