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


PHP request::openNotes方法代码示例

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


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

示例1: array

    $block6->sorting("notes", $sortingUser->sor_notes[0], "note.date DESC", $sortingFields = array(0 => "note.subject", 1 => "note.date", 2 => "mem.login", 3 => "note.published"));
}
if ($projectsFilter == "true") {
    if ($comptListProjectsFilter != "0") {
        $tmpquery = "{$searchNotes} AND note.project IN({$filterResults}) ORDER BY {$block6->sortingValue}";
    } else {
        $validNotes = "false";
    }
} else {
    $tmpquery = "{$searchNotes} ORDER BY {$block6->sortingValue}";
}
$comptListNotes = "0";
if ($validNotes == "true") {
    $block6->recordsTotal = compt($initrequest["notes"] . " " . $tmpquery);
    $listNotes = new request();
    $listNotes->openNotes($tmpquery, $block6->borne, $block6->rowsLimit);
    $comptListNotes = count($listNotes->note_id);
    // echo "$tmpquery<br>";
}
$comptTotal = $block1->recordsTotal + $block2->recordsTotal + $block3->recordsTotal + $block4->recordsTotal + $block5->recordsTotal + $block6->recordsTotal;
$blockPage = new block();
$blockPage->bornesNumber = "6";
$block0 = new block();
$block0->openContent();
$block0->contentTitle($strings["results_for_keywords"] . " : <b>{$searchfor}</b>");
echo "<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue\">&nbsp;</td><td>";
if ($comptTotal == "1") {
    echo "1&#160;" . $strings["match"];
}
if ($comptTotal > "1" || $comptTotal == "0") {
    echo "{$comptTotal}&#160;" . $strings["matches"];
开发者ID:TICanalyste,项目名称:netOffice--remix-,代码行数:31,代码来源:resultssearch.php

示例2: connectSql

if ($action == "publish") {
    if ($addToSite == "true") {
        $tmpquery1 = "UPDATE " . $tableCollab["notes"] . " SET published='0' WHERE id = '{$id}'";
        connectSql("{$tmpquery1}");
        $msg = "addToSite";
    }
    if ($removeToSite == "true") {
        $tmpquery1 = "UPDATE " . $tableCollab["notes"] . " SET published='1' WHERE id = '{$id}'";
        connectSql("{$tmpquery1}");
        $msg = "removeToSite";
    }
}
include '../themes/' . THEME . '/header.php';
$tmpquery = "WHERE note.id = '{$id}'";
$noteDetail = new request();
$noteDetail->openNotes($tmpquery);
$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();
开发者ID:ColBT,项目名称:php_tut,代码行数:31,代码来源:viewnote.php

示例3: IN

if ($action == "delete") {
    $id = str_replace("**", ",", $id);
    $tmpquery1 = "DELETE FROM " . $tableCollab["notes"] . " WHERE id IN({$id})";
    connectSql("{$tmpquery1}");
    header("Location: ../projects/viewproject.php?id={$project}&msg=delete");
    exit;
}
//--- header ---
$breadcrumbs[] = buildLink("../projects/listprojects.php?", $strings["projects"], LINK_INSIDE);
$breadcrumbs[] = $strings["delete_note"];
require_once "../themes/" . THEME . "/header.php";
//--- content ---
$block1 = new block();
$block1->form = "saP";
$block1->openForm("../notes/deletenotes.php?project={$project}&amp;action=delete&amp;id={$id}");
$block1->headingForm($strings["delete_note"]);
$block1->openContent();
$block1->contentTitle($strings["delete_following"]);
$id = str_replace("**", ",", $id);
$tmpquery = "WHERE note.id IN({$id}) ORDER BY note.subject";
$listNotes = new request();
$listNotes->openNotes($tmpquery);
$comptListNotes = count($listNotes->note_id);
for ($i = 0; $i < $comptListNotes; $i++) {
    $block1->contentRow("#" . $listNotes->note_id[$i], $listNotes->note_subject[$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:TICanalyste,项目名称:netOffice--remix-,代码行数:31,代码来源:deletenotes.php


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