merge right menu items
This commit is contained in:
		| @ -88,18 +88,12 @@ Exemples: 192.168.1.0/24 scanme.nmap.org 10.0-255.0-255.1-254"/> | |||||||
|                             <input type="hidden" name="compareWith" value="{$nextCompareWith}"/> |                             <input type="hidden" name="compareWith" value="{$nextCompareWith}"/> | ||||||
|                             <input type="hidden" name="refreshPeriod" value="{$refreshPeriod}"/> |                             <input type="hidden" name="refreshPeriod" value="{$refreshPeriod}"/> | ||||||
|                             <button style="display: none;" type="submit" formmethod="get" formaction="{$basedir}/scan.php"></button> |                             <button style="display: none;" type="submit" formmethod="get" formaction="{$basedir}/scan.php"></button> | ||||||
|                         </div> |  | ||||||
|                         <div class="item"> |  | ||||||
|                             <button class="ui teal icon submit button" type="submit" formmethod="get" formaction="{$basedir}/options.php" onclick="targetsInput.required=false"> |                             <button class="ui teal icon submit button" type="submit" formmethod="get" formaction="{$basedir}/options.php" onclick="targetsInput.required=false"> | ||||||
|                                 <i class="sliders horizontal icon"></i> |                                 <i class="sliders horizontal icon"></i> | ||||||
|                             </button> |                             </button> | ||||||
|                         </div> |  | ||||||
|                         <div class="item"> |  | ||||||
|                             <button class="ui teal icon submit button" type="submit" formmethod="get" formaction="{$basedir}/scan.php" onclick="this.getElementsByTagName('i')[0].className = 'loading spinner icon'"> |                             <button class="ui teal icon submit button" type="submit" formmethod="get" formaction="{$basedir}/scan.php" onclick="this.getElementsByTagName('i')[0].className = 'loading spinner icon'"> | ||||||
|                                 <i class="sync icon"></i> |                                 <i class="sync icon"></i> | ||||||
|                             </button> |                             </button> | ||||||
|                         </div> |  | ||||||
|                         <div class="item"> |  | ||||||
|                             <a class="ui teal icon button" href="https://nmap.org/man/fr/index.html" target="_blank"> |                             <a class="ui teal icon button" href="https://nmap.org/man/fr/index.html" target="_blank"> | ||||||
|                                 <i class="question circle icon"></i> |                                 <i class="question circle icon"></i> | ||||||
|                             </a> |                             </a> | ||||||
|  | |||||||
| @ -33,13 +33,9 @@ Exemples: <?= $_SERVER['REMOTE_ADDR']; ?>/24 <?= $_SERVER['SERVER_NAME']; ?> 10. | |||||||
|             <i class="satellite dish icon"></i> |             <i class="satellite dish icon"></i> | ||||||
|           </div> |           </div> | ||||||
|           <button style="display: none;" type="submit" formmethod="get" formaction="scan.php"></button> |           <button style="display: none;" type="submit" formmethod="get" formaction="scan.php"></button> | ||||||
|       </div> |  | ||||||
|       <div class="item"> |  | ||||||
|           <button class="ui teal icon submit button" type="submit" formmethod="get" formaction="options.php" onclick="targetsInput.required=false"> |           <button class="ui teal icon submit button" type="submit" formmethod="get" formaction="options.php" onclick="targetsInput.required=false"> | ||||||
|               <i class="sliders horizontal icon"></i> |               <i class="sliders horizontal icon"></i> | ||||||
|           </button> |           </button> | ||||||
|       </div> |  | ||||||
|       <div class="item"> |  | ||||||
|         <a class="ui teal icon button" href="https://nmap.org/man/fr/index.html" target="_blank"> |         <a class="ui teal icon button" href="https://nmap.org/man/fr/index.html" target="_blank"> | ||||||
|           <i class="question circle icon"></i> |           <i class="question circle icon"></i> | ||||||
|         </a> |         </a> | ||||||
|  | |||||||
							
								
								
									
										29
									
								
								lanScan.xsl
									
									
									
									
									
								
							
							
						
						
									
										29
									
								
								lanScan.xsl
									
									
									
									
									
								
							| @ -92,18 +92,12 @@ Exemples: 192.168.1.0/24 scanme.nmap.org 10.0-255.0-255.1-254"/> | |||||||
|                             <input type="hidden" name="compareWith" value="{$nextCompareWith}"/> |                             <input type="hidden" name="compareWith" value="{$nextCompareWith}"/> | ||||||
|                             <input type="hidden" name="refreshPeriod" value="{$refreshPeriod}"/> |                             <input type="hidden" name="refreshPeriod" value="{$refreshPeriod}"/> | ||||||
|                             <button style="display: none;" type="submit" formmethod="get" formaction="{$basedir}/scan.php"></button> |                             <button style="display: none;" type="submit" formmethod="get" formaction="{$basedir}/scan.php"></button> | ||||||
|                         </div> |  | ||||||
|                         <div class="item"> |  | ||||||
|                             <button class="ui teal icon submit button" type="submit" formmethod="get" formaction="{$basedir}/options.php" onclick="targetsInput.required=false"> |                             <button class="ui teal icon submit button" type="submit" formmethod="get" formaction="{$basedir}/options.php" onclick="targetsInput.required=false"> | ||||||
|                                 <i class="sliders horizontal icon"></i> |                                 <i class="sliders horizontal icon"></i> | ||||||
|                             </button> |                             </button> | ||||||
|                         </div> |  | ||||||
|                         <div class="item"> |  | ||||||
|                             <button class="ui teal icon submit button" type="submit" formmethod="get" formaction="{$basedir}/scan.php" onclick="this.getElementsByTagName('i')[0].className = 'loading spinner icon'"> |                             <button class="ui teal icon submit button" type="submit" formmethod="get" formaction="{$basedir}/scan.php" onclick="this.getElementsByTagName('i')[0].className = 'loading spinner icon'"> | ||||||
|                                 <i class="sync icon"></i> |                                 <i class="sync icon"></i> | ||||||
|                             </button> |                             </button> | ||||||
|                         </div> |  | ||||||
|                         <div class="item"> |  | ||||||
|                             <a class="ui teal icon button" href="https://nmap.org/man/fr/index.html" target="_blank"> |                             <a class="ui teal icon button" href="https://nmap.org/man/fr/index.html" target="_blank"> | ||||||
|                                 <i class="question circle icon"></i> |                                 <i class="question circle icon"></i> | ||||||
|                             </a> |                             </a> | ||||||
| @ -121,7 +115,7 @@ Exemples: 192.168.1.0/24 scanme.nmap.org 10.0-255.0-255.1-254"/> | |||||||
|                                 <th>Adresse IP</th> |                                 <th>Adresse IP</th> | ||||||
|                                 <th>Nom</th> |                                 <th>Nom</th> | ||||||
|                                 <th>Fabricant</th> |                                 <th>Fabricant</th> | ||||||
|                                 <th class="six wide">Services</th> |                                 <th class="eight wide">Services</th> | ||||||
|                                 <th>Scanner les services</th> |                                 <th>Scanner les services</th> | ||||||
|                             </tr> |                             </tr> | ||||||
|                         </thead> |                         </thead> | ||||||
| @ -194,7 +188,7 @@ $.toast({ | |||||||
| }) | }) | ||||||
|                         </xsl:if> |                         </xsl:if> | ||||||
|  |  | ||||||
| lanScanForm.onsubmit = (event) => { | lanScanForm.onsubmit = function(event) { | ||||||
|     targetsInputDiv.classList.add('loading') |     targetsInputDiv.classList.add('loading') | ||||||
|     $.toast({ |     $.toast({ | ||||||
|         title: 'Scan en cours...', |         title: 'Scan en cours...', | ||||||
| @ -206,6 +200,19 @@ lanScanForm.onsubmit = (event) => { | |||||||
|         position: 'bottom right', |         position: 'bottom right', | ||||||
|     }) |     }) | ||||||
| } | } | ||||||
|  |  | ||||||
|  | function hostScanning(link) { | ||||||
|  |     link.getElementsByTagName('i')[0].className = 'loading spinner icon' | ||||||
|  |     $.toast({ | ||||||
|  |         title: 'Scan en cours...', | ||||||
|  |         message: 'Merci de patienter', | ||||||
|  |         class: 'info', | ||||||
|  |         showIcon: 'satellite dish', | ||||||
|  |         displayTime: 0, | ||||||
|  |         closeIcon: true, | ||||||
|  |         position: 'bottom right', | ||||||
|  |     }) | ||||||
|  | } | ||||||
|                 </script> |                 </script> | ||||||
|             </body> |             </body> | ||||||
|         </html> |         </html> | ||||||
| @ -267,8 +274,8 @@ lanScanForm.onsubmit = (event) => { | |||||||
|                 </xsl:apply-templates> |                 </xsl:apply-templates> | ||||||
|             </td> |             </td> | ||||||
|             <td> |             <td> | ||||||
|                 <div class="ui buttons"> |                 <div class="ui mini right labeled button"> | ||||||
|                     <a class="ui mini icon labeled teal button" onclick="this.getElementsByTagName('i')[0].className = 'loading spinner icon'"> |                     <a class="ui mini icon teal button" onclick="hostScanning(this)"> | ||||||
|                         <xsl:attribute name="href"> |                         <xsl:attribute name="href"> | ||||||
|                             <xsl:value-of select="$basedir"/> |                             <xsl:value-of select="$basedir"/> | ||||||
|                             <xsl:text>/scan.php?host=</xsl:text> |                             <xsl:text>/scan.php?host=</xsl:text> | ||||||
| @ -277,7 +284,7 @@ lanScanForm.onsubmit = (event) => { | |||||||
|                         <i class="satellite dish icon"></i> |                         <i class="satellite dish icon"></i> | ||||||
|                         <xsl:text> Services</xsl:text> |                         <xsl:text> Services</xsl:text> | ||||||
|                     </a> |                     </a> | ||||||
|                     <a class="ui mini icon teal button"> |                     <a class="ui mini icon teal label"> | ||||||
|                         <xsl:attribute name="href"> |                         <xsl:attribute name="href"> | ||||||
|                             <xsl:value-of select="$basedir"/> |                             <xsl:value-of select="$basedir"/> | ||||||
|                             <xsl:text>/options.php?host=</xsl:text> |                             <xsl:text>/options.php?host=</xsl:text> | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user