<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@ page import="com.opensymphony.xwork2.ActionContext" %>  
<%@ include file="../language.jsp" %>



<script type="text/javascript">
<!--
var affiche='<fmt:message key="title.tool.affiche" />';
var knowledgeDetails='<fmt:message key="knowledge.label.knowledgeDetails" />';
var im='<fmt:message key="title.tool.im" />';
var personTask='<fmt:message key="title.personTask" />';
var calendarTitle='<fmt:message key="title.calendar"/>';
//-->
</script>


<script src="../scripts/itsm/portal/helpdeskPortal.js?random=<%=new java.util.Date().getTime()%>"></script>
<sec:authorize url="/pages/affiche!find.action">
<script>showAffiche();</script>
</sec:authorize>

<sec:authorize url="/pages/immanage!findPager.action">
<script>showMyIM();</script>
</sec:authorize>

<sec:authorize url="/pages/request!findRequestForPortal.action">
<script>showAssignToMe();</script>
</sec:authorize>

<sec:authorize url="/pages/request!findRequestForPortal.action">
<script>showWaitAssign();</script>
</sec:authorize>

<sec:authorize url="/pages/knowledgeInfo!findNewKnowledge.action">
<script>
$import('itsm.knowledge.leftMenu');
itsm.knowledge.leftMenu.showKnowledgePortal('#knowledgeInfo');
</script>
</sec:authorize>

	

<div style="padding:3px;">
	<div id="helpdeskPortalTab" class="easyui-tabs" fit="true" style="height:560px">
			<div title="<fmt:message key="common.myTask" />" style="padding:3px;height:560px;">
				<!-- 我的任务Tabale start-->
				
				<table style="width:100%;height: 100%"> 
				
				<tr>
				<td style="width:34%" valign="top">
				
				<div class="easyui-panel" title="<fmt:message key="label.portal.RequestsAssignedToMe" />" collapsible="false" minimizable="false" maximizable="false" closable="false" style="width:auto;height:250px;">
				
					<div class="lineTableBgDiv">
						<table id="assignProcessingRequestList" style="width:100%" class="lineTable" cellspacing="1">
							<tr><td  style="height:180px;text-align:center;font-size:18px;color:#888"><fmt:message key="commom.noData" /></td></tr>
						</table>
					</div>
					
				</div>


				<div style="height:3px"></div>
				
				
				<div class="easyui-panel" title="<fmt:message key="label.portal.myTask" />" collapsible="false" minimizable="false" maximizable="false" closable="false" style="width: auto; height:250px;">
					<div class="lineTableBgDiv">
						<table width="100%" id="myTaskList" class="lineTable" cellspacing="1">
							<tr><td  style="height:180px;text-align:center;font-size:18px;color:#888"><fmt:message key="commom.noData" /></td></tr>
						</table>
					</div>
				</div>
	
				</td>
				
				<td style="width:33%" valign="top">
				

				<div class="easyui-panel" title="<fmt:message key="label.portal.RequestsToBeAssigned" />" collapsible="false" minimizable="false" maximizable="false" closable="false" style="width: auto; height:250px;">
					<div class="lineTableBgDiv">
						<table width="100%" id="waitAssignRequestList" class="lineTable" cellspacing="1">
							<tr><td  style="height:180px;text-align:center;font-size:18px;color:#888"><fmt:message key="commom.noData" /></td></tr>
						</table>
					</div>
		
				</div>
				
				<div style="height:3px"></div>
				
				<div class="easyui-panel" title="<fmt:message key="label.portal.HotKnowledge" />" collapsible="false" minimizable="false" maximizable="false" closable="false" style="width: auto; height:250px;">
					<div class="lineTableBgDiv">
						<table width="100%" id="knowledgeInfo" class="lineTable" cellspacing="1">
							<tr><td  style="height:180px;text-align:center;font-size:18px;color:#888"><fmt:message key="commom.noData" /></td></tr>
						</table>
					</div>
		
				</div>
				
				
				</td>
				
				
				<td style="width:33%" valign="top">
				
				
	
				<div class="easyui-panel" title="<fmt:message key="label.portal.affiche" />" collapsible="false" minimizable="false" maximizable="false" closable="false" style="width:auto;height:250px;">
					<div class="lineTableBgDiv">
						<table width="100%" id="afficheInfo" class="lineTable" cellspacing="1">
							<tr><td  style="height:180px;text-align:center;font-size:18px;color:#888"><fmt:message key="commom.noData" /></td></tr>
						</table>
					</div>
				</div>
				
				<div style="height:3px"></div>
				
				
				<div class="easyui-panel" title="<fmt:message key="label.portal.instantMessage" />" collapsible="false" minimizable="false" maximizable="false" closable="false" style="width:auto;height:250px">
					<div class="lineTableBgDiv">
						<table width="100%" id="IMSG" class="lineTable" cellspacing="1">
						<tr><td  style="height:180px;text-align:center;font-size:18px;color:#888"><fmt:message key="commom.noData" /></td></tr>
						</table>
					</div>
				</div>
				
				
				</td>
				
				
				
				</tr>
				
				</table>
				
				
				<!-- 我的任务Tabale end-->
			
			</div>
			<div title="<fmt:message key="title.calendar"/>" style="padding:5px;width:500px" >
			<div id="loadingTask" style="padding:3px" id="affiche_loading"><img src="../images/icons/loading.gif" /></div>
				<div id="wrap"> 
					<div id="external-events" style="display:none">
						<div class="external-event"></div> 
					</div> 
					<div id="calendar" style="width:100%"></div> 
					<div style="clear:both"></div> 
				</div>
			</div>	
	</div>
	<!-- 当前任务添加\编辑 -->
	<div id="calendarTaskDiv" class="easyui-window" closed="true" collapsible="false" minimizable="false" maximizable="false" 
			modal="flase" title="<fmt:message key="common.detailInfo" />" style="width: 400px; height:380px; padding: 3px; line-height: 22px;">
		<form id="calendarTaskForm">
			<div>
				<table style="width:100%" class="lineTable" cellspacing="1">
				<tr>
					<td style="width:28%"><fmt:message key="common.title"/></td>
					<td style="width:72%">
						<span id="calendarTaskTitle"></span>
						<!--<input name="taskDto.title" id="calendarTaskTitle"  class="easyui-validatebox input" required="true" />-->
					</td>
				</tr>
				<tr>
					<td><fmt:message key="lable.task.location"/></td>
					<td>
						<span id="calendarTaskLocation"></span>
						<!--<input name="taskDto.location" id="calendarTaskLocation" class="easyui-validatebox input" />-->
					</td>
				</tr>
				<tr>
					<td><fmt:message key="label.request.taskDescription"/></td>
					<td>
						<span id="calendarTaskIntroduction"></span>
						<!--<textarea name="taskDto.introduction" id="calendarTaskIntroduction"  style="height:50px" class="easyui-validatebox input" ></textarea>-->
					</td>
				</tr>
				<tr>
					<td><fmt:message key="title.task.taskStatus"/></td>
					<td>
						<span id="calendarTaskStatus"></span>
						<!--<input type="radio" name="taskDto.taskStatus" id="calendarTaskStatus" value="0" checked="checked" /><fmt:message key="title.newCreate" />
						<input type="radio" name="taskDto.taskStatus" id="calendarTaskStatus1" value="1"  /><fmt:message key="title.task.processing"/>
						<input type="radio" name="taskDto.taskStatus" id="calendarTaskStatus2" value="2"/><fmt:message key="title.task.closed"/>-->
					</td>
				</tr>
				<tr>
					<td><fmt:message key="label.orgSettings.startTime"/></td>
					<td>
						<span id="calendarTaskStartTime"></span>
						<!--<input name="taskDto.startTime" id="calendarTaskStartTime" class="easyui-datebox easyui-validatebox input" required="true"  style="cursor:pointer" />-->
					</td>
				</tr>
				<tr>
					<td><fmt:message key="label.orgSettings.endTime"/></td>
					<td>
						<span id="calendarTaskEndTime"></span>
						<!--<input name="taskDto.endTime" id="calendarTaskEndTime" class="easyui-datebox easyui-validatebox input" required="true" validType="DateComparison['calendarTaskStartTime']" style="cursor:pointer" />-->
					</td>
				</tr>
				<tr>
					<td><fmt:message key="label.orgSettings.allDay"/></td>
					<td>
						<span id="calendarTaskAllDay"></span>
						<!--<input type="checkbox" name="taskDto.allDay" value="true" id="calendarTaskAllDay"  />-->
					</td>
				</tr>
			
				<tr style="display: none">
					<td colspan="2">
					    <input type="hidden" name="taskDto.taskId" id="calendarTask_taskId" />
						<input type="hidden" id="calendarTask_owner" name="taskDto.owner" value="${loginUserName}"/>
						<a onclick="javascript:itsm.portal.calendar.saveCalendarTask('editTask')" class="easyui-linkbutton" icon="icon-edit"><fmt:message key="common.edit"/></a>
						<a onclick="javascript:itsm.portal.calendar.saveCalendarTask('saveTask')" class="easyui-linkbutton" icon="icon-save"><fmt:message key="common.add"/></a>
					</td>
				</tr>
			</table>
			</div>
		</form>
	</div>
</div>