/// ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
/// ' Microsoft Content Management Server - Sample Code 
/// '
/// ' This sample code is provided "AS IS" with no warranties, and confers no rights. 
/// ' You assume all risk for your use. (c) 2001 Microsoft Corporation. All rights reserved.
/// '
/// ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

using System;
using System.Web;
//Add reference for localization
using System.EnterpriseServices;
using System.Globalization;
using System.Resources;
using System.Threading;
//Add reference for navigation tree control
using Microsoft.Web.UI.WebControls;
//Add reference to the CMS API
using Microsoft.ContentManagement.Publishing;
using Microsoft.ContentManagement.Web.Caching;
//Add reference to the Mcms control library
using McmsWebControlLibrary;

namespace WoodgroveNet.Templates
{
	/// <summary>
	/// Summary description for Intranet_Product.
	/// </summary>
	public class JobPosting : System.Web.UI.Page
	{
		protected System.Web.UI.WebControls.Table tblRelatedJobs;
		protected System.Web.UI.WebControls.Literal LTJobPostingCurrentUser;
		protected System.Web.UI.WebControls.Literal LTJobPostingUser;
		protected System.Web.UI.WebControls.Literal LTJobPostingJobTitle;
		protected System.Web.UI.WebControls.Literal LTJobPostingJobDescription;
		protected System.Web.UI.WebControls.Literal LTJobPostingQualifications;
		protected System.Web.UI.WebControls.Literal LTJobPostingApplicationInstruction;
		

		
		#region CMS Placeholders
		protected Microsoft.ContentManagement.WebControls.HtmlPlaceholderControl PlaceholderHtmlControl1;
		protected Microsoft.ContentManagement.WebControls.HtmlPlaceholderControl PlaceholderHtmlControl2;
		protected Microsoft.ContentManagement.WebControls.HtmlPlaceholderControl PlaceholderHtmlControl3;
		protected Microsoft.ContentManagement.WebControls.HtmlPlaceholderControl Htmlplaceholdercontrol1;
		#endregion CMS Placeholders

		protected McmsWebControlLibrary.McmsBreadcrumbControl McmsBreadcrumbControlJobPosting;
		
		//Resource Manager for localization
		protected ResourceManager LocalizationResourceManager;
		
		#region Page Load
		private void Page_Load(object sender, System.EventArgs e)
		{
			//This function implements the ValidationCallback mechanism
			CmsHttpCachePolicy.Current.AddValidationCallbackAllCmsContent();

			//If you want to display the username on the browser, uncomment this piece to code.
			/*
			if (CmsHttpContext.Current.IsLoggedInAsGuest)
			{
				LTJobPostingUser.Text = LocalizationResourceManager.GetString("Guest");				
						
			}
			else
			{							
							
				LTJobPostingUser.Text = Server.HtmlEncode(Microsoft.ContentManagement.Publishing.CmsHttpContext.Current.User.ClientAccountName);
							
			}
			
			LTJobPostingCurrentUser.Text = LocalizationResourceManager.GetString("CurrentUser");
			*/
			
			LTJobPostingJobTitle.Text = LocalizationResourceManager.GetString("JobTitle");
			LTJobPostingJobDescription.Text = LocalizationResourceManager.GetString("JobDescription");
			LTJobPostingQualifications.Text = LocalizationResourceManager.GetString("JobQualifications");
			LTJobPostingApplicationInstruction.Text = LocalizationResourceManager.GetString("JobAppInstruction");

			//Code for Tracing Functionality
			string TracingSeperator = " :: ";
			// Write a line to the Listener
			System.Diagnostics.Trace.WriteLine(System.DateTime.Now + TracingSeperator + "Template" + TracingSeperator + "JobPosting" + TracingSeperator + "This is the Page Load for the JobPosting Template.");
			// Record your output
			System.Diagnostics.Trace.Flush();
			//End of Code for Tracing Functionality
		
		} //Close Page_Load
		#endregion Page Load
		
		#region Web Form Designer generated code
		override protected void OnInit(EventArgs e)
		{
			//
			// CODEGEN: This call is required by the ASP.NET Web Form Designer.
												//
			InitializeComponent();
			base.OnInit(e);
			LocalizationResourceManager = (ResourceManager) Application["WoodgroveNetResourceManager"];
		}
		
					/// <summary>
					/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{    
			this.Load += new System.EventHandler(this.Page_Load);

		}
		#endregion
	}
}
