aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Views/Search/results.php
diff options
context:
space:
mode:
Diffstat (limited to 'h-source/Application/Views/Search/results.php')
-rw-r--r--h-source/Application/Views/Search/results.php17
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>