add library description and calculate total progress of Character

This commit is contained in:
coderkun 2014-04-22 00:40:21 +02:00
commit 43245814be
5 changed files with 35 additions and 15 deletions

View file

@ -7,11 +7,11 @@
<li><a href="<?=$linker->link(array('seminaries',$seminary['url']))?>"><?=$seminary['title']?></a></li>
</ul>
<h1><i class="fa fa-book fa-fw"></i><?=_('Questtopics')?></h1>
<p>Hier findest du alle Themen aus der Vorlesung "Wissensrepräsentation" und die passenden Quests zum Nachschlagen und Wiederholen. Dein Fortschritt in "Die Legende von Zyren" beeinflusst den Umfang der Bibliothek, spiele also regelmäßig weiter und schalte so Quest für Quest alle Inhalte frei.</p>
<p><?=sprintf(_('Library description, %s, %s'), $seminary['course'], $seminary['title'])?></p>
<div class="libindxpr cf">
<p><small>Gesamtfortschritt: 77%</small></p>
<p><small><?=sprintf(_('Total progress: %d%%'), ($totalQuestcount > 0) ? $numberFormatter->format(round($totalCharacterQuestcount/$totalQuestcount*100)) : 0) ?></small></p>
<div class="xpbar">
<span style="width:77%"></span>
<span style="width:<?=($totalQuestcount > 0) ? round($totalCharacterQuestcount/$totalQuestcount*100) : 0 ?>%"></span>
</div>
</div>
<ul class="libindx cf">