[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/www/ksite
From: Emil Sedgh <emilsedgh () gmail ! com>
Date: 2008-02-06 8:15:46
Message-ID: 1202285746.145823.4814.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 771490 by esedgh:
Added TodoMap
M +1 -1 Base.php
M +11 -4 Handlers/function.Todo.php
M +1 -1 Models/Developer/Developer.php
M +6 -1 Models/Todo/Todo.html
M +12 -0 Models/Todo/Todo.php
A Models/Todo/TodoMap.html
M +3 -1 Sites/KDE/Index.html
M +3 -0 Themes/Oxygen/index.html
M +5 -0 Themes/Oxygen/style.css
--- trunk/playground/www/ksite/Base.php #771489:771490
@@ -35,7 +35,7 @@
class Base {
private $Path = Null; //Forced Path (if set, there will be No AutoDetection)
- private $Url = 'http://79.132.193.235/ksite'; //URL (Same as $Path)
+ private $Url = 'http://localhost/ksite'; //URL (Same as $Path)
function Path() {
if ( !$this->Path ) {
--- trunk/playground/www/ksite/Handlers/function.Todo.php #771489:771490
@@ -20,9 +20,16 @@
function smarty_function_Todo( $Params ) {
$Todo = New Todo;
- $Todo->Title( $Params['Title'] );
- $Todo->Contact( $Params['Contact'] );
- $Todo->Status( $Params['Status'] );
- $Todo->Display();
+ if ( $Params['Map'] ) {
+ $Todo->DisplayMap();
+ } else {
+ $Todo->Title( $Params['Title'] );
+ $Todo->Contact( $Params['Contact'] );
+ $Todo->Status( $Params['Status'] );
+ if ( $Params['Bug'] ) {
+ $Todo->Bug( $Params['Bug'] );
+ }
+ $Todo->Display();
+ }
}
?>
\ No newline at end of file
--- trunk/playground/www/ksite/Models/Developer/Developer.php #771489:771490
@@ -32,7 +32,7 @@
$this->Name( $Developer[0] ); //The First line in Developer File is his/her Name
$this->Email( $Developer[1] );//The Second line is his/her Email Address
} else {
- $this->GetallAccounts();
+// $this->GetallAccounts(); //Todo: activate this
}
}
}
--- trunk/playground/www/ksite/Models/Todo/Todo.html #771489:771490
@@ -20,6 +20,11 @@
<td>
{$this->Contact()->Display()}
</td>
+ {if $this->Bug()}
+ <td>
+ {Bug Id=$this->Bug()}
+ </td>
+ {/if}
</tr>
</table>
-</div>
+</div>
\ No newline at end of file
--- trunk/playground/www/ksite/Models/Todo/Todo.php #771489:771490
@@ -23,6 +23,7 @@
private $Title;
private $Status;
private $Contact;
+ private $Bug;
function __construct() {
parent::__construct();
@@ -49,8 +50,19 @@
return New Developer( $this->Contact );
}
+ function Bug( $Bug = Null ) {
+ if ( $Bug ) {
+ $this->Bug = $Bug;
+ }
+ return (Int) $this->Bug;
+ }
+
function Display() {
$this->Template()->Display( $this->Path().'/Models/Todo/Todo.html' );
}
+
+ function DisplayMap() {
+ $this->Template()->Display( $this->Path().'/Models/Todo/TodoMap.html' );
+ }
}
?>
\ No newline at end of file
--- trunk/playground/www/ksite/Sites/KDE/Index.html #771489:771490
@@ -12,4 +12,6 @@
{Todo Title='Fix Okulars Crash' Status=0 Contact='pino'}
{Todo Title='Implement Foo' Status=1 Contact='aacid'}
{Todo Title='GHHH' Status=2 Contact='aacid'}
-{Todo Title='Team Page' Status=0 Contact='trounev'}
\ No newline at end of file
+{Todo Title='Team Page' Status=0 Contact='trounev'}
+{Br Repeat=2}
+{Todo Title='Farsi to Persian' Status=1 Contact='staghavi' Bug=1000 Map=True}
\ No newline at end of file
--- trunk/playground/www/ksite/Themes/Oxygen/index.html #771489:771490
@@ -51,5 +51,8 @@
<div class="content">
{$content}
</div>
+ <div class="footer">
+ df
+ </div>
</body>
</html>
\ No newline at end of file
--- trunk/playground/www/ksite/Themes/Oxygen/style.css #771489:771490
@@ -95,6 +95,11 @@
margin-left: 32%;
}
+.Footer {
+ text-align: center;
+ background-color: #EEE;
+}
+
.Menu {
list-style: none;
Font-Size: x-small;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic