当前位置: 首页>>代码示例>>PHP>>正文


PHP confirmation_delete函数代码示例

本文整理汇总了PHP中confirmation_delete函数的典型用法代码示例。如果您正苦于以下问题:PHP confirmation_delete函数的具体用法?PHP confirmation_delete怎么用?PHP confirmation_delete使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了confirmation_delete函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: show_sourceout_form

function show_sourceout_form($source_id = 0, $connector_id, $name = "", $comment = "", $config_form = NULL)
{
    global $msg;
    print '<form method="POST" action="admin.php?categ=connecteurs&sub=out&action=source_update" name="form_connectorout" enctype="multipart/form-data">';
    if ($source_id) {
        print '<h3>' . $msg['connector_out_sourceedit'] . '</h3>';
    } else {
        print '<h3>' . $msg['connector_out_sourceadd'] . '</h3>';
    }
    print '<div class="form-contenu">';
    //id
    print '<input type="hidden" name="id" value="' . $source_id . '" />';
    print '<input type="hidden" name="connector_id" value="' . $connector_id . '" />';
    if ($config_form) {
        print '<br />';
        print call_user_func($config_form);
        print '<br />';
    }
    //buttons
    print "</div><div class='row'>";
    print '<div class="left">';
    print "<input class='bouton' type='button' value=' {$msg['76']} ' onClick=\"document.location='./admin.php?categ=connecteurs&sub=out'\" />&nbsp";
    print '<input class="bouton" type="submit" value="' . $msg[77] . '" />';
    print "</div><div class='right'>";
    if ($source_id) {
        print confirmation_delete("./admin.php?categ=connecteurs&sub=out&action=source_del&id=");
        print "<input class='bouton' type='button' value=' {$msg['supprimer']} ' onClick=\"javascript:confirmation_delete('" . $source_id . "','" . addslashes($name) . "')\" />";
    }
    print '</form>';
}
开发者ID:noble82,项目名称:proyectos-ULS,代码行数:30,代码来源:out.inc.php

示例2: show_lgstat_form

function show_lgstat_form($id = 0)
{
    global $msg;
    global $charset;
    global $lgstat_form;
    global $ptab;
    $lgstat_form = str_replace('!!id!!', $id, $lgstat_form);
    $sel_relance_option_0 = "";
    $sel_relance_option_1 = " selected='selected' ";
    if (!$id) {
        $lgstat_form = str_replace('!!form_title!!', htmlentities($msg['acquisition_lgstat_add'], ENT_QUOTES, $charset), $lgstat_form);
        $lgstat_form = str_replace('!!libelle!!', '', $lgstat_form);
    } else {
        $lgstat = new lgstat($id);
        if ($lgstat->relance == 0) {
            $sel_relance_option_0 = " selected='selected' ";
            $sel_relance_option_1 = "";
        }
        $lgstat_form = str_replace('!!form_title!!', htmlentities($msg['acquisition_lgstat_mod'], ENT_QUOTES, $charset), $lgstat_form);
        $lgstat_form = str_replace('!!libelle!!', htmlentities($lgstat->libelle, ENT_QUOTES, $charset), $lgstat_form);
        $ptab = str_replace('!!id!!', $id, $ptab);
        $ptab = str_replace('!!libelle_suppr!!', addslashes($lgstat->libelle), $ptab);
        if ($lgstat->id_statut != '1') {
            $lgstat_form = str_replace('<!-- bouton_sup -->', $ptab, $lgstat_form);
        }
    }
    $sel_relance = "<select id='relance' name ='relance' >";
    $sel_relance .= "<option value='1'" . $sel_relance_option_1 . ">" . htmlentities($msg[40], ENT_QUOTES, $charset) . "</option>";
    $sel_relance .= "<option value='0'" . $sel_relance_option_0 . ">" . htmlentities($msg[39], ENT_QUOTES, $charset) . "</option>";
    $sel_relance .= "</select>";
    $lgstat_form = str_replace('!!sel_relance!!', $sel_relance, $lgstat_form);
    print confirmation_delete("./admin.php?categ=acquisition&sub=lgstat&action=del&id=");
    print $lgstat_form;
}
开发者ID:noble82,项目名称:proyectos-ULS,代码行数:34,代码来源:lgstat.inc.php

示例3: get_form

 public function get_form($id = 0, $url = "./admin.php?categ=scan_request&sub=priorities")
 {
     global $msg, $charset;
     global $scan_request_priority_form;
     $form = str_replace("!!action!!", $url, $scan_request_priority_form);
     if ($id) {
         for ($i = 0; $i < count($this->scan_request_priorities); $i++) {
             if ($this->scan_request_priorities[$i]['id'] == $id) {
                 $priority = $this->scan_request_priorities[$i];
                 break;
             }
         }
     }
     if ($priority['id']) {
         $form = str_replace("!!form_title!!", $msg['scan_request_priorities_add'], $form);
         $form = str_replace("!!label!!", htmlentities($priority['label'], ENT_QUOTES, $charset), $form);
         $form = str_replace("!!weight!!", htmlentities($priority['weight'], ENT_QUOTES, $charset), $form);
         $form = str_replace("!!id!!", $priority['id'], $form);
         $form = str_replace("!!bouton_supprimer!!", "<input type='button' class='bouton' value=' " . $msg[63] . " ' onclick='confirmation_delete(\"&action=delete&id=" . $priority['id'] . "\",\"" . htmlentities($priority['label'], ENT_QUOTES, $charset) . "\")'/>", $form);
         $form .= confirmation_delete($url);
     } else {
         $form = str_replace("!!form_title!!", $msg['scan_request_priorities_update'], $form);
         $form = str_replace("!!label!!", "", $form);
         $form = str_replace("!!weight!!", "1", $form);
         $form = str_replace("!!id!!", 0, $form);
         $form = str_replace("!!bouton_supprimer!!", "", $form);
     }
     return $form;
 }
开发者ID:noble82,项目名称:proyectos-ULS,代码行数:29,代码来源:scan_request_priorities.class.php

示例4: infopage_form

function infopage_form($id = 0, $title_infopage = "", $content_infopage = "", $valid_infopage = 1, $restrict_infopage = 0)
{
    global $msg, $pmb_javascript_office_editor;
    global $admin_infopages_form;
    global $charset;
    if ($pmb_javascript_office_editor) {
        print $pmb_javascript_office_editor;
    }
    $admin_infopages_form = str_replace('!!id!!', $id, $admin_infopages_form);
    if (!$id) {
        $admin_infopages_form = str_replace('!!form_title!!', $msg['infopages_creer'], $admin_infopages_form);
    } else {
        $admin_infopages_form = str_replace('!!form_title!!', $msg['infopages_modifier'], $admin_infopages_form);
    }
    $admin_infopages_form = str_replace('!!title_infopage!!', htmlentities($title_infopage, ENT_QUOTES, $charset), $admin_infopages_form);
    $admin_infopages_form = str_replace('!!libelle_suppr!!', htmlentities(addslashes($title_infopage), ENT_QUOTES, $charset), $admin_infopages_form);
    $admin_infopages_form = str_replace('!!content_infopage!!', htmlentities($content_infopage, ENT_QUOTES, $charset), $admin_infopages_form);
    if ($valid_infopage) {
        $checkbox = "checked";
    } else {
        $checkbox = "";
    }
    $admin_infopages_form = str_replace('!!checkbox!!', $checkbox, $admin_infopages_form);
    if ($restrict_infopage) {
        $restrict_checkbox = "checked";
    } else {
        $restrict_checkbox = "";
    }
    $admin_infopages_form = str_replace('!!restrict_checkbox!!', $restrict_checkbox, $admin_infopages_form);
    print confirmation_delete("./admin.php?categ=infopages&sub=infopages&action=del&id=");
    print "<script type=\"text/javascript\">\n\t\tfunction test_form(form) {\n\t\tif(form.form_title_infopage.value.length == 0) {\n\t\t\talert(\"" . $msg[98] . "\");\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t\t}\n\t\t</script>";
    print $admin_infopages_form;
}
开发者ID:bouchra012,项目名称:PMB,代码行数:33,代码来源:infopages.inc.php

示例5: category_form

function category_form($categ_id = 0, $new_categ_name = "", $opac_expanded = false)
{
    global $msg, $dbh, $charset;
    print '<form method="POST" action="admin.php?categ=connecteurs&sub=categ&action=update" name="form_categ">';
    if (!$categ_id) {
        print '<h3>' . $msg['connecteurs_categ_add'] . '</h3>';
    } else {
        print '<h3>' . $msg['connecteurs_categ_edit'] . '</h3>';
    }
    print '<div class="form-contenu">';
    print '<input type="hidden" name="categ_id" value="' . $categ_id . '">';
    print '<div class=row><label class="etiquette" for="categ_name">' . $msg["connecteurs_categ_caption"] . '</label><br />';
    print '<input name="categ_name" type="text" value="' . htmlentities($new_categ_name, ENT_QUOTES, $charset) . '" class="saisie-80em">
			</div>';
    print '<div class=row><label class="etiquette" for="categ_opac_expanded">' . $msg["connecteurs_categ_opac_expanded"] . '</label><br />';
    print '<input name="categ_opac_expanded" type="checkbox" ' . ($opac_expanded ? "checked" : "") . ' >
			</div>';
    $sources_sql = 'SELECT connectors_sources.source_id, connectors_sources.name, connectors_categ_sources.num_categ, id_connector
		FROM connectors_sources LEFT JOIN connectors_categ_sources ON (connectors_sources.source_id = connectors_categ_sources.num_source AND connectors_categ_sources.num_categ=' . $categ_id . ') 
		order by connectors_sources.id_connector, connectors_sources.name';
    $resultat = pmb_mysql_query($sources_sql, $dbh);
    while ($row = pmb_mysql_fetch_object($resultat)) {
        $sources[] = $row;
    }
    $nbsources = count($sources);
    $content_input = '<select MULTIPLE name="categ_content[]" size="' . ($nbsources + 4) . '">';
    if (!$nbsources) {
        $content_input .= '<option value="">' . $msg["connecteurs_categories_none"] . '</option>';
    }
    $idconnectorconserve = "";
    foreach ($sources as $source) {
        if ($source->id_connector != $idconnectorconserve) {
            $idconnectorconserve = $source->id_connector;
            $content_input .= '<optgroup label="' . $idconnectorconserve . '" class="erreur">';
        }
        $content_input .= '<option value="' . $source->source_id . '" ' . ($source->num_categ ? 'SELECTED' : '') . ' style="color: rgb(0, 0, 0);">' . htmlentities($source->name, ENT_QUOTES, $charset) . '</option>';
    }
    $content_input .= '</select>';
    print '<div class=row><label class="etiquette" for="categ_content">' . $msg["connecteurs_included_sources"] . '</label><br />';
    print $content_input;
    print '</div></div>';
    print "<div class='row'>\n\t<div class='left'>";
    print "<input class='bouton' type='button' value=' {$msg['76']} ' onClick=\"document.location='./admin.php?categ=connecteurs&sub=categ'\" />&nbsp";
    print '<input class="bouton" type="submit" value="' . $msg[77] . '">';
    print "</div>\n\t<div class='right'>";
    if ($categ_id) {
        print confirmation_delete("./admin.php?categ=connecteurs&sub=categ&action=del&id=");
        print "<input class='bouton' type='button' value=' {$msg['supprimer']} ' onClick=\"javascript:confirmation_delete('" . $categ_id . "','" . addslashes($new_categ_name) . "')\" />";
    }
    print "</div>\n\t<br /><br /></div>";
    print '</form>';
}
开发者ID:noble82,项目名称:proyectos-ULS,代码行数:52,代码来源:categ.inc.php

示例6: group_form

function group_form($libelle = '', $id = 0)
{
    global $msg, $charset;
    global $admin_group_form;
    $admin_group_form = str_replace('!!id!!', $id, $admin_group_form);
    if (!$id) {
        $admin_group_form = str_replace('!!form_title!!', $msg['admin_usr_grp_add'], $admin_group_form);
    } else {
        $admin_group_form = str_replace('!!form_title!!', $msg['admin_usr_grp_mod'], $admin_group_form);
    }
    $admin_group_form = str_replace('!!libelle!!', htmlentities($libelle, ENT_QUOTES, $charset), $admin_group_form);
    $admin_group_form = str_replace('!!libelle_suppr!!', addslashes($libelle), $admin_group_form);
    print confirmation_delete("./admin.php?categ=users&sub=groups&action=del&id=");
    print $admin_group_form;
}
开发者ID:bouchra012,项目名称:PMB,代码行数:15,代码来源:users_groups.inc.php

示例7: get_form

 public function get_form()
 {
     global $msg, $charset, $ontology_form;
     $form = str_replace("!!id!!", $this->id, $ontology_form);
     $form = str_replace("!!name!!", $this->name, $form);
     $form = str_replace("!!description!!", $this->description, $form);
     if ($this->id) {
         $form = str_replace("!!form_title!!", htmlentities($msg['ontologies_edit'], ENT_QUOTES, $charset), $form);
         $form = str_replace("!!delete_btn!!", confirmation_delete("./admin.php?categ=ontologies&sub=general&act=delete&ontology_id=") . "<input class='bouton' type='button' value='{$msg['supprimer']}' onClick=\"javascript:confirmation_delete(" . $this->id . ",'" . $this->name . "')\" />", $form);
     } else {
         $form = str_replace("!!form_title!!", htmlentities($msg['ontologies_add'], ENT_QUOTES, $charset), $form);
         $form = str_replace("!!delete_btn!!", "", $form);
     }
     return $form;
 }
开发者ID:noble82,项目名称:proyectos-ULS,代码行数:15,代码来源:ontology.class.php

示例8: codstat_form

function codstat_form($libelle = "", $id = 0)
{
    global $msg;
    global $admin_statlec_form;
    global $charset;
    $admin_statlec_form = str_replace('!!id!!', $id, $admin_statlec_form);
    if (!$id) {
        $admin_statlec_form = str_replace('!!form_title!!', $msg[101], $admin_statlec_form);
    } else {
        $admin_statlec_form = str_replace('!!form_title!!', $msg[102], $admin_statlec_form);
    }
    $admin_statlec_form = str_replace('!!libelle!!', htmlentities($libelle, ENT_QUOTES, $charset), $admin_statlec_form);
    $admin_statlec_form = str_replace('!!libelle_suppr!!', addslashes($libelle), $admin_statlec_form);
    print confirmation_delete("./admin.php?categ=empr&sub=codstat&action=del&id=");
    print $admin_statlec_form;
}
开发者ID:bouchra012,项目名称:PMB,代码行数:16,代码来源:cod_stat.inc.php

示例9: map_echelle_form

function map_echelle_form($nom = "", $id = 0)
{
    global $msg;
    global $admin_map_echelle_form;
    global $charset;
    $admin_map_echelle_form = str_replace('!!id!!', $id, $admin_map_echelle_form);
    if (!$id) {
        $admin_map_echelle_form = str_replace('!!form_title!!', $msg[admin_noti_map_echelle_ajout], $admin_map_echelle_form);
    } else {
        $admin_map_echelle_form = str_replace('!!form_title!!', $msg[admin_noti_map_echelle_modification], $admin_map_echelle_form);
    }
    $admin_map_echelle_form = str_replace('!!nom!!', htmlentities($nom, ENT_QUOTES, $charset), $admin_map_echelle_form);
    $admin_map_echelle_form = str_replace('!!nom_suppr!!', addslashes($nom), $admin_map_echelle_form);
    print confirmation_delete("./admin.php?categ=notices&sub=map_echelle&action=del&id=");
    print $admin_map_echelle_form;
}
开发者ID:noble82,项目名称:proyectos-ULS,代码行数:16,代码来源:map_echelle.inc.php

示例10: clas_form

function clas_form($libproc_classement = "", $idproc_classement = 0)
{
    global $msg;
    global $charset;
    global $admin_procs_clas_form;
    $admin_procs_clas_form = str_replace('!!idproc_classement!!', $idproc_classement, $admin_procs_clas_form);
    if (!$idproc_classement) {
        $admin_procs_clas_form = str_replace('!!form_title!!', $msg[proc_clas_bt_add], $admin_procs_clas_form);
    } else {
        $admin_procs_clas_form = str_replace('!!form_title!!', $msg["proc_clas_modif"], $admin_procs_clas_form);
    }
    $admin_procs_clas_form = str_replace('!!libelle!!', htmlentities($libproc_classement, ENT_QUOTES, $charset), $admin_procs_clas_form);
    $admin_procs_clas_form = str_replace('!!libelle_suppr!!', addslashes($libproc_classement), $admin_procs_clas_form);
    print confirmation_delete("./admin.php?categ=proc&sub=clas&action=del&idproc_classement=");
    print $admin_procs_clas_form;
}
开发者ID:bouchra012,项目名称:PMB,代码行数:16,代码来源:clas.inc.php

示例11: lender_form

function lender_form($libelle = "", $id = 0)
{
    global $msg;
    global $admin_lender_form;
    global $charset;
    $admin_lender_form = str_replace('!!id!!', $id, $admin_lender_form);
    if (!$id) {
        $admin_lender_form = str_replace('!!form_title!!', $msg[555], $admin_lender_form);
    } else {
        $admin_lender_form = str_replace('!!form_title!!', $msg[557], $admin_lender_form);
    }
    $admin_lender_form = str_replace('!!libelle!!', htmlentities($libelle, ENT_QUOTES, $charset), $admin_lender_form);
    $admin_lender_form = str_replace('!!libelle_suppr!!', addslashes($libelle), $admin_lender_form);
    print confirmation_delete("./admin.php?categ=docs&sub=lenders&action=del&id=");
    print $admin_lender_form;
}
开发者ID:bouchra012,项目名称:PMB,代码行数:16,代码来源:lender.inc.php

示例12: show_esuser_form

function show_esuser_form($id = 0, $esu_username = '', $esu_fullname = '', $esu_password = '', $esu_groupid = 0)
{
    global $msg, $charset;
    print '<form method="POST" action="admin.php?categ=external_services&sub=esusers&action=update" name="form_esuser">';
    if (!$id) {
        print '<h3>' . $msg['es_users_add'] . '</h3>';
    } else {
        print '<h3>' . $msg['es_users_edit'] . '</h3>';
    }
    print '<div class="form-contenu">';
    //id
    print '<input type="hidden" name="id" value="' . $id . '">';
    //username
    print '<div class=row><label class="etiquette" for="esuser_username">' . $msg["es_user_username"] . '</label><br />';
    print '<input name="esuser_username" type="text" value="' . htmlentities($esu_username, ENT_QUOTES, $charset) . '" class="saisie-80em">
			</div>';
    //fullname
    print '<div class=row><label class="etiquette" for="esuser_fullname">' . $msg["es_user_fullname"] . '</label><br />';
    print '<input name="esuser_fullname" type="text" value="' . htmlentities($esu_fullname, ENT_QUOTES, $charset) . '" class="saisie-80em">
			</div>';
    //password
    print '<div class=row><label class="etiquette" for="esuser_password">' . $msg["es_user_password"] . '</label><br />';
    print '<input name="esuser_password" type="text" value="' . htmlentities($esu_password, ENT_QUOTES, $charset) . '" class="saisie-80em">
			</div>';
    //group
    $esgroups = new es_esgroups();
    $groupselect = '<select name="esuser_esgroup">';
    $groupselect .= '<option value="0">' . $msg["es_user_group_none"] . '</option>';
    foreach ($esgroups->groups as &$aesgroup) {
        $groupselect .= '<option ' . ($esu_groupid == $aesgroup->esgroup_id ? 'selected' : '') . ' value="' . $aesgroup->esgroup_id . '">' . htmlentities($aesgroup->esgroup_name . ' (' . $aesgroup->esgroup_fullname . ')', ENT_QUOTES, $charset) . '</option>';
    }
    $groupselect .= '</select>';
    print '<div class=row><label class="etiquette" for="esuser_esgroup">' . $msg["es_user_group"] . '</label><br />';
    print $groupselect;
    print '</div>';
    //buttons
    print "<br /><div class='row'>\n\t<div class='left'>";
    print "<input class='bouton' type='button' value=' {$msg['76']} ' onClick=\"document.location='./admin.php?categ=external_services&sub=esusers'\" />&nbsp";
    print '<input class="bouton" type="submit" value="' . $msg[77] . '">';
    print "</div>\n\t<div class='right'>";
    if ($id) {
        print confirmation_delete("./admin.php?categ=external_services&sub=esusers&action=del&id=");
        print "<input class='bouton' type='button' value=' {$msg['supprimer']} ' onClick=\"javascript:confirmation_delete('" . $id . "','" . addslashes($esu_username) . "')\" />";
    }
    print "</div>\n\t<br /><br /></div>";
    print '</form>';
}
开发者ID:noble82,项目名称:proyectos-ULS,代码行数:47,代码来源:esusers.inc.php

示例13: emplacement_form

function emplacement_form($libelle = "", $id = 0)
{
    global $msg;
    global $admin_emplacement_form;
    global $charset;
    $admin_emplacement_form = str_replace('!!id!!', $id, $admin_emplacement_form);
    if (!$id) {
        $admin_emplacement_form = str_replace('!!form_title!!', $msg["admin_collstate_add_emplacement"], $admin_emplacement_form);
        $admin_emplacement_form = str_replace('!!supprimer!!', "", $admin_emplacement_form);
    } else {
        $admin_emplacement_form = str_replace('!!form_title!!', $msg["admin_collstate_edit_emplacement"], $admin_emplacement_form);
        print confirmation_delete("./admin.php?categ=collstate&sub=emplacement&action=del&id=");
        $admin_emplacement_form = str_replace('!!supprimer!!', "<input class='bouton' type='button' value=' " . $msg["supprimer"] . " ' onClick=\"javascript:confirmation_delete({$id},'" . addslashes($libelle) . "')\" />", $admin_emplacement_form);
    }
    $admin_emplacement_form = str_replace('!!libelle!!', htmlentities($libelle, ENT_QUOTES, $charset), $admin_emplacement_form);
    print $admin_emplacement_form;
}
开发者ID:bouchra012,项目名称:PMB,代码行数:17,代码来源:emplacement.inc.php

示例14: show_frais_form

function show_frais_form($id = 0)
{
    global $dbh, $msg;
    global $charset;
    global $frais_form;
    global $ptab;
    global $acquisition_gestion_tva;
    $frais_form = str_replace('!!id!!', $id, $frais_form);
    if (!$id) {
        $frais_form = str_replace('!!form_title!!', htmlentities($msg[acquisition_ajout_frais], ENT_QUOTES, $charset), $frais_form);
        $frais_form = str_replace('!!libelle!!', '', $frais_form);
        $frais_form = str_replace('!!condition!!', '', $frais_form);
        $frais_form = str_replace('!!montant!!', '', $frais_form);
        $frais_form = str_replace('!!cp_compta!!', '', $frais_form);
    } else {
        $frais = new frais($id);
        $frais_form = str_replace('!!form_title!!', htmlentities($msg[acquisition_modif_frais], ENT_QUOTES, $charset), $frais_form);
        $frais_form = str_replace('!!libelle!!', htmlentities($frais->libelle, ENT_QUOTES, $charset), $frais_form);
        $frais_form = str_replace('!!condition!!', htmlentities($frais->condition_frais, ENT_QUOTES, $charset), $frais_form);
        $frais_form = str_replace('!!montant!!', $frais->montant, $frais_form);
        $frais_form = str_replace('!!cp_compta!!', $frais->num_cp_compta, $frais_form);
        $ptab = str_replace('!!id!!', $id, $ptab);
        $ptab = str_replace('!!libelle_suppr!!', addslashes($frais->libelle), $ptab);
        $frais_form = str_replace('<!-- bouton_sup -->', $ptab, $frais_form);
    }
    if ($acquisition_gestion_tva) {
        $form_tva = "<select id='tva_achat' name ='tva_achat' >";
        $q = tva_achats::listTva();
        $res = pmb_mysql_query($q, $dbh);
        while ($row = pmb_mysql_fetch_object($res)) {
            $form_tva .= "<option value='" . $row->id_tva . "' ";
            if ($id) {
                if ($frais->num_tva_achat == $row->id_tva) {
                    $form_tva .= "selected ";
                }
            }
            $form_tva .= ">" . $row->libelle . " - " . $row->taux_tva . " %</option>";
        }
        $form_tva .= "</select>";
        $frais_form = str_replace('!!tva_achat!!', $form_tva, $frais_form);
    }
    print confirmation_delete("./admin.php?categ=acquisition&sub=frais&action=del&id=");
    print $frais_form;
}
开发者ID:noble82,项目名称:proyectos-ULS,代码行数:44,代码来源:frais.inc.php

示例15: show_categ_form

function show_categ_form($id = 0, $setcateg_name = '', $setcateg_sets = array())
{
    global $msg, $charset;
    print '<form method="POST" action="admin.php?categ=connecteurs&sub=categout_sets&action=update" name="form_outsetcateg">';
    if (!$id) {
        print '<h3>' . $msg['admin_connecteurs_setcateg_add'] . '</h3>';
    } else {
        print '<h3>' . $msg['admin_connecteurs_setcateg_edit'] . '</h3>';
    }
    print '<div class="form-contenu">';
    //id
    print '<input type="hidden" name="id" value="' . $id . '">';
    //name
    print '<div class=row><label class="etiquette" for="setcateg_name">' . $msg["admin_connecteurs_setcateg_name"] . '</label><br />';
    print '<input name="setcateg_name" type="text" value="' . htmlentities($setcateg_name, ENT_QUOTES, $charset) . '" class="saisie-80em">
			</div>';
    //included sets
    $out_sets = new connector_out_sets();
    $included_sets = '<select MULTIPLE name="setcateg_sets[]">';
    $included_sets .= '<option value="">' . $msg["admin_connecteurs_setcateg_none"] . '</option>';
    foreach ($out_sets->sets as &$aset) {
        $included_sets .= '<option ' . (in_array($aset->id, $setcateg_sets) ? ' selected ' : '') . ' value="' . $aset->id . '">' . htmlentities($aset->caption, ENT_QUOTES, $charset) . '</option>';
    }
    $included_sets .= '</select>';
    print '<div class=row><label class="etiquette" for="setcateg_sets">' . $msg["admin_connecteurs_setcateg_includedsets"] . '</label><br />';
    print $included_sets;
    print '</div>';
    //buttons
    print "</div><div class='row'>\n\t<div class='left'>";
    print "<input class='bouton' type='button' value=' {$msg['76']} ' onClick=\"document.location='./admin.php?categ=connecteurs&sub=categout_sets'\" />&nbsp";
    print '<input class="bouton" type="submit" value="' . $msg[77] . '">';
    print "</div>\n\t<div class='right'>";
    if ($id) {
        print confirmation_delete("./admin.php?categ=connecteurs&sub=categout_sets&action=del&id=");
        print "<input class='bouton' type='button' value=' {$msg['supprimer']} ' onClick=\"javascript:confirmation_delete('" . $id . "','" . addslashes($setcateg_name) . "')\" />";
    }
    print "</div>&nbsp;";
    print '</form>';
}
开发者ID:noble82,项目名称:proyectos-ULS,代码行数:39,代码来源:out_set_categ.inc.php


注:本文中的confirmation_delete函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。