Changeset 4431

Show
Ignore:
Timestamp:
08/09/07 18:11:56 (3 years ago)
Author:
uta
Message:

mobile

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • rubricks_core/branches/rubricks_core_for_mobile_from_4351/components/system/mobile/index.rhtml

    r4419 r4431  
    22  <% form_tag({:controller => '/system/mobile', :action => 'login'}) do %> 
    33    <p> 
    4       <%= hl('[_Common_UserId]') %><br /> 
    5       <%= text_field 'login', 'login_name', :size => 16, :class => 'input_text_inactive focus' %> 
     4      <%= render_mobile_emoticon(:n1) %><%= hl('[_Common_UserId]') %><br /> 
     5      <%= text_field 'login', 'login_name', :size => 16, :class => 'input_text_inactive focus', :accesskey => 1, :isstyle => 3 %> 
    66    </p> 
    77    <p> 
    8       <%= hl('[_Common_Password]') %><br /> 
    9       <%= password_field 'login', 'raw_password', :size => 16, :class => 'input_text_inactive focus' %> 
     8      <%= render_mobile_emoticon(:n2) %><%= hl('[_Common_Password]') %><br /> 
     9      <%= password_field 'login', 'raw_password', :size => 16, :class => 'input_text_inactive focus', :accesskey => 2, :isstyle => 3 %> 
    1010    </p> 
    1111    <p> 
  • rubricks_core/branches/rubricks_core_for_mobile_from_4351/components/system/mobile/menu.rhtml

    r4419 r4431  
    33    <% @rmm_list.each_with_index do |rmm, i| %> 
    44      <% if i < 9 %> 
    5         <li><%= render_mobile_emoticon("n#{i+1}".to_sym) %>test</li> 
     5        <li><%= render_mobile_emoticon("n#{i+1}".to_sym) %><%= hl(rmm.title) %></li> 
    66      <% else %> 
    7         <li><%= render_mobile_emoticon(:n_) %>test</li> 
     7        <li><%= render_mobile_emoticon(:n_) %><%= hl(rmm.title) %></li> 
    88      <% end %> 
    99    <% end %> 
  • rubricks_core/branches/rubricks_core_for_mobile_from_4351/components/system/mobile_controller.rb

    r4419 r4431  
    2323 
    2424  def menu 
    25     @rmm_list = ['', '', '', ''] 
     25    @rmm_list = RubricksMobileMenu.find(:all, :conditions => ['effective = true and visible = true'], :order => 'menu_order asc') 
    2626  end 
    2727 
  • rubricks_core/branches/rubricks_core_for_mobile_from_4351/vendor/plugins/rubricks/lib/action_view_mobile_helper.rb

    r4419 r4431  
    4545 
    4646      def render_mobile_style 
    47         html  = '<style type="text/css">
     47        html  = '<style type="text/css"><!--
    4848        html += render_mobile_style_default 
    4949        html += render_mobile_style_custom 
    50         html += '</style>' 
     50        html += '--></style>' 
    5151        return html 
    5252      end