diff options
Diffstat (limited to 'h-source')
-rw-r--r-- | h-source/Application/Include/languages.php | 2 | ||||
-rw-r--r-- | h-source/Application/Views/Search/results.php | 20 | ||||
-rw-r--r-- | h-source/Public/Css/main.css | 13 |
3 files changed, 32 insertions, 3 deletions
diff --git a/h-source/Application/Include/languages.php b/h-source/Application/Include/languages.php index 406fad0..d810cad 100644 --- a/h-source/Application/Include/languages.php +++ b/h-source/Application/Include/languages.php @@ -299,6 +299,8 @@ class Lang /*0251*/"No sd card readers found" => "Non รจ stato trovato alcun lettore di schede sd", /*0252*/"Sd card readers" => "Lettori di schede sd", /*0253*/"Download the xml file of all the <b>sd card readers</b> in the database" => "Scarica il file xml di tutti i <b>lettori di schede sd</b> presenti nel database", + /*0254*/"There are no devices in the database with the vendorid:productid code specified by you." => "Non ci sono dispositivi nel database con il codice vendorid:productid da te specificato", + /*0255*/"Would you like to add it to the database?" => "Vorresti inserirlo nel database?" ), 'es' => array ( 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> diff --git a/h-source/Public/Css/main.css b/h-source/Public/Css/main.css index f438227..a7c658e 100644 --- a/h-source/Public/Css/main.css +++ b/h-source/Public/Css/main.css @@ -1940,6 +1940,19 @@ div#description_tabs_content padding:6px 8px; margin:20px 0; } +.lspci_item_not_found_inner +{ + margin:10px 0 5px 0; + font-weight:bold; +} +.insert_suggestion_list +{ + list-style-type:none; +} +.insert_suggestion_list li +{ + margin:10px 0; +} /* Start - temporarily added due to transformation of help pages |