Location: PHPKode > projects > Prsaar Social Networking Platform > PrsaarColour-0.7.alpha.6.3/pr-admin/option.php
<?php
	require_once('admin.php');
	//____________________________________________________
	$Display->Title = 'Options';
	$Display->Subtitle = 'General';
	$UpdateFile = 'option-general-update.php'; //now i realise, that defining it is of no use!
	//_____________________________________________________
	require('./admin-display-header.php');
	
	//Database quries to get the values for forms
	$ProfileName = $DC->Result("SELECT * FROM ".PR_DATABASE_PREFIX."config WHERE config_name='profile_name'");
	$ProfileName = $ProfileName[0]['config_value'];
	$ProfileTagline = $DC->Result("SELECT * FROM ".PR_DATABASE_PREFIX."config WHERE config_name = 'profile_tagline'");
	$ProfileTagline = $ProfileTagline[0]['config_value'];
	
	
	
	$InitialHeading = "<h2> General Options &raquo;&raquo; </h2> ";
	
	$Form = new AdminForm('option-update.php?action=option_general');
	$Form->Input('text', 'profile_name', $ProfileName, 'Profile Page Name', 'Heading for your profile page');
	$Form->Input('text', 'profile_tagline', $ProfileTagline, 'Profile Page Tagline', 'Tagline of your profile page');
	print "$InitialHeading".$Form->Finish('Update your options');
	
require('./admin-display-footer.php');
?>
Return current item: Prsaar Social Networking Platform