From: <pan...@us...> - 2008-10-05 16:47:16
|
Revision: 407 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=407&view=rev Author: panzaboi Date: 2008-10-05 15:20:17 +0000 (Sun, 05 Oct 2008) Log Message: ----------- See R405 Comment Added Paths: ----------- website/application/layouts/ website/application/layouts/layout.phtml Property changes on: website/application/layouts ___________________________________________________________________ Added: tsvn:logminsize + 5 Added: website/application/layouts/layout.phtml =================================================================== --- website/application/layouts/layout.phtml (rev 0) +++ website/application/layouts/layout.phtml 2008-10-05 15:20:17 UTC (rev 407) @@ -0,0 +1,87 @@ +<?= $this->doctype() ?> +<? $this->dojo()->enable() + ->setDjConfigOption('parseOnLoad', true) + ->registerModulePath('custom', '../custom/') + ->requireModule('dijit.form.FilteringSelect') ?> +<html> + <head> + <base href="<?= 'http://' . $_SERVER["HTTP_HOST"] . $this->baseUrl() ?>/" /> + <?= $this->headTitle($this->placeholder('title')->toString()) ?> + <?= $this->headMeta()->appendHttpEquiv('Content-Type', 'text/html; charset=UTF-8') ?> + + <?= $this->headLink()->appendStylesheet('styles/style.css') ?> + <?= /*$this->headLink()->appendStylesheet('styles/ie6.css', 'screen', 'IE 6')*/'' ?> + <?= /*$this->headLink()->appendStylesheet('styles/ie7.css', 'screen', 'IE 7')*/'' ?> + + <? if ($this->dojo()->isEnabled()): + $this->dojo()->setLocalPath('/scripts/dojo/dojo.js') + ->addStyleSheetModule('dijit.themes.tundra'); + + echo $this->dojo(); + endif; ?> + <?= $this->headScript()->appendFile('/scripts/main.js') ?> + </head> + <body class="tundra"> + <table border="0" cellpadding="0" cellspacing="0" width="100%"> + <tr bgcolor="#122a5b"> + <td><img height="43" src="images/logo.gif" width="490"></td> + </tr> + <tr bgcolor="#e1e1e1"> + <td><img height=26 src="images/logod.gif" width="490"></td> + </tr> + <tr> + <td bgcolor=#122a5b colspan=2><img height=2 src="images/0.gif" width=1></td> + </tr> + </table> + <table border=0 cellpadding=0 cellspacing=0 width="100%" summary="" height="20%"> + <tr> + <td bgcolor=#e1e1e1 valign=top width="200"> + <table width="100%" border="0" cellpadding="0" cellspacing="5"> + <tr><td><img border="0" src="images/arrow.gif" width="8" height="8" hspace="5"><a href="index/about">Що це за проект</a></td></tr> + <tr><td><img border="0" src="images/arrow.gif" width="8" height="8" hspace="5"><a href="index/rule">Правила</a></td></tr> + <tr><td><img border="0" src="images/arrow.gif" width="8" height="8" hspace="5"><a href="archieve/index">Набір завдань</a></td></tr> + <tr><td><img border="0" src="images/arrow.gif" width="8" height="8" hspace="5"><a href="archieve/submit">Протестувати Розв'язок</a></td></tr> + <tr><td><img border="0" src="images/arrow.gif" width="8" height="8" hspace="5"><a href="archieve/results">Результати Тестувань</a></td></tr> + <tr><td><img border="0" src="images/arrow.gif" width="8" height="8" hspace="5"><a href="archieve/ranks">Рейтинг Учасників</a></td></tr> + <tr><td><hr></td></tr> + </table> + + <table border=0 cellpadding=4 cellspacing=0 width="100%" summary=""> + <tr><td align=middle bgcolor=#122a5b><font color=#d4d0e2><b><small>вхід</small></b></font></td></tr> + <tr><td> + <form onsubmit="return checkform(this);" method="post" action="login.php?rid=45fed5d9b297f" style="margin:0"> + <input type="hidden" name="path" value="/"> + <table border=0 cellPadding=1 cellSpacing=0 summary="" width=100%> + <tr> + <td class=name nowrap><small><font color=#122a5b> логін:</font></small></td> + <td><input name=lgn style="height: 18px; width: 100px"></td> + <td> </td> + </tr> + <tr> + <td class=name nowrap><small><font color=#122a5b> пароль:</font></small></td> + <td><input name=pswd type=password style="height: 18px; width: 100px"></td> + <td><input name="login" src="images/b_find.gif" type="image"> + </tr> + </table> + </form> + +<CENTER><A href="register.php">Зареєструватись</a><BR><a href=createteam.php>Створити команду</a></CENTER> +</TABLE><TABLE border=0 cellPadding=4 cellSpacing=0 width="100%"> +<TR><TD align=middle bgColor=#122a5b> +<FONT color=#d4d0e2><B><SMALL>F.A.Q.</SMALL></B></FONT> +<TR><TD><TABLE border=0 cellPadding=0 cellSpacing=2 width="100%"><TR><TD><P>Мені здається що програма написана правильно, але система видає "Помилка під час виконання"... +<P>Якщо Ви використовуєте С++, і описали функцію void main(){...} - навіть якщо програма видасть +правильний результат, то система видасть "помилка під час виконання". Це пов'язано з тим, що +в такому випадку код завершення програми непердбачуваний, і практично ніколи небуває нульовим. +<BR>Для того, щоб програму Вам зарахувало (якщо все правильно), необхідно описувати основну +функцію як int main(){...} і обов'язково завершувати програму через return 0. +<TR><TD align=right><P><SMALL><A href="allfaq.php">[ Всі питання ]</p></SMALL></TABLE><TR><TD align=middle bgColor=#122a5b> +<FONT color=#d4d0e2> </FONT> +<TR><TD><TABLE border=0 cellPadding=0 cellSpacing=2 width="100%"><TR><TD align=center> + +</TABLE></TABLE><TD bgColor=#f4f3f8 vAlign=top height=100%><?= $this->placeholder('message') ?><br /><?= $this->layout()->content ?></table></table> +<TABLE> +<TR vAlign=Bottom><TABLE border=0 cellPadding=0 cellSpacing=0 width="100%" summary=""><TR bgColor=#122a5b><TD colSpan=3><IMG alt="" height=5 src="images/pixel.gif" width=1><TR bgColor=#122a5b><TD class=copyright>© 2004-2005, <a class=copyrightlink href="mailto: ac...@ia..."><B><FONT COLOR="#d1d1d1">A-S</FONT>tudio</B></A><TD align=middle><TD align=right class=copyright><A class=copyrightlink href="http://www.acm.lviv.ua">ACM Контестер</A><TR bgColor=#122a5b><TD colSpan=3><IMG alt="" height=5 src="images/pixel.gif" width=1></TABLE> + <?= $this->debugInfo(true) ?> + </body> +</html> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pan...@us...> - 2009-03-01 16:23:20
|
Revision: 514 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=514&view=rev Author: panzaboi Date: 2009-03-01 16:23:15 +0000 (Sun, 01 Mar 2009) Log Message: ----------- Added general view helper plugins Added Paths: ----------- website/application/views/ website/application/views/helpers/ website/application/views/helpers/IsLoggedIn.php website/application/views/helpers/getUser.php website/application/views/scripts/ website/application/views/scripts/error/ website/application/views/scripts/error/error.phtml website/application/views/scripts/logedin.phtml website/application/views/scripts/paginator.phtml Property changes on: website/application/views ___________________________________________________________________ Added: tsvn:logminsize + 5 Property changes on: website/application/views/helpers ___________________________________________________________________ Added: tsvn:logminsize + 5 Added: website/application/views/helpers/IsLoggedIn.php =================================================================== --- website/application/views/helpers/IsLoggedIn.php (rev 0) +++ website/application/views/helpers/IsLoggedIn.php 2009-03-01 16:23:15 UTC (rev 514) @@ -0,0 +1,14 @@ +<?php + +class Acm_View_Helper_IsLoggedIn extends Zend_View_Helper_Abstract +{ + public function isLoggedIn() + { + $auth = Zend_Auth::getInstance(); + + if ($auth->hasIdentity()) + return true; + else + return false; + } +} \ No newline at end of file Added: website/application/views/helpers/getUser.php =================================================================== --- website/application/views/helpers/getUser.php (rev 0) +++ website/application/views/helpers/getUser.php 2009-03-01 16:23:15 UTC (rev 514) @@ -0,0 +1,14 @@ +<?php + +class Acm_View_Helper_getUser extends Zend_View_Helper_Abstract +{ + public function getUser() + { + $auth = Zend_Auth::getInstance(); + + if ($auth->hasIdentity()) + return $auth->getIdentity(); + else + return NULL; + } +} \ No newline at end of file Property changes on: website/application/views/scripts ___________________________________________________________________ Added: tsvn:logminsize + 5 Property changes on: website/application/views/scripts/error ___________________________________________________________________ Added: tsvn:logminsize + 5 Added: website/application/views/scripts/error/error.phtml =================================================================== --- website/application/views/scripts/error/error.phtml (rev 0) +++ website/application/views/scripts/error/error.phtml 2009-03-01 16:23:15 UTC (rev 514) @@ -0,0 +1,14 @@ +<h1>An error occurred</h1> +<h2><?= $this->msg ?></h2> +<? if ('development' == $this->env): ?> +<h3>Exception information:</h3> + <p> + <b>Message:</b> <?= ($this->exception ? $this->exception->getMessage() : ($this->other_message ? $this->other_message : $this->translate("unknownError"))) ?> + </p> + + <h3>Stack trace:</h3> + <pre><?= ($this->exception ? $this->exception->getTraceAsString() : "") ?></pre> + + <h3>Request Parameters:</h3> + <pre><? var_dump($this->request->getParams()) ?></pre> +<? endif ?> Added: website/application/views/scripts/logedin.phtml =================================================================== --- website/application/views/scripts/logedin.phtml (rev 0) +++ website/application/views/scripts/logedin.phtml 2009-03-01 16:23:15 UTC (rev 514) @@ -0,0 +1,4 @@ +<div class="box2 c"> + <h2><?= $this->translate('user_menu') ?></h2> + <a href="<?= $this->url(array('module' => 'default', 'controller' => 'index', 'action' => 'logout'), null, true) ?>"><?= $this->translate('log_out') ?></a> +</div> \ No newline at end of file Added: website/application/views/scripts/paginator.phtml =================================================================== --- website/application/views/scripts/paginator.phtml (rev 0) +++ website/application/views/scripts/paginator.phtml 2009-03-01 16:23:15 UTC (rev 514) @@ -0,0 +1,30 @@ +<?php if ($this->pageCount): ?> +<div class="paginationControl"> +<!-- Previous page link --> +<?php if (isset($this->previous)): ?> + <a href="<?= $this->url(array('page' => $this->previous)); ?>"> + < Previous + </a> | +<?php else: ?> + <span class="disabled">< Previous</span> | +<?php endif; ?> + +<!-- Numbered page links --> +<?php foreach ($this->pagesInRange as $page): ?> + <?php if ($page != $this->current): ?> + <a href="<?= $this->url(array('page' => $page)); ?>"><?= $page; ?></a> | + <?php else: ?> + <?= $page; ?> | + <?php endif; ?> +<?php endforeach; ?> + +<!-- Next page link --> +<?php if (isset($this->next)): ?> + <a href="<?= $this->url(array('page' => $this->next)); ?>"> + Next > + </a> +<?php else: ?> + <span class="disabled">Next ></span> +<?php endif; ?> +</div> +<?php endif; ?> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |