# 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();
Пример #2
0
    page_close();
    page_open(array("sess" => "SourceAgency_Session", "auth" => "SourceAgency_Auth", "perm" => "SourceAgency_Perm"));
}
require "include/header.inc";
require "include/milestoneslib.inc";
require "include/decisionslib.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 = "milestones";
if (check_permission($proid, $page)) {
    top_bar($proid, $page);
    print $t->translate('Milestone suggestions and agreement') . ".\n";
    print "<p align=right>[ <b>" . html_link("step3_edit.php", array("proid" => $proid), "<b>" . $t->translate('Propose Milestones') . "</b>") . "</b> ]";
    $db->query("SELECT DISTINCT(devid) FROM milestones WHERE proid='{$proid}'");
    while ($db->next_record()) {
        if (is_set_and_not_empty($auth)) {
            $who = $auth->auth["uname"];
        } else {
            $who = "";
        }
        show_milestones($proid, $db->f("devid"), $who);
    }
    print "<p><b>" . $t->translate('About what you can see and what not') . "</b>\n";
    print "<ul><li>" . $t->translate('Non-involved (registered and unregistered) users can see only the accepted milestones') . ".\n";
    print "<li>" . $t->translate('Project owners can see all milestones (proposed and accepted ones)') . ".\n";
    print "<li>" . $t->translate('Involved developers can see their own milestones and the accepted milestones from other developers') . ".\n";
    print "</ul>\n";
    if (is_accepted_sponsor($proid)) {
        create_decision_link($proid);
    }
}
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/decisionslib.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 = 'decisions';
if (check_permission($proid, $page)) {
    top_bar($proid, $page);
    print $t->translate('This is the page where sponsors make ' . 'their decisions on the proposed milestones') . ".\n";
    print '<p align=right>[ ' . html_link('decisions.php', array('proid' => $proid), '<b>' . $t->translate('Proposal decision') . '</b>') . ' ]';
    if (is_set_and_not_empty($vote)) {
        $db->query("SELECT * FROM milestones WHERE proid='{$proid}' " . "AND devid='{$devid}'");
        $count = $db->num_rows() + 1;
        for ($i = 1; $i < $count; $i++) {
            $milestone_number = 'milestone_' . $i;
            if (${$milestone_number} == 'Yes') {
                decision_milestone_insert($proid, $devid, $auth->auth['uname'], $i, 'Yes');
            } else {
                decision_milestone_insert($proid, $devid, $auth->auth['uname'], $i, 'No');
            }
        }
    } else {
        $db->query("SELECT number,decision FROM decisions_milestones " . "WHERE proid='{$proid}' AND devid='{$devid}' AND " . "decision_user='******'");
        while ($db->next_record()) {
            $milestone_number = 'milestone_' . $db->f('number');
            ${$milestone_number} = $db->f('decision');
Пример #4
0
             echo '<p>';
             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';