aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Views/Search
diff options
context:
space:
mode:
authorAntonio Gallo <tonicucoz@gmail.com>2011-02-03 13:22:46 +0000
committerAntonio Gallo <tonicucoz@gmail.com>2011-02-03 13:22:46 +0000
commit822005d36ad721c2203a5bff990210fa33afee34 (patch)
treec52fc101bf683a8e617de33839445befff691cf1 /h-source/Application/Views/Search
parent75be1868c47b7b9455eef65a7b1e33e447e61ee5 (diff)
improved search page
Diffstat (limited to 'h-source/Application/Views/Search')
-rw-r--r--h-source/Application/Views/Search/lspci_results.php91
1 files changed, 48 insertions, 43 deletions
diff --git a/h-source/Application/Views/Search/lspci_results.php b/h-source/Application/Views/Search/lspci_results.php
index 5d1dfa4..65323cf 100644
--- a/h-source/Application/Views/Search/lspci_results.php
+++ b/h-source/Application/Views/Search/lspci_results.php
@@ -39,56 +39,61 @@
</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 Hardware::getIconFromType($row['hardware']['type']);?>"> <span class="search_result_model_name"><?php echo "<b>".$row['hardware']['type']."</b> - <a href='".$this->baseUrl."/".Hardware::getControllerFromType($row['hardware']['type'])."/view/$lang/".$row['hardware']['id_hard']."/".encodeUrl($row['hardware']['model'])."'>".$row['hardware']['model']."</a>";?></span>
+ <div class="found_ext">
+ <?php if (count($table)>0) { ?>
+ <div class="search_item_found">
+ <?php echo gtext("The following devices has been found in the database");?>:
</div>
- <div class="lspci_item_found_compat">
- <?php
- switch ($row['hardware']['type'])
- {
- case 'wifi':
- 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>".gtext($row['hardware']['sound_card_works'])."</b>";
- break;
- }
- ?>
+ <?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 Hardware::getIconFromType($row['hardware']['type']);?>"> <span class="search_result_model_name"><?php echo "<b>".$row['hardware']['type']."</b> - <a href='".$this->baseUrl."/".Hardware::getControllerFromType($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>".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>".gtext($row['hardware']['sound_card_works'])."</b>";
+ break;
+ }
+ ?>
+ </div>
</div>
+ <?php } ?>
</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) { ?>
- <div class="lspci_item_not_found">
- <div class="lspci_item_found_model">
- <img align="top" class="catalogue_item_icon" src="<?php echo Hardware::getIconFromClass($device['classId']);?>"> <span class="search_result_model_name"><?php echo "<b>".Hardware::getTypeFromClass($device['classId'])."</b> - ".$device['deviceName'];?></span>
- <div class="lspci_item_found_compat">
- <ul>
- <li><b>vendor name:</b><?php echo $device['vendorName'];?></li>
- <li><b>vendorid:productid</b> code: <?php echo $device['vendorId'].":".$device['deviceId'];?></li>
- </ul>
+ <div class="found_ext">
+ <?php if (count($notFoundDevices)>0) { ?>
+ <div class="search_item_found">
+ <?php echo gtext("The following devices has not been found in the database");?>:<br />
+ <?php echo gtext("can you please insert them?");?>
+ </div>
+ <?php }?>
+
+ <?php foreach ($notFoundDevices as $device) { ?>
+ <div class="lspci_item_not_found">
+ <div class="lspci_item_found_model">
+ <img align="top" class="catalogue_item_icon" src="<?php echo Hardware::getIconFromClass($device['classId']);?>"> <span class="search_result_model_name"><?php echo "<b>".Hardware::getTypeFromClass($device['classId'])."</b> - ".$device['deviceName'];?></span>
+ <div class="lspci_item_found_compat">
+ <ul>
+ <li><b><?php echo gtext("vendor");?>:</b><?php echo $device['vendorName'];?></li>
+ <li><b><?php echo gtext("VendorID:ProductID code of the device");?></b>: <?php echo $device['vendorId'].":".$device['deviceId'];?></li>
+ </ul>
+ <a href="<?php echo Go::toHardwareType(Hardware::getTypeFromClass($device['classId']));?>"><img align="top" src="<?php echo $this->baseUrl;?>/Public/Img/Crystal/agt_forward.png"> insert</a>
+ </div>
</div>
</div>
+ <?php } ?>
</div>
- <?php } ?>
-
</div>
</div>