<%@ page language="C#" autoeventwireup="true" inherits="admin_addclass, shazhiqiu_taoke_free" %>
<!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>
    <title></title>
            <script language="javascript" type="text/javascript">
function addtype()
{
var f = document.forms[0];
if (f.classname.value == "")
{
alert("请输入站点分类名!");
f.classname.focus();
return false;
}
if (f.siteurl.value == "0")
{
alert("请选择网站站点！");
f.siteurl.focus();
return false;
}
else
{
return true;
}
}

</script>
<link href="images/skin.css" rel="stylesheet" type="text/css" />

</head>
<body>
    <form id="form1" runat="server">
        <div class="divtext">
    <div class="righttitle"><img src="images/biaoti.png" /> 添加网站分类</div>

<table cellspacing="0" cellpadding="0" width="100%"  class="tablexian" border="0">
<tr><td   align="right" style="width: 100px" class="tablexianbg">分类名：</td><td align="left">
<input id="classname" runat="server" maxlength="25" type="text" class="hui" size="25" /></td></tr>
    <tr>
        <td align="right" style="width: 100px" class="tablexianbg">
            网站名：</td>
        <td align="left">
             <asp:DropDownList ID="siteurl" runat="server" AutoPostBack="True" OnSelectedIndexChanged="classid_SelectedIndexChanged">
             </asp:DropDownList>
        </td>
    </tr>
        <tr>
            <td align="right"  style="width: 100px" class="tablexianbg">
                父级分类：</td>
            <td align="left">
                <asp:DropDownList ID="classfather" runat="server">
                </asp:DropDownList></td>
        </tr>
    <tr>
        <td align="right"  style="width: 100px" class="tablexianbg">
            上传图片：</td>
        <td align="left">
            <input id="File1" type="file" runat="server" />&nbsp; 60*60</td>
    </tr>
    <tr>
        <td align="right"  style="width: 100px" class="tablexianbg">
            keywords：</td>
        <td align="left"><input id="classkeywords" runat="server" maxlength="50" type="text" size="40" class="hui" /></td>
    </tr>
    <tr>
        <td align="right"  style="width: 100px" class="tablexianbg">
            description：</td>
        <td align="left">
            <textarea id="classdescription" cols="60" rows="5" runat="server" class="hui"></textarea>
        </td>
    </tr>
<tr>
<td align="right"  style="width: 100px" class="tablexianbg">
</td>
<td align="left">
<input id="Submit1" runat="server" class="t1" type="submit" value=" 添加分类 " onclick="return addtype()" onserverclick="Submit1_ServerClick" /></td>
</tr>
</table>
    </div>
<asp:Label ID="message" runat="server"></asp:Label>
    </form>
</body>
</html>
