Mercurial > hg > fapweb
changeset 468:bc1755a9f89f
Add filenames to be shown in current/prev entry in compo control.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 06 Dec 2013 20:13:31 +0200 |
parents | 9e987c975dca |
children | fccb15424ca3 |
files | admajax.php |
diffstat | 1 files changed, 9 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/admajax.php Fri Dec 06 19:55:57 2013 +0200 +++ b/admajax.php Fri Dec 06 20:13:31 2013 +0200 @@ -200,7 +200,12 @@ $show_id, $compo_id); if (($entry = stFetchSQL($sql)) !== false) - return "#".$entry["show_id"]." - ".chentities($entry["name"])." by ".chentities($entry["author"]); + { + return + "<b>#".$entry["show_id"]." - ".chentities($entry["name"]). + " by ".chentities($entry["author"])."</b><br />". + "File: <i>".chentities(substr($entry["filename"], 0, 40))."</i>"; + } } return "-"; } @@ -219,12 +224,12 @@ $strPrevEntry = stGetInfoOneEntryData(stGetDisplayVar("compoPrevEntry"), $compoID); } else - $strCompo = $strCurrEntry = $strPrevEntry = "-"; + $strCompo = $strCurrEntry = $strCurrEntryFile = $strPrevEntry = "-"; return $indent."<div>Current compo:<br /><b>".$strCompo."</b></div>\n". - $indent."<div>Current entry:<br /><b>".$strCurrEntry."</b></div>\n". - $indent."<div>Previous entry:<br /><b>".$strPrevEntry."</b></div>\n"; + $indent."<div>Current entry:<br />".$strCurrEntry."</div>\n". + $indent."<div>Previous entry:<br />".$strPrevEntry."</div>\n"; }