<%@ page language="C#" autoeventwireup="true" inherits="user_contribute, ZKCMS" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register TagName="meta" TagPrefix="UC" Src="~/s/include/meta.ascx" %>
<%@ Register TagName="head" TagPrefix="UC" Src="~/s/include/head.ascx" %>
<%@ Register TagName="tip_bar" TagPrefix="UC" Src="~/s/include/tip_bar.ascx" %>
<%@ Register TagName="foot" TagPrefix="UC" Src="~/s/include/foot.ascx" %>
<%@ Register TagName="side_menu" TagPrefix="UC" Src="~/user/side_menu.ascx" %>
<!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">
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <title>会员中心_
        <%=ZK.config("sitetitle") %></title>
    <meta name="keywords" content="<%=ZK.config("sitekeywords") %>" />
    <meta name="description" content="<%=ZK.config("sitedescription") %>" />
    <UC:meta ID="meta1" runat="server" />
</head>
<body>
    <div class="wrap">
        <a name="pagetop" id="pagetop"></a>
        <UC:head ID="head1" runat="server" />
        <UC:tip_bar ID="tip_bar1" runat="server" />
        <form id="form1" runat="server" autocomplete="off">
        <div class="box">
            <div class="hot">
                <div class="fl" style="width: 180px">
                    <div class="c1 mt5">
                        <div class="b">
                            <div class="fl">
                            </div>
                            <div class="con" style="width: 80px">
                                功能菜单</div>
                            <div class="fr">
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                        <div class="v">
                            <UC:side_menu ID="side_menu1" runat="server" />

                            <script type="text/javascript">showonly_user_side_menu("1");</script>

                        </div>
                    </div>
                </div>
                <div class="fr flow" style="width: 765px">
                    <div class="c1 mt5">
                        <div class="b">
                            <div class="fl">
                            </div>
                            <div class="con">
                                <asp:Literal ID="Literal1" runat="server">新闻投稿</asp:Literal></div>
                            <div class="fr">
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                        <div class="v">
                            <div class="do1" style="padding: 10px 0 10px 10px">

                                <script type="text/javascript">
function check(){
if(document.getElementById("DropDownList1").value==""){alert("请选择类别！");return false;}
if(document.getElementById("TextBoxTitle").value==""){alert("信息标题不能为空！");return false;}
}
                                </script>

                                <table border="0" cellpadding="0" cellspacing="0" class="table1">
                                    <tr>
                                        <td class="tt">
                                            <b>选择类别：</b>
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="DropDownList1" runat="server" CssClass="sel1" Style="width: 200px">
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tt">
                                            <b>信息标题：</b>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="TextBoxTitle" runat="server" MaxLength="100" CssClass="inp4" Width="400"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tt">
                                            关键字：
                                        </td>
                                        <td>
                                            <asp:TextBox ID="keywords" runat="server" MaxLength="100" CssClass="inp4" Width="400"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tt">
                                            <b>信息内容：</b>
                                        </td>
                                        <td>
                                            <%@ register assembly="FredCK.FCKeditorV2" namespace="FredCK.FCKeditorV2" tagprefix="FCKeditorV2" %>
                                            <FCKeditorV2:FCKeditor ID="FCKeditor1" runat="server" BasePath="~/s/tool/fck/" Height="400"
                                                Width="620" ToolbarSet="Edit1">
                                            </FCKeditorV2:FCKeditor>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tt">
                                            &nbsp;
                                        </td>
                                        <td>
                                            <asp:Button ID="ButtonSubmit" runat="server" CssClass="but4" Text="发布投稿" OnClick="ButtonSubmit_Click"
                                                OnClientClick="return check()" onmouseover="hover(this,0.8)" onmouseout="hover(this,1)" /><input class="but4" value="取消修改" id="cancelbutton" style="margin-left:10px;display:none" type="button" onclick="if(confirm('确定取消修改吗？'))window.location='contribute.aspx#self_list';" />
                                                <script type="text/javascript">
                                                if(location.href.toLowerCase().indexOf("act=mod")!=-1)document.getElementById("cancelbutton").style.display="";
                                                </script>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </div>
                    </div>
                    <asp:Panel ID="Panel1" runat="server" CssClass="c1 mt5" Visible="false">
                    <a name="self_list" id="self_list"></a>
                        <div class="b">
                            <div class="fl">
                            </div>
                            <div class="con">
                                我的投稿</div>
                            <div class="fr">
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                        <div class="v">
                            <div class="v1">
                                <%@ register assembly="Pager" namespace="Wuqi.Webdiyer" tagprefix="DataPager" %>
                                <asp:Panel ID="Panel_Nodata" runat="server" Visible="false">
                                    <div class="tip_nodata" id="tip_nodata" style="background-position: 12px 13px">
                                        No data!&nbsp;<a href="job_do.aspx">(暂无投稿信息)</a></div>
                                </asp:Panel>
                                <asp:Panel ID="Panel_List" runat="server">
                                    <asp:Repeater ID="Repeater1" runat="server">
                                        <HeaderTemplate>
                                            <div class="list1">
                                                <table border="0" cellspacing="1" cellpadding="0" width="100%">
                                                    <tr>
                                                        <th width="80">
                                                            信息编号
                                                        </th>
                                                        <th>
                                                            <div class="al" style="padding-left: 10px">
                                                                信息标题</div>
                                                        </th>
                                                        <th width="70">
                                                            点击率
                                                        </th>
                                                        <th width="60">
                                                            状态
                                                        </th>
                                                        <th width="140">
                                                            投稿时间
                                                        </th>
                                                        <th width="60">
                                                            操作
                                                        </th>
                                                    </tr>
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <tr>
                                                <td>
                                                    <%#Eval("id")%>
                                                </td>
                                                <td>
                                                    <div class="al" style="padding-left: 10px">
                                                        <%#WMcompare.IsEmpty(Eval("thumbnail").ToString(),"","<img title=\"此信息含有图片\" src=\"/skin/public/pic.gif\" align=\"absmiddle\" />")%><a
                                                            href="/news/<%#Eval("id")%>.aspx" target="_blank" title="点击查看"><%#WM.E(Eval("title"), 50, true)%></a>
                                                    </div>
                                                </td>
                                                <td>
                                                    <%#Eval("click")%>
                                                </td>
                                                <td>
                                                    <%#WMcompare.IsEqual(WMreplace.ConvertBit(Eval("enable").ToString()), "1", "<img title=\"已审核\" src='/s/skin/true.gif'>", "<img title=\"未审核\" src='/s/skin/false.gif'>")%>
                                                </td>
                                                <td>
                                                    <%#WMtime.FormatDateTime(Eval("time").ToString(),"yyyy-MM-dd HH:mm")%>
                                                </td>
                                                <td>
                                                    <a href="#" onclick="window.location='contribute.aspx?act=mod&id=<%#Eval("id")%>&ReturnUrl='+base64en(location.href)">
                                                        [修改]</a>
                                                </td>
                                            </tr>
                                        </ItemTemplate>
                                        <FooterTemplate>
                                            </table></div>
                                        </FooterTemplate>
                                    </asp:Repeater>
                                </asp:Panel>
                                <asp:Panel ID="Panel_Turn" runat="server" Visible="false">
                                    <div id="DataPager">
                                        <table border="0" cellspacing="0" cellpadding="0" style="margin: 0 auto">
                                            <tr>
                                                <td>
                                                    <DataPager:AspNetPager ID="Pager1" runat="server" OnPageChanged="Pager1_PageChanged"
                                                        UrlPagingTarget="_self" PageSize="10" UrlPaging="true" FirstPageText="最前页" PrevPageText="上一页"
                                                        NextPageText="下一页" LastPageText="最后页" PagingButtonSpacing="0" CssClass="turn"
                                                        CurrentPageButtonClass="turn_on" SubmitButtonClass="pager_but" PageIndexBoxClass="pager_inp"
                                                        SubmitButtonText="转到" ShowPageIndexBox="Auto" ShowBoxThreshold="0" ShowDisabledButtons="false"
                                                        NumericButtonCount="6" FirstLastButtonsClass="turn_flpn" PrevNextButtonsClass="turn_flpn">
                                                    </DataPager:AspNetPager>
                                                </td>
                                            </tr>
                                        </table>
                                        <div class="clear" style="height: 8px">
                                        </div>
                                    </div>
                                </asp:Panel>
                            </div>
                        </div>
                    </asp:Panel>
                </div>
                <div class="clear">
                </div>
            </div>
        </div>
        </form>
        <UC:foot ID="foot1" runat="server" />
    </div>
</body>
</html>
