Patch to return head document
Status: Inactive
Brought to you by:
trendzetter
Patch for script_view_document.php to have an option to
return the head document, if head=yes is passed to it
along with the document id number.
Add in the patch at line 43 just after the line
$data_id = $_GET['data_id'];
--------------------------------
$data_Head = $_GET['head'];
if ($data_Head == 'yes') {
#Get the Master ID for this data_id and load in
the data_id.
$query = "SELECT * FROM doc_data WHERE
doc_data.data_id = '$data_id'";
$result = RunQuery ($query);
$row = mysql_fetch_array($result);
$data_id = $row["data_master"];
}
Cheers Fran