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


PHP buildLink函数代码示例

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


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

示例1: launchExternal

function launchExternal($input, $params = array())
{
    global $wgServer;
    global $wgAddServerName_EXT;
    $arrInput = split("::", $input);
    // use a different display then the file reference...
    $reference = $input;
    $display = "";
    $server = "";
    if (count($arrInput) > 1) {
        $reference = $arrInput[0];
        $display = $arrInput[1];
    }
    $reference = str_replace('\\', '/', $reference);
    $reference = str_replace('////', '//', $reference);
    //fix just incase we have "file://\\server"
    if (strpos($reference, "://") !== false) {
        $section1 = explode("/", $reference);
        $section2 = explode(".", $section1[2]);
        //parse the dots (sub-domains)
        if ($wgAddServerName_EXT && strpos($reference, "file://") !== false) {
            $server = " <i>({$section2['0']})</i>";
        }
        if ($display == "") {
            $display = $section1[count($section1) - 1];
        }
        //default the file name
        return "<a href='" . $reference . "' target='new'>" . ($display == "" ? $reference : $display) . "{$server}</a>";
    }
    // wiki uploaded media or image reference
    $img = Image::newFromName($reference);
    if ($img->exists()) {
        return buildLink($wgServer . $img->getURL(), $display == "" ? $reference : $display);
    }
    return $input . " <i>(bad reference)</i>";
}
开发者ID:mediawiki-extensions,项目名称:mw-toolbox,代码行数:36,代码来源:launchExternal.php

示例2: count

$listMeetings->openMeetings($tmpquery, $block1->borne, $block1->rowsLimit);
$comptListMeetings = count($listMeetings->mee_id);
if ($comptListMeetings != "0") {
    $block1->openResults();
    $block1->labels($labels = array(0 => $strings['id'], 1 => $strings['meeting'], 2 => $strings['priority'], 3 => $strings['status'], 4 => $strings['date']), 'true');
    for ($i = 0; $i < $comptListMeetings; $i++) {
        $idStatus = $listMeetings->mee_status[$i];
        $idPriority = $listMeetings->mee_priority[$i];
        $idPublish = $listMeetings->mee_published[$i];
        $block1->openRow($listMeetings->mee_id[$i]);
        $block1->checkboxRow($listMeetings->mee_id[$i]);
        $block1->cellRow(buildLink("../meetings/viewmeeting.php?id=" . $listMeetings->mee_id[$i], $listMeetings->mee_id[$i], LINK_INSIDE));
        if ($idStatus == 1) {
            $block1->cellRow(buildLink("../meetings/viewmeeting.php?id=" . $listMeetings->mee_id[$i], $listMeetings->mee_name[$i], LINK_STRIKE));
        } else {
            $block1->cellRow(buildLink("../meetings/viewmeeting.php?id=" . $listMeetings->mee_id[$i], $listMeetings->mee_name[$i], LINK_INSIDE));
        }
        $block1->cellRow('<img src="../themes/' . THEME . '/gfx_priority/' . $idPriority . '.gif" alt="' . $priority[$idPriority] . '">&nbsp;' . $priority[$idPriority], '', true);
        $block1->cellRow('<img src="../themes/' . THEME . '/gfx_status/' . $idStatus . '.gif" alt="' . $status[$idStatus] . '">&nbsp;' . $status[$idStatus], '', true);
        if ($listMeetings->mee_date[$i] <= $date && $idStatus != 1) {
            $block1->cellRow("<b>" . $listMeetings->mee_date[$i] . "</b>");
        } else {
            $block1->cellRow($listMeetings->mee_date[$i]);
        }
        $block1->cellRow($complValue);
        $block1->closeRow();
    }
    $block1->closeResults();
    $block1->bornesFooter("1", $blockPage->bornesNumber, "", "project={$project}");
} else {
    $block1->noresults();
开发者ID:jgatica,项目名称:Netoffice,代码行数:31,代码来源:listmeetings.php

示例3: VALUES

        // resolves bug #768688
        $tmpquery1 = 'INSERT INTO ' . $tableCollab['tasks_time'] . " (project,task,owner,date,hours,comments,created,modified) VALUES ('" . $projectDetail->pro_id[0] . "', '{$id}','{$owner}','{$ld}','{$hr}','{$comm}',NOW(),NOW())";
        connectSql($tmpquery1);
        $ld = null;
        $hr = null;
        $comm = null;
        // successful insert
        $msgLabel = '<b>' . $strings['success'] . '</b> : ' . $strings['hours_updated'];
    }
    $msg = $msgLabel;
}
//--- header ---
$breadcrumbs[] = buildLink("../projects/listprojects.php?", $strings["projects"], LINK_INSIDE);
$breadcrumbs[] = buildLink("../projects/viewproject.php?id=" . $projectDetail->pro_id[0], $projectDetail->pro_name[0], LINK_INSIDE);
$breadcrumbs[] = buildLink("../tasks/listtasks.php?project=" . $projectDetail->pro_id[0], $strings["tasks"], LINK_INSIDE);
$breadcrumbs[] = buildLink("../tasks/viewtask.php?id=" . $taskDetail->tas_id[0], $taskDetail->tas_name[0], LINK_INSIDE);
$breadcrumbs[] = $strings["add_task_time"];
require_once "../themes/" . THEME . "/header.php";
//--- content ---
$tmpquery1 = "SELECT sum(hours) FROM " . $tableCollab['tasks_time'];
$blockPage = new block();
$blockPage->bornesNumber = "1";
// get actual time for task
$taskActualTime = new request();
$actualTime = $taskActualTime->getTaskTime($id);
$block1 = new block();
$block1->form = "saT";
$block1->openForm("../tasks/addtasktime.php?id={$id}&amp;project=" . $projectDetail->pro_name[0] . "&amp;action=add#" . $block1->form . "Anchor");
$block1->heading($strings["add_task_time"] . " : " . $taskDetail->tas_name[0]);
$block1->heading_close();
$block1->openContent();
开发者ID:jgatica,项目名称:Netoffice,代码行数:31,代码来源:addtasktime.php

示例4: str_replace

 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 */
$checkSession = true;
require_once '../includes/library.php';
if ($action == 'delete') {
    $id = str_replace('**', ',', $id);
    $tmpquery1 = 'DELETE FROM ' . $tableCollab['bookmarks'] . ' WHERE id IN(' . $id . ')';
    connectSql($tmpquery1);
    header('Location: ../bookmarks/listbookmarks.php?view=my&msg=delete');
    exit;
}
//--- header ---
$breadcrumbs[] = buildLink('../bookmarks/listbookmarks.php?view=all', $strings['bookmarks'], LINK_INSIDE);
$breadcrumbs[] = $strings['delete_bookmarks'];
$pageSection = 'bookmarks';
require_once '../themes/' . THEME . '/header.php';
//--- content ------
$block1 = new block();
$block1->form = 'saP';
$block1->openForm('../bookmarks/deletebookmarks.php?action=delete&amp;id=' . $id);
$block1->headingForm($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();
$listBookmarks->openBookmarks($tmpquery);
$comptListBookmarks = count($listBookmarks->boo_id);
开发者ID:jgatica,项目名称:Netoffice,代码行数:31,代码来源:deletebookmarks.php

示例5: buildLink

         $highlightOff = $evenColor;
     }
     // Calculate a revision number for display for each listing
     $displayrev = $i + 1;
     echo "<table width=\"600\" cellpadding=\"0\" cellspacing=\"0\" class=\"tableRevision\" onmouseover=\"this.style.backgroundColor='" . $block2->highlightOn . "'\" onmouseout=\"this.style.backgroundColor='" . $block2->highlightOff . "'\">\r\n\t<tr bgcolor=\"" . $block2->fgColor . "\"><td>";
     if ($fileDetail->mat_owner[0] == $_SESSION['idSession']) {
         echo "<a href=\"javascript:MM_toggleItem(document." . $block2->form . "Form, '" . $listReviews->mat_id[$i] . "', '" . $block2->form . "cb" . $listReviews->mat_id[$i] . "','" . THEME . "')\"><img name=\"" . $block2->form . "cb" . $listReviews->mat_id[$i] . "\" border=\"0\" src=\"../themes/" . THEME . "/checkbox_off_16.gif\" alt=\"\" vspace=\"0\"></a>";
     }
     echo "&nbsp;</td>\r\n\t<td colspan=\"3\">{$displayname}&nbsp;&nbsp;";
     if (file_exists("../files/" . $listReviews->mat_project[$i] . "/meetings/" . $listReviews->mat_meeting[$i] . "/" . $listReviews->mat_name[$i])) {
         echo buildLink("../meetings/accessfile.php?mode=view&amp;id=" . $listReviews->mat_id[$i], $strings["view"], LINK_INSIDE);
         $folder = $listReviews->mat_project[$i] . "/meetings/" . $listReviews->mat_meeting[$i];
         $existFile = "true";
     }
     if ($existFile == "true") {
         echo " " . buildLink("../meetings/accessfile.php?mode=download&amp;id=" . $listReviews->mat_id[$i], $strings["save"], LINK_INSIDE);
     } else {
         echo $strings["missing_file"];
     }
     echo "</td><td align=\"right\">Revision: {$displayrev}&nbsp;&nbsp;</td></tr>\r\n\t<tr><td>&nbsp;</td><td width=\"30%\">" . $strings["ifc_revision_of"] . " : " . $listReviews->mat_vc_version[$i] . "</td><td width=\"40%\">" . $strings["owner"] . " : " . $listReviews->mat_mem_name[$i] . "</td><td colspan=\"2\" align=\"left\" width=\"30%\">" . $strings["date"] . " : " . $listReviews->mat_date[$i] . "</td></tr>\r\n\t<tr><td>&nbsp;</td><td colspan=\"4\">" . $strings["comments"] . " : " . $listReviews->mat_comments[$i] . "</td></tr>\r\n\t</table><br>";
 }
 if ($i == 0) {
     echo "<tr class=\"odd\"><td></td><td>" . $strings["ifc_no_revisions"] . "</td></tr>";
 }
 echo "</table></td></tr>";
 $block2->closeContent();
 $block2->headingForm_close();
 $block2->closeFormResults();
 if ($fileDetail->mat_owner[0] == $_SESSION['idSession']) {
     $block2->openPaletteScript();
     $block2->paletteScript(0, "remove", "../meetings/deletefiles.php?project=" . $fileDetail->mat_project[0] . "&meeting=" . $fileDetail->mat_meeting[0] . "&sendto=filedetails", "false,true,true", $strings["ifc_delete_review"]);
开发者ID:jgatica,项目名称:Netoffice,代码行数:31,代码来源:viewfile.php

示例6: header

                // if mantis bug tracker enabled
                if ($enableMantis == "true") {
                    // Call mantis function for new user creation!!!
                    $f_access_level = $client_user_level;
                    // Reporter
                    require_once "../mantis/create_new_user.php";
                }
                header("Location: ../clients/viewclient.php?id={$clod}&msg=add");
                exit;
            }
        }
    }
}
//--- header ---
$breadcrumbs[] = buildLink("../clients/listclients.php?", $strings["clients"], LINK_INSIDE);
$breadcrumbs[] = buildLink("../clients/viewclient.php?id=" . $clientDetail->org_id[0], $clientDetail->org_name[0], LINK_INSIDE);
$breadcrumbs[] = $strings["add_client_user"];
$bodyCommand = "onLoad=\"document.client_user_addForm.un.focus();\"";
require_once "../themes/" . THEME . "/header.php";
//--- content ---
$block1 = new block();
$block1->form = "client_user_add";
$block1->openForm("../users/addclientuser.php?organization={$organization}&action=add");
if ($error != "") {
    $block1->headingError($strings["errors"]);
    $block1->contentError($error);
}
$block1->headingForm($strings["add_client_user"]);
$block1->openContent();
$block1->contentTitle($strings["enter_user_details"]);
$block1->contentRow($strings["user_name"], "<input size=\"24\" style=\"width: 250px;\" maxlength=\"16\" type=\"text\" name=\"un\" value=\"{$un}\">");
开发者ID:jgatica,项目名称:Netoffice,代码行数:31,代码来源:addclientuser.php

示例7: 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

示例8: request

$tmpquery = "WHERE tea.project = '{$id}' AND mem.profil != '3' ORDER BY {$block1->sortingValue}";
$listTeam = new request();
$listTeam->openTeams($tmpquery);
$comptListTeam = count($listTeam->tea_id);
$block1->openResults();
$block1->labels($labels = array(0 => $strings["full_name"], 1 => $strings["title"], 2 => $strings["user_name"], 3 => $strings["work_phone"], 4 => $strings["connected"], 5 => $strings["published"]), "true");
for ($i = 0; $i < $comptListTeam; $i++) {
    if ($listTeam->tea_mem_phone_work[$i] == "") {
        $listTeam->tea_mem_phone_work[$i] = $strings["none"];
    }
    $idPublish = $listTeam->tea_published[$i];
    $block1->openRow($listTeam->tea_mem_id[$i]);
    $block1->checkboxRow($listTeam->tea_mem_id[$i]);
    $block1->cellRow(buildLink("../users/viewuser.php?id=" . $listTeam->tea_mem_id[$i], $listTeam->tea_mem_name[$i], LINK_INSIDE));
    $block1->cellRow($listTeam->tea_mem_title[$i]);
    $block1->cellRow(buildLink($listTeam->tea_mem_email_work[$i], $listTeam->tea_mem_login[$i], LINK_MAIL));
    $block1->cellRow($listTeam->tea_mem_phone_work[$i]);
    if ($listTeam->tea_log_connected[$i] > $dateunix - 5 * 60) {
        $block1->cellRow($strings["yes"] . " " . $z);
    } else {
        $block1->cellRow($strings["no"]);
    }
    if ($sitePublish == "true") {
        $block1->cellRow($statusPublish[$idPublish]);
    }
    $block1->closeRow();
}
$block1->closeResults();
$block1->closeFormResults();
$block1->openPaletteScript();
$block1->paletteScript(0, "add", "../teams/adduser.php?project=" . $projectDetail->pro_id[0] . "", "true,true,true", $strings["add"]);
开发者ID:jgatica,项目名称:Netoffice,代码行数:31,代码来源:listusers.php

示例9: array

    $block6->openResults();
    if ($comptTopic != "0") {
        $block6->labels($labels = array(0 => $strings["subject"], 1 => $strings["topic"], 2 => $strings["date"], 3 => $strings["owner"], 4 => $strings["published"]), "true");
    } else {
        $block6->labels($labels = array(0 => $strings["subject"], 1 => $strings["date"], 2 => $strings["owner"], 3 => $strings["published"]), "true");
    }
    for ($i = 0; $i < $comptListNotes; $i++) {
        $idPublish = $listNotes->note_published[$i];
        $block6->openRow($listNotes->note_id[$i]);
        $block6->checkboxRow($listNotes->note_id[$i]);
        $block6->cellRow(buildLink("../notes/viewnote.php?id=" . $listNotes->note_id[$i], $listNotes->note_subject[$i], LINK_INSIDE));
        if ($comptTopic != "0") {
            $block6->cellRow($topicNote[$listNotes->note_topic[$i]]);
        }
        $block6->cellRow($listNotes->note_date[$i]);
        $block6->cellRow(buildLink($listNotes->note_mem_email_work[$i], $listNotes->note_mem_login[$i], LINK_MAIL));
        if ($sitePublish == "true") {
            $block6->cellRow($statusPublish[$idPublish]);
        }
        $block6->closeRow();
    }
    $block6->closeResults();
    $block6->bornesFooter("6", $blockPage->bornesNumber, "", "searchfor={$searchfor}&amp;heading={$heading}");
    $block6->closeToggle();
    $block3->headingForm_close();
    $block6->closeFormResults();
    /*$block6->openPaletteScript();
    $block6->paletteScript(0,"export","../projects/exportproject.php?languageSession=" . $_SESSION['languageSession'] . "&type=project","false,true,false",$strings["export"]);
    $block6->closePaletteScript($comptListNotes,$listNotes->note_id);*/
}
$block7 = new block();
开发者ID:TICanalyste,项目名称:netOffice--remix-,代码行数:31,代码来源:resultssearch.php

示例10: date

            $day = date("j");
            if (strlen($month) == 1) {
                $month = "0{$month}";
            }
            if (strlen($pmonth) == 1) {
                $pmonth = "0{$pmonth}";
            }
            if (strlen($nmonth) == 1) {
                $nmonth = "0{$nmonth}";
            }
            if (strlen($day) == 1) {
                $day = "0{$day}";
            }
            $datePast = "{$pyear}-{$pmonth}-01";
            $dateNext = "{$nyear}-{$nmonth}-01";
            $dateToday = "{$year}-{$month}-{$day}";
            echo "<table><tr><td class=calend> </td></tr></table>";
            echo "<table cellspacing=\"0\" width=\"100%\" border=\"0\" cellpadding=\"0\"><tr><td nowrap align=\"right\" class=\"footerCell\">" . buildLink("../calendar/viewcalendar.php?viewCalend={$viewCalend}&amp;dateCalend={$datePast}", $strings["previous"], LINK_INSIDE) . " | " . buildLink("../calendar/viewcalendar.php?viewCalend={$viewCalend}&amp;dateCalend={$dateToday}", $strings["today"], LINK_INSIDE) . " | " . buildLink("../calendar/viewcalendar.php?viewCalend={$viewCalend}&amp;dateCalend={$dateNext}", $strings["next"], LINK_INSIDE) . "</td></tr><tr><td height=\"5\" colspan=\"2\"><img width=\"1\" height=\"5\" border=\"0\" src=\"../themes/" . THEME . "/spacer.gif\" alt=\"\"></td></tr></table>";
            if ($activeJpgraph == "true" && $gantt == "true") {
                // show the expanded or compact Gantt Chart
                if ($_GET['base'] == 1) {
                    echo "<a href='viewcalendar.php?viewCalend={$viewCalend}&amp;dateCalend={$dateCalend}&amp;base=0'>expand</a><br>";
                } else {
                    echo "<a href='viewcalendar.php?viewCalend={$viewCalend}&amp;dateCalend={$dateCalend}&amp;base=1'>compact</a><br>";
                }
                echo "<img src=\"graphtasks.php?viewCalend={$viewCalend}&amp;dateCalend={$dateCalend}&amp;base=" . $_GET['base'] . "\" alt=\"\"><br>\r\n<span class=\"listEvenBold\">" . buildLink("http://www.aditus.nu/jpgraph/", "JpGraph", LINK_POWERED) . "</span>";
            }
        }
    }
}
require_once "../themes/" . THEME . "/footer.php";
开发者ID:jgatica,项目名称:Netoffice,代码行数:31,代码来源:viewcalendar.php

示例11: array

*/
// set up the header string
$headerString = $strings['project_breakdown'];
$headerString .= ': ' . ($comptListProjects == 1 ? "{$comptListProjects} {$strings['match']}" : "{$comptListProjects} {$strings['matches']}");
$block1->heading($headerString);
$block1->heading_close();
if ($comptListProjects != "0") {
    $block1->openResults($checkbox = "false");
    $block1->labels($labels = array(0 => $strings["owner"], 1 => $strings["project"], 2 => $strings["organization"], 3 => $strings["status"]), "false");
    for ($i = 0; $i < $comptListProjects; $i++) {
        $idStatus = $listProjects->pro_status[$i];
        $block1->openRow();
        $block1->checkboxRow($listProjects->pro_id[$i], $checkbox = "false");
        if ($listProjects->pro_owner[$i] == "0") {
            $block1->cellRow($strings["unassigned"]);
        } else {
            $block1->cellRow(buildLink($listProjects->pro_mem_email_work[$i], $listProjects->pro_mem_name[$i], LINK_MAIL));
        }
        $block1->cellRow(buildLink("../projects/viewproject.php?id=" . $listProjects->pro_id[$i], $listProjects->pro_name[$i], LINK_INSIDE));
        $block1->cellRow(buildLink("../clients/viewclient.php?id=" . $listProjects->pro_org_id[$i], $listProjects->pro_org_name[$i], LINK_INSIDE));
        // $block1->cellRow($listProjects->pro_status[$i]);
        $block1->cellRow('<img src="../themes/' . THEME . '/gfx_status/' . $idStatus . '.gif" alt="' . $status[$idStatus] . '">&nbsp;' . $status[$idStatus], '', true);
        $block1->closeRow();
    }
    $block1->closeResults();
} else {
    $block1->noresults();
}
$block1->closeFormResults();
// close this block
require_once "../themes/" . THEME . "/footer.php";
开发者ID:TICanalyste,项目名称:netOffice--remix-,代码行数:31,代码来源:projectbreakdown.php

示例12: IN

    $tmpquery10 = 'DELETE FROM ' . $tableCollab['support_posts'] . ' WHERE project IN(' . $id . ')';
    connectSql($tmpquery10);
    $tmpquery11 = 'DELETE FROM ' . $tableCollab['phases'] . ' WHERE project_id IN(' . $id . ')';
    connectSql($tmpquery11);
    $tmpquery12 = 'DELETE FROM ' . $tableCollab['tasks_time'] . ' WHERE project IN(' . $id . ')';
    connectSql($tmpquery12);
    // if mantis bug tracker enabled
    if ($enableMantis == 'true') {
        // call mantis function to delete project
        require_once '../mantis/proj_delete.php';
    }
    header('Location: ../projects/listprojects.php?msg=delete');
    exit;
}
//--- header ----
$breadcrumbs[] = buildLink('../projects/listprojects.php?', $strings['projects'], LINK_INSIDE);
$breadcrumbs[] = $strings['delete_projects'];
$pageSection = 'projects';
require_once '../themes/' . THEME . '/header.php';
//--- content ---
$block1 = new block();
$block1->form = 'saP';
$block1->openForm('../projects/deleteproject.php?action=delete&amp;id=' . $id);
$block1->headingForm($strings['delete_projects']);
$block1->openContent();
$block1->contentTitle($strings['delete_following']);
for ($i = 0; $i < $comptListProjects; $i++) {
    $block1->contentRow('#' . $listProjects->pro_id[$i], $listProjects->pro_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();
开发者ID:jgatica,项目名称:Netoffice,代码行数:31,代码来源:deleteproject.php

示例13: buildLink

$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]));
    } else {
        $block1->contentRow("", nl2br($listPosts->sp_message[$i]));
    }
    $block1->contentRow("", "", "true");
}
if ($status == $requestStatus[0]) {
    $status = "new";
} elseif ($status == $requestStatus[1]) {
    $status = "open";
} elseif ($status == $requestStatus[2]) {
    $status = "complete";
}
$block1->closeContent();
$block1->openPaletteScript();
$block1->paletteScript(0, "edit", "../support/addpost.php?action=status&id=" . $requestDetail->sr_id[0] . "", "true,true,true", $strings["edit_status"]);
开发者ID:jgatica,项目名称:Netoffice,代码行数:31,代码来源:viewrequest.php

示例14: str_replace

 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 */
$checkSession = true;
require_once "../includes/library.php";
if ($action == "delete") {
    $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);
开发者ID:jgatica,项目名称:Netoffice,代码行数:31,代码来源:deletereports.php

示例15: count

        $comptSta = count($requestStatus);
        for ($sr = 0; $sr < $comptSta; $sr++) {
            if ($listRequests->sr_status[$i] == $sr) {
                $currentStatus = $requestStatus[$sr];
            }
        }
        $comptPri = count($priority);
        for ($rp = 0; $rp < $comptPri; $rp++) {
            if ($listRequests->sr_priority[$i] == $rp) {
                $requestPriority = $priority[$rp];
            }
        }
        $block1->openRow($listRequests->sr_id[$i]);
        $block1->checkboxRow($listRequests->sr_id[$i]);
        $block1->cellRow($listRequests->sr_id[$i]);
        $block1->cellRow(buildLink("../support/viewrequest.php?id=" . $listRequests->sr_id[$i], $listRequests->sr_subject[$i], LINK_INSIDE));
        $block1->cellRow($listRequests->sr_mem_name[$i]);
        $block1->cellRow($listRequests->sr_project[$i]);
        $block1->cellRow($requestPriority);
        $block1->cellRow($currentStatus);
        $block1->cellRow($listRequests->sr_date_open[$i]);
        $block1->cellRow($listRequests->sr_date_close[$i]);
        $block1->closeRow();
    }
    $block1->closeResults();
} else {
    $block1->noresults();
}
$block1->closeFormResults();
if ($teamMember == "true" || $_SESSION['profilSession'] == "0") {
    $block1->openPaletteScript();
开发者ID:jgatica,项目名称:Netoffice,代码行数:31,代码来源:support.php


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