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


PHP request::openMeetingsAttachment方法代码示例

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


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

示例1: array

     $block2->paletteIcon(0, "add", $strings["add"]);
     $block2->paletteIcon(1, "remove", $strings["delete"]);
     if ($sitePublish == "true") {
         $block2->paletteIcon(2, "add_projectsite", $strings["add_project_site"]);
         $block2->paletteIcon(3, "remove_projectsite", $strings["remove_project_site"]);
     }
 }
 $block2->paletteIcon(4, "info", $strings["view"]);
 if ($teamMember == "true" || $_SESSION['profilSession'] == "5") {
     $block2->paletteIcon(5, "edit", $strings["edit"]);
 }
 $block2->closePaletteIcon();
 $block2->sorting("meetings_attachment", $sortingUser->sor_meetings_attachment[0], "mat.name ASC", $sortingFields = array(0 => "mat.extension", 1 => "mat.name", 2 => "mat.date", 3 => "mat.status", 4 => "mat.published"));
 $tmpquery = "WHERE mat.meeting = '{$id}' AND mat.vc_parent = '0' ORDER BY {$block2->sortingValue}";
 $listAttachments = new request();
 $listAttachments->openMeetingsAttachment($tmpquery);
 $comptListFiles = count($listAttachments->mat_id);
 if ($comptListFiles != "0") {
     $block2->openResults();
     $block2->labels($labels = array(0 => $strings["type"], 1 => $strings["name"], 2 => $strings["date"], 3 => $strings["approval_tracking"], 4 => $strings["published"]), "true");
     require_once "../includes/files_types.php";
     for ($i = 0; $i < $comptListFiles; $i++) {
         $existFile = "false";
         $idStatus = $listAttachments->mat_status[$i];
         $idPublish = $listAttachments->mat_published[$i];
         $type = file_info_type($listAttachments->mat_extension[$i]);
         if (file_exists("../files/" . $listAttachments->mat_project[$i] . "/meetings/" . $listAttachments->mat_meeting[$i] . "/" . $listAttachments->mat_name[$i])) {
             $existFile = "true";
         }
         $block2->openRow($listAttachments->mat_id[$i]);
         $block2->checkboxRow($listAttachments->mat_id[$i]);
开发者ID:jgatica,项目名称:Netoffice,代码行数:31,代码来源:viewmeeting.php

示例2: request

 $block2->heading($strings["ifc_revisions"]);
 if ($fileDetail->mat_owner[0] == $_SESSION['idSession']) {
     $block2->openPaletteIcon();
     $block2->paletteIcon(0, "remove", $strings["ifc_delete_review"]);
     $block2->closePaletteIcon();
 }
 if ($error2 != "") {
     $block2->headingError($strings["errors"]);
     $block2->contentError($error2);
 }
 $block2->openContent();
 $block2->contentTitle($strings["details"]);
 echo "<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue\"></td><td><br>";
 $tmpquery = "WHERE mat.vc_parent = '{$id}' AND mat.vc_status != '3' ORDER BY mat.date";
 $listReviews = new request();
 $listReviews->openMeetingsAttachment($tmpquery);
 $comptListReviews = count($listReviews->mat_vc_parent);
 for ($i = 0; $i < $comptListReviews; $i++) {
     // Sort odds and evens for bg color
     if (!($i % 2)) {
         $class = "odd";
         $highlightOff = $oddColor;
     } else {
         $class = "even";
         $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>";
开发者ID:jgatica,项目名称:Netoffice,代码行数:31,代码来源:viewfile.php

示例3: request

<?php

// $Revision: 1.1 $
/* vim: set expandtab ts=4 sw=4 sts=4: */
/**
 * $Id: accessfile.php,v 1.1 2004/12/06 06:15:46 luiswang Exp $
 * 
 * Copyright (c) 2004 by the NetOffice developers
 * 
 * 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';
$tmpquery = "WHERE mat.id = '{$id}'";
$fileDetail = new request();
$fileDetail->openMeetingsAttachment($tmpquery);
// serve the requested file
require_once '../meetings/download.php';
开发者ID:jgatica,项目名称:Netoffice,代码行数:21,代码来源:accessfile.php

示例4: request

$projectDetail->openProjects($tmpquery);
$tmpquery = "WHERE mee.id = '{$meeting}'";
$meetingDetail = new request();
$meetingDetail->openMeetings($tmpquery);
//--- 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("../meetings/listmeetings.php?project=" . $projectDetail->pro_id[0], $strings["meetings"], LINK_INSIDE);
$breadcrumbs[] = buildLink("../meetings/viewmeeting.php?id=" . $meetingDetail->mee_id[0], $meetingDetail->mee_name[0], LINK_INSIDE);
$breadcrumbs[] = $strings["unlink_files"];
require_once "../themes/" . THEME . "/header.php";
//--- content ----
$block1 = new block();
$block1->form = "saC";
$block1->openForm("../meetings/deletefiles.php?project={$project}&amp;meeting={$meeting}&amp;action=delete&amp;id={$id}&amp;sendto={$sendto}");
$block1->headingForm($strings["unlink_files"]);
$block1->openContent();
$block1->contentTitle($strings["delete_following"]);
$id = str_replace("**", ",", $id);
$tmpquery = "WHERE mat.id IN({$id}) ORDER BY mat.name";
$listFiles = new request();
$listFiles->openMeetingsAttachment($tmpquery);
$comptListFiles = count($listFiles->mat_id);
for ($i = 0; $i < $comptListFiles; $i++) {
    echo "<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue\">&nbsp;</td><td>" . $listFiles->mat_name[$i] . "</td></tr>";
}
echo "<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue\">&nbsp;</td><td><input type=\"SUBMIT\" value=\"" . $strings["delete"] . "\">&#160;<input type=\"BUTTON\" value=\"" . $strings["cancel"] . "\" onClick=\"history.back();\"></td></tr>";
$block1->closeContent();
$block1->headingForm_close();
$block1->closeForm();
require_once "../themes/" . THEME . "/footer.php";
开发者ID:jgatica,项目名称:Netoffice,代码行数:31,代码来源:deletefiles.php


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