<?php
require_once("module/module.query_view.php");
$views = new CModuleQueryView();
$views->Init();
$query_id = 0;
$page = 0;
$view_job='issue_list';
if(array_key_exists("query_id", $_REQUEST))
{
	$query_id = $_REQUEST['query_id'];
	$page = $_REQUEST['page'];
	$view_job=$_REQUEST['job'];
}
?>
<span class=small>
	<ul id="controls">
		<li class="active" onclick="SwitchView(0, 0)" id="view_0">等待我处理</li>
		<?php for($i=0;$i<$views->GetSize();$i++){?>
			<li class="link2" id="view_<?php echo $views->modules[$i]->query_id?>" onclick="SwitchView(<?php echo $views->modules[$i]->query_id?>, 0)"><?php echo $views->modules[$i]->query_name?></li>
		<?php }?>
	</ul>
</span>

<table width=100% bgcolor=#cccccc border=0 cellspacing="1" cellpadding="0" align=center>
		<tr>
			<td>
				<table width=100% bgcolor=#FFFFFF border=0 cellspacing="1" cellpadding="0">	
					<tr bgcolor="#D0DCE0" height=20>
						<td width="80" align=center> <b>事务标识
						<td width="120" align=center> <b>项目名称
						<td width="100" align=center> <b>项目模块 
						<td width="100" align=center> <b>事务类型
						<td align=center> <b>事务标题
						<td width="60" align=center> <b>严重性
						<td width="60" align=center> <b>优先级
						<td width="80" align=center> <b>当前状态		
						<td width="80" align=center> <b>创建者   
						<td width="100" align=center> <b>当前处理者					
						<td width="120" align=center><b>创建时间 
						<td width="120" align=center><b>期待完成时间 
						<td width="120" align=center><b>关闭时间 
					</tr>
				</table>
				<span id="span_issue_list"> </span>
				<table width=100% bgcolor=#FFFFFF border=0 cellspacing="1" cellpadding="0">
					<tr bgcolor=#efefef height=30>
						<td align=center class=small>
							<span id='td_page'></span>
							<input type="hidden" id="hidden_query_id" value=<?php echo $query_id?>>
							<input type="hidden" id="hidden_page" value=<?php echo $page?>>
							<input type="hidden" id="hidden_view_job" value="<?php echo $view_job?>">
							<span class=link id="span_drop_view" style='display:none'><img src='imgs/bd_empty.png' alt='删除视图' class="icon" onclick="DropQueryView()"></span>
						</td>
				</tr>
			</table>
		</td>
	</tr>	
<table>
<script>
	SwitchView(<?php echo $query_id?>, <?php echo $page?>);
</script>