<?php
$state_id = $_REQUEST['state_id'];
$state_name = iconv("GBK", "UTF-8", $_REQUEST['state_name']);
$state_title = iconv("GBK", "UTF-8", $_REQUEST['state_title']);
$state_type = $_REQUEST['state_type'];
?>
<script type="text/javascript" src="../script/kis_flow.js"></script>
<input type=hidden id='state_id' value='<?php echo $state_id?>'>
<table border=0 cellspacing='1' cellpadding='0' width=100% bgcolor='#ffffff'>
	<tr bgcolor="#efefef" height=20>
		<td colspan=2>
			<b><span id="dept_form_desc">编辑状态</span></b>
		</td>
	</tr>
	<tr height=30>
		<td align='right' width=20%>名称:</td>
		<td><input type=text id='state_name' size=10 class='txtput' value='<?php echo $state_name?>'></td>
	</tr>
	<tr height=30>
		<td align='right'>类型:</td>
		<td>
			<?php for($i=0; $i<sizeof($Config['state_type']); $i++){ 
				if($i%4==0 && $i>0) echo "<br>";
			?>
				<input name='state_type' id='state_type' type=radio value='<?php echo $i?>' <?php if($state_type == $i){echo "checked";}?>> <?php echo $Config['state_type'][$i]?>			
			<?php }?>				
		</td>
	</tr>
	<tr height=30>
		<td align='right'>描述:</td>
		<td><input type=text id='state_title' size=30 class='txtput' value='<?php echo $state_title?>'></td>
	</tr>
	<tr height=30>
		<td colspan=2 bgcolor="#efefef" align=center>
				<input type=button value=" 提交 " class='button' onclick="SubmitState()">
				&nbsp;&nbsp;&nbsp;&nbsp;
				<input type=button value=" 取消 " class='button' onclick="CloseDialog(0)">
		</td>
	</tr>
</table>