"; echo ""; while($mptr\"Add    "; // convert the shift number to a name $shname=dblookup($db,"shifts","shiftid","shiftname",$tablerow["shift"]); // convert tech number to name $tname=dblookup($db,"techs","techid","techname",$tablerow["tech"]); //convert subject number to name $subjname=dblookup($db,"subjects","subjectid","subjectname",$tablerow["subject"]); // create links of urls in note $fmtnote=convertweblinks($tablerow["lognote"]); // generate the flags string $flagstring=""; $flagmapqry=mysqli_query($db,"select flagid from flagmap where lognoteid=$noteid"); if (mysqli_num_rows($flagmapqry)) { while ($flagids=mysqli_fetch_row($flagmapqry)) { $flagid=$flagids[0]; $flagparam=mysqli_fetch_assoc(mysqli_query($db,"select * from flags where flagid=\"$flagid\"")); $flagcolor=$flagparam["flagcolor"]; $flagsym=$flagparam["flagsym"]; $flagstring=$flagstring."$flagsym  "; } } if ($flagstring) $fmtnote=$fmtnote."
".$flagstring; printf("
", $tablerow["lognoteid"],$tablerow["lognoteid"], $tablerow["date"],$tablerow["time"], $shname, $tname, $subjname, $fmtnote, $refs); } else { printf("\n",$master[$mptr]); } $mptr=$mptr+1; } echo "
Note IDDate / TimeShiftTechSubjectNoteReferences
%s %s / %s %s %s %s %s %s
Note Id %s has been deleted and cannot be displayed.


"; banner($print); pageblock("right","end"); pagetable("end"); framework("end","","",$print); ?>