Revize 338
Přidáno uživatelem Michal Kliment před asi 15 roky(ů)
freenetis/trunk/kohana/media/css/print.css | ||
---|---|---|
/* CSS Document */
|
||
* {
|
||
margin:0px;
|
||
padding:0px;
|
||
border:0px;
|
||
font-family: Arial, Verdana, Helvetica, sans-serif;
|
||
color: #464646;
|
||
}
|
||
body, img, a {
|
||
|
||
}
|
||
html {
|
||
font-size:80%;
|
||
height:100%;
|
||
overflow: auto;
|
||
}
|
||
body {
|
||
text-align:center;
|
||
height:100%;
|
||
}
|
||
table, input, textarea {
|
||
font-size:100%;
|
||
}
|
||
|
||
table {
|
||
border-width: 0px 0px 0px 0px;
|
||
border-spacing: 0px;
|
||
}
|
||
table th {
|
||
border-width: 0px 0px 0px 0px;
|
||
padding: 0px 0px 0px 0px;
|
||
}
|
||
table td {
|
||
border-width: 0px 0px 0px 0px;
|
||
padding: 0px 0px 0px 0px;
|
||
}
|
||
|
||
table.picturebox {
|
||
|
||
border-width: 0px 0px 0px 0px;
|
||
border-spacing: 0px;
|
||
border-style: outset outset outset outset;
|
||
border-collapse: separate;
|
||
width: 100%;
|
||
}
|
||
|
||
table.picturebox td {
|
||
border-width: 0px 0px 0px 0px;
|
||
padding: 0px 0px 0px 0px;
|
||
border-style: inset inset inset inset;
|
||
width: 100%;
|
||
color:#990000;
|
||
}
|
||
|
||
.error {
|
||
color:#CC0000;
|
||
}
|
||
.dispNone {
|
||
display:none;
|
||
}
|
||
.clear {
|
||
clear:both;
|
||
}
|
||
.center { text-align:center; }
|
||
.left { text-align:left; }
|
||
.right { text-align:right; }
|
||
.justify { text-align:justify; }
|
||
.bold { font-weight:bold; }
|
||
|
||
.ajax-loader {
|
||
position:absolute;
|
||
margin-left:10px;
|
||
margin-top:2px;
|
||
}
|
||
/* ------------------------ */
|
||
/* -------- LAYOUT -------- */
|
||
/* ------------------------ */
|
||
#main {
|
||
position:relative;
|
||
width:1000px;
|
||
margin:auto;
|
||
background:#ffffff url(../images/bg-main250.jpg) left top repeat-y;
|
||
|
||
|
||
height:auto;
|
||
_height:100%; /* IE 6- */
|
||
min-height:100%;
|
||
}
|
||
|
||
#header {
|
||
display: none;
|
||
position:relative;
|
||
height:90px;
|
||
background: url(../images/bg_header.jpg) repeat-x;
|
||
border-bottom:1px #CCCCCC solid;
|
||
}
|
||
#middle {
|
||
padding-bottom:50px;
|
||
}
|
||
|
||
#menu {
|
||
display: none;
|
||
float:left;
|
||
display:inline;
|
||
width:250px;
|
||
text-align:left;
|
||
}
|
||
#menu-padd {
|
||
padding:10px;
|
||
display: none;
|
||
}
|
||
|
||
#content {
|
||
width:1000px;
|
||
float:left;
|
||
display:inline;
|
||
text-align:justify;
|
||
}
|
||
|
||
.grid_button {
|
||
display: none;
|
||
|
||
}
|
||
|
||
#content-padd {
|
||
padding:10px;
|
||
}
|
||
|
||
.table_form {
|
||
display: none;
|
||
}
|
||
|
||
#footer {
|
||
position:absolute;
|
||
height:35px;
|
||
bottom:0px;
|
||
left:0px;
|
||
background: url(../images/bg_footer.jpg) top repeat-x;
|
||
border-top:1px #CCCCCC solid;
|
||
width:1000px;
|
||
}
|
||
#footer-padd {
|
||
padding-top:10px;
|
||
}
|
||
|
||
/* -----#end LAYOUT-------- */
|
||
/* ------------------------ */
|
||
|
||
/* ------------------------ */
|
||
/* ------- BOXES ------ */
|
||
/* ------------------------ */
|
||
#header .separator1 {
|
||
background:url(../images/header_separator.jpg);
|
||
width:3px;
|
||
height:77px;
|
||
position:absolute;
|
||
left:248px;
|
||
top:11px;
|
||
}
|
||
#header .map {
|
||
position:absolute;
|
||
top:11px;
|
||
right:110px;
|
||
background:url(../images/header_map.jpg) no-repeat;
|
||
width:332px;
|
||
height:77px;
|
||
}
|
||
#header .status {
|
||
position:absolute;
|
||
left:260px;
|
||
top:20px;
|
||
text-align:left;
|
||
}
|
||
.status table {
|
||
margin-top:5px;
|
||
}
|
||
#header .logout {
|
||
position:absolute;
|
||
right:0;
|
||
top:43px;
|
||
width:110px;
|
||
}
|
||
#header .logout span {
|
||
background:url(../images/ico_logout.jpg) right 0px no-repeat;
|
||
padding-right:22px;
|
||
}
|
||
#header .logout a {
|
||
color:#FF833D;
|
||
}
|
||
#header .logout a:hover {
|
||
text-decoration:none;
|
||
}
|
||
|
||
.pagination {
|
||
display: none;
|
||
padding:10px 0 0px 0;
|
||
}
|
||
.pagination strong {
|
||
border:1px #FF833D solid;
|
||
padding:0 5px 0 5px;
|
||
}
|
||
|
||
#record_per_page {
|
||
display: none;
|
||
}
|
||
|
||
.noprint {
|
||
display: none;
|
||
}
|
||
|
||
.message {
|
||
border:1px #FF833D solid;
|
||
background:#F7F7F7;
|
||
font-weight:bold;
|
||
text-align:center;
|
||
margin:10px 0 10px 0;
|
||
padding:10px 0 10px 0;
|
||
}
|
||
/* -----#end BOXES-------- */
|
||
/* ------------------------ */
|
||
|
||
#statesbox
|
||
{
|
||
width: 500px;
|
||
margin-left: 140px;
|
||
margin-top: 60px;
|
||
}
|
||
|
||
#statesbox div
|
||
{
|
||
text-align: center;
|
||
background:#F7F7F7;
|
||
padding: 0px;
|
||
border:3px #666666 solid;
|
||
width: 450px;
|
||
height: 140px;
|
||
}
|
||
|
||
|
||
/* -------------------------------- */
|
||
/* ------- HEADLINES & Texts ------ */
|
||
/* -------------------------------- */
|
||
h1 {
|
||
position:absolute;
|
||
top:24px;
|
||
left:18px;
|
||
background:url(../images/logo_freenetis.jpg);
|
||
width:212px;
|
||
height:49px;
|
||
}
|
||
h1 span {
|
||
visibility:hidden;
|
||
}
|
||
h2 {
|
||
padding-bottom:5px;
|
||
font-size:150%;
|
||
}
|
||
h3 {
|
||
padding-bottom:5px;
|
||
}
|
||
.status span {
|
||
background: url(../images/ico_user.gif) no-repeat;
|
||
padding-left:20px;
|
||
color:#B3B3B3;
|
||
}
|
||
.status .orange {
|
||
color:#FF833D;
|
||
}
|
||
a:hover {
|
||
color: #EC7A04;
|
||
text-decoration:none;
|
||
}
|
||
/* ----#end HEADLINES------ */
|
||
/* ------------------------ */
|
||
|
||
/* CSS Document */
|
||
|
||
/* ------------------------ */
|
||
/* --------- MAIN --------- */
|
||
/* ------------------------ */
|
||
|
||
table.main {
|
||
font-size:95%;
|
||
border:1px #CCCCCC solid;
|
||
border-right:none;
|
||
text-align:left;
|
||
}
|
||
.main th, .main td {
|
||
border:1px #CCCCCC solid;
|
||
border-left:none;
|
||
border-bottom:none;
|
||
}
|
||
.main th {
|
||
background:#F1F1F1 url(../images/bg-gray.gif) top left repeat-x;
|
||
border-top:none;
|
||
text-align:center;
|
||
color:#990000;
|
||
padding:10px;
|
||
}
|
||
.main td {
|
||
padding:5px;
|
||
}
|
||
.main tr.even {
|
||
background-color:#f1f1f1;
|
||
}
|
||
/* -------#end MAIN-------- */
|
||
/* ------------------------ */
|
||
|
||
/* ------------------------ */
|
||
/* ------- EXTENDED ------- */
|
||
/* ------------------------ */
|
||
|
||
table.extended {
|
||
font-size:95%;
|
||
border:1px #CCCCCC solid;
|
||
border-bottom:none;
|
||
text-align:left;
|
||
}
|
||
.extended th, .extended td {
|
||
border-bottom:1px #CCCCCC solid;
|
||
padding:5px;
|
||
}
|
||
.extended th, .extended .th {
|
||
background:#F1F1F1;
|
||
text-align:left;
|
||
color:#990000;
|
||
font-weight:bold;
|
||
}
|
||
.extended td, .extended .th {
|
||
border-left:1px #CCCCCC solid;
|
||
}
|
||
/* -----#end EXTENDED------ */
|
||
/* ------------------------ */
|
freenetis/trunk/kohana/media/css/style.css | ||
---|---|---|
/* -------------------------------- */
|
||
/* ------- HEADLINES & Texts ------ */
|
||
/* -------------------------------- */
|
||
|
||
.flags {
|
||
margin-top: 0px;
|
||
}
|
||
|
||
h1 {
|
||
position:absolute;
|
||
top:24px;
|
freenetis/trunk/kohana/application/i18n/cs_CZ/texts.php | ||
---|---|---|
'comment' => 'Komentář',
|
||
'confirm' => 'Potvrdit',
|
||
'confirm password' => 'Heslo znovu',
|
||
'confirmed' => 'Potvrzeno',
|
||
'confirmed by' => 'Potvrzeno od',
|
||
'constant symbol' => 'Konstantní symbol',
|
||
'contact data' => 'Kontaktní údaje',
|
||
... | ... | |
'vlans' => 'VLANy',
|
||
'welcome to the freenetis!' => 'Vítejte ve Freenetisu!',
|
||
'work confirmation' => 'Potvrzení práce',
|
||
'work successfully added' => 'Práce úspěšně přidána',
|
||
'work has been successfully added' => 'Práce byla úspěšně přidána',
|
||
'work successfully deleted' => 'Práce úspěšně smazána',
|
||
'work successfully updated' => 'Práce úspěšně uložena',
|
||
'works' => 'Práce',
|
freenetis/trunk/kohana/application/models/job.php | ||
---|---|---|
$year = $filter_values['year'];
|
||
$where .= ($where!='WHERE ') ? ' AND j.date LIKE \''.$year.'-%\'' : 'j.date LIKE \''.$year.'-%\'';
|
||
}
|
||
if (isset($filter_values['confirmed']))
|
||
{
|
||
if ($filter_values['confirmed'] == 1)
|
||
{
|
||
$where .= ($where!='WHERE ') ? ' AND j.confirmed_by_id IS NOT NULL' : 'j.confirmed_by_id IS NOT NULL';
|
||
}
|
||
else
|
||
{
|
||
$where .= ($where!='WHERE ') ? ' AND j.confirmed_by_id IS NULL' : 'j.confirmed_by_id IS NULL';
|
||
}
|
||
}
|
||
|
||
return self::$db->query('SELECT j.id, concat(u.name,\' \',u.surname) as user_name, j.description, j.date, j.hours, j.km FROM jobs j
|
||
return self::$db->query('SELECT j.id, concat(u.name,\' \',u.surname) as user_name, j.description, j.date, j.hours, j.km, j.confirmed_by_id as confirmed FROM jobs j
|
||
LEFT JOIN users u ON j.user_id = u.id '.$where.' ORDER BY '.$order_by.' '.$order_by_direction);
|
||
}
|
||
|
||
... | ... | |
$year = $filter_values['year'];
|
||
$where .= ($where!='WHERE ') ? ' AND j.date LIKE \''.$year.'-%\'' : 'j.date LIKE \''.$year.'-%\'';
|
||
}
|
||
if (isset($filter_values['confirmed']))
|
||
{
|
||
if ($filter_values['confirmed'] == 1)
|
||
{
|
||
$where .= ($where!='WHERE ') ? ' AND j.confirmed_by_id IS NOT NULL' : 'j.confirmed_by_id IS NOT NULL';
|
||
}
|
||
else
|
||
{
|
||
$where .= ($where!='WHERE ') ? ' AND j.confirmed_by_id IS NULL' : 'j.confirmed_by_id IS NULL';
|
||
}
|
||
}
|
||
|
||
$works = self::$db->query('SELECT j.id, concat(u.name,\' \',u.surname) as user_name, j.description, j.date, j.hours, j.km FROM jobs j
|
||
LEFT JOIN users u ON j.user_id = u.id '.$where);
|
freenetis/trunk/kohana/application/controllers/works.php | ||
---|---|---|
$limit_results = (int) $this->input->get('record_per_page');
|
||
|
||
// parameters control
|
||
$allowed_order_type = array('id','user_name','description','date','hours','km');
|
||
$allowed_order_type = array('id','user_name','description','date','hours','km','confirmed');
|
||
if (!in_array(strtolower($order_by), $allowed_order_type)) $order_by = 'id';
|
||
if (strtolower($order_by_direction) != 'asc' && strtolower($order_by_direction) != 'desc') $order_by_direction = 'asc';
|
||
|
||
... | ... | |
new Table_Form_Item('select','month','Month', $months),
|
||
"tr",
|
||
new Table_Form_Item('select','year','Year', $years),
|
||
"td",
|
||
"td",
|
||
new Table_Form_Item('select','confirmed','Confirmed', array(0 => '---', 1 => url_lang::lang('texts.Yes'), 2 => url_lang::lang('texts.No'))),
|
||
"tr",
|
||
"td",
|
||
new Table_Form_Item('submit','submit','Filter')
|
||
)
|
||
);
|
||
... | ... | |
$grid->order_field('description')->label(url_lang::lang('texts.Description'));
|
||
$grid->order_field('date')->label(url_lang::lang('texts.Date'));
|
||
$grid->order_field('hours')->label(url_lang::lang('texts.Hours'));
|
||
$grid->order_field('km')->label(url_lang::lang('texts.km'));
|
||
$grid->order_field('km')->label(url_lang::lang('texts.Km'));
|
||
$grid->order_field('confirmed')->label(url_lang::lang('texts.Confirmed'))->bool(array(url_lang::lang('texts.No'),url_lang::lang('texts.Yes')))->class('center');
|
||
|
||
if ($this->acl_check_view('Users_Controller','work'))
|
||
$grid->action_field('id')->label(url_lang::lang('texts.Show')) ->url(url_lang::base().'works/show') ->action(url_lang::lang('texts.Show'))->class('center');
|
||
|
||
|
||
$grid->datasource($works);
|
||
|
||
$view = new View('template');
|
||
... | ... | |
$this->form->submit('submit')->value(url_lang::lang('texts.Save'));
|
||
special::required_forge_style($this->form, ' *', 'required');
|
||
|
||
/**
|
||
* @todo validation and saving
|
||
*/
|
||
if ($this->form->validate())
|
||
{
|
||
$form_data = $this->form->as_array();
|
||
|
||
// creates new work
|
||
$work = new Job_Model();
|
||
$work->user_id = $form_data['user_id'];
|
||
$work->description = $form_data['description'];
|
||
$work->date = date('Y-m-d', $form_data['date']);
|
||
$work->hours = $form_data['hours'];
|
||
$work->km = $form_data['km'];
|
||
|
||
// success
|
||
if ($work->save())
|
||
{
|
||
$this->session->set_flash('message', url_lang::lang('texts.Work has been successfully added').'.');
|
||
}
|
||
url::redirect(url_lang::base().'works/show_all');
|
||
}
|
||
|
||
$view = new View('template');
|
||
$view->header = new View('base/header');
|
||
$view->header->title = url_lang::lang('texts.Add new work');
|
freenetis/trunk/kohana/application/libraries/Grid.php | ||
---|---|---|
protected $back_button = FALSE;
|
||
protected $base_uri;
|
||
protected $template = 'grid_template';
|
||
protected $title;
|
||
protected $title;
|
||
protected $label = NULL;
|
||
protected $use_paginator = true;
|
||
protected $use_selector = true;
|
||
... | ... | |
protected $order_by_direction;
|
||
protected $limit_results;
|
||
protected $record_per_page = NULL;
|
||
protected $url_array_ofset = 0;
|
||
protected $url_array_ofset = 0;
|
||
protected $query_string;
|
||
|
||
public function __construct($base_uri, $title, $config = NULL, $template = FALSE)
|
||
... | ... | |
}
|
||
$this->template = new View($this->template);
|
||
$this->template->base_uri = $this->base_uri = $base_uri;
|
||
$this->template->title = $title;
|
||
$this->template->title = $title;
|
||
$this->template->label = (isset($config['total_items'])) ? url_lang::lang('texts.Total items').': '.$config['total_items'] : '';
|
||
if (is_array($config)) $this->initialize($config);
|
||
}
|
||
... | ... | |
}
|
||
|
||
public function add_new_button($uri, $label, $separator = '')
|
||
{
|
||
{
|
||
$this->template->add_button = substr($this->template->add_button, 0, strlen($this->template->add_button)-2);
|
||
$this->template->add_button .= '| '.html::anchor($uri, $label).' |'.$separator;
|
||
$this->template->add_button .= '<span class="grid_button">| '.html::anchor($uri, $label).' |</span>'.$separator;
|
||
}
|
||
|
||
|
||
... | ... | |
'limit_results' => $this->limit_results,
|
||
'record_per_page' => $this->record_per_page,
|
||
'url_array_ofset' => $this->url_array_ofset,
|
||
'variables' => $this->variables,
|
||
'variables' => $this->variables,
|
||
'query_string' => $this->query_string,
|
||
'use_selector' => $this->use_selector,
|
||
'use_paginator' => $this->use_paginator
|
freenetis/trunk/kohana/application/views/grid_template.php | ||
---|---|---|
<?php echo ($title) ? '<h2>'.$title.'</h2><br />' : '' ?>
|
||
<?php echo ($label) ? $label.$separator : '' ?>
|
||
<?php if (isset($add_button)){ echo $add_button.$separator; }?>
|
||
|
||
<table class="main" cellspacing="0">
|
||
<tr>
|
||
<?php
|
||
foreach ($fields as $field) :
|
||
if ($field instanceof Order_Field) : ?>
|
||
<th>
|
||
<?php echo html::anchor($field->return_link,$field->label) ?>
|
||
</th>
|
||
<?php else : ?>
|
||
<th><?php echo $field->label?></th>
|
||
<?php endif; ?>
|
||
<?php endforeach; ?>
|
||
</tr>
|
||
<!-- table body -->
|
||
<?php $i = 0; ?>
|
||
<?php if (count($items)>0 && !is_numeric($items)) foreach ($items as $item) : ?>
|
||
<?php
|
||
if ($i % 2) $class_tr = ' class="even"';
|
||
else $class_tr = '';
|
||
$i++;
|
||
?>
|
||
<tr <?php echo $class_tr ?>>
|
||
<?php foreach ($fields as $field) :
|
||
if ($field->class != '') $class_td = ' class="'.$field->class.'"';
|
||
else $class_td = '';
|
||
if ($field instanceof Action_Field) :
|
||
$property = $field->name; ?>
|
||
<td <?php echo $class_td?>><?php echo html::anchor($field->url.'/'.$item->$property, $field->action, $field->script)?></td>
|
||
<?php elseif ($field->bool != ''): ?>
|
||
<td <?php echo $class_td?>><?php echo $field->bool[(bool)$item->$field] ?></td>
|
||
<?php else: ?>
|
||
<td <?php echo $class_td?>><?php echo trim($item->$field)!='' ? $item->$field : ' ' ?></td>
|
||
<?php endif;
|
||
endforeach; ?>
|
||
</tr>
|
||
<?php endforeach;
|
||
else echo '<tr><td colspan="'.count($fields).'">'.url_lang::lang('texts.There are no items yet.').'</td></tr>';
|
||
?>
|
||
|
||
<!-- table footer -->
|
||
</table>
|
||
<?php echo $paginator; ?>
|
||
<?php echo $selector; ?>
|
||
<?php echo ($label) ? $label.$separator : '' ?>
|
||
<?php if (isset($add_button)){ echo $add_button.$separator; }?>
|
||
|
||
<table class="main" cellspacing="0">
|
||
<tr>
|
||
<?php
|
||
foreach ($fields as $field) :
|
||
if ($field instanceof Order_Field) : ?>
|
||
<th>
|
||
<?php echo html::anchor($field->return_link,$field->label) ?>
|
||
</th>
|
||
<?php else : ?>
|
||
<th class="noprint"><?php echo $field->label?></th>
|
||
<?php endif; ?>
|
||
<?php endforeach; ?>
|
||
</tr>
|
||
<!-- table body -->
|
||
<?php $i = 0; ?>
|
||
<?php if (count($items)>0 && !is_numeric($items)) foreach ($items as $item) : ?>
|
||
<?php
|
||
if ($i % 2) $class_tr = ' class="even"';
|
||
else $class_tr = '';
|
||
$i++;
|
||
?>
|
||
<tr <?php echo $class_tr ?>>
|
||
<?php foreach ($fields as $field) :
|
||
if ($field->class != '') $class_td = ' class="'.$field->class.'"';
|
||
else $class_td = '';
|
||
if ($field instanceof Action_Field) :
|
||
$property = $field->name; ?>
|
||
<td <?php echo ' class="'.$field->class.' noprint"'?>><?php echo html::anchor($field->url.'/'.$item->$property, $field->action, $field->script)?></td>
|
||
<?php elseif ($field->bool != ''): ?>
|
||
<td <?php echo $class_td?>><?php echo $field->bool[(bool)$item->$field] ?></td>
|
||
<?php else: ?>
|
||
<td <?php echo $class_td?>><?php echo trim($item->$field)!='' ? $item->$field : ' ' ?></td>
|
||
<?php endif;
|
||
endforeach; ?>
|
||
</tr>
|
||
<?php endforeach;
|
||
else echo '<tr><td colspan="'.count($fields).'">'.url_lang::lang('texts.There are no items yet.').'</td></tr>';
|
||
?>
|
||
|
||
<!-- table footer -->
|
||
</table>
|
||
<?php echo $paginator; ?>
|
||
<?php echo $selector; ?>
|
freenetis/trunk/kohana/application/views/table_form.php | ||
---|---|---|
* - selection box
|
||
* - hidden fields
|
||
*/
|
||
echo form::open($uri, array('method'=>'get')) . "\n<table><tr>\n";
|
||
echo form::open($uri, array('method'=>'get')) . "\n<table class=\"table_form\"><tr>\n";
|
||
foreach ($form_def as $value) {
|
||
if (is_object($value))
|
||
{
|
||
|
||
if (is_object($value))
|
||
{
|
||
|
||
if (!isset($form_val[$value->name])) $val="";
|
||
else $val=$form_val[$value->name];
|
||
else $val=$form_val[$value->name];
|
||
|
||
switch ($value->type) {
|
||
case "submit":
|
||
... | ... | |
case "hidden":
|
||
echo " <input name='".$value->name."' value='".$value->values[0]."' type='hidden'>\n";
|
||
break;
|
||
case "select":
|
||
echo " <td><label for='".$value->name."'>".url_lang::lang('texts.'.$value->label).":</label></td><td><select name='".$value->name."'>\n";
|
||
foreach ($value->values as $key => $val_value)
|
||
{
|
||
echo " <option value='";
|
||
echo ($key>0) ? $key."'" : "'";
|
||
echo ($val==$key) ? ' selected' : '';
|
||
echo ">".$val_value."</option>\n";
|
||
}
|
||
echo " </select></td>\n";
|
||
case "select":
|
||
echo " <td><label for='".$value->name."'>".url_lang::lang('texts.'.$value->label).":</label></td><td><select name='".$value->name."'>\n";
|
||
foreach ($value->values as $key => $val_value)
|
||
{
|
||
echo " <option value='";
|
||
echo ($key>0) ? $key."'" : "'";
|
||
echo ($val==$key) ? ' selected' : '';
|
||
echo ">".$val_value."</option>\n";
|
||
}
|
||
echo " </select></td>\n";
|
||
break;
|
||
/**
|
||
* case "input":
|
||
... | ... | |
echo " <td><label for='".$value->name."'>".url_lang::lang("texts.".$value->label).":</label></td>\n"
|
||
." <td><input type='text' name='".$value->name."' value='$val'/></td>\n";
|
||
}
|
||
}
|
||
else
|
||
{
|
||
}
|
||
else
|
||
{
|
||
switch ($value) {
|
||
case "tr":
|
||
echo "</tr><tr>\n"; break;
|
||
... | ... | |
echo " <td></td>\n"; break;
|
||
default:
|
||
echo $value;
|
||
|
||
}
|
||
|
||
}
|
||
}
|
||
|
||
}
|
freenetis/trunk/kohana/application/views/base/header.php | ||
---|---|---|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||
<title><?php echo $title ?> | <?php echo $this->setting->title ?></title>
|
||
<?php echo html::link('media/images/favicon.ico', 'shorrcut icon', 'image/x-icon', FALSE); ?>
|
||
<?php echo html::stylesheet('media/css/style.css') ?>
|
||
<?php echo html::stylesheet('media/css/tables.css') ?>
|
||
<?php echo html::stylesheet('media/css/style.css', 'screen') ?>
|
||
<?php echo html::stylesheet('media/css/print.css', 'print') ?>
|
||
<?php echo html::stylesheet('media/css/tables.css', 'screen') ?>
|
||
<?php echo html::stylesheet('media/css/forms.css') ?>
|
||
<?php echo html::script('media/js/js', FALSE) ?>
|
||
<?php echo isset($other_styles) ? $other_styles : '' ?>
|
||
... | ... | |
<div class="status">
|
||
<span><?php echo $this->session->get('user_id', 0) ? url_lang::lang('texts.Logged user') : url_lang::lang('texts.Unlogged user') ?></span>
|
||
<?php echo special::create_language_flags(array('cs' => 'Česky', 'en' => 'English')) ?>
|
||
<a href="javascript: window.print();"><img src="<?php echo url::base()?>media/images/print.png" style="width: 28px; height: 28px;"></a>
|
||
<table>
|
||
<tr>
|
||
<td class="orange"><?php echo $this->session->get('user_id', 0) ? url_lang::lang('texts.Name').':' : '' ?></td>
|
Také k dispozici: Unified diff
Dalsi prace s pracemi :-). Pridan styl print.css pro nastylovani tisku...