<!--#include file="CNCASPPageManager_ProductionManager.inc" -->

<%

' *****************************************************************************
' File:		/NR/System/WBC/Internals/TaskAssistant/ProductionManager/
'				ProductionManager.asp
' Author:	Microsoft Corporation.
' Purpose:	Display a list of pages that are currently being edited by the
'			user. The information that is displayed includes the name of the
'			page being edited (checked-out), the location (channel path),
'			status, the date the page was last modified, and the page
'			description.
'
' 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.
'
' *****************************************************************************

' we can only run in update or unpublished mode
if (AutoSession.IsModeUpdate = false) AND (AutoSession.IsModeUnpublished = false) then
	Response.End
end if

' initialize the ASPPageManager. This server control will take care of all of
' the initialization code for setting up the grid control, grabbing query
' strings, etc.
Dim g_pASPPageManager
Set g_pASPPageManager = New CNCASPPageManager_ProductionManager
Call g_pASPPageManager.InitManager()

Dim pASPUtils
Set pASPUtils = g_pASPPageManager.ASPUtils
%>

<!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 a list of pages in production for the user">
	<meta name="robots" content="NOINDEX,NOFOLLOW">
	<meta http-equiv="Content-Type" content="text/html;charset=<%= g_pASPPageManager.Charset %>">

	<title><%= IDS_UI_BROWSER_TITLE %></title>

	<% Call EmbedWBCHeadSection %>

</head>

<body <%= IDS_BODYSETTING %> class="<%= IDS_CSS_PRODUCTIONMANAGER_NORMALTEXT0 %>">

<form name="<%= IDS_FORM_PRODUCTIONMANAGER %>">

<!--
	WARNING:
	========
	For the following HTML that has <td><img src=...></td>,
	do NOT break them into separate lines as it will alter
	the layout of the rendered page
-->

<table height="90%" width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr valign="top">
		<td>
			<table width="100%" border="0" cellspacing="0" cellpadding="0">

				<!-- Show the top title -->
				<tr class="<%= IDS_CSS_PRODUCTIONMANAGER_BACKGROUND1 %>">
					<td align=right><img border=0 src="<%= IDS_PATH_IMAGE_LOGO %>"></td>
					<td width=100% valign="middle"  class="<%= IDS_CSS_PRODUCTIONMANAGER_HEADERTEXT %>"><%= IDS_UI_PRODUCTIONMANAGER_TITLE %></td>
					<td><img src="<%= IDS_TRANSPARENT_GIF %>" width="<%= C_INT_MAIN_MARGIN %>" height="<%= C_INT_HEADER_HEIGHT %>" border="0"></td>
				</tr>

				<!-- Show the breadcrumb trail -->
				<tr class="<%= IDS_CSS_PRODUCTIONMANAGER_BACKGROUND2 %>">
					<td><img src="<%= IDS_TRANSPARENT_GIF %>" width="<%= C_INT_MAIN_MARGIN %>" height="<%= C_INT_SUBHEAD_HEIGHT %>" border="0"></td>
					<td class="<%= IDS_CSS_PRODUCTIONMANAGER_SUBHEADTEXT %>"><%= IDS_UI_PRODUCTIONMANAGER_DESC %></td>
					<td><img src="<%= IDS_TRANSPARENT_GIF %>" width="<%= C_INT_MAIN_MARGIN %>" height="<%= C_INT_SUBHEAD_HEIGHT %>" border="0"></td>
				</tr>

				<!-- Insert a spacer image -->
				<tr>
					<td colspan=3><img src="<%=IDS_TRANSPARENT_GIF%>" width="15" height="<%= C_INT_MAIN_SPACING %>" border="0"></td>
				</tr>

				<!-- Set the margin width for the rest of the page -->
				<tr>
					<td rowspan="999"><img src="<%=IDS_TRANSPARENT_GIF%>" width="<%= C_INT_MAIN_MARGIN %>" height="1" border="0"></td>
					<td><img src="<%=IDS_TRANSPARENT_GIF%>"	width="100%" height="1" border="0"></td>
					<td rowspan="999"><img src="<%=IDS_TRANSPARENT_GIF%>" width="<%= C_INT_MAIN_MARGIN %>" height="1" border="0"></td>
				</tr>

				<!-- Show area displaying information about whose pages are displayed  -->
				<tr>
					<td class="<%= IDS_CSS_PRODUCTIONMANAGER_BACKGROUND1 %>">
						<table width="100%" border="0" cellspacing="<%= C_INT_THICK_BORDER %>" cellpadding="5">
							<tr class="<%= IDS_CSS_PRODUCTIONMANAGER_BACKGROUND3 %>">
								<td>
									<span class="<%= IDS_CSS_PRODUCTIONMANAGER_HEAVYTEXT1 %>"><%= IDS_UI_LABEL_PAGESOWNEDBY %></span>&nbsp;&nbsp;
									<span class="<%= IDS_CSS_PRODUCTIONMANAGER_NORMALTEXT1 %>"><% Call pASPUtils.MBCSWrite( pASPUtils.HTMLEncode( g_pASPPageManager.UserShortname ), g_pASPPageManager.CodePage ) %></span>
								</td>
							</tr>
						</table>
					</td>
				</tr>

				<!-- Insert a spacer image -->
				<tr>
					<td colspan=3><img src="<%=IDS_TRANSPARENT_GIF%>"
						width="15" height="<%= C_INT_MAIN_SPACING %>" border="0"></td>
				</tr>

				<!-- Display info about subset of pages being shown and the PagingConfigControl -->
				<tr>
					<td width="100%" align="right">
						<table width=100% border=0 cellspacing=0 cellpadding=0>
							<tr>
								<td width=50% align=left  class="<%= IDS_CSS_PRODUCTIONMANAGER_NORMALTEXT0 %>">
									<%=  IDS_UI_LABEL_ITEMSSHOWN  %> <b> <%= g_pASPPageManager.StartItem %> - <%= g_pASPPageManager.EndItem %>  </b><%= IDS_UI_LABEL_OF %> <b><%= g_pASPPageManager.PagesInProduction.Count %></b>
								</td>
								<td width=50% align=right class="<%= IDS_CSS_PRODUCTIONMANAGER_NORMALTEXT0 %>">
									<%= IDS_UI_LABEL_ITEMSPERPAGE %>&nbsp;
									<% Call g_pASPPageManager.PagingConfigControl.DisplayPagingConfigControl() %>
								</td>
							</tr>
						</table>
					</td>
				</tr>

				<!-- Insert a set of spacer images -->
				<tr>
					<td><img src="<%= IDS_TRANSPARENT_GIF %>" width="15" height="<%= C_INT_XSMALL_SPACING %>" border="0"></td>
				</tr>
				<tr>
					<td class="<%= IDS_CSS_PRODUCTIONMANAGER_BACKGROUND1 %>"><img src="<%=IDS_TRANSPARENT_GIF%>" width="15" height="<%= C_INT_SEPARATOR_HEIGHT %>"></td>
				</tr>
				<tr>
					<td><img src="<%=IDS_TRANSPARENT_GIF%>"	width="15" height="<%= C_INT_MAIN_SPACING %>" border="0"></td>
				</tr>

				<!-- Show the list of pages in production -->
				<tr>
					<td><% Call g_pASPPageManager.GridControl.DisplayGrid() %></td>
				</tr>

			</table>

		</td>

	</tr>

</table>


<%	If ( g_pASPPageManager.Error = "" ) Then %>

<table height="10%" width="100%" border="0" cellspacing="0" cellpadding="0">

	<!-- Show the paging index link -->
	<tr valign="top">
		<td align=center class="<%= IDS_CSS_PRODUCTIONMANAGER_NORMALTEXT0 %>">
			<% Call g_pASPPageManager.PagingControl.DisplayPagingLinks() %>
		</td>
	</tr>
</table>

<%	End If %>


</form>

</body>

</html>