<? $error=$_GET['error'];$msn=$_GET['msn']; 
$spe=$_SESSION['perfil'];?>
<!DOCTYPE html>
<html lang="<?= $lang; ?>">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <link rel="manifest" href="/manifest.json">
    <meta name="theme-color" content="#1976d2">

  <meta name="author" content="<?= $autor; ?>">
  <meta name="description" content="<?= $descripcion; ?>">
  <meta http-equiv="expires" content="0">
  <meta http-equiv="last-Modified" content="0">
  <meta http-equiv="cache-Control" content="no-cache, mustrevalidate">
  <meta http-equiv="pragma" content="no-cache">
  <title><?= $titlepage.' - '.$appname; ?></title>
  <!-- Bootstrap core CSS-->
  <link href="<?php echo $r; ?>vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
  <!-- Custom fonts for this template-->
  <link href="<?php echo $r; ?>vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
  <link href="<?php echo $r; ?>vendor/icomoon/style.css" rel="stylesheet" type="text/css">
  <!-- Page level plugin CSS-->
  <link href="<?php echo $r; ?>vendor/datatables/dataTables.bootstrap4.css" rel="stylesheet">
  <link href="<?php echo $r; ?>vendor/lightbox/bootstrap-lightbox.min.css" rel="stylesheet">
  <link href="<?php echo $r; ?>vendor/lightbox/bootstrap-lightbox.css" rel="stylesheet">
  <link href="<?php echo $r; ?>vendor/sweet/sweetalert.css" rel="stylesheet">
  <!-- Custom styles for this template-->
  <link href="<?php echo $r; ?>vendor/base/css/sb-admin.css?ver=5" rel="stylesheet">
  <link href="<?php echo $r; ?>vendor/chosen/chosen.css" rel="stylesheet">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-select@1.13.18/dist/css/bootstrap-select.min.css">
  <link href="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css" rel="stylesheet" />
  <link href="<?php echo $r; ?>vendor/buttons-master/component-buttons.min.css" rel="stylesheet" type="text/css">
  <style>
      .chosen-container {
    width: 100%!important;
}
        .custom-scroll {
            overflow-y: auto;
            overflow-x: hidden;
        }

        /* Personalización del scroll */
        .custom-scroll::-webkit-scrollbar {
            display: none; /* Ancho del scrollbar */
        }
        
        
    </style>
     <? if(isset($_COOKIE['codigopedido'])){ 
         echo 'pedido WA</h1>'; 
        if(isset($_COOKIE['celular'])){ $phone = $_COOKIE['celular'];}else{ $phone = $celular;} ?>
  
  <script>window.open("https://api.whatsapp.com/send?phone=57<? echo $phone; ?>&text=<? echo $_COOKIE['mensaje']; ?>","miventana","width=800,height=420,directories=0,titlebar=0,toolbar=0,location=0,status=0,menubar=0,scrollbars=no,resizable=no,")</script>
  <?  } ?>
</head>