<?php
require_once("module/module.project_fields.php");
$fields = new CModuleProjectFields();
$fields->Init($project_id);
?>
<span class="big">项目字段</span>
<span class="link" onclick="ClickEditField('add', 0)"">
	<img src="imgs/icon_worklog.gif" class="icon" alt="新增字段"><b>新增字段</b>
</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=100 align=center><b>字段标题</td>
		<td width=60 align=center><b>字段长度</td>
		<td width=60 align=center><b>输入类型</td>
		<td width=60 align=center><b>宽度/高度</td>
		<td width=240 align=center><b>可选值</td>
		<td width=60 align=center><b>默认值</td>
		<td width=120 align=center><b>显示格式化</td>
		<td width=60 align=center><b>列对齐数</td>
		<td width=60 align=center><b>显示顺序</td>
		<td width=60 align=center><b>组合查询</td>
		<td width=200 align=center><b>描述</td>
		<td width=60 colspan=2 align=center><b>操作</td>
	</tr>
	
	<?php for($i=0;$i<$fields->GetSize();$i++){?>
		<tr bgcolor="#ffffff" height=24 onmouseover="setPointer(this, 'over', '#D0DCE0', '#ffffff');" onmouseout="setPointer(this, 'out', '#D0DCE0', '#ffffff');">
		<td align=center><?php echo $fields->modules[$i]->field_title?></td>
		<td align=center><?php echo $fields->modules[$i]->field_len?></td>
		<td align=center><?php echo $Config['field_type'][$fields->modules[$i]->field_type]?></td>
		<td align=center><?php echo $fields->modules[$i]->field_width?>/<?php echo $fields->modules[$i]->field_height?></td>
		<td align=center><?php echo $fields->modules[$i]->field_option?></td>
		<td align=center><?php echo $fields->modules[$i]->field_default?></td>
		<td align=center><?php echo $fields->modules[$i]->field_style?></td>
		<td align=center><?php echo $fields->modules[$i]->field_cols?></td>
		<td align=center><?php echo $fields->modules[$i]->field_order?></td>
		<td align=center><?php echo $Config['is_query'][$fields->modules[$i]->is_query]?></td>
		<td align=center><?php echo $fields->modules[$i]->field_desc?></td>
		<td align=center><img src="imgs/b_edit.png" alt="编辑" id="edit_field" class="link" onclick="ClickEditField('mod', <?php echo $fields->modules[$i]->field_id?>)"></td>
		<td align=center><img src="imgs/b_drop.png" alt="删除" id="del_field" class="link" onclick="ClickDelField(<?php echo $fields->modules[$i]->field_id?>, '<?php echo $fields->modules[$i]->field_title; ?>')"></td>
	</tr>
	<?php }?>
</table>
