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


PHP block::buildLink方法代码示例

本文整理汇总了PHP中block::buildLink方法的典型用法代码示例。如果您正苦于以下问题:PHP block::buildLink方法的具体用法?PHP block::buildLink怎么用?PHP block::buildLink使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在block的用法示例。


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

示例1: headerFunction

** TO-DO:
** 	 
**
** =============================================================================
*/
$checkSession = "true";
include_once '../includes/library.php';
if ($profilSession != "0") {
    headerFunction('../general/permissiondenied.php?' . session_name() . '=' . session_id());
    exit;
}
$setTitle .= " : System Information";
include '../themes/' . THEME . '/header.php';
$blockPage = new block();
$blockPage->openBreadcrumbs();
$blockPage->itemBreadcrumbs($blockPage->buildLink("../administration/admin.php?", $strings["administration"], in));
$blockPage->itemBreadcrumbs($strings["system_information"]);
$blockPage->closeBreadcrumbs();
$block1 = new block();
$block1->heading($strings["system_information"]);
$block1->openContent();
$block1->contentTitle($strings["product_information"]);
$block1->contentRow("PhpCollab Version", $version);
$block1->contentRow("File Management", $fileManagement . " (default max file size {$maxFileSize} {$byteUnits['0']})");
if ($mkdirMethod == "FTP") {
    $mkdirMethodMore = " (Path to root with mentionned account: \"{$ftpRoot}\")";
}
$block1->contentRow("Create folder method", $mkdirMethod . $mkdirMethodMore);
$block1->contentRow("Theme", THEME);
$block1->contentRow("Product Site Publish", $sitePublish);
$block1->contentRow("Notifications", $notifications);
开发者ID:ColBT,项目名称:php_tut,代码行数:31,代码来源:systeminfo.php

示例2: headerFunction

** -----------------------------------------------------------------------------
** TO-DO:
** 	
**
** =============================================================================
*/
$checkSession = "true";
include_once '../includes/library.php';
if ($profilSession != "0" || $enableHelpSupport != "true") {
    headerFunction('../general/permissiondenied.php?' . session_name() . '=' . session_id());
    exit;
}
include '../themes/' . THEME . '/header.php';
$blockPage = new block();
$blockPage->openBreadcrumbs();
$blockPage->itemBreadcrumbs($blockPage->buildLink("../administration/admin.php?", $strings["administration"], in));
$blockPage->itemBreadcrumbs($strings["support_management"]);
$blockPage->closeBreadcrumbs();
if ($msg != "") {
    include '../includes/messages.php';
    $blockPage->messagebox($msgLabel);
}
if ($enableHelpSupport == "true") {
    $tmpquery = "WHERE sr.status = '0'";
    $listNewRequests = new request();
    $listNewRequests->openSupportRequests($tmpquery);
    $comptListNewRequests = count($listNewRequests->sr_id);
    $tmpquery = "WHERE sr.status = '1'";
    $listOpenRequests = new request();
    $listOpenRequests->openSupportRequests($tmpquery);
    $comptListOpenRequests = count($listOpenRequests->sr_id);
开发者ID:ColBT,项目名称:php_tut,代码行数:31,代码来源:support.php

示例3: request

** =============================================================================
*/
$checkSession = "true";
include_once '../includes/library.php';
$tmpquery = "WHERE pro.id = '{$id}'";
$projectDetail = new request();
$projectDetail->openProjects($tmpquery);
$comptProjectDetail = count($projectDetail->pro_id);
if ($comptProjectDetail == "0") {
    headerFunction("../projects/listprojects.php?msg=blank&" . session_name() . "=" . session_id());
    exit;
}
include '../themes/' . THEME . '/header.php';
$blockPage = new block();
$blockPage->openBreadcrumbs();
$blockPage->itemBreadcrumbs($blockPage->buildLink("../projects/listprojects.php?", $strings["projects"], in));
$blockPage->itemBreadcrumbs($blockPage->buildLink("../projects/viewproject.php?id=" . $projectDetail->pro_id[0], $projectDetail->pro_name[0], in));
$blockPage->itemBreadcrumbs($strings["team_members"]);
$blockPage->closeBreadcrumbs();
$block1 = new block();
$block1->form = "saM";
$block1->openForm("../teams/listusers.php?" . session_name() . "=" . session_id() . "&id={$id}#" . $block1->form . "Anchor");
$block1->heading($strings["team_members"]);
$block1->openPaletteIcon();
if ($idSession == $projectDetail->pro_owner[0] || $profilSession == "5") {
    $block1->paletteIcon(0, "add", $strings["add"]);
    $block1->paletteIcon(1, "remove", $strings["delete"]);
    if ($sitePublish == "true") {
        $block1->paletteIcon(2, "add_projectsite", $strings["add_project_site"]);
        $block1->paletteIcon(3, "remove_projectsite", $strings["remove_project_site"]);
    }
开发者ID:ColBT,项目名称:php_tut,代码行数:31,代码来源:listusers.php

示例4: connectSql

    connectSql("{$tmpquery2}");
    connectSql("{$tmpquery3}");
    connectSql("{$tmpquery4}");
    connectSql("{$tmpquery5}");
    //if mantis bug tracker enabled
    if ($enableMantis == "true") {
        // Call mantis function to remove user
        include "../mantis/user_delete.php";
    }
    headerFunction("../clients/viewclient.php?id={$organization}&msg=delete&" . session_name() . "=" . session_id());
    exit;
}
include '../themes/' . THEME . '/header.php';
$blockPage = new block();
$blockPage->openBreadcrumbs();
$blockPage->itemBreadcrumbs($blockPage->buildLink("../clients/listclients.php?", $strings["clients"], in));
$blockPage->itemBreadcrumbs($blockPage->buildLink("../clients/viewclient.php?id=" . $detailOrganization->org_id[0], $detailOrganization->org_name[0], in));
$blockPage->itemBreadcrumbs($strings["delete_users"]);
$blockPage->closeBreadcrumbs();
if ($msg != "") {
    include '../includes/messages.php';
    $blockPage->messagebox($msgLabel);
}
$block1 = new block();
$block1->form = "client_user_delete";
$block1->openForm("../users/deleteclientusers.php?organization={$organization}&action=delete&" . session_name() . "=" . session_id());
$block1->heading($strings["delete_users"]);
$block1->openContent();
$block1->contentTitle($strings["delete_following"]);
$id = str_replace("**", ",", $id);
$tmpquery = "WHERE mem.id IN({$id}) ORDER BY mem.name";
开发者ID:ColBT,项目名称:php_tut,代码行数:31,代码来源:deleteclientusers.php

示例5: request

$tmpquery = "WHERE pro.id = '" . $noteDetail->note_project[0] . "'";
$projectDetail = new request();
$projectDetail->openProjects($tmpquery);
$teamMember = "false";
$tmpquery = "WHERE tea.project = '" . $noteDetail->note_project[0] . "' AND tea.member = '{$idSession}'";
$memberTest = new request();
$memberTest->openTeams($tmpquery);
$comptMemberTest = count($memberTest->tea_id);
if ($comptMemberTest == "0") {
    $teamMember = "false";
} else {
    $teamMember = "true";
}
$blockPage = new block();
$blockPage->openBreadcrumbs();
$blockPage->itemBreadcrumbs($blockPage->buildLink("../projects/listprojects.php?", $strings["projects"], in));
$blockPage->itemBreadcrumbs($blockPage->buildLink("../projects/viewproject.php?id=" . $projectDetail->pro_id[0], $projectDetail->pro_name[0], in));
$blockPage->itemBreadcrumbs($blockPage->buildLink("../notes/listnotes.php?project=" . $projectDetail->pro_id[0], $strings["notes"], in));
$blockPage->itemBreadcrumbs($noteDetail->note_subject[0]);
$blockPage->closeBreadcrumbs();
if ($msg != "") {
    include '../includes/messages.php';
    $blockPage->messagebox($msgLabel);
}
$block1 = new block();
$block1->form = "tdD";
$block1->openForm("../notes/viewnote.php?" . session_name() . "=" . session_id() . "#" . $block1->form . "Anchor");
$block1->heading($strings["note"] . " : " . $noteDetail->note_subject[0]);
if ($teamMember == "true" && $idSession == $noteDetail->note_owner[0]) {
    $block1->openPaletteIcon();
    $block1->paletteIcon(0, "remove", $strings["delete"]);
开发者ID:ColBT,项目名称:php_tut,代码行数:31,代码来源:viewnote.php

示例6: Item

    $setTitle .= " : Edit News Item (" . $newsDetail->news_title[0] . ")";
} else {
    if ($id != '' && $action == "remove") {
        if (strpos($id, "**") !== false) {
            $setTitle .= " : Remove News Items";
        } else {
            $setTitle .= " : Remove News Item";
        }
    } else {
        $setTitle .= " : Add News Item";
    }
}
include '../themes/' . THEME . '/header.php';
$blockPage = new block();
$blockPage->openBreadcrumbs();
$blockPage->itemBreadcrumbs($blockPage->buildLink("../newsdesk/listnews.php?", $strings["newsdesk"], in));
if ($id == "") {
    $blockPage->itemBreadcrumbs($strings["add_newsdesk"]);
} else {
    $blockPage->itemBreadcrumbs($blockPage->buildLink("../newsdesk/viewnews.php?id=" . $newsDetail->news_id[0], $newsDetail->news_title[0], in));
    $blockPage->itemBreadcrumbs($strings["edit_newsdesk"]);
}
$blockPage->closeBreadcrumbs();
if ($msg != "") {
    include '../includes/messages.php';
    $blockPage->messagebox($msgLabel);
}
$block1 = new block();
if ($error != "") {
    $block1->headingError($strings["errors"]);
    $block1->contentError($error);
开发者ID:ColBT,项目名称:php_tut,代码行数:31,代码来源:editnews.php

示例7: block

    $total_ex_tax = $detailInvoice->inv_total_ex_tax[0];
    $tax_rate = $detailInvoice->inv_tax_rate[0];
    $tax_amount = $detailInvoice->inv_tax_amount[0];
    $total_inc_tax = $detailInvoice->inv_total_inc_tax[0];
    $st = $detailInvoice->inv_status[0];
    $pub = $detailInvoice->inv_published[0];
    if ($pub == "0") {
        $checkedPub = "checked";
    }
}
$includeCalendar = true;
//Include Javascript files for the pop-up calendar
include '../themes/' . THEME . '/header.php';
$blockPage = new block();
$blockPage->openBreadcrumbs();
$blockPage->itemBreadcrumbs($blockPage->buildLink("../clients/listclients.php?", $strings["clients"], in));
$blockPage->itemBreadcrumbs($blockPage->buildLink("../clients/viewclient.php?id=" . $projectDetail->pro_org_id[0], $projectDetail->pro_org_name[0], in));
$blockPage->itemBreadcrumbs($blockPage->buildLink("../invoicing/listinvoices.php?client=" . $projectDetail->pro_organization[0], $strings["invoices"], in));
if ($id != "") {
    $blockPage->itemBreadcrumbs($blockPage->buildLink("../invoicing/viewinvoice.php?id=" . $detailInvoice->inv_id[0], $detailInvoice->inv_id[0], in));
    $blockPage->itemBreadcrumbs($strings["edit_invoice"]);
}
$blockPage->closeBreadcrumbs();
if ($msg != "") {
    include '../includes/messages.php';
    $blockPage->messagebox($msgLabel);
}
$block1 = new block();
if ($id != "") {
    $block1->form = "invoice";
    $block1->openForm("../invoicing/editinvoice.php?id={$id}&action=update&" . session_name() . "=" . session_id() . "#" . $block1->form . "Anchor");
开发者ID:ColBT,项目名称:php_tut,代码行数:31,代码来源:editinvoice.php

示例8: headerFunction

    if ($project != "") {
        headerFunction("../projects/viewproject.php?id={$project}&msg=delete&" . session_name() . "=" . session_id());
        exit;
    } else {
        headerFunction("../general/home.php?msg=delete&" . session_name() . "=" . session_id());
        exit;
    }
}
$tmpquery = "WHERE pro.id = '{$project}'";
$projectDetail = new request();
$projectDetail->openProjects($tmpquery);
include '../themes/' . THEME . '/header.php';
$blockPage = new block();
$blockPage->openBreadcrumbs();
if ($project != "") {
    $blockPage->itemBreadcrumbs($blockPage->buildLink("../projects/listprojects.php?", $strings["projects"], in));
    $blockPage->itemBreadcrumbs($blockPage->buildLink("../projects/viewproject.php?id=" . $projectDetail->pro_id[0], $projectDetail->pro_name[0], in));
    $blockPage->itemBreadcrumbs($strings["delete_tasks"]);
} else {
    $blockPage->itemBreadcrumbs($blockPage->buildLink("../general/home.php?", $strings["home"], in));
    $blockPage->itemBreadcrumbs($strings["my_tasks"]);
}
$blockPage->closeBreadcrumbs();
if ($msg != "") {
    include '../includes/messages.php';
    $blockPage->messagebox($msgLabel);
}
$block1 = new block();
$block1->form = "saP";
$block1->openForm("../tasks/deletetasks.php?project={$project}&action=delete&id={$id}&" . session_name() . "=" . session_id());
$block1->heading($strings["delete_tasks"]);
开发者ID:ColBT,项目名称:php_tut,代码行数:31,代码来源:deletetasks.php

示例9: headerFunction

include_once '../includes/library.php';
if ($profilSession != "0") {
    headerFunction('../general/permissiondenied.php?' . session_name() . '=' . session_id());
    exit;
}
if ($action == "delete") {
    $id = str_replace("**", ",", $id);
    $tmpquery1 = "DELETE FROM " . $tableCollab["services"] . " WHERE id IN({$id})";
    connectSql($tmpquery1);
    headerFunction("../services/listservices.php?msg=delete&" . session_name() . "=" . session_id());
    exit;
}
include '../themes/' . THEME . '/header.php';
$blockPage = new block();
$blockPage->openBreadcrumbs();
$blockPage->itemBreadcrumbs($blockPage->buildLink("../administration/admin.php?", $strings["administration"], in));
$blockPage->itemBreadcrumbs($blockPage->buildLink("../services/listservices.php?", $strings["service_management"], in));
$blockPage->itemBreadcrumbs($strings["delete_services"]);
$blockPage->closeBreadcrumbs();
if ($msg != "") {
    include '../includes/messages.php';
    $blockPage->messagebox($msgLabel);
}
$block1 = new block();
$block1->form = "service_delete";
$block1->openForm("../services/deleteservices.php?action=delete&" . session_name() . "=" . session_id());
$block1->heading($strings["delete_services"]);
$block1->openContent();
$block1->contentTitle($strings["delete_following"]);
$id = str_replace("**", ",", $id);
$tmpquery = "WHERE serv.id IN({$id}) ORDER BY serv.name";
开发者ID:ColBT,项目名称:php_tut,代码行数:31,代码来源:deleteservices.php

示例10: IN

    $id = str_replace("**", ",", $id);
    $tmpquery1 = "DELETE FROM " . $tableCollab["bookmarks"] . " WHERE id IN({$id})";
    connectSql("{$tmpquery1}");
    headerFunction("../bookmarks/listbookmarks.php?view=my&msg=delete&" . session_name() . "=" . session_id());
    exit;
}
$setTitle .= " : Delete ";
if (strpos($id, "**") !== false) {
    $setTitle .= "Entries";
} else {
    $setTitle .= "Entry";
}
include '../themes/' . THEME . '/header.php';
$blockPage = new block();
$blockPage->openBreadcrumbs();
$blockPage->itemBreadcrumbs($blockPage->buildLink("../bookmarks/listbookmarks.php?view=all", $strings["bookmarks"], in));
$blockPage->itemBreadcrumbs($strings["delete_bookmarks"]);
$blockPage->closeBreadcrumbs();
if ($msg != "") {
    include '../includes/messages.php';
    $blockPage->messagebox($msgLabel);
}
$block1 = new block();
$block1->form = "saP";
$block1->openForm("../bookmarks/deletebookmarks.php?action=delete&id={$id}&" . session_name() . "=" . session_id());
$block1->heading($strings["delete_bookmarks"]);
$block1->openContent();
$block1->contentTitle($strings["delete_following"]);
$id = str_replace("**", ",", $id);
$tmpquery = "WHERE boo.id IN({$id}) ORDER BY boo.name";
$listBookmarks = new request();
开发者ID:ColBT,项目名称:php_tut,代码行数:31,代码来源:deletebookmarks.php

示例11: request

    }
}
$tmpquery = "WHERE inv.id = '{$id}'";
$detailInvoice = new request();
$detailInvoice->openInvoices($tmpquery);
$tmpquery = "WHERE pro.id = '" . $detailInvoice->inv_project[0] . "'";
$projectDetail = new request();
$projectDetail->openProjects($tmpquery);
if ($projectDetail->pro_owner[0] != $idSession) {
    header("Location:../general/permissiondenied.php?" . session_name() . "=" . session_id());
    exit;
}
include '../themes/' . THEME . '/header.php';
$blockPage = new block();
$blockPage->openBreadcrumbs();
$blockPage->itemBreadcrumbs($blockPage->buildLink("../clients/listclients.php?", $strings["clients"], in));
$blockPage->itemBreadcrumbs($blockPage->buildLink("../clients/viewclient.php?id=" . $projectDetail->pro_org_id[0], $projectDetail->pro_org_name[0], in));
$blockPage->itemBreadcrumbs($blockPage->buildLink("../invoicing/listinvoices.php?client=" . $projectDetail->pro_organization[0], $strings["invoices"], in));
$blockPage->itemBreadcrumbs($detailInvoice->inv_id[0]);
$blockPage->closeBreadcrumbs();
if ($msg != "") {
    include '../includes/messages.php';
    $blockPage->messagebox($msgLabel);
}
$block1 = new block();
$block1->form = "invoiceSheet";
$block1->openForm("../invoicing/viewinvoice.php?id={$id}&" . session_name() . "=" . session_id() . "#" . $block1->form . "Anchor");
$block1->headingToggle($strings["invoice"] . " : " . $detailInvoice->inv_id[0]);
$block1->openPaletteIcon();
$block1->paletteIcon(0, "remove", $strings["delete"]);
$block1->paletteIcon(2, "export", $strings["export"]);
开发者ID:ColBT,项目名称:php_tut,代码行数:31,代码来源:viewinvoice.php

示例12: connectSql

        connectSql($tmpquery1);
        headerFunction("../services/listservices.php?msg=add&" . session_name() . "=" . session_id());
        exit;
    }
}
/* Titles */
if ($id == '') {
    $setTitle .= " : Add Service";
} else {
    $setTitle .= " : Edit Service (" . $detailService->serv_name[0] . ")";
}
$bodyCommand = "onLoad=\"document.serv_editForm.n.focus();\"";
include '../themes/' . THEME . '/header.php';
$blockPage = new block();
$blockPage->openBreadcrumbs();
$blockPage->itemBreadcrumbs($blockPage->buildLink("../administration/admin.php?", $strings["administration"], in));
$blockPage->itemBreadcrumbs($blockPage->buildLink("../services/listservices.php?", $strings["service_management"], in));
if ($id == "") {
    $blockPage->itemBreadcrumbs($strings["add_service"]);
}
if ($id != "") {
    $blockPage->itemBreadcrumbs($blockPage->buildLink("../services/viewservice.php?id={$id}", $detailService->serv_name[0], in));
    $blockPage->itemBreadcrumbs($strings["edit_service"]);
}
$blockPage->closeBreadcrumbs();
if ($msg != "") {
    include '../includes/messages.php';
    $blockPage->messagebox($msgLabel);
}
$block1 = new block();
if ($id == "") {
开发者ID:ColBT,项目名称:php_tut,代码行数:31,代码来源:editservice.php

示例13: request

$projectDetail = new request();
$projectDetail->openProjects($tmpquery);
$blockPage = new block();
$blockPage->openBreadcrumbs();
if ($project != "") {
    $teamMember = "false";
    $tmpquery = "WHERE tea.project = '{$project}' AND tea.member = '{$idSession}'";
    $memberTest = new request();
    $memberTest->openTeams($tmpquery);
    $comptMemberTest = count($memberTest->tea_id);
    if ($comptMemberTest == "0") {
        $teamMember = "false";
    } else {
        $teamMember = "true";
    }
    $blockPage->itemBreadcrumbs($blockPage->buildLink("../projects/listprojects.php?", $strings["projects"], in));
    $blockPage->itemBreadcrumbs($blockPage->buildLink("../projects/viewproject.php?id=" . $projectDetail->pro_id[0], $projectDetail->pro_name[0], in));
    $blockPage->itemBreadcrumbs($strings["discussions"]);
} else {
    $blockPage->itemBreadcrumbs($blockPage->buildLink("../general/home.php?", $strings["home"], in));
    $blockPage->itemBreadcrumbs($strings["my_discussions"]);
}
$blockPage->closeBreadcrumbs();
if ($msg != "") {
    include '../includes/messages.php';
    $blockPage->messagebox($msgLabel);
}
$block1 = new block();
$block1->form = "saH";
$block1->openForm("../topics/listtopics.php?" . session_name() . "=" . session_id() . "&project={$project}#" . $block1->form . "Anchor");
if ($project != "") {
开发者ID:ColBT,项目名称:php_tut,代码行数:31,代码来源:listtopics.php

示例14: request

        if (!$tPhase) {
            $tPhase = '0';
        }
        $tmpquery = "WHERE pha.project_id = '{$project}' AND pha.order_num = '{$tPhase}'";
    }
    $targetPhase = new request();
    $targetPhase->openPhases($tmpquery);
}
$bodyCommand = "onload=\"document.etDForm.compl.value = document.etDForm.completion.selectedIndex;document.etDForm.tn.focus();\"";
$headBonus = "";
$includeCalendar = true;
//Include Javascript files for the pop-up calendar
include '../themes/' . THEME . '/header.php';
$blockPage = new block();
$blockPage->openBreadcrumbs();
$blockPage->itemBreadcrumbs($blockPage->buildLink("../projects/listprojects.php?", $strings["projects"], in));
$blockPage->itemBreadcrumbs($blockPage->buildLink("../projects/viewproject.php?id=" . $projectDetail->pro_id[0], $projectDetail->pro_name[0], in));
if ($projectDetail->pro_phase_set[0] != "0") {
    $blockPage->itemBreadcrumbs($blockPage->buildLink("../phases/listphases.php?id=" . $projectDetail->pro_id[0], $strings["phases"], in));
    $blockPage->itemBreadcrumbs($blockPage->buildLink("../phases/viewphase.php?id=" . $targetPhase->pha_id[0], $targetPhase->pha_name[0], in));
}
$blockPage->itemBreadcrumbs($blockPage->buildLink("../tasks/listtasks.php?project=" . $projectDetail->pro_id[0], $strings["tasks"], in));
if ($id == "") {
    $blockPage->itemBreadcrumbs($strings["add_task"]);
}
if ($id != "") {
    $blockPage->itemBreadcrumbs($blockPage->buildLink("../tasks/viewtask.php?id=" . $taskDetail->tas_id[0], $taskDetail->tas_name[0], in));
    $blockPage->itemBreadcrumbs($strings["edit_task"]);
}
$blockPage->closeBreadcrumbs();
if ($msg != "") {
开发者ID:ColBT,项目名称:php_tut,代码行数:31,代码来源:edittask.php

示例15: headerFunction

**
** HISTORY:
** 	2003-10-23	-	added new document info
** -----------------------------------------------------------------------------
** TO-DO:
** 	move to the render engine  
**
** =============================================================================
*/
$checkSession = "true";
include_once '../includes/library.php';
if ($profilSession != "0") {
    headerFunction('../general/permissiondenied.php?' . session_name() . '=' . session_id());
    exit;
}
$setTitle .= " : DB Administraton";
include '../themes/' . THEME . '/header.php';
$blockPage = new block();
$blockPage->openBreadcrumbs();
$blockPage->itemBreadcrumbs($blockPage->buildLink("../administration/admin.php?", $strings["administration"], in));
$blockPage->itemBreadcrumbs($strings["database"] . " " . MYDATABASE);
$blockPage->closeBreadcrumbs();
$block1 = new block();
$block1->heading($strings["database"] . " " . MYDATABASE);
$block1->openContent();
$block1->contentTitle("Backup database");
echo "<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue\">&nbsp;</td><td>\n<form method=\"post\" action=\"../includes/phppgadmin/db_dump.php\">View dump (schema) of database<br/>\n<table>\n    <tr>\n        <td>\n            <input type=\"radio\" name=\"what\" value=\"structure\">Structure only        </td>\n        <td>\n            <input type=\"checkbox\" name=\"drop\" value=\"1\">Add 'drop table'        </td>\n        <td colspan=\"2\">\n            <input type=\"submit\" value=\"Go\">\n        </td>\n    </tr>\n    <tr>\n        <td>\n            <input type=\"radio\" name=\"what\" value=\"data\" checked>Structure and data        </td>\n        <td>\n            <input type=\"checkbox\" name=\"asfile\" value=\"sendit\">send        </td>\n    </tr>\n</table>\n<input type=\"hidden\" name=\"server\" value=\"1\">\n<input type=\"hidden\" name=\"db\" value=\"" . MYDATABASE . "\">\n<input type=\"hidden\" name=\"table\" value=\"y_updates\">\n</form>\n" . $blockPage->buildLink("http://phppgadmin.sourceforge.net", "phpPgAdmin", powered) . "</a></td></tr>";
$block1->contentTitle("Restore database from sql file");
echo "<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue\">&nbsp;</td><td>\n        <form method=\"post\" action=\"../includes/phpmyadmin/read_dump.php\" enctype=\"multipart/form-data\">\n            <input type=\"hidden\" name=\"is_js_confirmed\" value=\"0\" />\n            <input type=\"hidden\" name=\"lang\" value=\"en\" />\n            <input type=\"hidden\" name=\"server\" value=\"1\" />\n            <input type=\"hidden\" name=\"db\" value=\"" . MYDATABASE . "\" />\n            <input type=\"hidden\" name=\"pos\" value=\"0\" />\n            <input type=\"hidden\" name=\"goto\" value=\"db_details.php\" />\n            <input type=\"hidden\" name=\"zero_rows\" value=\"Your SQL-query has been executed successfully\" />\n            <input type=\"hidden\" name=\"prev_sql_query\" value=\"\" /><br />\n            Location of sql file&nbsp;:<br />\n            <div style=\"margin-bottom: 5px\">\n            <input type=\"file\" name=\"sql_file\" /><br />\n            </div>\n    \n            <input type=\"submit\" name=\"SQL\" value=\"Go\" />\n        </form>\n" . $blockPage->buildLink("http://phpwizard.net/projects/phpMyAdmin", "phpMyAdmin", powered) . "</a>\n</td></tr>\n</table>\n</td></tr>";
$block1->closeContent();
include '../themes/' . THEME . '/footer.php';
开发者ID:ColBT,项目名称:php_tut,代码行数:31,代码来源:phppgadmin.php


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