1
0

Move the CSS from the view file into a seperate .css file.

This commit is contained in:
rWatcher 2009-11-17 15:44:29 +08:00 committed by Bharat Mediratta
parent 72a1019256
commit 59648ce716
3 changed files with 9 additions and 11 deletions

View File

@ -32,6 +32,7 @@ class CalendarView_Controller extends Controller {
// Draw the page.
$template = new Theme_View("page.html", "CalendarView");
$template->css("calendarview_calendar.css");
$template->page_title = t("Gallery :: Calendar");
$template->content = new View("calendarview_year.html");
$template->content->calendar_year = $display_year;

View File

@ -0,0 +1,8 @@
table.calendar { text-align: center; width:100px; }
table.calendar caption { font-size: 1.5em; padding: 0.2em; }
table.calendar th, table.calendar td { padding: 0.2em; background: #fff; border: 0; }
table.calendar td:hover { background: #ddf; }
table.calendar td.prev-next { background: #ccc; color: #999; }
table.calendar td.today { color: #800; }
#cal_user, #cal_year, #g-view-calendar-form li { display: inline; }
#SaveSettings { float: right; }

View File

@ -1,15 +1,4 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<style type="text/css">
table.calendar { text-align: center; width:100px; }
table.calendar caption { font-size: 1.5em; padding: 0.2em; }
table.calendar th, table.calendar td { padding: 0.2em; background: #fff; border: 0; }
table.calendar td:hover { background: #ddf; }
table.calendar td.prev-next { background: #ccc; color: #999; }
table.calendar td.today { color: #800; }
select, li {
display: inline;
}
</style>
<h1 align="center"><?=$calendar_year ?></h1>
<?= $calendar_user_year_form ?>