Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge branch 'master' of github.com:NPO-project/npo-site

  • Loading branch information...
commit 626d91acb685efdd75fa9fafbb3923fa12f8eb7f 2 parents fa7b20c + 33c0217
Dennis Degryse dennisdegryse authored
16 src/application/controllers/CertificateController.php
... ... @@ -0,0 +1,16 @@
  1 +<?php
  2 +
  3 +class CertificateController extends Zend_Controller_Action
  4 +{
  5 +
  6 + public function indexAction()
  7 + {
  8 + $cert = new \Npo\Entity\Certificate;
  9 + $cert->player = 'Someone';
  10 + $this->view->headTitle('Tribal Wars NPO-Manifest')
  11 + ->setSeparator(' - ')
  12 + ->append($cert->player . '\'s certificaat');
  13 + $this->view->assign('cert', $cert);
  14 + }
  15 +
  16 +}
32 src/application/views/scripts/certificate/index.phtml
... ... @@ -0,0 +1,32 @@
  1 +<p class="wrappertext"><br />
  2 +<?php echo $this->cert->player; ?> heeft een certificaat gehaald op 1 wereld(en):
  3 +<table class="wrappertable">
  4 +<br>
  5 +<tr>
  6 +<th>Rang</th>
  7 +<th>Naam</th>
  8 +<th>Stam</th>
  9 +<th>Punten</th>
  10 +<th>Dorpen</th>
  11 +<th>Punten gemiddelde</th>
  12 +<th>Server</th>
  13 +<th>Start van Certificaat</th>
  14 +<th>Einde van Certificaat</th>
  15 +</tr>
  16 +<tr>
  17 +<td>1</td>
  18 +<td><?php echo $this->cert->player; ?></td>
  19 +<td><em>geen stam</em></td>
  20 +<td>256</td>
  21 +<td>1</td>
  22 +<td>256</td>
  23 +<td>NL26</td>
  24 +<td><?php echo $this->cert->date; ?></td>
  25 +<td><?php echo $this->cert->endDate; ?></td>
  26 +</tr>
  27 +</table>
  28 +<br />
  29 +<strong class="wrappertext"><a href="/">Ga terug naar de website</a></strong><br />
  30 +<br />
  31 +<img class="center" src="/images/pal_sword.png" alt="gefeliciteerd! je hebt je certificaat"/>
  32 +</p>

0 comments on commit 626d91a

Please sign in to comment.
Something went wrong with that request. Please try again.