<%@ Page Language="C#" AutoEventWireup="true" CodeFile="InformationType_Update.aspx.cs" Inherits="InformationType_Update" %>

<!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>资讯类型修改</title>
    <link href="../css/list.css" rel="stylesheet" type="text/css" />
    <link href="../style/style.css" rel="stylesheet" type="text/css" />
    <script src="../js/jquery.js" type="text/javascript"></script>
    <script src="../js/common.js" type="text/javascript"></script>
</head>
<body topmargin="0px" bottommargin="0px" leftmargin="0px" rightmargin="0px" onload ="controlInputNumber();" >
<form id="form1" runat="server">
    <div class="list1">
    <div class="list2">
        <span>资讯类型修改</span>
    </div>
    <div  style="border:1px solid #FFFFFF">
            <table class="list3" width="100%" height="100%" cellpadding="0" cellspacing="0">
                <tr>
                    <td class="list3_1" style="width:215px" nowrap="nowrap">
                       <span style="color:Black">资讯类型名称：</span>
                    </td>
                    <td class="list3_2" nowrap="nowrap">
                        <asp:TextBox ID="txtInformationTypeName" runat="server"  Text="" ></asp:TextBox>
                            <font color="red">* </font>
                        <asp:RequiredFieldValidator ID="rfvInformationTypeName" runat="server" ErrorMessage="资讯类型名称必须填写！" Display="Dynamic"
                            ControlToValidate="txtInformationTypeName" ValidationGroup="1"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                     <td class="list3_1" nowrap="nowrap">
                        <span style="color:Black">请选择父类型：</span>
                    </td>
                    <td class="list3_2" nowrap="nowrap">
                        <asp:DropDownList ID="ddlFidType" runat="server" AppendDataBoundItems="true" style="margin-left:10px"></asp:DropDownList>
                    </td>
                </tr>
                <tr>
                     <td class="list3_1" nowrap="nowrap">
                        <span style="color:Black">排序值：</span>
                    </td>
                    <td class="list3_2" nowrap="nowrap">
                        <asp:TextBox ID="txtSort" runat="server" Text="1" onblur="setinitvalue(this);"></asp:TextBox>    
                    </td>
                </tr>
                <tr>
                    <td style="border-right:0px"></td>
                    <td class="list5" align="left">
                        <asp:ImageButton ID="tijiao" runat="server" OnClick="tijiao_Click"  OnClientClick=" return verify();" ImageUrl="../images/blue/submit.jpg" style="vertical-align:middle;margin-left:10px"/>
                       &nbsp;&nbsp;&nbsp;&nbsp; 
                       <asp:ImageButton ID="btn_Return" runat="server" OnClick="btnReturn_Click" ImageUrl="../images/blue/cancel.jpg" style="vertical-align:middle;margin-left:10px"/>
                    </td>
                </tr>
            </table> 
        </div>
        </div>                
    </form>
</body>
</html>
<script type="text/javascript">
    function verify() {
        var InformationTypeName = $("#txtInformationTypeName").val();
        if (InformationTypeName == null || InformationTypeName == "") {
            $("#rfvInformationTypeName").show();
        }
    }
    function setinitvalue(obj) {
        if ($(obj).val() == "") { $(obj).val("1"); }
    }
</script>
