$bx->box_body_begin();
    htmlp_form_action("pmess_send.php", "", "POST");
    htmlp_form_hidden("option", "send");
    htmlp_form_hidden("devname", $devname);
    if (empty($auth->auth["uname"])) {
        $sender = "-";
        htmlp_form_hidden("sender", $sender);
        echo $t->translate("Your E-Mail") . ":<BR>";
        htmlp_form_hidden("pmessto", $devname);
        htmlp_input_text("email", 50, 75, "");
        echo "<BR>\n";
    } else {
        $sender = $auth->auth["uname"];
        $email = "-";
        htmlp_form_hidden("sender", $sender);
        htmlp_form_hidden("email", $email);
    }
    echo $t->translate("Subject") . ":<BR>";
    htmlp_input_text("pmesssubject", 50, 75, "");
    htmlp_form_submit($t->translate("send"), "");
    echo "<BR>\n";
    echo "<BR>\n";
    echo $t->translate("Content") . ":<BR>";
    htmlp_textarea("pmessmessage", 60, 30, "nowrap", 2000, "");
    htmlp_form_end();
    $bx->box_body_end();
    $bx->box_end();
}
?>
<!-- end content -->
Esempio n. 2
0
            }
            htmlp_select_option("{$weightid}", $select, $t->translate($weighting));
        }
        htmlp_select_end();
        echo "</td>\n";
        if ($count >= 2) {
            echo "</tr>\n";
            $count = 0;
        }
    }
    echo "</table></center>\n";
    echo "</table>";
    $bx->box_body_end();
    $bx->box_end();
    echo "<CENTER>";
    htmlp_form_hidden("action", "set");
    htmlp_form_submit($t->translate("Submit"), "");
    htmlp_form_end();
    echo "</CENTER><br><CENTER>\n";
    htmlp_form_action("watchset.php", "", "POST");
    htmlp_form_hidden("action", "delete");
    htmlp_form_submit($t->translate("Delete"), "");
    htmlp_form_end();
    echo "</CENTER>\n";
}
?>
<!-- end content -->

<?php 
require "./include/footer.inc";
@page_close();
Esempio n. 3
0
$table->table_column('<b>' . _('Username') . ':</b>', '50%', '', 'right');
$table->table_column(html_form_textField('username', $db->f('username'), 20, 32), '50%', '', 'left');
$table->table_nextRowWithColumns();
$table->table_column('<b>' . _('Password') . ':</b>', '50%', '', 'right');
$table->table_column(html_form_PassWordField('password', 20, 32, $db->f('password')), '50%', '', 'left');
$table->table_nextRowWithColumns();
$table->table_column('<b>' . _('Confirm Password') . ':</b>', '50%', '', 'right');
$table->table_column(html_form_PassWordField('cpassword', 20, 32, $db->f('password')), '50%', '', 'left');
$table->table_nextRowWithColumns();
$table->table_column('<b>' . _('Real Name') . ':</b>', '50%', '', 'right');
$table->table_column(html_form_textField('realname', $db->f('realname'), 20, 64), '50%', '', 'left');
$table->table_nextRowWithColumns();
$table->table_column('<b>' . _('E-mail') . ':</b>', '50%', '', 'right');
$table->table_column(html_form_textField('email_usr', $db->f('email_usr'), 20, 128), '50%', '', 'left');
$table->table_nextRowWithColumns();
$table->table_column('<b>' . _('Creation') . ':</b>', '50%', '', 'right');
$table->table_column(lib_date_long($db->f('creation_usr')), '50%', '', 'left');
$table->table_nextRowWithColumns();
$table->table_column('<b>' . _('Last Modification') . ':</b>', '50%', '', 'right');
$table->table_column(lib_date_long($db->f('modification_usr')), '50%', '', 'left');
$table->table_nextRowWithColumns();
$table->table_column('<b>' . _('Permisions') . ':</b>', '50%', '', 'right');
$table->table_column($db->f('perms'), '50%', '', 'left');
$table->table_nextRowWithColumns();
$table->table_colspan(html_form_submit(_('Change'), 'u_edit'), 2, '', 'center');
$table->table_columns_end();
htmlp_form_hidden('u_id', $db->f('user_id'));
htmlp_form_end();
$table->table_body_end();
$table->table_end();
config_inc('end');
<!-- content -->
<?php 
$counter = 0;
if (empty($auth->auth["uname"])) {
    $be->box_full($t->translate("Not logged in"), $t->translate("Please login first"));
} else {
    $username = $auth->auth["uname"];
    $db->query("SELECT * FROM requests WHERE reqid='{$reqid}' AND username='******'");
    if ($db->num_rows() == 1) {
        $db->next_record();
        $bx->box_begin();
        $bx->box_title($t->translate("edit request"));
        $bx->box_body_begin();
        htmlp_form_action("req_manage.php", "", "POST");
        htmlp_form_hidden("option", "edit");
        htmlp_form_hidden("reqid", $reqid);
        echo $t->translate("Subject") . ":<BR>";
        $reqsubject = $db->f("reqsubject");
        htmlp_input_text("reqsubject", 50, 75, $reqsubject);
        htmlp_form_submit($t->translate("Send"), "");
        echo "<BR>\n";
        echo $t->translate("Related to which Project") . ":<BR>";
        htmlp_select("projectname");
        $devprojectname = $db->f("projectname");
        $db2->query("SELECT * FROM os_projects WHERE username='******'");
        while ($db2->next_record()) {
            if ($devprojectname == $db2->f("projectname")) {
                htmlp_select_option($db2->f("projectname"), 1, $db2->f("projectname"));
            } else {
                htmlp_select_option($db2->f("projectname"), 0, $db2->f("projectname"));
            }
 $db->query("SELECT * FROM pmessages WHERE pmessid='{$pmessid}' AND pmessto='{$username}'");
 if ($db->num_rows() == 1) {
     $db->next_record();
     $bx->box_begin();
     $bx->box_title($t->translate("edit request"));
     $bx->box_body_begin();
     $old_pmessfrom = $db->f("pmessfrom");
     if (ereg("^mailto:", $old_pmessfrom)) {
         htmlp_form_action("sendform.php", "", "POST");
         htmlp_form_hidden("pmessto", ereg_replace("mailto:", "", $old_pmessfrom));
         htmlp_form_hidden("s_email", $user_email);
         echo "<B><FONT SIZE=+1 COLOR=red>" . $t->translate("Your E-Mail-Address will be shown to the recipient") . "</FONT></B><P>";
     } else {
         htmlp_form_action("pmess_manage.php", "", "POST");
         htmlp_form_hidden("option", "send");
         htmlp_form_hidden("pmessto", $old_pmessfrom);
         //echo "<B><FONT SIZE=+1 COLOR=red>".$t->translate("recipient")."</FONT></B><P>";
     }
     echo $t->translate("Subject") . ":<BR>";
     $pmesssubject = $db->f("pmesssubject");
     if (!ereg("^Re:", $pmesssubject)) {
         $pmesssubject = "Re:" . $pmesssubject;
     }
     htmlp_input_text("pmesssubject", 50, 75, $pmesssubject);
     htmlp_form_submit($t->translate("Send"), "");
     echo "<BR>\n";
     echo "<BR>\n";
     $pmessmessage = $db->f("pmessmessage");
     $sendername = ereg_replace("mailto:", "", $old_pmessfrom);
     $pmessmessage = $sendername . " wrotes:\n\n" . $pmessmessage;
     $pmessmessage = ereg_replace("\n", "\n> ", $pmessmessage);
                $selected = 1;
            }
            htmlp_select_option($db2->f("weightid"), $selected, $t->translate($db2->f("weighting")));
        }
        htmlp_select_end();
        echo "</td></tr></table>";
        if ($counter % 2 == 0) {
            echo "</td></tr>\n\n";
        } else {
            echo "</td>\n";
        }
    }
    if ($counter % 2 == 0) {
        echo "</tr>\n\n";
    }
    htmlp_form_hidden("lang_amount", $lang_amount);
    echo "</table></center>\n";
    echo "</td></tr>\n";
    echo "</td></tr>\n";
    echo "</table>\n";
    $bx->box_body_end();
    $bx->box_end();
    echo "<CENTER><TABLE BORDER=0 width=89%><TR><TD width=65%>\n";
    echo "<CENTER>";
    htmlp_form_submit($t->translate("Submit"), "");
    echo "</CENTER>";
    echo "</td></tr>\n";
    echo "</table>\n";
    echo "</TD><TD width=5%>&nbsp;\n";
    echo "</TD><TD width=30%>\n";
}
$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);
$db2 = new DB_DevCounter();
?>

<!-- content -->
<?php 
$counter = 0;
if (empty($auth->auth["uname"])) {
    $be->box_full($t->translate("Not logged in"), $t->translate("Please login first"));
} else {
    $username = $auth->auth["uname"];
    $bx->box_begin();
    $bx->box_title($t->translate("Create a new Request"));
    $bx->box_body_begin();
    htmlp_form_action("req_manage.php", "", "POST");
    htmlp_form_hidden("option", "send");
    echo $t->translate("Subject") . ":<BR>";
    htmlp_input_text("reqsubject", 50, 75, "");
    htmlp_form_submit($t->translate("send"), "");
    echo "<BR>\n";
    echo $t->translate("Related to which Project") . ":<BR>";
    htmlp_select("projectname");
    $db2->query("SELECT * FROM os_projects WHERE username='******'");
    while ($db2->next_record()) {
        htmlp_select_option($db2->f("projectname"), 0, $db2->f("projectname"));
    }
    htmlp_select_option("none", 1, $t->translate("none"));
    htmlp_select_end();
    echo "<BR>\n";
    echo $t->translate("Which type") . ":<BR>";
    htmlp_select("category");
    $bx->box_title($t->translate("Not logged in"));
    $bx->box_body_begin();
    echo $t->translate("Please login first") . "\n";
    $bx->box_body_end();
    $bx->box_end();
} else {
    $username = $auth->auth["uname"];
    $db->query("SELECT * from developers WHERE username='******'");
    $db->next_record();
    $number_of_projects = $db->f("number_of_projects");
    if ($number_of_projects <= 0) {
        $number_of_projects = 6;
    }
    $counter = 0;
    htmlp_form_action("addproj2db.php", "", "POST");
    htmlp_form_hidden("number_of_projects", $number_of_projects);
    //$bs->box_strip($msg);
    $bx->box_begin();
    $bx->box_title($t->translate("Please enter your Project Data"));
    $bx->box_body_begin();
    $bx->box_columns_begin(4);
    $bx->box_column("right", "5%", $th_strip_title_bgcolor, "<b>" . $t->translate("No") . "</b>");
    $bx->box_column("center", "25%", $th_strip_title_bgcolor, "<b>" . $t->translate("Projectname") . "</b>");
    $bx->box_column("center", "25%", $th_strip_title_bgcolor, "<b>" . $t->translate("ProjectURL") . "</b>");
    $bx->box_column("center", "25%", $th_strip_title_bgcolor, "<b>" . $t->translate("Comment") . "</b>");
    $bx->box_next_row_of_columns();
    $bgcolor = "#FFFFFF";
    while ($counter != $number_of_projects) {
        $counter++;
        $bx->box_column("right", "", $bgcolor, $counter);
        $bx->box_column("center", "", $bgcolor, html_input_text("projectname[{$counter}]", 25, 64, ""));
        $blist->box_column("right", "", $bgcolor, $db->f("pmessid"));
        $pquery["pmessid"] = $db->f("pmessid");
        $blist->box_column("center", "", $bgcolor, html_link("pmess_show.php", $pquery, $db->f("pmesssubject")));
        $pmessfrom = $db->f("pmessfrom");
        $pmessfrom = ereg_replace("mailto:", "", $pmessfrom);
        $blist->box_column("center", "", $bgcolor, $pmessfrom);
        $timestamp = mktimestamp($db->f("pmesstime"));
        $blist->box_column("center", "", $bgcolor, timestr_short($timestamp));
        htmlp_form_action("pmess_edit.php", array(), "POST");
        htmlp_form_hidden("pmessid", $db->f("pmessid"));
        $blist->box_column("center", "", $bgcolor, html_form_submit($t->translate("Reply"), ""));
        $bgcolor = "gold";
        htmlp_form_end();
        htmlp_form_action("pmess_manage.php", array(), "POST");
        htmlp_form_hidden("pmessid", $db->f("pmessid"));
        htmlp_form_hidden("option", "delete");
        $blist->box_column("center", "", $bgcolor, html_form_submit($t->translate("Delete"), ""));
        htmlp_form_end();
        $blist->box_next_row_of_columns();
        $bgcolor = "gold";
    }
    $blist->box_columns_end();
    $blist->box_body_end();
    $blist->box_end();
    $db->query("UPDATE pmessages SET pmessstatus='unread' WHERE pmessstatus='new' AND pmessto='{$username}'");
}
?>
<!-- end content -->

<?php 
require "./include/footer.inc";
        htmlp_select("dev_lang");
        echo "\n";
        select_lang(999);
        htmlp_select_end();
        htmlp_form_hidden("option", $option);
        htmlp_form_submit($t->translate("Submit"), "");
        $bx->box_body_end();
        $bx->box_end();
        break;
    case "country":
        $bx->box_begin();
        $bx->box_title($t->translate("Search for Countries"));
        $bx->box_body_begin();
        htmlp_form_action("devresults.php", NULL, "POST");
        echo $t->translate("Please select desired Country") . "\n";
        htmlp_select("dev_country");
        echo "\n";
        select_country(999);
        htmlp_select_end();
        htmlp_form_hidden("option", $option);
        htmlp_form_submit($t->translate("Submit"), "");
        $bx->box_body_end();
        $bx->box_end();
        break;
}
?>
<!-- end content -->

<?php 
require "./include/footer.inc";
@page_close();
Esempio n. 11
0
?>

<!-- content -->
<?php 
$db->query("SELECT * from extra_perms WHERE username='******'");
if ($db->num_rows() == 0) {
    $be->box_full($t->translate("Error"), $t->translate("Unknown Developer"));
} else {
    $db->next_record();
    //echo ".- ".$db->f("username").$db->num_rows()." -.";
    if ($db->f("contact") == "yes") {
        $bx->box_begin();
        $bx->box_title($t->translate("contact developer"));
        $bx->box_body_begin();
        htmlp_form_action("sendform.php", "", "POST");
        htmlp_form_hidden("devname", $devname);
        echo $t->translate("Subject:") . "<BR>";
        htmlp_input_text("subject", 50, 75, "");
        htmlp_form_submit("send", "");
        echo "<BR>\n";
        echo $t->translate("Your EMail Address:") . "<BR>";
        if (empty($auth->auth["uname"])) {
            htmlp_input_text("s_email", 50, 75, "");
        } else {
            $username = $auth->auth["uname"];
            $db2->query("SELECT * from auth_user WHERE username='******'");
            $db2->next_record();
            htmlp_input_text("s_email", 50, 75, $db2->f("email_usr"));
        }
        echo "<BR>\n";
        echo $t->translate("Content:") . "<BR>";
Esempio n. 12
0
         $bx->box_column("center", "", $bgcolor, html_input_text("projecturl", 35, 255, $db->f("url")));
         $bx->box_column("center", "", $bgcolor, html_input_text("pcomment", 35, 400, $db->f("comment")));
         $bx->box_column("center", "", $bgcolor, html_form_submit($t->translate("Change"), ""));
         htmlp_form_end();
         htmlp_form_action("projects.php", array(), "POST");
         htmlp_form_hidden("oldpname", $db->f("projectname"));
         htmlp_form_hidden("option", "delete");
         $bgcolor = "gold";
         $bx->box_column("center", "", $bgcolor, html_form_submit($t->translate("Delete"), ""));
         htmlp_form_end();
         $bx->box_next_row_of_columns();
         $bgcolor = "#FFFFFF";
     }
     $bgcolor = "gold";
     htmlp_form_action("projects.php", array(), "POST");
     htmlp_form_hidden("option", "add");
     $bx->box_column("right", "", $bgcolor, "--");
     $bx->box_column("center", "", $bgcolor, html_input_text("projectname", 25, 64, ""));
     $bx->box_column("center", "", $bgcolor, html_input_text("projecturl", 35, 255, ""));
     $bx->box_column("center", "", $bgcolor, html_input_text("pcomment", 35, 400, ""));
     $bx->box_colspan(2, "center", $bgcolor, html_form_submit($t->translate("Add Project"), ""));
     $bx->box_columns_end();
     htmlp_form_end();
 } else {
     $be->box_begin();
     $be->box_title($t->translate("Error"));
     $be->box_body_begin();
     htmlp_link("addproj.php", "", $t->translate("Enter your projects here"));
     $be->box_body_end();
     $be->box_end();
 }
Esempio n. 13
0
 $bx->box_column("center", "", "", html_input_text("username", 12, 32, ""));
 $bx->box_column("center", "", "", html_input_password("password", 12, 32, ""));
 $bx->box_column("center", "", "", html_input_text("realname", 12, 32, ""));
 $bx->box_column("center", "", "", html_input_text("email_usr", 12, 32, ""));
 $bx->box_column("center", "", "", "");
 $bx->box_column("center", "", "", "");
 $bx->box_column("center", "", "", $perm->perm_sel("perms", "devel"));
 $bx->box_column("center", "", "", html_form_submit($t->translate("Create User"), "create"));
 htmlp_form_end();
 // Traverse the result set
 $db->query("SELECT * FROM auth_user ORDER BY username");
 while ($db->next_record()) {
     $bx->box_next_row_of_columns();
     htmlp_form_action("PHP_SELF", array(), "POST");
     htmlp_form_hidden("u_id", $db->f("user_id"));
     htmlp_form_hidden("old_username", $db->f("username"));
     $bx->box_column("center", "", "", html_input_text("username", 12, 32, $db->f("username")));
     $bx->box_column("center", "", "", html_input_password("password", 12, 32, $db->f("password")));
     $bx->box_column("center", "", "", html_input_text("realname", 12, 32, $db->f("realname")));
     $bx->box_column("center", "", "", html_input_text("email_usr", 12, 32, $db->f("email_usr")));
     $bx->box_column("center", "", "", timestr_short($db->f("creation_usr")));
     $bx->box_column("center", "", "", timestr_short($db->f("modification_usr")));
     $bx->box_column("center", "", "", $perm->perm_sel("perms", $db->f("perms")));
     $bx->box_column("center", "", "", html_form_submit($t->translate("Delete"), "u_kill") . html_form_submit($t->translate("Change"), "u_edit"));
     htmlp_form_end();
 }
 $bx->box_columns_end();
 $bx->box_body_end();
 $bx->box_end();
 /*