aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Views/Search
diff options
context:
space:
mode:
authorAntonio Gallo <tonicucoz@gmail.com>2011-02-02 14:29:55 +0000
committerAntonio Gallo <tonicucoz@gmail.com>2011-02-02 14:29:55 +0000
commit10bbe357616c36e86ae3c3c7a26840b0c1973756 (patch)
treef0d588a10213ee9b91e12af0592112c1964e3755 /h-source/Application/Views/Search
parent662e663843729d20aef25743f1d3f58adf6865b5 (diff)
improved search
Diffstat (limited to 'h-source/Application/Views/Search')
-rw-r--r--h-source/Application/Views/Search/lspci_results.php22
1 files changed, 19 insertions, 3 deletions
diff --git a/h-source/Application/Views/Search/lspci_results.php b/h-source/Application/Views/Search/lspci_results.php
index a23d505..57e728c 100644
--- a/h-source/Application/Views/Search/lspci_results.php
+++ b/h-source/Application/Views/Search/lspci_results.php
@@ -38,30 +38,46 @@
<a href="<?php echo $this->baseUrl."/search/form/$lang";?>"><img class="top_left_images" src="<?php echo $this->baseUrl;?>/Public/Img/back-60.png"></a>
</div>
<?php } ?>
+
+ <?php if (count($table)>0) { ?>
+ <div class="search_item_found">
+ <?php echo gtext("The following devices has been found in the database");?>:
+ </div>
+ <?php }?>
<?php foreach ($table as $row) { ?>
<div class="lspci_item_found">
<div class="lspci_item_found_model">
- <img align="top" class="catalogue_item_icon" src="<?php echo MyStrings::getHardIcon($row['hardware']['type']);?>"> <span class="search_result_model_name"><?php echo "<b>".$row['hardware']['type']."</b> - ".$row['hardware']['model'];?></span>
+ <img align="top" class="catalogue_item_icon" src="<?php echo MyStrings::getHardIcon($row['hardware']['type']);?>"> <span class="search_result_model_name"><?php echo "<b>".$row['hardware']['type']."</b> - <a href='".$this->baseUrl."/".MyStrings::$reverse[$row['hardware']['type']]."/view/$lang/".$row['hardware']['id_hard']."/".encodeUrl($row['hardware']['model'])."'>".$row['hardware']['model']."</a>";?></span>
</div>
<div class="lspci_item_found_compat">
<?php
switch ($row['hardware']['type'])
{
case 'wifi':
- echo gtext("does it work with free software?"). " <b>".$row['hardware']['wifi_works']."</b>";
+ echo gtext("does it work with free software?"). " <b>".gtext($row['hardware']['wifi_works'])."</b>";
break;
case 'videocard':
echo gtext("does it work with free software?"). " <b>".gtext(Videocard::$videoReverse[$row['hardware']['video_card_works']])."</b>";
break;
case 'soundcard':
- echo gtext("does it work with free software?"). " <b>".$row['hardware']['sound_card_works']."</b>";
+ echo gtext("does it work with free software?"). " <b>".gtext($row['hardware']['sound_card_works'])."</b>";
break;
}
?>
</div>
</div>
<?php } ?>
+
+ <?php if (count($notFoundDevices)>0) { ?>
+ <div class="search_item_found">
+ <?php echo gtext("The following devices has not been found in the database");?>:
+ </div>
+ <?php }?>
+
+ <?php foreach ($notFoundDevices as $device) { ?>
+
+ <?php } ?>
</div>