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


PHP block::contentRow方法代码示例

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


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

示例1: buildLink

$block1->form = 'uploadlogo';
$block1->form = 'pdD';
$block1->openForm('../projects/viewprojectsite.php?action=update&id=' . $id . '&#' . $block1->form . 'Anchor');
$block1->heading($strings['project_site'] . ' : ' . $projectDetail->pro_name[0]);
if ($_SESSION['idSession'] == $projectDetail->pro_owner[0] || $_SESSION['profilSession'] == '5') {
    $block1->openPaletteIcon();
    $block1->paletteIcon(0, 'remove', $strings['delete']);
    // $block1->paletteIcon(1,'template',$strings['template']);
    // $block1->paletteIcon(2,'edit',$strings['edit']);
    $block1->closePaletteIcon();
} else {
    $block1->headingToggle_close();
}
$block1->openContent();
$block1->contentTitle($strings['details']);
$block1->contentRow($strings['project'], buildLink('../projects/viewproject.php?id=' . $id, $projectDetail->pro_name[0] . ' (#' . $projectDetail->pro_id[0] . ')', LINK_INSIDE));
if ($projectDetail->pro_org_id[0] == '1') {
    $block1->contentRow($strings['organization'], $strings['none']);
} else {
    $block1->contentRow($strings['organization'], buildLink('../clients/viewclient.php?id=' . $projectDetail->pro_org_id[0], $projectDetail->pro_org_name[0], LINK_INSIDE));
}
$block1->closeContent();
$block1->block_close();
$block1->closeForm();
if ($_SESSION['idSession'] == $projectDetail->pro_owner[0] || $_SESSION['profilSession'] == '5') {
    $block1->openPaletteScript();
    $block1->paletteScript(0, 'remove', '../projects/deleteprojectsite.php?project=' . $id, 'true,true,true', $strings['delete']);
    // $block1->paletteScript(1,'template','addtemplate.php','true,true,true',$strings['template']);
    // $block1->paletteScript(1,'template','editprojectsite.php','true,true,false',$strings['template']);
    $block1->closePaletteScript('', '');
}
开发者ID:jgatica,项目名称:Netoffice,代码行数:31,代码来源:viewprojectsite.php

示例2: sum

        $msgLabel = '<b>' . $strings['success'] . '</b> : ' . $strings['hours_updated'];
    }
}
$tmpquery1 = "SELECT sum(hours) FROM " . $tableCollab['meetings_time'];
$blockPage = new block();
$blockPage->bornesNumber = "1";
// get actual time for meeting
$meetingActualTime = new request();
$actualTime = $meetingActualTime->getMeetingTime($id);
$block1 = new block();
$block1->form = "saM";
$block1->openForm("../meetings/addmeetingtime.php?id={$id}&amp;project=" . $projectDetail->pro_name[0] . "&amp;action=add#" . $block1->form . "Anchor");
$block1->headingForm($strings["add_meeting_time"] . " : " . $meetingDetail->mee_name[0]);
$block1->openContent();
$block1->contentTitle($strings["info"]);
$block1->contentRow($strings["project"], $projectDetail->pro_name[0]);
$block1->contentRow($strings["meetings"], $meetingDetail->mee_name[0]);
$block1->contentRow($strings["me_agenda"], nl2br($meetingDetail->mee_agenda[0]));
$block1->contentRow($strings["actual_time"], $actualTime . " " . $strings["hours"]);
$block1->contentTitle($strings["add_meeting_time"]);
$tmpquery = "WHERE tea.project = '" . $projectDetail->pro_id[0] . "' ORDER BY mem.name";
$projmem = new request();
$projmem->openTeams($tmpquery);
$comptProjmem = count($projmem->tea_mem_id);
echo "\r\n<tr class='odd'>\r\n  <td valign='top' class='leftvalue'>" . $strings['owner'] . " :</td>\r\n  <td><select name='owner'>";
// get project team listing for owner select lists, default to logged user
for ($i = 0; $i < $comptProjmem; $i++) {
    $clientUser = '';
    if ($projmem->tea_mem_profil[$i] == '3') {
        $clientUser = ' (' . $strings['client_user'] . ')';
    }
开发者ID:jgatica,项目名称:Netoffice,代码行数:31,代码来源:addmeetingtime.php

示例3: buildLink

    if ($sitePublish == "true") {
        $block1->paletteIcon(3, "add_projectsite", $strings["add_project_site"]);
        $block1->paletteIcon(4, "remove_projectsite", $strings["remove_project_site"]);
    }
    $block1->paletteIcon(5, "edit", $strings["edit"]);
    $block1->paletteIcon(6, "timelog", $strings["loghours"]);
    $block1->closePaletteIcon();
} else {
    $block1->headingToggle_close();
}
if ($projectDetail->pro_org_id[0] == "1") {
    $projectDetail->pro_org_name[0] = $strings["none"];
}
$block1->openContent();
$block1->contentTitle($strings["info"]);
$block1->contentRow($strings["project"], buildLink("../projects/viewproject.php?id=" . $projectDetail->pro_id[0], $projectDetail->pro_name[0], LINK_INSIDE));
$block1->contentRow($strings["organization"], $projectDetail->pro_org_name[0]);
$block1->contentRow($strings["created"], createDate($meetingDetail->mee_created[0], $_SESSION['timezoneSession']));
$block1->contentRow($strings["modified"], createDate($meetingDetail->mee_modified[0], $_SESSION['timezoneSession']));
$block1->contentTitle($strings["details"]);
$block1->contentRow($strings["name"], $meetingDetail->mee_name[0]);
$block1->contentRow($strings['meeting_id'], $meetingDetail->mee_id[0]);
$idStatus = $meetingDetail->mee_status[0];
$idPriority = $meetingDetail->mee_priority[0];
$idPublish = $meetingDetail->mee_published[0];
$block1->contentRow($strings["status"], $status[$idStatus]);
$block1->contentRow($strings["priority"], $priority[$idPriority]);
if ($meetingDetail->mee_date[0] <= $date && $idStatus != 1) {
    $block1->contentRow($strings["date"], "<b>" . $meetingDetail->mee_date[0] . "</b>");
} else {
    $block1->contentRow($strings["date"], $meetingDetail->mee_date[0]);
开发者ID:jgatica,项目名称:Netoffice,代码行数:31,代码来源:viewmeeting.php

示例4: count

$listUpdates->openUpdates($tmpquery);
$comptListUpdates = count($listUpdates->upd_id);
for ($i = 0; $i < $comptListUpdates; $i++) {
    if (ereg("\\[status:([0-9])\\]", $listUpdates->upd_comments[$i])) {
        preg_match("|\\[status:([0-9])\\]|i", $listUpdates->upd_comments[$i], $matches);
        $listUpdates->upd_comments[$i] = ereg_replace("\\[status:([0-9])\\]", "", $listUpdates->upd_comments[$i] . "<br>");
        $listUpdates->upd_comments[$i] .= $strings["status"] . " " . $status[$matches[1]];
    }
    if (ereg("\\[priority:([0-9])\\]", $listUpdates->upd_comments[$i])) {
        preg_match("|\\[priority:([0-9])\\]|i", $listUpdates->upd_comments[$i], $matches);
        $listUpdates->upd_comments[$i] = ereg_replace("\\[priority:([0-9])\\]", "", $listUpdates->upd_comments[$i] . "<br>");
        $listUpdates->upd_comments[$i] .= $strings["priority"] . " " . $priority[$matches[1]];
    }
    if (ereg("\\[datedue:([0-9]{4}-[0-9]{1,2}-[0-9]{1,2})\\]", $listUpdates->upd_comments[$i])) {
        preg_match("|\\[datedue:([0-9]{4}-[0-9]{1,2}-[0-9]{1,2})\\]|i", $listUpdates->upd_comments[$i], $matches);
        $listUpdates->upd_comments[$i] = ereg_replace("\\[datedue:([0-9]{4}-[0-9]{1,2}-[0-9]{1,2})\\]", "", $listUpdates->upd_comments[$i] . "<br>");
        $listUpdates->upd_comments[$i] .= $strings["due_date"] . " " . $matches[1];
    }
    $block1->contentRow($strings["posted_by"], buildLink($listUpdates->upd_mem_email_work[$i], $listUpdates->upd_mem_name[$i], LINK_MAIL));
    if ($listUpdates->upd_created[$i] > $_SESSION['lastvisiteSession']) {
        $block1->contentRow($strings["when"], "<b>" . createDate($listUpdates->upd_created[$i], $_SESSION['timezoneSession']) . "</b>");
    } else {
        $block1->contentRow($strings["when"], createDate($listUpdates->upd_created[$i], $_SESSION['timezoneSession']));
    }
    $block1->contentRow("", nl2br($listUpdates->upd_comments[$i]));
    $block1->contentRow("", "", "true");
}
$block1->closeContent();
$block1->headingForm_close();
$block1->closeForm();
require_once "../themes/" . THEME . "/footer.php";
开发者ID:jgatica,项目名称:Netoffice,代码行数:31,代码来源:historytask.php

示例5: buildLink

//--- header ---
$breadcrumbs[] = buildLink("../clients/listclients.php?", $strings["organizations"], LINK_INSIDE);
$breadcrumbs[] = $strings["organizations"];
//--- content ----
require_once "../themes/" . THEME . "/header.php";
$block1 = new block();
$block1->form = "ecD";
$block1->openForm("../projects/listprojects.php#" . $block1->form . "Anchor");
$block1->headingToggle($strings["organization"] . " : " . $clientDetail->org_name[0]);
$block1->openPaletteIcon();
$block1->paletteIcon(0, "remove", $strings["delete"]);
$block1->paletteIcon(1, "edit", $strings["edit"]);
$block1->closePaletteIcon();
$block1->openContent();
$block1->contentTitle($strings["details"]);
$block1->contentRow($strings["name"], $clientDetail->org_name[0]);
$block1->contentRow($strings["address"], $clientDetail->org_address1[0]);
$block1->contentRow($strings["phone"], $clientDetail->org_phone[0]);
$block1->contentRow($strings["url"], buildLink($clientDetail->org_url[0], $clientDetail->org_url[0], LINK_OUT));
$block1->contentRow($strings["email"], buildLink($clientDetail->org_email[0], $clientDetail->org_email[0], LINK_MAIL));
$block1->contentTitle($strings["details"]);
$block1->contentRow($strings["comments"], nl2br($clientDetail->org_comments[0]));
$block1->contentRow($strings["created"], createDate($clientDetail->org_created[0], $_SESSION['timezoneSession']));
$block1->closeContent();
$block1->closeToggle();
$block1->closeForm();
$block1->openPaletteScript();
$block1->paletteScript(0, "remove", "../clients/deleteclients.php?id=" . $clientDetail->org_id[0] . "", "true,true,false", $strings["delete"]);
$block1->paletteScript(1, "edit", "../clients/editclient.php?id=" . $clientDetail->org_id[0] . "", "true,true,false", $strings["edit"]);
$block1->closePaletteScript("", "");
require_once "../themes/" . THEME . "/footer.php";
开发者ID:jgatica,项目名称:Netoffice,代码行数:31,代码来源:sheet_toggle_icons.php

示例6: connectSql

    exit;
}
if ($action == "create") {
    $tmpquery = "UPDATE " . $tableCollab["projects"] . " SET published='0' WHERE id = '{$id}'";
    connectSql("{$tmpquery}");
    headerFunction("../projects/viewprojectsite.php?id={$id}&msg=createProjectSite&" . 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={$id}", $projectDetail->pro_name[0], in));
$blockPage->itemBreadcrumbs($strings["create_projectsite"]);
$blockPage->closeBreadcrumbs();
$block1 = new block();
$block1->form = "csdD";
$block1->openForm("../projects/addprojectsite.php?action=create&id={$id}&" . session_name() . "=" . session_id());
$block1->heading($strings["create_projectsite"]);
$block1->openContent();
$block1->contentTitle($strings["details"]);
$block1->contentRow($strings["project"], $blockPage->buildLink("../projects/viewproject.php?id={$id}", $projectDetail->pro_name[0], in));
if ($projectDetail->pro_org_id[0] == "1") {
    $block1->contentRow($strings["organization"], $strings["none"]);
} else {
    $block1->contentRow($strings["organization"], $blockPage->buildLink("../clients/viewclient.php?id=" . $projectDetail->pro_org_id[0], $projectDetail->pro_org_name[0], in));
}
$block1->contentRow("", "<input type=\"SUBMIT\" value=\"" . $strings["create"] . "\">");
$block1->closeContent();
$block1->closeForm();
include '../themes/' . THEME . '/footer.php';
开发者ID:ColBT,项目名称:php_tut,代码行数:31,代码来源:addprojectsite.php

示例7:

    $block1->openPaletteIcon();
    $block1->paletteIcon(0, "remove", $strings["delete"]);
    //$block1->paletteIcon(1,"export",$strings["export"]);
    if ($sitePublish == "true") {
        $block1->paletteIcon(2, "add_projectsite", $strings["add_project_site"]);
        $block1->paletteIcon(3, "remove_projectsite", $strings["remove_project_site"]);
    }
    $block1->paletteIcon(4, "edit", $strings["edit"]);
    $block1->closePaletteIcon();
}
if ($projectDetail->pro_org_id[0] == "1") {
    $projectDetail->pro_org_name[0] = $strings["none"];
}
$block1->openContent();
$block1->contentTitle($strings["info"]);
$block1->contentRow($strings["project"], $blockPage->buildLink("../projects/viewproject.php?id=" . $projectDetail->pro_id[0], $projectDetail->pro_name[0], in));
if ($noteDetail->note_topic[0] != "") {
    $block1->contentRow($strings["topic"], $topicNote[$noteDetail->note_topic[0]]);
}
$block1->contentRow($strings["subject"], $noteDetail->note_subject[0]);
$block1->contentRow($strings["date"], $noteDetail->note_date[0]);
$block1->contentRow($strings["owner"], $blockPage->buildLink($noteDetail->note_mem_email_work[0], $noteDetail->note_mem_login[0], mail));
$block1->contentRow($strings["description"], nl2br($noteDetail->note_description[0]));
$idPublish = $noteDetail->note_published[0];
if ($sitePublish == "true") {
    $block1->contentRow($strings["published"], $statusPublish[$idPublish]);
}
$block1->closeContent();
$block1->closeForm();
if ($teamMember == "true" && $idSession == $noteDetail->note_owner[0]) {
    $block1->openPaletteScript();
开发者ID:ColBT,项目名称:php_tut,代码行数:31,代码来源:viewnote.php

示例8: count

}
$block1->openContent();
$block1->contentTitle($strings["info"]);
$comptSupStatus = count($requestStatus);
for ($i = 0; $i < $comptSupStatus; $i++) {
    if ($requestDetail->sr_status[0] == $i) {
        $status = $requestStatus[$i];
    }
}
$comptPri = count($priority);
for ($i = 0; $i < $comptPri; $i++) {
    if ($requestDetail->sr_priority[0] == $i) {
        $requestPriority = $priority[$i];
    }
}
$block1->contentRow($strings["project"], buildLink("../projects/viewproject.php?id=" . $requestDetail->sr_project[0], $requestDetail->sr_pro_name[0], LINK_INSIDE));
$block1->contentRow($strings["subject"], $requestDetail->sr_subject[0]);
$block1->contentRow($strings["priority"], $requestPriority);
$block1->contentRow($strings["status"], $status);
$block1->contentRow($strings["date"], $requestDetail->sr_date_open[0]);
$block1->contentRow($strings["user"], buildLink($requestDetail->sr_mem_email_work[0], $requestDetail->sr_mem_name[0], LINK_MAIL));
$block1->contentRow($strings["message"], nl2br($requestDetail->sr_message[0]));
$block1->contentTitle($strings["responses"]);
if ($teamMember == "true" || $_SESSION['profilSession'] != "0") {
    $block1->contentRow("", buildLink("../support/addpost.php?id=" . $requestDetail->sr_id[0], $strings["add_support_response"], LINK_INSIDE));
}
for ($i = 0; $i < $comptListPosts; $i++) {
    $block1->contentRow($strings["posted_by"], buildLink($listPosts->sp_mem_email_work[$i], $listPosts->sp_mem_name[$i], LINK_MAIL));
    $block1->contentRow($strings["date"], createDate($listPosts->sp_date[$i], $_SESSION['timezoneSession']));
    if ($teamMember == "true" || $_SESSION['profilSession'] == "0") {
        $block1->contentRow(buildLink("../support/deleterequests.php?action=deleteP&amp;id=" . $listPosts->sp_id[$i], $strings["delete_message"], LINK_INSIDE), nl2br($listPosts->sp_message[$i]));
开发者ID:jgatica,项目名称:Netoffice,代码行数:31,代码来源:viewrequest.php

示例9: request

    $block1->headingError($strings["errors"]);
    $block1->contentError($error);
}
if ($action != 'remove') {
    if ($id == "") {
        echo "\t<a name='" . $block1->form . "Anchor'></a>\n <form accept-charset='UNKNOWN' method='POST' action='../newsdesk/editnews.php?action=add&" . session_name() . "=" . session_id() . "' name='ecDForm'>\n";
        $block1->heading($strings["add_newsdesk"]);
    } else {
        echo "\t<a name='" . $block1->form . "Anchor'></a>\n <form accept-charset='UNKNOWN' method='POST' action='../newsdesk/editnews.php?id={$id}&action=update&" . session_name() . "=" . session_id() . "' name='ecDForm'>\n";
        $block1->heading($strings["edit_newsdesk"] . " : " . $newsDetail->news_title[0]);
    }
    $block1->openContent();
    $block1->contentTitle($strings["details"]);
    // add
    if ($id == "") {
        $block1->contentRow($strings["author"], "<input type='hidden' name='author' value='{$idSession}'><b>{$nameSession}</b>");
    } else {
        $tmpquery_user = "WHERE mem.id = '" . $newsDetail->news_author[0] . "' ";
        $newsAuthor = new request();
        $newsAuthor->openMembers($tmpquery_user);
        $block1->contentRow($strings["author"], "<input type='hidden' name='author' value='" . $newsDetail->news_author[0] . "'><b>" . $newsAuthor->mem_name[0] . "</b>");
    }
    $block1->contentRow($strings["title"], "<input type='text' name='title' value='{$title}' style='width: 300px;'>");
    // 04/11/2003 related news by fullo
    // admin can post news on all projects
    if ($profilSession == "0") {
        if ($databaseType == "postgresql") {
            $tmpquery = " GROUP BY pro.id, pro.name, tea.id";
        } else {
            $tmpquery = "  GROUP BY pro.id ";
        }
开发者ID:ColBT,项目名称:php_tut,代码行数:31,代码来源:editnews.php

示例10: block

**
** -----------------------------------------------------------------------------
** Please refer to license, copyright, and credits in README.TXT
**
** -----------------------------------------------------------------------------
** FILE: license.php
**
** DESC: Screen: print GNU/GPL license
**
** HISTORY:
** 	2003-10-23	-	added new document info
** -----------------------------------------------------------------------------
** TO-DO:
**
** =============================================================================
*/
$checkSession = "false";
include_once '../includes/library.php';
$notLogged = "true";
include '../themes/' . THEME . '/header.php';
$blockPage = new block();
$blockPage->openBreadcrumbs();
$blockPage->itemBreadcrumbs("&nbsp;");
$blockPage->closeBreadcrumbs();
$block1 = new block();
$block1->heading($setTitle . " : License");
$block1->openContent();
$block1->contentTitle("License");
$block1->contentRow("", "<pre>" . recupFile("../docs/copying.txt") . "</pre>");
$block1->closeContent();
include '../themes/' . THEME . '/footer.php';
开发者ID:ColBT,项目名称:php_tut,代码行数:31,代码来源:license.php

示例11:

    for ($i = 0; $i < $comptProjmem; $i++) {
        $selected = "";
        if ($worker_id == $projmem->mem_id[$i] || $worker_id == 0 && $_SESSION['idSession'] == $projmem->mem_id[$i]) {
            $selected = " selected";
        }
        echo "<option value='" . $projmem->mem_id[$i] . "'" . $selected . ">" . $projmem->mem_name[$i] . "{$clientUser}</option>";
    }
    echo "</select>" . "</td></tr>";
} else {
    echo "<input type='hidden' name='worker_id' value='" . $_SESSION['idSession'] . "'>" . $_SESSION['nameSession'];
}
//*** Data Input ***
if ($ld == '') {
    if ($dateURL == '') {
        $ld = $date;
    } else {
        $ld = $dateURL;
    }
}
$block1->contentRow($strings['date'], "<input type=\"text\" style=\"width: 150px;\" name=\"ld\" id=\"sel1\"\n\tsize=\"20\" value=\"{$ld}\" onChange='checkDateFormat(this);'><button type=\"reset\" id=\"trigger_a\">...</button>\n\t<script type=\"text/javascript\">Calendar.setup({ inputField:\"sel1\", button:\"trigger_a\" });</script>");
//Define action of the Cancel button depending of window type
if ($window == "popup") {
    $cancel_action = "window.close();";
} else {
    $cancel_action = "history.back();";
}
echo "\n\t<tr class='odd'>\n\t  <td valign='top' class='leftvalue'>" . $strings["worked_hours"] . " :</td>\n\t  <td>\n\t  \t\t<input size='20' value='{$hr}' style='width: 150px;' name='hr' maxlength='6' type='text' onChange='timeCheck(this);'></td>\n\t</tr>\n\t<tr class='odd'>\n\t  <td valign='top' class='leftvalue'>" . $strings["comments"] . " :</td>\n\t  <td><textarea rows='10' style='width: 400px; height: 150px;' name='comm' cols='47'>{$comm}</textarea></td>\n\t</tr>\n\t<tr class='odd'>\n\t  <td valign='top' class='leftvalue'>&nbsp;</td>\n\t  <td><input type='hidden' name='actionField' value='wait'><input type='SUBMIT' value='" . $strings["save"] . "' onClick='this.form.actionField.value=\"add\"'><input type='button' name='cancel' value='" . $strings['cancel'] . "' onClick='{$cancel_action}'></td></td>\n\t</tr>";
$block1->closeContent();
$block1->block_close();
$block1->closeForm();
require_once "../themes/" . THEME . "/footer.php";
开发者ID:TICanalyste,项目名称:netOffice--remix-,代码行数:31,代码来源:encode.php

示例12: IN

    $id = str_replace("**", ",", $id);
    $tmpquery1 = "DELETE FROM " . $tableCollab["reports"] . " WHERE id IN({$id})";
    connectSql($tmpquery1);
    header("Location: ../general/home.php?msg=deleteReport");
    exit;
}
//--- header ---
$breadcrumbs[] = buildLink("../reports/listreports.php?", $strings["my_reports"], LINK_INSIDE);
$breadcrumbs[] = $strings["delete_reports"];
$pageSection = 'reports';
require_once "../themes/" . THEME . "/header.php";
//--- content ---
$block1 = new block();
$block1->form = "saS";
$block1->openForm("../reports/deletereports.php?action=delete&amp;id={$id}");
$block1->headingForm($strings["delete_reports"]);
$block1->openContent();
$block1->contentTitle($strings["delete_following"]);
$id = str_replace("**", ",", $id);
$tmpquery = "WHERE rep.id IN({$id}) ORDER BY rep.name";
$listReports = new request();
$listReports->openReports($tmpquery);
$comptListReports = count($listReports->rep_id);
for ($i = 0; $i < $comptListReports; $i++) {
    $block1->contentRow("#" . $listReports->rep_id[$i], $listReports->rep_name[$i]);
}
$block1->contentRow("", "<input type=\"submit\" name=\"delete\" value=\"" . $strings["delete"] . "\"> <input type=\"button\" name=\"cancel\" value=\"" . $strings["cancel"] . "\" onClick=\"history.back();\">");
$block1->closeContent();
$block1->headingForm_close();
$block1->closeForm();
require_once "../themes/" . THEME . "/footer.php";
开发者ID:jgatica,项目名称:Netoffice,代码行数:31,代码来源:deletereports.php

示例13: block

        } else {
            $langDefault = 'en';
        }
    } else {
        $langDefault = 'en';
    }
}
require_once '../languages/lang_' . $langDefault . '.php';
$block1 = new block();
$block1->headingForm('NetOffice : Error');
$block1->openContent();
if ($_GET['type'] == 'myserver') {
    if ($databaseType == 'mysql') {
        $block1->contentTitle('MySQL Error');
    }
    $block1->contentRow('', $strings['error_server']);
}
if ($_GET['type'] == 'mydatabase') {
    if ($databaseType == 'mysql') {
        $block1->contentTitle('MySQL Error');
    }
    $block1->contentRow('', $strings['error_database']);
}
if ($_GET['type'] == 'phpversion') {
    $block1->contentTitle('PHP Version Error');
    $block1->contentRow('', $strings['error_phpversion']);
}
$block1->closeContent();
$block1->headingForm_close();
$footerDev = false;
require_once '../themes/' . THEME . '/footer.php';
开发者ID:jgatica,项目名称:Netoffice,代码行数:31,代码来源:error.php

示例14: Offline

if ($showHomeTasks) {
    $checkedHomeTasks_t = "checked";
} else {
    $checkedHomeTasks_f = "checked";
}
if ($showHomeSubtasks) {
    $checkedHomeSubtasks_t = "checked";
} else {
    $checkedHomeSubtasks_f = "checked";
}
if ($autoPublishTasks) {
    $checkedAutoPublish_t = "checked";
} else {
    $checkedAutoPublish_f = "checked";
}
$block1->contentRow("Installation type", "<input type='radio' name='installationTypeNew' value='offline' {$installCheckOffline} /> Offline (firewall/intranet, no update checker)&nbsp;<input type='radio' name='installationTypeNew' value='online' {$installCheckOnline} /> Online");
$block1->contentRow("Update checker", "<input type='radio' name='updateCheckerNew' value='false' {$checked2_e} /> False&nbsp;<input type='radio' name='updateCheckerNew' value='true' {$checked1_e} /> True");
echo "<tr class='odd'><td valign='top' class='leftvalue'>* Create folder method" . $blockPage->printHelp("setup_mkdirMethod") . "</td><td>\n<table cellpadding=0 cellspacing=0 width=500><tr><td valign=top><input type='radio' name='mkdirMethodNew' value='PHP' {$checked2_a} /> PHP&nbsp;<input type='radio' name='mkdirMethodNew' value='FTP' {$checked1_a} /> FTP<br/>[Safe-mode {$safemode}]</td><td align=right>";
echo "Ftp server <input size='44' value='" . FTPSERVER . "' style='width: 200px' name='ftpserverNew' maxlength='100' type='text' /><br/>\nFtp login <input size='44' value='" . FTPLOGIN . "' style='width: 200px' name='ftploginNew' maxlength='100' type='text' /><br/>\nFtp password <input size='44' value='" . FTPPASSWORD . "' style='width: 200px' name='ftppasswordNew' maxlength='100' type='password' /><br/>\nFtp root <input size='44' value='{$ftpRoot}' style='width: 200px' name='ftpRootNew' maxlength='100' type='text' />";
echo "</td></tr></table>\n</td></tr>";
echo "<tr class='odd'><td valign='top' class='leftvalue'>* Notification method" . $blockPage->printHelp("setup_notificationMethod") . "</td><td>\n<table cellpadding=0 cellspacing=0 width=500><tr><td valign=top><input type='radio' name='notificationMethodNew' value='mail' {$checked2_g} /> PHP mail function&nbsp;<input type='radio' name='notificationMethodNew' value='smtp' {$checked1_g} /> SMTP</td><td align=right>";
echo "Smtp server <input size='44' value='" . SMTPSERVER . "' style='width: 200px' name='smtpserverNew' maxlength='100' type='text /'><br/>\nSmtp login <input size='44' value='" . SMTPLOGIN . "' style='width: 200px' name='smtploginNew' maxlength='100' type='text' /><br/>\nSmtp password <input size='44' value='" . SMTPPASSWORD . "' style='width: 200px' name='smtppasswordNew' maxlength='100' type='password' />";
echo "</td></tr></table>\n</td></tr>";
echo "<tr class='odd'><td valign='top' class='leftvalue'>* Theme :</td><td><select name='mythemeNew'>";
$all = opendir("../themes");
while ($file = readdir($all)) {
    if ($file != "index.php" && $file != ".." && $file != "." && $file != "CVS") {
        if ($file == THEME) {
            echo "<option value=\"{$file}\" selected>{$file}</option>";
        } else {
            echo "<option value=\"{$file}\">{$file}</option>";
开发者ID:ColBT,项目名称:php_tut,代码行数:31,代码来源:updatesettings.php

示例15: block

$bodyCommand = 'onLoad="document.adminDForm.cn.focus();"';
$pageSection = 'admin';
require_once '../themes/' . THEME . '/header.php';
//---- content -------
$blockPage = new block();
$block1 = new block();
echo '<a name="' . $block1->form . 'Anchor"></a>';
echo '<form accept-charset="UNKNOWN" method="POST" action="../administration/mycompany.php?action=update" name="adminDForm" enctype="multipart/form-data">';
echo '<input type="hidden" name="MAX_FILE_SIZE" value="100000000">';
if ($error != '') {
    $block1->headingError($strings['errors']);
    $block1->contentError($error);
}
$block1->headingForm($strings['company_details']);
$block1->openContent();
$block1->contentTitle($strings['company_info']);
$block1->contentRow($strings['name'], '<input size="44" value="' . $cn . '" style="width: 400px" name="cn" maxlength="100" type="TEXT">');
$block1->contentRow($strings['address'], '<textarea rows="3" style="width: 400px; height: 50px;" name="add" cols="43">' . $add . '</textarea>');
$block1->contentRow($strings['phone'], '<input size="32" value="' . $wp . '" style="width: 250px" name="wp" maxlength="32" type="TEXT">');
$block1->contentRow($strings['url'], '<input size="44" value="' . $url . '" style="width: 400px" name="url" maxlength="2000" type="TEXT">');
$block1->contentRow($strings['email'], '<input size="44" value="' . $email . '" style="width: 400px" name="email" maxlength="2000" type="TEXT">');
$block1->contentRow($strings['comments'], '<textarea rows="3" style="width: 400px; height: 50px;" name="c" cols="43">' . $c . '</textarea>');
$block1->contentRow($strings['logo'] . $blockPage->printHelp('mycompany_logo'), '<input size="44" style="width: 400px" name="upload" type="file">');
if (file_exists('../logos_clients/1.' . $clientDetail->org_extension_logo[0])) {
    $block1->contentRow('', '<img src="../logos_clients/1.' . $clientDetail->org_extension_logo[0] . '" border="0" alt="' . $clientDetail->org_name[0] . '"><input name="extensionOld" type="hidden" value="' . $clientDetail->org_extension_logo[0] . '"> <input name="logoDel" type="checkbox" value="on"> ' . $strings['delete']);
}
$block1->contentRow('', '<input type="SUBMIT" value="' . $strings['save'] . '">');
$block1->closeContent();
$block1->headingForm_close();
$block1->closeForm();
require_once '../themes/' . THEME . '/footer.php';
开发者ID:jgatica,项目名称:Netoffice,代码行数:31,代码来源:mycompany.php


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