public function envoi() { if (!isAuth(307)) { return; } $this->view->clientsJS("message" . DS . "envoi"); $view = new View(); if (!empty($this->request->message)) { # Envoyer le SMS et rediriger vers la page de suivi de SMS $this->activateSMS(); $retval = $this->send($this->request->destinataire, $this->request->message); if ($retval === false) { $view->Assign("errors", true); } else { $view->Assign("errors", false); # Inserer dans la table message envoyes $personnel = $this->Personnel->getBy(["USER" => $this->session->iduser]); $params = ["dateenvoie" => date("Y-m-d H:i:s", time()), "destinataire" => $this->request->destinataire, "expediteur" => $personnel['IDPERSONNEL'], "message" => $this->request->message]; $this->Messageenvoye->insert($params); } } $destinataires = $this->Repertoire->getDestinataires(); $view->Assign("destinataires", $destinataires); $content = $view->Render("message" . DS . "envoi", false); $this->Assign("content", $content); }
/** * Droit saisie punition: 315 */ public function saisie() { if (!isAuth(315)) { return; } if (!empty($this->request->punipar)) { $params = ["eleve" => $this->request->comboEleves, "datepunition" => $this->request->datepunition, "dateenregistrement" => date("Y-m-d", time()), "duree" => $this->request->duree, "typepunition" => $this->request->comboTypes, "motif" => $this->request->motif, "description" => $this->request->description, "punipar" => $this->request->punipar, "enregistrerpar" => $this->session->user, "anneeacademique" => $this->session->anneeacademique]; $this->Punition->insert($params); header("Location:" . Router::url("punition")); } $this->view->clientsJS("punition" . DS . "punition"); $view = new View(); $type = $this->Typepunition->selectAll(); $comboTypes = new Combobox($type, "comboTypes", $this->Typepunition->getKey(), $this->Typepunition->getLibelle()); $comboTypes->first = " "; $view->Assign("comboTypes", $comboTypes->view()); $view->Assign("comboClasses", $this->comboClasses->view()); $personnels = $this->Personnel->selectAll(); $comboPersonnels = new Combobox($personnels, "comboPersonnels", $this->Personnel->getKey(), $this->Personnel->getLibelle()); $comboPersonnels->first = " "; $view->Assign("comboPersonnels", $comboPersonnels->view()); $content = $view->Render("punition" . DS . "saisie", false); $this->Assign("content", $content); //$this->Assign("content", (new View())->output()); }
public function saisie() { if (!isAuth(501)) { return; } $view = new View(); $view->Assign("errors", false); $message = ""; $logo = ""; if (!empty($this->request->identifiant) && !empty($this->request->nom) && !empty($this->request->adresse)) { //validation du logo if (isset($this->request->logo) && !empty($this->request->logo['tmp_name'])) { if (move_uploaded_file($this->request->logo['tmp_name'], ROOT . "/photos/" . $this->request->logo['name'])) { $logo = SITE_ROOT . "photos/" . $this->request->logo['name']; } else { $message = "Erreur lors de la sauvegarde du logo : " . $this->request->logo['name']; return false; } } $params = ["identifiant" => $this->request->identifiant, "nom" => $this->request->nom, "adresse" => $this->request->adresse, "bp" => $this->request->bp, "tel1" => $this->request->tel1, "tel2" => $this->request->tel2, "mobile" => $this->request->mobile, "fax" => $this->request->fax, "email" => $this->request->email, "siteweb" => $this->request->siteweb, "responsable" => $this->request->responsable, "logo" => $logo]; //Insertion dans la BD $this->loadModel("locan"); if ($this->Locan->insert($params)) { header("Location: " . Router::url("etablissement")); } else { $message = "Erreur lors de l'insertion"; } } //Affichage du formulaire if (!empty($message)) { $view->Assign("errors", true); } $content = $view->Render("etablissement" . DS . "saisie", false); $this->Assign("content", $content); }
public function envoi() { if (!isAuth(307)) { return; } if (!empty($this->request->message)) { $retval = $this->envoiIndividuel(); } elseif (!empty($this->request->messageparclasse)) { $retval = $this->envoiParclasse(); } elseif (!empty($this->request->messagecollectif)) { $retval = $this->envoiCollectif(); } $this->view->clientsJS("message" . DS . "envoi"); $view = new View(); if (isset($retval)) { $view->Assign("errors", !$retval); } $destinataires = $this->Repertoire->getDestinataires(); $view->Assign("destinataires", $destinataires); $parclasse = $this->Classe->selectAll(); $comboParclasse = new Combobox($parclasse, "parclasse", "IDCLASSE", "NIVEAUSELECT"); $comboParclasse->first = " "; $view->Assign("comboParclasse", $comboParclasse->view()); $content = $view->Render("message" . DS . "envoi", false); $this->Assign("content", $content); }
/** * Comproba si el usuari que fa la petició te * rol `admin` * * @param obj $req * @param obj $res * @return boolean */ function isAdmin($req, $res) { $next = false; if (isAuth() && $req->session['user']['role'] === "admin") { $next = true; } return $next; }
public function selectAll() { if (isAuth(531)) { $query = "SELECT * FROM matieres ORDER BY LIBELLE"; return $this->query($query); } else { $query = "SELECT DISTINCT(m.IDMATIERE), m.* " . "FROM `" . $this->_table . "` m " . "INNER JOIN enseignements ens ON ens.MATIERE = m.IDMATIERE " . "INNER JOIN personnels p ON p.IDPERSONNEL = ens.PROFESSEUR AND p.USER = :restriction " . "ORDER BY LIBELLE"; return $this->query($query, ["restriction" => $_SESSION['iduser']]); } }
/** * Obtient les information concernant des notation * en se basant sur la matieres enseignees, utilise pour la methode note/statistique par matiere * */ public function getNotationsByMatieresByPeriode($idmatiere, $periode) { if (isAuth(531)) { $query = "SELECT n.*, " . "(SELECT MAX(NOTE) FROM notes WHERE n.IDNOTATION = notes.NOTATION) AS NOTEMAX, " . "(SELECT MIN(NOTE) FROM notes WHERE n.IDNOTATION = notes.NOTATION) AS NOTEMIN, " . "(SELECT AVG(NOTE) FROM notes WHERE n.IDNOTATION = notes.NOTATION) AS NOTEMOYENNE, " . "c.*, c.LIBELLE AS CLASSELIBELLE, ni.*, " . "s.LIBELLE AS SEQUENCELIBELLE, p.* " . "FROM notations n " . "INNER JOIN sequences s ON s.IDSEQUENCE = n.SEQUENCE AND n.SEQUENCE = :sequence " . "INNER JOIN enseignements e ON e.IDENSEIGNEMENT = n.ENSEIGNEMENT AND e.MATIERE = :idmatiere " . "LEFT JOIN personnels p ON p.IDPERSONNEL = e.PROFESSEUR " . "INNER JOIN classes c ON c.IDCLASSE = e.CLASSE " . "INNER JOIN niveau ni ON ni.IDNIVEAU = c.NIVEAU "; return $this->query($query, ['idmatiere' => $idmatiere, "sequence" => $periode]); } else { $query = "SELECT n.*, " . "(SELECT MAX(NOTE) FROM notes WHERE n.IDNOTATION = notes.NOTATION) AS NOTEMAX, " . "(SELECT MIN(NOTE) FROM notes WHERE n.IDNOTATION = notes.NOTATION) AS NOTEMIN, " . "(SELECT AVG(NOTE) FROM notes WHERE n.IDNOTATION = notes.NOTATION) AS NOTEMOYENNE, " . "c.*, c.LIBELLE AS CLASSELIBELLE, ni.*, " . "s.LIBELLE AS SEQUENCELIBELLE, p.*, cy.DESCRIPTIONHTML AS CYCLEHTML " . "FROM notations n " . "INNER JOIN sequences s ON s.IDSEQUENCE = n.SEQUENCE AND n.SEQUENCE = :sequence " . "INNER JOIN enseignements e ON e.IDENSEIGNEMENT = n.ENSEIGNEMENT AND e.MATIERE = :idmatiere " . "INNER JOIN personnels p ON p.IDPERSONNEL = e.PROFESSEUR AND p.USER = :restriction " . "INNER JOIN classes c ON c.IDCLASSE = e.CLASSE " . "INNER JOIN cycles cy ON cy.IDCYCLE = c.CYCLE " . "INNER JOIN niveau ni ON ni.IDNIVEAU = c.NIVEAU " . "ORDER BY cy.IDCYCLE ASC, ni.GROUPE DESC, ni.NIVEAUHTML ASC"; return $this->query($query, ['idmatiere' => $idmatiere, "sequence" => $periode, "restriction" => $_SESSION['iduser']]); } }
/** * Obtenir tous les notes de cette eleves pour cette classe * Utiliser dans eleve/index, onglet 5 pour afficher les notes qu'il a eu pendant une * annee academique * @param type $ideleve * @param type $idclasse */ public function getNotesEleveByClasse($ideleve, $idclasse) { if (isAuth(531)) { $query = "SELECT n.*, el.*, nota.*, c.*, seq.*, mat.*, mat.LIBELLE AS MATIERELIBELLE " . "FROM notes n " . "INNER JOIN eleves el ON el.IDELEVE = n.ELEVE " . "INNER JOIN notations nota ON nota.IDNOTATION = n.NOTATION " . "INNER JOIN sequences seq ON seq.IDSEQUENCE = nota.SEQUENCE " . "INNER JOIN enseignements ens ON ens.IDENSEIGNEMENT = nota.ENSEIGNEMENT AND ens.CLASSE = :idclasse " . "INNER JOIN classes c ON c.IDCLASSE = ens.CLASSE " . "INNER JOIN matieres mat ON mat.IDMATIERE = ens.MATIERE " . "WHERE n.ELEVE = :ideleve"; return $this->query($query, ["idclasse" => $idclasse, "ideleve" => $ideleve]); } else { $query = "SELECT n.*, el.*, nota.*, c.*, seq.*, mat.*, mat.LIBELLE AS MATIERELIBELLE " . "FROM notes n " . "INNER JOIN eleves el ON el.IDELEVE = n.ELEVE " . "INNER JOIN notations nota ON nota.IDNOTATION = n.NOTATION " . "INNER JOIN sequences seq ON seq.IDSEQUENCE = nota.SEQUENCE " . "INNER JOIN enseignements ens ON ens.IDENSEIGNEMENT = nota.ENSEIGNEMENT AND ens.CLASSE = :idclasse " . "INNER JOIN personnels p ON p.IDPERSONNEL = ens.PROFESSEUR AND p.USER = :restriction " . "INNER JOIN classes c ON c.IDCLASSE = ens.CLASSE " . "INNER JOIN matieres mat ON mat.IDMATIERE = ens.MATIERE " . "WHERE n.ELEVE = :ideleve"; return $this->query($query, ["idclasse" => $idclasse, "ideleve" => $ideleve, "restriction" => $_SESSION['iduser']]); } }
public function __construct(Request $request) { AppOptionHelper::load(); $this->localeCode = currentLocaleCode(); $this->is_auth = isAuth(); $this->auth_user = authUser(); if ($this->is_auth) { $own_directory = $this->auth_user->ownDirectory; config(['katniss.disks.' . $own_directory => ['driver' => 'local', 'root' => storage_path('../public/upload/file_manager/users/' . $own_directory)]]); } }
/** * Renvoie tous les enseignement qui passe dans cette annee academique * @param type $anneeacad */ public function getAllEnseignements($anneeacad) { if (isAuth(531)) { $query = "SELECT e.*, m.LIBELLE AS MATIERELIBELLE, m.*," . " p.*, c.*, c.LIBELLE AS CLASSELIBELLE, g.DESCRIPTION, n.* " . "FROM enseignements e " . "INNER JOIN matieres m ON m.IDMATIERE = e.MATIERE " . "LEFT JOIN personnels p ON p.IDPERSONNEL = e.PROFESSEUR " . "INNER JOIN classes c ON c.IDCLASSE = e.CLASSE AND c.ANNEEACADEMIQUE = :anneeacad \n\t\t\t\tINNER JOIN niveau n ON n.IDNIVEAU = c.NIVEAU " . "LEFT JOIN groupe g ON g.IDGROUPE = e.GROUPE " . "ORDER BY e.IDENSEIGNEMENT"; $params = ["anneeacad" => $anneeacad]; return $this->query($query, $params); } else { $query = "SELECT e.*, m.LIBELLE AS MATIERELIBELLE, m.*," . " p.*, c.*, c.LIBELLE AS CLASSELIBELLE, g.DESCRIPTION, n.* " . "FROM enseignements e " . "INNER JOIN matieres m ON m.IDMATIERE = e.MATIERE " . "INNER JOIN personnels p ON p.IDPERSONNEL = e.PROFESSEUR AND p.USER = :restriction " . "INNER JOIN classes c ON c.IDCLASSE = e.CLASSE AND c.ANNEEACADEMIQUE = :anneeacad \n\t\t\t\tINNER JOIN niveau n ON n.IDNIVEAU = c.NIVEAU " . "LEFT JOIN groupe g ON g.IDGROUPE = e.GROUPE " . "ORDER BY e.IDENSEIGNEMENT"; $params = ["anneeacad" => $anneeacad, "restriction" => $_SESSION['iduser']]; return $this->query($query, $params); } }
function payement() { if (!isAuth(508)) { return; } $this->view->clientsJS("scolarite" . DS . "payement"); $view = new View(); $this->comboClasses->first = " "; $view->Assign("comboClasses", $this->comboClasses->view()); $content = $view->Render("scolarite" . DS . "payement", false); $this->Assign("content", $content); }
public function saisie() { if (!isAuth(523)) { return; } $this->view->clientsJS("activite" . DS . "saisie"); $view = new View(); $this->comboClasses->first = " "; $view->Assign("comboClasses", $this->comboClasses->view()); $content = $view->Render("activite" . DS . "saisie", false); $this->Assign("content", $content); }
public function selectAll() { /* $query = "SELECT c.*, d.LIBELLE AS FK_DECOUPAGE FROM classes c " . "LEFT JOIN decoupage d ON c.DECOUPAGE = d.IDDECOUPAGE"; */ if (isAuth(531)) { $query = "SELECT c.* , d.LIBELLE AS FK_DECOUPAGE, n.* " . "FROM classes c " . "LEFT JOIN decoupage d ON c.DECOUPAGE = d.IDDECOUPAGE " . "LEFT JOIN niveau n ON n.IDNIVEAU = c.NIVEAU " . "WHERE c.ANNEEACADEMIQUE = :anneeacad " . "ORDER BY n.GROUPE DESC"; return $this->query($query, ['anneeacad' => $_SESSION['anneeacademique']]); } else { $query = "SELECT DISTINCT(c.IDCLASSE), c.* , d.LIBELLE AS FK_DECOUPAGE, n.* " . "FROM classes c " . "INNER JOIN enseignements ens ON ens.CLASSE = c.IDCLASSE " . "INNER JOIN personnels p ON p.IDPERSONNEL = ens.PROFESSEUR AND p.USER = :restriction " . "LEFT JOIN decoupage d ON c.DECOUPAGE = d.IDDECOUPAGE " . "LEFT JOIN niveau n ON n.IDNIVEAU = c.NIVEAU " . "WHERE c.ANNEEACADEMIQUE = :anneeacad " . "ORDER BY n.GROUPE DESC"; $params = ["restriction" => $_SESSION['iduser'], 'anneeacad' => $_SESSION['anneeacademique']]; return $this->query($query, $params); } }
public function index() { if (!isAuth(207)) { return; } $this->view->clientsJS("enseignant" . DS . "index"); $view = new View(); $enseignants = $this->Personnel->findBy(["FONCTION" => 1]); $comboEnseignants = new Combobox($enseignants, "comboEnseignants", $this->Personnel->getKey(), ["NOM", "PRENOM"]); $comboEnseignants->first = " "; $view->Assign("comboEnseignants", $comboEnseignants->view()); $content = $view->Render("enseignant" . DS . "index", false); $this->Assign("content", $content); }
function saisie() { if (!isAuth(509)) { return; } $this->view->clientsJS("frais" . DS . "frais"); $view = new View(); $data = $this->Classe->findBy(["ANNEEACADEMIQUE" => $this->session->anneeacademique]); $comboClasses = new Combobox($data, "comboClasses", "IDCLASSE", "LIBELLE"); $comboClasses->first = " "; $view->Assign("comboClasses", $comboClasses->view()); $content = $view->Render("frais" . DS . "saisie", false); $this->Assign("content", $content); }
public function index() { if (!isAuth(207)) { return; } $this->view->clientsJS("enseignant" . DS . "index"); $view = new View(); # $enseignants = $this->Personnel->findBy(["FONCTION" => 1]); # Tous les enseignants de l'etablissement pour cette annee academique $enseignants = $this->Etablissement->getEnseignants($this->session->anneeacademique); $comboEnseignants = new Combobox($enseignants, "comboEnseignants", $this->Personnel->getKey(), ["NOM", "PRENOM"]); $comboEnseignants->first = " "; $view->Assign("comboEnseignants", $comboEnseignants->view()); $content = $view->Render("enseignant" . DS . "index", false); $this->Assign("content", $content); }
/** * CODEDROIT : 504 */ public function saisie() { if (!isAuth(504)) { return; } $this->view->clientsJS("matiere" . DS . "matiere"); $view = new View(); $view->Assign('errors', false); if (!empty($this->request->code) && !empty($this->request->libelle)) { $params = ["code" => $this->request->code, "libelle" => $this->request->libelle, "bulletin" => $this->request->libelle]; if ($this->Matiere->insert($params)) { header("Location:" . url('matiere')); } else { $view->Assign("errors", true); } } $content = $view->Render("matiere" . DS . "saisie", false); $this->Assign("content", $content); }
public function droit() { if (!isAuth(606)) { return; } $this->view->clientsJS("user" . DS . "droit"); if (!empty($this->request->iduser)) { $droits = json_encode($_POST['droits']); $this->User->update(["DROITSPECIFIQUE" => $droits], ["IDUSER" => $this->request->iduser]); } $view = new View(); $data = $this->User->selectAll(); $comboUser = new Combobox($data, "listeusers", "IDUSER", "LOGIN"); $comboUser->first = " "; $view->Assign("comboUser", $comboUser->view()); $data = $this->Connexion->selectAll(); $grid = new Grid($data, 0); $grid->addcolonne(0, "IDCONNEXION", "IDCONNEXION", false); $grid->addcolonne(1, "Compte", "COMPTE"); $grid->addcolonne(2, "Date de début", "DATEDEBUT"); $grid->addcolonne(3, "Machine", "MACHINESOURCE"); $grid->addcolonne(4, "Adresse", "IPSOURCE"); $grid->addcolonne(5, "Connexion", "CONNEXION"); $grid->addcolonne(6, "Date de fin", "DATEFIN"); $grid->addcolonne(7, "Déconnexion", "DECONNEXION"); $grid->dataTable = "connexionTable"; $grid->setColDate(2); $grid->setColDate(6); $total = count($data); $view->Assign("connexions", $grid->display()); $droits = $this->Droit->selectAll(); $grid = new Grid($droits, 0); $grid->addcolonne(0, "ID", "IDDROIT", false); $grid->addcolonne(1, "CODE", "CODEDROIT"); $grid->addcolonne(2, "LIBELLE", "LIBELLE"); $grid->dataTable = "droitTable"; $view->Assign("droits", $grid->display()); $view->Assign("total", $total); $content = $view->Render("user" . DS . "droit", false); $this->Assign("content", $content); }
public function saisie() { $view = new View(); if (!isAuth(501)) { return; } if (!empty($this->request->nouvelets)) { $params = ["etablissement" => $this->request->nouvelets]; $this->Etablissement->insert($params); header("Location:" . Router::url("etablissement", "saisie")); } $this->view->clientsJS("etablissement" . DS . "saisie"); if (empty($this->request->addnewets)) { $ets = $this->Etablissement->selectAll(); $view->Assign("etablissements", $ets); $content = $view->Render("etablissement" . DS . "showEtablissement", false); } else { $content = $view->Render("etablissement" . DS . "saisie", false); } $this->Assign("content", $content); }
public function index() { if (!isAuth(206)) { return; } $view = new View(); $this->view->clientsJS("repertoire" . DS . "index"); $rep = $this->Repertoire->selectAll(); $repertoires = new Grid($rep, 1); $repertoires->actionbutton = false; $repertoires->addcolonne(0, "CIVILITE", "CIVILITE"); $repertoires->addcolonne(1, "NOM", "NOM"); $repertoires->addcolonne(2, "TELEPHONE", "TELEPHONE"); $repertoires->addcolonne(3, "PORTABLE", "PORTABLE"); $repertoires->addcolonne(4, "EMAIL", "EMAIL"); $repertoires->dataTable = "tableRepertoire"; $view->Assign("total", count($rep)); $view->Assign("repertoires", $repertoires->display()); $content = $view->Render("repertoire" . DS . "index", false); $this->Assign("content", $content); }
<div style="margin-left: 80px"> <span class="select" style="width: 350px"><label>Matières - classes : </label> <?php echo $comboEnseignements; ?> </span> <span class="select" style="width: 200px"><label>Période : </label> <?php echo $comboPeriodes; ?> </span> </div> </div> <div class="page"> <div id="verrouillage-content"> <?php echo $verrouillage; ?> </div> </div> <div class="navigation"> <?php if (isAuth(401)) { echo btn_add("document.location='" . Router::url("note", "saisie") . "'"); } else { echo btn_add_disabled(); } ?> </div> <div class="status"></div>
?> );"> <img border ="0" alt="" src="<?php echo SITE_ROOT . "public/img/icons/operation.png"; ?> " />Opérations caisses</a></li> <li id="tab2" class="noncourant"><a onclick="onglets(1, 2, <?php echo $_maxnbre; ?> );"> <img border ="0" alt="" src="<?php echo SITE_ROOT . "public/img/icons/caisse.png"; ?> " />Totaux</a></li> <?php if (isAuth(532)) { ?> <li id="tab3" class="noncourant"><a onclick="onglets(1, 3, <?php echo $_maxnbre; ?> );"> <img border ="0" alt="" src="<?php echo SITE_ROOT . "public/img/icons/caisse.png"; ?> " />Opérations supprimées</a></li> <?php } ?> </ul> </div> <div id="onglet1" class="onglet" style="display: block; height: 90%;">
<?php include_once 'auth.php'; if (!isAuth()) { header("location: index.php"); exit; } $error = isset($_FILES['file']['error']) ? $_FILES['file']['error'] : 4; $fileType = isset($_FILES['file']['type']) ? $_FILES['file']['type'] : ""; $userFile = isset($_FILES['file']['name']) ? $_FILES['file']['name'] : ""; $tmpFile = isset($_FILES['file']['tmp_name']) ? $_FILES['file']['tmp_name'] : ""; if ($error > 0) { switch ($error) { case 1: echo 'File exceeded upload_max_filesize'; break; case 2: echo 'File exceeded max_file_size'; break; case 3: echo 'File only partially uploaded'; break; case 4: echo 'No file uploaded. try again'; break; } exit; } //call user function //get array from csv $array = importCsv($tmpFile);
/** * FUNCTION POUR L'EDITION D'UN ELEVE */ public function edit($id) { if (!isAuth(520)) { return; } if (!empty($this->request->ideleve)) { $this->validerEdit(); } $this->view->clientsJS("eleve" . DS . "edit"); $eleve = $this->Eleve->findSingleRowBy(["IDELEVE" => $id]); $view = new View(); /** * Information sur l'eleve */ $view->Assign("eleve", $eleve); //Pays de nationalite $pays = $this->Pays->selectAll(); $comboNationalite = new Combobox($pays, "nationalite", $this->Pays->getKey(), $this->Pays->getLibelle()); $comboNationalite->selectedid = $eleve['NATIONALITE']; $view->Assign("comboNationalite", $comboNationalite->view()); //Pays de naissance $comboNaiss = new Combobox($pays, "paysnaiss", $this->Pays->getKey(), $this->Pays->getLibelle()); $comboNaiss->selectedid = $eleve['PAYSNAISS']; $view->Assign("comboNaiss", $comboNaiss->view()); //Motif sortie $motif = $this->Motifsortie->selectAll(); $comboMotifSortie = new Combobox($motif, "motifsortie", $this->Motifsortie->getKey(), $this->Motifsortie->getLibelle()); $comboMotifSortie->first = " "; $comboMotifSortie->selectedid = $eleve['MOTIFSORTIE']; $view->Assign("comboMotifSortie", $comboMotifSortie->view()); //Provenance $etablissements = $this->Etablissement->selectAll(); $comboProvenance = new Combobox($etablissements, "provenance", $this->Etablissement->getKey(), $this->Etablissement->getLibelle()); $comboProvenance->selectedid = $eleve['PROVENANCE']; $view->Assign("comboProvenance", $comboProvenance->view()); //Liste des responsable $responsables = $this->Eleve->getResponsables($id); $view->Assign("responsables", $responsables); //Combo des non responsables $nonresponsables = $this->Eleve->getNonResponsables($id); $view->Assign("nonresponsables", $nonresponsables); //Parente $view->Assign("parente", $this->comboParente->view()); $this->comboParente->name = "parenteextra"; $this->comboParente->idname = "parenteextra"; $view->Assign("parenteextra", $this->comboParente->view()); //Charge $charges = $this->Charge->selectAll(); $view->Assign("charges", $charges); //Civilite $view->Assign("civilite", $this->comboCivilite->view()); # Classe $classe = $this->Eleve->getClasse($id, $this->session->anneeacademique); $view->Assign("classe", $classe); $content = $view->Render("eleve" . DS . "edit", false); $this->Assign("content", $content); }
?> </span> <table class="dataTable" id="tableChapitre"> <thead><tr><th>N°</th><th>Titre</th><th></th><th></th></tr></thead> <tbody> <?php $i = 1; foreach ($chapitres as $chap) { echo "<tr><td>" . $i . "</td><td>" . $chap['TITRE'] . "</td>"; echo "<td align='center'>"; if (isAuth(525)) { echo "<img style='cursor:pointer' src='" . img_edit() . "' " . "onclick=\"modifierChapitre(" . $chap['IDCHAPITRE'] . "," . $chap['ACTIVITE'] . ")\" /> "; } else { echo "<img style='cursor:pointer' src='" . img_edit_disabled() . "' /> "; } if (isAuth(524)) { echo "<img style='cursor:pointer' src='" . img_delete() . "' " . "onclick=\"supprimerChapitre(" . $chap['IDCHAPITRE'] . ", " . $chap['ACTIVITE'] . ")\" />"; } else { echo "<img style='cursor:pointer' src='" . img_delete_disabled() . "' />"; } echo "</td><td align='center'>" . "<img style='cursor:pointer' title='Ajouter des lecons a ce chapitre' src='" . img_plus() . "' " . "onclick=\"chargerLecon(" . $chap['IDCHAPITRE'] . ");\" /></td></tr>"; $i++; } ?> </tbody> </table> <script> $(document).ready(function () { if (!$.fn.DataTable.isDataTable("#tableChapitre")) { $("#tableChapitre").DataTable({ bInfo: false,
<?php if ($deja) { echo '<p style ="color: #ff6699;margin: 0; padding: 0; text-align: center">Impossible d\'effectuer une nouvelle saisie<br/>'; if (isAuth(407)) { echo "Procèder a la modification <a href = '" . Router::url("note", "edit", $notation) . "'>ici</a>"; } echo '</p>'; echo "<input type='hidden' value = 'true' name='deja' />"; } ?> <table class="dataTable" id="eleveTable"> <thead><th>Matricule</th><th>Noms & Prénoms</th><th>Note</th><th>Absent</th><th>Non noté</th><th>Observations</th></thead> <tbody> <?php if ($deja) { foreach ($notes as $note) { echo "<tr><td>" . $note['MATRICULE'] . "</td><td>" . $note['NOM'] . " " . $note['PRENOM'] . "</td>"; if ($note["NOTE"] == 0.0) { $note['NOTE'] = ""; } echo "<td align='center'><input type ='text' disabled='disabled' size = '2' value = '" . $note['NOTE'] . "' /></td>"; if ($note['ABSENT'] === 1) { echo "<td align='center'><input type = 'checkbox' disabled='disabled' checked='checked' /></td>"; } else { echo "<td align='center'><input type ='checkbox' disabled='disabled' /></td>"; } if (empty($note['NOTE'])) { echo "<td align='center'><input type='checkbox' checked='checked' disabled='disabled' /></td>"; } else { echo "<td align='center'><input type='checkbox' disabled='disabled' /></td>";
<?php echo $comboProfiles; ?> </span> <span class="select" style="width: 253px"><label>Personnel</label> <?php echo $comboPersonnels; ?> </span> </fieldset> </div> <div class="recapitulatif"> <div class="errors"> <?php if ($errors) { echo "L'utilisateur " . $user . " existe déjà dans le systéme"; } ?> </div> </div> <div class="navigation"> <?php if (isAuth(607)) { echo btn_ok("ajouterUser()"); } ?> </div> </form> <div class="status"> </div>
?> " maxlength="15"/> </span> <span class="text" style="width: 150px"> <label>Email</label> <input type="text" name="email" value="<?php echo $personnel['EMAIL']; ?> " maxlength="15"/> </span> </fieldset> </div> <div class="recapitulatif"> </div> <div class="navigation"> <?php if (isAuth(502)) { echo btn_ok("submitForm();"); } if (isAuth(203)) { echo btn_cancel("document.location=\"" . Router::url("personnel") . "\""); } else { echo btn_cancel_disabled(); } ?> </div> </form> <div class="status"></div>
/** * Impression d'un recu grace a l'operation caisse idcaisse * Afficher avant de proposer une impression * @param type $idcaisse */ public function recu($idcaisse) { if (!isAuth(522)) { return; } $this->view->clientsJS("caisse" . DS . "recu"); $view = new View(); $operation = $this->Caisse->get($idcaisse); $view->Assign("operation", $operation); $this->loadBarcode(BARCODE_1); $barcodeobj = new TCPDFBarcode($operation['REFCAISSE'], 'C128A'); $view->Assign("barcode", $barcodeobj->getBarcodeHTML(1, 35, 'black')); $personnel = $this->Personnel->getBy(["USER" => $this->session->iduser]); if (!empty($operation['PERCUPAR'])) { $percepteur = $this->Personnel->get($operation['PERCUPAR']); $view->Assign("percepteur", $percepteur); } if (!empty($operation['IMPRIMERPAR'])) { $imprimeur = $this->Personnel->get($operation['IMPRIMERPAR']); } else { $imprimeur = $personnel; } $percepteur = $this->Personnel->get($operation['PERCUPAR']); $view->Assign("percepteur", $percepteur); $enregistreur = $this->Personnel->get($operation['ENREGISTRERPAR']); $view->Assign("enregistreur", $enregistreur); $view->Assign("imprimeur", $imprimeur); $view->Assign("estDirectrice", $this->session->idprofile === DIRECTOR_PROFILE ? true : false); $classe = $this->Eleve->getClasse($operation['ELEVE'], $this->session->anneeacademique); $view->Assign("classe", $classe); $montantapayer = $this->Frais->getClasseTotalFrais($classe['IDCLASSE']); $view->Assign("montantapayer", $montantapayer); $montantpayer = $this->Caisse->getMontantPayer($operation['ELEVE']); $view->Assign("montantpayer", $montantpayer); $content = $view->Render("caisse" . DS . "recu", false); $this->Assign("content", $content); }
<table class="dataTable" id="tablePeriodique"> <thead><tr><th>N°</th><th>Noms & Prénoms</th><th>T.Abs</th><th>Abs.J</th><th>Cons</th><th>Décis°</th></tr></thead> <tbody> </tbody> </table> </div> </div> <div class="navigation"> <div class="editions" style="float: left"> <img src="<?php echo img_imprimer(); ?> " /> Editions: <select onchange="imprimer();" name = "code_impression"> <option></option> <option value="0006">Fiche de suivi périodique des élèves pré-rempli Ou Non</option> </select> </div> <?php if (isAuth(330)) { echo btn_ok("validerSuivi()"); } else { echo btn_ok_disabled(); } ?> </div> </form> <div class="status"> </div>