function launchExternal($input, $params = array())
{
    global $wgServer;
    global $wgAddServerName_EXT;
    $arrInput = split("::", $input);
    // use a different display then the file reference...
    $reference = $input;
    $display = "";
    $server = "";
    if (count($arrInput) > 1) {
        $reference = $arrInput[0];
        $display = $arrInput[1];
    }
    $reference = str_replace('\\', '/', $reference);
    $reference = str_replace('////', '//', $reference);
    //fix just incase we have "file://\\server"
    if (strpos($reference, "://") !== false) {
        $section1 = explode("/", $reference);
        $section2 = explode(".", $section1[2]);
        //parse the dots (sub-domains)
        if ($wgAddServerName_EXT && strpos($reference, "file://") !== false) {
            $server = " <i>({$section2['0']})</i>";
        }
        if ($display == "") {
            $display = $section1[count($section1) - 1];
        }
        //default the file name
        return "<a href='" . $reference . "' target='new'>" . ($display == "" ? $reference : $display) . "{$server}</a>";
    }
    // wiki uploaded media or image reference
    $img = Image::newFromName($reference);
    if ($img->exists()) {
        return buildLink($wgServer . $img->getURL(), $display == "" ? $reference : $display);
    }
    return $input . " <i>(bad reference)</i>";
}
Пример #2
0
$listMeetings->openMeetings($tmpquery, $block1->borne, $block1->rowsLimit);
$comptListMeetings = count($listMeetings->mee_id);
if ($comptListMeetings != "0") {
    $block1->openResults();
    $block1->labels($labels = array(0 => $strings['id'], 1 => $strings['meeting'], 2 => $strings['priority'], 3 => $strings['status'], 4 => $strings['date']), 'true');
    for ($i = 0; $i < $comptListMeetings; $i++) {
        $idStatus = $listMeetings->mee_status[$i];
        $idPriority = $listMeetings->mee_priority[$i];
        $idPublish = $listMeetings->mee_published[$i];
        $block1->openRow($listMeetings->mee_id[$i]);
        $block1->checkboxRow($listMeetings->mee_id[$i]);
        $block1->cellRow(buildLink("../meetings/viewmeeting.php?id=" . $listMeetings->mee_id[$i], $listMeetings->mee_id[$i], LINK_INSIDE));
        if ($idStatus == 1) {
            $block1->cellRow(buildLink("../meetings/viewmeeting.php?id=" . $listMeetings->mee_id[$i], $listMeetings->mee_name[$i], LINK_STRIKE));
        } else {
            $block1->cellRow(buildLink("../meetings/viewmeeting.php?id=" . $listMeetings->mee_id[$i], $listMeetings->mee_name[$i], LINK_INSIDE));
        }
        $block1->cellRow('<img src="../themes/' . THEME . '/gfx_priority/' . $idPriority . '.gif" alt="' . $priority[$idPriority] . '">&nbsp;' . $priority[$idPriority], '', true);
        $block1->cellRow('<img src="../themes/' . THEME . '/gfx_status/' . $idStatus . '.gif" alt="' . $status[$idStatus] . '">&nbsp;' . $status[$idStatus], '', true);
        if ($listMeetings->mee_date[$i] <= $date && $idStatus != 1) {
            $block1->cellRow("<b>" . $listMeetings->mee_date[$i] . "</b>");
        } else {
            $block1->cellRow($listMeetings->mee_date[$i]);
        }
        $block1->cellRow($complValue);
        $block1->closeRow();
    }
    $block1->closeResults();
    $block1->bornesFooter("1", $blockPage->bornesNumber, "", "project={$project}");
} else {
    $block1->noresults();
Пример #3
0
        // resolves bug #768688
        $tmpquery1 = 'INSERT INTO ' . $tableCollab['tasks_time'] . " (project,task,owner,date,hours,comments,created,modified) VALUES ('" . $projectDetail->pro_id[0] . "', '{$id}','{$owner}','{$ld}','{$hr}','{$comm}',NOW(),NOW())";
        connectSql($tmpquery1);
        $ld = null;
        $hr = null;
        $comm = null;
        // successful insert
        $msgLabel = '<b>' . $strings['success'] . '</b> : ' . $strings['hours_updated'];
    }
    $msg = $msgLabel;
}
//--- header ---
$breadcrumbs[] = buildLink("../projects/listprojects.php?", $strings["projects"], LINK_INSIDE);
$breadcrumbs[] = buildLink("../projects/viewproject.php?id=" . $projectDetail->pro_id[0], $projectDetail->pro_name[0], LINK_INSIDE);
$breadcrumbs[] = buildLink("../tasks/listtasks.php?project=" . $projectDetail->pro_id[0], $strings["tasks"], LINK_INSIDE);
$breadcrumbs[] = buildLink("../tasks/viewtask.php?id=" . $taskDetail->tas_id[0], $taskDetail->tas_name[0], LINK_INSIDE);
$breadcrumbs[] = $strings["add_task_time"];
require_once "../themes/" . THEME . "/header.php";
//--- content ---
$tmpquery1 = "SELECT sum(hours) FROM " . $tableCollab['tasks_time'];
$blockPage = new block();
$blockPage->bornesNumber = "1";
// get actual time for task
$taskActualTime = new request();
$actualTime = $taskActualTime->getTaskTime($id);
$block1 = new block();
$block1->form = "saT";
$block1->openForm("../tasks/addtasktime.php?id={$id}&amp;project=" . $projectDetail->pro_name[0] . "&amp;action=add#" . $block1->form . "Anchor");
$block1->heading($strings["add_task_time"] . " : " . $taskDetail->tas_name[0]);
$block1->heading_close();
$block1->openContent();
Пример #4
0
 * 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.
 */
$checkSession = true;
require_once '../includes/library.php';
if ($action == 'delete') {
    $id = str_replace('**', ',', $id);
    $tmpquery1 = 'DELETE FROM ' . $tableCollab['bookmarks'] . ' WHERE id IN(' . $id . ')';
    connectSql($tmpquery1);
    header('Location: ../bookmarks/listbookmarks.php?view=my&msg=delete');
    exit;
}
//--- header ---
$breadcrumbs[] = buildLink('../bookmarks/listbookmarks.php?view=all', $strings['bookmarks'], LINK_INSIDE);
$breadcrumbs[] = $strings['delete_bookmarks'];
$pageSection = 'bookmarks';
require_once '../themes/' . THEME . '/header.php';
//--- content ------
$block1 = new block();
$block1->form = 'saP';
$block1->openForm('../bookmarks/deletebookmarks.php?action=delete&amp;id=' . $id);
$block1->headingForm($strings['delete_bookmarks']);
$block1->openContent();
$block1->contentTitle($strings['delete_following']);
$id = str_replace('**', ',', $id);
$tmpquery = 'WHERE boo.id IN(' . $id . ') ORDER BY boo.name';
$listBookmarks = new request();
$listBookmarks->openBookmarks($tmpquery);
$comptListBookmarks = count($listBookmarks->boo_id);
Пример #5
0
         $highlightOff = $evenColor;
     }
     // Calculate a revision number for display for each listing
     $displayrev = $i + 1;
     echo "<table width=\"600\" cellpadding=\"0\" cellspacing=\"0\" class=\"tableRevision\" onmouseover=\"this.style.backgroundColor='" . $block2->highlightOn . "'\" onmouseout=\"this.style.backgroundColor='" . $block2->highlightOff . "'\">\r\n\t<tr bgcolor=\"" . $block2->fgColor . "\"><td>";
     if ($fileDetail->mat_owner[0] == $_SESSION['idSession']) {
         echo "<a href=\"javascript:MM_toggleItem(document." . $block2->form . "Form, '" . $listReviews->mat_id[$i] . "', '" . $block2->form . "cb" . $listReviews->mat_id[$i] . "','" . THEME . "')\"><img name=\"" . $block2->form . "cb" . $listReviews->mat_id[$i] . "\" border=\"0\" src=\"../themes/" . THEME . "/checkbox_off_16.gif\" alt=\"\" vspace=\"0\"></a>";
     }
     echo "&nbsp;</td>\r\n\t<td colspan=\"3\">{$displayname}&nbsp;&nbsp;";
     if (file_exists("../files/" . $listReviews->mat_project[$i] . "/meetings/" . $listReviews->mat_meeting[$i] . "/" . $listReviews->mat_name[$i])) {
         echo buildLink("../meetings/accessfile.php?mode=view&amp;id=" . $listReviews->mat_id[$i], $strings["view"], LINK_INSIDE);
         $folder = $listReviews->mat_project[$i] . "/meetings/" . $listReviews->mat_meeting[$i];
         $existFile = "true";
     }
     if ($existFile == "true") {
         echo " " . buildLink("../meetings/accessfile.php?mode=download&amp;id=" . $listReviews->mat_id[$i], $strings["save"], LINK_INSIDE);
     } else {
         echo $strings["missing_file"];
     }
     echo "</td><td align=\"right\">Revision: {$displayrev}&nbsp;&nbsp;</td></tr>\r\n\t<tr><td>&nbsp;</td><td width=\"30%\">" . $strings["ifc_revision_of"] . " : " . $listReviews->mat_vc_version[$i] . "</td><td width=\"40%\">" . $strings["owner"] . " : " . $listReviews->mat_mem_name[$i] . "</td><td colspan=\"2\" align=\"left\" width=\"30%\">" . $strings["date"] . " : " . $listReviews->mat_date[$i] . "</td></tr>\r\n\t<tr><td>&nbsp;</td><td colspan=\"4\">" . $strings["comments"] . " : " . $listReviews->mat_comments[$i] . "</td></tr>\r\n\t</table><br>";
 }
 if ($i == 0) {
     echo "<tr class=\"odd\"><td></td><td>" . $strings["ifc_no_revisions"] . "</td></tr>";
 }
 echo "</table></td></tr>";
 $block2->closeContent();
 $block2->headingForm_close();
 $block2->closeFormResults();
 if ($fileDetail->mat_owner[0] == $_SESSION['idSession']) {
     $block2->openPaletteScript();
     $block2->paletteScript(0, "remove", "../meetings/deletefiles.php?project=" . $fileDetail->mat_project[0] . "&meeting=" . $fileDetail->mat_meeting[0] . "&sendto=filedetails", "false,true,true", $strings["ifc_delete_review"]);
Пример #6
0
                // if mantis bug tracker enabled
                if ($enableMantis == "true") {
                    // Call mantis function for new user creation!!!
                    $f_access_level = $client_user_level;
                    // Reporter
                    require_once "../mantis/create_new_user.php";
                }
                header("Location: ../clients/viewclient.php?id={$clod}&msg=add");
                exit;
            }
        }
    }
}
//--- header ---
$breadcrumbs[] = buildLink("../clients/listclients.php?", $strings["clients"], LINK_INSIDE);
$breadcrumbs[] = buildLink("../clients/viewclient.php?id=" . $clientDetail->org_id[0], $clientDetail->org_name[0], LINK_INSIDE);
$breadcrumbs[] = $strings["add_client_user"];
$bodyCommand = "onLoad=\"document.client_user_addForm.un.focus();\"";
require_once "../themes/" . THEME . "/header.php";
//--- content ---
$block1 = new block();
$block1->form = "client_user_add";
$block1->openForm("../users/addclientuser.php?organization={$organization}&action=add");
if ($error != "") {
    $block1->headingError($strings["errors"]);
    $block1->contentError($error);
}
$block1->headingForm($strings["add_client_user"]);
$block1->openContent();
$block1->contentTitle($strings["enter_user_details"]);
$block1->contentRow($strings["user_name"], "<input size=\"24\" style=\"width: 250px;\" maxlength=\"16\" type=\"text\" name=\"un\" value=\"{$un}\">");
Пример #7
0
$listUpdates->openUpdates($tmpquery);
$comptListUpdates = count($listUpdates->upd_id);
for ($i = 0; $i < $comptListUpdates; $i++) {
    if (ereg("\\[status:([0-9])\\]", $listUpdates->upd_comments[$i])) {
        preg_match("|\\[status:([0-9])\\]|i", $listUpdates->upd_comments[$i], $matches);
        $listUpdates->upd_comments[$i] = ereg_replace("\\[status:([0-9])\\]", "", $listUpdates->upd_comments[$i] . "<br>");
        $listUpdates->upd_comments[$i] .= $strings["status"] . " " . $status[$matches[1]];
    }
    if (ereg("\\[priority:([0-9])\\]", $listUpdates->upd_comments[$i])) {
        preg_match("|\\[priority:([0-9])\\]|i", $listUpdates->upd_comments[$i], $matches);
        $listUpdates->upd_comments[$i] = ereg_replace("\\[priority:([0-9])\\]", "", $listUpdates->upd_comments[$i] . "<br>");
        $listUpdates->upd_comments[$i] .= $strings["priority"] . " " . $priority[$matches[1]];
    }
    if (ereg("\\[datedue:([0-9]{4}-[0-9]{1,2}-[0-9]{1,2})\\]", $listUpdates->upd_comments[$i])) {
        preg_match("|\\[datedue:([0-9]{4}-[0-9]{1,2}-[0-9]{1,2})\\]|i", $listUpdates->upd_comments[$i], $matches);
        $listUpdates->upd_comments[$i] = ereg_replace("\\[datedue:([0-9]{4}-[0-9]{1,2}-[0-9]{1,2})\\]", "", $listUpdates->upd_comments[$i] . "<br>");
        $listUpdates->upd_comments[$i] .= $strings["due_date"] . " " . $matches[1];
    }
    $block1->contentRow($strings["posted_by"], buildLink($listUpdates->upd_mem_email_work[$i], $listUpdates->upd_mem_name[$i], LINK_MAIL));
    if ($listUpdates->upd_created[$i] > $_SESSION['lastvisiteSession']) {
        $block1->contentRow($strings["when"], "<b>" . createDate($listUpdates->upd_created[$i], $_SESSION['timezoneSession']) . "</b>");
    } else {
        $block1->contentRow($strings["when"], createDate($listUpdates->upd_created[$i], $_SESSION['timezoneSession']));
    }
    $block1->contentRow("", nl2br($listUpdates->upd_comments[$i]));
    $block1->contentRow("", "", "true");
}
$block1->closeContent();
$block1->headingForm_close();
$block1->closeForm();
require_once "../themes/" . THEME . "/footer.php";
Пример #8
0
$tmpquery = "WHERE tea.project = '{$id}' AND mem.profil != '3' ORDER BY {$block1->sortingValue}";
$listTeam = new request();
$listTeam->openTeams($tmpquery);
$comptListTeam = count($listTeam->tea_id);
$block1->openResults();
$block1->labels($labels = array(0 => $strings["full_name"], 1 => $strings["title"], 2 => $strings["user_name"], 3 => $strings["work_phone"], 4 => $strings["connected"], 5 => $strings["published"]), "true");
for ($i = 0; $i < $comptListTeam; $i++) {
    if ($listTeam->tea_mem_phone_work[$i] == "") {
        $listTeam->tea_mem_phone_work[$i] = $strings["none"];
    }
    $idPublish = $listTeam->tea_published[$i];
    $block1->openRow($listTeam->tea_mem_id[$i]);
    $block1->checkboxRow($listTeam->tea_mem_id[$i]);
    $block1->cellRow(buildLink("../users/viewuser.php?id=" . $listTeam->tea_mem_id[$i], $listTeam->tea_mem_name[$i], LINK_INSIDE));
    $block1->cellRow($listTeam->tea_mem_title[$i]);
    $block1->cellRow(buildLink($listTeam->tea_mem_email_work[$i], $listTeam->tea_mem_login[$i], LINK_MAIL));
    $block1->cellRow($listTeam->tea_mem_phone_work[$i]);
    if ($listTeam->tea_log_connected[$i] > $dateunix - 5 * 60) {
        $block1->cellRow($strings["yes"] . " " . $z);
    } else {
        $block1->cellRow($strings["no"]);
    }
    if ($sitePublish == "true") {
        $block1->cellRow($statusPublish[$idPublish]);
    }
    $block1->closeRow();
}
$block1->closeResults();
$block1->closeFormResults();
$block1->openPaletteScript();
$block1->paletteScript(0, "add", "../teams/adduser.php?project=" . $projectDetail->pro_id[0] . "", "true,true,true", $strings["add"]);
    $block6->openResults();
    if ($comptTopic != "0") {
        $block6->labels($labels = array(0 => $strings["subject"], 1 => $strings["topic"], 2 => $strings["date"], 3 => $strings["owner"], 4 => $strings["published"]), "true");
    } else {
        $block6->labels($labels = array(0 => $strings["subject"], 1 => $strings["date"], 2 => $strings["owner"], 3 => $strings["published"]), "true");
    }
    for ($i = 0; $i < $comptListNotes; $i++) {
        $idPublish = $listNotes->note_published[$i];
        $block6->openRow($listNotes->note_id[$i]);
        $block6->checkboxRow($listNotes->note_id[$i]);
        $block6->cellRow(buildLink("../notes/viewnote.php?id=" . $listNotes->note_id[$i], $listNotes->note_subject[$i], LINK_INSIDE));
        if ($comptTopic != "0") {
            $block6->cellRow($topicNote[$listNotes->note_topic[$i]]);
        }
        $block6->cellRow($listNotes->note_date[$i]);
        $block6->cellRow(buildLink($listNotes->note_mem_email_work[$i], $listNotes->note_mem_login[$i], LINK_MAIL));
        if ($sitePublish == "true") {
            $block6->cellRow($statusPublish[$idPublish]);
        }
        $block6->closeRow();
    }
    $block6->closeResults();
    $block6->bornesFooter("6", $blockPage->bornesNumber, "", "searchfor={$searchfor}&amp;heading={$heading}");
    $block6->closeToggle();
    $block3->headingForm_close();
    $block6->closeFormResults();
    /*$block6->openPaletteScript();
    $block6->paletteScript(0,"export","../projects/exportproject.php?languageSession=" . $_SESSION['languageSession'] . "&type=project","false,true,false",$strings["export"]);
    $block6->closePaletteScript($comptListNotes,$listNotes->note_id);*/
}
$block7 = new block();
Пример #10
0
            $day = date("j");
            if (strlen($month) == 1) {
                $month = "0{$month}";
            }
            if (strlen($pmonth) == 1) {
                $pmonth = "0{$pmonth}";
            }
            if (strlen($nmonth) == 1) {
                $nmonth = "0{$nmonth}";
            }
            if (strlen($day) == 1) {
                $day = "0{$day}";
            }
            $datePast = "{$pyear}-{$pmonth}-01";
            $dateNext = "{$nyear}-{$nmonth}-01";
            $dateToday = "{$year}-{$month}-{$day}";
            echo "<table><tr><td class=calend> </td></tr></table>";
            echo "<table cellspacing=\"0\" width=\"100%\" border=\"0\" cellpadding=\"0\"><tr><td nowrap align=\"right\" class=\"footerCell\">" . buildLink("../calendar/viewcalendar.php?viewCalend={$viewCalend}&amp;dateCalend={$datePast}", $strings["previous"], LINK_INSIDE) . " | " . buildLink("../calendar/viewcalendar.php?viewCalend={$viewCalend}&amp;dateCalend={$dateToday}", $strings["today"], LINK_INSIDE) . " | " . buildLink("../calendar/viewcalendar.php?viewCalend={$viewCalend}&amp;dateCalend={$dateNext}", $strings["next"], LINK_INSIDE) . "</td></tr><tr><td height=\"5\" colspan=\"2\"><img width=\"1\" height=\"5\" border=\"0\" src=\"../themes/" . THEME . "/spacer.gif\" alt=\"\"></td></tr></table>";
            if ($activeJpgraph == "true" && $gantt == "true") {
                // show the expanded or compact Gantt Chart
                if ($_GET['base'] == 1) {
                    echo "<a href='viewcalendar.php?viewCalend={$viewCalend}&amp;dateCalend={$dateCalend}&amp;base=0'>expand</a><br>";
                } else {
                    echo "<a href='viewcalendar.php?viewCalend={$viewCalend}&amp;dateCalend={$dateCalend}&amp;base=1'>compact</a><br>";
                }
                echo "<img src=\"graphtasks.php?viewCalend={$viewCalend}&amp;dateCalend={$dateCalend}&amp;base=" . $_GET['base'] . "\" alt=\"\"><br>\r\n<span class=\"listEvenBold\">" . buildLink("http://www.aditus.nu/jpgraph/", "JpGraph", LINK_POWERED) . "</span>";
            }
        }
    }
}
require_once "../themes/" . THEME . "/footer.php";
*/
// set up the header string
$headerString = $strings['project_breakdown'];
$headerString .= ': ' . ($comptListProjects == 1 ? "{$comptListProjects} {$strings['match']}" : "{$comptListProjects} {$strings['matches']}");
$block1->heading($headerString);
$block1->heading_close();
if ($comptListProjects != "0") {
    $block1->openResults($checkbox = "false");
    $block1->labels($labels = array(0 => $strings["owner"], 1 => $strings["project"], 2 => $strings["organization"], 3 => $strings["status"]), "false");
    for ($i = 0; $i < $comptListProjects; $i++) {
        $idStatus = $listProjects->pro_status[$i];
        $block1->openRow();
        $block1->checkboxRow($listProjects->pro_id[$i], $checkbox = "false");
        if ($listProjects->pro_owner[$i] == "0") {
            $block1->cellRow($strings["unassigned"]);
        } else {
            $block1->cellRow(buildLink($listProjects->pro_mem_email_work[$i], $listProjects->pro_mem_name[$i], LINK_MAIL));
        }
        $block1->cellRow(buildLink("../projects/viewproject.php?id=" . $listProjects->pro_id[$i], $listProjects->pro_name[$i], LINK_INSIDE));
        $block1->cellRow(buildLink("../clients/viewclient.php?id=" . $listProjects->pro_org_id[$i], $listProjects->pro_org_name[$i], LINK_INSIDE));
        // $block1->cellRow($listProjects->pro_status[$i]);
        $block1->cellRow('<img src="../themes/' . THEME . '/gfx_status/' . $idStatus . '.gif" alt="' . $status[$idStatus] . '">&nbsp;' . $status[$idStatus], '', true);
        $block1->closeRow();
    }
    $block1->closeResults();
} else {
    $block1->noresults();
}
$block1->closeFormResults();
// close this block
require_once "../themes/" . THEME . "/footer.php";
Пример #12
0
    $tmpquery10 = 'DELETE FROM ' . $tableCollab['support_posts'] . ' WHERE project IN(' . $id . ')';
    connectSql($tmpquery10);
    $tmpquery11 = 'DELETE FROM ' . $tableCollab['phases'] . ' WHERE project_id IN(' . $id . ')';
    connectSql($tmpquery11);
    $tmpquery12 = 'DELETE FROM ' . $tableCollab['tasks_time'] . ' WHERE project IN(' . $id . ')';
    connectSql($tmpquery12);
    // if mantis bug tracker enabled
    if ($enableMantis == 'true') {
        // call mantis function to delete project
        require_once '../mantis/proj_delete.php';
    }
    header('Location: ../projects/listprojects.php?msg=delete');
    exit;
}
//--- header ----
$breadcrumbs[] = buildLink('../projects/listprojects.php?', $strings['projects'], LINK_INSIDE);
$breadcrumbs[] = $strings['delete_projects'];
$pageSection = 'projects';
require_once '../themes/' . THEME . '/header.php';
//--- content ---
$block1 = new block();
$block1->form = 'saP';
$block1->openForm('../projects/deleteproject.php?action=delete&amp;id=' . $id);
$block1->headingForm($strings['delete_projects']);
$block1->openContent();
$block1->contentTitle($strings['delete_following']);
for ($i = 0; $i < $comptListProjects; $i++) {
    $block1->contentRow('#' . $listProjects->pro_id[$i], $listProjects->pro_name[$i]);
}
$block1->contentRow('', '<input type="submit" name="delete" value="' . $strings['delete'] . '"> <input type="button" name="cancel" value="' . $strings['cancel'] . '" onClick="history.back();">');
$block1->closeContent();
Пример #13
0
$block1->contentRow($strings["project"], buildLink("../projects/viewproject.php?id=" . $requestDetail->sr_project[0], $requestDetail->sr_pro_name[0], LINK_INSIDE));
$block1->contentRow($strings["subject"], $requestDetail->sr_subject[0]);
$block1->contentRow($strings["priority"], $requestPriority);
$block1->contentRow($strings["status"], $status);
$block1->contentRow($strings["date"], $requestDetail->sr_date_open[0]);
$block1->contentRow($strings["user"], buildLink($requestDetail->sr_mem_email_work[0], $requestDetail->sr_mem_name[0], LINK_MAIL));
$block1->contentRow($strings["message"], nl2br($requestDetail->sr_message[0]));
$block1->contentTitle($strings["responses"]);
if ($teamMember == "true" || $_SESSION['profilSession'] != "0") {
    $block1->contentRow("", buildLink("../support/addpost.php?id=" . $requestDetail->sr_id[0], $strings["add_support_response"], LINK_INSIDE));
}
for ($i = 0; $i < $comptListPosts; $i++) {
    $block1->contentRow($strings["posted_by"], buildLink($listPosts->sp_mem_email_work[$i], $listPosts->sp_mem_name[$i], LINK_MAIL));
    $block1->contentRow($strings["date"], createDate($listPosts->sp_date[$i], $_SESSION['timezoneSession']));
    if ($teamMember == "true" || $_SESSION['profilSession'] == "0") {
        $block1->contentRow(buildLink("../support/deleterequests.php?action=deleteP&amp;id=" . $listPosts->sp_id[$i], $strings["delete_message"], LINK_INSIDE), nl2br($listPosts->sp_message[$i]));
    } else {
        $block1->contentRow("", nl2br($listPosts->sp_message[$i]));
    }
    $block1->contentRow("", "", "true");
}
if ($status == $requestStatus[0]) {
    $status = "new";
} elseif ($status == $requestStatus[1]) {
    $status = "open";
} elseif ($status == $requestStatus[2]) {
    $status = "complete";
}
$block1->closeContent();
$block1->openPaletteScript();
$block1->paletteScript(0, "edit", "../support/addpost.php?action=status&id=" . $requestDetail->sr_id[0] . "", "true,true,true", $strings["edit_status"]);
Пример #14
0
 * 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.
 */
$checkSession = true;
require_once "../includes/library.php";
if ($action == "delete") {
    $id = str_replace("**", ",", $id);
    $tmpquery1 = "DELETE FROM " . $tableCollab["reports"] . " WHERE id IN({$id})";
    connectSql($tmpquery1);
    header("Location: ../general/home.php?msg=deleteReport");
    exit;
}
//--- header ---
$breadcrumbs[] = buildLink("../reports/listreports.php?", $strings["my_reports"], LINK_INSIDE);
$breadcrumbs[] = $strings["delete_reports"];
$pageSection = 'reports';
require_once "../themes/" . THEME . "/header.php";
//--- content ---
$block1 = new block();
$block1->form = "saS";
$block1->openForm("../reports/deletereports.php?action=delete&amp;id={$id}");
$block1->headingForm($strings["delete_reports"]);
$block1->openContent();
$block1->contentTitle($strings["delete_following"]);
$id = str_replace("**", ",", $id);
$tmpquery = "WHERE rep.id IN({$id}) ORDER BY rep.name";
$listReports = new request();
$listReports->openReports($tmpquery);
$comptListReports = count($listReports->rep_id);
Пример #15
0
        $comptSta = count($requestStatus);
        for ($sr = 0; $sr < $comptSta; $sr++) {
            if ($listRequests->sr_status[$i] == $sr) {
                $currentStatus = $requestStatus[$sr];
            }
        }
        $comptPri = count($priority);
        for ($rp = 0; $rp < $comptPri; $rp++) {
            if ($listRequests->sr_priority[$i] == $rp) {
                $requestPriority = $priority[$rp];
            }
        }
        $block1->openRow($listRequests->sr_id[$i]);
        $block1->checkboxRow($listRequests->sr_id[$i]);
        $block1->cellRow($listRequests->sr_id[$i]);
        $block1->cellRow(buildLink("../support/viewrequest.php?id=" . $listRequests->sr_id[$i], $listRequests->sr_subject[$i], LINK_INSIDE));
        $block1->cellRow($listRequests->sr_mem_name[$i]);
        $block1->cellRow($listRequests->sr_project[$i]);
        $block1->cellRow($requestPriority);
        $block1->cellRow($currentStatus);
        $block1->cellRow($listRequests->sr_date_open[$i]);
        $block1->cellRow($listRequests->sr_date_close[$i]);
        $block1->closeRow();
    }
    $block1->closeResults();
} else {
    $block1->noresults();
}
$block1->closeFormResults();
if ($teamMember == "true" || $_SESSION['profilSession'] == "0") {
    $block1->openPaletteScript();
Пример #16
0
    connectSql("{$tmpquery3}");
    connectSql("{$tmpquery4}");
    connectSql("{$tmpquery5}");
    connectSql("{$tmpquery6}");
    connectSql("{$tmpquery7}");
    // if mantis bug tracker enabled
    if ($enableMantis == "true") {
        // Call mantis function to remove user
        require_once "../mantis/user_delete.php";
    }
    header("Location: ../users/listusers.php?msg=delete");
    exit;
}
//--- header -----
$breadcrumbs[] = buildLink("../administration/admin.php?", $strings["administration"], LINK_INSIDE);
$breadcrumbs[] = buildLink("../users/listusers.php?", $strings["user_management"], LINK_INSIDE);
$breadcrumbs[] = $strings["delete_users"];
require_once "../themes/" . THEME . "/header.php";
//--- content -----
$block1 = new block();
$block1->form = "user_delete";
$block1->openForm("../users/deleteusers.php?action=delete");
$block1->headingForm($strings["delete_users"]);
$block1->openContent();
$block1->contentTitle($strings["delete_following"]);
$id = str_replace("**", ",", $id);
$tmpquery = "WHERE mem.id IN({$id}) ORDER BY mem.name";
$listMembers = new request();
$listMembers->openMembers($tmpquery);
$comptListMembers = count($listMembers->mem_id);
for ($i = 0; $i < $comptListMembers; $i++) {
Пример #17
0
                        require_once "../mantis/create_new_user.php";
                    }
                    header("Location: ../users/listusers.php?msg=add");
                    exit;
                }
            }
        }
    }
}
//--- header----
$breadcrumbs[] = buildLink("../administration/admin.php?", $strings["administration"], LINK_INSIDE);
$breadcrumbs[] = buildLink("../users/listusers.php?", $strings["user_management"], LINK_INSIDE);
if ($id == "") {
    $breadcrumbs[] = $strings["add_user"];
} else {
    $breadcrumbs[] = buildLink("../users/viewuser.php?id={$id}", $detailUser->mem_login[0], LINK_INSIDE);
    $breadcrumbs[] = $strings["edit_user"];
}
$bodyCommand = "onLoad=\"document.user_editForm.un.focus();\"";
require_once "../themes/" . THEME . "/header.php";
//---- content -----
$block1 = new block();
if ($id == "") {
    $block1->form = "user_edit";
    $block1->openForm("../users/edituser.php?id={$id}&amp;action=add#" . $block1->form . "Anchor");
}
if ($id != "") {
    $block1->form = "user_edit";
    $block1->openForm("../users/edituser.php?id={$id}&amp;action=update#" . $block1->form . "Anchor");
}
if ($error != "") {
Пример #18
0
                connectSql($tmpquery);
            }
        }
        header('Location: ../projects/viewproject.php?id=' . $num . '&msg=add');
        exit;
    }
}
//--- header ---------
$breadcrumbs[] = buildLink('../projects/listprojects.php', $strings['projects'], LINK_INSIDE);
// case add project
if ($id == '') {
    $breadcrumbs[] = $strings['add_project'];
}
// case update or copy project
if ($id != '') {
    $breadcrumbs[] = buildLink('../projects/viewproject.php?id=' . $projectDetail->pro_id[0], $projectDetail->pro_name[0], LINK_INSIDE);
    if ($cpy == 'true') {
        $breadcrumbs[] = $strings['copy_project'];
    } else {
        $breadcrumbs[] = $strings['edit_project'];
    }
}
$bodyCommand = 'onLoad="document.epDForm.pn.focus();"';
$pageSection = 'projects';
require_once '../themes/' . THEME . '/header.php';
//--- content ---------
$block1 = new block();
// case add project
if ($id == '') {
    $block1->form = 'epD';
    $block1->openForm('../projects/editproject.php?action=add&amp;#' . $block1->form . 'Anchor');
Пример #19
0
$block1->openForm("../reports/listreports.php#" . $block1->form . "Anchor");
$block1->heading($strings["my_reports"]);
$block1->openPaletteIcon();
$block1->paletteIcon(0, "add", $strings["add"]);
$block1->paletteIcon(1, "remove", $strings["delete"]);
$block1->closePaletteIcon();
$block1->sorting("reports", $sortingUser->sor_reports[0], "rep.name ASC", $sortingFields = array(0 => "rep.name", 1 => "rep.created"));
$tmpquery = "WHERE rep.owner = '" . $_SESSION['idSession'] . "' ORDER BY {$block1->sortingValue}";
$listReports = new request();
$listReports->openReports($tmpquery);
$comptListReports = count($listReports->rep_id);
if ($comptListReports != "0") {
    $block1->openResults();
    $block1->labels($labels = array(0 => $strings["name"], 1 => $strings["created"]), "false");
    for ($i = 0; $i < $comptListReports; $i++) {
        $block1->openRow($listReports->rep_id[$i]);
        $block1->checkboxRow($listReports->rep_id[$i]);
        $block1->cellRow(buildLink("../reports/resultsreport.php?id=" . $listReports->rep_id[$i], $listReports->rep_name[$i], LINK_INSIDE));
        $block1->cellRow(createDate($listReports->rep_created[$i], $_SESSION['timezoneSession']));
    }
    $block1->closeResults();
} else {
    $block1->noresults();
}
$block1->closeFormResults();
$block1->block_close();
$block1->openPaletteScript();
$block1->paletteScript(0, "add", "../reports/createreport.php?", "true,true,true", $strings["add"]);
$block1->paletteScript(1, "remove", "../reports/deletereports.php?", "false,true,true", $strings["delete"]);
$block1->closePaletteScript($comptListReports, $listReports->rep_id);
require_once "../themes/" . THEME . "/footer.php";
Пример #20
0
            $f_project_id = $project;
            $f_user_id = $pieces[$i];
            require_once "../mantis/user_proj_delete.php";
        }
    }
    if ($notifications == "true") {
        $organization = "";
        require_once "../teams/noti_removeprojectteam.php";
    }
    header("Location: ../projects/viewprojectsite.php?id={$project}&msg=removeClientToSite");
    exit;
}
//--- header ---
$breadcrumbs[] = buildLink("../projects/listprojects.php?", $strings["projects"], LINK_INSIDE);
$breadcrumbs[] = buildLink("../projects/viewproject.php?id=" . $projectDetail->pro_id[0], $projectDetail->pro_name[0], LINK_INSIDE);
$breadcrumbs[] = buildLink("../projects/viewprojectsite.php?id=" . $projectDetail->pro_id[0], $strings["project_site"], LINK_INSIDE);
$breadcrumbs[] = $strings["remove_team_client"];
require_once "../themes/" . THEME . "/header.php";
//--- content ----
$block1 = new block();
$block1->form = "crM";
$block1->openForm("../teams/deleteclientusers.php?project={$project}&amp;action=delete&amp;id={$id}");
$block1->headingForm($strings["remove_team_client"]);
$block1->openContent();
$block1->contentTitle($strings["remove_team_info"]);
$id = str_replace("**", ",", $id);
$tmpquery = "WHERE mem.id IN({$id}) ORDER BY mem.name";
$listMembers = new request();
$listMembers->openMembers($tmpquery);
$comptListMembers = count($listMembers->mem_id);
for ($i = 0; $i < $comptListMembers; $i++) {
Пример #21
0
//--- header ---
$breadcrumbs[] = buildLink("../clients/listclients.php?", $strings["organizations"], LINK_INSIDE);
$breadcrumbs[] = $strings["organizations"];
//--- content ----
require_once "../themes/" . THEME . "/header.php";
$block1 = new block();
$block1->form = "ecD";
$block1->openForm("../projects/listprojects.php#" . $block1->form . "Anchor");
$block1->headingToggle($strings["organization"] . " : " . $clientDetail->org_name[0]);
$block1->openPaletteIcon();
$block1->paletteIcon(0, "remove", $strings["delete"]);
$block1->paletteIcon(1, "edit", $strings["edit"]);
$block1->closePaletteIcon();
$block1->openContent();
$block1->contentTitle($strings["details"]);
$block1->contentRow($strings["name"], $clientDetail->org_name[0]);
$block1->contentRow($strings["address"], $clientDetail->org_address1[0]);
$block1->contentRow($strings["phone"], $clientDetail->org_phone[0]);
$block1->contentRow($strings["url"], buildLink($clientDetail->org_url[0], $clientDetail->org_url[0], LINK_OUT));
$block1->contentRow($strings["email"], buildLink($clientDetail->org_email[0], $clientDetail->org_email[0], LINK_MAIL));
$block1->contentTitle($strings["details"]);
$block1->contentRow($strings["comments"], nl2br($clientDetail->org_comments[0]));
$block1->contentRow($strings["created"], createDate($clientDetail->org_created[0], $_SESSION['timezoneSession']));
$block1->closeContent();
$block1->closeToggle();
$block1->closeForm();
$block1->openPaletteScript();
$block1->paletteScript(0, "remove", "../clients/deleteclients.php?id=" . $clientDetail->org_id[0] . "", "true,true,false", $strings["delete"]);
$block1->paletteScript(1, "edit", "../clients/editclient.php?id=" . $clientDetail->org_id[0] . "", "true,true,false", $strings["edit"]);
$block1->closePaletteScript("", "");
require_once "../themes/" . THEME . "/footer.php";
Пример #22
0
    $c = convertData($c);
    $tmpquery = 'UPDATE ' . $tableCollab['organizations'] . " SET name='{$cn}',address1='{$add}',phone='{$wp}',url='{$url}',email='{$email}',comments='{$c}' WHERE id = '1'";
    connectSql($tmpquery);
    header('Location: ../administration/mycompany.php');
}
$tmpquery = "WHERE org.id='1'";
$clientDetail = new request();
$clientDetail->openOrganizations($tmpquery);
$cn = $clientDetail->org_name[0];
$add = $clientDetail->org_address1[0];
$wp = $clientDetail->org_phone[0];
$url = $clientDetail->org_url[0];
$email = $clientDetail->org_email[0];
$c = $clientDetail->org_comments[0];
//--- header ---------
$breadcrumbs[] = buildLink('../administration/admin.php?', $strings['administration'], LINK_INSIDE);
$breadcrumbs[] = $strings['company_details'];
$bodyCommand = 'onLoad="document.adminDForm.cn.focus();"';
$pageSection = 'admin';
require_once '../themes/' . THEME . '/header.php';
//---- content -------
$blockPage = new block();
$block1 = new block();
echo '<a name="' . $block1->form . 'Anchor"></a>';
echo '<form accept-charset="UNKNOWN" method="POST" action="../administration/mycompany.php?action=update" name="adminDForm" enctype="multipart/form-data">';
echo '<input type="hidden" name="MAX_FILE_SIZE" value="100000000">';
if ($error != '') {
    $block1->headingError($strings['errors']);
    $block1->contentError($error);
}
$block1->headingForm($strings['company_details']);
Пример #23
0
$memberTest->openTeams($tmpquery);
$comptMemberTest = count($memberTest->tea_id);
if ($comptMemberTest == "0") {
    $teamMember = "false";
} else {
    $teamMember = "true";
}
if ($teamMember == "false" && $projectsFilter == "true") {
    header("Location:../general/permissiondenied.php");
    exit;
}
//--- header ---
$breadcrumbs[] = buildLink("../projects/listprojects.php?", $strings["projects"], LINK_INSIDE);
$breadcrumbs[] = buildLink("../projects/viewproject.php?id=" . $projectDetail->pro_id[0], $projectDetail->pro_name[0], LINK_INSIDE);
$breadcrumbs[] = buildLink("../meetings/listmeetings.php?project=" . $projectDetail->pro_id[0], $strings["meetings"], LINK_INSIDE);
$breadcrumbs[] = buildLink("../meetings/viewmeeting.php?id=" . $meetingDetail->mee_id[0], $meetingDetail->mee_name[0], LINK_INSIDE);
$breadcrumbs[] = $strings["add_meeting_time"];
require_once "../themes/" . THEME . "/header.php";
// Check field values
if ($_GET['action'] == 'add') {
    $msgLabel .= '';
    // init
    // make sure we have the required information
    if (!empty($hr)) {
        if (!is_numeric($hr)) {
            // we need this to be numeric
            $msgLabel = '<b>' . $strings['attention'] . '</b> : ' . $strings['worked_hours'] . ' ' . $strings['error_numerical'];
        }
    } else {
        // we need this to be numeric
        $msgLabel = '<b>' . $strings['attention'] . '</b> : ' . $strings['worked_hours'] . ' ' . $strings['error_required'];
Пример #24
0
 * 
 * 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.
 * 
 * ../reports/selecthours.php
 * 
 * select options for report of hours logged
 * 
 * TODO:
 */
$checkSession = true;
require_once "../includes/library.php";
$breadcrumbs[] = $strings['reports'];
$breadcrumbs[] = buildLink('../reports/createreport.php?typeReports=create', $strings["create_report"], in) . ' | ' . buildLink('../reports/createreport.php?typeReports=custom', $strings['custom_reports'], LINK_INSIDE);
$pageSection = 'reports';
require_once "../themes/" . THEME . "/header.php";
// start the first block
$block1 = new block();
$block1->form = "xwbT";
$block1->openForm("../reports/hours.php#" . $block1->form . "Anchor");
$block1->openContent();
echo "<table>\n";
echo "<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue\">" . $strings["loggedby"] . " :</td><td>";
if ($demoMode == true) {
    $tmpquery = "ORDER BY mem.name";
} else {
    $tmpquery = "WHERE mem.id != '2' ORDER BY mem.name";
}
$listMembers = new request();
Пример #25
0
echo text('Label') . ": <input name='newlabel' type='text'> ";
echo "<input type='submit' value='" . text('add_label') . "'>";
echo "</TD></TR>";
$block1->closeContent();
$block1->closeForm();
// Phrase Editing Form
$translations = load_translations($sellang);
$block1->form = "langedit";
$block1->openForm("../administration/edit_language.php?action=save&language=" . $sellang . "&count=" . count($translations) . "&offset=" . $offset);
// build page links
$numpages = count($translations) / $pagesize;
$pagestr = "";
for ($i = 0; $i < $numpages; $i++) {
    $pagestr .= ' ';
    if ($offset / $pagesize != $i) {
        $pagestr .= buildLink('../administration/edit_language.php?offset=' . $i * $pagesize . '&language=' . $sellang, $i + 1);
    } else {
        $pagestr .= $i + 1;
    }
}
$block1->heading(text("Phrases") . " ( " . $pagestr . " )");
$block1->openPaletteIcon();
$block1->paletteIcon(1, "remove", text("delete"));
$block1->closePaletteIcon();
// ok, now to list up all the phrases
$block1->openResults();
$block1->labels($labels = array(0 => text('Label'), 1 => text('Translation')), $published = "true", "true", $sortingOff = array(0 => '0', 1 => 'DESC'));
reset($translations);
$id = 0;
$checkboxes = array();
foreach ($translations as $key => $value) {
Пример #26
0
 $listTasks->openTasks($tmpqueryTask);
 $comptListTasks = count($listTasks->tas_id);
 $blockProject->openResults("false");
 $blockProject->labels($labels = array(0 => $strings["task"], 1 => $strings["priority"], 2 => $strings["status"], 3 => $strings["due_date"], 4 => $strings["completed"], 5 => $strings["assigned_to"], 6 => $strings["published"]), "true");
 if ($comptListProjects != "0") {
     for ($i = 0; $i < $comptListTasks; $i++) {
         if ($listTasks->tas_due_date[$i] == "--" or $listTasks->tas_due_date[$i] == "") {
             $listTasks->tas_due_date[$i] = $strings["none"];
         }
         $idStatus = $listTasks->tas_status[$i];
         $idPriority = $listTasks->tas_priority[$i];
         $idPublished = $listTasks->tas_published[$i];
         $complValue = $listTasks->tas_completion[$i] > 0 ? $listTasks->tas_completion[$i] . "0 %" : $listTasks->tas_completion[$i] . " %";
         $blockProject->openRow();
         $blockProject->checkboxRow($listTasks->tas_id[$i], $checkbox = "false");
         $blockProject->cellRow(buildLink("../tasks/viewtask.php?id=" . $listTasks->tas_id[$i], $listTasks->tas_name[$i], LINK_INSIDE));
         $blockProject->cellRow('<img src="../themes/' . THEME . '/gfx_priority/' . $idPriority . '.gif" alt="' . $priority[$idPriority] . '">&nbsp;' . $priority[$idPriority], '', true);
         $blockProject->cellRow($status[$idStatus]);
         $blockProject->cellRow($listTasks->tas_due_date[$i]);
         if ($complValue != "100 %") {
             $blockProject->cellRow($complValue);
         } else {
             $blockProject->cellRow($listTasks->tas_complete_date[$i]);
         }
         if ($listTasks->tas_assigned_to[$i] == "0") {
             $blockProject->cellRow($strings["unassigned"]);
         } else {
             $blockProject->cellRow($listTasks->tas_mem_login[$i]);
         }
         $blockProject->cellRow($statusPublish[$idPublished]);
         $blockProject->closeRow();
Пример #27
0
             $existFile = "true";
         }
         $block2->openRow($listAttachments->mat_id[$i]);
         $block2->checkboxRow($listAttachments->mat_id[$i]);
         if ($existFile == "true") {
             $block2->cellRow(buildLink("../meetings/viewfile.php?id=" . $listAttachments->mat_id[$i], $type, icone));
         } else {
             $block2->cellRow("&nbsp;");
         }
         if ($existFile == "true") {
             $block2->cellRow(buildLink("../meetings/viewfile.php?id=" . $listAttachments->mat_id[$i], $listAttachments->mat_name[$i], LINK_INSIDE));
         } else {
             $block2->cellRow($strings["missing_file"] . " (" . $listAttachments->mat_name[$i] . ")");
         }
         $block2->cellRow($listAttachments->mat_date[$i]);
         $block2->cellRow(buildLink("../meetings/viewfile.php?id=" . $listAttachments->mat_id[$i], $statusFile[$idStatus], LINK_INSIDE));
         if ($sitePublish == "true") {
             $block2->cellRow($statusPublish[$idPublish]);
         }
         $block2->closeRow();
     }
     $block2->closeResults();
 } else {
     $block2->noresults();
 }
 $block2->closeToggle();
 $block2->closeFormResults();
 $block2->openPaletteScript();
 if ($teamMember == "true" || $_SESSION['profilSession'] == "5") {
     $block2->paletteScript(0, "add", "../meetings/addfile.php?project=" . $meetingDetail->mee_project[0] . "&meeting={$id}", "true,true,true", $strings["add"]);
     $block2->paletteScript(1, "remove", "../meetings/deletefiles.php?project=" . $projectDetail->pro_id[0] . "&meeting=" . $meetingDetail->mee_id[0] . "", "false,true,true", $strings["delete"]);
$block1->openForm("../clients/listclients.php#" . $block1->form . "Anchor");
$block1->heading($strings["organizations"]);
$block1->openPaletteIcon();
$block1->paletteIcon(0, "add", $strings["add"]);
$block1->paletteIcon(1, "remove", $strings["delete"]);
$block1->closePaletteIcon();
$tmpquery = "WHERE org.id != '1' ORDER BY org.url DESC";
$listOrganizations = new request();
$listOrganizations->openOrganizations($tmpquery);
$comptListOrganizations = count($listOrganizations->org_id);
if ($comptListOrganizations != "0") {
    $block1->openResults($checkbox = "false");
    $block1->labels($labels = array(0 => $strings["name"], 1 => $strings["phone"], 2 => $strings["url"]), "false", $sorting = "false", $sortingOff = array(0 => "2", 1 => "DESC"));
    for ($i = 0; $i < $comptListOrganizations; $i++) {
        $block1->openRow();
        $block1->checkboxRow($listOrganizations->org_id[$i], $checkbox = "false");
        $block1->cellRow(buildLink("../clients/viewclient.php?id=" . $listOrganizations->org_id[$i], $listOrganizations->org_name[$i], LINK_INSIDE));
        $block1->cellRow($listOrganizations->org_phone[$i]);
        $block1->cellRow(buildLink($listOrganizations->org_url[$i], $listOrganizations->org_url[$i], LINK_OUT));
        $block1->closeRow();
    }
    $block1->closeResults();
} else {
    $block1->noresults();
}
$block1->closeFormResults();
$block1->openPaletteScript();
$block1->paletteScript(0, "add", "../clients/editclient.php?", "true,false,false", $strings["add"]);
$block1->paletteScript(1, "remove", "../clients/deleteclients.php?", "false,true,true", $strings["delete"]);
$block1->closePaletteScript($comptListOrganizations, $listOrganizations->org_id);
require_once "../themes/" . THEME . "/footer.php";
Пример #29
0
        if ($listTasks->tas_due_date[$i] <= $date && $listTasks->tas_completion[$i] != '10') {
            $block10->cellRow('<b>' . $listTasks->tas_due_date[$i] . '</b>');
        } else {
            $block10->cellRow($listTasks->tas_due_date[$i]);
        }
        if ($listTasks->tas_start_date[$i] != "--" && $listTasks->tas_due_date[$i] != '--') {
            $gantt = 'true';
        }
        //---- phase ------
        $pha_id = $listTasks->tas_parent_phase[$i];
        $block10->cellRow('<a href="../phases/viewphase.php?id=' . $listPhases->pha_id[$pha_id] . '">' . $listPhases->pha_name[$pha_id] . '</a>');
        //--- assigned to -----
        if ($listTasks->tas_assigned_to[$i] == '0') {
            $block10->cellRow($strings['unassigned']);
        } else {
            $block10->cellRow(buildLink($listTasks->tas_mem_email_work[$i], $listTasks->tas_mem_login[$i], LINK_MAIL));
        }
        //---- published ------
        if ($sitePublish == 'true') {
            $block10->cellRow($statusPublish[$idPublish]);
        }
        $block10->closeRow();
    }
    $block10->closeResults();
    $block10->bornesFooter('1', $blockPage->bornesNumber, '../tasks/listtasks.php?project=' . $id, 'id=' . $id);
} else {
    $block10->noresults();
}
$block10->closeToggle();
$block10->closeFormResults();
$block10->openPaletteScript();
Пример #30
0
 $listPermitted = new request();
 $listPermitted->openTeams($tmpquery);
 $comptListPermitted = count($listPermitted->tea_id);
 if ($comptListPermitted != '0') {
     $block2->openResults();
     $block2->labels($labels = array(0 => $strings['full_name'], 1 => $strings['title'], 2 => $strings['user_name'], 3 => $strings['work_phone'], 4 => $strings['connected'], 5 => $strings['published']), 'true');
     for ($i = 0; $i < $comptListPermitted; $i++) {
         if ($listPermitted->tea_mem_phone_work[$i] == '') {
             $listPermitted->tea_mem_phone_work[$i] = $strings['none'];
         }
         $idPublish = $listPermitted->tea_published[$i];
         $block2->openRow($listPermitted->tea_mem_id[$i]);
         $block2->checkboxRow($listPermitted->tea_mem_id[$i]);
         $block2->cellRow(buildLink('../users/viewclientuser.php?id=' . $listPermitted->tea_mem_id[$i] . '&amp;organization=' . $projectDetail->pro_organization[0], $listPermitted->tea_mem_name[$i], LINK_INSIDE));
         $block2->cellRow($listPermitted->tea_mem_title[$i]);
         $block2->cellRow(buildLink($listPermitted->tea_mem_email_work[$i], $listPermitted->tea_mem_login[$i], LINK_MAIL));
         $block2->cellRow($listPermitted->tea_mem_phone_work[$i]);
         if ($listPermitted->tea_mem_profil[$i] == '3') {
             $z = '(Client on project site)';
         } else {
             $z = '';
         }
         if ($listPermitted->tea_log_connected[$i] > $dateunix - 5 * 60) {
             $block2->cellRow($strings['yes'] . ' ' . $z);
         } else {
             $block2->cellRow($strings['no']);
         }
         if ($sitePublish == 'true') {
             $block2->cellRow($statusPublish[$idPublish]);
         }
         $block2->closeRow();