<%@ Page Language="C#" AutoEventWireup="true" Inherits="EoyooCMS.ManageCode.Content_PageList" %>

<!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>
    <title><%=naviname %> - 单页编辑</title>
    <meta name="Author" content="EoyooCMS" />
    <meta name="Copyright" content="eoyoo.com" />
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Cache-Control" content="no-cache" />
    <meta http-equiv="Expires" content="0" />
    <script type="text/javascript" src="Script/Jquery.js"></script>
    <script type="text/javascript" src="Script/Common.js"></script>
    <script type="text/javascript" src="Plugin/Xheditor/xheditor.js"></script>
    <script type="text/javascript" src="Plugin/Uploadify/jquery.uploadify.min.js"></script>
    <script type="text/javascript" src="Script/Eoyoo.FormControl.js"></script>
    <script type="text/javascript" src="Script/Content_PageList.js"></script>
    <link href="Style/Iframe.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="FormControl" action="<%=getFormUrl %>?naviid=<%=naviid %>&naviname=<%=naviname %>" method="post" enctype="multipart/form-data">
<!-- 隐藏域 -->
<input id="pageId_hide" name="pageId_hide" type="hidden" value="<%=_pageID %>" />
<input id="pageNaviid_hide" name="pageNaviid_hide" type="hidden" value="<%=naviid %>" />
<input id="pageNaviName_hide" name="pageNaviName_hide" type="hidden" value="<%=naviname %>" />
<input id="pagePic_hide" name="pagePic_hide" type="hidden" value="<%=_pageImg%>" />
<!-- end 隐藏域 -->
<div class="wrapper-div">    
	<!-- 单页管理 -->
        <!-- 标 -->
                <div class="title1">
                    <div class="right">
                        <span class="title-ico f_right titico3 X"> Ctrl + S 快捷保存</span>
                        <span class="title-ico titico7 H B f_left m_right16"><%=naviname %></span>
    	                    <ul id="pageInfo_Tab" class="tabs-2 f_left">
                                <li><a class="active" href="#tabDiv1">基本属性</a></li>
                                <li><a href="#tabDiv2">高级属性</a></li>
                                <li><a href="#tabDiv3">扩展项</a></li>
                            </ul>
                            <div class="clear-0"></div>
                    </div>
	            </div>

        <!-- end 标 -->
        
        <!-- 表单 -->
        <div class="tbox_form">
            <div id="tabDiv1">
                <p>
                    <label class="name"><span class="J">*</span>栏目别名:</label> <input tabindex="1" id="pageName_txt" value="<%=_pageName == "" ? naviname : _pageName%>" class="input200 isNull" name="pageName_txt" type="text" />
                    <span class="point ico-remind V">网站的内页别名称</span>
                </p>

                <p id="abc">
                    <label class="name">内容编辑:</label><textarea name="pageContent_txt" id="pageContent_txt" class="input400" tabindex="1" cols="" rows=""><%=_pageContent %></textarea>
                    <span class="interval"></span>
                </p>
            </div>

            <div id="tabDiv2" style="display:none;">
                <label class="name">封面图片:</label> 
                <span class="interval">
                    <img id="pageImg_txt" class="small-images" src="<%=_pageImg == "" ? "images/none-large-pic.gif" : "../Upload/Insets/" + _pageImg %>" />
                </span>
                <span class="interval">
                    <span id="uploadMsg" class="point ico-remind V">内容缩略图</span><br />
                    <span class="uploadBtn"><input type="file" name="uploadImgBtn" id="uploadImgBtn" /></span>
                </span>
                <div class="clear-6"></div>

            </div>
            <div id="tabDiv3" style="display:none;">
                <a href="#" id="pageItemAddBtn" class="green-add-btn f_left W">添加扩展项</a>
                <div class="clear-4"></div>

                <div id="pageItemBox">
                
                <%if (_pageItemDat.Rows.Count > 0) %>
                <%{ %>
                    <%for (int i = 0; i < _pageItemDat.Rows.Count; i++) %>
                    <%{ %>
                        <div title="pageItemForBox">
                        <div class="title-tab">
                        <span class="f_right">
                        <%if (_pageItemDat.Rows.Count > 1) %>
                        <%{ %>
                            <%if ((i+1) != _pageItemDat.Rows.Count) %>
                            <%{ %>
                                <a class="F" rel="shift" rev="<%=_pageItemDat.Rows[i]["orderid"].ToString()%>" name="<%=_pageItemDat.Rows[i]["id"].ToString()%>" pageid="<%=_pageItemDat.Rows[i]["pageid"].ToString()%>" pagename="<%=_pageItemDat.Rows[i]["name"].ToString()%>" href="downward"> [下移] </a> 
                            <%} %>
                            <%if (i != 0) %>
                            <%{ %>
                                <a class="F" rel="shift" rev="<%=_pageItemDat.Rows[i]["orderid"].ToString()%>" name="<%=_pageItemDat.Rows[i]["id"].ToString()%>" pageid="<%=_pageItemDat.Rows[i]["pageid"].ToString()%>" pagename="<%=_pageItemDat.Rows[i]["name"].ToString()%>" href="upward"> [上移] </a> 
                            <%} %>
                        <%} %>
                        <a class="R" rel="delPageItem" rev="<%=_pageItemDat.Rows[i]["name"].ToString()%>" href="<%=_pageItemDat.Rows[i]["id"].ToString()%>"> [删除] </a>  
                        </span>

                        <div class="title"><span class="title-ico titico7 F B"><%=_pageItemDat.Rows[i]["name"].ToString()%></span></div>
                        </div>

                        <p>
                        <label class="name"><span class="J">*</span>扩展项别名:</label> <input tabindex="1" value="<%=_pageItemDat.Rows[i]["name"].ToString()%>" class="input200 isNull" name="pageItemName_txt_<%=_pageItemDat.Rows[i]["id"].ToString()%>" type="text" />
                        <span class="point ico-remind V">扩展项名称</span>
                        </p>

                        <p>
                        <label class="name">扩展内容:</label> <span class="interval"><textarea id="pageItemContent_txt_<%=_pageItemDat.Rows[i]["id"].ToString()%>" name="pageItemContent_txt_<%=_pageItemDat.Rows[i]["id"].ToString()%>" class="input400" tabindex="1" cols="" exist="1" rows=""><%=_pageItemDat.Rows[i]["content"].ToString()%></textarea></span>
                        </p>
                        </div>
                    <%} %>
                <%} %>
                
                
                </div>
                <div class="msgbox" id="pageItemMsgBox">您还没有添加扩展项!</div>
            </div>
            <hr />
            <p>
                <label class="name">&nbsp;</label>
                <input type="submit" class="bule-btn W" value="确定保存" />
                <span></span>
            </p>

        </div>
        <!-- end 表单 -->
        
    <!-- end 单页管理 -->
</div>
    </form>
</body>
</html>
