<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
        "http://www.w3.org/TR/html4/strict.dtd">

<%@ include file="/includes/taglibs.jsp"%>

<%@ page import="java.util.HashMap"%>
<%@ page import="org.lamsfoundation.lams.tool.twitter.web.TwitterMonitoringAction"%>
<%@ page import="org.lamsfoundation.lams.tool.twitter.TwitterConstants"%>
<c:set var="lams">
	<lams:LAMSURL />
</c:set>
<c:set var="tool">
	<lams:WebAppURL />
</c:set>

<lams:html>
<lams:head>
	<lams:css style="tabbed"/>
	<script type="text/javascript" src="${lams}includes/javascript/tabcontroller.js"></script>
	<script type="text/javascript" src="${lams}includes/javascript/common.js"></script>
	<title><fmt:message key="activity.title" /></title>

	<script type="text/javascript">

		 function init(){
            var tag = document.getElementById("currentTab");
	    	if(tag != null && tag.value != "") {
	    		selectTab(tag.value);
	    	}
            else {
                selectTab(1); //select the default tab;
            }
        }   

	</script>
</lams:head>

<body class="stripes" onLoad='init()'>

	<div id="page">
	
		<html:form action="/monitoring" target="_self">

			<c:set var="formBean" value="<%= request.getAttribute(org.apache.struts.taglib.html.Constants.BEAN_KEY) %>" scope="request"/>
			<html:hidden property="method" />
			<html:hidden property="currentTab" styleId="currentTab" />

			<c:set var="monitoringURL">
				<html:rewrite page="/monitoring.do" />
			</c:set>
			

			<h1>
				<fmt:message key="activity.title" />
			</h1>
			
			<div id="header">
			
				<lams:Tabs>
					<lams:Tab id="<%=TwitterMonitoringAction.SUMMARY_TABID%>" key="titleHeading.summary" />
					<lams:Tab id="<%=TwitterMonitoringAction.INSTRUCTIONS_TABID%>" key="titleHeading.instructions" />
					<lams:Tab id="<%=TwitterMonitoringAction.EDITACTIVITY_TABID%>" key="titleHeading.editActivity" />
					<lams:Tab id="<%=TwitterMonitoringAction.STATISTICS_TABID%>" key="titleHeading.statistics" />
				</lams:Tabs>
			</div>
		
			<div id="content">
				<lams:help toolSignature="<%= TwitterConstants.TOOL_SIGNATURE %>" module="monitoring"/>
				
				<lams:TabBody id="1" titleKey="titleHeading.summary" page="m_Summary.jsp" />
				<lams:TabBody id="2" titleKey="titleHeading.instructions" page="m_Instructions.jsp" />
				<lams:TabBody id="3" titleKey="titleHeading.editActivity" page="m_EditActivity.jsp" />
				<lams:TabBody id="4" titleKey="titleHeading.statistics" page="m_Statistics.jsp" />
			</div>
			
			<div id="footer" />

		</html:form>
	</div>

</body>


</lams:html>

