Example #1
0
File: index.php Project: nrop/nrop
            <div id="research_block">
                
                <input type="text" name="research" id="research" />
                <input type="submit" name="submit_research" id="submit_research" />
            </div>
        </div>
        <div id="wrapper">
            <div id="header">
               
            </div>
            <div id="container">
                <div id="sub-banner"/></div>
                <div id="menu">
                    <ul>
                        <?php 
$listCategory = $category->getAllCategory();
?>
                        <?php 
while ($row = $listCategory->fetch(PDO::FETCH_ASSOC)) {
    ?>
                        <li>
                            <a href="<?php 
    print $row['linkCategory'];
    ?>
">
                            <?php 
    print $row['nameCategory'];
    ?>
</a>
                        </li>
                        <?php 
Example #2
0
} elseif (isset($_POST["nameUpdateSystem"])) {
    $nameUpdateSystem = $_POST['nameUpdateSystem'];
    $system = new System();
    $system->setName($nameUpdateSystem);
    $systemId = $_SESSION["systemId"];
    $system->updateSystem($systemId);
} elseif (isset($_POST["nameUpdateAutor"])) {
    $nameUpdateAutor = $_POST['nameUpdateAutor'];
    $autor = new Autor();
    $autor->setName($nameUpdateAutor);
    $autorId = $_SESSION["autorId"];
    $autor->updateAutor($autorId);
} elseif (isset($_POST["nameUpdateActor"])) {
    $nameUpdateActor = $_POST['nameUpdateActor'];
    $actor = new Actor();
    $actor->setName($nameUpdateActor);
    $actorId = $_SESSION["actorId"];
    $actor->updateActor($actorId);
}
$categoryList = Category::getAllCategory();
$_SESSION['categoryList'] = $categoryList;
$objectiveList = Objective::getAllObjective();
$_SESSION['objectiveList'] = $objectiveList;
$systemList = System::getAllSystem();
$_SESSION['systemList'] = $systemList;
$situationList = Situation::getAllSituation();
$_SESSION['situationList'] = $situationList;
$actorList = Actor::getAllActor();
$_SESSION['actorList'] = $actorList;
$autorList = Autor::getAllAutor();
$_SESSION['autorList'] = $autorList;