From 323d1b376423f09d758b381defcf37b26d582a7a Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Sun, 13 Feb 2011 17:30:05 +0000 Subject: improved history --- h-source/Application/Controllers/BaseController.php | 8 +++++++- h-source/Application/Include/languages.php | 3 +++ h-source/Application/Views/Last/modifications.php | 2 -- h-source/Application/Views/header.php | 6 +++++- h-source/Application/Views/right.php | 18 +++++++++++++++++- 5 files changed, 32 insertions(+), 5 deletions(-) (limited to 'h-source/Application') diff --git a/h-source/Application/Controllers/BaseController.php b/h-source/Application/Controllers/BaseController.php index db85405..7eb4236 100644 --- a/h-source/Application/Controllers/BaseController.php +++ b/h-source/Application/Controllers/BaseController.php @@ -46,6 +46,7 @@ class BaseController extends Controller header("Cache-Control: no-cache"); $this->model('BoxesModel'); + $this->model('HistoryModel'); $this->load('header'); $this->load('footer','last'); @@ -116,7 +117,12 @@ class BaseController extends Controller $data['language_links'] = $this->buildLanguageLinks($this->lang); -// print_r($this->_queryString); + $data['lastModif'] = $this->m['HistoryModel'] + ->select() + ->where(array('type'=>'wiki','gr'=>'registered')) + ->orderBy('id_history desc') + ->limit(5) + ->send(); $this->append($data); $this->load('right'); diff --git a/h-source/Application/Include/languages.php b/h-source/Application/Include/languages.php index 40014b0..9b0d9ab 100644 --- a/h-source/Application/Include/languages.php +++ b/h-source/Application/Include/languages.php @@ -173,6 +173,8 @@ class Lang "has been inserted by" => "è stato inserito da", "has been updated by" => "è stato modificato da", "at" => "alle ore", + "last modifications" => "ultime modifiche", + "watch all modifications" => "guarda tutte le modifiche", ), 'es' => array ( @@ -474,6 +476,7 @@ class Go $urls = getUrlsFromIdHard($clean['idHard']); return $urls['urlView']; } + } class MyStrings diff --git a/h-source/Application/Views/Last/modifications.php b/h-source/Application/Views/Last/modifications.php index 1c8e8ea..8683615 100644 --- a/h-source/Application/Views/Last/modifications.php +++ b/h-source/Application/Views/Last/modifications.php @@ -32,8 +32,6 @@
- +
">
@@ -89,6 +89,22 @@
">
+ +
+
+ +
+ +
+ + "> + +
+
-- cgit v1.2.3