Validation HTML
This commit is contained in:
60
admin.php
60
admin.php
@@ -1,7 +1,9 @@
|
||||
<?php require ("3-protect.php");
|
||||
include 'localize.php';
|
||||
include 'i18n_setup.php';
|
||||
/*include 'localize.php';
|
||||
$domain = 'sentier';
|
||||
localize($domain);
|
||||
*/
|
||||
include 'functions.php';
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
@@ -9,25 +11,28 @@
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="description" content="Sur le sentier: pages administration">
|
||||
<title><?php echo gettext('Logged in'); ?></title>
|
||||
|
||||
<meta name="msapplication-TileColor" content="#2b5797">
|
||||
<meta name="msapplication-config" content="/icons/browserconfig.xml">
|
||||
<meta name="theme-color" content="#ffffff">
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/icons/apple-touch-icon.png">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="/icons/favicon-32x32.png">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="/icons/favicon-16x16.png">
|
||||
<link rel="manifest" href="/icons/site.webmanifest">
|
||||
<link rel="shortcut icon" href="/icons/favicon.ico">
|
||||
|
||||
<link rel="stylesheet" href="css/sls.css" />
|
||||
<!--link rel='stylesheet' href='css/lc_lightbox.min.css' />
|
||||
<link rel='stylesheet' href='css/open_close_fx.css' />
|
||||
<link rel='stylesheet' href='css/minimal.css' /-->
|
||||
<link rel="stylesheet" href="css/sls.css">
|
||||
|
||||
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
|
||||
|
||||
<!--link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script-->
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<h1><?php echo gettext('Status: ') . $_SESSION["user"] . gettext(' logged in'); ?></h1>
|
||||
|
||||
|
||||
|
||||
<!--div class="center-flex"-->
|
||||
@@ -36,24 +41,23 @@
|
||||
$base = 'db_photo.sqlite3';
|
||||
|
||||
if (file_exists($base)) {
|
||||
//echo '<div class="base">Base SQLite: ' . $base . ' !</div>';
|
||||
echo '<h3>Base SQLite: ' . __DIR__ . '/' . $base . ' !</h3>';
|
||||
}
|
||||
?>
|
||||
|
||||
<nav>
|
||||
<a class="kaki" href="../edit_bdd.php">Edit</a>
|
||||
<a class="kaki" href="../insert_bdd.php">Insert</a>
|
||||
<a class="kaki" href="../modify_bdd.php">Modify</a>
|
||||
<a class="kaki" href="../view_bdd.php">View (Ajax)</a>
|
||||
<a class="kaki" href="../view_bdd2.php">View</a>
|
||||
<a class="kaki" href="../clean_bdd.php">Clean</a>
|
||||
<a class="kaki" href="../edit_bdd.php"><?php echo gettext("Edit"); ?></a>
|
||||
<a class="kaki" href="../insert_bdd.php"><?php echo gettext("Insert"); ?></a>
|
||||
<a class="kaki" href="../modify_bdd.php"><?php echo gettext("Modify"); ?></a>
|
||||
<a class="kaki" href="../view_bdd.php"><?php echo gettext("View (Ajax)"); ?></a>
|
||||
<a class="kaki" href="../view_bdd2.php"><?php echo gettext("View"); ?></a>
|
||||
<a class="kaki" href="../clean_bdd.php"><?php echo gettext("Clean"); ?></a>
|
||||
</nav>
|
||||
|
||||
<!-- (B1) LOGOUT FORM -->
|
||||
|
||||
<p></p>
|
||||
<nav><a class="red" href="4-logout.php" role="button">Log out</a></nav>
|
||||
<nav><a class="red" href="4-logout.php" role="button"><?php echo gettext("Log out"); ?></a></nav>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -62,10 +66,20 @@
|
||||
<input type="submit" value="Log Out">
|
||||
</form-->
|
||||
|
||||
<?php
|
||||
//$_SESSION["user"] != ""
|
||||
?>
|
||||
|
||||
<div class="indexForm">
|
||||
<form name="langSelect" action="<?php echo htmlentities($_SERVER['PHP_SELF']); ?>" method="post" >
|
||||
<select name="lang" id="lang" class="mySelect">
|
||||
<option value="">Language</option>
|
||||
<option value="de_DE">German</option>
|
||||
<option value="en_US">English</option>
|
||||
<option value="es_ES">Spanish</option>
|
||||
<option value="fr_FR">French</option>
|
||||
</select>
|
||||
<button type="submit" class="myButton">Ok</button>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<p class="navPage"><a href="index.php" title="<?php echo gettext("Home"); ?>"><?php echo gettext("Home"); ?></a> | <a href="photo-du-mois.php" title="<?php echo gettext("Picture of the month"); ?>"><?php echo gettext("Picture of the month"); ?></a> | <a href="maps.php" title="<?php echo gettext("Maps"); ?>"><?php echo gettext("Maps"); ?></a> | <a href="admin.php" title="<?php echo gettext("Admin page"); ?>"><?php echo gettext("Admin page"); ?></a></p>
|
||||
|
||||
<p><em><small>© 2013-<?php echo date('Y'); ?> sur-le-sentier.fr</small></em></p>
|
||||
|
||||
Reference in New Issue
Block a user