<%@ page language="C#" autoeventwireup="true" inherits="PageMgmt_PageAttributes, 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 id="Head1" runat="server">
    <title>页面属性</title>
    <base target="_self"/>
    <link rel="stylesheet" href="../style/Common.css" />
    <link rel="stylesheet" href="../Style/Dialog.css" />
    <style type="text/css">
.FormTable .LableCol{ width:19%; }
.FormTable .CtrlCol{ width:81%; }
    </style>

    <script type="text/javascript" src="../Script/Common.js"></script>
    <script type="text/javascript" language="javascript">
var SiteName;
function Page_Load()
    {
	SiteName = Common.GetQueryString('sitename');
    }
function btnSelect_Click()
    {
	var url = new UrlText( '../CommonUI/SelectFile.aspx', ['SiteName', SiteName], 'uni' );
	var ret = Common.ShowDialog( 1, url.Text, null, {width:420, height:480} );
	if( ret ){
	    var obj = event.srcElement.previousSibling.previousSibling; //alert(obj.nodeName+'    '+ret);
	    if( obj ) obj.value = ret;
	}
    }
    </script>
</head>
<body onload="Page_Load();"><form id="form1" runat="server">

    <div class="TopArea">
        <h1>页面属性</h1>
        <div class="headLogo"></div>
    </div>
    
    <div class="ContentArea">
        <table class="FormTable" style="width:370px;">
            <tr>
                <td class="LableCol">标题：</td>
                <td class="CtrlCol">
                    <asp:TextBox ID="tbTitleText" runat="server" CssClass="TextLine" /></td>
            </tr>
            <tr>
                <td class="LableCol">关键词：</td>
                <td class="CtrlCol">
                    <asp:TextBox ID="tbKeywords" runat="server" CssClass="TextLine" /></td>
            </tr>
            <tr>
                <td class="LableCol">描述：</td>
                <td class="CtrlCol">
                    <asp:TextBox ID="tbDescript" runat="server" TextMode="MultiLine" CssClass="TextBlock" /></td>
            </tr>
            <%--<tr>
                <td class="LableCol">访问计数：</td>
                <td class="CtrlCol">
                    <asp:TextBox ID="tbAccessCount" runat="server" CssClass="TextLine" /></td>
            </tr>--%>
        </table>
        <br />
        <fieldset>
            <legend>页面风格</legend>
            <table>
                <tr>
                    <td>背景颜色：</td>
                    <td style="width:140px;"><asp:TextBox ID="tbBdBgColor" runat="server" Width="80" /></td>
                    <td>主题颜色：</td>
                    <td><asp:TextBox ID="tbThemeColor" runat="server" Width="80" /></td>
                </tr>
                <tr>
                    <td>背景图片：</td>
                    <td colspan="3">
                        <asp:TextBox ID="tbBgImg" runat="server" Width="88%" />
                        <input id="btnSelect" type="button" value=".." onclick="btnSelect_Click();" />
                    </td>
                </tr>
                <tr>
                    <td></td>
                    <td>
                        <asp:DropDownList ID="lstBgImgRep" runat="server" Width="98%">
                            <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:DropDownList>
                    </td>
                    <td colspan="2">
                        <asp:CheckBox ID="chkBgAttach" runat="server" Text="背景图片固定" />
                    </td>
                </tr>
            </table>
        </fieldset>
        
        <%--<fieldset>
            <legend>引用资源文件</legend>
            <table style="width:368px;">
                <tr>
                    <td>
                        <asp:ListBox ID="lstFiles" runat="server" Width="336"></asp:ListBox>
                    </td>
                    <td>
                        <asp:Button ID="btnUp" runat="server" Text="上" /><br />
                        <asp:Button ID="btnDown" runat="server" Text="下" />
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <asp:Button ID="btnNew" runat="server" Text="添加" />
                        <asp:Button ID="btnEdit" runat="server" Text="更改" />
                        <asp:Button ID="btnDelete" runat="server" Text="删除" />
                    </td>
                </tr>
            </table>
            <div style="width:366px;">
                资源文件路径：
                <asp:TextBox ID="tbLinkPath" runat="server" Width="66%" />
                <input id="btnLinkPath" type="button" value=".." onclick="btnSelect_Click();" />
            </div>
        </fieldset>--%>
    </div>

    <div class="BottomArea">
        <span class="LeftBlock">
            <asp:Label ID="lbInfo" runat="server" ForeColor="Red"></asp:Label>
        </span>
        <span class="RightBlock">
            <asp:Button ID="btnConfirm" runat="server" CssClass="Button" Text="确定" OnClick="btnConfirm_Click"/>
            <input id="btnCancel" type="button" class="Button" value="取消" onclick="window.close();" />
        </span>
    </div>

    <input id="hfHeadTag" type="hidden"  runat="server" />

</form>
<script type="text/javascript" language="javascript">
try{ Page_Init(); }catch(ex){;}
try{ Page_Resize(); window.onresize=Page_Resize; }catch(ex){;}
try{ Page_Load(); }catch(ex){;}
</script>
</body>
</html>
<%--
        //var tagValue2 = hfTagValue.match(reg2);
        // var tagArray = tagValue.split(',');
        // var tagArray2 = tagValue2.split(',');
        //tagArray.length;
//        alert(tagValue);
        // alert(tagArray2.length);
     // TextArea.type   =   "textarea";   
<div class="bottomArea">
<input id="btnConfirm" type="button" value="确定" onclick="returnHeadCode();" />
<input id="btnCancel" type="button" value="取消" onclick="window.close();" />
</div>--%>
