diff options
author | Antonio Gallo <tonicucoz@gmail.com> | 2011-05-21 17:02:31 +0000 |
---|---|---|
committer | Antonio Gallo <tonicucoz@gmail.com> | 2011-05-21 17:02:31 +0000 |
commit | 6a4e5eee22fe3a2b69cdadbdf0cb7b210b6783c7 (patch) | |
tree | bcde13f1e29b40fd92e6ff75580b08ddeb6f66bd /h-source/Application/Views/Search/results.php | |
parent | 759f536ae8a94ec5cce173fd00855aa39f0dbf3a (diff) |
h-source:improved search, now also the other_names entry is considered
Diffstat (limited to 'h-source/Application/Views/Search/results.php')
-rw-r--r-- | h-source/Application/Views/Search/results.php | 17 |
1 files changed, 11 insertions, 6 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> |