<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="content-style-type" content="text/css" />
    <title><%= @title || "管理画面" %></title>
    <%= javascript_include_tag :defaults %>
    <%= javascript_include_tag "admin/common" %>
    <%= javascript_include_tag js_url(:action => "treemenu") %>
    <%= javascript_include_tag "rollover" %>
    <%= javascript_include_tag js_url(:action => "application") %>
    <%= stylesheet_link_tag "admin" %>
    <%= yield :head -%>
  </head>
  <body>
<div id="wrapper" class="clearfix">
  <div id="header" class="clearfix"><!-- ヘッダー -->
    <div id="head_l">
      <h1><%= link_to image_tag("logo.gif", :width => "169", :height => "50", :alt => "ECパッケージ管理画面"), :controller => "home", :action => "index" %></h1>
    </div>
    <div id="head_m" class="clearfix">
      <ul id="con_menu" class="clearfix">
        <li><%= link_to image_tag("store_btn.gif", :width => "122", :height => "51", :alt => "店舗管理", :class => "hoverImg"), {:controller => "shops", :action => "index"}, :id => "shop" %></li>
        <li><%= link_to image_tag("goods_btn.gif", :width => "122", :height => "51", :alt => "商品管理", :class => "hoverImg"), {:controller => "products", :action => "index"}, :id => "product" %></li>
    <% if @system_supplier_use_flag %>
      <li><%= link_to image_tag("order_btn.gif", :width => "122", :height => "51", :alt => "発注出荷管理", :class => "hoverImg"), {:controller => "suppliers", :action => "index"}, :id => "depot" %></li>
	<%else%>
      <li><%= link_to image_tag("order_btn.gif", :width => "122", :height => "51", :alt => "発注出荷管理", :class => "hoverImg"), {:controller => "stock_in", :action => "index"}, :id => "depot" %></li>
	<%end%>	
  <li><%= link_to image_tag("site_btn.gif", :width => "122", :height => "51", :alt => "サイトを表示", :class => "hoverImg"), {:controller => "/portal", :action => "show"} %></li>
      </ul>
      <div id="head_r" class="clearfix">
        <p id="user_name"><a href="#"><%=h session[:admin_user].name %></a>&nbsp;様</p>
        <ul id="user_menu">
          <li><%= link_to 'ログアウト', :controller => :accounts, :action => :logout %></li>
          <li><%= link_to 'トップページ', :controller => :home, :action => :index %></li>
        </ul>
      </div>
    </div>
  </div><!-- /header -->
<div id="containar" class="clearfix">
  <%= yield %>
</div>
</div>
</body>
</html>
