Archived
1
0
Fork 0

Layout, Some library additions

This commit is contained in:
Fredric N 2010-08-21 12:19:55 +02:00
parent 11d3a3d6e3
commit 14375db575
1011 changed files with 365 additions and 0 deletions

View 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>

View 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)
{}
}

View 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
View 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
View 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

Binary file not shown.

After

Width:  |  Height:  |  Size: 267 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1,016 B

BIN
public/img/footer.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

BIN
public/img/header.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 503 B

BIN
public/img/icons/Thumbs.db Normal file

Binary file not shown.

BIN
public/img/icons/accept.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 781 B

BIN
public/img/icons/add.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 B

BIN
public/img/icons/anchor.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 523 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 464 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 619 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 524 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 610 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 533 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 703 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 656 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 467 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 592 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 605 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 714 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 612 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 581 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 634 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 685 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 670 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 656 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 701 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 487 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 525 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 585 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 478 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 547 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 581 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 510 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 483 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 520 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 432 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 492 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 493 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 555 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 476 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 473 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 465 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 426 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 507 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 582 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 677 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 379 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 600 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 551 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 626 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 345 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 484 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 594 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 625 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 685 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 506 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 349 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 608 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 602 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 683 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 516 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 489 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 631 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 372 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 760 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 743 B

BIN
public/img/icons/attach.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 391 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 853 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 755 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 754 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 849 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 753 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 770 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 781 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 714 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 734 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 738 B

BIN
public/img/icons/basket.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 669 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 752 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 773 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 811 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 794 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 777 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 738 B

BIN
public/img/icons/bell.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 789 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 816 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 824 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 813 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 836 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 850 B

BIN
public/img/icons/bin.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 476 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 363 B

Some files were not shown because too many files have changed in this diff Show more