<%@ Page Language="C#" AutoEventWireup="true" Inherits=" WebApp.Wpdcc.selectServer" Codebehind="selectServer.aspx.cs" %>

<!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>选择服务器资源</title>
		<LINK href="../Css/Admin_STYLE.CSS" type="text/css" rel="stylesheet">
		<script language="javascript">
		    function Select(type)
		    {
		        var selectedIndex = document.all.lbServer.selectedIndex;
		        if(selectedIndex>=0)
		        {
		            var txt = document.all.lbServer.options[selectedIndex].text;
		            var val = document.all.lbServer.options[selectedIndex].value;
		            window.parent.dialogArguments.BindSelect(type, txt, val);		                        
		        }
		        else
		        {		            
		            window.parent.dialogArguments.BindSelect(type, "", "");	
		        }
		        close();
		    }
		    function Close(type)
		    { 
		        close();
		    }
		</script>
</head>
<body>
    <form id="form1" runat="server">
        <table border="1" align="center" bgcolor="#6375d6" cellpadding="4" cellspacing="1" width="300" bordercolor="#ffffff">
            <tr>
                <td style="height: 21px" align="center"><font color="white">服务器资源列表</font></td>
            </tr>   
            <tr>
                <td align="center">
                    <asp:ListBox ID="lbServer" runat="server" Height="272px" Width="240px"></asp:ListBox></td>
            </tr>  
            <tr>
                <td style="height: 25px" align="center">
                    <input id="Button1" type="button" value="确定" onclick='Select(<%= Type %>);' />&nbsp;
                    <input id="Button2" type="button" value="取消" onclick='Close(<%= Type %>);' /></td>
            </tr>       
        </table>
    </form>
</body>
</html>
