<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" CodeBehind="AdminShuo.aspx.cs" Inherits="Oykx.admin.AdminShuo" %>

<!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>每日一说 - <%=Resources.zhouxiang.adminTitle %></title>
    <script type="text/javascript" src="http://pv.sohu.com/cityjson" charset="gb2312"></script>
    <link href="css/main.css" rel="stylesheet" type="text/css" />
    <link href="editor/themes/default/default.css" rel="stylesheet" type="text/css" />
    <script src="editor/kindeditor.js" charset="utf-8" type="text/javascript"></script>
    <script src="editor/plugins/code/prettify.js" type="text/javascript"></script>
    <link href="editor/plugins/code/prettify.css" rel="stylesheet" type="text/css" />
    <script src="editor/lang/zh_CN.js" type="text/javascript"></script>
     <script>
        KindEditor.ready(function(K) {
            var editor1 = K.create('#editor_id', {
                cssPath: 'editor/plugins/code/prettify.css',
                uploadJson: 'editor/upload_json.ashx',
                fileManagerJson: 'editor/file_manager_json.ashx',
                allowFileManager: true,
                afterCreate: function() {
                    var self = this;
                    K.ctrl(document, 13, function() {
                        self.sync();
                        K('form[name=example]')[0].submit();
                    });
                    K.ctrl(self.edit.doc, 13, function() {
                        self.sync();
                        K('form[name=example]')[0].submit();
                    });
                }
            });
            prettyPrint();
        });
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <input type="hidden" id="IP"  runat="server" />
    <script>
        function IP() {
            document.getElementById("IP").value = returnCitySN["cip"];
        }
        IP();
        
    </script>
    <div>
        <table cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td class="td_title">
                    每日一说
                </td>
            </tr>
            <tr>
                <td class="tableTd">
                    <textarea id="editor_id" runat="server" cols="20" name="content" rows="1" 
                        style="width: 100%; height: 180px;"></textarea></td>
            </tr>
            <tr>
                <td class="tableTd" style=" text-align:center">
                    <asp:Button ID="btnfabu" runat="server" Text="我要发布" Width="200px" 
                        onclick="btnfabu_Click" />
                </td>
            </tr>
        </table>
    </div>
    <div><table cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td class="td_title">
                    说说管理
                </td>
            </tr>
            <tr>
                <td class="tableTd">
                    <asp:GridView ID="GridView_shuo" runat="server" AutoGenerateColumns="False" 
                        DataSourceID="ObjectData_shuo" Width="100%" 
                        onrowcommand="GridView_shuo_RowCommand" 
                        onrowdatabound="GridView_shuo_RowDataBound" AllowPaging="True">
                        <Columns>
                            <asp:TemplateField HeaderText="说说ID" SortExpression="SID">
                                <EditItemTemplate>
                                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("SID") %>'></asp:TextBox>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="Label1" runat="server" Text='<%# Bind("SID") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="SContent" HeaderText="说说内容" 
                                SortExpression="SContent" />
                            <asp:BoundField DataField="STime" HeaderText="发表时间" SortExpression="STime" />
                            <asp:BoundField DataField="SDz" HeaderText="来自哪里" SortExpression="SDz" />
                            <asp:TemplateField HeaderText="删除" ShowHeader="False">
                                <ItemTemplate>
                                    <asp:LinkButton ID="LinkBtnDel" runat="server" CausesValidation="false" 
                                        CommandName="del" Text="删除" CommandArgument='<%# Bind("SID") %>'></asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                    </td>
            </tr>
        </table></div>
    <div style=" height:5px;">&nbsp;</div>
     <table width="100%">
     <tr>
                <td class="td_title">
                    友情提示</td>
            </tr>
            <tr>
                <td class="tableTd">
                    1.发布说说时,请注意您的言论.</td>
            </tr>
            <tr>
                <td class="tableTd">
                    2.发布说更加有利于网站的SEO优化.</td>
            </tr>
            <tr>
                <td class="tableTd">
                    3.发布说说可以让游客更好的了解您最近的情况.</td>
            </tr>
       
            </table>
    <asp:ObjectDataSource ID="ObjectData_shuo" runat="server" SelectMethod="get" 
        TypeName="OykxBLL.SxinManager">
    </asp:ObjectDataSource>
    </form>
</body>
</html>