From: Katie <ky...@us...> - 2009-04-26 09:05:33
|
Update of /cvsroot/arianne/stendhal_website/content/scripts In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv22025/content/scripts Modified Files: killedstats.css killedstats.php Log Message: move the best killer and most killed boxes to the killed stats page for creatures not the creature info page Index: killedstats.css =================================================================== RCS file: /cvsroot/arianne/stendhal_website/content/scripts/killedstats.css,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** killedstats.css 24 Mar 2008 11:41:03 -0000 1.1 --- killedstats.css 26 Apr 2009 09:05:26 -0000 1.2 *************** *** 32,34 **** .row .amount { font-style: italic; ! } \ No newline at end of file --- 32,65 ---- .row .amount { font-style: italic; ! } ! ! div.creature { ! height: 114px; ! min-height: 114px; ! width: 75px; ! min-width: 75x; ! text-align: center; ! padding: 5px; ! margin: 5px; ! float: left; ! } ! ! a.creature { ! text-decoration: none; ! } ! ! img.creature { ! height: 64px; ! text-decoration: none; ! border: none; ! } ! ! div.creature_name { ! font-size: 12px; ! font-weight: bolder; ! } ! ! div.creature_level { ! font-size: 12px; ! } ! Index: killedstats.php =================================================================== RCS file: /cvsroot/arianne/stendhal_website/content/scripts/killedstats.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** killedstats.php 24 Mar 2008 11:41:03 -0000 1.1 --- killedstats.php 26 Apr 2009 09:05:26 -0000 1.2 *************** *** 1,3 **** --- 1,73 ---- + <?php + /* + Stendhal website - a website to manage and ease playing of Stendhal game + Copyright (C) 2008 Miguel Angel Blanch Lardin + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + + $monsters=getMonsters(); + $classes=Monster::getClasses(); + ?> + + <?php + /* + * Let people know that this data is fake and it is a known bug. + */ + showKnownBugNotice(); + ?> + + <div style="float: left; width: 50%"><?php + startBox('Most killed (recently)'); + $result=getMostKilledMonster($monsters); + if($result==null) { + $result=array($monsters[0],0); + } + + list($m, $amount)=$result; + echo '<div style="text-align: center;">'; + echo ' <a class="creature" href="?id=content/scripts/monster&name='.$m->name.'&exact">'; + echo ' <img class="creature" src="'.$m->gfx.'" alt="'.$m->name.'"/>'; + echo ' <div class="creature_name">'.$m->name.'</div>'; + echo ' </a>'; + echo ' <div class="creature_killed">It was killed '.$amount.' times</div>'; + echo '</div>'; + endBox(); + ?></div> + + <div style="float: left; width: 50%"><?php + startBox('Best Player killer (recently)'); + $result=getBestKillerMonster($monsters); + if($result==null) { + $result=array($monsters[0],0); + } + + list($m, $amount)=$result; + echo '<div style="text-align: center;">'; + echo ' <a class="creature" href="?id=content/scripts/monster&name='.$m->name.'&exact">'; + echo ' <img class="creature" src="'.$m->gfx.'" alt="'.$m->name.'"/>'; + echo ' <div class="creature_name">'.$m->name.'</div>'; + echo ' </a>'; + echo ' <div class="creature_killed">It has killed '.$amount.' players</div>'; + echo '</div>'; + endBox(); + ?></div> + + + + <div style="float: left; width: 100%"><?php + function getVariable($xmlStats, $type) { foreach($xmlStats['statistics'][0]['attrib'] as $i=>$j) { *************** *** 33,35 **** endBox(); ! ?> \ No newline at end of file --- 103,107 ---- endBox(); ! ?></div> ! <div style="clear: left;"></div> ! </div> |