OSDN Git Service

- スマートフォン対応レポジトリからマージ
[elecoma/elecoma.git] / app / views / layouts / base_mobile_smartphone.html.erb
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
2     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
4   <head>
5
6     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
7     <meta http-equiv="Content-Script-Type" content="text/javascript" /> 
8     <meta http-equiv="Content-Style-Type" content="text/css" />
9     <meta name="viewport" content="width=device-width" />
10     <%= compound_title_tag(['K&B style', @product_name, @category_name, @campaign_name]) %>
11     <%= stylesheet_link_tag "smartphone/smartphone" %>
12     <%= javascript_include_tag 'smartphone/jscript.js' %>
13     <%= yield :head -%>
14   </head>
15   <body>
16         <div id="header">
17                 <div id="title"><%= link_to h('K&B style'), :controller => :portal, :action => :show %></div>
18                 <div>
19                 <%- if @login_customer.nil? -%>
20                         <a href="/accounts/login"  class="button rosy" id="login" >ログイン</a>
21                 <%- else -%>
22                         <a href="/accounts/myindex"  class="button rosy" id="login" >マイページ</a>
23                 <%- end -%>
24                 </div> 
25         </div>
26         <div id="searchAndCart">
27                 <% form_tag({:controller=>:products, :action=>:search, :only_path=>false}, {:method=>"get", :id=>'searchform'}) do %>
28                         <%= text_field_tag "search", params[:search], :id=>'searchbox', :class=>"rounded" %>
29                         <%= submit_tag "検索", :id=> "search", :class=>"button rosy" %>
30                 <% end %>
31                 <div><a href="/cart" class="button rosy" id="mycart">カート</a></div>
32                 <br clear="all" /> 
33         </div>
34         <%= yield %>
35         
36         <select id="categories" class="button rosy" 
37                 onchange="LinkTo(this.selectedIndex, this.options[selectedIndex].value)">
38                 <option value="/">アイテムから探す</option><!-- sagasu -->
39                 <%= category_list_view("SMARTPHONE") -%>
40         </select>
41         
42         
43         
44         <select id="info" class="button rosy"
45                 onchange="LinkTo(this.selectedIndex, this.options[selectedIndex].value)">
46                 <option value="/">インフォメーション</option>
47                 <option value ="/shop/about">当サイトについて</option>
48                 <option value="/inquiries/show">お問合わせ</option>
49                 <option value="/portal/show_tradelaw">特定商取引に関する法律</option>
50                 <option value="/portal/privacy">個人情報保護方針・個人情報の取扱いについて</option>
51                 <option value="/portal/escape_clause">免責事項について</option>
52         </select>
53         
54         <%- if @login_customer -%>
55                 <div id="logout">
56                         <%= link_to 'ログアウト', {:controller => :accounts, :action => :logout}, :class => "rosy small_button" %>
57                 </div>
58         <%- end -%>
59         <address>Copyright (c) 2000-2009 K&amp;Bstyle CO.LTD. All Rights Reserved.</address>
60   </body>
61 </html>