Updated various files where the version number exists.
Continued work on templates.php.
This commit is contained in:
@@ -2,14 +2,14 @@
|
||||
/*
|
||||
refchain.php
|
||||
OpenLog Online Logbook
|
||||
Copyright (C) 2025 Rod Wright
|
||||
Copyright (C) 2026 Rod Wright
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0
|
||||
*/
|
||||
|
||||
include("functions.php");
|
||||
|
||||
$print=$_REQUEST['print'];
|
||||
$print=$_REQUEST['print'] ?? "";
|
||||
$chainnote=$_REQUEST['chainnote'];
|
||||
|
||||
$logname=LOG_NAME;
|
||||
@@ -59,17 +59,29 @@ while($mptr<count($master)) {
|
||||
$fmtnote=convertweblinks($tablerow["lognote"]);
|
||||
// generate the flags string
|
||||
$flagstring="";
|
||||
$allflagqry=mysqli_query($db,"select flagid from flags");
|
||||
while ($allflagids=mysqli_fetch_row($allflagqry)) {
|
||||
$flagid=$allflagids[0];
|
||||
$flag_tbl="flag_".$flagid;
|
||||
if (mysqli_num_rows(mysqli_query($db,"select id from $flag_tbl where target=\"lognotes\" and id=\"$noteid\""))) {
|
||||
$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."<font color=\"$flagcolor\">$flagsym</font> ";
|
||||
}
|
||||
}
|
||||
|
||||
//$allflagqry=mysqli_query($db,"select flagid from flags");
|
||||
//while ($allflagids=mysqli_fetch_row($allflagqry)) {
|
||||
//$flagid=$allflagids[0];
|
||||
//$flag_tbl="flag_".$flagid;
|
||||
//if (mysqli_num_rows(mysqli_query($db,"select id from $flag_tbl where target=\"lognotes\" and id=\"$noteid\""))) {
|
||||
//$flagparam=mysqli_fetch_assoc(mysqli_query($db,"select * from flags where flagid=\"$flagid\""));
|
||||
//$flagcolor=$flagparam["flagcolor"];
|
||||
//$flagsym=$flagparam["flagsym"];
|
||||
//$flagstring=$flagstring."<font color=\"$flagcolor\">$flagsym</font> ";
|
||||
//}
|
||||
//}
|
||||
|
||||
if ($flagstring) $fmtnote=$fmtnote."<br>".$flagstring;
|
||||
printf("
|
||||
<tr>
|
||||
|
||||
Reference in New Issue
Block a user