本文整理汇总了PHP中Grid::setColDate方法的典型用法代码示例。如果您正苦于以下问题:PHP Grid::setColDate方法的具体用法?PHP Grid::setColDate怎么用?PHP Grid::setColDate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Grid
的用法示例。
在下文中一共展示了Grid::setColDate方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: index
public function index()
{
if (!isAuth(211)) {
return;
}
$this->view->clientsJS("frais" . DS . "index");
$view = new View();
$frais = $this->Frais->getFrais($this->session->anneeacademique);
$grid = new Grid($frais, 0);
$grid->addcolonne(0, "IDFRAIS", "IDFRAIS", false);
$grid->addcolonne(1, "Classe", "LIBELLE");
$grid->addcolonne(2, "Niveau", "NIVEAUHTML");
$grid->addcolonne(3, "Description du frais", "DESCRIPTION");
$grid->addcolonne(4, "Montant", "MONTANT");
$grid->addcolonne(5, "Echéances", "ECHEANCES");
$grid->dataTable = "fraisTable";
$grid->actionbutton = true;
$grid->deletebutton = true;
$grid->droitdelete = 510;
$grid->droitedit = 511;
$grid->setColDate(5);
$view->Assign("frais", $grid->display());
$content = $view->Render("frais" . DS . "index", false);
$this->Assign("content", $content);
}
示例2: showEleves
private function showEleves()
{
$eleves = $this->Eleve->selectAll();
$grid = new Grid($eleves, 0);
$grid->addcolonne(0, "IDELEVE", "IDELEVE", false);
$grid->addcolonne(1, "Matricule", "MATRICULE");
$grid->addcolonne(2, "Nom et Prénom", "CNOM");
$grid->addcolonne(3, "Sexe", "SEXE");
$grid->addcolonne(4, "Date de Naiss.", "DATENAISS");
$grid->setColDate(4);
$grid->editbutton = true;
$grid->deletebutton = true;
$view = new View();
$view->Assign("eleves", $grid->display());
$view->Assign("errors", false);
$view->Assign("total", count($eleves));
$content = $view->Render("eleve" . DS . "showEleves", false);
$this->Assign("content", $content);
}
示例3: index
public function index()
{
if (!isAuth(201)) {
return;
}
$this->view->clientsJS("etablissement" . DS . "index");
$view = new View();
$ets = $this->Locan->selectAll()[0];
$view->Assign("ets", $ets['NOM']);
$view->Assign("responsable", $ets['RESPONSABLE']);
$view->Assign("adresse", $ets['ADRESSE']);
$view->Assign("tel1", $ets['TELEPHONE']);
$view->Assign("tel2", $ets['TELEPHONE2']);
$view->Assign("mobile", $ets['MOBILE']);
$view->Assign("email", $ets['EMAIL']);
$data = $this->Personnel->selectAll();
$personnels = new Grid($data, 2);
$personnels->dataTable = "persoTable";
$personnels->addcolonne(1, "Civ", "CIVILITE");
$personnels->addcolonne(2, "Matricule", "IDPERSONNEL", false);
$personnels->addcolonne(3, "Nom", "NOM");
$personnels->addcolonne(4, "Prénom", "PRENOM");
$personnels->addcolonne(5, "Fonction", "LIBELLE");
$personnels->addcolonne(6, "Téléphone", "TELEPHONE");
$personnels->actionbutton = false;
$view->Assign("personnels", $personnels->display());
$data = $this->Eleve->selectAllInscrit();
$eleves = new Grid($data, 0);
$eleves->dataTable = "eleveTable";
$eleves->addcolonne(0, "IDELEVE", "IDELEVE", false);
$eleves->addcolonne(1, "Matricule", "MATRICULE");
$eleves->addcolonne(2, "Nom", "NOM");
$eleves->addcolonne(3, "Prenom", "PRENOM");
$eleves->addcolonne(4, "Sexe", "SEXE");
$eleves->addcolonne(5, "Classe", "NIVEAUHTML");
$eleves->addcolonne(6, "Naissance", "DATENAISS");
$eleves->actionbutton = false;
$eleves->setColDate(6);
$view->Assign("eleves", $eleves->display());
$content = $view->Render("etablissement" . DS . "index", false);
$this->Assign("content", $content);
}
示例4: ajax
/**
* Ajax utiliser dans la page index de user
*/
public function ajax()
{
//Envoyer les infos de l'utilisateur
$user = $this->User->findSingleRowBy(["IDUSER" => $this->request->iduser]);
$view = new View();
$data = $this->User->mesConnexions($user["LOGIN"]);
$grid = new Grid($data, 0);
$grid->addcolonne(0, "IDCONNEXION", "IDCONNEXION", false);
$grid->addcolonne(1, "Date de début", "DATEDEBUT");
$grid->addcolonne(2, "Machine", "MACHINESOURCE");
$grid->addcolonne(3, "Adresse", "IPSOURCE");
$grid->addcolonne(4, "Connexion", "CONNEXION");
$grid->addcolonne(5, "Date de fin", "DATEFIN");
$grid->addcolonne(6, "Déconnexion", "DECONNEXION");
$grid->setColDate(1);
$grid->setColDate(5);
$grid->actionbutton = true;
$grid->deletebutton = true;
$grid->editbutton = false;
$total = count($data);
$view->Assign("connexions", $grid->display());
//Droit de l'utilisateur
$this->loadModel("droit");
$droits = $this->Droit->selectAll();
$mesdroits = json_decode($user["DROITSPECIFIQUE"]);
$view->Assign("droits", $droits);
$view->Assign("mesdroits", $mesdroits);
/*
* Variables de l'onglet 1
*/
$view->Assign("login", $user['LOGIN']);
$this->loadModel("profile");
$profile = $this->Profile->findSingleRowBy(["IDPROFILE" => $user['PROFILE']]);
$view->Assign("profile", $profile['PROFILE']);
$view->Assign("actif", $user['ACTIF'] == 1 ? 'Actif' : 'Non Actif');
//information du personnel
$this->loadModel("personnel");
$pers = $this->Personnel->findSingleRowBy(["USER" => $this->request->iduser]);
$view->Assign("idpersonnel", $pers['IDPERSONNEL']);
$view->Assign("civilite", $pers['CIVILITE']);
$view->Assign("nom", $pers['NOM']);
$view->Assign("prenom", $pers['PRENOM']);
$view->Assign("autrenom", $pers['AUTRENOM']);
$this->loadModel("fonction");
$fonction = $this->Fonction->findSingleRowBy(["IDFONCTION" => $pers['FONCTION']]);
$view->Assign("fonction", $fonction['LIBELLE']);
$view->Assign("grade", $pers['GRADE']);
$view->Assign("datenaiss", $pers['DATENAISS']);
$view->Assign("portable", $pers['PORTABLE']);
$view->Assign("telephone", $pers['TELEPHONE']);
$view->Assign("email", $pers['EMAIL']);
$arr = array();
$arr[0] = $view->Render("user" . DS . "ajax" . DS . "onglet1", false);
$arr[1] = $view->Render("user" . DS . "ajax" . DS . "onglet2", false);
$arr[2] = $view->Render("user" . DS . "ajax" . DS . "onglet3", false);
$arr[3] = $total;
echo json_encode($arr);
}