<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="LMN.Web.Admin.Shop.Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<link href="../css/admin.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../Scripts/jquery-1.4.1.min.js"></script>
<base target="_top" />
</head>
<body>
<form id="form1" runat="server">
<div id="side">
  <div class="section">
    功能菜单</div>
  <div class="section-child">
    <div class="g-level-1 withchild">
      <img src="../images/transparent.gif" toggle="m_d_1" /><span class="title">商品管理</span></div>
    <div class="g-level-2" id="m_d_1">
      <a href="../Index.aspx?ctl=Shop/Default&act=List">商品列表</a> <a href="../Index.aspx?ctl=Shop/Default&act=AddNew">添加商品</a></div>
    <div class="g-level-1 withchild">
      <img src="../images/transparent.gif" toggle="m_d_4" /><span class="title">商品设置</span></div>
    <div class="g-level-2" id="m_d_4">
      <a href="../Index.aspx?ctl=Shop/Default&act=Model">模型列表</a> <a href="../Index.aspx?ctl=Shop/Default&act=Category">分类列表</a> <a href="../Index.aspx?ctl=Shop/Default&act=Spec">规格列表</a> <a href="../Index.aspx?ctl=Shop/Default&act=Brand">品牌列表</a>
      <%-- <a href="../Index.aspx?ctl=Shop/Default&act=ModelAdd">添加模型</a><!-- <a href="../Index.aspx?ctl=Shop/Default&act=ImgGroup">图文属性</a>-->--%></div>
    <div class="g-level-1 withchild">
      <img src="../images/transparent.gif" toggle="m_d_2" /><span class="title">专题管理</span></div>
    <div class="g-level-2" id="m_d_2">
      <a href="../Index.aspx?ctl=Shop/Default&act=Topic">专题列表</a> <%--<a href="../Index.aspx?ctl=Shop/Default&act=CategoryAdd">添加分类</a>--%></div>
    <div class="g-level-1 withchild">
      <img src="../images/transparent.gif" toggle="m_d_3" /><span class="title">文章管理</span></div>
    <div class="g-level-2" id="m_d_3">
      <a href="../Index.aspx?ctl=Shop/Default&act=ArticleCategory">文章分类</a>
      <a href="../Index.aspx?ctl=Shop/Default&act=Article">文章列表</a> </div>
    <%--
    <div class="g-level-1 withchild">
      <img src="../images/transparent.gif" toggle="m_d_5" /><span class="title">规格管理</span></div>
    <div class="g-level-2" id="m_d_5">
      <a href="../Index.aspx?ctl=Shop/Default&act=Spec">规格列表</a>
      <a href="../Index.aspx?ctl=Shop/Default&act=SpecAdd">添加规格</a> </div>
    <div class="g-level-1 withchild">
      <img src="../images/transparent.gif" toggle="m_d_6" /><span class="title">品牌管理</span></div>
    <div class="g-level-2" id="m_d_6">
      <a href="../Index.aspx?ctl=Shop/Default&act=Brand">品牌列表</a>
      <a href="../Index.aspx?ctl=Shop/Default&act=BrandAdd">添加品牌</a> </div>
    --%>
    <div class="g-level-1 withchild">
      <img src="../images/transparent.gif" toggle="m_d_7" /><span class="title">商品批量处理</span></div>
    <div class="g-level-2" id="m_d_7">
      <a href="../Index.aspx?ctl=Shop/Default&act=Import">批量上传</a>
    </div>
  </div>
</div>
<div id="toggle">
  <span style="font-family: Webdings; color: #f00;">4</span></div>
<div id="board">
  <iframe id="content" name="content" src="<%=Act%>.aspx" frameborder="0" hspace="0" vspace="0" width="1" height="1" scrolling="auto"></iframe>
</div>
<div class="clear">
</div>
</form>
<script type="text/javascript">
  //var close = true;
  function init(w, h) {
    $("#side").show().height(h);
    //alert($(document).height() + "," + $("#side").height());
    $("#toggle").height(h).css("line-height", h + "px");
    $("#board").height(h - 8).width(w - $("#side").width() - 8);
    $("#board #content").height(h - 8).width(w - $("#side").width() - 8);
  }
  $(document).ready(function() {
    $(window).wresize(function() {
      init($(window).width(), $(window).height());
    });
    init($(window).width(), $(window).height());
  });
  // 切换
  $("#toggle").mouseover(function() {
    $(this).css("background", "#cccccc");
  });
  $("#toggle").mouseout(function() {
    $(this).css("background", "#6F777A");
  });
  $("#toggle").click(function() {
    if ($("#side").css("display") == "none") {
      $("#board").width($(document).width() - $("#side").width() - 8);
      $("#board #content").width($(document).width() - $("#side").width() - 8);
      $("#side").show();
    } else {
      $("#board").width($(document).width() - 8);
      $("#board #content").width($(document).width() - 8);
      $("#side").hide();
    }
  });
</script>
</body>
</html>
