Location: PHPKode > projects > PhpMyContent > phpMyContent-0.1/projekt_neu.php3
<?
	require 'inc/config.php3';				// Variablen Deklaration
	require "$inc_path/db_connect.php3";			// Datenbank Verbindung
	require "$inc_path/auth.php3";			// Authentifizierung
	require "$inc_path/header.php3";			// HTML Header (Layout)
	require "$inc_path/user_track.php3";			// User Logging

?>
	<center><h3><?echo $nav_projekt?> (<?echo $nav_neu;?>)</h3>

<script language="JavaScript">
function check_required_fields() {
	if (document.form.projektName.value.length == 0) {
		alert("<?echo $check_required_fields;?>")
		document.form.projektName.focus();
		return false;
	}
	if (document.form.projektBeschreibung.value.length == 0) {
		alert("<?echo $check_required_fields;?>")
		document.form.projektBeschreibung.focus();
		return false;
	}
	if (document.form.projektSprache.selectedIndex < 1) { 
		alert("<?echo $check_required_fields;?>") 
		document.form.projektSprache.focus(); 
		return false; 
	} 
	return true;
}
</script>

<?
	if ($status == 'Superuser') {
?>
		<form action="projekt_insert.php3" name="form" method="post" onsubmit="return check_required_fields();">
		<table border=0>
		<tr><td><?echo $label_name?>:</td></tr>
		<tr><td><input name="projektName" size=50 value="" style="width=500pt; background='white';"></td></tr>
		<tr><td><?echo $label_beschreibung?>:</td></tr> 
		<tr><td><textarea cols=80 rows=10 name="projektBeschreibung" style="width=500pt; background='white';"></textarea></td></tr> 
		<tr><td><?echo $sprache?>:</td></tr> 
		<tr><td><select name="projektSprache" style="width=500pt; background='white';">
			<option value="" SELECTED><?echo $label_waehlen?></option> 
			<option value="deutsch">Deutsch</option> 
			<option value="english">English</option> 
			</select>
		</td></tr> 
		<tr><td><?echo $label_sichtbar?>:&nbsp;<input type="checkbox" name="aktiv"></td></tr>
		</table>
		<input type=submit value="<?echo $nav_speichern;?>" style="width: 500pt;">
		</form>
<?	} else {
		echo $nav_frage_superuser;
	}
?>	</center>
<?	require 'inc/db_disconnect.php3';
	require 'inc/footer.php3';
?>
Return current item: PhpMyContent