<?php include 'sesion.php';?>
<?php include 'concha.php';?>
<!DOCTYPE html>
<html lang="es">
<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<!-- Required meta tags -->

	<meta name="description" content="Panel de Administracion">
	<meta name="author" content="<?php echo $nombresitio ?>">
	<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <title><?php echo $nombresitio ?> - Panel de Administracion</title>
  <!--link href='http://fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'-->
  <link href="https://fonts.googleapis.com/css?family=Montserrat:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900&display=swap" rel="stylesheet">
  <link rel="shortcut icon" href="" type="image/x-icon">
	<link rel="apple-touch-icon" href="">

	<!-- Bootstrap CSS -->
	<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">

  <!-- Link to your css file -->
	<link rel="stylesheet" href="">
  <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>

  <script type="text/javascript" src="//recursos.radiosnethosting.com/ckeditor/ckeditor.js"></script>

    <style>

        .carousel-cell {
          width: 66%;
          margin-right: 5px;m
        }

        .display-flex{
            display: flex;
            justify-content: center;
            align-items: center;
        }

        *{
            border-radius: 0!important;

        }

        body {
            background-image: url(../fondeux.jpg);
            background-position:top center;
            background-repeat: repeat-x;
            background-color:#EBEBEB;
            height:100%;
        }

        .btn, a, h1, h2, h3, h4, h5, h6, b{
          font-family: 'Montserrat', sans-serif;
        }

        .btn, h1, h2, h3, h4, h5, h6 {
          font-weight: 600;
        }

        .navbar {
            position: relative;
        min-height: 50px;
        padding-bottom:  20px;
        /* border: 1px solid transparent; */

        }

      .btn-primary {
        color: #fff!important;
        background-color: #0066FF;
        border-color: #0066FF;
            }

        .page-header{
            margin: 0;
            padding: 1em;
            background-color: #0066FF;
            border: 0;
            text-align:center;
        }

        .page-header h2{

            color: #ffffff;
            font-weight: bold;
        }

        .bloqueAzul{
          /*  background-color: #0066FF;*/
          /* border: 1px solid #e4e4e4;*/
          /*  padding: 1em;*/
            text-align: center;
        }

        .bloqueAzul .div {
          border: 1px solid #e4e4e4;
            background-color: #fff;
        }

        ul{
            list-style: none;
            padding: 0;
        }

        .far{
            color:#0066FF;
        }
        .faso {
            color:#fff;
        }

        .colorAzul h3{
            color:#0066FF;

        }

    </style>

    <script language=javascript>
      function ventanaSecundaria (URL){
        window.open(URL,"ventana1","width=550,height=450,scrollbars=NO")
      }
    </script>

</head>

<body>

<div class="container" style="background-color:#F1F2ED;">



        <?php include 'menu.php';  ?>



    </div>




<div role="main" style="background-color:#fff;" class="container pt-3">

            <div class="page-header" style="text-align:center;">

                <h2>CARGAR UN ARTICULO</h2>




            </div>

    <div class="row pt-3">



                <div class="col-12">

                        <form id="form1" name="form1" method="post" action=" p">

                            <div class="container-fluid">

                                <div class="grid mb-3 border-bottom">


                                  <div class="grid-item mb-2 col-12 col-sm-6 px-2">


                                      <div class="form-group">

                                          <label for="cat"><b><?php echo $idioma_100238 ?></b></label>

                                          <select name="cat" class="form-control" id="cat5" >
                                              <option value="0" selected="selected"><?php echo $idioma_100240 ?></option>
                                              <?php
                                                  
                                                  $sql = "SELECT * FROM categorias ORDER BY nombre";
                                                  $consulta = $conn->query($sql);
                                                  while ($row = $consulta->fetch_assoc())
                                                  {
                                                  $ID = $row["ID"];
                                                  $nombre = $row["nombre"];
                                                  ?>
                                                  <option value="<?php echo $ID ?>"> <?php echo $nombre ?> </option>
                                                                        <?
                                                  }
                                                  $consulta->free_result();
                                                  ?>
                                          </select>

                                      </div>

                                  </div>

                                  <div class="grid-item mb-2 col-12 col-sm-6 px-2">

                                    <div class="form-group">

                                          <label for="cat2"><?php echo $idioma_100253 ?></label>

                                          <select name="cat2" class="form-control" id="cat9">
                                              <option value="0" selected="selected"><?php echo $idioma_100240 ?></option>
                                              <?php include('concha.php');

                                                      
                                                      $sql = "SELECT * FROM categorias ORDER BY nombre";
                                                      $consulta = $conn->query($sql);
                                                      while ($row = $consulta->fetch_assoc())
                                                      {
                                                      $ID = $row["ID"];
                                                      $nombre = $row["nombre"];
                                                      ?>
                                                      <option value="<?php echo $ID ?>"> <?php echo $nombre ?> </option>
                                                                            <?
                                                      }
                                                      $consulta->free_result();
                                                      ?>
                                          </select>

                                    </div>
                                  </div>

                                  <div class="grid-item mb-2 col-12 col-sm-6 px-2">



                                    <div class="form-group">
                                      <label for="cat3"><?php echo $idioma_100253 ?></label>
                                      <select name="cat3" class="form-control" id="cat8">
                                          <option value="0" selected="selected"><?php echo $idioma_100240 ?></option>
                                          <?php include('concha.php');

                                              $sql = "SELECT * FROM categorias ORDER BY nombre";
                                              $consulta = $conn->query($sql);
                                              while ($row = $consulta->fetch_assoc())
                                              {
                                              $ID = $row["ID"];
                                              $nombre = $row["nombre"];
                                              ?>
                                          <option value="<?php echo $ID ?>"> <?php echo $nombre ?> </option>
                                          <?
                                          }
                                          $consulta->free_result();
                                          ?>
                                      </select>
                                    </div>

                                  </div>

                                  <div class="grid-item mb-2 col-12 col-sm-6 px-2">


                                    <div class="form-group">
                                      <label for="cat4"><?php echo $idioma_100253 ?></label>
                                      <select name="cat4" class="form-control" id="cat7">
                                        <option value="0" selected="selected"><?php echo $idioma_100240 ?></option>
                                        <?php include('concha.php');

                                          $sql = "SELECT * FROM categorias ORDER BY nombre";
                                          $consulta = $conn->query($sql);
                                          while ($row = $consulta->fetch_assoc())
                                          {
                                          $ID = $row["ID"];
                                          $nombre = $row["nombre"];
                                          ?>
                                                                <option value="<?php echo $ID ?>"> <?php echo $nombre ?> </option>
                                                                <?
                                          }
                                          $consulta->free_result();
                                          ?>
                                      </select>
                                    </div>
                                  </div>

                                  <div class="grid-item mb-2 col-12 col-sm-6 px-2">

                                    <div class="form-group">
                                          <label for="cat5"><?php echo $idioma_100253 ?></label>
                                      <select name="cat5" class="form-control" id="cat5">
                                          <option value="0" selected="selected"><?php echo $idioma_100240 ?></option>
                                          <?php include('concha.php');

                                              
                                              $sql = "SELECT * FROM categorias ORDER BY nombre";
                                              $consulta = $conn->query($sql);
                                              while ($row = $consulta->fetch_assoc())
                                              {
                                              $ID = $row["ID"];
                                              $nombre = $row["nombre"];
                                              ?>
                                          <option value="<?php echo $ID ?>"> <?php echo $nombre ?> </option>
                                          <?
                                          }
                                          $consulta->free_result();
                                          ?>
                                      </select>
                                    </div>
                                  </div>




                                  <div class="grid-item mb-2 col-12 col-sm-6 px-2">

                                      <div class="col-12 text-center" >

                                    <div><a href="agregar_cat.php" class="btn btn-primary"><?php echo $idioma_100239 ?></a></div>

                                      </div>

                                  </div>
                                </div>

                                <div class="col-12 mb-3 ">

                                    <div class="form-group">


                                      <div class="custom-control custom-radio custom-control-inline">
                                        <input type="radio" checked="checked" name="publicar" id="publicar1" value="ahora"  class="custom-control-input">

                                        <label class="custom-control-label" for="publicar1"><?php echo $idioma_100241 ?> <?php echo $idioma_100242 ?></label>
                                      </div>

                                      <div class="custom-control custom-radio custom-control-inline">

                                        <input type="radio"  class="custom-control-input" name="publicar" id="publicar2" value="programada" >

                                        <label class="custom-control-label" for="publicar2"><?php echo $idioma_100243 ?></label>
                                      </div>






                                    </div>
                                </div>

                                <div class="container-fluid mb-3 border-bottom">
                                          <div class="row">
                                              <div class="col-12 col-sm-6">
                                                  <div class="form-group row px-3">

                                                                <div class="col p-0">
                                                                    <select name="D" class="form-control" id="D">
                                                                        <?php
                                                                          $D1 = date('d');
                                                                            $i = 0;
                                                                            while($i <= 30) { $i += 1;
                                                                          ?>
                                                                        <option  <?php if ($D1 == $i) {?> selected="selected" <? } else {};?>><?php echo $i ?></option>
                                                                        <? } ?>
                                                                    </select>
                                                                </div>

                                                                <div class="col p-0">
                                                                      <select name="M" class="form-control" id="M">
                                                                        <?php
                                                                          $M1 = date('m');
                                                                          $i = 0;
                                                                          while($i <= 11) { $i += 1;
                                                                        ?>
                                                                        <option  <?php if ($M1 == $i) {?> selected="selected" <? } else {};?>><?php echo $i ?></option>
                                                                        <? } ?>
                                                                      </select>
                                                                </div>
                                                                <div class="col p-0">
                                                                    <select name="A" class="form-control" id="A">
                                                                        <?php
                                                                            $A1 = date('Y');
                                                                            $i = 2008;
                                                                            while($i <= 2019) { $i += 1;
                                                                          ?>
                                                                                <option  <?php if ($A1 == $i) {?> selected="selected" <? } else {};?>><?php echo $i ?></option>
                                                                        <? } ?>
                                                                    </select>
                                                                </div>
                                                  </div>
                                              </div>

                                              <div class="col-12 col-sm-6">
                                                  <div class="form-group row px-3">
                                                                  <div class="col p-0">
                                                                      <select class="form-control" tabindex="7" name="hora" id="hora">
                                                                          <?php
                                                                          for($i=0; $i < 24; $i++){
                                                                          $i = str_pad((int) $i,2,"0",STR_PAD_LEFT);

                                                                          ?>
                                                                          <option value="<?=$i?>"><?=$i?></option>
                                                                          <?php
                                                                          }
                                                                          ?>
                                                                      </select>
                                                                  </div>

                                                                  <div class="col p-0">
                                                                      <select class="form-control" tabindex="9" name="minuto" id="minuto">
                                                                          <?php
                                                                          for($j=0; $j < 60; $j++){
                                                                          $j = str_pad((int) $j,2,"0",STR_PAD_LEFT);
                                                                          ?>

                                                                          <option value="<?=$j?>"><?=$j?></option>
                                                                          <?php
                                                                          }
                                                                          ?>
                                                                      </select>
                                                                      hs.
                                                                  </div>

                                                  </div>
                                              </div>
                                          </div>


                                        <? echo   $idioma_info_sobre_cron ?>



                                </div>










                                <!--div class="col-12 text-center">

                                  <p><? echo $idioma_100254 ?></p>
                                </div-->

                                <div class="col-12 mb-3 border-bottom">
                                    <div class="col-4  mb-3">
                                        <h4><?php echo $idioma_100244 ?> <b class="px-3" id="contador1"></b></h4>
                                    </div>


                                    <div class="form-group">

                                          <input name="titulo" type="text" class="form-control mb-3" id="titulo" required/>


                                          <p><? echo $idioma_100254 ?></p>

                                          <p><? echo $idioma_100255 ?> <b>50</b></p>

                                    </div>
                                </div>

                                <div class="col-12 mb-3 border-bottom">

                                      <div class="col-4  mb-3">

                                            <h4><?php echo $idioma_100256 ?> <b class="px-3" id="contador"></b></h4>
                                      </div>

                                      <div class="form-group">
                                        <textarea name="bajada" class="form-control mb-3" rows="3" id="comment" required></textarea>

                                          <p><? echo $idioma_100257 ?> <b><? echo $idioma_100262 ?></b></p>

                                      </div>


																			<div class="form-group">
Precio:
																						<input name="precio" type="number" placeholder="Precio" class="form-control mb-3" id="titulo" value="0.0" required/>

																			</div>


																			<div class="form-group">
Stock:
																						<input name="stock" type="number" placeholder="Stock" class="form-control mb-3" id="titulo" required/>

																			</div>

                                </div>

                                <div class="col-12 mb-3 border-bottom">

                                    <div class="col-4  mb-3">
                                      <h4><?php echo $idioma_100258 ?></h4>
                                    </div>

                                    <div class="form-group">
                                      <textarea name="texto" cols="60" rows="13" class="ckeditor form-control mb-3" id="texto" required></textarea>

                                      <p><? echo $idioma_100246?></p>
                                    </div>
                                </div>

                                <div class="col-12 mb-3 border-bottom">
                                  <div class="col-4  mb-3">
                                  <h4 ><? echo $idioma_100259 ?></h4>
                                  </div>

                                  
                                </div>



                                <div class="col-12 text-center mb-3 p-3 border-bottom">
                                    <h4><?php echo $idioma_100248 ?></h4>
                                </div>

                                <div class="col-12 mb-3">
                                  <div class="col-4 mb-3">
                                      <h4><? echo $idioma_100261 ?></h4>

                                  </div>

                                  <div class="form-group row px-3">

                                                                            <div class="col p-0"><input name="tag1" type="text" id="tag1" class="form-control" /></div>
                                                                            <div class="col p-0"><input name="tag2" type="text" id="tag2" class="form-control" /></div>
                                                                            <div class="col p-0"><input name="tag3" type="text" id="tag3" class="form-control" /></div>
                                                                            <div class="col p-0"><input name="tag4" type="text" id="tag4" class="form-control" /></div>
                                                                            <div class="col p-0"><input name="tag5" type="text" id="tag5" class="form-control" /></div>



                                  </div>

                                  <div class="col-12 p-0"><p><?php echo $idioma_100249 ?></p></div>
                                </div>

                                <div class="col-12 mb-3">

                                  <ul class="d-flex justify-content-around">
                                      <li>
                                          <button name="button" type="submit" class="btn btn-outline-primary" id="button" value="si" ><?php echo $idioma_100250 ?></button>
                                      </li>

                                  </ul>
                                </div>

                            </div>

                        </form>

                </div>

                <div class="col-12 p-5 text-center">

                    <a href="index.php" class="btn btn-primary"><?php echo $idioma_100252 ?></a>

                </div>


    </div>



</div>


<!-- jQuery first, then Popper.js, then Bootstrap JS -->

	<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.6/umd/popper.min.js" integrity="sha384-wHAiFfRlMFy6i5SRaxvfOCifBUQy1xHdJ/yoi7FRNXMRBu5WHdZYu1hA6ZOblgut" crossorigin="anonymous"></script>
	<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/js/bootstrap.min.js" integrity="sha384-B0UglyR+jN6CkvvICOB2joaf5I4l3gm9GU6Hc1og6Ls7i6U/mkkaduKaBhlAXv9k" crossorigin="anonymous"></script>

<script src="https://unpkg.com/isotope-layout@3/dist/isotope.pkgd.js"></script>
<script type="text/javascript">
  window.setInterval(function(){
    $('.grid').isotope({
    itemSelector: '.grid-item'
  });
  }, 500);
</script>
 <script defer src="https://use.fontawesome.com/releases/v5.8.1/js/all.js" integrity="sha384-g5uSoOSBd7KkhAMlnQILrecXvzst9TdC09/VM+pjDTCM+1il8RHz5fKANTFFb+gQ" crossorigin="anonymous"></script>

<script type="text/javascript">
$(document).ready(function(){

    var max_chars = 0;

    $('#max').html(max_chars);

    $('#comment').keyup(function() {
        var chars = $(this).val().length;
        var diff = max_chars + chars;
        $('#contador').html(diff);
    });
});

</script>

<script type="text/javascript">
$(document).ready(function(){

    var max_chars = 0;

    $('#max').html(max_chars);

    $('#titulo').keyup(function() {
        var chars = $(this).val().length;
        var diff = max_chars + chars;
        $('#contador1').html(diff);
    });
});

</script>
 <script>
                        CKEDITOR.replace( 'ckeditor' );
                </script>
</body>
</html>
