<?php
require_once("module/module.project.php");
$projects = new CModuleProject();
$projects->Init();
?>
<span class="big">项目列表</span> 
<span class="link" id="project_op"><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=100 align=center><b>状态</td>
		<td width=160 align=center><b>描述</td>
		<td width=80 colspan=2 align=center><b>操作</td>
	</tr>
	<?php for($i=0;$i<$projects->GetSize();$i++){?>
		<tr bgcolor="#ffffff" height=24 onmouseover="setPointer(this, 'over', '#D0DCE0', '#ffffff');" onmouseout="setPointer(this, 'out', '#D0DCE0', '#ffffff');">
			<td width=120 align=center> 
				<a href="index.php?job=view_project&subjob=project_config&project_id=<?php echo $projects->modules[$i]->project_id ;?>">
					<?php echo $projects->modules[$i]->project_name ;?></a>
			</td>
			<td width=120 align=center> <?php echo $projects->modules[$i]->project_code ;?> </td>
			<td width=120 align=center> <?php echo $Config["active"][$projects->modules[$i]->project_state] ;?> </td>
			<td width=120 align=center> <?php echo $projects->modules[$i]->project_desc ;?> </td>
			<td align=center><img src="imgs/b_edit.png" alt="编辑" id="edit_user" class="link" onclick="ClickEditProject(<?php echo $projects->modules[$i]->project_id?>)"></td>
			<td align=center><img src="imgs/b_drop.png" alt="删除" id="del_user" class="link" onclick="ClickDelProject(<?php echo $projects->modules[$i]->project_id?>, '<?php echo $projects->modules[$i]->project_name; ?>')"></td>
		</tr>
	<?php }?>
</table>