<!--#include virtual="/NR/System/WBC/Internals/Main/WBCApp.inc"-->
<!--#include virtual="/NR/System/WBC/Customizable/WBCFuncPagesConfig/UIStringConstants/TableUIStrings.inc"-->

<%
' ********************************************************************
' Copyright (C) 2001 Microsoft Corporation. All rights reserved.
'
'	IMPORTANT.  Please read the legal.txt file, located in the
'	"<CMS Install Directory>\Server\httpexec\WBC\Internals"
'	directory, governing the use of this internal file."
' ********************************************************************
'
' ********************************************************************
' File:		/NR/System/WBC/Internals/WBCFuncPages/IE-Specific/Table/table.asp
' Author:	Microsoft Corporation.
' Purpose:	Implements the Table dialog
'
' Query String Parameters:
'	[API-Generated-Query-Params]: This set of parameters is generated by
'								invoking the API method Posting.QueryString
'								in the previous ASP page. It contains all the
'								necessary information to be interpreted by the
'								API to set the AutoSession.This object in this
'								ASP page.
'	IDS_QPARAM_PHNAME: Placeholder Name.
' ***********************************************************************************************
'
'	Obtaining Query String parameters
'
Dim g_pThisPosting
Dim g_strPhName
Dim g_strPhType

' ---- Function to retrive PhName from querystring, safe against XSS attack
Function GetPhName()
	On Error Resume Next

	Dim pPlaceholder

	Set pPlaceholder = AutoSession.ThisPosting.Placeholders( CStr(Request.QueryString(IDS_QPARAM_PHNAME)) )
	If (pPlaceholder Is Nothing) Then
		GetPhName = ""
	Else
		GetPhName = CStr(Request.QueryString(IDS_QPARAM_PHNAME))
	End If
End Function

' ---- Function to retrive PhType from querystring, safe against XSS attack
Function GetPhType()
	Select Case CStr(Request.QueryString(IDS_QPARAM_PHTYPE))
		Case IDS_PHTYPE_MULTIPURPOSE
			GetPhType = IDS_PHTYPE_MULTIPURPOSE
		Case IDS_PHTYPE_THINEDITIE
			GetPhType = IDS_PHTYPE_THINEDITIE
		Case Else
			GetPhType = ""
	End Select
End Function


Set g_pThisPosting = AutoSession.ThisPosting
g_strPhName = GetPhName()
g_strPhType = GetPhType()

'
'	Query String Parameter Validation
'
If (g_strPhName = "") Or (g_strPhType = "") Then
	Response.Write(IDS_INCORRECT_PARM)
	Response.End
End If
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="expires" content="-1">
<meta name="Author" content="Microsoft Corporation.">
<meta name="Description" content="Display Table Properties">
<meta name="robots" content="NOINDEX,NOFOLLOW">
<title>Table</title>

<% Call EmbedWBCHeadSection %>

</head>

<body bgcolor="#c0c0c0" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

<form name="NC_TableForm">
<table cellspacing="0" cellpadding="0" border="0" align="center" width="90%">
	<tr>
		<td colspan="3" height="15"></td>
	</tr>
	<tr>
	    <td colspan="3"><span class="WBC_styclsHeavyTextColor0"><%= IDS_UI_TABLE_PROPERTIES %></span></td>
	</tr>
	<tr>
		<td colspan="3">&nbsp;</td>
	</tr>
	<tr valign="top">
	    <td>
			<table border="1" cellspacing="0" cellpadding="3">
				<tr>
					<td>
						<table cellspacing="0" cellpadding="3" border="0">
							<tr>
								<td><span class="WBC_styclsSmallTextColor0"><%=IDS_UI_NUMBER_OF_COLUMNS%>:</span>&nbsp;</td>
								<td><input name="NC_Columns" type="text" size="3" value="2" class="WBC_styclsSmallTextColor0">&nbsp;</td>
							</tr>
							<tr>
								<td><span class="WBC_styclsSmallTextColor0"><%=IDS_UI_NUMBER_OF_ROWS%>:</span>&nbsp;</td>
								<td><input name="NC_Rows" type="text" size="3" value="2" class="WBC_styclsSmallTextColor0">&nbsp;</td>
							</tr>
							<tr>
								<td colspan="2" height="10"></td>
							</tr>
							<tr>
								<td colspan="2"><input name="NC_Border" type="checkbox" checked> <span class="WBC_styclsSmallTextColor0"><%=IDS_UI_SHOW_TABLE_BORDER%></span></td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</td>
		<td>&nbsp;</td>
		<td align="right">
			<table cellspacing="0" cellpadding="0" border="0">
				<tr>
					<td><a href="#" target="_self" onclick="onClickOkay('<%= g_strPhName %>', '<%= g_strPhType %>');return false"><img src="Images/Okay.gif" border="0"></a></td>
				</tr>
				<tr>
					<td height="5"></td>
				</tr>
				<tr>
					<td><a href="#" target="_self" onclick="onClickCancel();return false"><img src="Images/Cancel.gif" border="0"></a></td>
				</tr>
			</table>
		</td>
	</tr>
</table>
</form>

<script language="JavaScript" src="./Table.js" type="text/javascript"></script>

</body>
</html>
