<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" CodeFile="ConsultativeEdit.aspx.cs"
    Inherits="admin_Consultative_ConsultativeEdit" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<!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">
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>编辑行业资讯</title>
    <link rel="stylesheet" href="../skin/style.css" type="text/css" />

    <script type="text/javascript">
    function display() 
    { 
        var rowTest=document.getElementById("rowTests");
        var rowTest1=document.getElementById("rowTest1");
        
        switch (document.form1.chkChangeDirectionLink.checked) 
        { 
            case false: 
                 document.form1.text.disabled=true;
                 rowTest.style.display="block";
                 rowTest1.style.display="block";
                 document.form1.text.value="";
            break; 
            case true: 
                document.form1.text.disabled=false;
                rowTest.style.display="none";
                rowTest1.style.display="none";
                document.form1.text.value="";
            break; 
            } 
     } 
    function showadv()
    {
        if (document.form1.pic_on.checked == true) 
        {
            adv.style.display = "";
            advance.innerText="取消上传标题图片"
        }
        else
        {
            adv.style.display = "none";
            advance.innerText="上传标题图片"
        }
    }
    </script>

</head>
<body>
    <form id="form1" runat="server">
        <div class="clr">
        </div>
        <div class="talbe_border">
            <asp:HiddenField ID="HiddUserID" runat="server" />
            <table cellspacing="0" cellpadding="0" width="100%" border="0" class="talbe_list">
                <tr>
                    <th colspan="2" class="header tou">
                        添加商业信息
                    </th>
                </tr>
                <tr>
                    <td width="16%" class="left1">
                        标题
                    </td>
                    <td class="left2">
                        <span>
                            <asp:TextBox ID="txtTitle" runat="server" Width="200"></asp:TextBox>  
                        </span>
                        <div id="txt0">
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="left1">
                        信息分类
                    </td>
                    <td class="left2">
                        <asp:DropDownList ID="dropTypeID" runat="server" AutoPostBack="True" OnSelectedIndexChanged="dropTypeID_SelectedIndexChanged">
                        </asp:DropDownList>
                         <asp:DropDownList ID="dropType" runat="server" >
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="left1">
                        图片
                    </td>
                    <td>
                        <div style="float: left">
                            <asp:HiddenField ID="ImgUrl1" runat="server" />
                            <asp:HiddenField ID="HiddenField1" runat="server" />
                            <a href="" id="txturldz" target="_blank">
                                <img src="../../Images/System/wutu1.gif" alt="" name="ImgUrl" width="98" height="98"
                                    border="0" id="ImgUrl" runat="server" /></a><br />
                            <input id="txtupload" type="button" value="上传" onclick="return rowTest()" /><br />
                            <div id="rowTest" style="display: none">
                                <iframe name="tag" src="../UpFile/Upload.html?NOWATER" style="width: 550px; height: 125px"
                                    frameborder="0" scrolling="no" onload="this.height=tag.document.body.scrollHeight">
                                </iframe>
                            </div>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="left1">
                        信息属性
                    </td>
                    <td class="left2">
                        <asp:CheckBoxList ID="chklAttribute" runat="server" RepeatLayout="Flow" RepeatDirection="Horizontal">
                            <asp:ListItem Value="0">推荐</asp:ListItem>
                            <asp:ListItem Value="1">置顶</asp:ListItem>
                            <asp:ListItem Value="2">幻灯片</asp:ListItem>
                            <asp:ListItem Value="3">是否允许评论</asp:ListItem>
                        </asp:CheckBoxList></td>
                </tr>
                <tr>
                    <td class="left1">
                        关键字</td>
                    <td class="left2">
                        <span>
                            <asp:TextBox ID="txtKeyWord" runat="server" Width="200"></asp:TextBox></span>
                        <div id="txt1">
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="left1">
                        文章作者</td>
                    <td class="left2">
                        <span>
                            <asp:TextBox ID="txtAuthor" runat="server" Width="200"></asp:TextBox></span>
                        <div id="txt2">
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="left1">
                        文章来源
                    </td>
                    <td class="left2">
                        <span>
                            <asp:TextBox ID="txtOrigin" runat="server" Width="200"></asp:TextBox></span>
                        <div id="txt3">
                        </div>
                    </td>
                </tr>
                <tr id="DirectionLink" runat="server">
                    <td class="left1">
                        转向连接
                    </td>
                    <td class="left2">
                        <span>
                            <input id="text" type="text" runat="server" maxlength="100" disabled="disabled" style="width: 330px;" />
                            <input id="chkChangeDirectionLink" type="checkbox" runat="server" onclick="display()"
                                style="color: Red" value="1" /></span><div style="color: #ff0000" id="link">
                                    注：请在转向链接前加http://</div>
                    </td>
                </tr>
                <tr id="rowTest1" runat="server">
                    <td class="left1">
                        导读</td>
                    <td class="left2">
                        <span>
                            <asp:TextBox ID="txtReading" runat="server" Height="83px" TextMode="MultiLine" Width="547px"></asp:TextBox></span>
                        <div id="txt4">
                        </div>
                    </td>
                </tr>
                <tr id="rowTests" runat="server">
                    <td width="16%" class="left1">
                        详细信息
                    </td>
                    <td width="84%" style=" height400px;">
                        <FCKeditorV2:FCKeditor ID="Detail" runat="server" BasePath="~/Control/fckeditor/"
                            ToolbarSet="Basic" Height="400px" Width="640">
                        </FCKeditorV2:FCKeditor>
                    </td>
                </tr>
                <tr>
                    <td class="left1">
                        添加时间</td>
                    <td class="left2">
                        <span>
                            <asp:TextBox ID="txtAddDate" onfocus="calendar()" runat="server" Width="200"></asp:TextBox></span><div
                                style="color: #ff0000">
                                注:如果不填默认为当前时间</div>
                    </td>
                </tr>
                <tr>
                    <td class="left1">
                        点击次数</td>
                    <td class="left2">
                        <span>
                            <asp:TextBox ID="txtClickCount" runat="server" Width="200"></asp:TextBox></span>
                        <div id="txt5">
                        </div>
                    </td>
                </tr>
                <tr align="center">
                    <td colspan="2" bgcolor="#F0F7FD">
                        <asp:Button ID="btnServer" runat="server" OnClick="btnServer_Click" Text="确定" CssClass="i_button" /><asp:Button
                            ID="btnCancel" runat="server" Text="取消" OnClick="btnCancel_Click" CssClass="i_button" /></td>
                </tr>
            </table>
        </div>

        <script type="text/javascript" src="../../js/calendar.js"></script>

        <script type="text/javascript" src="../../js/Common.js"></script>

        <script type="text/javascript" src="../../js/jquery-1.2.6-vsdoc-cn.js"></script>

        <script type="text/javascript" src="../js/Consultative.js"></script>

    </form>
</body>
</html>
