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

<!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><%=com == "add" ? "添加文章" : "编辑文章"%></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_ArticleList_Control.js"></script>
    <link href="Style/Iframe.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="FormControl" action="<%=getFormUrl %>?com=<%=com%>&naviid=<%=naviid %>&naviname=<%=naviname %>&artid=<%=artid %>" method="post" enctype="multipart/form-data">
<!-- 隐藏域 -->
<input id="articleID_hide" name="articleID_hide" type="hidden" value="<%=artid %>" />
<input id="naviname_hide" name="naviname_hide" type="hidden" value="<%=naviname %>" />
<input id="naviid_hide" name="naviid_hide" type="hidden" value="<%=naviid %>" />
<input id="articlePic_hide" name="articlePic_hide" type="hidden" value="<%=_artPic %>" />
<% string artPicSetID = ""; %>
<%if (_articlePicDat.Rows.Count>0) %>
<%{ %>
    <%for (int i = 0; i < _articlePicDat.Rows.Count; i++) %>
    <%{ %>
        <% artPicSetID += _articlePicDat.Rows[i]["id"].ToString() + ","; %>
    <%} %>
<%} %>
<input id="articlePicSet_hide" name="articlePicSet_hide" type="hidden" value="<%=artPicSetID %>" />
<input id="articleTitleColor_hide" name="articleTitleColor_hide" type="hidden" value="<%=_artTitleColor %>" />

<!-- 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"><%=com == "add" ? "添加文章" : "编辑文章"%> - <span class="NoB Q">[<%=naviname %>]</span></span>
    	                    <ul id="articleAdd_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>
                                <li><a href="#tabDiv4">其他</a></li>
                            </ul>
                            <div class="clear-0"></div>
                    </div>
	            </div>

        <!-- end 标 -->

        <!-- 表单 -->
        <div class="tbox_form">
            
            <div id="tabDiv1">
            <p>
                <label class="name">内容标题:</label>
                <input style="<%=_artTitleColor!=""?"color:"+_artTitleColor+";":"" %><%=_artTitleIsBlod==true?"font-weight:bold":"" %>" tabindex="1" id="articleTitle_text" value="<%=_artTitle %>" class="isNull input300" name="articleTitle_text" type="text" />
                <span class="point ico-remind V">文章标题</span>
            </p>
            <p>
                <label class="name">标题样式:</label>
                <label id="colorBox" class="color">
                    <a title="设置标题为黑色" style="background:#000;" href="#000">黑色</a>
                    <a title="设置标题为红色" style="background:#f00;" href="#f00">红色</a>
                    <a title="设置标题为黄色" style="background:#f60;" href="#f60">黄色</a>
                    <a title="设置标题为蓝色" style="background:#03f;" href="#03f">蓝色</a>
                    <a title="设置标题为绿色" style="background:#090;" href="#090">绿色</a>
                    <a title="设置标题为紫色" style="background:#c09;" href="#c09">紫色</a>
                </label>
                <label class="checkbox">
            	    <input id="articleTitleisbold_chk" name="articleTitleisbold_chk" <%=_artTitleIsBlod==true?"checked=checked":"" %> type="checkbox" value="0" class="isNull"/>加粗
                </label>
                <span class="point ico-remind V">标题样式控制</span>
            </p>
            
            <p>
                 <label class="name">内容编辑:</label> <span class="interval"><textarea name="articleContent_txt" id="articleContent_txt" class="isNull input400" tabindex="1" cols="" rows=""><%=_artContent%></textarea></span>
            </p>

            </div>

            <div id="tabDiv2" style="display:none;">
                <p>
                <label class="name">封面图片:</label> 
                <span class="interval">
                    <%if (_artPic.ToString().IndexOf("/") >= 0) %>
                    <%{ %>
                        <img id="articleImg_txt" class="small-border-images" src="<%=_artPic == "" ? "images/none-large-pic.gif" : _artPic %>" />
                    <%}else{ %>
                        <img id="articleImg_txt" class="small-border-images" src="<%=_artPic == "" ? "images/none-large-pic.gif" : "../Upload/Insets/" + _artPic %>" />
                    <%}%>
                    
                </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>
                </p>
                <div class="clear-8"></div>
                <p>
                    <label class="name">文章图片集:</label>
                    <ul id="uploadPicSetBox" class="upload_list">
                    <%if (_articlePicDat.Rows.Count > 0) %>
                    <%{ %>
                        <%for (int i = 0; i < _articlePicDat.Rows.Count; i++) %>
                        <%{ %>
                        <li>
                            <a class="del" rel="delPicSet" href="<%=_articlePicDat.Rows[i]["id"].ToString() %>-<%=_articlePicDat.Rows[i]["picpath"].ToString() %>">删</a>
                            <a class="fm" rel="fengPicSet" href="<%=_articlePicDat.Rows[i]["picpath"].ToString() %>">封</a>
                            <img class="small-border-images" src="/Upload/Insets/<%=_articlePicDat.Rows[i]["picpath"].ToString() %>" />
                            <div class="clear-6"></div>
                            <span class="E line16"><%=_articlePicDat.Rows[i]["name"].ToString()%></span>
                        </li>
                        <%} %>
                    <%}%>
                    <li id="noneData" style="<%=_articlePicDat.Rows.Count == 0 ? "display:block" : "display:none"%>" class="line18">暂无数据</li>
                    </ul>
                    

                </p> 
                <div class="clear-6"></div>
            </div>
            <div id="tabDiv3" style="display:none;">
                <p>
                <label class="name">内容属性:</label>

                <label class="checkbox">
            	    <input id="articleAttribute1_chk" name="articleAttribute1_chk" <%=_artAttribute1==true?"checked=checked":"" %> type="checkbox" value="0" />头条
                </label>
                <label class="checkbox">
                    <input id="articleAttribute2_chk" name="articleAttribute2_chk" <%=_artAttribute2==true?"checked=checked":"" %> type="checkbox" value="0" />推荐
                </label>
                <label class="checkbox">
                    <input id="articleAttribute3_chk" name="articleAttribute3_chk" <%=_artAttribute3==true?"checked=checked":"" %> type="checkbox" value="0" />置顶
                </label>
                <span class="point ico-remind V">文章属性设置</span>
                </p>

                <p>
                <label class="name"><span class="R">网址跳转:</span></label> <input tabindex="1" id="articleJump_text" value="<%=_artJump%>" class="isUrl input200" name="articleJump_text" type="text" />
                <span class="point ico-remind V">设置文章网址跳转选项,访问将直接跳转指定的网址,取消则留空</span>
                </p>

            </div>
            <div id="tabDiv4" style="display:none;">
                
                <p>
                <label class="name">内容来源:</label>
                <input tabindex="1" id="articleSource_text" value="<%=com == "add" ? "http://" + getUrlHost : _artSource%>" class="input300" name="articleSource_text" type="text" />
                <span class="point ico-remind V">文章的来源出处</span>
                </p>

                <p>
                    <label class="name">文章作者:</label> <input tabindex="1" id="aricleAuthor_text" value="<%=com == "add" ? EoyooCMS.CoreCalls.UserControl.nowUserName : _artAuthor%>" class="input300" name="aricleAuthor_text" type="text" />
                    <span class="point ico-remind V">文章的作者或发布者</span>
                </p>

                <p>
                <label class="name">推广词语:</label> <textarea name="articlekey_text" id="articlekey_text" class="input400" tabindex="1" cols="" rows=""><%=_artKey%></textarea>
                <span class="point ico-remind V">SEO优化推广关键词</span>
                </p>

                <p>
                <label class="name">推广描述:</label> <textarea name="articleDescription_text" id="articleDescription_text" class="input400" tabindex="1" cols="" rows=""><%=_artDescription%></textarea>
                <span class="point ico-remind V">SEO优化推广描述说明</span>
                </p>

            </div>
            <hr />
            <p>
                <label class="name">&nbsp;</label>
                <input type="submit" id="articleListControl_Btn" class="bule-btn f_left m_right4 W" value="确定保存" /> 
                <span></span>
            </p>
        </div>
        <!-- end 表单 -->
    <!-- end 添加文章 -->
</div>
    </form>
</body>
</html>
