|
From: <pan...@us...> - 2009-02-12 16:55:39
|
Revision: 502
http://acmcontester.svn.sourceforge.net/acmcontester/?rev=502&view=rev
Author: panzaboi
Date: 2009-02-12 16:55:36 +0000 (Thu, 12 Feb 2009)
Log Message:
-----------
Arhive View
Added Paths:
-----------
website/application/modules/acm/views/scripts/archive/
website/application/modules/acm/views/scripts/archive/entry.phtml
website/application/modules/acm/views/scripts/archive/index.phtml
website/application/modules/acm/views/scripts/archive/result.phtml
website/application/modules/acm/views/scripts/archive/results.phtml
website/application/modules/acm/views/scripts/archive/source.phtml
website/application/modules/acm/views/scripts/archive/submit.phtml
website/application/modules/acm/views/scripts/archive/view.phtml
Property changes on: website/application/modules/acm/views/scripts/archive
___________________________________________________________________
Added: tsvn:logminsize
+ 5
Added: website/application/modules/acm/views/scripts/archive/entry.phtml
===================================================================
--- website/application/modules/acm/views/scripts/archive/entry.phtml (rev 0)
+++ website/application/modules/acm/views/scripts/archive/entry.phtml 2009-02-12 16:55:36 UTC (rev 502)
@@ -0,0 +1,10 @@
+<tr class="tc">
+ <td width="10%"><a href="<?= $this->url( array('action' => 'view', 'id' => $this->id), null) ?>"><?= $this->id ?></a></td>
+ <td width="60%" class="tl"><a href="<?= $this->url( array('action' => 'view', 'id' => $this->id), null) ?>"><?= $this->name ?></a></td>
+ <td width="10%"><?= $this->tries ?></td>
+ <td width="10%"><?= $this->accepts ?></td>
+ <td width="10%">
+ <a href="<?= $this->url( array('action' => 'submit', 'id' => $this->id), null) ?>"><img height="20" width="20" alt="<?= $this->translate('submit_solution') ?>" src="images/acm/submit.png"/></a>
+ <a href="<?= $this->url( array('action' => 'status', 'id' => $this->id), null) ?>"><img height="20" width="20" alt="<?= $this->translate('solution_status') ?>" src="images/acm/status.png"/>
+ </td>
+</tr>
Added: website/application/modules/acm/views/scripts/archive/index.phtml
===================================================================
--- website/application/modules/acm/views/scripts/archive/index.phtml (rev 0)
+++ website/application/modules/acm/views/scripts/archive/index.phtml 2009-02-12 16:55:36 UTC (rev 502)
@@ -0,0 +1,21 @@
+<h2><?= $this->translate('problem_set') ?></h2>
+<br />
+<table class="table">
+ <tr>
+ <th><?= $this->translate('problem') ?></th>
+ <th><?= $this->translate('name') ?></th>
+ <th><?= $this->translate('tries') ?></th>
+ <th><?= $this->translate('accepts') ?></th>
+ <th><?= $this->translate('actions') ?></th>
+ </tr>
+ <? if (count($this->challenges)): ?>
+ <?= $this->partialLoop('archive/entry.phtml', $this->challenges) ?>
+ <? else: ?>
+ <tr>
+ <td colspan="5" class="tc error"><?= $this->translate('no_problems') ?></td>
+ </tr>
+ <? endif; ?>
+ <tr>
+ <td colspan="5" class="footer tc"><?= $this->challenges ?></td>
+ </tr>
+</table>
Added: website/application/modules/acm/views/scripts/archive/result.phtml
===================================================================
--- website/application/modules/acm/views/scripts/archive/result.phtml (rev 0)
+++ website/application/modules/acm/views/scripts/archive/result.phtml 2009-02-12 16:55:36 UTC (rev 502)
@@ -0,0 +1,10 @@
+<tr class="tc">
+ <td><a href="<?= $this->url( array('controller' => 'archive','action' => 'source', 'id' => $this->id), null) ?>"><?= $this->id ?></a></td>
+ <td><?= $this->date($this->when) ?></td>
+ <td><a href="<?= $this->url( array('controller' => 'user','action' => 'view', 'username' => $this->username), null) ?>"><?= $this->username ?></a></td>
+ <td><a href="<?= $this->url( array('action' => 'view', 'id' => $this->challengeid), null) ?>"><?= $this->challengeid ?></a></td>
+ <td><?= $this->codelang ?></td>
+ <td><?= $this->state($this->state) ?></td>
+ <td><?= ($this->tests == 0 ? '-' : $this->tests) ?></td>
+ <td><?= ($this->runtime == 0 ? '-' : $this->runtime) ?>/<?= ($this->memory == 0 ? '-' : $this->memory) ?></td>
+</tr>
\ No newline at end of file
Added: website/application/modules/acm/views/scripts/archive/results.phtml
===================================================================
--- website/application/modules/acm/views/scripts/archive/results.phtml (rev 0)
+++ website/application/modules/acm/views/scripts/archive/results.phtml 2009-02-12 16:55:36 UTC (rev 502)
@@ -0,0 +1,24 @@
+<h2><?= $this->translate('results') ?></h2>
+<br />
+<table class="table">
+ <tr>
+ <th>ID</th>
+ <th><?= $this->translate('date') ?></th>
+ <th><?= $this->translate('username') ?></th>
+ <th><?= $this->translate('problem') ?></th>
+ <th><?= $this->translate('language') ?></th>
+ <th><?= $this->translate('state') ?></th>
+ <th><?= $this->translate('tests') ?></th>
+ <th><?= $this->translate('runtime') ?></th>
+ </tr>
+ <? if (count($this->submits)): ?>
+ <?= $this->partialLoop('archive/result.phtml', $this->submits) ?>
+ <? else: ?>
+ <tr>
+ <td colspan="8" class="tc error"><?= $this->translate('no_results') ?></td>
+ </tr>
+ <? endif; ?>
+ <tr>
+ <td colspan="8" class="footer tc"><?= $this->submits ?></td>
+ </tr>
+</table>
\ No newline at end of file
Added: website/application/modules/acm/views/scripts/archive/source.phtml
===================================================================
--- website/application/modules/acm/views/scripts/archive/source.phtml (rev 0)
+++ website/application/modules/acm/views/scripts/archive/source.phtml 2009-02-12 16:55:36 UTC (rev 502)
@@ -0,0 +1,2 @@
+<a href="<?= $this->url( array('controller' => 'archive','action' => 'results'), null) ?>">Назад</a><br /><br />
+<code class="prettyprint"><?= htmlspecialchars(file_get_contents(Application::getDocRoot().'/other/submits/'.$this->id)) ?></code>
\ No newline at end of file
Added: website/application/modules/acm/views/scripts/archive/submit.phtml
===================================================================
--- website/application/modules/acm/views/scripts/archive/submit.phtml (rev 0)
+++ website/application/modules/acm/views/scripts/archive/submit.phtml 2009-02-12 16:55:36 UTC (rev 502)
@@ -0,0 +1,2 @@
+<h2><?= $this->translate('submit_solution') ?></h2>
+<?= $this->form ?>
\ No newline at end of file
Added: website/application/modules/acm/views/scripts/archive/view.phtml
===================================================================
--- website/application/modules/acm/views/scripts/archive/view.phtml (rev 0)
+++ website/application/modules/acm/views/scripts/archive/view.phtml 2009-02-12 16:55:36 UTC (rev 502)
@@ -0,0 +1,13 @@
+<h2 align="center"><?= $this->id.' - '.$this->name ?></h2>
+<br />
+<div class="tc">
+ <?= $this->translate('timelimit') ?>: <?= $this->measure("Time", $this->timelimit, Zend_Measure_Time::MILLISECOND, Zend_Measure_Time::SECOND, 1, true ) ?> <?= $this->translate('seconds') ?><br />
+ <?= $this->translate('memorylimit') ?>: <?= $this->measure("Binary", $this->memorylimit, Zend_Measure_Binary::BYTE, Zend_Measure_Binary::KILOBYTE ) ?><br />
+ <?= $this->translate('outputlimit') ?>: <?= $this->measure("Binary", $this->outputlimit, Zend_Measure_Binary::BYTE, Zend_Measure_Binary::KILOBYTE ) ?><br />
+</div>
+<br />
+<p><?= $this->description ?></p>
+
+<div>
+ <a href="<?= $this->url(array('action' => 'submit', 'id' => $this->id), null) ?>"><?= $this->translate('submit_solution') ?></a>
+</div>
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|