From: <pan...@us...> - 2008-09-25 11:12:14
|
Revision: 384 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=384&view=rev Author: panzaboi Date: 2008-09-25 11:12:08 +0000 (Thu, 25 Sep 2008) Log Message: ----------- view updates for needed controllers Modified Paths: -------------- website/application/default/views/scripts/error/error.phtml website/application/default/views/scripts/index/index.phtml Added Paths: ----------- website/application/default/views/scripts/archieve/ website/application/default/views/scripts/archieve/entry.phtml website/application/default/views/scripts/archieve/index.phtml website/application/default/views/scripts/archieve/view.phtml Removed Paths: ------------- website/application/default/views/scripts/index/board.phtml website/application/default/views/scripts/index/entry.phtml Added: website/application/default/views/scripts/archieve/entry.phtml =================================================================== --- website/application/default/views/scripts/archieve/entry.phtml (rev 0) +++ website/application/default/views/scripts/archieve/entry.phtml 2008-09-25 11:12:08 UTC (rev 384) @@ -0,0 +1,18 @@ +<tr bgcolor="#f4f3f8" align="middle"> + <td style="border-left: 0px none; border-right: 1px solid rgb(196, 196, 219);"> + <a href="<?= $this->url( array('action' => 'view', 'id' => $this->id), null) ?>"><?= $this->id ?></a> + </td> + + <td align="left" style="border-left: 0px none; border-right: 1px solid rgb(196, 196, 219);"> + <a href="<?= $this->url( array('action' => 'view', 'id' => $this->id), null) ?>"><?= $this->name ?></a> + </td> + + <td style="border-left: 0px none; border-right: 1px solid rgb(196, 196, 219);"><?= $this->tries ?></td> + + <td style="border-left: 0px none; border-right: 1px solid rgb(196, 196, 219);"><?= $this->accepted ?></td> + + <td style="border-left: 0px none; border-right: 0px solid rgb(196, 196, 219);"> + <img height="17" width="22" alt="Здати" src="images/b_find.gif"/> + <img height="17" width="22" alt="Показати як здають" src="images/probstatus.png"/> + </td> +</tr> \ No newline at end of file Added: website/application/default/views/scripts/archieve/index.phtml =================================================================== --- website/application/default/views/scripts/archieve/index.phtml (rev 0) +++ website/application/default/views/scripts/archieve/index.phtml 2008-09-25 11:12:08 UTC (rev 384) @@ -0,0 +1,5 @@ +<table cellspacing="1" cellpadding="8" border="0" width="100%"><tbody><tr><td width="100%" valign="top" class="name"><table cellspacing="0" cellpadding="0" border="0" width="100%"><tbody><tr><td bgcolor="#d0d4de" width="4" class="name"><img height="18" width="4" src="http://web.archive.org/web/20070323032706/http://acm.lviv.ua/"/></td><td nowrap="" bgcolor="#122a5b" width="*" class="name"> <font color="#d4d0e2"><b><small>Набiр задач</small></b><small/></font></td><td nowrap="" bgcolor="#122a5b" align="right" class="name"> <font color="#d4d0e2"><b><small> 05:26 23 березня 2007 року </small></b><small/></font></td></tr></tbody></table> <table cellspacing="0" cellpadding="0" border="0" width="100%" summary=""><tbody><tr><td bgcolor="#f4f3f8" align="middle" colspan="14"><b>Архів задач</b></td></tr><tr><td bgcolor="#c4c4db" colspan="20"><img height="1" width="1" src="http://web.archive.org/web/20070323032706/http://acm.lviv.ua/" alt=""/></td></tr><tr bgcolor="#e1e1e1" align="middle"> +<th width="70">Задача</th><th align="left" width="*"> Назва</th><th width="70">Спробували</th><th width="70">Здали</th><th align="middle" width="70">Дії</th></tr><tr><td height="1" bgcolor="#c4c4db" colspan="20"><img height="1" width="1" src="http://web.archive.org/web/20070323032706/http://acm.lviv.ua/" alt=""/></td></tr> +<?= $this->partialLoop('archieve/entry.phtml', $this->challenges) ?> + +</table><br/></td></tr></table> \ No newline at end of file Added: website/application/default/views/scripts/archieve/view.phtml =================================================================== --- website/application/default/views/scripts/archieve/view.phtml (rev 0) +++ website/application/default/views/scripts/archieve/view.phtml 2008-09-25 11:12:08 UTC (rev 384) @@ -0,0 +1,5 @@ +<?php + +var_dump($this->problem); + +?> \ No newline at end of file Modified: website/application/default/views/scripts/error/error.phtml =================================================================== --- website/application/default/views/scripts/error/error.phtml 2008-09-25 11:11:35 UTC (rev 383) +++ website/application/default/views/scripts/error/error.phtml 2008-09-25 11:12:08 UTC (rev 384) @@ -1,2 +1,14 @@ -<?= $this->message ?> -<?= $this->content ?> \ No newline at end of file +<h1>An error occurred</h1> +<h2><?= $this->msg ?></h2> +<? if ('development' == $this->env): ?> +<h3>Exception information:</h3> + <p> + <b>Message:</b> <?= $this->exception->getMessage() ?> + </p> + + <h3>Stack trace:</h3> + <pre><?= $this->exception->getTraceAsString() ?></pre> + + <h3>Request Parameters:</h3> + <pre><? var_dump($this->request->getParams()) ?></pre> +<? endif ?> Deleted: website/application/default/views/scripts/index/board.phtml =================================================================== --- website/application/default/views/scripts/index/board.phtml 2008-09-25 11:11:35 UTC (rev 383) +++ website/application/default/views/scripts/index/board.phtml 2008-09-25 11:12:08 UTC (rev 384) @@ -1,81 +0,0 @@ -<table border="0" cellpadding="0" cellspacing="0" id="table"> - <tr> - <td><img src="images/back_deck.jpg" /></td> - <?php - foreach ($this->field->getEnemyPlayer()->getSpellCards() as $where => $card) - { - if ($card && $card instanceof Card) - { - echo '<td><img width="88" height="121" src="images/cards/'.($card->getReference()).'.jpg" /></td>'; - } - else - { - echo '<td><img src="images/back_monster.jpg" /></td>'; - } - } - ?> - <td><img src="images/back_fusion.jpg" /></td> - </tr> - - <tr> - <td><img src="images/back_grave.jpg" /></td> - <!--<td><img src="images/back_monster.jpg" /></td> - <td><img src="images/back_monster.jpg" /></td> - <td><img src="images/back_monster.jpg" /></td> - <td><img src="images/back_monster.jpg" /></td> - <td><img src="images/back_monster.jpg" /></td>--> - <?php - foreach ($this->field->getEnemyPlayer()->getMonsterCards() as $where => $card) - { - if ($card && $card instanceof Card) - { - echo '<td><img width="88" height="121" src="images/cards/'.($card->getReference()).'.jpg" /></td>'; - } - else - { - echo '<td><img src="images/back_monster.jpg" /></td>'; - } - } - ?> - <td><img src="images/back_field.jpg" /></td> - </tr> - - <tr> - <td><img src="images/back_field.jpg" /></td> - <?php - foreach ($this->field->getThisPlayer()->getMonsterCards() as $where => $card) - { - if ($card && $card instanceof Card) - { - echo '<td><img width="88" height="121" src="images/cards/'.($card->getReference()).'.jpg" /></td>'; - } - else - { - echo '<td><img src="images/back_monster.jpg" /></td>'; - } - } - ?> - <td><img src="images/back_grave.jpg" /></td> - </tr> - - <tr> - <td><img src="images/back_fusion.jpg" /></td> - <?php - foreach ($this->field->getEnemyPlayer()->getSpellCards() as $where => $card) - { - if ($card && $card instanceof Card) - { - echo '<td><img width="88" height="121" src="images/cards/'.($card->getReference()).'.jpg" /></td>'; - } - else - { - echo '<td><img src="images/back_monster.jpg" /></td>'; - } - } - ?> - <td><img src="images/back_deck.jpg" /></td> - </tr> -</table> -<!--<div id="elements"> -<?= /*$this->partialLoop('index/entry.phtml', $this->model)*/ '' ?> -</div>--> \ No newline at end of file Deleted: website/application/default/views/scripts/index/entry.phtml =================================================================== --- website/application/default/views/scripts/index/entry.phtml 2008-09-25 11:11:35 UTC (rev 383) +++ website/application/default/views/scripts/index/entry.phtml 2008-09-25 11:12:08 UTC (rev 384) @@ -1,5 +0,0 @@ -<div class="element"> - <div class="image"><img src="images/cards/<?= $this->reference ?>.jpg" /></div> - <div class="title"><?= $this->name ?></div> -</div> -<div class="clear"> </div> \ No newline at end of file Modified: website/application/default/views/scripts/index/index.phtml =================================================================== --- website/application/default/views/scripts/index/index.phtml 2008-09-25 11:11:35 UTC (rev 383) +++ website/application/default/views/scripts/index/index.phtml 2008-09-25 11:12:08 UTC (rev 384) @@ -1,5 +1 @@ -<form action="index/index" method="POST"> - Username: <input type="text" name="username" value="" /> - Password: <input type="password" name="password" value="" /> - <input type="submit" value="Login" /> -</form> \ No newline at end of file +<table cellspacing="1" cellpadding="8" border="0" width="100%"><tbody><tr><td width="100%" valign="top" class="name"><table cellspacing="0" cellpadding="0" border="0" width="100%"><tbody><tr><td bgcolor="#d0d4de" width="4" class="name"><img height="18" width="4" src="http://web.archive.org/web/20070323032459/http://acm.lviv.ua/"/></td><td nowrap="" bgcolor="#122a5b" width="*" class="name"> <font color="#d4d0e2"><b><small>Про систему</small></b><small/></font></td><td nowrap="" bgcolor="#122a5b" align="right" class="name"> <font color="#d4d0e2"><b><small> 05:24 23 березня 2007 року </small></b><small/></font></td></tr></tbody></table> <p style="font-size: 20px; font-family: arial; text-align: center;"><b>ACM Contester</b></p><p align="justify" style="font-size: 20px; font-family: arial; text-align: justify;"><font size="3">Ми, команда розробників цієї системи, дуже раді вітати Вас - учасників цієї системи. </font></p><p align="justify" style="font-size: 20px; font-family: arial; text-align: justify;"><font size="3">Тут Ви маєте можливість спробувати свої сили у розв'язанні різних типів задач. Змагайтесь!!!</font></p><p> </p></td></tr></tbody></table> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |