<?php
require_once("module/module.project_issuetype.php");
$types = new CModuleIssueType();
$types->Init($project_id);
?>
<span class="big">事务类型</span> 
<span class="link" id="add_issuetype"><img src="imgs/icon_worklog.gif" class="icon">新增类型</span>
<hr size=1 width=80% align=left color=#CCCCCC>
<table border=0 cellspacing='1' cellpadding='0' bgcolor='#cccccc'>
	<tr bgcolor="#efefef" height=24>
		<td width=120 align=center><b>事务类型</td>
		<td width=120 align=center><b>关联流程</td>
		<td width=160 align=center><b>描述</td>
		<td width=120 colspan=4 align=center><b>操作</td>
	</tr>
	
	<?php for($i=0;$i<$types->GetSize();$i++){?>
		<tr bgcolor="#ffffff" height=24 onmouseover="setPointer(this, 'over', '#D0DCE0', '#ffffff');" onmouseout="setPointer(this, 'out', '#D0DCE0', '#ffffff');">
			<td width=120 align=center><?php echo $types->modules[$i]->type_name ;?></td>
			<td width=120 align=center> <?php echo $types->modules[$i]->flow_name ;?> </td>
			<td width=120 align=center> <?php echo $types->modules[$i]->type_desc ;?> </td>
			<td align=center><img src="imgs/b_usredit.png" alt="事务处理人员" id="edit_user" class="link" onclick="OpenMemberLayer(<?php echo $types->modules[$i]->flow_id?>, <?php echo $types->modules[$i]->type_id?>)"></td>
			<td align=center><img src="imgs/b_bookmark.png" alt="字段编辑规则" id="edit_user" class="link" onclick="OpenFieldLayer(<?php echo $types->modules[$i]->flow_id?>, <?php echo $types->modules[$i]->type_id?>)"></td>
			<td align=center><img src="imgs/b_edit.png" alt="编辑" id="edit_user" class="link" onclick="ClickEditIssueType(<?php echo $types->modules[$i]->type_id?>)"></td>
			<td align=center><img src="imgs/b_drop.png" alt="删除" id="del_user" class="link" onclick="ClickDelIssueType(<?php echo $types->modules[$i]->type_id?>, '<?php echo $types->modules[$i]->type_name; ?>')"></td>
		</tr>
	<?php }?>
</table>
<div id="display_div" style="display:none; position:absolute">
	<table width=640 border=0 cellspacing='1' cellpadding='0'  bgcolor="#CCCCCC">
		<tr bgcolor=#efefef height="20">
			<td align=right class="link"><span onclick="CloseLayer()">关闭</span></td>
		</tr>
		<tr bgcolor=#ffffff>
			<td><span id="display_span" /></td>
		</tr>
	</table>
</div>