function pm_quick_report($group_id, $title, $subtitle1, $sql1, $subtitle2, $sql2, $comment = "") { global $bar_colors; pm_header(array("title" => $title)); pm_reporting_header($group_id); echo "\n<H2>{$title}</H2>"; reports_quick_graph($subtitle1, $sql1, $sql2, $bar_colors); if ($comment) { echo $comment; } pm_footer(array()); }
<input type="checkbox" name="really_sure" value="1"><?php echo _('I\'m Really Sure'); ?> <p> <input type="submit" name="post_changes" value="<?php echo _('Delete'); ?> " /> </form> <?php pm_footer(array()); } else { /* Show main page */ pm_header(array('title' => _('Project/Task Manager Administration'))); // // Show link to create new subproject // if ($perm->isPMAdmin()) { ?> <p /> <a href="<?php echo getStringFromServer('PHP_SELF') . '?group_id=' . $group_id; ?> &addproject=1"><?php echo _('Add A Project'); ?> </a><br /> <?php echo _('Add a project, which can contain a set of tasks. This is different than creating a new task.');
function do_read($logged_in_user) { $id = get_int("id"); $message = BoincPrivateMessage::lookup_id($id); if (!$message || $message->userid != $logged_in_user->id) { error_page(tra("no such message")); } page_head(tra("Private messages") . " : " . $message->subject); pm_header(); $sender = BoincUser::lookup_id($message->senderid); start_table(); echo "<tr><th>" . tra("Subject") . "</th><td>" . $message->subject . "</td></tr>"; echo "<tr><th>" . tra("Sender") . "</th><td>" . user_links($sender, BADGE_HEIGHT_SMALL); show_block_link($message->senderid); echo "</td></tr>"; echo "<tr><th>" . tra("Date") . "</th><td>" . time_str($message->date) . "</td></tr>"; echo "<tr><th>" . tra("Message") . "</th><td>" . output_transform($message->content, $options) . "</td></tr>"; echo "<tr><td class=\"pm_footer\"></td><td>\n"; echo "<a href=\"pm.php?action=new&replyto={$id}\">" . tra("Reply") . "</a>\n"; echo " · <a href=\"pm.php?action=delete&id={$id}\">" . tra("Delete") . "</a>\n"; echo " · <a href=\"pm.php?action=inbox\">" . tra("Inbox") . "</a>\n"; end_table(); if ($message->opened == 0) { $message->update("opened=1"); } }
* GForge Project Management Facility * * Copyright 2002 GForge, LLC * http://gforge.org/ * * @version $Id$ */ /* Project/Task Manager By Tim Perdue, Sourceforge, 11/99 Heavy rewrite by Tim Perdue April 2000 Total rewrite in OO and GForge coding guidelines 12/2002 by Tim Perdue */ pm_header(array('title' => _('Delete a Task'), 'group_project_id' => $group_project_id)); ?> <form action="<?php echo getStringFromServer('PHP_SELF') . "?group_id={$group_id}&group_project_id={$group_project_id}"; ?> " method="post"> <input type="hidden" name="func" value="postdeletetask" /> <input type="hidden" name="project_task_id" value="<?php echo $project_task_id; ?> " /> <table border="0" align="center"> <tr>
<?php // // SourceForge: Breaking Down the Barriers to Open Source Development // Copyright 1999-2000 (c) The SourceForge Crew // http://sourceforge.net // // $Id: detail_task.php,v 1.2 2003/11/13 11:29:25 helix Exp $ pm_header(array('title' => 'View A Task')); $sql = "SELECT * FROM project_task " . "WHERE project_task_id='{$project_task_id}' AND group_project_id='{$group_project_id}'"; $result = db_query($sql); ?> <H2>View A Task In <?php echo pm_data_get_group_name($group_project_id); ?> </H2> <TABLE BORDER="0" WIDTH="100%"> <TR> <TD><B>Percent Complete:</B> <BR> <?php echo db_result($result, 0, 'percent_complete'); ?> % </TD> <TD><B>Priority:</B> <BR> <?php echo db_result($result, 0, 'priority');
} //if assigned to selected, and more to where clause if ($_assigned_to) { $assigned_str = "AND project_assigned_to.assigned_to_id='{$_assigned_to}'"; //workaround for old tasks that do not have anyone assigned to them //should not be needed for tasks created/updated after may, 2000 $assigned_str2 = ',project_assigned_to'; $assigned_str3 = 'project_task.project_task_id=project_assigned_to.project_task_id AND'; } else { //no assigned to was chosen, so don't add it to where clause $assigned_str = ''; } //build page title to make bookmarking easier //if a user was selected, add the user_name to the title //same for status pm_header(array('title' => 'Browse Tasks' . ($_assigned_to ? ' For: ' . user_getname($_assigned_to) : '') . ($_status && $_status != 100 ? ' By Status: ' . pm_data_get_status_name($_status) : ''))); $sql = "SELECT project_task.priority,project_task.group_project_id,project_task.project_task_id," . "project_task.start_date,project_task.end_date,project_task.percent_complete,project_task.summary " . "FROM project_task {$assigned_str2} " . "WHERE {$assigned_str3} project_task.group_project_id='{$group_project_id}' " . " {$assigned_str} {$status_str} " . $order_by; $message = "Browsing Custom Task List"; $result = db_query($sql, 51, $offset); /* creating a custom technician box which includes "any" and "unassigned" */ $res_tech = pm_data_get_technicians($group_id); $tech_id_arr = util_result_column_to_array($res_tech, 0); $tech_id_arr[] = '0'; //this will be the 'any' row $tech_name_arr = util_result_column_to_array($res_tech, 1); $tech_name_arr[] = 'Any'; $tech_box = html_build_select_box_from_arrays($tech_id_arr, $tech_name_arr, '_assigned_to', $_assigned_to, true, 'Unassigned'); /* Show the new pop-up boxes to select assigned to and/or status
if (!$g || !is_object($g)) { exit_no_group(); } elseif ($g->isError()) { exit_error('Error', $g->getErrorMessage()); } $pgf = new ProjectGroupFactory($g); if (!$pgf || !is_object($pgf)) { exit_error('Error', 'Could Not Get Factory'); } elseif ($pgf->isError()) { exit_error('Error', $pgf->getErrorMessage()); } $pg_arr =& $pgf->getProjectGroups(); if ($pg_arr && $pgf->isError()) { exit_error('Error', $pgf->getErrorMessage()); } pm_header(array('title' => _('Project/Task Manager: Subprojects And Tasks'))); $perm =& $g->getPermission(session_get_user()); if ($perm->isPMAdmin()) { $menu_text = array(); $menu_links = array(); $menu_text[] = _('Admin'); $menu_links[] = '/pm/admin/?group_id=' . $group_id; echo $HTML->subMenu($menu_text, $menu_links); } if (count($pg_arr) < 1 || $pg_arr == false) { echo '<p>' . _('<h1>No Subprojects Found</h1><p><b>No subprojects have been set up, or you cannot view them.<p><span class="important">The Admin for this project will have to set up projects using the admin page</span></b>') . '</p>'; } else { echo ' <p>' . _('Choose a Subproject and you can browse/edit/add tasks to it.') . '</p>'; /* Put the result set (list of projects for this group) into a column with folders
<?php // // SourceForge: Breaking Down the Barriers to Open Source Development // Copyright 1999-2000 (c) The SourceForge Crew // http://sourceforge.net // // $Id: add_task.php,v 1.2 2003/11/13 11:29:25 helix Exp $ pm_header(array('title' => 'Add a New Task')); ?> <H2>Add A Task To <?php echo pm_data_get_group_name($group_project_id); ?> </H2> <FORM ACTION="<?php echo $PHP_SELF; ?> " METHOD="POST"> <INPUT TYPE="HIDDEN" NAME="func" VALUE="postaddtask"> <INPUT TYPE="HIDDEN" NAME="group_id" VALUE="<?php echo $group_id; ?> "> <INPUT TYPE="HIDDEN" NAME="group_project_id" VALUE="<?php echo $group_project_id; ?> "> <TABLE BORDER="0" WIDTH="100%"> <TR>
* http://gforge.org/ * * @version $Id$ */ /* Project/Task Manager By Tim Perdue, Sourceforge, 11/99 Heavy rewrite by Tim Perdue April 2000 Total rewrite in OO and GForge coding guidelines 12/2002 by Tim Perdue */ require_once $gfwww . 'include/note.php'; $related_artifact_id = getIntFromRequest('related_artifact_id'); $related_artifact_summary = getStringFromRequest('related_artifact_summary'); pm_header(array('title' => _('Add a new Task'), 'group_project_id' => $group_project_id)); echo notepad_func(); ?> <form action="<?php echo getStringFromServer('PHP_SELF') . "?group_id={$group_id}&group_project_id={$group_project_id}"; ?> " method="post"> <input type="hidden" name="func" value="postaddtask" /> <input type="hidden" name="add_artifact_id[]" value="<?php echo $related_artifact_id; ?> " /> <table border="0" width="100%">
* GForge Project Management Facility * * Copyright 2002 GForge, LLC * http://gforge.org/ * * @version $Id$ */ /* Project/Task Manager By Tim Perdue, Sourceforge, 11/99 Heavy rewrite by Tim Perdue April 2000 Total rewrite in OO and GForge coding guidelines 12/2002 by Tim Perdue */ pm_header(array('title' => _('Task Detail'), 'group_project_id' => $group_project_id)); ?> <table border="0" width="100%"> <tr> <td><strong><?php echo _('Submitted by'); ?> :</strong><br /><?php echo $pt->getSubmittedRealName(); ?> (<?php echo $pt->getSubmittedUnixName(); ?> )</td>
?> "/> <link rel="stylesheet" type="text/css" href="<?php echo get_file_url('css/style.css'); ?> "/> <script src="<?php echo get_file_url('js/jquery.min.js'); ?> " type="text/javascript"></script> <script src="<?php echo get_file_url('js/bootstrap.min.js'); ?> " type="text/javascript"></script> <?php pm_header(); ?> </head> <body> <header class="navbar navbar-default"> <nav class="container" role="navigation"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="<?php echo get_url(); ?>
* * @version $Id$ */ /* Project/Task Manager By Tim Perdue, Sourceforge, 11/99 Heavy rewrite by Tim Perdue April 2000 Total rewrite in OO and GForge coding guidelines 12/2002 by Tim Perdue */ require_once $gfwww . 'include/note.php'; require_once $gfcommon . 'reporting/report_utils.php'; require_once $gfcommon . 'reporting/Report.class.php'; echo notepad_func(); pm_header(array('title' => _('Modify Task'), 'pagename' => 'pm_modtask', 'group_project_id' => $group_project_id)); ?> <form action="<?php echo getStringFromServer('PHP_SELF') . "?group_id={$group_id}&group_project_id={$group_project_id}"; ?> " method="post"> <input type="hidden" name="func" value="postmodtask" /> <input type="hidden" name="project_task_id" value="<?php echo $project_task_id; ?> " /> <table border="0" width="100%"> <tr>
<?php // // SourceForge: Breaking Down the Barriers to Open Source Development // Copyright 1999-2000 (c) The SourceForge Crew // http://sourceforge.net // // $Id: mod_task.php,v 1.2 2003/11/13 11:29:25 helix Exp $ pm_header(array('title' => 'Modify A Task')); $sql = "SELECT * FROM project_task " . "WHERE project_task_id='{$project_task_id}' AND group_project_id='{$group_project_id}'"; $result = db_query($sql); ?> <H2>Modify A Task In <?php echo pm_data_get_group_name($group_project_id); ?> </H2> <FORM ACTION="<?php echo $PHP_SELF; ?> " METHOD="POST"> <INPUT TYPE="HIDDEN" NAME="func" VALUE="postmodtask"> <INPUT TYPE="HIDDEN" NAME="group_id" VALUE="<?php echo $group_id; ?> "> <INPUT TYPE="HIDDEN" NAME="group_project_id" VALUE="<?php echo $group_project_id; ?> "> <INPUT TYPE="HIDDEN" NAME="project_task_id" VALUE="<?php
<?php // // SourceForge: Breaking Down the Barriers to Open Source Development // Copyright 1999-2000 (c) The SourceForge Crew // http://sourceforge.net // // $Id: index.php,v 1.4 2004/01/13 13:15:25 helix Exp $ require 'pre.php'; require '../pm/pm_utils.php'; if ($group_id) { pm_header(array('title' => 'Projects for ' . group_getname($group_id))); if (user_isloggedin() && user_ismember($group_id)) { $public_flag = '0,1'; } else { $public_flag = '1'; } $sql = "SELECT * FROM project_group_list WHERE group_id='{$group_id}' AND is_public IN ({$public_flag})"; $result = db_query($sql); $rows = db_numrows($result); if (!$result || $rows < 1) { echo "<H1>No Subprojects Found</H1>"; echo "<P>\n\t\t\t<B>No subprojects have been set up, or you cannot view them.<P><FONT COLOR=RED>The Admin for this project " . "will have to set up projects using the admin page</FONT></B>"; pm_footer(array()); exit; } echo ' <H2>Subprojects and Tasks</H2> <P> Choose a Subproject and you can browse/edit/add tasks to it. <P>';
$_category_id = getIntFromRequest('_category_id'); $_view = getStringFromRequest('_view'); $ptf->setup($offset, $_order, $max_rows, $set, $_assigned_to, $_status, $_category_id, $_view); if ($ptf->isError()) { exit_error('Error', $ptf->getErrorMessage()); } $pt_arr =& $ptf->getTasks(true); if ($ptf->isError()) { exit_error('Error', $ptf->getErrorMessage()); } $_assigned_to = $ptf->assigned_to; $_status = $ptf->status; $_order = $ptf->order; $_category_id = $ptf->category; $_view = $ptf->view_type; pm_header(array('title' => _('Browse tasks'), 'group_project_id' => $group_project_id)); /* creating a custom technician box which includes "any" and "unassigned" */ $res_tech = $pg->getTechnicians(); $tech_id_arr = util_result_column_to_array($res_tech, 0); $tech_id_arr[] = '0'; //this will be the 'any' row $tech_name_arr = util_result_column_to_array($res_tech, 1); $tech_name_arr[] = _('Any'); $tech_box = html_build_select_box_from_arrays($tech_id_arr, $tech_name_arr, '_assigned_to', $_assigned_to, true, _('Unassigned')); /* creating a custom category box which includes "any" and "none" */ $res_cat = $pg->getCategories(); $cat_id_arr = util_result_column_to_array($res_cat, 0);
<?php // // This page contains a form with a file-upload button // so a user can choose a file to upload a .csv file and store it in task mgr // pm_header(array('title' => _('Upload data into the task manager.'), 'group_project_id' => $group_project_id)); echo _('This page lets you choose a file, in .csv format, and upload it so it can be inserted in the current subproject.'); ?> <p> <form enctype="multipart/form-data" method="post" action="<?php echo getStringFromServer('PHP_SELF'); ?> ?group_project_id=<?php echo $group_project_id; ?> &group_id=<?php echo $group_id; ?> &func=postuploadcsv"> <?php echo _('Choose a file in the proper .csv format for uploading.'); ?> <br /> <input type="file" name="userfile" size="30" /> <input type="submit" name="submit" value="submit"> </form></p> <p> <h2>Record Layout</h2> <p> <table border="1">