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


PHP projects::f方法代码示例

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


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

示例1:

     $tid_time = $_REQUEST["task_time_{$tid}"];
 }
 if (!isset($tid_time) || $tid_time == 0) {
     $tid_time = '';
 } else {
     $tid_time = ', task_time=' . $tid_time;
 }
 $task_folder = "{$project_folder}/{$tid}";
 if ($is_new_project) {
     if (!mkdir($task_folder)) {
         error_log("GO: Create {$task_folder} error");
     }
 }
 $projects->query("SELECT * FROM task " . "WHERE task_id={$tid} AND task_project_id={$project_id}");
 $projects->next_record();
 $old_person_id = $projects->f('task_person_id');
 $projects->query("UPDATE task SET task_person_id={$tpid} {$tid_time} " . "WHERE task_id={$tid} AND task_project_id={$project_id}");
 if ($tpid != $old_person_id && $tpid != $responsible_user_id) {
     notify_relevant_members($project_id, $tid, $tpid, true);
     if ($old_person_id != $responsible_user_id) {
         notify_relevant_members($project_id, $tid, $old_person_id, false);
     }
 }
 // Write
 $acl_write_pfolder = $GO_SECURITY->get_acl_id("write: {$task_folder}");
 if (!$acl_write_pfolder) {
     $acl_write_pfolder = $GO_SECURITY->get_new_acl("write: {$task_folder}");
 } else {
     $GO_SECURITY->clear_acl($acl_write_pfolder);
 }
 $GO_SECURITY->add_user_to_acl($tpid, $acl_write_pfolder);
开发者ID:BackupTheBerlios,项目名称:hpt-obm-svn,代码行数:31,代码来源:project.php

示例2: or

  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.
*/
require "../../Group-Office.php";
$GO_SECURITY->authenticate();
$GO_MODULES->authenticate('projects');
require $GO_LANGUAGE->get_language_file('projects');
$page_title = $lang_modules['projects'];
require $GO_MODULES->class_path . "projects.class.inc";
$projects = new projects();
$project_id = isset($_GET['project_id']) ? $_GET['project_id'] : '0';
$project_task_id = isset($_GET['project_task_id']) ? $_GET['project_task_id'] : '0';
$projects->query("SELECT * FROM task WHERE task_project_id='{$project_id}' AND task_id='{$project_task_id}'");
if ($projects->next_record()) {
    $tstat = $projects->f("task_status");
    $tcomm = $projects->f("task_comment");
}
require $GO_THEME->theme_path . "header.inc";
echo '<form method="get" action="' . $_SERVER['PHP_SELF'] . '" name="projects_form">';
$dropbox = new dropbox();
$dropbox->add_value(0, $pm_task_status_values[0]);
$dropbox->add_value(1, $pm_task_status_values[1]);
$dropbox->add_value(2, $pm_task_status_values[2]);
$dropbox->print_dropbox("task_status", $tstat);
echo '<input type="hidden" name="close" value="false" />';
echo '<input type="hidden" name="project_id" value="' . $project_id . '" />';
echo '<input type="hidden" name="task" value="" />';
echo '<input type="hidden" name="return_to" value="' . $return_to . '" />';
echo "p = {$project_id}, t = {$project_task_id}";
require $GO_THEME->theme_path . "footer.inc";
开发者ID:BackupTheBerlios,项目名称:hpt-obm-svn,代码行数:31,代码来源:task_status.php


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