small improvements
This commit is contained in:
parent
4e0a723ef0
commit
b03c6a42ae
10
index.php
10
index.php
@ -27,9 +27,9 @@
|
|||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<div class="ui center aligned inverted grid">
|
<div class="ui middle aligned center aligned inverted grid">
|
||||||
<div class="column" style="max-width: 450px;">
|
<div class="column" style="max-width: 450px;">
|
||||||
<h2 class="ui inverted teal fluid image header logo" style="margin-top: 15vh">
|
<h2 class="ui inverted teal fluid image header logo">
|
||||||
lan<?php include 'logo.svg'; ?>can
|
lan<?php include 'logo.svg'; ?>can
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
@ -68,9 +68,9 @@ Exemples: <?= $_SERVER['REMOTE_ADDR']; ?>/24 <?= $_SERVER['SERVER_NAME']; ?> 10.
|
|||||||
</form>
|
</form>
|
||||||
|
|
||||||
<?php if (file_exists($SCANSDIR)) { ?>
|
<?php if (file_exists($SCANSDIR)) { ?>
|
||||||
<div class="ui inverted segment">
|
<div class="ui left aligned stacked segment inverted">
|
||||||
<div class="ui inverted accordion">
|
<div class="ui inverted accordion">
|
||||||
<div class="title"><i class="dropdown icon"></i>Scans enregistrés</div>
|
<div class="title"><i class="dropdown icon"></i></i>Scans enregistrés</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<table class="ui very basic inverted compact table">
|
<table class="ui very basic inverted compact table">
|
||||||
<tbody>
|
<tbody>
|
||||||
@ -78,7 +78,7 @@ Exemples: <?= $_SERVER['REMOTE_ADDR']; ?>/24 <?= $_SERVER['SERVER_NAME']; ?> 10.
|
|||||||
foreach (scandir($SCANSDIR) as $filename) {
|
foreach (scandir($SCANSDIR) as $filename) {
|
||||||
if (substr($filename, -4) == '.xml') {
|
if (substr($filename, -4) == '.xml') {
|
||||||
$name = str_replace('!', '/', substr_replace($filename, '', -4));
|
$name = str_replace('!', '/', substr_replace($filename, '', -4));
|
||||||
echo "<tr><td class='selectable'><a href='$SCANSDIR/" . rawurlencode($filename) . "'>$name</a></td><td class='collapsing'><a href='rescan.php?name=$name' class='ui mini labelled button' onclick='rescan(this)'><i class='sync icon'></i>Rescanner</a></td></tr>\n";
|
echo "<tr><td class='selectable'><a href='$SCANSDIR/" . rawurlencode($filename) . "'><i class='tasks icon'></i>$name</a></td><td class='collapsing'><a href='rescan.php?name=$name' class='ui mini labelled button' onclick='rescan(this)'><i class='sync icon'></i>Rescanner</a></td></tr>\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
@ -9,7 +9,16 @@
|
|||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta http-equiv="refresh" content="300" />
|
<base href="{$base}" />
|
||||||
|
<meta http-equiv="refresh" content="300">
|
||||||
|
<xsl:attribute name="content">
|
||||||
|
<xsl:text>300</xsl:text>
|
||||||
|
<xsl:if test="$name">
|
||||||
|
<xsl:text>;URL=rescan.php?name=</xsl:text>
|
||||||
|
<xsl:value-of select="$name" />
|
||||||
|
</xsl:if>
|
||||||
|
</xsl:attribute>
|
||||||
|
</meta>
|
||||||
<title>
|
<title>
|
||||||
<xsl:text>lanScan - </xsl:text>
|
<xsl:text>lanScan - </xsl:text>
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
@ -21,7 +30,6 @@
|
|||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</title>
|
</title>
|
||||||
<base href="{$base}" />
|
|
||||||
<link rel="icon" href="favicon.ico" />
|
<link rel="icon" href="favicon.ico" />
|
||||||
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/fomantic-ui@2.9.3/dist/semantic.min.css" />
|
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/fomantic-ui@2.9.3/dist/semantic.min.css" />
|
||||||
<link href="https://cdn.jsdelivr.net/npm/@yaireo/tagify/dist/tagify.css" rel="stylesheet" type="text/css" />
|
<link href="https://cdn.jsdelivr.net/npm/@yaireo/tagify/dist/tagify.css" rel="stylesheet" type="text/css" />
|
||||||
|
@ -54,7 +54,9 @@
|
|||||||
<th>Nom</th>
|
<th>Nom</th>
|
||||||
<th>Constructeur</th>
|
<th>Constructeur</th>
|
||||||
<th class="six wide">Services</th>
|
<th class="six wide">Services</th>
|
||||||
<th style="width: min-width"></th>
|
<th style="width: min-width" title="Scan intensif">
|
||||||
|
<i class="search plus icon"></i>
|
||||||
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@ -142,7 +144,8 @@ $('.ui.dropdown').dropdown()
|
|||||||
</b>
|
</b>
|
||||||
<xsl:if test="substring-after(hostnames/hostname/@name, '.')">
|
<xsl:if test="substring-after(hostnames/hostname/@name, '.')">
|
||||||
<wbr />
|
<wbr />
|
||||||
. <xsl:value-of select="substring-after(hostnames/hostname/@name, '.')" />
|
<xsl:text>.</xsl:text>
|
||||||
|
<xsl:value-of select="substring-after(hostnames/hostname/@name, '.')" />
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user