<div id="sbg-project-phase-group-entry" style="width:700px;margin: 5px 5px 5px 5px;">
	<div id="project-phase-group-tabs">
		<ul style="font-size: 0.8em;">
			<li><a href="#project-phase-group-general">General</a></li>
			<li><a href="#project-phase-group-user">User</a></li>
			<li><a href="#project-phase-group-rights">User Rights</a></li>
			<span class="sbg-tab-title">Project Phase</span>
		</ul>
		
		<div id="project-phase-group-general" style="height:185px;">
			<table>
				<tr>
					<td style="text-align:right;"><span>ID : </span></td>
					<td>
						<input type="text" id="txtProjectPhaseId" size="10" value="Auto" disabled="disabled" />
					</td>
				</tr>
				<tr>
					<td style="text-align:right;"><span>Ref. : </span></td>
					<td>
						<input type="text" maxlength="50" size="50" id="txtProjectPhaseRef" />
					</td>
				</tr>
				<tr>
					<td style="text-align:right;"><span>Description : </span></td>
					<td>
						<input type="text" maxlength="250" size="50" id="txtProjectPhaseDesc" />
						<span id="sub_project_phase_err_desc" style="color:red;display:none;padding-left:5px">*</span>
					</td>
				</tr>
			
				<tr>
					<td style="text-align:right;"><span>Project : </span></td>
					<td>
						<select id="txtProjectPhaseProj"><?php echo $this->getProject() ; ?></select>
					</td>
				</tr>
			</table>
		</div>

	<div id="project-phase-group-user" style="height:185px;">
			<table>
				<tr>
					<td style="width:350px">User : <select id="cobUser"><?php echo $this->getUser() ; ?></select></td>
					<td style="width:50px;text-align:center"><a href="javascript:" onclick="addProjectPhaseUser()"><img src="image/add.png" title="Add User" style="width:24px;height:24px"></img></a></td>
				</tr>
			</table>
			<div style="overflow: auto;height:150px;" class="ui-widget-content ui-corner-all" >
				<table class="sbg-table-list" cellspacing="0" style="width: 100%">
					<tr>
						<td style='width:30px;'>Order</td>
						<td style='display:none'></td>
						<td style='width:280px;'>User</td>
						<td style='width:40px;'>Act</td>
					</tr>
				</table>
				<table id="tblProjectPhaseUser" class="sbg-table-list" cellspacing="0" style="width: 100%">
					
				</table>
			</div>
		</div>
		
		<div id="project-phase-group-rights" style="overflow:auto; height:185px;">
			<table>
				<tr>
					<td style="width:350px">User : <select id="cobUserRights"><?php echo $this->getUser() ; ?></select></td>
					<td style="width:50px;text-align:center"><a href="javascript:" onclick="addProjectPhaseRights()"><img src="image/add.png" title="Add User Rights" style="width:24px;height:24px"></img></a></td>
				</tr>
			</table>
			<div style="overflow: auto;height:150px;" class="ui-widget-content ui-corner-all" >
				<table class="sbg-table-list" cellspacing="0" style="width: 100%">
					<tr>
						<td style='width:30px;'>Order</td>
						<td style='display:none'></td>
						<td style='width:280px;'>User</td>
						<td style='width:40px;'>Act</td>
					</tr>
				</table>
				<table id="tblProjectPhaseRights" class="sbg-table-list" cellspacing="0" style="width: 100%">
					
				</table>
			</div>
		</div>
	</div>
	
	<div class="ui-widget-content ui-corner-all" style="height:40px;margin-top:2px;">
		<div class="sbg-entry-error" style="width:300px;">
			<span id="sub_project_phase_err_mesg" class="sbg-error"></span>
		</div>
		<div class="sbg-entry-command">
			<input id="btnProjectPhaseAdd" type="button" value="Add"></input>
			<input id="btnProjectPhaseUpdate" type="button" value="Update"></input>
			<input id="btnProjectPhaseClear" type="button" value="Clear"></input>
		</div>
	</div>
</div>

<!-- ================= -->
<div>
	<div class="sbg-table">
		<div class="ui-widget-header">
			<table id="sbg-project-phase-header" class="header" cellspacing="0" cellpadding="5">
                <tr class="ui-widget-header">
                <td style="width: 50px;">ID</td>
                <td style="width: 120px;">Ref</td>
                <td style="width: 300px;">Description</td>
				<td style="width: 25px;"></td>
				<td style="width: 25px;"></td>
                </tr>
			</table>
		</div>
        <div id="sbg-project-phase-data" style="overflow: auto;">
            <table id="sbg-project-phase-table" cellspacing="0" cellpadding="5" class="data">
			<tr><td style="width:50px;height:1px"></td><td style="width:120px"></td><td style="width:300px"></td><td style="width:25px"></td><td style="width:25px"></td></tr>
			<?php echo $this->getList(); ?>
            </table>
        </div>
	</div>
</div> 

<script type="text/javascript">
	var project_phase_url = "<?php echo Util::convertLink("ProjectPhase") ; ?>" ;
	<?php include (PATH_CODE . "js/activity/projectphase.js") ; ?>
</script>