# the Free Software Foundation; either version 2 or later of the GPL. # # $Id: configure_edit.php,v 1.1 2003/11/21 12:55:58 helix Exp $ # ###################################################################### require "include/prepend.php3"; page_open(array('sess' => 'SourceAgency_Session')); if (isset($auth) && !empty($auth->auth['perm'])) { page_close(); page_open(array('sess' => 'SourceAgency_Session', 'auth' => 'SourceAgency_Auth', 'perm' => 'SourceAgency_Perm')); } require 'include/header.inc'; require 'include/configurelib.inc'; $bx = new box('100%', $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_body_font_color, $th_box_body_align); start_content(); $page = 'configure_edit'; if (check_permission($proid, $page)) { top_bar($proid, $page); print $t->translate('Project configuration form') . ".<p>\n"; if (is_not_set_or_empty($submit)) { if (is_set_and_not_empty($preview)) { configure_preview($proid); } configure_form($proid); } else { configure_insert($proid, $auth->auth['uname']); } } end_content(); require 'include/footer.inc'; @page_close();
page_open(array("sess" => "SourceAgency_Session")); if (isset($auth) && !empty($auth->auth["perm"])) { page_close(); page_open(array("sess" => "SourceAgency_Session", "auth" => "SourceAgency_Auth", "perm" => "SourceAgency_Perm")); } require 'include/header.inc'; $bx = new box('100%', $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_body_font_color, $th_box_body_align); $bs = new box('100%', $th_strip_frame_color, $th_strip_frame_width, $th_strip_title_bgcolor, $th_strip_title_font_color, $th_strip_title_align, $th_strip_body_bgcolor, $th_strip_body_font_color, $th_strip_body_align); $be = new box('', $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_error_font_color, $th_box_body_align); start_content(); /* Access control: can be configured in include/config.inc via the variable config_perm_users */ if ($config_perm_users != 'all' && (!isset($perm) || !$perm->have_perm($config_perm_users))) { $be->box_full($t->translate('Error'), $t->translate('Access denied')); } else { if (is_not_set_or_empty($by)) { $by = '%'; } $alphabet = array('A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'); $msg = '[ '; while (list(, $ltr) = each($alphabet)) { $msg .= "<a href=\"" . $sess->self_url() . $sess->add_query(array('type' => $type, 'by' => $ltr . '%')) . "\">" . ($ltr . '%' == $by ? "<font color=\"red\">{$ltr}</font>" : "{$ltr}") . '</a> | '; } $msg .= "<a href=\"" . $sess->self_url() . $sess->add_query(array("type" => $type, "by" => "%")) . "\">" . ($by == "%" ? "<font color=\"red\">" . $t->translate("All") . "</font>" : $t->translate("All")) . "</a> ]"; $where = ($type == 'devel' || $type == 'sponsor' ? "perms LIKE '%{$type}%' AND " : '') . "username LIKE '{$by}'"; $bs->box_strip($msg); $db->query("SELECT * FROM auth_user WHERE {$where} ORDER BY username ASC"); $bx->box_begin(); $bx->box_title($t->translate('Users') . ': ' . $t->translate($type)); $bx->box_body_begin(); $bx->box_columns_begin(5);
$bx = new box("100%", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_body_font_color, $th_box_body_align); start_content(); $page = "step6_edit"; /* // Debugging information print "<br><b>Dev_or_spo: </b>".$dev_or_spo; // ID number contains devid for developers (table developing) and spoid for sponsors (table sponsoring) print "<br><b>ID_number: </b>".$id_number; */ if (check_permission($proid, $page)) { top_bar($proid, $page); if (isset($submit) && !empty($submit)) { ratings_insert($proid, $dev_or_spo, $id_number, $auth->auth["uname"]); ratings_look_for_next_one($proid, &$id_number); } if (!isset($dev_or_spo) || empty($dev_or_spo) || is_not_set_or_empty($id_number)) { $id_number = ratings_look_for_first_one($proid); } print $t->translate("Project participants have the opportunity to rate " . "the other project members") . ".\n"; /* // Debugging information print "<p><b>Dev_or_spo2: </b>".$dev_or_spo; print "<br><b>ID_number2: </b>".$id_number; */ if (!isset($finished) && empty($finished)) { ratings_form($proid, $dev_or_spo, $id_number); } else { ratings_in_history($proid, $auth->auth["uname"]); } } end_content();
page_close(); page_open(array('sess' => 'SourceAgency_Session', 'auth' => 'SourceAgency_Auth', 'perm' => 'SourceAgency_Perm')); } require 'include/header.inc'; require 'include/commentslib.inc'; $bx = new box('80%', $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_body_font_color, $th_box_body_align); start_content(); $page = 'comments_mod'; if (check_permission($proid, $page)) { top_bar($proid, $page); /* The next lines are debugging information */ $type = 'General'; $number = 0; $cmt_id = 1; $ref = 0; if (is_not_set_or_empty($type) || is_not_set_or_empty($number) || is_not_set_or_empty($cmt_id) || is_not_set_or_empty($ref)) { comments_missing_parameters(); } else { // WISH: It would be nice, that comments could only be modified by // WISH: its author and the project initiator! // WISH: Modification should be appended to the original comment print $t->translate('Comments can be modified by the ' . 'project initator') . ".\n<br><p>\n"; if ((!isset($preview) || empty($preview)) && (!isset($submit) || empty($submit))) { $db->query("SELECT * FROM comments WHERE proid='{$proid}' " . "AND type='{$type}' AND number='{$number}' AND " . "id='{$cmt_id}' AND ref='{$ref}'"); $db->next_record(); $subject = $db->f('subject_cmt'); $text = $db->f('text_cmt'); $creation = $db->f('creation_cmt'); } if (!isset($submit) || empty($submit)) { comments_modify_form($proid);
global $g_step_text; // NOI18N: 'Decision on step 5 (follow-up)' htmlp_link('step5_sponsor.php', array('proid' => $proid), $t->translate('Decision on step 5') . ' (' . $g_step_text[5] . ')'); break; case '6': echo '<p>'; global $g_step_text; // NOI18N: 'Decision on step 6 (rating)' htmlp_link('step6_edit.php', array('proid' => $proid), $t->translate('Decision on step 6') . ' (' . $g_step_text[6] . ')'); break; default: lib_die('Error in decisions.php: given project status ' . 'is not possible'); } } if ($quorum || is_set_and_not_empty($Yes)) { if ($No || is_not_set_or_empty($Yes)) { are_you_sure_message($proid); } else { switch ($project_status) { case '1': $what = 'consultant'; $table = 'consultants'; break; case '2': $what = 'content_id'; $table = 'tech_content'; break; case '3': $what = 'devid'; $table = 'developing'; break;
page_open(array("sess" => "SourceAgency_Session")); if (isset($auth) && !empty($auth->auth["perm"])) { page_close(); page_open(array("sess" => "SourceAgency_Session", "auth" => "SourceAgency_Auth", "perm" => "SourceAgency_Perm")); } require "include/header.inc"; require "include/milestoneslib.inc"; $bx = new box("100%", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_body_font_color, $th_box_body_align); start_content(); $page = "step3_mod"; if (check_permission($proid, $page)) { top_bar($proid, $page); print $t->translate("The main developer can modify the milestone planning") . ".\n"; print "<br><b>" . $t->translate("Warning") . "</b>: " . $t->translate("Any modified milestone will change its status to \"Proposed\"") . ".\n"; print "<br><p>\n"; if (is_not_set_or_empty($preview) && is_not_set_or_empty($submit)) { $db->query("SELECT * FROM milestones WHERE number='{$number}' AND " . "proid='{$proid}' AND devid='{$devid}'"); $db->next_record(); $goals = $db->f("goals"); $release = $db->f("release"); $array = timestamp_to_date($release); $release_day = $array["day"]; $release_month = $array["month"]; $release_year = $array["year"]; $product = $db->f("product"); $payment = $db->f("payment"); $creation = $db->f("creation"); } if (!isset($submit) || empty($submit)) { if (isset($preview) && !empty($preview)) { milestones_preview($proid, $devid);
# # $Id: comments.php,v 1.1 2003/11/21 12:55:58 helix Exp $ # ###################################################################### require 'include/prepend.php3'; page_open(array('sess' => 'SourceAgency_Session')); if (isset($auth) && !empty($auth->auth['perm'])) { page_close(); page_open(array('sess' => 'SourceAgency_Session', 'auth' => 'SourceAgency_Auth', 'perm' => 'SourceAgency_Perm')); } require 'include/header.inc'; require 'include/commentslib.inc'; $bx = new box('100%', $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_body_font_color, $th_box_body_align); start_content(); $page = 'comments'; if (check_permission($proid, $page)) { top_bar($proid, $page); if (is_not_set_or_empty($type)) { $type = 'General'; } if (is_not_set_or_empty($ref)) { $ref = ''; } htmlp_image('ic/c.png', 0, 60, 53, 'Summary'); print $t->translate('General comments can be posted') . ' ' . $t->translate('by registered users of the system') . ".\n<br><p>\n"; comments_show($proid, $type, $number, $cmt_id, $ref); lib_comment_it($proid, 'General', '0', '0', '', $t->translate('General Comments')); } end_content(); require 'include/footer.inc'; @page_close();
# the Free Software Foundation; either version 2 or later of the GPL. # # $Id: doco.php,v 1.1 2003/11/21 12:55:58 helix Exp $ # ###################################################################### require 'include/prepend.php3'; page_open(array('sess' => 'SourceAgency_Session')); if (isset($auth) && !empty($auth->auth['perm'])) { page_close(); page_open(array('sess' => 'SourceAgency_Session', 'auth' => 'SourceAgency_Auth', 'perm' => 'SourceAgency_Perm')); } require 'include/header.inc'; $be = new box('80%', $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_error_font_color, $th_box_body_align); $box_doco = new box('80%', $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_body_font_color, $th_box_body_align); start_content(); if (is_not_set_or_empty($page)) { generate_failed_box('Page not Specified', 'Page was not specified for ' . 'documentation is required'); } else { $basename = basename($page); /* remove any extensions that may be left over (inc, php, php3) */ $basename = preg_replace('/[.](inc|php).?$/', '', $basename); $db->query("SELECT * FROM doco WHERE page='{$basename}' AND language='{$la}'"); if ($db->num_rows() == 0) { /* no doc in that language */ /* let's see if there is at least some documentation in English */ $db->query("SELECT * FROM doco WHERE page='{$basename}' " . "AND language='English'"); if ($db->num_rows() == 0) { $be->box_full($page, $t->translate('Has no documentation')); } else { $db->next_record(); $box_doco->box_strip($t->translate('Our apologies. Documentation ' . 'only available in English.'));