$block1->form = 'uploadlogo'; $block1->form = 'pdD'; $block1->openForm('../projects/viewprojectsite.php?action=update&id=' . $id . '&#' . $block1->form . 'Anchor'); $block1->heading($strings['project_site'] . ' : ' . $projectDetail->pro_name[0]); if ($_SESSION['idSession'] == $projectDetail->pro_owner[0] || $_SESSION['profilSession'] == '5') { $block1->openPaletteIcon(); $block1->paletteIcon(0, 'remove', $strings['delete']); // $block1->paletteIcon(1,'template',$strings['template']); // $block1->paletteIcon(2,'edit',$strings['edit']); $block1->closePaletteIcon(); } else { $block1->headingToggle_close(); } $block1->openContent(); $block1->contentTitle($strings['details']); $block1->contentRow($strings['project'], buildLink('../projects/viewproject.php?id=' . $id, $projectDetail->pro_name[0] . ' (#' . $projectDetail->pro_id[0] . ')', LINK_INSIDE)); if ($projectDetail->pro_org_id[0] == '1') { $block1->contentRow($strings['organization'], $strings['none']); } else { $block1->contentRow($strings['organization'], buildLink('../clients/viewclient.php?id=' . $projectDetail->pro_org_id[0], $projectDetail->pro_org_name[0], LINK_INSIDE)); } $block1->closeContent(); $block1->block_close(); $block1->closeForm(); if ($_SESSION['idSession'] == $projectDetail->pro_owner[0] || $_SESSION['profilSession'] == '5') { $block1->openPaletteScript(); $block1->paletteScript(0, 'remove', '../projects/deleteprojectsite.php?project=' . $id, 'true,true,true', $strings['delete']); // $block1->paletteScript(1,'template','addtemplate.php','true,true,true',$strings['template']); // $block1->paletteScript(1,'template','editprojectsite.php','true,true,false',$strings['template']); $block1->closePaletteScript('', ''); }
$msgLabel = '<b>' . $strings['success'] . '</b> : ' . $strings['hours_updated']; } } $tmpquery1 = "SELECT sum(hours) FROM " . $tableCollab['meetings_time']; $blockPage = new block(); $blockPage->bornesNumber = "1"; // get actual time for meeting $meetingActualTime = new request(); $actualTime = $meetingActualTime->getMeetingTime($id); $block1 = new block(); $block1->form = "saM"; $block1->openForm("../meetings/addmeetingtime.php?id={$id}&project=" . $projectDetail->pro_name[0] . "&action=add#" . $block1->form . "Anchor"); $block1->headingForm($strings["add_meeting_time"] . " : " . $meetingDetail->mee_name[0]); $block1->openContent(); $block1->contentTitle($strings["info"]); $block1->contentRow($strings["project"], $projectDetail->pro_name[0]); $block1->contentRow($strings["meetings"], $meetingDetail->mee_name[0]); $block1->contentRow($strings["me_agenda"], nl2br($meetingDetail->mee_agenda[0])); $block1->contentRow($strings["actual_time"], $actualTime . " " . $strings["hours"]); $block1->contentTitle($strings["add_meeting_time"]); $tmpquery = "WHERE tea.project = '" . $projectDetail->pro_id[0] . "' ORDER BY mem.name"; $projmem = new request(); $projmem->openTeams($tmpquery); $comptProjmem = count($projmem->tea_mem_id); echo "\r\n<tr class='odd'>\r\n <td valign='top' class='leftvalue'>" . $strings['owner'] . " :</td>\r\n <td><select name='owner'>"; // get project team listing for owner select lists, default to logged user for ($i = 0; $i < $comptProjmem; $i++) { $clientUser = ''; if ($projmem->tea_mem_profil[$i] == '3') { $clientUser = '******' . $strings['client_user'] . ')'; }
if ($sitePublish == "true") { $block1->paletteIcon(3, "add_projectsite", $strings["add_project_site"]); $block1->paletteIcon(4, "remove_projectsite", $strings["remove_project_site"]); } $block1->paletteIcon(5, "edit", $strings["edit"]); $block1->paletteIcon(6, "timelog", $strings["loghours"]); $block1->closePaletteIcon(); } else { $block1->headingToggle_close(); } if ($projectDetail->pro_org_id[0] == "1") { $projectDetail->pro_org_name[0] = $strings["none"]; } $block1->openContent(); $block1->contentTitle($strings["info"]); $block1->contentRow($strings["project"], buildLink("../projects/viewproject.php?id=" . $projectDetail->pro_id[0], $projectDetail->pro_name[0], LINK_INSIDE)); $block1->contentRow($strings["organization"], $projectDetail->pro_org_name[0]); $block1->contentRow($strings["created"], createDate($meetingDetail->mee_created[0], $_SESSION['timezoneSession'])); $block1->contentRow($strings["modified"], createDate($meetingDetail->mee_modified[0], $_SESSION['timezoneSession'])); $block1->contentTitle($strings["details"]); $block1->contentRow($strings["name"], $meetingDetail->mee_name[0]); $block1->contentRow($strings['meeting_id'], $meetingDetail->mee_id[0]); $idStatus = $meetingDetail->mee_status[0]; $idPriority = $meetingDetail->mee_priority[0]; $idPublish = $meetingDetail->mee_published[0]; $block1->contentRow($strings["status"], $status[$idStatus]); $block1->contentRow($strings["priority"], $priority[$idPriority]); if ($meetingDetail->mee_date[0] <= $date && $idStatus != 1) { $block1->contentRow($strings["date"], "<b>" . $meetingDetail->mee_date[0] . "</b>"); } else { $block1->contentRow($strings["date"], $meetingDetail->mee_date[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";
//--- 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";
exit; } if ($action == "create") { $tmpquery = "UPDATE " . $tableCollab["projects"] . " SET published='0' WHERE id = '{$id}'"; connectSql("{$tmpquery}"); headerFunction("../projects/viewprojectsite.php?id={$id}&msg=createProjectSite&" . session_name() . "=" . session_id()); exit; } include '../themes/' . THEME . '/header.php'; $blockPage = new block(); $blockPage->openBreadcrumbs(); $blockPage->itemBreadcrumbs($blockPage->buildLink("../projects/listprojects.php?", $strings["projects"], in)); $blockPage->itemBreadcrumbs($blockPage->buildLink("../projects/viewproject.php?id={$id}", $projectDetail->pro_name[0], in)); $blockPage->itemBreadcrumbs($strings["create_projectsite"]); $blockPage->closeBreadcrumbs(); $block1 = new block(); $block1->form = "csdD"; $block1->openForm("../projects/addprojectsite.php?action=create&id={$id}&" . session_name() . "=" . session_id()); $block1->heading($strings["create_projectsite"]); $block1->openContent(); $block1->contentTitle($strings["details"]); $block1->contentRow($strings["project"], $blockPage->buildLink("../projects/viewproject.php?id={$id}", $projectDetail->pro_name[0], in)); if ($projectDetail->pro_org_id[0] == "1") { $block1->contentRow($strings["organization"], $strings["none"]); } else { $block1->contentRow($strings["organization"], $blockPage->buildLink("../clients/viewclient.php?id=" . $projectDetail->pro_org_id[0], $projectDetail->pro_org_name[0], in)); } $block1->contentRow("", "<input type=\"SUBMIT\" value=\"" . $strings["create"] . "\">"); $block1->closeContent(); $block1->closeForm(); include '../themes/' . THEME . '/footer.php';
$block1->openPaletteIcon(); $block1->paletteIcon(0, "remove", $strings["delete"]); //$block1->paletteIcon(1,"export",$strings["export"]); if ($sitePublish == "true") { $block1->paletteIcon(2, "add_projectsite", $strings["add_project_site"]); $block1->paletteIcon(3, "remove_projectsite", $strings["remove_project_site"]); } $block1->paletteIcon(4, "edit", $strings["edit"]); $block1->closePaletteIcon(); } if ($projectDetail->pro_org_id[0] == "1") { $projectDetail->pro_org_name[0] = $strings["none"]; } $block1->openContent(); $block1->contentTitle($strings["info"]); $block1->contentRow($strings["project"], $blockPage->buildLink("../projects/viewproject.php?id=" . $projectDetail->pro_id[0], $projectDetail->pro_name[0], in)); if ($noteDetail->note_topic[0] != "") { $block1->contentRow($strings["topic"], $topicNote[$noteDetail->note_topic[0]]); } $block1->contentRow($strings["subject"], $noteDetail->note_subject[0]); $block1->contentRow($strings["date"], $noteDetail->note_date[0]); $block1->contentRow($strings["owner"], $blockPage->buildLink($noteDetail->note_mem_email_work[0], $noteDetail->note_mem_login[0], mail)); $block1->contentRow($strings["description"], nl2br($noteDetail->note_description[0])); $idPublish = $noteDetail->note_published[0]; if ($sitePublish == "true") { $block1->contentRow($strings["published"], $statusPublish[$idPublish]); } $block1->closeContent(); $block1->closeForm(); if ($teamMember == "true" && $idSession == $noteDetail->note_owner[0]) { $block1->openPaletteScript();
} $block1->openContent(); $block1->contentTitle($strings["info"]); $comptSupStatus = count($requestStatus); for ($i = 0; $i < $comptSupStatus; $i++) { if ($requestDetail->sr_status[0] == $i) { $status = $requestStatus[$i]; } } $comptPri = count($priority); for ($i = 0; $i < $comptPri; $i++) { if ($requestDetail->sr_priority[0] == $i) { $requestPriority = $priority[$i]; } } $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&id=" . $listPosts->sp_id[$i], $strings["delete_message"], LINK_INSIDE), nl2br($listPosts->sp_message[$i]));
$block1->headingError($strings["errors"]); $block1->contentError($error); } if ($action != 'remove') { if ($id == "") { echo "\t<a name='" . $block1->form . "Anchor'></a>\n <form accept-charset='UNKNOWN' method='POST' action='../newsdesk/editnews.php?action=add&" . session_name() . "=" . session_id() . "' name='ecDForm'>\n"; $block1->heading($strings["add_newsdesk"]); } else { echo "\t<a name='" . $block1->form . "Anchor'></a>\n <form accept-charset='UNKNOWN' method='POST' action='../newsdesk/editnews.php?id={$id}&action=update&" . session_name() . "=" . session_id() . "' name='ecDForm'>\n"; $block1->heading($strings["edit_newsdesk"] . " : " . $newsDetail->news_title[0]); } $block1->openContent(); $block1->contentTitle($strings["details"]); // add if ($id == "") { $block1->contentRow($strings["author"], "<input type='hidden' name='author' value='{$idSession}'><b>{$nameSession}</b>"); } else { $tmpquery_user = "******" . $newsDetail->news_author[0] . "' "; $newsAuthor = new request(); $newsAuthor->openMembers($tmpquery_user); $block1->contentRow($strings["author"], "<input type='hidden' name='author' value='" . $newsDetail->news_author[0] . "'><b>" . $newsAuthor->mem_name[0] . "</b>"); } $block1->contentRow($strings["title"], "<input type='text' name='title' value='{$title}' style='width: 300px;'>"); // 04/11/2003 related news by fullo // admin can post news on all projects if ($profilSession == "0") { if ($databaseType == "postgresql") { $tmpquery = " GROUP BY pro.id, pro.name, tea.id"; } else { $tmpquery = " GROUP BY pro.id "; }
** ** ----------------------------------------------------------------------------- ** Please refer to license, copyright, and credits in README.TXT ** ** ----------------------------------------------------------------------------- ** FILE: license.php ** ** DESC: Screen: print GNU/GPL license ** ** HISTORY: ** 2003-10-23 - added new document info ** ----------------------------------------------------------------------------- ** TO-DO: ** ** ============================================================================= */ $checkSession = "false"; include_once '../includes/library.php'; $notLogged = "true"; include '../themes/' . THEME . '/header.php'; $blockPage = new block(); $blockPage->openBreadcrumbs(); $blockPage->itemBreadcrumbs(" "); $blockPage->closeBreadcrumbs(); $block1 = new block(); $block1->heading($setTitle . " : License"); $block1->openContent(); $block1->contentTitle("License"); $block1->contentRow("", "<pre>" . recupFile("../docs/copying.txt") . "</pre>"); $block1->closeContent(); include '../themes/' . THEME . '/footer.php';
for ($i = 0; $i < $comptProjmem; $i++) { $selected = ""; if ($worker_id == $projmem->mem_id[$i] || $worker_id == 0 && $_SESSION['idSession'] == $projmem->mem_id[$i]) { $selected = " selected"; } echo "<option value='" . $projmem->mem_id[$i] . "'" . $selected . ">" . $projmem->mem_name[$i] . "{$clientUser}</option>"; } echo "</select>" . "</td></tr>"; } else { echo "<input type='hidden' name='worker_id' value='" . $_SESSION['idSession'] . "'>" . $_SESSION['nameSession']; } //*** Data Input *** if ($ld == '') { if ($dateURL == '') { $ld = $date; } else { $ld = $dateURL; } } $block1->contentRow($strings['date'], "<input type=\"text\" style=\"width: 150px;\" name=\"ld\" id=\"sel1\"\n\tsize=\"20\" value=\"{$ld}\" onChange='checkDateFormat(this);'><button type=\"reset\" id=\"trigger_a\">...</button>\n\t<script type=\"text/javascript\">Calendar.setup({ inputField:\"sel1\", button:\"trigger_a\" });</script>"); //Define action of the Cancel button depending of window type if ($window == "popup") { $cancel_action = "window.close();"; } else { $cancel_action = "history.back();"; } echo "\n\t<tr class='odd'>\n\t <td valign='top' class='leftvalue'>" . $strings["worked_hours"] . " :</td>\n\t <td>\n\t \t\t<input size='20' value='{$hr}' style='width: 150px;' name='hr' maxlength='6' type='text' onChange='timeCheck(this);'></td>\n\t</tr>\n\t<tr class='odd'>\n\t <td valign='top' class='leftvalue'>" . $strings["comments"] . " :</td>\n\t <td><textarea rows='10' style='width: 400px; height: 150px;' name='comm' cols='47'>{$comm}</textarea></td>\n\t</tr>\n\t<tr class='odd'>\n\t <td valign='top' class='leftvalue'> </td>\n\t <td><input type='hidden' name='actionField' value='wait'><input type='SUBMIT' value='" . $strings["save"] . "' onClick='this.form.actionField.value=\"add\"'><input type='button' name='cancel' value='" . $strings['cancel'] . "' onClick='{$cancel_action}'></td></td>\n\t</tr>"; $block1->closeContent(); $block1->block_close(); $block1->closeForm(); require_once "../themes/" . THEME . "/footer.php";
$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&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); for ($i = 0; $i < $comptListReports; $i++) { $block1->contentRow("#" . $listReports->rep_id[$i], $listReports->rep_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(); $block1->headingForm_close(); $block1->closeForm(); require_once "../themes/" . THEME . "/footer.php";
} else { $langDefault = 'en'; } } else { $langDefault = 'en'; } } require_once '../languages/lang_' . $langDefault . '.php'; $block1 = new block(); $block1->headingForm('NetOffice : Error'); $block1->openContent(); if ($_GET['type'] == 'myserver') { if ($databaseType == 'mysql') { $block1->contentTitle('MySQL Error'); } $block1->contentRow('', $strings['error_server']); } if ($_GET['type'] == 'mydatabase') { if ($databaseType == 'mysql') { $block1->contentTitle('MySQL Error'); } $block1->contentRow('', $strings['error_database']); } if ($_GET['type'] == 'phpversion') { $block1->contentTitle('PHP Version Error'); $block1->contentRow('', $strings['error_phpversion']); } $block1->closeContent(); $block1->headingForm_close(); $footerDev = false; require_once '../themes/' . THEME . '/footer.php';
if ($showHomeTasks) { $checkedHomeTasks_t = "checked"; } else { $checkedHomeTasks_f = "checked"; } if ($showHomeSubtasks) { $checkedHomeSubtasks_t = "checked"; } else { $checkedHomeSubtasks_f = "checked"; } if ($autoPublishTasks) { $checkedAutoPublish_t = "checked"; } else { $checkedAutoPublish_f = "checked"; } $block1->contentRow("Installation type", "<input type='radio' name='installationTypeNew' value='offline' {$installCheckOffline} /> Offline (firewall/intranet, no update checker) <input type='radio' name='installationTypeNew' value='online' {$installCheckOnline} /> Online"); $block1->contentRow("Update checker", "<input type='radio' name='updateCheckerNew' value='false' {$checked2_e} /> False <input type='radio' name='updateCheckerNew' value='true' {$checked1_e} /> True"); echo "<tr class='odd'><td valign='top' class='leftvalue'>* Create folder method" . $blockPage->printHelp("setup_mkdirMethod") . "</td><td>\n<table cellpadding=0 cellspacing=0 width=500><tr><td valign=top><input type='radio' name='mkdirMethodNew' value='PHP' {$checked2_a} /> PHP <input type='radio' name='mkdirMethodNew' value='FTP' {$checked1_a} /> FTP<br/>[Safe-mode {$safemode}]</td><td align=right>"; echo "Ftp server <input size='44' value='" . FTPSERVER . "' style='width: 200px' name='ftpserverNew' maxlength='100' type='text' /><br/>\nFtp login <input size='44' value='" . FTPLOGIN . "' style='width: 200px' name='ftploginNew' maxlength='100' type='text' /><br/>\nFtp password <input size='44' value='" . FTPPASSWORD . "' style='width: 200px' name='ftppasswordNew' maxlength='100' type='password' /><br/>\nFtp root <input size='44' value='{$ftpRoot}' style='width: 200px' name='ftpRootNew' maxlength='100' type='text' />"; echo "</td></tr></table>\n</td></tr>"; echo "<tr class='odd'><td valign='top' class='leftvalue'>* Notification method" . $blockPage->printHelp("setup_notificationMethod") . "</td><td>\n<table cellpadding=0 cellspacing=0 width=500><tr><td valign=top><input type='radio' name='notificationMethodNew' value='mail' {$checked2_g} /> PHP mail function <input type='radio' name='notificationMethodNew' value='smtp' {$checked1_g} /> SMTP</td><td align=right>"; echo "Smtp server <input size='44' value='" . SMTPSERVER . "' style='width: 200px' name='smtpserverNew' maxlength='100' type='text /'><br/>\nSmtp login <input size='44' value='" . SMTPLOGIN . "' style='width: 200px' name='smtploginNew' maxlength='100' type='text' /><br/>\nSmtp password <input size='44' value='" . SMTPPASSWORD . "' style='width: 200px' name='smtppasswordNew' maxlength='100' type='password' />"; echo "</td></tr></table>\n</td></tr>"; echo "<tr class='odd'><td valign='top' class='leftvalue'>* Theme :</td><td><select name='mythemeNew'>"; $all = opendir("../themes"); while ($file = readdir($all)) { if ($file != "index.php" && $file != ".." && $file != "." && $file != "CVS") { if ($file == THEME) { echo "<option value=\"{$file}\" selected>{$file}</option>"; } else { echo "<option value=\"{$file}\">{$file}</option>";
$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']); $block1->openContent(); $block1->contentTitle($strings['company_info']); $block1->contentRow($strings['name'], '<input size="44" value="' . $cn . '" style="width: 400px" name="cn" maxlength="100" type="TEXT">'); $block1->contentRow($strings['address'], '<textarea rows="3" style="width: 400px; height: 50px;" name="add" cols="43">' . $add . '</textarea>'); $block1->contentRow($strings['phone'], '<input size="32" value="' . $wp . '" style="width: 250px" name="wp" maxlength="32" type="TEXT">'); $block1->contentRow($strings['url'], '<input size="44" value="' . $url . '" style="width: 400px" name="url" maxlength="2000" type="TEXT">'); $block1->contentRow($strings['email'], '<input size="44" value="' . $email . '" style="width: 400px" name="email" maxlength="2000" type="TEXT">'); $block1->contentRow($strings['comments'], '<textarea rows="3" style="width: 400px; height: 50px;" name="c" cols="43">' . $c . '</textarea>'); $block1->contentRow($strings['logo'] . $blockPage->printHelp('mycompany_logo'), '<input size="44" style="width: 400px" name="upload" type="file">'); if (file_exists('../logos_clients/1.' . $clientDetail->org_extension_logo[0])) { $block1->contentRow('', '<img src="../logos_clients/1.' . $clientDetail->org_extension_logo[0] . '" border="0" alt="' . $clientDetail->org_name[0] . '"><input name="extensionOld" type="hidden" value="' . $clientDetail->org_extension_logo[0] . '"> <input name="logoDel" type="checkbox" value="on"> ' . $strings['delete']); } $block1->contentRow('', '<input type="SUBMIT" value="' . $strings['save'] . '">'); $block1->closeContent(); $block1->headingForm_close(); $block1->closeForm(); require_once '../themes/' . THEME . '/footer.php';
$listUpdates = new request(); $listUpdates->openUpdates($tmpquery); $comptListUpdates = count($listUpdates->upd_id); for ($i = 0; $i < $comptListUpdates; $i++) { if (preg_match('|\\[status:([0-9])\\]|', $listUpdates->upd_comments[$i])) { preg_match('|\\[status:([0-9])\\]|i', $listUpdates->upd_comments[$i], $matches); $listUpdates->upd_comments[$i] = preg_replace('|\\[status:([0-9])\\]|', '', $listUpdates->upd_comments[$i] . '<br/>'); $listUpdates->upd_comments[$i] .= $strings["status"] . ' ' . $status[$matches[1]]; } if (preg_match('|\\[priority:([0-9])\\]|', $listUpdates->upd_comments[$i])) { preg_match('|\\[priority:([0-9])\\]|i', $listUpdates->upd_comments[$i], $matches); $listUpdates->upd_comments[$i] = preg_replace('|\\[priority:([0-9])\\]|', '', $listUpdates->upd_comments[$i] . '<br/>'); $listUpdates->upd_comments[$i] .= $strings["priority"] . ' ' . $priority[$matches[1]]; } if (preg_match('|\\[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] = preg_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"], $blockPage->buildLink($listUpdates->upd_mem_email_work[$i], $listUpdates->upd_mem_name[$i], mail)); if ($listUpdates->upd_created[$i] > $lastvisiteSession) { $block1->contentRow($strings["when"], "<b>" . createDate($listUpdates->upd_created[$i], $timezoneSession) . "</b>"); } else { $block1->contentRow($strings["when"], createDate($listUpdates->upd_created[$i], $timezoneSession)); } $block1->contentRow("", nl2br($listUpdates->upd_comments[$i])); $block1->contentRow("", "", "true"); } $block1->closeContent(); $block1->closeForm(); include '../themes/' . THEME . '/footer.php';
if ($comptListProjects > "1") { $blockPage->contentRow("", $comptListProjects . " " . $strings["matches"]); } $block0->closeContent(); $block0->block_close(); if ($comptListProjects != "0") { for ($j = 0; $j < $comptListProjects; $j++) { $projectTitle = $listProjects->pro_name[$j]; $projectId = $listProjects->pro_id[$j]; $projectPriority = $listProjects->pro_priority[$j]; $blockProject = new block(); $blockProject->headingForm(buildLink("../projects/viewproject.php?id=" . $projectId, $projectTitle, LINK_INSIDE)); $blockProject->openContent(); // correct order???? $blockProject->contentTitle($strings["details"]); $blockProject->contentRow($strings["priority"], "<img src=\"../themes/" . THEME . "/gfx_priority/" . $projectPriority . ".gif\" alt=\"\"> " . $priority[$projectPriority]); $blockProject->contentRow($strings["created"], createDate($listProjects->pro_created[$j], $_SESSION['timezoneSession'])); $blockProject->contentRow($strings["modified"], createDate($listProjects->pro_modified[$j], $_SESSION['timezoneSession'])); if ($listProjects->pro_org_id[$j] == "1") { $blockProject->contentRow($strings["organization"], $strings["none"]); } else { $blockProject->contentRow($strings["organization"], buildLink("../clients/viewclient.php?id=" . $listProjects->pro_org_id[$j], $listProjects->pro_org_name[$j], LINK_INSIDE)); } $blockProject->contentRow($strings["status"], $status[$listProjects->pro_status[$j]]); $queryTask = " WHERE tas.project = '{$projectId}'"; $tmpqueryTask = "{$queryTask} ORDER BY tas.due_date"; $blockProject->closeContent(); $blockProject->heading_close(); $listTasks = new request(); $listTasks->openTasks($tmpqueryTask); $comptListTasks = count($listTasks->tas_id);
$block1 = new block(); $block1->form = "xwbT"; $block1->openForm("../reports/projectbreakdown.php#" . $block1->form . "Anchor"); $block1->openContent(); $block1->sorting("projects", $sortingUser->sor_projects[0], "mem.name ASC", $sortingFields = array(0 => "mem.name", 1 => "pro.name", 2 => "org.name", 3 => "pro.status")); // $query = " WHERE pro.status = 1 "; $tmpquery = "{$query} ORDER BY {$block1->sortingValue}"; // $tmpquery = $query; $listProjects = new request(); $listProjects->openProjects($tmpquery); $comptListProjects = count($listProjects->pro_id); $block0 = new block(); $block0->openContent(); $block0->contentTitle($strings["report_results"]); if ($comptListProjects == "0") { $block1->contentRow("", "0 " . $strings["matches"] . "<br>" . $strings["no_results_report"]); } if ($comptListProjects == "1") { $block1->contentRow("", "1 " . $strings["match"]); } if ($comptListProjects > "1") { $block1->contentRow("", $comptListProjects . " " . $strings["matches"]); } $block0->closeContent(); /* $block1->openPaletteIcon(); $block1->paletteIcon(0,"export",$strings["export"]); $block1->closePaletteIcon(); $block1->openPaletteScript(); $block1->paletteScript(0,"export","../reports/exportcompleted.php?s_date2=$s_date2&","true,false,false",$strings["export"]);
$block1->contentError($error); } if ($id == "") { $block1->headingForm($strings["add_user"]); } if ($id != "") { $block1->headingForm($strings["edit_user"] . " : " . $detailUser->mem_login[0]); } $block1->openContent(); if ($id == "") { $block1->contentTitle($strings["enter_user_details"]); } if ($id != "") { $block1->contentTitle($strings["edit_user_details"]); } $block1->contentRow($strings["user_name"], "<input size=\"24\" style=\"width: 250px;\" maxlength=\"16\" type=\"text\" name=\"un\" value=\"{$un}\"><input type=\"hidden\" name=\"unOld\" value=\"{$un}\">"); $block1->contentRow($strings["full_name"], "<input size=\"24\" style=\"width: 250px;\" maxlength=\"64\" type=\"text\" name=\"fn\" value=\"{$fn}\">"); $block1->contentRow($strings["title"], "<input size=\"24\" style=\"width: 250px;\" maxlength=\"128\" type=\"text\" name=\"tit\" value=\"{$tit}\">"); $block1->contentRow($strings["email"], "<input size=\"24\" style=\"width: 250px;\" maxlength=\"128\" type=\"text\" name=\"em\" value=\"{$em}\">"); $block1->contentRow($strings["work_phone"], "<input size=\"14\" style=\"width: 150px;\" maxlength=\"32\" type=\"text\" name=\"wp\" value=\"{$wp}\">"); $block1->contentRow($strings["home_phone"], "<input size=\"14\" style=\"width: 150px;\" maxlength=\"32\" type=\"text\" name=\"hp\" value=\"{$hp}\">"); $block1->contentRow($strings["mobile_phone"], "<input size=\"14\" style=\"width: 150px;\" maxlength=\"32\" type=\"text\" name=\"mp\" value=\"{$mp}\">"); $block1->contentRow($strings["fax"], "<input size=\"14\" style=\"width: 150px;\" maxlength=\"32\" type=\"text\" name=\"fax\" value=\"{$fax}\">"); $block1->contentRow($strings["comments"], "<textarea style=\"width: 350px; height: 60px;\" name=\"c\" cols=\"45\" rows=\"5\">{$c}</textarea>"); if ($id == "") { $block1->contentTitle($strings["enter_password"]); } if ($id != "") { $block1->contentTitle($strings["change_password_user"]); } $block1->contentRow($strings["password"], "<input size=\"24\" style=\"width: 250px;\" maxlength=\"15\" type=\"password\" name=\"pw\" value=\"\">");
} else { $block1->headingForm($strings["add"] . ":"); } $block1->openContent(); $block1->contentTitle($strings["details"]); if ($viewCalend != 0) { echo "<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue\">" . $strings['project'] . " :</td><td>" . $listTeam->tea_pro_name[0] . "</td></tr>"; } echo "<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue\">" . $strings["subject"] . " :</td><td><input size=\"24\" style=\"width: 250px;\" maxlength=\"128\" type=\"text\" name=\"subject\" value=\"{$subject}\"></td></tr>\r\n<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue\">" . $strings["description"] . " :</td><td><textarea style=\"width: 400px; height: 50px;\" name=\"description\" cols=\"35\" rows=\"2\">{$description}</textarea></td></tr>\r\n<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue\">* " . $strings["shortname"] . $template->printHelp("calendar_shortname") . " :</td><td><input size=\"24\" style=\"width: 250px;\" maxlength=\"128\" type=\"text\" name=\"shortname\" value=\"{$shortname}\"></td></tr>"; if ($date_start == "") { $date_start = $dateCalend; } if ($date_end == "") { $date_end = $dateCalend; } $block1->contentRow($strings["date_start"], "<input type=\"text\" style=\"width: 150px;\" name=\"dateStart\" id=\"sel1\" size=\"20\" value=\"{$date_start}\"><button type=\"reset\" id=\"trigger_a\">...</button><script type=\"text/javascript\">Calendar.setup({ inputField:\"sel1\", button:\"trigger_a\" });</script>"); $block1->contentRow($strings["date_end"], "<input type=\"text\" style=\"width: 150px;\" name=\"dateEnd\" id=\"sel3\" size=\"20\" value=\"{$date_end}\"><button type=\"reset\" id=\"trigger_b\">...</button><script type=\"text/javascript\">Calendar.setup({ inputField:\"sel3\", button:\"trigger_b\" });</script>"); echo "</td></tr>\r\n<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue\">" . $strings["time_start"] . " :</td><td><input size=\"24\" style=\"width: 250px;\" maxlength=\"128\" type=\"text\" name=\"time_start\" value=\"{$time_start}\"></td></tr>\r\n<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue\">" . $strings["time_end"] . " :</td><td><input size=\"24\" style=\"width: 250px;\" maxlength=\"128\" type=\"text\" name=\"time_end\" value=\"{$time_end}\"></td></tr>\r\n<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue\">" . $strings["calendar_reminder"] . " :</td><td><input type=\"radio\" name=\"reminder\" value=\"0\" {$checked1_b}> " . $strings["no"] . " <input type=\"radio\" name=\"reminder\" value=\"1\" {$checked2_b}> " . $strings["yes"] . "</td></tr>\r\n<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue\">" . $strings["calendar_recurring"] . " :</td><td><input type=\"checkbox\" name=\"recurring\" value=\"1\" {$checked2_a}></td></tr>\r\n<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue\"> </td><td><input type=\"SUBMIT\" value=\"" . $strings["save"] . "\"></td></tr>"; $block1->closeContent(); $block1->headingForm_close(); $block1->closeForm(); } // calendDetail if ($type == "calendDetail") { $reminder = $detailCalendar->cal_reminder[0]; $recurring = $detailCalendar->cal_recurring[0]; if ($reminder == "0") { $reminder = $strings["no"]; } else { $reminder = $strings["yes"]; }
<?php // $Revision: 1.7 $ /* vim: set expandtab ts=4 sw=4 sts=4: */ /** * $Id: license.php,v 1.7 2004/12/23 16:17:19 madbear Exp $ * * Copyright (c) 2003 by the NetOffice developers * * 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 = false; require_once '../includes/library.php'; $pageSection = 'license'; $notLogged = true; require_once '../themes/' . THEME . '/header.php'; $block1 = new block(); $block1->headingForm('NetOffice : License'); $block1->openContent(); $block1->contentTitle('License'); $buf = "<div class=license>"; $buf .= recupFile('../docs/copying.txt'); $buf .= "</div>"; $block1->contentRow('', $buf); $block1->closeContent(); $block1->headingForm_close(); require_once '../themes/' . THEME . '/footer.php';
} $block1 = new block(); if ($id != "") { $block1->form = "invoice"; $block1->openForm("../invoicing/editinvoice.php?id={$id}&action=update&" . session_name() . "=" . session_id() . "#" . $block1->form . "Anchor"); } if ($error != "") { $block1->headingError($strings["errors"]); $block1->contentError($error); } if ($id != "") { $block1->heading($strings["edit_invoice"] . " : " . $detailInvoice->inv_id[0]); } $block1->openContent(); $block1->contentTitle($strings["details"]); $block1->contentRow($strings["header_note"], "<textarea rows=\"10\" style=\"width: 400px; height: 100px;\" name=\"header_note\" cols=\"47\">{$header_note}</textarea>"); $block1->contentRow($strings["footer_note"], "<textarea rows=\"10\" style=\"width: 400px; height: 100px;\" name=\"footer_note\" cols=\"47\">{$footer_note}</textarea>"); $tmpquery = "WHERE invitem.invoice = '{$id}' AND invitem.active = '1' ORDER BY invitem.position ASC"; $listInvoicesItems = new request(); $listInvoicesItems->openInvoicesItems($tmpquery); $comptListInvoicesItems = count($listInvoicesItems->invitem_id); $selectStatus = "<select name=\"st\">"; $comptSta = count($invoiceStatus); if ($detailInvoice->inv_status[0] == "0") { $begin = "0"; } else { $begin = "1"; } for ($i = 0; $i < $comptListInvoicesItems; $i++) { if ($listInvoicesItems->invitem_completed[$i] == "0") { $comptSta = "1";
include '../includes/messages.php'; $blockPage->messagebox($msgLabel); } if ($enableHelpSupport == "true") { $tmpquery = "WHERE sr.status = '0'"; $listNewRequests = new request(); $listNewRequests->openSupportRequests($tmpquery); $comptListNewRequests = count($listNewRequests->sr_id); $tmpquery = "WHERE sr.status = '1'"; $listOpenRequests = new request(); $listOpenRequests->openSupportRequests($tmpquery); $comptListOpenRequests = count($listOpenRequests->sr_id); $tmpquery = "WHERE sr.status = '2'"; $listCompleteRequests = new request(); $listCompleteRequests->openSupportRequests($tmpquery); $comptListCompleteRequests = count($listCompleteRequests->sr_id); $block1 = new block(); $block1->form = "help"; if ($error != "") { $block1->headingError($strings["errors"]); $block1->contentError($error); } $block1->heading($strings["support_requests"]); $block1->openContent(); $block1->contentTitle($strings["information"]); $block1->contentRow($strings["new_requests"], "{$comptListNewRequests} - " . $blockPage->buildLink("../support/support.php?action=new", $strings["manage_new_requests"], in) . "<br/><br/>"); $block1->contentRow($strings["open_requests"], "{$comptListOpenRequests} - " . $blockPage->buildLink("../support/support.php?action=open", $strings["manage_open_requests"], in) . "<br/><br/>"); $block1->contentRow($strings["closed_requests"], "{$comptListCompleteRequests} - " . $blockPage->buildLink("../support/support.php?action=complete", $strings["manage_closed_requests"], in) . "<br/><br/>"); $block1->closeContent(); } include '../themes/' . THEME . '/footer.php';
$mail->AddAddress($userDetail->mem_email_work[0], $userDetail->mem_name[0]); $mail->Send(); $mail->ClearAddresses(); // redirect to login page with message header('Location: ../general/login.php?msg=emailpwd'); exit; } else { $error = $strings['no_email']; } } $send = 'on'; } $notLogged = true; $bodyCommand = 'onLoad="document.sendForm.loginForm.focus();"'; require_once '../themes/' . THEME . '/header.php'; $block1 = new block(); $block1->form = 'send'; $block1->openForm('../general/sendpassword.php?action=send'); if ($error != '') { $block1->headingError($strings['errors']); $block1->contentError($error); } $block1->headingForm('NetOffice : ' . $strings['password']); $block1->openContent(); $block1->contentTitle($strings['enter_login']); $block1->contentRow('* ' . $strings['user_name'], '<input style="width: 125px" maxlength="16" size="16" value="' . $loginForm . '" type="text" name="loginForm">'); $block1->contentRow('', '<input type="submit" name="send" value="' . $strings['send'] . '">'); $block1->closeContent(); $block1->headingForm_close(); $block1->closeForm(); require_once '../themes/' . THEME . '/footer.php';
$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}\">"); $block1->contentRow($strings["full_name"], "<input size=\"24\" style=\"width: 250px;\" maxlength=\"64\" type=\"text\" name=\"fn\" value=\"{$fn}\">"); $block1->contentRow($strings["title"], "<input size=\"24\" style=\"width: 250px;\" maxlength=\"64\" type=\"text\" name=\"tit\" value=\"{$tit}\">"); $selectOrganization = "<select name=\"clod\">"; $tmpquery = "WHERE org.id != '1' ORDER BY org.name"; $listOrganizations = new request(); $listOrganizations->openOrganizations($tmpquery); $comptListOrganizations = count($listOrganizations->org_id); for ($i = 0; $i < $comptListOrganizations; $i++) { if ($organization == $listOrganizations->org_id[$i]) { $selectOrganization .= "<option value=\"" . $listOrganizations->org_id[$i] . "\" selected>" . $listOrganizations->org_name[$i] . "</option>"; } else { $selectOrganization .= "<option value=\"" . $listOrganizations->org_id[$i] . "\">" . $listOrganizations->org_name[$i] . "</option>"; } } $selectOrganization .= "</select>";
#reschedule($holidayList->hol_date[0]); } $msg = 'delete'; } } $breadcrumbs[] = buildLink('../administration/admin.php', $strings['administration'], LINK_INSIDE); $breadcrumbs[] = $strings['holidays']; $pageSection = 'admin'; require_once '../themes/' . THEME . '/header.php'; //--- content ----- $block1 = new block(); $block1->headingForm($strings['new_holiday']); $block1->openContent(); $block1->form = 'hoT'; $block1->openForm("../administration/listholidays.php?action=add&d=" . $d . "&c=" . $c . "#" . $block1->form . "Anchor"); $block1->contentRow($strings["date"], "<input type=\"text\" style=\"width: 150px;\" name=\"d\" id=\"sel1\" size=\"20\" value=\"{$sd}\"><button type=\"reset\" id=\"trigger_a\">...</button><script type=\"text/javascript\">Calendar.setup({ inputField:\"sel1\", button:\"trigger_a\" });</script>"); $block1->contentRow($strings["comments"], "<textarea rows=\"10\" style=\"width: 400px; height: 160px;\" name=\"c\" cols=\"47\">{$c}</textarea>"); echo "<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue\"> </td><td><input type=\"SUBMIT\" value=\"" . $strings["save"] . "\"></td></tr>"; $block1->closeContent(); $block1->heading($strings["holidays"]); $block1->openPaletteIcon(); $block1->paletteIcon(1, "remove", $strings["delete"]); $block1->closePaletteIcon(); $tmpquery = " ORDER BY hol.date DESC"; $holidayList = new request(); $holidayList->openHoliday($tmpquery); $comptHolidayList = count($holidayList->hol_id); $block1->recordsTotal = $comptHolidayList; if ($comptHolidayList > 0) { $block1->openResults(); $block1->labels($labels = array(0 => $strings['date'], 1 => $strings['comments']), 'true', $sorting = false, $sortingOff = array(0 => '0', 1 => 'DESC'));
$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&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); for ($i = 0; $i < $comptListBookmarks; $i++) { $block1->contentRow('#' . $listBookmarks->boo_id[$i], $listBookmarks->boo_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(); $block1->headingForm_close(); $block1->closeForm(); require_once '../themes/' . THEME . '/footer.php';
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}&action=delete&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++) { $block1->contentRow("#" . $listMembers->mem_id[$i], $listMembers->mem_login[$i] . " (" . $listMembers->mem_name[$i] . ")"); } $block1->contentRow("", "<input type=\"SUBMIT\" value=\"" . $strings["delete"] . "\"> <input type=\"BUTTON\" value=\"" . $strings["remove"] . "\" onClick=\"history.back();\">"); $block1->closeContent(); $block1->headingForm_close(); $block1->closeForm(); require_once "../themes/" . THEME . "/footer.php";
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}&project=" . $projectDetail->pro_name[0] . "&action=add#" . $block1->form . "Anchor"); $block1->heading($strings["add_task_time"] . " : " . $taskDetail->tas_name[0]); $block1->heading_close(); $block1->openContent(); $block1->contentTitle($strings["info"]); $block1->contentRow($strings["project"], $projectDetail->pro_name[0]); $block1->contentRow($strings["tasks"], $taskDetail->tas_name[0]); $block1->contentRow($strings["description"], nl2br($taskDetail->tas_description[0])); $block1->contentRow($strings["estimated_time"], $taskDetail->tas_estimated_time[0] . " " . $strings["hours"]); $block1->contentRow($strings["actual_time"], $actualTime . " " . $strings["hours"]); $block1->contentTitle($strings["add_task_time"]); $tmpquery = "WHERE tea.project = '" . $projectDetail->pro_id[0] . "' ORDER BY mem.name"; $projmem = new request(); $projmem->openTeams($tmpquery); $comptProjmem = count($projmem->tea_mem_id); echo "\r\n\t<tr class='odd'>\r\n\t <td valign='top' class='leftvalue'>" . $strings['owner'] . " :</td>\r\n\t <td><select name='owner'>"; // get project team listing for owner select lists, default to logged user for ($i = 0; $i < $comptProjmem; $i++) { $clientUser = ''; if ($projmem->tea_mem_profil[$i] == '3') { $clientUser = '******' . $strings['client_user'] . ')';
$block1->openForm("../users/viewclientuser.php#" . $block1->form . "Anchor"); if ($error != "") { $block1->headingError($strings["errors"]); $block1->contentError($error); } $block1->heading($strings["client_user"]); $block1->openPaletteIcon(); if ($_SESSION['profilSession'] == "0" || $_SESSION['profilSession'] == "1") { $block1->paletteIcon(0, "remove", $strings["delete"]); $block1->paletteIcon(1, "edit", $strings["edit"]); } $block1->paletteIcon(2, "export", $strings["export"]); $block1->closePaletteIcon(); $block1->openContent(); $block1->contentTitle($strings["user_details"]); $block1->contentRow($strings["user_name"], $userDetail->mem_login[0]); $block1->contentRow($strings["full_name"], $userDetail->mem_name[0]); $block1->contentRow($strings["organization"], $userDetail->mem_org_name[0]); $block1->contentRow($strings["email"], $userDetail->mem_email_work[0]); $block1->contentRow($strings["work_phone"], $userDetail->mem_phone_work[0]); $block1->contentRow($strings["home_phone"], $userDetail->mem_phone_home[0]); $block1->contentRow($strings["mobile_phone"], $userDetail->mem_mobile[0]); $block1->contentRow($strings["fax"], $userDetail->mem_fax[0]); $block1->contentRow($strings["comments"], nl2br($userDetail->mem_comments[0])); $block1->contentRow($strings["account_created"], createDate($userDetail->mem_created[0], $_SESSION['timezoneSession'])); $block1->contentTitle($strings["information"]); $tmpquery = "SELECT tas.id FROM " . $tableCollab["tasks"] . " tas LEFT OUTER JOIN " . $tableCollab["projects"] . " pro ON pro.id = tas.project WHERE tas.assigned_to = '" . $userDetail->mem_id[0] . "' AND tas.status IN(0,2,3) AND pro.status IN(0,2,3)"; compt($tmpquery); $valueTasks = $countEnregTotal; $block1->contentRow($strings["tasks"], $valueTasks); $z = "(Client on project site)";