<%@ page language="C#" autoeventwireup="true" inherits="Course_CourseTypeLFRM, App_Web_vzflj4p3" stylesheettheme="Themes" theme="Themes" %>

<!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>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
 <script type="text/javascript" src="../Js/jquery.js"></script>

<%--     <link id="artDialogSkin" href="../js/skin/default.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../js/artDialog.js"></script>--%>

    <script type="text/javascript" src="../Js/jquery.pngFix.pack.js"></script>

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

    <script type="text/javascript" src="../Js/InterfaceContrl.js"></script>
    
            <script src="../js/artDialog3/artDialog.min.js"></script>
      <script>          (function($) { var d = $.dialog.defaults; d.skin = ['chrome']; })(art);</script>
<script type="text/javascript">
    //artDialog js的完美弹出层
    function showEdit(strId) {
        var sURL = "coursetypeEFRM.aspx?id=" + strId ;
        //art.dialog({ id: 'myDialogNote', title: '编辑课程类别', iframe: sURL, width: '350', height: '100', lock: true }).close(function() { document.getElementById("btnBindData").click(); });

        art.dialog.open(sURL, { id: 'myDialogNote', title: '编辑课程类别', width: '350px', height: '150px', lock: true, closeFn: function() { document.getElementById("btnBindData").click(); } });
        return false;
    };
  
</script>
    <style type="text/css">
        
        #divNum
        {
            position: absolute;
            width: 360px;
            height: 10%;
            z-index: 2;
            left: 20%;
            top: 10%;
        }
        #LayerAll
        {
            position: absolute;
            filter: alpha(opacity = 50);
            width: 100%;
            height: 100%;
            background-color: #FAFAFA;
            border: 0px;
            left: 1px;
            top: 1px;
            z-index: 1;
            display: none;
        }
        #right
        {
            position: absolute;
            width: 80%;
            height: 30%;
            z-index: 2;
            left: 10%;
            top: 16%;
        }
        .t1
        {
            border-bottom: #99cc66 1px solid;
            position: relative;
            line-height: 23px;
            padding-left: 5px;
            margin-bottom: 10px;
            height: 23px;
            color: #5b9400;
            font-size: 14px;
            font-weight: bold;
        }
        .t2
        {
            border-bottom: #99cc66 1px solid;
            position: relative;
            line-height: 23px;
            padding-left: 5px;
            margin-bottom: 10px;
            height: 23px;
            color: #5b9400;
            font-size: 14px;
            font-weight: bold;
        }
        .t1 .m
        {
            position: absolute;
            padding-right: 15px;
            background: url(http://img.baidu.com/hi/img/index/arrow.gif) no-repeat right -5px;
            font-size: 14px;
            top: 2px;
            right: 0px;
        }
        .t1 .m2
        {
            position: absolute;
            padding-right: 15px;
            background: url(http://img.baidu.com/hi/img/index/arrow.gif) no-repeat right -5px;
            font-size: 14px;
            top: 2px;
            right: 0px;
        }
        .t1 .m2
        {
            line-height: 18px;
            font-size: 12px;
            font-weight: normal;
        }
        .t2
        {
            padding-bottom: 0px;
            line-height: 18px;
            border-right-width: 0px;
            padding-left: 0px;
            padding-right: 0px;
            margin-bottom: 2px;
            border-top-width: 0px;
            border-bottom-width: 0px;
            color: #5b9400;
            border-left-width: 0px;
            padding-top: 0px;
        }
        .t3
        {
            z-index: 6553;
            position: relative;
            line-height: 30px;
            padding-left: 55px;
            background: url(http://img.baidu.com/hi/img/index/iconhi.gif) no-repeat;
            height: 35px;
            font-size: 14px;
            font-weight: bold;
        }
        .rcb
        {
            height: 5px;
            clear: both;
        }
        .rct .l
        {
            background-image: url(../images/rc.gif);
            position: relative;
            width: 5px;
            height: 5px;
            font-size: 1px;
            overflow: hidden;
        }
        .rct .r
        {
            background-image: url(../images/rc.gif);
            position: relative;
            width: 5px;
            height: 5px;
            font-size: 1px;
            overflow: hidden;
        }
        .rcb .l
        {
            background-image: url(../images/rc.gif);
            position: relative;
            width: 5px;
            height: 5px;
            font-size: 1px;
            overflow: hidden;
        }
        .rcb .r
        {
            background-image: url(../images/rc.gif);
            position: relative;
            width: 5px;
            height: 5px;
            font-size: 1px;
            overflow: hidden;
        }
        .rct .l
        {
            float: left;
            left: -1px;
        }
        .rcb .l
        {
            float: left;
            left: -1px;
        }
        .rct .r
        {
            float: right;
            right: -1px;
        }
        .rcb .r
        {
            float: right;
            right: -1px;
        }
        .rct .l
        {
            top: -1px;
        }
        .rct .r
        {
            top: -1px;
        }
        .rcb .l
        {
            top: 1px;
        }
        .rcb .r
        {
            top: 1px;
        }
        .b2
        {
            border-bottom: #ccc 1px solid;
            border-left: #ccc 1px solid;
            margin-bottom: 10px;
            background: #fff;
            border-top: #ccc 1px solid;
            border-right: #ccc 1px solid;
        }
        .b2 .cnt
        {
            padding-bottom: 10px;
            padding-left: 10px;
            padding-right: 10px;
            padding-top: 10px;
        }
        .tl1
        {
            background-position: left top;
        }
        .tr1
        {
            background-position: right top;
        }
        .bl1
        {
            background-position: left bottom;
        }
        .br1
        {
            background-position: right bottom;
        }
        .lginfo
        {
            line-height: 22px;
            clear: both;
        }
        .fan
        {
            margin-top: 10px;
        }
        .fan TD
        {
            padding-bottom: 2px;
            padding-left: 8px;
            padding-right: 8px;
            color: #666;
            padding-top: 2px;
        }
        .f14
        {
            line-height: 24px;
            font-size: 14px;
        }
    </style>
</head>
<body>
<div id="loading">
        <div style="position: absolute; top: 0px; left: 0px; width: 100%; height: 100%; background-color: #ffffff;
            z-index: 10; filter: alpha(opacity=90); opacity: 0.9;">
        </div>
        <div id="msg_area" style="z-index: 200; left: 289px; position: absolute; top: 202px;">
            <div id="msgPanel" style="z-index: 200;" height="24px" width="100px" bordercolor="#eeeeee"
                borderstyle="Solid" borderwidth="1px">
                <asp:Image ID="img" runat="server" ImageUrl="~/images/loading.gif" />
                <font style="font-size: 9pt;color:Gray;">loading...读取中......</font>
            </div>
        </div>
    </div>
    <form id="form1" runat="server">
<%--    <div id="divNum" algin="center"  runat="server">
        <div id="m_onlineuser" class="b2">
            <div class="rct">
                <div class="l tl1">
                </div>
                <div class="r tr1">
                </div>
            </div>
            <div class="cnt f14">
                <div style="color: #666" align="center">
                    <table width="100%" height="100%" cellspacing="0" cellpadding="0" border="0" style="table-layout: fixed;
                        background-color:#deeffa ;">
                        <tr>
                            <td align="center">
                                请输入类型名称：
                                <asp:TextBox ID="txtCourseTypeName" runat="server" Width="150px" MaxLength="20"></asp:TextBox>
                            </td>
                        </tr>
                        <tr height="40">
                            <td align="center" valign="middle">
                                <asp:Button ID="btnOK" runat="server" Text=" 确  定 " OnClick="btnOK_Click" />
                                &nbsp;&nbsp;&nbsp;&nbsp;
                                <asp:Button ID="btnCancel" runat="server" Text=" 取  消 " OnClick="btnCancel_Click" />
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
            <div class="rcb">
                <div class="l bl1">
                </div>
                <div class="r br1">
                </div>
            </div>
        </div>
    </div>
    <div id="LayerAll" runat="server">
    </div>--%>
    <table cellpadding="0" cellspacing="0" class="table_box">
        <tr>
            <td class="right_bg">
                <span class="right_title">
                    <img src="../Images/homen.gif" class="img_style" />
                    您的当前位置：资源管理 &gt; 基础数据管理 > 课程类别</span>
            </td>
        </tr>
        <tr>
            <td class="r_top_box">
                <table cellspacing="0" cellpadding="5" class="r_top_title_box">
            <tr>
                <td>
                <div class="warning">
                            <font>课程类别是作为课程的一种分类方法，方便用户查找数据。</font></div>
                </td>
                <td align="right">
                    <asp:TextBox ID="txtCourseTypetID" runat="server" Text="0"></asp:TextBox>
                    <asp:Button ID="btnAddRoot" runat="server" Text="添加类型" OnClick="btnAddRoot_Click" />
                    <%--<asp:Button ID="btnAddSub" runat="server" Text="添加子类型" OnClick="btnAddSub_Click" />--%>
                    <asp:Button ID="btnModifyName" runat="server" SkinID="big_btn" Text="修改类型名称" OnClick="btnModifyName_Click" />
                    <asp:Button ID="btnDel" runat="server" Text="删除选中类型" SkinID="big_btn" OnClientClick='return confirm("确定要删除吗？");'
                        OnClick="btnDel_Click" />
                    <asp:Button ID="btnBindData" runat="server" onclick="btnBindData_Click" 
                        Text="Button" />
                </td>
            </tr></table></td></tr>
        <tr><td class="margintop5">
        <table bgcolor="white" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td align="left" class="tree_box">
                    <asp:TreeView ID="tree" runat="server" ShowLines="True" DataSourceID="XmlDataSource1"
                        ExpandDepth="3" OnDataBound="tree_DataBound" OnSelectedNodeChanged="tree_SelectedNodeChanged" width="170px">
                        <LevelStyles>
                            <asp:TreeNodeStyle Font-Underline="False" />
                            <asp:TreeNodeStyle Font-Underline="False" />
                        </LevelStyles>
                        <SelectedNodeStyle ForeColor="White" />
                        <RootNodeStyle HorizontalPadding="0px" />
                        <DataBindings>
                            <asp:TreeNodeBinding DataMember="Item" TextField="TypeName" ValueField="TypeID" />
                            <asp:TreeNodeBinding DataMember="Root" TextField="TypeName" ValueField="TypeID" />
                        </DataBindings>
                    </asp:TreeView>
                    <asp:XmlDataSource ID="XmlDataSource1" runat="server" EnableCaching="False"></asp:XmlDataSource>
                </td>
            </tr>
        </table></td></tr>
        </table>
    </form>

 <%--   <script language="javascript" type="text/javascript">
        $(document).ready(function() {
            Validator();
        });
        function Validator() {
            $('#<%= btnOK.ClientID %>').bind('click', function() {
                ValidatorEmpty($("#<%=txtCourseTypeName.ClientID %>"), "类型名称");

                return GetValidatorMessage();
            });
            $("#<%=txtCourseTypeName.ClientID %>").textlimit(20);
        }
    </script>--%>
   <script type="text/javascript">
       $("#loading").fadeOut()
</script>
</body>
</html>
