Esempio n. 1
0
<?php

defined('IN_DESTOON') or exit('Access Denied');
require MD_ROOT . '/webpage.class.php';
isset($item) or $item = 1;
$do = new webpage();
$do->item = $item;
$menus = array(array('添加单页', '?moduleid=' . $moduleid . '&file=' . $file . '&item=' . $item . '&action=add'), array('单页列表', '?moduleid=' . $moduleid . '&file=' . $file . '&item=' . $item), array('全部单页', '?moduleid=' . $moduleid . '&file=' . $file . '&item=' . $item . '&itemid=1'), array('创建新组', '?moduleid=' . $moduleid . '&file=' . $file . '&item=' . $item . '&action=group'), array('生成网页', '?moduleid=' . $moduleid . '&file=' . $file . '&item=' . $item . '&action=html'));
if ($_catids || $_areaids) {
    require DT_ROOT . '/admin/admin_check.inc.php';
}
$this_forward = '?moduleid=' . $moduleid . '&file=' . $file . '&item=' . $item;
switch ($action) {
    case 'add':
        if ($submit) {
            if ($do->pass($post)) {
                $do->add($post);
                dmsg('添加成功', $forward);
            } else {
                msg($do->errmsg);
            }
        } else {
            foreach ($do->fields as $v) {
                isset(${$v}) or ${$v} = '';
            }
            $filepath = 'about/';
            $filename = '';
            $menuid = 0;
            include tpl('webpage_edit', $module);
        }
        break;
<?php

include_once 'class/entrepreneur.class.php';
include_once 'init.inc.php';
require_once "autoload.inc.php";
$p = new webpage("Iut Stage");
$p->appendToHead(<<<head
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <meta name="description" content="">
    <meta name="author" content="">
head
);
$p->appendCssUrl("style/bootstrap-3.3.5-dist/css/bootstrap.min.css");
$p->appendCssUrl("style/profileStyle.css");
//inclusion de la barre de navigation
include_once "navbar.inc.php";
if ($user instanceof Entrepreneur) {
    //Desactive certaines fonctions sur la page si l'entrepreneur n'a pas d'entrepris
    $entreprises = $user->getEntreprises();
    $listEntreprises = "";
    if ($entreprises != null) {
        $etat = "";
        foreach ($entreprises as $key => $value) {
            $id = htmlspecialchars($value->getId());
            $nom = htmlspecialchars($value->getNom());
            $listEntreprises .= "<a href='entreprise.php?id={$id}' class='list-group-item'>{$nom}</a>";
        }
    } else {
<?php

require_once 'class/entreprise.class.php';
require_once "autoload.inc.php";
require_once "init.inc.php";
$p = new webpage("Iut Stage");
$p->appendToHead(<<<head
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <meta name="description" content="">
    <meta name="author" content="">
head
);
$p->appendCssUrl("style/bootstrap-3.3.5-dist/css/bootstrap.min.css");
//inclusion de la barre de navigation
include_once "navbar.inc.php";
if (isset($_REQUEST['id']) && ($entreprise = Entreprise::creatFromId($_REQUEST['id'])) != null) {
    $nom = htmlspecialchars($entreprise->getNom());
    $adr = htmlspecialchars($entreprise->getAdresse());
    $tel = htmlspecialchars($entreprise->getTel());
    $typeJurydique = htmlspecialchars($entreprise->getTypeJuridique());
    $site = htmlspecialchars($entreprise->getSite() != null ? $entreprise->getSite() : "");
    $pays = htmlspecialchars($entreprise->getPays());
    $siret = htmlspecialchars($entreprise->getSIRET());
    $siren = htmlspecialchars($entreprise->getSIREN());
    $ville = htmlspecialchars($entreprise->getVille());
    $codePostal = htmlspecialchars($entreprise->getCodePostal());
    //Affiche tous les avis sur l'entreprise
    $commentaires = "";
Esempio n. 4
0
<?php

include_once 'autoload.inc.php';
include_once 'init.inc.php';
if (isset($_REQUEST['id'])) {
    $p = new webpage("Iut Stage");
    $p->appendToHead(<<<head
\t    <meta charset="utf-8">
\t    <meta http-equiv="X-UA-Compatible" content="IE=edge">
\t    <meta name="viewport" content="width=device-width, initial-scale=1">
\t    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
\t    <meta name="description" content="">
\t    <meta name="author" content="">
head
);
    $p->appendCssUrl("style/bootstrap-3.3.5-dist/css/bootstrap.min.css");
    //inclusion de la barre de navigation
    include_once "navbar.inc.php";
    $stage = Stage::creatFromId($_REQUEST['id']);
    $entreprise = Entreprise::creatFromId($stage->getEntreprise());
    $titre = htmlspecialchars($stage->getTitre());
    $nbPoste = htmlspecialchars($stage->getNbPoste());
    $dateCreation = htmlspecialchars($stage->getDateCreation());
    $ref = htmlspecialchars($stage->getId());
    $nom = htmlspecialchars($entreprise->getNom());
    $adresse = htmlspecialchars($entreprise->getAdresse());
    $tel = htmlspecialchars($entreprise->getTel());
    $description = nl2br(htmlspecialchars($stage->getDescription()));
    $codePostal = htmlspecialchars($entreprise->getCodePostal());
    $adresse = htmlspecialchars($entreprise->getAdresse());
    $ville = htmlspecialchars($entreprise->getVille());
Esempio n. 5
0
<?php

include 'autoload.inc.php';
$p = new webpage("Iut Stage");
$p->appendToHead(<<<head
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <meta name="description" content="">
    <meta name="author" content="">
head
);
$p->appendCssUrl("style/bootstrap-3.3.5-dist/css/bootstrap.min.css");
$p->appendCssUrl("style/signup.css");
$formConnexion = Utilisateur::loginFormSHA1("cible.php");
$p->appendContent(<<<HTML
    <div class="container">

    \t{$formConnexion}

    \t<div id="alert" class="alert alert-danger collapse" role="alert">
    \t\t<a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
    \t\t<strong>Hmm... Le login et le mot de passe ne correspond à aucun compte connue.</strong>
    \t\t<button type="button" class="btn btn-danger">J'ai oublié mon mot de passe</button>
    \t</div>

    </div> <!-- /container -->
HTML
);
$p->appendToFooter(<<<Footer
<?php

include 'autoload.inc.php';
$p = new webpage("Iut Stage");
$p->appendToHead(<<<head
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <meta name="description" content="">
    <meta name="author" content="">
head
);
$p->appendCssUrl("style/bootstrap-3.3.5-dist/css/bootstrap.min.css");
$p->appendCssUrl("style/signup.css");
//Gestion des réponse de l'enregistrement d'un entrepreneur
if (isset($_GET['ins'])) {
    if ($_GET['ins'] == "true") {
        $action = "success";
        $contenu = "Merci de vous être enregistré. Un mail de confirmation vous à été envoyé pour confirmer votre inscription.";
    } else {
        $action = "danger";
        $contenu = "Nous ne pouvons pas vous enregistrer. Cette adresse mail a déjà été utilsé.";
    }
} else {
    $action = "";
    $contenu = "";
}
$p->appendContent(<<<HTML

    <div class="container">
Esempio n. 7
0
<?php

include_once 'autoload.inc.php';
include_once 'init.inc.php';
$p = new webpage("Administration");
$p->appendToHead(<<<head
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <meta name="description" content="">
    <meta name="author" content="">
head
);
$p->appendCssUrl("style/bootstrap-3.3.5-dist/css/bootstrap.min.css");
$p->appendCssUrl("style/searchEngine.css");
$p->appendJsUrl("js/request.js");
//inclusion de la barre de navigation
include_once "navbar.inc.php";
$p->appendContent(<<<HTML
<div class="panel panel-default">
  <!-- Default panel contents -->
  <div class="panel-heading">Panel heading</div>

  <!-- Table -->
  <table class="table">
  <tr><th scope="col">N°</th><th scope="col">Numéro convention</th><th scope="col">Entreprise</th><th scope="col">Enseignant réferent</th></tr>
HTML
);
require_once 'myPDO.include.php';
$db = myPDO::getInstance();
Esempio n. 8
0
<?php

include 'autoload.inc.php';
$p = new webpage("Iut Stage");
$p->appendToHead(<<<head
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <meta name="description" content="">
    <meta name="author" content="">
head
);
$p->appendCssUrl("style/bootstrap-3.3.5-dist/css/bootstrap.min.css");
$p->appendCssUrl("navbar-static/-top.css");
$p->appendContent(<<<HTML
    <!-- Static navbar -->
    <nav class="navbar navbar-default navbar-static-top">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="#">Project name</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
          <ul class="nav navbar-nav">
            <li class="active"><a href="#">Home</a></li>
<?php

require_once "class/entrepreneur.class.php";
require_once "autoload.inc.php";
require_once "init.inc.php";
$p = new webpage("Iut Stage");
$p->appendToHead(<<<head
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <meta name="description" content="">
    <meta name="author" content="">
head
);
$p->appendCssUrl("style/bootstrap-3.3.5-dist/css/bootstrap.min.css");
$p->appendCssUrl("style/profileStyle.css");
$p->appendJs(<<<JS
  function controlDate(){
    res = false;
    
    dateDeb = document.getElementById('dateDeb').value;
    dateFin = document.getElementById('dateFin').value;
    
    formatDateDeb = dateDeb.match(/[0-9]{2}\\/[0-9]{2}\\/[0-9]{4}/);
    formatDateFin = dateFin.match(/[0-9]{2}\\/[0-9]{2}\\/[0-9]{4}/);
    statutDateFin = false;
    statutDateDeb = false;
    
    if(formatDateDeb != null && formatDateFin != null){
      temp = dateDeb.split('/');
Esempio n. 10
0
<?php

require_once "autoload.inc.php";
include_once "init.inc.php";
$p = new webpage("Iut Stage");
$p->appendToHead(<<<head
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <meta name="description" content="">
    <meta name="author" content="">
head
);
$p->appendCssUrl("style/bootstrap-3.3.5-dist/css/bootstrap.min.css");
$p->appendCssUrl("style/profileStyle.css");
//inclusion de la barre de navigation
include_once "navbar.inc.php";
if ($user instanceof Etudiant || $user instanceof Enseignant) {
    $nom = htmlspecialchars($user->getNom());
    $prenom = htmlspecialchars($user->getPrenom());
    $mail = htmlspecialchars($user->getMail());
    $tel = htmlspecialchars($user->getTel());
    //Gestion des réponse de l'enregistrement d'un entrepreneur
    if (isset($_GET['err'])) {
        $toggleScript = "\$('#alert').show();";
        if ($_GET['err'] == 'compteImcomplet' && $user instanceof Enseignant) {
            $action = "danger";
            $contenu = "Les champs précédé de '*' doivent être rempli pour commenter une entreprise.";
        } else {
            $action = "danger";
Esempio n. 11
0
<?php

include_once 'autoload.inc.php';
include_once 'init.inc.php';
include_once "myPDO.include.php";
if ($user instanceof Entrepreneur) {
    if (isset($_REQUEST['id']) && isset($_REQUEST['loginEtudiant'])) {
        $p = new webpage("Iut Stage");
        $p->appendToHead(<<<head
\t    <meta charset="utf-8">
\t    <meta http-equiv="X-UA-Compatible" content="IE=edge">
\t    <meta name="viewport" content="width=device-width, initial-scale=1">
\t    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
\t    <meta name="description" content="">
\t    <meta name="author" content="">
head
);
        $p->appendCssUrl("style/bootstrap-3.3.5-dist/css/bootstrap.min.css");
        //inclusion de la barre de navigation
        include_once "navbar.inc.php";
        $stage = Stage::creatFromId($_REQUEST['id']);
        $entreprise = Entreprise::creatFromId($stage->getEntreprise());
        $titre = htmlspecialchars($stage->getTitre());
        $nbPoste = htmlspecialchars($stage->getNbPoste());
        $dateCreation = htmlspecialchars($stage->getDateCreation());
        $ref = htmlspecialchars($stage->getId());
        $nom = htmlspecialchars($entreprise->getNom());
        $adresse = htmlspecialchars($entreprise->getAdresse());
        $tel = htmlspecialchars($entreprise->getTel());
        $description = nl2br(htmlspecialchars($stage->getDescription()));
        $codePostal = htmlspecialchars($entreprise->getCodePostal());
Esempio n. 12
0
<?php

include_once 'autoload.inc.php';
include_once 'init.inc.php';
$p = new webpage("Iut Stage");
$p->appendToHead(<<<head
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <meta name="description" content="">
    <meta name="author" content="">
head
);
$p->appendCssUrl("style/bootstrap-3.3.5-dist/css/bootstrap.min.css");
$p->appendCssUrl("style/searchEngine.css");
$p->appendCssUrl("style/style.css");
$p->appendJsUrl("js/request.js");
//inclusion de la barre de navigation
include_once "navbar.inc.php";
$p->appendContent(<<<HTML

    <div class="container">

      <!-- Main component for a primary marketing message or call to action -->
      <div class="jumbotron">
        <h1>Recherche de stage</h1>

          <ul class="nav nav-tabs">
            <li class="active"><a data-toggle="tab" href="#stages">Stages</a></li>
            <li><a data-toggle="tab" href="#recruteur">Espace Recruteur</a></li>