From: <pan...@us...> - 2009-02-12 16:39:59
|
Revision: 500 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=500&view=rev Author: panzaboi Date: 2009-02-12 16:39:50 +0000 (Thu, 12 Feb 2009) Log Message: ----------- New Layout Added Paths: ----------- website/application/modules/admin/layouts/ website/application/modules/admin/layouts/layout.phtml Property changes on: website/application/modules/admin/layouts ___________________________________________________________________ Added: tsvn:logminsize + 5 Added: website/application/modules/admin/layouts/layout.phtml =================================================================== --- website/application/modules/admin/layouts/layout.phtml (rev 0) +++ website/application/modules/admin/layouts/layout.phtml 2009-02-12 16:39:50 UTC (rev 500) @@ -0,0 +1,135 @@ +<?php +$loggedin = Zend_Auth::getInstance()->getIdentity(); + +if ($loggedin) +{ + $form = $this->partial('logedin.phtml'); +} +elseif (!$this->dojo()->hasDijit('loginform')) +{ + //$form = (new Form_SmallLogin()); + //$form = $form->render(); +} +else $form = ''; +?> + +<?= $this->doctype() ?> +<? $this->dojo()->enable() + ->setDjConfigOption('parseOnLoad', true) + ->registerModulePath('custom', '../custom/') + ->requireModule('dijit.form.FilteringSelect') + ->addOnLoad('init'); +?> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> + <head> + <meta name="description" content="Site description" /> + <meta name="keywords" content="key, words" /> + + <?= $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/prettify.css') ?> + <?= $this->headScript()->appendFile('/scripts/main.js') ?> + <?= $this->headScript()->appendFile('/scripts/prettify.js') ?> + + <? + if ($this->dojo()->isEnabled()): + $this->dojo()->setLocalPath('/scripts/dojo/dojo.js') + ->addStyleSheetModule('dijit.themes.tundra'); + + echo $this->dojo(); + endif; + ?> + + <base href="<?= 'http://' . $_SERVER["HTTP_HOST"] . $this->baseUrl() ?>/" /> +</head> + +<body class="tundra"> + <div id="wrapper"> + <div id="header"> + <a href="<?= $this->url(array('module' => 'acm'), null, true) ?>"><img src="images/logo.png" id="logo" /></a> + + <div id="topmenu"> + <ul> + <li><a href="#" class="current">home</a></li> + <li><a href="#">news</a></li> + <li><a href="#">forum</a></li> + <li><a href="#">links</a></li> + <li><a href="#">search</a></li> + <li><a href="#">contacts</a></li> + </ul> + </div> + </div> + + <div id="container"> + <div id="right"> + <div id="content"> + <?= ($this->placeholder('message') ? $this->placeholder('message') : '') ?> + <?= $this->layout()->content ?> + </div> + </div> + + <div id="left"> + <ul id="nav"> + <li> + <a href="#" onclick="return toggle('sub1');">Архів</a> + <ul id="sub1"> + <li><a href="<?= $this->url(array('module' => 'acm', 'controller' => 'archive'), null, true) ?>">Набір Завдань</a></li> + <li><a href="<?= $this->url(array('module' => 'acm', 'controller' => 'archive', 'action' => 'results'), null, true) ?>">Результати</a></li> + </ul> + </li> + <li> + <a href="#Archieve" onclick="return toggle('sub2');">Контести</a> + <ul id="sub2"> + <li><a href="<?= $this->url(array('module' => 'acm', 'controller' => 'contest', 'action' => 'index'), null, true) ?>">Зареєструватись</a></li> + <li><a href="#Problems">Набір Завдань</a></li> + <li><a href="#Results">Результати</a></li> + </ul> + </li> + <li> + <a href="#Archieve" onclick="return toggle('sub3');">Віртуальні Контести</a> + <ul id="sub3"> + <li><a href="#Problems">Створити</a></li> + <li><a href="#Problems">Зареєструватись</a></li> + <li><a href="#Problems">Набір Завдань</a></li> + <li><a href="#Results">Результати</a></li> + </ul> + </li> + <li><a href="#contact">Contact</a></li> + </ul> + + <!--<div class="box2 c"> + <form name="login" action="" method="post" class="form"> + <div class="line"> + <label for="username" class="label">Username:</label> + <input class="text" type="text" name="username" title="Username" value="" tabindex="1" /> + </div> + <div class="line"> + <label for="password" class="label">Password:</label> + <input class="text" type="password" name="password" title="Password" value="" tabindex="2" /> + + <input class="submit2" type="submit" name="submit" value=">" tabindex="3" /> + </div> + </form> + </div>--> + + <?= $form ?> + + <!--<div id="clear"></div>--> + </div> + </div> + + <div id="clear"></div> + + + </div> + + <div id="footer"> + <p> + Copyright 2009 ACM. Designed by <a href="#" rel="external">panza</a>. Valid <a href="http://jigsaw.w3.org/css-validator/check/referer" rel="external">CSS</a> & <a href="http://validator.w3.org/check?uri=referer" rel="external">XHTML</a> + <br /> + <!--<?= $this->debugInfo(true) ?>--> + </p> + </div> +</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. |