<?php
$project_id = $_REQUEST["project_id"];
$issue_typeid = $_REQUEST["issue_typeid"];
$action_id = $_REQUEST["action_id"];
$title = '修改字段编辑规则';

require_once('../module/module.flow_action.php');
$action = new CModuleFlowAction();
$action->InitModule($action_id);
$action->InitField($issue_typeid, 0);
?>

<input type='hidden' id='issue_typeid' value='<?php echo $issue_typeid?>'>
<input type='hidden' id='action_id' value='<?php echo $action_id?>'>

<table border=0 cellspacing='1' cellpadding='0' width=100% bgcolor='#ffffff'>
	<tr bgcolor="#efefef" height=20>
		<td colspan=2>
			<b><span id="project_form_desc"><?php echo $title?></span></b>
			<?php echo $action->module->action_name?> : 
			<?php echo $action->module->src_status?> => <?php echo $action->module->dst_status?>
			<hr size=1>
		</td>
	</tr>
	<?php for($i=0;$i<sizeof($action->module->fields);$i++){?>
	<tr height=30>
		<td align=right><?php echo $action->module->fields[$i]->field_title ?>&nbsp;&nbsp;</td>
		<td>
			<?php for($n=0;$n<sizeof($Config["edit_rule"]);$n++){?>
				<input type="radio" name="edit_rule_<?php echo $action->module->fields[$i]->field_id?>" id="edit_rule_<?php echo $action->module->fields[$i]->field_id?>" value="<?php echo $n?>" <?php if($n==$action->module->fields[$i]->edit_rule){echo "checked";}?>> 
				<?php echo $Config["edit_rule"][$n]?>
			<?php }?>	
		</td>
	</tr>
	<?php }?>
	<tr height=40>
		<td  colspan=2 bgcolor="#efefef" align=center>
				<input type=button value=" 提交 " class=button onclick="SubmitActionField()">
				&nbsp;&nbsp;&nbsp;&nbsp;
				<input type=button value=" 取消 " class=button onclick="CloseDialog(0)">
		</td>
	</tr>
</table>