merge right menu items
This commit is contained in:
parent
f8f1183fe7
commit
95d509e1b1
@ -88,20 +88,14 @@ 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>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
@ -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>
|
||||||
|
35
lanScan.xsl
35
lanScan.xsl
@ -92,20 +92,14 @@ 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>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
@ -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>
|
||||||
@ -132,7 +126,7 @@ Exemples: 192.168.1.0/24 scanme.nmap.org 10.0-255.0-255.1-254"/>
|
|||||||
</main>
|
</main>
|
||||||
|
|
||||||
<footer class="ui footer segment">
|
<footer class="ui footer segment">
|
||||||
lanScan est basé sur <a href="https://nmap.org/" target="_blank">Nmap</a>
|
lanScan est basé sur <a href="https://nmap.org/" target="_blank">Nmap</a>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@ -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,17 +274,17 @@ 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>
|
||||||
<xsl:value-of select="$hostAddress"/>
|
<xsl:value-of select="$hostAddress"/>
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<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