Location: PHPKode > projects > Prsaar Social Networking Platform > PrsaarColour-0.7.alpha.6.3/pr-admin/askme-edit.php
<?php
	require_once('./admin.php');
	//_____________________________________
	$Display->Title = 'Askme';
	$Display->Subtitle = 'Answer';
	$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> ';
	//_____________________________________________
	require('./admin-display-header.php');
	
	
	
	
	$ID = $_GET['id'];
	//-------------Database quries
	$Question = $DC->Result('SELECT * FROM '.PR_DATABASE_PREFIX."askme WHERE askme_id = '$ID'");
	//---------------------------
	if($Question == false) die('Wrong ID');
	print " <p> <strong> {$Question[0]['askme_question']} </strong> <br /> Asked by: {$Question[0]['askme_asker_name']} <br /> E-mail: <a href='mailto:{$Question[0]['askme_asker_mail']}'>{$Question[0]['askme_asker_mail']}</a> <br /> URL: <a href='{$Question[0]['askme_asker_url']}'>{$Question[0]['askme_asker_url']}</a> <br /> Time: {$Question[0]['askme_question_time']} <br /> <strong> Answer Here &raquo; </strong> <br /> <form method='post' action='./askme-edit-update.php?action=answer&id={$Question[0]['askme_id']}'><textarea rows='16' cols='46' name='askme_answer'>{$Question[0]['askme_answer']}</textarea> <br /> <input type='submit' value='Publish your answer &raquo;' style='text-align=right;'></form> <a href='askme-edit-update.php?action=delete&id=$ID'>Delete This Question. </a> </p>";
	
	
require('./admin-display-footer.php');
?>
Return current item: Prsaar Social Networking Platform