<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" CodeBehind="addBlog.aspx.cs" Inherits="Oykx.admin.addBlog" %>
<!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 id="Head1" runat="server">
    <title>添加日志 -
        <%=Resources.zhouxiang.adminTitle %></title>
    <link href="css/main.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="http://pv.sohu.com/cityjson" charset="gb2312"></script>
    <link href="editor/themes/default/default.css" rel="stylesheet" type="text/css" />

    <script src="js/jQuery.v1.4.2.js" type="text/javascript"></script>

    <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>
    <table cellpadding="0" cellspacing="0" width="100%">
        <tr>
            <td class="td_title">
                添加日志
            </td>
        </tr>
        <tr>
            <td class="tableTd">
                <table cellpadding="0" cellspacing="0" width="100%">
                    <tr class="tableTd">
                        <td style="width: 30px; text-align: right">
                            标题:
                        </td>
                        <td style="width: 310px;">
                            <asp:TextBox ID="txtTitle" runat="server" Width="300px"></asp:TextBox>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td class="tableTd">
                <textarea id="editor_id" runat="server" name="content" style="width: 100%; height: 300px;"></textarea>
            </td>
        </tr>
        <tr>
            <td class="tableTd">
                <table cellpadding="0" cellspacing="0" width="100%">
                    <tr class="tableTd">
                        <td style="width: 55px; text-align: right">
                            分类:
                        </td>
                        <td>
                            <asp:DropDownList ID="DropDownType" runat="server" Width="100px" DataSourceID="ObjectDataType"
                                DataTextField="TName" DataValueField="TID">
                            </asp:DropDownList>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td class="tableTd">
                <table cellpadding="0" cellspacing="0" width="100%">
                    <tr class="tableTd">
                        <td style="width: 55px; text-align: right">
                            是否推荐</td>
                        <td>
                            <asp:CheckBox ID="CheckBox_Blog" runat="server" Text="推荐" />
                        </td>
                    </tr>
                    <tr class="tableTd">
                        <td style="width: 55px; text-align: right">
                            原文URL:
                        </td>
                        <td>
                            <asp:TextBox ID="txtURL" runat="server" Width="300px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr class="tableTd">
                        <td style="width: 55px; text-align: right">
                            TAG:</td>
                        <td>
                            <asp:TextBox ID="txtTag" runat="server" Width="300px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr class="tableTd" >
                        <td style="text-align: right">
                            伪静态:</td>
                        <td>
                            <asp:TextBox ID="txtWeiUrl" runat="server" Width="300px"></asp:TextBox>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td class="tableTd">
                <asp:Button ID="btnadd" runat="server" Text="提交" onclick="btnadd_Click" />
                &nbsp;
                <asp:Button ID="btnfanhui" runat="server" Text="返回" />
            </td>
        </tr>
    </table>
    <asp:ObjectDataSource ID="ObjectDataType" runat="server" SelectMethod="get" TypeName="OykxBLL.BlogTypeManager">
    </asp:ObjectDataSource>
    <table width="100%">
     <tr>
                <td class="td_title">
                    友情提示</td>
            </tr>
            <tr>
                <td class="tableTd">
                    1.按ESC键可以进行全屏编辑</td>
            </tr>
            <tr>
                <td class="tableTd">
                    2.鼠标放到编辑框右下角可以自由改变大小.</td>
            </tr>
            <tr>
                <td class="tableTd">
                    3.原文url忽略可以不填.</td>
            </tr>
       
            <tr>
                <td class="tableTd">
                    4.Tag标签 格式为每写一个词后 用逗号(,)隔开. </td>
            </tr>
       
            <tr>
                <td class="tableTd">
                    5.伪静态,可以填写.html或者.htm结尾的此 例如:abc.html,伪静态可以不填,但如果填写 可以更好让搜索引擎收录.</td>
            </tr>
       
    </table>
    </form>
</body>
</html>
