forked from science-ation/science-ation
Use page text description instead of the database page text name on the page text editor list. (BUG 198)
This commit is contained in:
parent
dad671f212
commit
d5ff3be6b9
@ -124,10 +124,10 @@
|
|||||||
echo "<table class=\"summarytable\">";
|
echo "<table class=\"summarytable\">";
|
||||||
|
|
||||||
$q=mysql_query("SELECT * FROM pagetext WHERE year='".$config['FAIRYEAR']."' AND lang='".$config['default_language']."' ORDER BY textname");
|
$q=mysql_query("SELECT * FROM pagetext WHERE year='".$config['FAIRYEAR']."' AND lang='".$config['default_language']."' ORDER BY textname");
|
||||||
echo "<tr><th>".i18n("Page Text Name")."</th><th>".i18n("Last Update")."</th></tr>";
|
echo "<tr><th>".i18n("Page Text Description")."</th><th>".i18n("Last Update")."</th></tr>";
|
||||||
while($r=mysql_fetch_object($q))
|
while($r=mysql_fetch_object($q))
|
||||||
{
|
{
|
||||||
echo "<tr><td><a href=\"pagetexts.php?textname=$r->textname\">$r->textname</a></td>";
|
echo "<tr><td><a href=\"pagetexts.php?textname=$r->textname\">$r->textdescription</a></td>";
|
||||||
if($r->lastupdate=="0000-00-00 00:00:00") $lastupdate="Never";
|
if($r->lastupdate=="0000-00-00 00:00:00") $lastupdate="Never";
|
||||||
else $lastupdate=$r->lastupdate;
|
else $lastupdate=$r->lastupdate;
|
||||||
echo "<td>$lastupdate</td>";
|
echo "<td>$lastupdate</td>";
|
||||||
|
@ -1 +1 @@
|
|||||||
111
|
112
|
||||||
|
5
db/db.update.112.sql
Normal file
5
db/db.update.112.sql
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
ALTER TABLE `pagetext` ADD `textdescription` VARCHAR( 255 ) NOT NULL AFTER `textname` ;
|
||||||
|
UPDATE `pagetext` SET `textdescription`='Participant registration main page instructions' WHERE textname='register_participants_main_instructions';
|
||||||
|
UPDATE `pagetext` SET `textdescription`='Judge registration instructions for Invite-Only mode' WHERE textname='register_judges_invite';
|
||||||
|
UPDATE `pagetext` SET `textdescription`='Volunteer registration instructions for Invite-Only mode' WHERE textname='register_volunteer_invite';
|
||||||
|
UPDATE `pagetext` SET `textdescription`='School access login page' WHERE textname='schoolaccess';
|
Loading…
Reference in New Issue
Block a user