コード例 #1
0
ファイル: itineraire-texte.php プロジェクト: wedesign-pf/Tit
$newfield = new select();
$newfield->field = "type_texte";
$newfield->multiLang = false;
$newfield->label = "Type texte";
$newfield->noneItem = true;
$newfield->items = $tab_type_texte_itineraire;
$newfield->valuesDisabled = $tab_type_texte;
$newfield->add();
$newfield = new editor();
$newfield->field = "texte";
$newfield->label = "Texte";
$newfield->height = 400;
$newfield->multiLang = true;
$newfield->startFolder = "itineraires";
$newfield->variablesAuthorized = true;
$newfield->add();
////////////////////////////////////////////////////////////////
// Action sur la liste ///////////////
if ($__POST["actionInList"] == "delete") {
    // suppression
    foreach ($_POST as $k => $v) {
        if (strpos($k, "deleteMe") === 0) {
            $idDel = substr($k, 8);
            if ((int) $idDel) {
                $myDelete = new myDelete(__FILE__);
                $myDelete->table = $myTable;
                $myDelete->where = "id={$idDel}";
                $result = $myDelete->execute();
                $deleteDone = true;
            }
        }