aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Views
diff options
context:
space:
mode:
authorAntonio Gallo <tonicucoz@gmail.com>2011-05-21 17:02:31 +0000
committerAntonio Gallo <tonicucoz@gmail.com>2011-05-21 17:02:31 +0000
commit6a4e5eee22fe3a2b69cdadbdf0cb7b210b6783c7 (patch)
treebcde13f1e29b40fd92e6ff75580b08ddeb6f66bd /h-source/Application/Views
parent759f536ae8a94ec5cce173fd00855aa39f0dbf3a (diff)
h-source:improved search, now also the other_names entry is considered
Diffstat (limited to 'h-source/Application/Views')
-rw-r--r--h-source/Application/Views/Search/results.php17
-rw-r--r--h-source/Application/Views/header.php4
2 files changed, 11 insertions, 10 deletions
diff --git a/h-source/Application/Views/Search/results.php b/h-source/Application/Views/Search/results.php
index dfe0ab9..2bc14f4 100644
--- a/h-source/Application/Views/Search/results.php
+++ b/h-source/Application/Views/Search/results.php
@@ -38,14 +38,19 @@
?>
<div class="search_result_item">
- <div>
- <?php echo gtext("model name");?>: <b><a href="<?php echo $this->baseUrl."/".MyStrings::$reverse[$row['hardware']['type']]."/view/$lang/".$row['hardware']['id_hard']."/".encodeUrl($row['hardware']['model']);?>"><?php echo $row['hardware']['model'];?></a></b>
+ <div class="first_level">
+ <div class="search_result_item_left"><?php echo gtext("model name");?>:</div> <div class="search_result_item_right"><b><a href="<?php echo $this->baseUrl."/".MyStrings::$reverse[$row['hardware']['type']]."/view/$lang/".$row['hardware']['id_hard']."/".encodeUrl($row['hardware']['model']);?>"><?php echo $row['hardware']['model'];?></a></b></div>
</div>
- <div>
- <?php echo gtext("model type");?>: <b><?php echo $row['hardware']['type'];?></b>
+ <?php if ( strcmp($row['hardware']['other_names'],'') !== 0 ) { ?>
+ <div class="first_level">
+ <div class="search_result_item_left"><?php echo gtext("possible other names of the device");?>:</div> <div class="search_result_item_right"><b><?php echo nl2br($row['hardware']['other_names']);?></b></div>
</div>
- <div>
- <?php echo gtext("year of commercialization");?>: <b><?php echo $row['hardware']['comm_year'];?></b>
+ <?php } ?>
+ <div class="first_level">
+ <div class="search_result_item_left"><?php echo gtext("model type");?>: </div> <div class="search_result_item_right"><b><?php echo $row['hardware']['type'];?></b></div>
+ </div>
+ <div class="first_level">
+ <div class="search_result_item_left"><?php echo gtext("year of commercialization");?>: </div> <div class="search_result_item_right"><b><?php echo $row['hardware']['comm_year'];?></b></div>
</div>
</div>
diff --git a/h-source/Application/Views/header.php b/h-source/Application/Views/header.php
index e86006b..5247659 100644
--- a/h-source/Application/Views/header.php
+++ b/h-source/Application/Views/header.php
@@ -36,10 +36,6 @@ $currPos = $querySanitized ? $this->controller."/".$this->action : 'home/index';
<link rel="stylesheet" type="text/css" href="<?php echo $this->baseUrl?>/Public/Css/main.css">
<link rel="Shortcut Icon" href="<?php echo $this->baseUrl?>/Public/Img/tab_icon_2.ico" type="image/x-icon">
- <!--[if IE 6]>
- <link rel="stylesheet" type="text/css" href="<?php echo $this->baseUrl;?>/Public/Css/explorer6.css">
- <![endif]-->
-
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="<?php echo $this->baseUrl;?>/Public/Css/explorer7.css">
<![endif]-->