include ("_header.php"); ?>
$query="SELECT * FROM `tbl_ir_document_sections` WHERE `document_id`=\"" . addslashes($docid) . "\" ORDER BY `sort_order`";
$result=mysql_query($query);
$expandall = "";
$collall = "";
if (mysql_num_rows($result)>0)
{
echo "
";
while($info = mysql_fetch_array( $result ))
{
$id = $info['id'];
$title = html_entity_decode($info['title']);
$body = nl2br(html_entity_decode($info['body']));
$expandall = $expandall . "ShowHide('notes{$id}',0,1);";
$collall = $collall . "ShowHide('notes{$id}',0,0);";
?>
-
= $title ?>
-
= $body ?>
}
echo "
";
}
else
{
echo "No data found.";
}
?>
if ($realid) { ?>
Click here to download this document
} ?>
include("_footer.php");
mysql_close($link);
?>