Mercurial > hg > fapweb
changeset 905:2e2d3d9ab205
Add some comments.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 27 Nov 2014 09:25:09 +0200 |
parents | c4bff14a8a50 |
children | 0fe53c3ddcfb |
files | admajax.php |
diffstat | 1 files changed, 9 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/admajax.php Thu Nov 27 08:55:22 2014 +0200 +++ b/admajax.php Thu Nov 27 09:25:09 2014 +0200 @@ -425,7 +425,7 @@ } -function stGetInfoEntryData($show_id, $compo_id) +function stGetInfoEntryData($show_id, $compo_id, $showNotes) { if ($show_id > 0) { @@ -434,6 +434,7 @@ if (($entry = stFetchSQL($sql)) !== false) { + // Entry show#/title/author information $str = "<div class=\"entryInfo\">#".$entry["show_id"]." - ". "<span class=\"entryName\">".chentities($entry["name"])."</span>". @@ -441,6 +442,7 @@ "<span class=\"entryAuthor\">".chentities($entry["author"])."</span>". "</div>"; + // File information for quick reference if (($efile = stFetchSQL("SELECT * FROM files WHERE deleted=0 AND id=".$entry["file_id"])) !== false) { foreach (array("S" => "filename", "O" => "origname") as $ftitle => $fid) @@ -455,6 +457,10 @@ else $str .= "<div class=\"entryFile\"><span class=\"entryFileName\">No file!</span></div>"; + // Show entry notes here too + if ($showNotes) + $str .= "<div class=\"entryNotes\">".chentities($entry["notes"])."</div>"; + return $str; } } @@ -471,8 +477,8 @@ if (($entry = stFetchSQL($sql)) !== false) $strCompo = chentities($entry["name"]); - $strCurrEntry = stGetInfoEntryData(stGetDisplayVar("compoCurrEntry"), $compoID); - $strPrevEntry = stGetInfoEntryData(stGetDisplayVar("compoPrevEntry"), $compoID); + $strCurrEntry = stGetInfoEntryData(stGetDisplayVar("compoCurrEntry"), $compoID, TRUE); + $strPrevEntry = stGetInfoEntryData(stGetDisplayVar("compoPrevEntry"), $compoID, FALSE); } else $strCompo = $strCurrEntry = $strCurrEntryFile = $strPrevEntry = "-";