<?php 
# ************** LICENCE ****************
/*
	Copyright (c) PORTANEO.
*/
# ***************************************
# 
#			Notes Widget
# 
# *************************************** 

//----------------------parser $variables-----------------------

$noteid = parser($variables,'noteid=');

//retrieve notes
$DB->getResults($widNote_getNote,$DB->escape($noteid));
$row = $DB->fetch(0);
$notes = $row['notes'];
$DB->freeResults();

echo '<a name="notes'.$noteid.'"></a>
	<div class="widget">'.$notes.'</div>
	<div class="widget">
		<form method="post" action="../widgets/scr_widget_84.inc.php">
		<input type="hidden" name="id" value="'.$noteid.'">
		<input type="hidden" name="notes" value="'.$notes.'">
		<input type="hidden" name="uniq" value="'.$uniq.'">
		<input type="hidden" name="tab" value="'.$selectedTab.'">
		<input type="hidden" name="widname" value="'.$title.'">
		<input type="hidden" name="mod_id" value="'.$mod_id.'">
		<input type="text" name="new_note" style="width: 75%">
		<input type="submit" value="'.lg("add").'">
		</form>
	</div>
	';
?>  
 