Location: PHPKode > projects > BugIn and Ticketing System > bugin-0.65/inc/add.inc.php
<?php
echo <<<EOT

<script language="JavaScript">
<!--
function projInfo() {
	myWinLoc="{$options['baseURL']}?area=proj_info&id=" + document.list['mod[project]'].options[document.list['mod[project]'].selectedIndex].value;
	window.open(myWinLoc,'ProjectInfo','width=$infoWindowWidth,height=$infoWindowHeight,directories=no,location=no,menubar=no,scrollbars=yes,status=no,toolbar=no,resizable=yes');
}

function checkSubmit() {
	if (document.list['mod[project]'].options[document.list['mod[project]'].selectedIndex].value == -1) {

		alert("{$verbage['project']} {$verbage['missing']}, {$verbage['yms_project']}");
	}
	else if (document.list['mod[category]'].options[document.list['mod[category]'].selectedIndex].value == -1) {
		alert("{$verbage['category']} {$verbage['missing']}, {$verbage['yms_category']}");
	}
	else if (document.list['mod[short_desc]'].value == "") {
		alert("{$verbage['short_description']} {$verbage['missing']}, {$verbage['yme_shortdesc']}.");
	}
	else if (document.list['mod[long_desc]'].value == "") {
		alert("{$verbage['long_description']} {$verbage['missing']}: {$verbage['yme_longdesc']}");
	}
	else {
		document.list.submit();
	}
}

-->
</script>

<form action="{$options['baseURL']}{$options['formSubmitTo']}" method="{$options['formMethod']}" name="list">

<input type="hidden" name="area" value="add_submit" />
<input type="hidden" name="mod[creator]" value="{$uid}" />
<input type="hidden" name="mod[status]" value="1" />
<table cellpadding="0" cellspacing="0">
	<tr bgcolor="{$options['colorTableHeaderBg']}" valign=top>
		<td colspan="3">
			<center><font color="{$options['colorTableHeaderText']}"><b>{$verbage['add_ticket']}<b></font></center>
		</td>
	</tr>
$nliRow

	<tr valign=top>
		<td bgcolor="{$options['colorTableBgAlt2']}"><b>{$verbage['project']}</b></td>
		<td>$projImg
			<select name="mod[project]">
				<option value="-1">{$verbage['select_project']}</option>
				$projects
			</select>
			<input type="button" onClick="projInfo()" name="Info" value="info" />
		</td>
		<td bgcolor="{$options['colorTableBgAlt2']}">
			<b>{$verbage['short_description']}</b>
		</td>
	</tr>

	<tr valign=top>
		<td bgcolor="{$options['colorTableBgAlt2']}"><b>{$verbage['category']}</b></td>
		<td>$catImg
			<select name="mod[category]">
				<option value="-1">{$verbage['select_category']}</option>
				$categories
			</select>
		</td>
		<td rowspan="{$shortDescRowspan}">
			<textarea name="mod[short_desc]" wrap="virtual" cols="40" rows="3"></textarea>
		</td>
	</tr>

	<tr valign=top>
		<td bgcolor="{$options['colorTableBgAlt2']}"><b>{$verbage['priority']}</b></td>
		<td>
			<select name="mod[priority]">
				$priority
			</select>
		</td>
	</tr>

	<tr valign=top>
$ownersTitle

$owners

	</tr>

	<tr bgcolor="{$options['colorTableBgAlt2']}" valign=top>
		<td colspan="3">
			<b>{$verbage['long_description']}</b>
		</td>
	</tr>
	<tr valign=top>
		<td colspan="3" align=left>
			<textarea name="mod[long_desc]" rows="10" cols="80" wrap="virtual"></textarea>
		</td>
	</tr>
	<tr valign=top>
EOT;
	if (isset($_SESSION['userinfo']) && $_SESSION['userinfo']['isAdmin']) {
		echo <<<EOT
		<td colspan="3" align="left">
			Proxy Submit For:
			<select name="mod[proxy]">
				<option value="-1">None</option>
				{$users}
			</select>

EOT;
	}
	else {
		echo <<<EOT
		<td colspan="3" align="left">
EOT;
	}

	echo <<<EOT
			<input type="button" value="{$verbage['submit_ticket']}" onClick="checkSubmit()" \>
		</td>
	</tr>
	

</table>

</form>

EOT;

?>
Return current item: BugIn and Ticketing System