Exemple #1
0
            <input name="delserie" type="submit" value="Zmazať označené" class="btn btn-danger btn-xs">
        </span>
    </div>
  <div class="panel-body">

  <div class="form-group">
    <label for="sname" class="col-sm-2 control-label">Názov série</label>
    <div class="col-sm-10">
      <input type="text" class="form-control" id="sname" name="sname" value="' . seriename($_GET["serieedit"]) . '">
      <p class="help-block">Názov série sa musí vyskytovať v názvu článku</p>
    </div>
  </div>
  <div class="form-group">
    <label for="stext" class="col-sm-2 control-label">Popis série</label>
    <div class="col-sm-10">
      <textarea name="stext" class="form-control">' . serietext($_GET["serieedit"]) . '</textarea>
    </div>
  </div>

  </div>
   <table class="table table-striped table-hover" align="center" cellpadding="0" cellspacing="1" width="100%">
    
    <tr>
    <td width="1%"><strong>ID</strong></td>
    <td width="40%"><strong>Názov článku</strong></td>
    <td width="1%"><span class="label label-success">Nachádza sa</span></td>
    <td width="1%"><span class="label label-danger">Odstrániť</span></td>
    </tr>
';
    $result = dbquery("SELECT * FROM bg_articles WHERE article_name LIKE '%" . seriename($_GET["serieedit"]) . "%' ORDER BY article_date");
    while ($data = dbarray($result)) {
Exemple #2
0
<?php

require "inc/settings.php";
$titlew = isset($_GET['seria']) ? "Séria: " . seriename($_GET['seria']) : "Série článkov";
require "inc/header.php";
?>

      <div class="bigtitlecenter">
        <div class="bigtitle">
            <h5><?php 
echo isset($_GET['seria']) ? "Séria: " . seriename($_GET['seria']) : "Série článkov";
?>
</h5>
           <?php 
echo isset($_GET['seria']) ? serietext($_GET['seria']) : "";
?>
        </div>
      </div>

<?php 
if (isset($_GET['seria'])) {
    // vypis clankov v serii
    if (!is_numeric($_GET['seria'])) {
        redirect("/");
    }
    $resultcat = dbquery("SELECT * FROM bg_articleseries WHERE as_id='" . $_GET["seria"] . "'");
    $datac = dbarray($resultcat);
    if (isset($_GET["n"]) && $_GET["n"] != bezd($datac["as_name"])) {
        redirect("/seria/" . $datac["as_id"] . "/" . bezd($datac["as_name"]));
    }
    $rowscat = dbrows($resultcat);