diff options
author | Antonio Gallo <tonicucoz@gmail.com> | 2011-10-02 18:13:17 +0000 |
---|---|---|
committer | Antonio Gallo <tonicucoz@gmail.com> | 2011-10-02 18:13:17 +0000 |
commit | f2a001783a54fbafaee627180b8279ed9c85e5f3 (patch) | |
tree | 7309f57df3152b359d716dc129c29e47f10ac353 /h-source/Application/Views/Search/results.php | |
parent | a3161064a637e80ad04aeee2994001f6cee4a372 (diff) |
when a device is not found the system suggest to insert it - sudoman issue
Diffstat (limited to 'h-source/Application/Views/Search/results.php')
-rw-r--r-- | h-source/Application/Views/Search/results.php | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/h-source/Application/Views/Search/results.php b/h-source/Application/Views/Search/results.php index 2bc14f4..1b7fe82 100644 --- a/h-source/Application/Views/Search/results.php +++ b/h-source/Application/Views/Search/results.php @@ -57,9 +57,23 @@ <?php } ?> <?php if ($count === 0) { ?> - <div class="search_result_item"> - <?php echo gtext("No devices found");?>.. - </div> + <?php if (strcmp($this->action,'pciid') === 0) { ?> + + <div class="lspci_item_not_found"> + <?php echo gtext("There are no devices in the database with the vendorid:productid code specified by you.");?> + <div class="lspci_item_not_found_inner"><?php echo gtext("Would you like to add it to the database?");?></div> + <ul class="insert_suggestion_list"> + <?php foreach ($stat as $type => $number) { ?> + <li><img align="top" class="catalogue_item_icon" src="<?php echo Hardware::getIconFromType($type);?>"> <a href="<?php echo $this->baseUrl."/".Hardware::getControllerFromType($type)."/insert/$lang/$token";?>"><?php echo $type;?></a></li> + <?php } ?> + </ul> + </div> + + <?php } else { ?> + <div class="search_result_item"> + <?php echo gtext("No devices found");?>. + </div> + <?php } ?> <?php } ?> </div> |