本文整理汇总了PHP中projects::next_record方法的典型用法代码示例。如果您正苦于以下问题:PHP projects::next_record方法的具体用法?PHP projects::next_record怎么用?PHP projects::next_record使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类projects
的用法示例。
在下文中一共展示了projects::next_record方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
if (isset($_REQUEST["task_time_{$tid}"])) {
$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);
}
示例2: or
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.
*/
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}";