<head>
  <meta charset="utf-8">

<meta name="viewport" content="width=device-width">
<meta name="mobile-web-app-capable" content="yes">
<link rel="icon" sizes="192x192" href="../img/cloud3.png">



  <meta name="theme-color" content="#563d7c">
  <title>SantanaSoft - POS</title>
  <link rel="icon" sizes="192x192" href="../imagenes/mon.png">
<!--link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css"-->
<link rel="stylesheet" href="vendor/fa/css/all.min.css">
<link rel="stylesheet" type="text/css" href="src/bootstrap.min.css">


<link rel="stylesheet" type="text/css" href="src/datatable.css">
<!--link rel="stylesheet" type="text/css" href="../src/bootstrap-theme.css"--->
 <link href="vendor/toastr/toastr.css" rel="stylesheet"/>
<script src="src/jquery.js"></script>
<script src="src/bootstrap.min.js"></script>

<script src="src/datatables.js"></script>
<script src="src/bootstrap_datatable.js"></script>

<script type="text/javascript" src="../js/savy.js"></script>
  <script src="js/numeral.js"></script>
        <script src="js/moment.js"></script>
        <script src="js/fechas.js"></script>

<script src="vendor/alertify.min.js"></script>
  <script src="vendor/toastr/toastr.min.js"></script>
<link rel="stylesheet" href="vendor/alertify.min.css" />


</head>
<br><br>
<div class="container">
<form name="frm" action="set_cookie.php" method="POST">
    <input type="text" name="db" id="db" onKeyUp="saveDb()" class="form-control"><br>
    <b>La base de datos actual es:</b> <span class="text-primary"><?php echo $_COOKIE["db"]?></span>
    <br>
    <hr>
    <button class="btn btn-success" name="btn-save"><i class="fa fa-tools"></i> Configurar Base de datos</button>

</div>
<?php 
include_once("footer.php");
?>
<script>
    $("#db").val(localStorage.getItem("db"));
    
    function saveDb(){
        localStorage.setItem("db", $("#db").val())
    }
</script>

</form>

