<%@ page contentType="text/html; charset=UTF-8"%>
<%@ include file="/WEB-INF/jspf/include/taglibs.jsp"%>

<script type="text/javascript">

var webexecuter = "webexecuter";
var contractId = ${contract_current.id};

</script>

<tiles:insertDefinition name="webexecuter">
	<tiles:putAttribute name="pageTitle">
	  	<c:choose>
	  		<c:when test="${action eq 'News'}">НОВОСТИ</c:when>
	  		<c:when test="${action eq 'ChangePassword'}">СМЕНА ПАРОЛЯ НА ДОСТУП К СТАТИСТИКЕ</c:when>
	  		<c:when test="${action eq 'ShowBalance'}">ПРОСМОТР БАЛАНСА</c:when>
	  		<c:when test="${action eq 'DistributeBalance'}">РАСПРЕДЕЛЕНИЕ СРЕДСТВ</c:when>
	  		<c:when test="${action eq 'Subscription'}">ПОДПИСКА НА РАССЫЛКИ</c:when>
	  		<c:when test="${action eq 'DispatchBalance'}">РАССЫЛКА БАЛАНСА</c:when>
	  		<c:when test="${action eq 'ChangeTariff'}">СМЕНА ТАРИФНЫХ ПЛАНОВ</c:when>
	  		<c:when test="${action eq 'ContractLimit'}">УПРАВЛЕНИЕ ЛИМИТОМ</c:when>
	  		<c:when test="${action eq 'AdditionalAction'}">ДОПОЛНИТЕЛЬНЫЕ ДЕЙСТВИЯ</c:when>
	  		<c:when test="${action eq 'MemoTable' or action eq 'Memo'}">ПРИМЕЧАНИЯ</c:when>
	  		<c:when test="${action eq 'MemoTable' or action eq 'Memo'}">ПРИМЕЧАНИЯ</c:when>
	  		<c:otherwise>${pageTitle}</c:otherwise>
	  	</c:choose>
	</tiles:putAttribute>

	<tiles:putAttribute name="body">
		<c:choose>
			<c:when test="${ module eq 'contract' }">
				<c:choose>
					<c:when test="${action eq 'ShowBalance'}"><jsp:include page="contract/balance.jsp"/></c:when>
					<c:when test="${action eq 'MemoTable' or action eq 'Memo'}"><jsp:include page="contract/memo.jsp"/></c:when>
					<c:when test="${action eq 'ChangePassword'}"><jsp:include page="contract/changePassword.jsp"/></c:when>
					<c:when test="${action eq 'DistributeBalance'}"><jsp:include page="contract/distributeBalance.jsp"/></c:when>
					<c:when test="${action eq 'Subscription'}"><jsp:include page="contract/subscription.jsp"/></c:when>
					<c:when test="${action eq 'DispatchBalance'}"><jsp:include page="contract/dispatchBalance.jsp"/></c:when>
					<c:when test="${action eq 'ContractLimit'}"><jsp:include page="contract/contractLimit.jsp"/></c:when>
					<c:when test="${action eq 'AdditionalAction'}"><jsp:include page="contract/additionalAction.jsp"/></c:when>
					<c:when test="${action eq 'ChangeTariff'}"><jsp:include page="contract/changeTariff.jsp"/></c:when>
					<c:otherwise><jsp:include page="contract/news.jsp"/></c:otherwise>
				</c:choose>
			</c:when>
			<c:when test="${module eq 'email'}"><jsp:include page="email/body.jsp"/></c:when>
			<c:when test="${module eq 'ipn'}"><jsp:include page="ipn/body.jsp"/></c:when>
			<c:when test="${module eq 'dialup'}"><jsp:include page="dialup/body.jsp"/></c:when>
			<c:when test="${module eq 'voiceip'}"><jsp:include page="voiceip/body.jsp"/></c:when>
			<c:when test="${module eq 'bill'}"><jsp:include page="bill/body.jsp"/></c:when>
			<c:when test="${module eq 'wm'}"><jsp:include page="wm/body.jsp"/></c:when>
			<c:when test="${module eq 'trayinfo'}"><jsp:include page="trayInfo/body.jsp"/></c:when>
			<c:when test="${module eq 'rscm'}"><jsp:include page="rscm/body.jsp"/></c:when>
			<c:when test="${module eq 'mps'}"><jsp:include page="mps/body.jsp"/></c:when>
			<c:when test="${module eq 'sberbank'}"><jsp:include page="sberbank/body.jsp"/></c:when>
		</c:choose>
	</tiles:putAttribute>
</tiles:insertDefinition>
