<!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 "treemenu" %>
    <%= javascript_include_tag "rollover" %>
    <%= stylesheet_link_tag "admin" %>
    <%= yield :head -%>
  </head>
  <body>
<div id="wrapper" class="clearfix">
  <div id="header" class="clearfix"><!-- ヘッダー -->
    <div id="head_l">
      <h1><a href="/admin/home"><img src="/images/logo.gif" width="169" height="50" alt="ECパッケージ管理画面" /></a></h1>
    </div>
    <div id="head_m" class="clearfix">
      <ul id="con_menu" class="clearfix">
        <li><a href="/admin/shops" id="shop"><img src="/images/store_btn.gif" width="122" height="51" alt="店舗管理" class="hoverImg" /></a></li>
        <li><a href="/admin/products" id="product"><img src="/images/goods_btn.gif" width="122" height="51" alt="商品管理" class="hoverImg" /></a></li>
        <li><a href="/"><img src="/images/site_btn.gif" width="122" height="51" alt="サイトを表示" class="hoverImg" /></a></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 %>
</body>
</html>
