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


PHP make_button函数代码示例

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


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

示例1: xhtml

 public function xhtml()
 {
     global $ID;
     $ns = getNS($ID);
     list($files, $subprojects) = Projects_file::project_files($ns);
     $generated = array();
     $source = array();
     foreach ($files as $id => $file) {
         if ($file->type() == 'source') {
             $source[$id] = $file;
         } elseif ($file->type() == 'generated') {
             $generated[$id] = $file;
         }
     }
     ksort($generated);
     ksort($source);
     sort($subprojects);
     echo '<h1>Source files</h1>' . DOKU_LF;
     echo '<ul>' . DOKU_LF;
     echo '<li>' . create_button('source') . '</li>' . DOKU_LF;
     foreach ($source as $id => $file) {
         echo '<li>' . html_wikilink($id) . ': ' . download_button($id) . ', ' . delete_button($id) . '</li>' . DOKU_LF;
     }
     echo '</ul>' . DOKU_LF;
     echo '<h1>Generated files</h1>' . DOKU_LF;
     echo '<ul>' . DOKU_LF;
     echo '<li>' . create_button('generated') . '</li>' . DOKU_LF;
     foreach ($generated as $id => $file) {
         $make = make_button($id, $file->status() == PROJECTS_MADE);
         echo '<li>' . html_wikilink($id) . ': ' . download_button($id) . ', ' . delete_button($id) . ', ' . $make . '</li>' . DOKU_LF;
     }
     echo '</ul>' . DOKU_LF;
     echo '<h1>Subprojects</h1>' . DOKU_LF;
     echo '<ul>' . DOKU_LF;
     echo '<li>' . create_button($ID, 'project') . '</li>' . DOKU_LF;
     foreach ($subprojects as $sub) {
         echo '<li><a href="' . wl($sub . ':', array('do' => 'manage_files')) . '">' . noNS($sub) . '</a></li>' . DOKU_LF;
     }
     echo '</ul>' . DOKU_LF;
     if ($ns) {
         $name = getNS($ns);
         $id = $name . ':';
         if (!$name) {
             $id = '/';
             $name = '/ (root)';
         }
         echo '<h1>Parent projects</h1>' . DOKU_LF;
         echo '<ul><li><a href="' . wl($id, array('do' => 'manage_files')) . '">' . $name . '</a></li></ul>' . DOKU_LF;
     }
 }
开发者ID:roverrobot,项目名称:projects,代码行数:50,代码来源:manage_files.php

示例2: createTabs

 protected function createTabs($file)
 {
     parent::createTabs($file);
     $summary = $this->tabs->tab('Summary');
     if ($file->is_making()) {
         $summary->newAction(kill_button($file->id()));
     } else {
         $summary->newAction(make_button($file->id(), $file->status() == PROJECTS_MADE));
     }
     $summary->setContent($this->content($file));
     $recipe = new Projects_RecipeTab($this->tabs, $file, $this->read_only());
     $this->tabs->newTab($recipe);
     $log = new Projects_LogTab($this->tabs, $file);
     $this->tabs->newTab($log);
 }
开发者ID:roverrobot,项目名称:projects,代码行数:15,代码来源:generated.php

示例3: make_button

        $rsdupe = $DB->Execute("SELECT * FROM calendar WHERE ref_prat=" . $_GET[id]);
        if ($rsdupe->RecordCount() > 10) {
            $response[text] = PRATICHE_MOVE_ERRCAL . "<br><br>" . make_button("pratiche_show.php?id=" . $_GET[id], PRATICHE_BACK_SHOW);
        } else {
            PratToHistory($_GET[id]);
            $response[text] = PRATICHE_MOVE_DONE . "<br><br>" . make_button("pratiche_view.php", PRATICHE_BACK_LIST);
        }
        print draw_response($response);
    } elseif ($_GET[action] == "rest") {
        $response[title] = PRATICHE_RESTTIT;
        $response[text] = PRATICHE_REST_TXT . "<br><br>" . make_button("pratiche_show.php?action=restok&id=" . $_GET[id], PRATICHE_RESTTIT) . " &nbsp;&nbsp;&nbsp;&nbsp" . make_button("pratiche_show.php?id=" . $_GET[id], PRATICHE_BACK_SHOW);
        print draw_response($response);
    } elseif ($_GET[action] == "restok") {
        $response[title] = PRATICHE_RESTTIT;
        HistoryToPrat($_GET[id]);
        $response[text] = PRATICHE_REST_DONE . "<br><br>" . make_button("pratiche_view.php", PRATICHE_BACK_LIST);
        print draw_response($response);
    }
} else {
    $response[title] = FW_ERROR_NO_PERM;
    $response[text] = FW_ERROR_NO_PERM_TXT;
    $iserror = 1;
    print draw_response($response);
}
$PAGE[PAGE_CONTENT] = ob_get_contents();
ob_end_clean();
template_define_elements();
final_render();
?>

开发者ID:HadoDokis,项目名称:knomos-plus,代码行数:29,代码来源:pratiche_show.php

示例4: make_button

    $thisform[Fields][send][content] = "submit||" . ADMIN_SET_UPD . "||";
    $response[title] = ADMIN_SET_UPD_DONE;
    $response[text] = ADMIN_SET_UPD_DONE_TXT . "<br><br>" . make_button($CONF[url_base] . "main.php", ADMIN_SET_BACK_LIST);
} elseif (isset($_GET[id])) {
    $result = $_POST;
    $PAGE[PAGE_INTITLE] = ADMIN_SET_UPD;
    $PAGE[TXT_TITLE] = ADMIN_SET_UPD;
    $response[title] = ADMIN_SET_UPD_DONE;
    $response[text] = ADMIN_SET_UPD_DONE_TXT . "<br><br>" . make_button($CONF[url_base] . "main.php", ADMIN_SET_BACK_LIST);
    $thisform[onpost] = str_replace("type::add", "type::upd", $thisform[onpost]);
    $thisform[Fields][send][content] = "submit||" . ADMIN_SET_UPD . "||";
} else {
    $PAGE[PAGE_INTITLE] = ADMIN_SET_ADD;
    $PAGE[TXT_TITLE] = ADMIN_SET_ADD;
    $response[title] = ADMIN_SET_ADD_DONE;
    $response[text] = ADMIN_SET_ADD_DONE_TXT . "<br><br>" . make_button("set_home_view.php", ADMIN_SET_BACK_LIST);
    $thisform[Fields][send][content] = "submit||" . ADMIN_SET_ADD . "||";
}
if ($_POST[form_id] == $thisform["name"]) {
    if (isset($_POST[form_page])) {
        $page = $_POST[form_page];
    } else {
        $page = 1;
    }
    $error = check_form($thisform, $_POST, $page);
    if ($error == 1) {
        $manage = manage_post($thisform, $error, $_POST, $_GET[id]);
        $manage = 6;
        //aggiunto per evitare l'errore
    } else {
        print draw_form($thisform, $module, $error, $_POST, $page);
开发者ID:HadoDokis,项目名称:knomos-plus,代码行数:31,代码来源:new_set_dbox.php

示例5: make_button

    $thisform[Fields][send][content] = "submit||" . ADMIN_CT_UPD . "||";
    $response[title] = ADMIN_CT_UPD_DONE;
    $response[text] = ADMIN_UG_UPD_DONE_TXT . "<br><br>" . make_button("tip_uff_giud_view.php", ADMIN_UG_BACK_LIST);
} elseif (isset($_GET[id])) {
    $result = $_POST;
    $PAGE[PAGE_INTITLE] = ADMIN_CT_UPD;
    $PAGE[TXT_TITLE] = ADMIN_CT_UPD;
    $response[title] = ADMIN_CT_UPD_DONE;
    $response[text] = ADMIN_UG_UPD_DONE_TXT . "<br><br>" . make_button("tip_uff_giud_view.php", ADMIN_UG_BACK_LIST);
    $thisform[onpost] = str_replace("type::add", "type::upd", $thisform[onpost]);
    $thisform[Fields][send][content] = "submit||" . ADMIN_CT_UPD . "||";
} else {
    $PAGE[PAGE_INTITLE] = ADMIN_CT_ADD;
    $PAGE[TXT_TITLE] = ADMIN_CT_ADD;
    $response[title] = ADMIN_CT_ADD_DONE;
    $response[text] = ADMIN_UG_ADD_DONE_TXT . "<br><br>" . make_button("tip_uff_giud_view.php", ADMIN_UG_BACK_LIST);
    $thisform[Fields][send][content] = "submit||" . ADMIN_CT_ADD . "||";
}
if ($_POST[form_id] == $thisform["name"]) {
    if (isset($_POST[form_page])) {
        $page = $_POST[form_page];
    } else {
        $page = 1;
    }
    $error = check_form($thisform, $_POST, $page);
    if ($error == 1) {
        $manage = manage_post($thisform, $error, $_POST, $_GET[id]);
        $manage = 6;
        //aggiunto per evitare l'errore
    } else {
        print draw_form($thisform, $module, $error, $_POST, $page);
开发者ID:HadoDokis,项目名称:knomos-plus,代码行数:31,代码来源:new_tip_uff_giud.php

示例6: load_fwobject

 // HISTORY
 $thislist = load_fwobject("lists", "document", 1);
 $thislist[sql_select] .= $_GET[id];
 $rs_tmp = $DB->Execute($thislist[sql_select]);
 if ($result[ref_id] == 0) {
     $rs_lock = $DB->Execute("SELECT * from {$module} WHERE (id=" . $result[id] . " or ref_id=" . $result[id] . ") AND `lock`>0");
 } else {
     $rs_lock = $DB->Execute("SELECT * from {$module} WHERE (id=" . $result[ref_id] . " or ref_id=" . $result[ref_id] . ") AND `lock`>0");
 }
 $thisobj["Fields"]["button_v"] = '<input type="button" value="' . DOCUMENT_OPEN_WEB . '" class="bot-submit" onClick="newwin = window.open(\'' . $CONF[url_base] . $CONF[dir_upload] . 'document/' . $result[filename] . '-' . $result[id] . '-' . $result[version] . '.' . $result[ext] . '\',\'newwin\',\'left=0,top=0,screenX=0,screenY=0,width=800,height=600,resizable=yes,scrollbars=yes\'); newwin.resizeTo(screen.width,screen.height);">';
 $thisobj["Fields"]["button_w"] = FW_MODIFY;
 $thisobj["Fields"]["button_d"] = FW_DELETE;
 if ($rs_lock->RecordCount() == 0) {
     $thisobj["Fields"]["button_v"] = '<input type="button" value="' . DOCUMENT_OPEN_WEB . '" class="bot-submit" onClick="newwin = window.open(\'' . $CONF[url_base] . $CONF[dir_upload] . 'document/' . $result[filename] . '-' . $result[id] . '-' . $result[version] . '.' . $result[ext] . '\',\'newwin\',\'left=0,top=0,screenX=0,screenY=0,width=800,height=600,resizable=yes,scrollbars=yes\'); newwin.resizeTo(screen.width,screen.height);">';
     if ($_SESSION[history] == 0) {
         $thisobj["Fields"]["button_w"] = make_button("mod_document.php?id=" . $_GET[id], FW_MODIFY);
     } else {
         $thisobj["Fields"]["button_w"] = FW_MODIFY;
     }
     if ($_SESSION["user"][admin] == 1) {
         $thisobj["Fields"]["button_d"] = make_button_del($CONF[url_base] . $CONF[dir_modules] . "document/pages/documents_view.php?form_id=listdoc&form_page=1&ref_prat[text]=&ref_prat[realval][]=" . $result[ref_prat] . "&id=" . $_GET[id] . "&action=del", FW_DELETE);
     } else {
         $thisobj["Fields"]["button_d"] = FW_DELETE;
     }
     if ($rs_tmp->RecordCount() > 0) {
         $thisobj["Fields"]["history"] = draw_list($thislist, $module);
     } else {
         $thisobj["Fields"]["history"] = '<b><center>' . DOCUMENT_NOHIST . '</center></b>';
     }
 } else {
     $rs_user = $DB->Execute("SELECT * FROM " . $CONF[auth_db_table] . " WHERE id=" . $result[user_lock]);
开发者ID:HadoDokis,项目名称:knomos-plus,代码行数:31,代码来源:document_show.php

示例7: make_button

$SHOW[prestazioni][0]["Fields"]["anticipazioni"] = PRESTAZIONI_ANTIC;
$SHOW[prestazioni][0]["Fields"]["note"] = FW_NOTE;
$SHOW[prestazioni][0]["Fields"]["button1"] = make_button("prestazioni_view.php", PRESTAZIONI_BACK_LIST);
$SHOW[prestazioni][0]["Fields"]["button2"] = make_button("new_prestazione.php?id=" . $_GET[id], PRESTAZIONI_UPD);
$SHOW[prestazioni][1]["object_template"] = "spesa_studio.tpl";
$SHOW[prestazioni][1]["sql_select"] = "SELECT * FROM prestazioni WHERE id=%[ID]%";
$SHOW[prestazioni][1]["options"] = "perm::0";
$SHOW[prestazioni][1]["Fields"]["data"] = FW_DATE . "::date";
$SHOW[prestazioni][1]["Fields"]["testo"] = FW_TEXT;
$SHOW[prestazioni][1]["Fields"]["codice"] = PRESTAZIONI_CODE;
$SHOW[prestazioni][1]["Fields"]["ref_id"] = "Riferimento" . "::[SELECT * FROM pratiche WHERE id='%ID%';;pr_codice]";
$SHOW[prestazioni][1]["Fields"]["operatore"] = PRESTAZIONI_USER . "::func=>prestazioni_operator_show";
$SHOW[prestazioni][1]["Fields"]["sp_studio"] = "Importo";
$SHOW[prestazioni][1]["Fields"]["note"] = FW_NOTE;
$SHOW[prestazioni][1]["Fields"]["button1"] = make_button("prestazioni_view.php", PRESTAZIONI_BACK_LIST);
$SHOW[prestazioni][1]["Fields"]["button2"] = make_button("new_spesa_studio.php?id=" . $_GET[id], PRESTAZIONI_UPD);
function prestazioni_operator_show($row)
{
    global $DB, $CONF;
    $cnt = 0;
    foreach (explode(",,", $row[operatore]) as $v) {
        if ($cnt > 0) {
            $cur .= ", ";
        }
        $rs = $DB->Execute("SELECT * FROM " . $CONF[auth_db_table] . " WHERE id='" . $v . "'");
        $op = $rs->FetchRow();
        $cur .= $op[nome] . " (" . $op[codice] . ")";
        $cnt++;
    }
    return $cur;
}
开发者ID:HadoDokis,项目名称:knomos-plus,代码行数:31,代码来源:show.php

示例8: ob_start

    }
}
ob_start();
$rs = $DB->Execute("SELECT * FROM {$module} WHERE id=" . $_GET[id]);
if (!($result = $rs->FetchRow())) {
    $response[title] = FW_ERROR_NO_PERM;
    $response[text] = FW_ERROR_NO_PERM_TXT;
    $iserror = 1;
    print draw_response($response);
} else {
    $PAGE_ELEMENT[PAGE][1][0][param] = $result[ref_id];
    if (check_perm_obj("pratiche", $result[ref_id], "r")) {
        insert_last_viewed($result[ref_id], "pratiche");
        $thisobj = load_fwobject("show", "prestazioni", 1);
        if ($_SESSION[history] == 0) {
            $thisobj["Fields"]["button_w"] = make_button("new_spesa_studio.php?id=" . $_GET[id], FW_MODIFY);
        } else {
            $thisobj["Fields"]["button_w"] = FW_MODIFY;
        }
        $thisobj["Fields"]["button_d"] = make_button_del($str_prima_nota, FW_DELETE);
        print draw_object($thisobj, intval($_GET[id]), $module);
    } else {
        $response[title] = FW_ERROR_NO_PERM;
        $response[text] = FW_ERROR_NO_PERM_TXT;
        $iserror = 1;
        print draw_response($response);
    }
}
$PAGE[PAGE_CONTENT] = ob_get_contents();
ob_end_clean();
template_define_elements();
开发者ID:HadoDokis,项目名称:knomos-plus,代码行数:31,代码来源:spesa_studio_show.php

示例9: show_info

{
    global $as_root_path;
    return !@function_exists('realpath') || !@realpath($as_root_path . 'includes/functions.php') ? $path : @realpath($path);
}
function show_info($function, $basic = 0)
{
    $func = new ReflectionFunction($function);
    $ret = '';
    $ret .= "<pre><strong>Information:</strong>\n" . var_export($func->getDocComment(), 1) . "</pre>\n";
    if ($basic) {
        $ret .= "<pre><pre>===> The " . ($func->isInternal() ? 'internal' : 'user-defined') . " function '" . $func->getName() . "'\n" . "\tdeclared in " . $func->getFileName() . "\n\tlines " . $func->getStartLine() . " to " . $func->getEndline() . "</pre>\n";
    }
    return $ret;
}
if ($button && $text) {
    make_button($text, $button);
    return;
}
$handle = opendir($libdir);
$host_list = array();
while ($file = readdir($handle)) {
    if ($file != "." && is_dir("{$libdir}/{$file}")) {
        if (file_exists("{$libdir}/{$file}/{$as_pkg}.state")) {
            $host_list[] = $file;
        }
    }
}
if ($host) {
    $libdir = $libdir . "/{$host}";
    $imgdir = "img/{$host}";
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:31,代码来源:amavis.stats.php

示例10: template_define_elements

//template_init(); //mobile=6 - desktop =()
template_define_elements();
ob_start();
$thisform = load_fwobject("form", "pratiche", 1);
if (isset($_GET[id]) && isset($_GET[type])) {
    $rs = $DB->Execute("SELECT * FROM note WHERE ref_id=" . $_GET[id] . " AND type='" . $_GET[type] . "'");
    if ($result = $rs->FetchRow()) {
        $PAGE[PAGE_INTITLE] = NOTE_UPD;
        $PAGE[TXT_TITLE] = NOTE_UPD;
        $thisform[onpost] = str_replace("type::add", "type::upd", $thisform[onpost]);
        $thisform[Fields][send][content] = "submit||" . NOTE_UPD . "||";
    } else {
        $PAGE[PAGE_INTITLE] = NOTE_ADD;
        $PAGE[TXT_TITLE] = NOTE_ADD;
        $response[title] = NOTE_ADD_DONE;
        $response[text] = NOTE_ADD_DONE_TXT . "<br><br>" . make_button("pratiche_view.php", PRATICHE_BACK_LIST);
    }
    if ($_POST[form_id] == $thisform["name"]) {
        if (isset($_POST[form_page])) {
            $page = $_POST[form_page];
        } else {
            $page = 1;
        }
        $error = check_form($thisform, $_POST, $page);
        if ($error == 1) {
            $manage = manage_post($thisform, $error, $_POST, $_GET[id]);
        } else {
            print draw_form($thisform, $module, $error, $_POST, $page);
        }
        if ($manage == 1) {
            $page = $_POST[form_page] + 1;
开发者ID:HadoDokis,项目名称:knomos-plus,代码行数:31,代码来源:note.php

示例11: make_button

    $thisform[Fields][send][content] = "submit||" . ADMIN_CAL_STD_UPD . "||";
    $response[title] = ADMIN_CAL_STD_UPD_DONE;
    $response[text] = ADMIN_CAL_STD_UPD_DONE_TXT . "<br><br>" . make_button("cal_std_view.php", ADMIN_CAL_STD_BACK_LIST);
} elseif (isset($_GET[id])) {
    $result = $_POST;
    $PAGE[PAGE_INTITLE] = ADMIN_CAL_STD_UPD;
    $PAGE[TXT_TITLE] = ADMIN_CAL_STD_UPD;
    $response[title] = ADMIN_CAL_STD_UPD_DONE;
    $response[text] = ADMIN_CAL_STD_UPD_DONE_TXT . "<br><br>" . make_button("cal_std_view.php", ADMIN_CAL_STD_BACK_LIST);
    $thisform[onpost] = str_replace("type::add", "type::upd", $thisform[onpost]);
    $thisform[Fields][send][content] = "submit||" . ADMIN_CAL_STD_UPD . "||";
} else {
    $PAGE[PAGE_INTITLE] = ADMIN_CAL_STD_ADD;
    $PAGE[TXT_TITLE] = ADMIN_CAL_STD_ADD;
    $response[title] = ADMIN_CAL_STD_ADD_DONE;
    $response[text] = ADMIN_CAL_STD_ADD_DONE_TXT . "<br><br>" . make_button("cal_std_view.php", ADMIN_CAL_STD_BACK_LIST);
    $thisform[Fields][send][content] = "submit||" . ADMIN_CAL_STD_ADD . "||";
}
if ($_POST[form_id] == $thisform["name"]) {
    if (isset($_POST[form_page])) {
        $page = $_POST[form_page];
    } else {
        $page = 1;
    }
    $error = check_form($thisform, $_POST, $page);
    if ($error == 1) {
        $manage = manage_post($thisform, $error, $_POST, $_GET[id]);
    } else {
        print draw_form($thisform, $module, $error, $_POST, $page);
    }
    if ($manage == 1) {
开发者ID:HadoDokis,项目名称:knomos-plus,代码行数:31,代码来源:new_cal_std.php

示例12: insert_last_viewed

        }
        if ($manage > 0) {
            insert_last_viewed($manage, $module);
            if ($_POST["template"][0] != 0) {
                $ext_cur = "sxw";
                $fname = document_create($_POST, $manage, $_POST["template"][0], $module);
            } elseif (file_exists($_FILES["file"]['tmp_name'])) {
                copy($_FILES["file"]['tmp_name'], $CONF[path_base] . $CONF[dir_upload] . $module . "/" . $_POST["filename"] . '-' . $manage . "-1." . get_ext($_FILES["file"][name]));
                $fname = $_POST["filename"] . '-' . $manage . "-1." . get_ext($_FILES["file"][name]);
                $DB->Execute("UPDATE document SET ext='" . get_ext($_FILES["file"][name]) . "' WHERE id={$manage}");
                $ext_cur = get_ext($_FILES["file"][name]);
            }
            $curfile[ext] = $ext_cur;
            $curfile[filename] = $fname;
            $filename = put_tmp_file($manage);
            //$response[text]= DOCUMENT_UPDATE_TEXT."<br><br>";
            if ($CONF[web_dav] == 1 && $curfile[ext] == "sxw") {
                $response[text] .= '<h3>' . DOCUMENT_MOD_WEBDAV . '</h3><br>' . DOCUMENT_MOD_WEBDAV_TXT . '<br><input type="button" value="' . DOCUMENT_OPEN_WEBDAV . '" class="bot-submit" onClick="newwin = window.open(\'vnd.sun.star.webdav://' . str_replace("http://", "", $CONF[url_base]) . $CONF[dir_upload] . $filename . '\',\'newwin\',\'left=0,top=0,screenX=0,screenY=0,width=800,height=600,resizable=yes,scrollbars=yes\'); newwin.resizeTo(screen.width,screen.height);"> &nbsp;&nbsp;&nbsp' . make_button("mod_document.php?id=" . $manage . "&action=upload&ext=" . $curfile[ext] . "{$more_get}", DOCUMENT_UPDATE_DOC) . ' &nbsp;&nbsp;&nbsp' . make_button("mod_document.php?id=" . $manage . "&action=cancel", FW_CANCEL) . '<br><br><br>';
            }
            $response[text] .= '<h3>' . DOCUMENT_MOD_WEB . '</h3><br>' . DOCUMENT_MOD_WEB_TXT . '<br><input type="button" value="' . DOCUMENT_OPEN_WEB . '" class="bot-submit" onClick="newwin = window.open(\'' . $CONF[url_base] . $CONF[dir_upload] . $filename . '\',\'newwin\',\'left=0,top=0,screenX=0,screenY=0,width=800,height=600,resizable=yes,scrollbars=yes\'); newwin.resizeTo(screen.width,screen.height);"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . make_button("mod_document.php?id=" . $manage . "&action=cancel", FW_CANCEL);
            $response[text] .= '<br><br><form method="POST" enctype="multipart/form-data" action="mod_document.php?id=' . $manage . '&action=upload&ext=' . $curfile[ext] . $more_get . '" ><input type="file" name="fileupl"> &nbsp;&nbsp; <input class="bot-submit" type="submit" value="' . DOCUMENT_UPDATE_DOC . '"><hidden name="isupload" value="1"></form>';
            print draw_response($response);
        }
    } else {
        print draw_form($thisform, $module, "", $results);
    }
}
$PAGE[PAGE_CONTENT] = ob_get_contents();
ob_end_clean();
template_define_elements();
final_render();
开发者ID:HadoDokis,项目名称:knomos-plus,代码行数:31,代码来源:new_document.php

示例13: make_button

    $thisform[Fields][send][content] = "submit||" . ADMIN_LINK_UPD . "||";
    $response[title] = ADMIN_LINK_UPD_DONE;
    $response[text] = ADMIN_LINK_UPD_DONE_TXT . "<br><br>" . make_button("link_view.php", ADMIN_LINK_BACK_LIST);
} elseif (isset($_GET[id])) {
    $result = $_POST;
    $PAGE[PAGE_INTITLE] = ADMIN_LINK_UPD;
    $PAGE[TXT_TITLE] = ADMIN_LINK_UPD;
    $response[title] = ADMIN_LINK_UPD_DONE;
    $response[text] = ADMIN_LINK_UPD_DONE_TXT . "<br><br>" . make_button("link_view.php", ADMIN_LINK_BACK_LIST);
    $thisform[onpost] = str_replace("type::add", "type::upd", $thisform[onpost]);
    $thisform[Fields][send][content] = "submit||" . ADMIN_LINK_UPD . "||";
} else {
    $PAGE[PAGE_INTITLE] = ADMIN_LINK_ADD;
    $PAGE[TXT_TITLE] = ADMIN_LINK_ADD;
    $response[title] = ADMIN_LINK_ADD_DONE;
    $response[text] = ADMIN_LINK_ADD_DONE_TXT . "<br><br>" . make_button("link_view.php", ADMIN_LINK_BACK_LIST);
    $thisform[Fields][send][content] = "submit||" . ADMIN_LINK_ADD . "||";
}
if ($_POST[form_id] == $thisform["name"]) {
    if (isset($_POST[form_page])) {
        $page = $_POST[form_page];
    } else {
        $page = 1;
    }
    $error = check_form($thisform, $_POST, $page);
    if ($error == 1) {
        $manage = manage_post($thisform, $error, $_POST, $_GET[id]);
    } else {
        print draw_form($thisform, $module, $error, $_POST, $page);
    }
    if ($manage == 1) {
开发者ID:HadoDokis,项目名称:knomos-plus,代码行数:31,代码来源:new_link.php

示例14: make_button

    $thisform[Fields][send][content] = "submit||" . ADMIN_SET_UPD . "||";
    $response[title] = ADMIN_SET_UPD_DONE;
    $response[text] = ADMIN_SET_UPD_DONE_TXT . "<br><br>" . make_button($CONF[url_base] . "main.php", ADMIN_SET_BACK_LIST);
} elseif (isset($_GET[id])) {
    $result = $_POST;
    $PAGE[PAGE_INTITLE] = ADMIN_SET_UPD;
    $PAGE[TXT_TITLE] = ADMIN_SET_UPD;
    $response[title] = ADMIN_SET_UPD_DONE;
    $response[text] = ADMIN_SET_UPD_DONE_TXT . "<br><br>" . make_button($CONF[url_base] . "main.php", ADMIN_SET_BACK_LIST);
    $thisform[onpost] = str_replace("type::add", "type::upd", $thisform[onpost]);
    $thisform[Fields][send][content] = "submit||" . ADMIN_SET_UPD . "||";
} else {
    $PAGE[PAGE_INTITLE] = ADMIN_SET_ADD;
    $PAGE[TXT_TITLE] = ADMIN_SET_ADD;
    $response[title] = ADMIN_SET_ADD_DONE;
    $response[text] = ADMIN_SET_ADD_DONE_TXT . "<br><br>" . make_button($CONF[url_base] . "main.php", ADMIN_SET_BACK_LIST);
    $thisform[Fields][send][content] = "submit||" . ADMIN_SET_ADD . "||";
}
//echo $thisform["name"];
if ($_POST[form_id] == $thisform["name"]) {
    if (isset($_POST[form_page])) {
        $page = $_POST[form_page];
    } else {
        $page = 1;
    }
    $error = check_form($thisform, $_POST, $page);
    //echo $error;
    if ($error == 1) {
        $manage = manage_post($thisform, $error, $_POST, $_GET[id]);
        $manage = 6;
        //aggiunto per evitare l'errore
开发者ID:HadoDokis,项目名称:knomos-plus,代码行数:31,代码来源:new_set_google.php

示例15: elseif

    $thisform[Fields][send][content] = "submit||" . PRESTAZIONI_UPD . "||";
} elseif (isset($_GET[ref_id]) && $_POST[form_id] != $thisform["name"]) {
    $rs2 = $DB->Execute("SELECT * FROM pratiche WHERE id=" . $_GET[ref_id]);
    $result_prat = $rs2->FetchRow();
    $thisform[Fields][title_pratica][title] = PRESTAZIONI_REF_PRATICA;
    $thisform[Fields][title_pratica][content] = "text||" . $result_prat[pr_codice] . "||wid::40;;disab::1";
    $thisform[Fields][ref_id][content] = "hidden||" . $result[ref_id] . "||";
    $thisform[Fields][valore_pratica][content] = "hidden||" . $result_prat[pr_valore] . "||";
    $thisform[Fields][tipo_pratica][content] = "hidden||" . $result_prat[pr_comp_cod] . "||";
    if ($result[criterio] == "") {
        $result[criterio] = $result_prat[pr_criterio];
    }
    $PAGE[PAGE_INTITLE] = PRESTAZIONI_ADD;
    $PAGE[TXT_TITLE] = PRESTAZIONI_ADD;
    $response[title] = PRESTAZIONI_ADD_DONE;
    $response[text] = PRESTAZIONI_ADD_DONE_TXT . "<br><br>" . make_button("prestazioni_view.php", PRESTAZIONI_BACK_LIST);
}
if ($_POST[form_id] == $thisform["name"]) {
    if (isset($_POST[form_page])) {
        $page = $_POST[form_page];
    } else {
        $page = 1;
    }
    $error = check_form($thisform, $_POST, $page);
    if ($error == 1) {
        $manage = manage_post($thisform, $error, $_POST, $_GET[id]);
    } else {
        print draw_form($thisform, $module, $error, $_POST, $page);
    }
    if ($manage == 1) {
        $page = $_POST[form_page] + 1;
开发者ID:HadoDokis,项目名称:knomos-plus,代码行数:31,代码来源:new_prestazione.php


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