diff options
Diffstat (limited to 'h-source/Application/Views')
-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> |