Add simple tpl for each php

Change the home.css to common.css
This commit is contained in:
Li Chen 2013-10-26 21:01:02 +02:00
parent d2060ce1b8
commit 868e49c834
11 changed files with 60 additions and 8 deletions

View file

@ -1,3 +0,0 @@
body {
padding: 30px;
}

View file

@ -2,5 +2,9 @@
if(!defined('ONYX')) exit; if(!defined('ONYX')) exit;
$exercice = new Exercice($EXERCICE);
$template->assign("Exercice", $exercice);
//$template->assign("Number", $ex_number);
return "teams/exercice"; return "teams/exercice";

View file

@ -2,5 +2,4 @@
if(!defined('ONYX')) exit; if(!defined('ONYX')) exit;
return "teams/me";
return "teams/change";

View file

@ -1,6 +1,6 @@
{extends file="layout-nav.tpl"} {extends file="layout-nav.tpl"}
{block name=head} {block name=head}
<link href="/css/home.css" rel="stylesheet"> <link href="/css/common.css" rel="stylesheet">
{/block} {/block}
{block name=content} {block name=content}
<h1> <h1>

View file

@ -1,6 +1,6 @@
{extends file="layout-nav.tpl"} {extends file="layout-nav.tpl"}
{block name=head} {block name=head}
<link href="/css/home.css" rel="stylesheet"> <link href="/css/common.css" rel="stylesheet">
{/block} {/block}
{block name=content} {block name=content}
<h1> <h1>

View file

@ -0,0 +1,19 @@
{extends file="layout-nav.tpl"}
{block name=head}
<link href="/css/common.css" rel="stylesheet">
{/block}
{block name=content}
<!-- TODO: resolved number -->
<div>
<h1>Exercice {$Number} - X</h1>
<ul>
<li>Difficulté : {$Exercice->statement}</li>
<li>Gain :</li>
<!-- Dowloads files -->
<li>Description</li>
<!-- Input solution -->
<ul>
{/block}

View file

@ -1,7 +1,7 @@
{extends file="layout-nav.tpl"} {extends file="layout-nav.tpl"}
{block name=head} {block name=head}
<link href="/css/home.css" rel="stylesheet"> <link href="/css/common.css" rel="stylesheet">
{/block} {/block}
{block name=content} {block name=content}

View file

@ -0,0 +1,11 @@
{extends file="layout-nav.tpl"}
{block name=head}
<link href="/css/common.css" rel="stylesheet">
{/block}
{block name=content}
<h1>
THIS IS ME
</h1>
{/block}

View file

@ -0,0 +1,11 @@
{extends file="layout-nav.tpl"}
{block name=head}
<link href="/css/common.css" rel="stylesheet">
{/block}
{block name=content}
<h1>
THIS IS SUMMARY
</h1>
{/block}

View file

@ -0,0 +1,11 @@
{extends file="layout-nav.tpl"}
{block name=head}
<link href="/css/common.css" rel="stylesheet">
{/block}
{block name=content}
<h1>
THIS IS TEAM
</h1>
{/block}