Exemplo n.º 1
0
 public static function delete()
 {
     if (!empty($_GET['id']) && is_numeric($_GET['id']) && $_GET['id'] > 0) {
         $id = $_GET['id'];
         TekmaDB::deleteTekma($id);
         echo "OK";
     } else {
         echo "ERROR";
     }
     //echo ViewHelper::render("view/editor/main-editor.php");
 }
Exemplo n.º 2
0
<?php

require_once 'model/IgralecDB.php';
/**
 * Created by PhpStorm.
 * User: Urban
 * Date: 08-Feb-16
 * Time: 10:55 AM
 */
$tekme = TekmaDB::getAll();
?>

<script type="text/javascript" src="<?php 
echo JS_URL . "scriptTekmaList.js";
?>
"></script>

<h1>Vse tekme</h1>

        <ul id="tekmaList">
            <?php 
foreach ($tekme as $tekma) {
    ?>
                <?php 
    $ekipa1 = EkipaDB::getById($tekma["ekipa1_id"]);
    $ekipa2 = EkipaDB::getById($tekma["ekipa2_id"]);
    ?>
                <li>
                    <a href="#" name="detail" value="<?php 
    echo $tekma["id"];
    ?>
Exemplo n.º 3
0
<?php

/**
 * Created by PhpStorm.
 * User: Urban
 * Date: 12-Feb-16
 * Time: 9:16 AM
 */
$novice = NovicaDB::getAll();
$kategorija1 = EkipaDB::getByKategorija(1);
$kategorija2 = EkipaDB::getByKategorija(2);
$kategorija3 = EkipaDB::getByKategorija(3);
$tekma1 = TekmaDB::getByKategorija(1);
$tekma2 = TekmaDB::getByKategorija(2);
$tekma3 = TekmaDB::getByKategorija(3);
?>

<!DOCTYPE html>
<html>
<head>

    <link rel="stylesheet" type="text/css" href="<?php 
echo CSS_URL . "tether.min.css";
?>
">
    <link rel="stylesheet" type="text/css" href="<?php 
echo CSS_URL . "bootstrap.min.css";
?>
">
    <link rel="stylesheet" type="text/css" href="<?php 
echo CSS_URL . "style.css";