Layout, Some library additions
55
application/modules/default/views/layout/default.phtml
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/2002/REC-xhtml1-20020801/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>Elements.htm</title>
|
||||
<meta link="description"></meta>
|
||||
<link rel="stylesheet" type="text/css" href="css/default.css" media="screen" />
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="header"></div>
|
||||
|
||||
<div id="nav">
|
||||
|
||||
<ul>
|
||||
<li><a href="#" id="current">Start</a></li>
|
||||
<li><a href="#">Länk</a></li>
|
||||
<li><a href="#">Länk</a></li>
|
||||
</ul>
|
||||
|
||||
<span class="float-right">
|
||||
|
||||
</span>
|
||||
|
||||
</div>
|
||||
|
||||
<br/>
|
||||
|
||||
<form>
|
||||
<fieldset>
|
||||
<label for="t1">Text</label>
|
||||
<input type="text" id="t1" /><br />
|
||||
<label for="ta1">Areaaaa</label>
|
||||
<textarea id="ta1"></textarea><br />
|
||||
<input type="submit" />
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th>abc</th>
|
||||
<th>bab</th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>abc</td>
|
||||
<td>bbb</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<?=$this->content()?>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
89
library/Fiktiv/Session.php
Normal file
|
|
@ -0,0 +1,89 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
*
|
||||
* CREATE
|
||||
*
|
||||
* TODO:
|
||||
* - add support for named sessions
|
||||
* - add support for dynamic table
|
||||
*/
|
||||
class Fiktiv_Session extends Fiktiv_Session_Abstract
|
||||
{
|
||||
|
||||
/**
|
||||
* Database link
|
||||
* @var mysql resource
|
||||
*/
|
||||
private $_database = null;
|
||||
|
||||
private $_sessionTable = 'Sessions';
|
||||
private $_sessionData = 'Data';
|
||||
private $_sessionId = 'SessionId';
|
||||
private $_sessionLife = 'Lifetime';
|
||||
|
||||
/**
|
||||
* Setup the session handler with a database
|
||||
* @param Zend_Db_Adapter_Abstract $database
|
||||
*/
|
||||
public function __construct(Zend_Db_Adapter_Abstract $database)
|
||||
{
|
||||
$this->_database = $database;
|
||||
}
|
||||
|
||||
/**
|
||||
* Open the database connection
|
||||
*/
|
||||
public function open()
|
||||
{
|
||||
if (!$this->_database->isConnected()) {
|
||||
$this->_database->getConnection();
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Close the database connection
|
||||
*/
|
||||
public function close()
|
||||
{
|
||||
if ($this->_database->isConnected()) {
|
||||
$this->_database->closeConnection();
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Read data from session database
|
||||
*/
|
||||
public function read($session)
|
||||
{
|
||||
$data = $this->_database->select()->from($this->_sessionTable, $this->_sessionData)->where($this->_sessionId . ' = ?', $session)->query()->fetchObject();
|
||||
return ($data) ? $data->$this->_sessionData : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Write data to session database
|
||||
*/
|
||||
public function write($session, $data)
|
||||
{
|
||||
try{
|
||||
return ($this->_database->insert($this->_sessionTable, array($this->_sessionId => $session, $this->_sessionData => $data))) ? true : false;
|
||||
} catch (Zend_Db_Exception $ex) {
|
||||
return ($this->_database->update($this->_sessionTable, array($this->_sessionId => $session, $this->_sessionData => $data))) ? true : false;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public function gc($life)
|
||||
{}
|
||||
|
||||
}
|
||||
15
library/Fiktiv/Session/Abstract.php
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
abstract class Fiktiv_Session_Abstract {
|
||||
|
||||
abstract public function open();
|
||||
abstract public function read($session);
|
||||
abstract public function write($session,$data);
|
||||
abstract public function close();
|
||||
abstract public function destroy($session);
|
||||
abstract public function gc($life);
|
||||
|
||||
}
|
||||
205
public/css/default.css
Normal file
|
|
@ -0,0 +1,205 @@
|
|||
|
||||
body {
|
||||
font: normal 12px "Verdana";
|
||||
background: url('../img/bg.png') repeat-x;
|
||||
background-color: #fcfcfc;
|
||||
color: #443;
|
||||
width: 780px;
|
||||
margin: 0 auto 75px;
|
||||
padding: 0 25px;
|
||||
}
|
||||
|
||||
h1,h2,h3,h4,h5,h6 { margin: 0 0 5px; }
|
||||
|
||||
h1,h2 { margin: 10px 0 0; font: normal 2.2em Arial; color: #464e64; }
|
||||
h2 { border-bottom: solid 1px #c4cde3; }
|
||||
h3, form tr.head { font: normal 1.6em "Verdana, Helvetica"; }
|
||||
|
||||
p { line-height: 1.6em; padding: 0 0 8px; }
|
||||
|
||||
ul, ol { padding: 0; margin: 0; }
|
||||
|
||||
code {
|
||||
font-size: 1.2em;
|
||||
padding: 8px;
|
||||
margin: 15px;
|
||||
border-left: 5px solid #f1f1f1;
|
||||
}
|
||||
|
||||
a { text-decoration: none; }
|
||||
a:link, a:visited { color: blue; }
|
||||
a:hover, a:active { color: #516593; }
|
||||
|
||||
div { margin: 0; }
|
||||
|
||||
img { border: 0; margin: 0; padding: 0; }
|
||||
|
||||
form { margin: 0; }
|
||||
table {
|
||||
padding: 8px;
|
||||
}
|
||||
th { background: #f1f1f1 }
|
||||
table, td, th {
|
||||
border: 1px solid #bcbcbc;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
td, th { padding: .5em .6em; }
|
||||
|
||||
label {
|
||||
text-align: right;
|
||||
width: 80px;
|
||||
height: 20px;
|
||||
float: left;
|
||||
}
|
||||
|
||||
input[type="text"] {
|
||||
|
||||
}
|
||||
textarea {
|
||||
height: 80px;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
input[type="text"], textarea {
|
||||
font: normal 1em Arial;
|
||||
width: 200px;
|
||||
background-image: url('../img/elements/textbox.png');
|
||||
background-repeat: repeat-x;
|
||||
background-position: top;
|
||||
border: 1px solid #ccc;
|
||||
margin: .2em;
|
||||
padding: 5px 3px;
|
||||
}
|
||||
|
||||
input[type="text"]:focus, textarea:focus {
|
||||
background: white;
|
||||
border: 1px solid #999;
|
||||
}
|
||||
|
||||
#header {
|
||||
background: url('../img/header.png') no-repeat;
|
||||
height: 80px;
|
||||
}
|
||||
|
||||
#nav {
|
||||
background: url('../img/menu.png') no-repeat;
|
||||
height: 22px;
|
||||
padding: 8px 12px 0;
|
||||
}
|
||||
|
||||
#nav ul {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
#nav a {
|
||||
color: white;
|
||||
margin: 0 16px 0 0;
|
||||
float: left;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#nav #current, #nav a:hover {
|
||||
|
||||
}
|
||||
|
||||
#footer {
|
||||
height: 20px;
|
||||
text-align: center;
|
||||
padding: 8px 15px 0;
|
||||
margin: 25px auto auto;
|
||||
}
|
||||
|
||||
#footer, #footer a { color: #999; }
|
||||
|
||||
#footer #quick-nav {
|
||||
float: right;
|
||||
}
|
||||
|
||||
#footer #info {
|
||||
float: left;
|
||||
}
|
||||
|
||||
#wrapper {
|
||||
margin: 0 6px;
|
||||
}
|
||||
|
||||
/* Message */
|
||||
|
||||
p.message, p.notify, p.bail {
|
||||
padding: 8px;
|
||||
margin: 0px auto 18px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
p.message {
|
||||
background: #fdf6d4;
|
||||
border: 3px solid #eae5ce;
|
||||
}
|
||||
|
||||
p.notify {
|
||||
background: #ffffcc;
|
||||
border: 1px solid #ffd700;
|
||||
}
|
||||
|
||||
p.bail {
|
||||
background: #fdc4c4;
|
||||
border: 1px solid #fc9595;
|
||||
}
|
||||
|
||||
/* Alignment */
|
||||
|
||||
.float-left { float: left; }
|
||||
.float-right { float: right; }
|
||||
.clear { clear: both; }
|
||||
.center { text-align: Center; }
|
||||
|
||||
/* Index */
|
||||
|
||||
div#foreword {
|
||||
width: 435px;
|
||||
text-align: justify;
|
||||
float: left;
|
||||
}
|
||||
|
||||
div#foreword a {
|
||||
display: block;
|
||||
margin: 8px 5px;
|
||||
padding: 4px 10px;
|
||||
border: 1px solid #d6dbe3;
|
||||
}
|
||||
|
||||
/* forms */
|
||||
|
||||
form#login {
|
||||
/*background: url('img/login-form-head.png') no-repeat;
|
||||
background-color: #9eb1d2;
|
||||
border: 1px solid #f3f3f3;
|
||||
background: #fcfcfc;*/
|
||||
padding: 5px;
|
||||
width: 265px;
|
||||
}
|
||||
|
||||
form#login td input {
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
form#login td {
|
||||
padding: 2px 4px;
|
||||
}
|
||||
|
||||
form#login div {
|
||||
background: url('img/login-form-head.png') no-repeat;
|
||||
}
|
||||
|
||||
form#reg table {
|
||||
margin: 15px auto;
|
||||
}
|
||||
|
||||
div#agrement {
|
||||
background: #f9f9f9;
|
||||
text-align: left;
|
||||
width: 600px;
|
||||
padding: 8px;
|
||||
margin: 0 auto 15px;
|
||||
border: 1px solid #f1f1f1;
|
||||
}
|
||||
1
public/css/reset.css
Normal file
|
|
@ -0,0 +1 @@
|
|||
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent;}body{line-height:1;}ol,ul{list-style:none;}blockquote,q{quotes:none;}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none;}:focus{outline:0;}ins{text-decoration:none;}del{text-decoration:line-through;}table{border-collapse:collapse;border-spacing:0;}
|
||||
BIN
public/img/bg.png
Normal file
|
After Width: | Height: | Size: 267 B |
BIN
public/img/elements/textbox.png
Normal file
|
After Width: | Height: | Size: 1,016 B |
BIN
public/img/footer.png
Normal file
|
After Width: | Height: | Size: 3.4 KiB |
BIN
public/img/header.png
Normal file
|
After Width: | Height: | Size: 503 B |
BIN
public/img/icons/Thumbs.db
Normal file
BIN
public/img/icons/accept.png
Normal file
|
After Width: | Height: | Size: 781 B |
BIN
public/img/icons/add.png
Normal file
|
After Width: | Height: | Size: 733 B |
BIN
public/img/icons/anchor.png
Normal file
|
After Width: | Height: | Size: 523 B |
BIN
public/img/icons/application.png
Normal file
|
After Width: | Height: | Size: 464 B |
BIN
public/img/icons/application_add.png
Normal file
|
After Width: | Height: | Size: 619 B |
BIN
public/img/icons/application_cascade.png
Normal file
|
After Width: | Height: | Size: 524 B |
BIN
public/img/icons/application_delete.png
Normal file
|
After Width: | Height: | Size: 610 B |
BIN
public/img/icons/application_double.png
Normal file
|
After Width: | Height: | Size: 533 B |
BIN
public/img/icons/application_edit.png
Normal file
|
After Width: | Height: | Size: 703 B |
BIN
public/img/icons/application_error.png
Normal file
|
After Width: | Height: | Size: 656 B |
BIN
public/img/icons/application_form.png
Normal file
|
After Width: | Height: | Size: 467 B |
BIN
public/img/icons/application_form_add.png
Normal file
|
After Width: | Height: | Size: 592 B |
BIN
public/img/icons/application_form_delete.png
Normal file
|
After Width: | Height: | Size: 605 B |
BIN
public/img/icons/application_form_edit.png
Normal file
|
After Width: | Height: | Size: 714 B |
BIN
public/img/icons/application_form_magnify.png
Normal file
|
After Width: | Height: | Size: 612 B |
BIN
public/img/icons/application_get.png
Normal file
|
After Width: | Height: | Size: 581 B |
BIN
public/img/icons/application_go.png
Normal file
|
After Width: | Height: | Size: 634 B |
BIN
public/img/icons/application_home.png
Normal file
|
After Width: | Height: | Size: 685 B |
BIN
public/img/icons/application_key.png
Normal file
|
After Width: | Height: | Size: 670 B |
BIN
public/img/icons/application_lightning.png
Normal file
|
After Width: | Height: | Size: 656 B |
BIN
public/img/icons/application_link.png
Normal file
|
After Width: | Height: | Size: 701 B |
BIN
public/img/icons/application_osx.png
Normal file
|
After Width: | Height: | Size: 487 B |
BIN
public/img/icons/application_osx_terminal.png
Normal file
|
After Width: | Height: | Size: 525 B |
BIN
public/img/icons/application_put.png
Normal file
|
After Width: | Height: | Size: 585 B |
BIN
public/img/icons/application_side_boxes.png
Normal file
|
After Width: | Height: | Size: 478 B |
BIN
public/img/icons/application_side_contract.png
Normal file
|
After Width: | Height: | Size: 547 B |
BIN
public/img/icons/application_side_expand.png
Normal file
|
After Width: | Height: | Size: 581 B |
BIN
public/img/icons/application_side_list.png
Normal file
|
After Width: | Height: | Size: 510 B |
BIN
public/img/icons/application_side_tree.png
Normal file
|
After Width: | Height: | Size: 483 B |
BIN
public/img/icons/application_split.png
Normal file
|
After Width: | Height: | Size: 520 B |
BIN
public/img/icons/application_tile_horizontal.png
Normal file
|
After Width: | Height: | Size: 432 B |
BIN
public/img/icons/application_tile_vertical.png
Normal file
|
After Width: | Height: | Size: 492 B |
BIN
public/img/icons/application_view_columns.png
Normal file
|
After Width: | Height: | Size: 493 B |
BIN
public/img/icons/application_view_detail.png
Normal file
|
After Width: | Height: | Size: 576 B |
BIN
public/img/icons/application_view_gallery.png
Normal file
|
After Width: | Height: | Size: 555 B |
BIN
public/img/icons/application_view_icons.png
Normal file
|
After Width: | Height: | Size: 476 B |
BIN
public/img/icons/application_view_list.png
Normal file
|
After Width: | Height: | Size: 473 B |
BIN
public/img/icons/application_view_tile.png
Normal file
|
After Width: | Height: | Size: 465 B |
BIN
public/img/icons/application_xp.png
Normal file
|
After Width: | Height: | Size: 426 B |
BIN
public/img/icons/application_xp_terminal.png
Normal file
|
After Width: | Height: | Size: 507 B |
BIN
public/img/icons/arrow_branch.png
Normal file
|
After Width: | Height: | Size: 582 B |
BIN
public/img/icons/arrow_divide.png
Normal file
|
After Width: | Height: | Size: 677 B |
BIN
public/img/icons/arrow_down.png
Normal file
|
After Width: | Height: | Size: 379 B |
BIN
public/img/icons/arrow_in.png
Normal file
|
After Width: | Height: | Size: 600 B |
BIN
public/img/icons/arrow_inout.png
Normal file
|
After Width: | Height: | Size: 551 B |
BIN
public/img/icons/arrow_join.png
Normal file
|
After Width: | Height: | Size: 626 B |
BIN
public/img/icons/arrow_left.png
Normal file
|
After Width: | Height: | Size: 345 B |
BIN
public/img/icons/arrow_merge.png
Normal file
|
After Width: | Height: | Size: 484 B |
BIN
public/img/icons/arrow_out.png
Normal file
|
After Width: | Height: | Size: 594 B |
BIN
public/img/icons/arrow_redo.png
Normal file
|
After Width: | Height: | Size: 625 B |
BIN
public/img/icons/arrow_refresh.png
Normal file
|
After Width: | Height: | Size: 685 B |
BIN
public/img/icons/arrow_refresh_small.png
Normal file
|
After Width: | Height: | Size: 506 B |
BIN
public/img/icons/arrow_right.png
Normal file
|
After Width: | Height: | Size: 349 B |
BIN
public/img/icons/arrow_rotate_anticlockwise.png
Normal file
|
After Width: | Height: | Size: 608 B |
BIN
public/img/icons/arrow_rotate_clockwise.png
Normal file
|
After Width: | Height: | Size: 602 B |
BIN
public/img/icons/arrow_switch.png
Normal file
|
After Width: | Height: | Size: 683 B |
BIN
public/img/icons/arrow_turn_left.png
Normal file
|
After Width: | Height: | Size: 516 B |
BIN
public/img/icons/arrow_turn_right.png
Normal file
|
After Width: | Height: | Size: 489 B |
BIN
public/img/icons/arrow_undo.png
Normal file
|
After Width: | Height: | Size: 631 B |
BIN
public/img/icons/arrow_up.png
Normal file
|
After Width: | Height: | Size: 372 B |
BIN
public/img/icons/asterisk_orange.png
Normal file
|
After Width: | Height: | Size: 760 B |
BIN
public/img/icons/asterisk_yellow.png
Normal file
|
After Width: | Height: | Size: 743 B |
BIN
public/img/icons/attach.png
Normal file
|
After Width: | Height: | Size: 391 B |
BIN
public/img/icons/award_star_add.png
Normal file
|
After Width: | Height: | Size: 853 B |
BIN
public/img/icons/award_star_bronze_1.png
Normal file
|
After Width: | Height: | Size: 733 B |
BIN
public/img/icons/award_star_bronze_2.png
Normal file
|
After Width: | Height: | Size: 755 B |
BIN
public/img/icons/award_star_bronze_3.png
Normal file
|
After Width: | Height: | Size: 754 B |
BIN
public/img/icons/award_star_delete.png
Normal file
|
After Width: | Height: | Size: 849 B |
BIN
public/img/icons/award_star_gold_1.png
Normal file
|
After Width: | Height: | Size: 753 B |
BIN
public/img/icons/award_star_gold_2.png
Normal file
|
After Width: | Height: | Size: 770 B |
BIN
public/img/icons/award_star_gold_3.png
Normal file
|
After Width: | Height: | Size: 781 B |
BIN
public/img/icons/award_star_silver_1.png
Normal file
|
After Width: | Height: | Size: 714 B |
BIN
public/img/icons/award_star_silver_2.png
Normal file
|
After Width: | Height: | Size: 734 B |
BIN
public/img/icons/award_star_silver_3.png
Normal file
|
After Width: | Height: | Size: 738 B |
BIN
public/img/icons/basket.png
Normal file
|
After Width: | Height: | Size: 669 B |
BIN
public/img/icons/basket_add.png
Normal file
|
After Width: | Height: | Size: 752 B |
BIN
public/img/icons/basket_delete.png
Normal file
|
After Width: | Height: | Size: 773 B |
BIN
public/img/icons/basket_edit.png
Normal file
|
After Width: | Height: | Size: 811 B |
BIN
public/img/icons/basket_error.png
Normal file
|
After Width: | Height: | Size: 794 B |
BIN
public/img/icons/basket_go.png
Normal file
|
After Width: | Height: | Size: 777 B |
BIN
public/img/icons/basket_put.png
Normal file
|
After Width: | Height: | Size: 733 B |
BIN
public/img/icons/basket_remove.png
Normal file
|
After Width: | Height: | Size: 738 B |
BIN
public/img/icons/bell.png
Normal file
|
After Width: | Height: | Size: 789 B |
BIN
public/img/icons/bell_add.png
Normal file
|
After Width: | Height: | Size: 816 B |
BIN
public/img/icons/bell_delete.png
Normal file
|
After Width: | Height: | Size: 824 B |
BIN
public/img/icons/bell_error.png
Normal file
|
After Width: | Height: | Size: 813 B |
BIN
public/img/icons/bell_go.png
Normal file
|
After Width: | Height: | Size: 836 B |
BIN
public/img/icons/bell_link.png
Normal file
|
After Width: | Height: | Size: 850 B |
BIN
public/img/icons/bin.png
Normal file
|
After Width: | Height: | Size: 476 B |
BIN
public/img/icons/bin_closed.png
Normal file
|
After Width: | Height: | Size: 363 B |