Location: PHPKode > projects > Prsaar Social Networking Platform > PrsaarColour-0.7.alpha.6.3/pr-admin/profile-new.php
<?php
	require_once('./admin.php');
	//__________________________________________
	$Display->Title = 'Profile';
	$Display->Subtitle = 'New Profile Element';
	$Display->Meta = '
<script language="javascript" type="text/javascript" src="../pr-inside/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script language="javascript" type="text/javascript">
tinyMCE.init({
	mode : "textareas",
	theme : "advanced",
	theme_advanced_buttons1 : "bold,italic,underline,separator,strikethrough,justifyleft,justifycenter,justifyright, justifyfull,bullist,numlist,undo,redo,link,unlink",
	theme_advanced_buttons2 : "",
	theme_advanced_buttons3 : "",
	theme_advanced_toolbar_location : "top",
	theme_advanced_toolbar_align : "left",
	theme_advanced_path_location : "bottom",
	extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]"
});
</script> ';
	//_________________________________________________
	
	$Form = new AdminForm('profile-new-update.php?action=new');
	//show errors from profile-new-update.php page
	if(isset($Error))
	{
		foreach($Error as $Key => $KeyValue)
			$Form->Error[$Key] = $KeyValue;
	}
	else
	{
		$Type = $Name = $Value = null;
		//take category from the url if specified
		if(isset($_GET['category']))
		$Type = $_GET['category'];
	}
	$Form->Input('text', 'type', $Type, 'Profile Category', 'Ex: music, about me');
	$Form->Input('text', 'name', $Name, 'Element Name', 'Ex: favourite music artists, last trip');
	$Form->Textarea(12, 'value', $Value, 'Description', 'Seperate multiple values by comma, Ex: artist-1, artist-2');
	
	require('./admin-display-header.php');
?>
<h2> Create New Profile Element &raquo;&raquo;</h2>
Create a new profile item.
<?php echo $Form->Finish('Publish'); ?>
<?php require_once('./admin-display-footer.php'); ?>
Return current item: Prsaar Social Networking Platform