Location: PHPKode > projects > Prsaar Social Networking Platform > PrsaarColour-0.7.alpha.6.3/pr-admin/option-account.php
<?php
	require_once('./admin.php');
	//_________________________________________________
	$Display->Title = 'Options';
	$Display->Subtitle = 'Admin account';
	//___________________________________________________
	require('./admin-display-header.php');
	
	//Database quries to display values
	if(!isset($Error))
	{
		$AdminID = $DC->Result("SELECT * FROM ".PR_DATABASE_PREFIX."config WHERE config_name='admin_id'");
		$AdminID = $AdminID[0]['config_value'];
		$AdminMail = $DC->Result("SELECT * FROM ".PR_DATABASE_PREFIX."config WHERE config_name='admin_mail'");
		$AdminMail = $AdminMail[0]['config_value'];
	}
	//----------
	
	$InitialHeading = "<h2> Administrator Account Settings &raquo;&raquo; </h2>";
	
	$Form = new AdminForm('option-account-update.php?action=update');
	//show errors from option-update.php page
	if(!empty($Error))
	{
		foreach($Error as $Key => $KeyValue)
		{
			$Form->Error[$Key] = $KeyValue;
		}
	}
	$Form->Input('text', 'admin_id', $AdminID, 'Admin ID', 'You will use this ID to SignIn to Prssar administration section.');
	$Form->Input('text', 'admin_mail', $AdminMail, 'E-mail');
	
	print $InitialHeading.$Form->Finish('Update account settings');
?>
	<a href="./option-account-password.php">Click here to change your password</a>
<?php
	
_foot();
?>
Return current item: Prsaar Social Networking Platform