aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Views
diff options
context:
space:
mode:
Diffstat (limited to 'h-source/Application/Views')
-rw-r--r--h-source/Application/Views/Last/modifications.php2
-rw-r--r--h-source/Application/Views/header.php6
-rw-r--r--h-source/Application/Views/right.php18
3 files changed, 22 insertions, 4 deletions
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 @@
<div class="notebooks_viewall">
<ul class="page_history">
- <?php $hw = new HardwareModel(); ?>
- <?php $translations = array('insert'=>'inserted','update'=>'updated');?>
<?php foreach ($table as $row) { ?>
<li class="page_history_item"><?php echo gtext('the model');?> <a href="<?php echo Go::toHardwarePage($row['history']['id']);?>"><?php echo $hw->getTheModelName($row['history']['id']);?></a> <?php echo gtext('has been '.$translations[$row['history']['action']].' by');?> <?php echo getLinkToUser($u->getUser($row['history']['created_by']))?> <?php echo gtext('at');?> <?php echo smartDate($row['history']['creation_date']);?></li>
<?php } ?>
diff --git a/h-source/Application/Views/header.php b/h-source/Application/Views/header.php
index 6b20ccc..0c7a256 100644
--- a/h-source/Application/Views/header.php
+++ b/h-source/Application/Views/header.php
@@ -20,7 +20,11 @@
// You should have received a copy of the GNU General Public License
// along with h-source. If not, see <http://www.gnu.org/licenses/>.
?>
-<?php $u = new UsersModel();?>
+<?php
+$u = new UsersModel();
+$hw = new HardwareModel();
+$translations = array('insert'=>'inserted','update'=>'updated');
+?>
<head>
<title><?php echo $title;?></title>
diff --git a/h-source/Application/Views/right.php b/h-source/Application/Views/right.php
index 9684dc3..bc97fba 100644
--- a/h-source/Application/Views/right.php
+++ b/h-source/Application/Views/right.php
@@ -81,7 +81,7 @@
<?php } ?>
</div>
-
+
<div class="discover_hardware">
<a href="<?php echo $this->baseUrl."/help/index/$lang#discover-hardware";?>"><img src="<?php echo $this->baseUrl;?>/Public/Img/discover.png"></a>
</div>
@@ -89,6 +89,22 @@
<div class="download_database">
<a href="<?php echo $this->baseUrl."/download/index/$lang";?>"><img src="<?php echo $this->baseUrl;?>/Public/Img/download.png"></a>
</div>
+
+ <div class="last_modifications">
+ <div class="last_modifications_title">
+ <?php echo gtext('last modifications');?>
+ </div>
+ <ul>
+ <?php foreach ($lastModif as $row) { ?>
+ <li><a class="last_modifications_model" href="<?php echo Go::toHardwarePage($row['history']['id']);?>"><?php echo $hw->getTheModelName($row['history']['id']);?></a> <?php echo gtext('by');?> <?php echo getLinkToUser($u->getUser($row['history']['created_by']))?></li>
+ <?php } ?>
+ </ul>
+ <div class="last_modifications_all">
+ <span>
+ <a href="<?php echo $this->baseUrl."/last/modifications/$lang";?>"><?php echo gtext('watch all modifications');?></a>
+ </span>
+ </div>
+ </div>
<div class="statistics_ext_box">
<div class="statistics_int_title">