<%@ page language="C#" autoeventwireup="true" inherits="PageEdit_CssEdit, App_Web_ni9iudea" %>

<!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 runat="server">
    <title>CSS 样式文件编辑器</title>
    <link rel="stylesheet" href="../style/Common.css" />
    <link rel="stylesheet" href="../style/Frame.css" />
    <style type="text/css">
#tbFileContent{
    border: 0;
    margin: 1px 3px;
    display: block;
}
    </style>
    
    <script type="text/javascript" src="../Script/Common.js"></script>
    <script type="text/javascript" >
function Page_Resize()
    {
	var w, h;
	w = document.documentElement.clientWidth-8;
	if( w<0 ) w=0;
	h = document.documentElement.clientHeight-38;
	if( h<0 ) h=0;
	
	$('tbFileContent').style.width = w;
	$('tbFileContent').style.height = h;
    }
    </script>
    
</head>

<body scroll="no" ><form id="form1" runat="server">

    <div class="TopArea">
        <div class="LeftBlock">
            <span class="Heading">CSS 样式文件编辑器</span>
            <asp:Label ID="lbFileName" runat="server" Text="[]" CssClass="Notes"/>
        </div>
        <div class="RightBlock" style="margin: 3px 2px 0;">
            <asp:Label ID="lbInfo" runat="server" ForeColor="Red"/>
            <asp:Button ID="btnSave" runat="server" CssClass="Button" Text="保存" 
                        OnClick="btnSave_Click" UseSubmitBehavior="false" Enabled="false" />
        </div>
    </div>
    
    <asp:TextBox ID="tbFileContent" runat="server" CssClass="EditArea" TextMode="MultiLine" />

</form>
<script type="text/javascript">
try{ Page_Init(); }catch(ex){;}
try{ Page_Resize(); if( Page_Resize ){ window.onresize=Page_Resize; } }catch(ex){;}
try{ if( Page_Load ) window.onload=Page_Load; }catch(ex){;}
</script>
</body>
</html>
