Use page text description instead of the database page text name on the page text editor list. (BUG 198)

This commit is contained in:
james 2008-08-26 21:06:05 +00:00
parent dad671f212
commit d5ff3be6b9
3 changed files with 8 additions and 3 deletions

View File

@ -124,10 +124,10 @@
echo "<table class=\"summarytable\">";
$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))
{
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";
else $lastupdate=$r->lastupdate;
echo "<td>$lastupdate</td>";

View File

@ -1 +1 @@
111
112

5
db/db.update.112.sql Normal file
View 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';