<?php
$job = 'tran';
$title = '转移事务';
$issue_id = $_REQUEST['issue_id'];

require_once("../module/module.issue.php");
$issue = new CModuleIssue();
$issue->Init($issue_id);
$project_id = $issue->modules[0]->project_id;
require_once("../module/module.project.php");
$projects = new CModuleProject();
$projects->InitByUserID($UserInfo["UID"]);
?>
	<input type=hidden id="issue_id" value="<?php echo $issue_id ?>">
	<table width=100% border=0 cellspacing="0" cellpadding="0">
				<tr bgcolor="#efefef">
					<td colspan=2>
						<b><?php echo $title?>: <?php echo $issue->modules[0]->issue_title?></b>
						<hr size=1>
					</td>
				</tr>
				<tr height=40>
					<td align=right width=100>项目名称:&nbsp;&nbsp;</td>
					<td width=400>			
						<select id="project_id" name="project_id" class="box" onchange="CallIssueType2()">
							<?php for($i=0;$i<$projects->GetSize();$i++){?>
								<option value="<?php echo $projects->modules[$i]->project_id?>" <?php if($projects->modules[$i]->project_id==$project_id){echo 'selected';}?>><?php echo $projects->modules[$i]->project_name?></option>>
							<?php }?>
						</select>
					</td>
				</tr>
				<tr height=40>
				<td align=right width=100>事务类型:&nbsp;&nbsp;</td>
					<td width=400>			
						<select id="issue_type" name="issue_type" class="box"></select>
					</td>
				</tr>
				<tr height=40>
					<td colspan=2 style="padding-left:100">
							<input type=button value=" 提交 " class=button onclick="SubmitIssueTran()">
							&nbsp;&nbsp;&nbsp;&nbsp;
							<input type=button value=" 取消 " class=button onclick="CloseDialog(0)">
					</td>
				</tr>	
	</table>
	<script>CallIssueType2()</script>
		