<div id="sbg-project-entry" style="width:610px;margin: 5px 5px 5px 5px;">
	<div id="project-tabs">
		<ul style="font-size: 0.8em;">
			<li><a href="#project-general">General</a></li>
			<span class="sbg-tab-title">Project</span>
		</ul>
		<div id="project-general" style="height:150px;">
			<table>
				<tr>
					<td style="text-align:right;width:100px;"><span>ID : </span></td>
					<td style="width:480px"><input type="text" maxlength="10" size="10" id="txtProjectId" value="Auto" disabled="disabled" /></td>
				</tr>
				<tr>
					<td style="text-align:right;"><span>Code : </span></td>
					<td><input type="text" maxlength="10" size="40" id="txtProjectCode" /><span id="project_err_code" style="color:red;display:none;padding-left:5px">*</span></td>
				</tr>
				<tr>
					<td style="text-align:right;"><span>Title : </span></td>
					<td><input type="text" size="40" id="txtProjectTitle" /><span id="project_err_title" style="color:red;display:none;padding-left:5px">*</span></td>
				</tr>
				<tr>
					<td style="text-align:right;"><span>Description : </span></td>
					<td><input type="text" maxlength="250" size="40" id="txtProjectDesc" /><span id="project_err_desc" style="color:red;display:none;padding-left:5px">*</span></td>
				</tr>
				<tr>
					<td style="text-align:right;"><span>Customer : </span></td>
					<td><select id="txtProjectCust"><?php echo $this->getCustomer() ; ?></select></td>
				</tr>
			</table>
		</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="project_err_mesg" class="sbg-error"></span>
		</div>
		<div class="sbg-entry-command">
			<input id="btnProjectAdd" type="button" value="Add"></input>
			<input id="btnProjectClear" type="button" value="Clear"></input>
			<input id="btnProjectUpdate" type="button" value="Update"></input>
			<input id="btnProjectPrint" type="button" value="Print"></input>
		</div>
	</div>
</div>

<div>
	<div class="sbg-table">
		<div class="ui-widget-header">
			<table id="sbg-project-header" class="header" cellspacing="0" cellpadding="5">
                <tr class="ui-widget-header">
                <td style="width: 50px;">ID</td>
                <td style="width: 120px;">Code</td>
                <td style="width: 200px;">Title</td>
                <td style="width: 300px;">Description</td>
                <td style="width: 200px;">Customer</td>
				<td style="width: 25px;"></td>
				<td style="width: 25px;"></td>
                </tr>
			</table>
		</div>
        <div id="sbg-project-data" style="overflow: auto;">
            <table id="sbg-project-table" cellspacing="0" cellpadding="5" class="data">
			<tr><td style="width:50px;height:1px"></td><td style="width:120px"></td><td style="width:200px"></td><td style="width:300px"></td><td style="width:200px"></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_url = "<?php echo Util::convertLink("Project") ; ?>" ;
<?php include (PATH_CODE . "js/activity/project.js") ; ?>
</script>