示例#1
0
    $option = '<option value="g">' . $strings['newsdesk_related_generic'] . '</option>\\n';
    if ($comptListProjects > 0) {
        for ($i = 0; $i < $comptListProjects; $i++) {
            if ($newsDetail->news_related[0] == $listProjects->tea_pro_id[$i]) {
                $selected = 'selected';
            } else {
                $selected = '';
            }
            $option .= '<option value="' . $listProjects->tea_pro_id[$i] . '" ' . $selected . ' >' . $listProjects->tea_pro_name[$i] . '</option>\\n';
        }
    }
    $block1->contentRow($strings["newsdesk_related"], "<select name='related' style='width: 300px;'>{$option}</select>");
    // end
    $block1->contentRow($strings["comments"], "<textarea rows='30' name='content' id='content' style='width: 400px;'>{$content}</textarea>");
    // 14/06/2003 related links & rss enabled by fullo
    $block1->contentRow($strings["newsdesk_related_links"] . $block1->printHelp("newsdesk_links"), "<input type='text' name='links' value='{$links}' style='width: 300px;'>");
    if ($id != "") {
        if ($rss == '1') {
            $ckeckedrss = 'checked';
        } else {
            $ckeckedrss = '';
        }
    } else {
        $ckeckedrss = 'checked';
    }
    $block1->contentRow($strings["newsdesk_rss"], "<input size='32' value='1' name='rss' type='checkbox' {$ckeckedrss}>");
    // end
    $block1->contentRow($strings[""], "<input type='submit' name='submit' value='" . $strings["save"] . "'> <input type='button' name='cancel' value='" . $strings["cancel"] . "' onClick='history.back();'>");
    $block1->closeContent();
    $block1->closeForm();
} else {
示例#2
0
$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';
示例#3
0
    $block1->contentRow($strings["status"], $status[$idStatus]);
    $block1->contentRow($strings["completion"], $complValue);
    $block1->contentRow($strings["priority"], $priority[$idPriority]);
    $block1->contentRow($strings["start_date"], $taskDetail->tas_start_date[0]);
    if ($taskDetail->tas_due_date[0] <= $date && $taskDetail->tas_completion[0] != "10") {
        $block1->contentRow($strings["due_date"], "<b>" . $taskDetail->tas_due_date[0] . "</b>");
    } else {
        $block1->contentRow($strings["due_date"], $taskDetail->tas_due_date[0]);
    }
    if ($taskDetail->tas_complete_date[0] != "" && $taskDetail->tas_complete_date[0] != "--" && $taskDetail->tas_due_date[0] != "--") {
        $diff = diff_date($taskDetail->tas_complete_date[0], $taskDetail->tas_due_date[0]);
        if ($diff > 0) {
            $diff = "<b>+{$diff}</b>";
        }
        $block1->contentRow($strings["complete_date"], $taskDetail->tas_complete_date[0]);
        $block1->contentRow($strings["scope_creep"] . $blockPage->printHelp("task_scope_creep"), "{$diff} " . $strings["days"]);
    }
    $block1->contentRow($strings["estimated_time"], $taskDetail->tas_estimated_time[0] . " " . $strings["hours"]);
    $taskActualTime = new request();
    $actual_time = $taskActualTime->getTaskTime($id);
    // $block1->contentRow($strings["actual_time"],$taskDetail->tas_actual_time[0]." ".$strings["hours"]);
    $block1->contentRow($strings["actual_time"], $actual_time . " " . $strings["hours"]);
    if ($sitePublish == "true") {
        $block1->contentRow($strings["published"], $statusPublish[$idPublish]);
    }
} else {
    $block1->contentRow($strings["date"], $taskDetail->tas_start_date[0]);
}
$block1->contentRow($strings["comments"], nl2br($taskDetail->tas_comments[0]));
$block1->contentTitle($strings["updates_task"]);
$tmpquery = "WHERE upd.type='1' AND upd.item = '{$id}' ORDER BY upd.created DESC";
示例#4
0
} 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)&nbsp;<input type='radio' name='installationTypeNew' value='online' {$installCheckOnline} /> Online");
$block1->contentRow("Update checker", "<input type='radio' name='updateCheckerNew' value='false' {$checked2_e} /> False&nbsp;<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&nbsp;<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&nbsp;<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>";
        }
    }
}
if ($notificationMethod == 'smtp') {
    $checked1_g = 'checked';
} else {
    $checked2_g = 'checked';
}
if ($installationType == 'offline') {
    $installCheckOffline = 'checked';
} else {
    $installCheckOnline = 'checked';
}
$block1->contentRow('Installation type', '<input type="radio" name="installationTypeNew" value="offline" ' . $installCheckOffline . '> Offline (firewall/intranet, no update checker)&nbsp;<input type="radio" name="installationTypeNew" value="online" ' . $installCheckOnline . '> Online');
$block1->contentRow('Update checker', '<input type="radio" name="updateCheckerNew" value="false" ' . $checked2_e . '> False&nbsp;<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>
	  <table cellpadding="0" cellspacing="0" width="500">
        <tr>
          <td valign="top">
		    <input type="radio" name="mkdirMethodNew" value="PHP" ' . $checked2_a . '> PHP&nbsp;
            <input type="radio" name="mkdirMethodNew" value="FTP" ' . $checked1_a . '> FTP<br>
            [Safe-mode ' . $safemode . ']</td>
          <td align="right">
            Ftp server <input size="44" value="' . FTPSERVER . '" style="width: 200px" name="ftpserverNew" maxlength="100" type="text"><br>
            Ftp login <input size="44" value="' . FTPLOGIN . '" style="width: 200px" name="ftploginNew" maxlength="100" type="text"><br>
            Ftp password <input size="44" value="' . FTPPASSWORD . '" style="width: 200px" name="ftppasswordNew" maxlength="100" type="password"><br>
            Ftp root <input size="44" value="' . $ftpRoot . '" style="width: 200px" name="ftpRootNew" maxlength="100" type="text">
          </td>
        </tr>
      </table>
示例#6
0
    }
}
$logoutMenu .= '</select>';
// $block1->contentRow($strings['logout_time'].$blockPage->printHelp('user_autologout'),$logoutMenu);
$block1->contentRow($strings['logout_time'], $logoutMenu);
if ($gmtTimezone == "true") {
    $selectTimezone = "<select name=\"tz\">";
    for ($i = -12; $i <= +12; $i++) {
        if ($userPrefs->mem_timezone[0] == $i) {
            $selectTimezone .= "<option value=\"{$i}\" selected>{$i}</option>";
        } else {
            $selectTimezone .= "<option value=\"{$i}\">{$i}</option>";
        }
    }
    $selectTimezone .= "</select>";
    $block1->contentRow($strings["user_timezone"] . $blockPage->printHelp("user_timezone"), $selectTimezone);
}
// let the user select the prefered startpage
$startPageMenu = '<select name="start_page" id="start_page">';
// if admin user then add the admin page to array
if ($userPrefs->mem_profil[0] == 0) {
    $startPageOptions = array_merge(array('administration/admin.php' => 'Administration page'), $startPageOptions);
}
// build the select list
foreach ($startPageOptions as $key => $value) {
    if ($userPrefs->mem_last_page[0] == $key) {
        $startPageMenu .= '<option value="' . $key . '" selected>' . $value . '</option>';
    } else {
        $startPageMenu .= '<option value="' . $key . '">' . $value . '</option>';
    }
}
示例#7
0
文件: admin.php 项目: ColBT/php_tut
    $block1->contentRow("", $blockPage->buildLink("../services/listservices.php?", $strings["service_management"], in));
}
if ($supportType == "admin") {
    $block1->contentRow("", $blockPage->buildLink("../administration/support.php?", $strings["support_management"], in));
}
if ($databaseType == "mysql") {
    $block1->contentRow("", $blockPage->buildLink("../administration/phpmyadmin.php?", $strings["database"], in));
}
/* disabled
if ($databaseType == "postgresql") 
{
	$block1->contentRow("",$blockPage->buildLink("../administration/phppgadmin.php?",$strings["database"],in));
}
*/
$block1->contentRow("", $blockPage->buildLink("../administration/systeminfo.php?", $strings["system_information"], in));
$block1->contentRow("", $blockPage->buildLink("../administration/mycompany.php?", $strings["company_details"], in));
$block1->contentRow("", $blockPage->buildLink("../administration/listlogs.php?", $strings["logs"], in));
$block1->contentRow($strings["update"] . $blockPage->printHelp("admin_update"), "1. " . $blockPage->buildLink("../administration/updatesettings.php?", $strings["edit_settings"], in) . " 2. " . $blockPage->buildLink("../administration/updatedatabase.php?", $strings["edit_database"], in));
if ($updateChecker == "true" && $installationType == "online") {
    $block1->contentRow("", updatechecker($version));
}
if (file_exists("../installation/setup.php")) {
    $block1->contentRow("", "<b>" . $strings["attention"] . "</b> : " . $strings["setup_erase"]);
    if (is_writable("../setup.php")) {
        $block1->contentRow("", "<a href='../installation/remove_files.php'>" . $strings["setup_erase_file"] . "</a>");
    } else {
        $block1->contentRow("", "<span style='color: #F00;font-weight:bold;'>" . $strings["setup_erase_file_ua"] . "</span>");
    }
}
$block1->closeContent();
include '../themes/' . THEME . '/footer.php';
$block1->contentRow($strings['description'], nl2br($projectDetail->pro_description[0]));
$block1->contentRow($strings['ical_url'], buildLink("{$root}/calendar/icalendar.php", "{$root}/calendar/icalendar.php", LINK_OUT));
$block1->contentRow($strings['url_dev'], buildLink($projectDetail->pro_url_dev[0], $projectDetail->pro_url_dev[0], LINK_OUT));
$block1->contentRow($strings['url_prod'], buildLink($projectDetail->pro_url_prod[0], $projectDetail->pro_url_prod[0], LINK_OUT));
$block1->contentRow($strings['owner'], buildLink('../users/viewuser.php?id=' . $projectDetail->pro_mem_id[0], $projectDetail->pro_mem_name[0], LINK_INSIDE) . ' (' . buildLink($projectDetail->pro_mem_email_work[0], $projectDetail->pro_mem_login[0], LINK_MAIL) . ')');
$block1->contentRow($strings['created'], createDate($projectDetail->pro_created[0], $_SESSION['timezoneSession']));
$block1->contentRow($strings['modified'], createDate($projectDetail->pro_modified[0], $_SESSION['timezoneSession']));
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->contentRow($strings['status'], $status[$idStatus]);
$block1->contentRow($strings['type'], $projectType[$projectDetail->pro_type[0]]);
if ($fileManagement == 'true') {
    $block1->contentRow($strings['max_upload'] . $blockPage->printHelp('max_file_size'), convertSize($projectDetail->pro_upload_max[0]));
    $block1->contentRow($strings['project_folder_size'] . $blockPage->printHelp('project_disk_space'), convertSize(folder_info_size('../files/' . $projectDetail->pro_id[0] . '/')));
}
$block1->contentRow($strings['estimated_time'], $estimated_time . ' ' . $strings['hours']);
$block1->contentRow($strings['actual_time'], $proj_time . ' ' . $strings['hours']);
$block1->contentRow($strings['scope_creep'] . $blockPage->printHelp('project_scope_creep'), $diff_time . ' ' . $strings['days']);
if ($sitePublish == 'true') {
    if ($projectDetail->pro_published[0] == '1') {
        $block1->contentRow($strings['project_site'], '&lt;' . buildLink('../projects/addprojectsite.php?id=' . $id, $strings['create'] . '...', LINK_INSIDE) . '&gt;');
    } else {
        $block1->contentRow($strings['project_site'], '&lt;' . buildLink('../projects/viewprojectsite.php?id=' . $id, $strings['details'], LINK_INSIDE) . '&gt;');
    }
}
if ($enableHelpSupport == 'true' && ($teamMember == 'true' || $_SESSION['profilSession'] == '5') && $supportType == 'team') {
    $block1->contentTitle($strings['support']);
    $block1->contentRow($strings['new_requests'], $comptListNewRequests . ' - ' . buildLink('../support/support.php?action=new&amp;project=' . $projectDetail->pro_id[0], $strings['manage_new_requests'], LINK_INSIDE));
示例#9
0
    if ($error != "") {
        $block1->headingError($strings["errors"]);
        $block1->contentError($error);
    }
    $block1->heading($detailCalendar->cal_shortname[0]);
    $block1->openPaletteIcon();
    //not sure about this...
    if ($detailCalendar->cal_owner[0] == $idSession) {
        $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["details"]);
    echo "\n        <tr class='odd'>\n            <td valign='top' class='leftvalue'>" . $strings["subject"] . " :</td>\n            <td>" . $detailCalendar->cal_subject[0] . "</td>\n        </tr>\n        <tr class='odd'>\n            <td valign='top' class='leftvalue'>" . $strings["description"] . " :</td>\n            <td>" . nl2br($detailCalendar->cal_description[0]) . "&nbsp;</td>\n        </tr>\n        <tr class='odd'>\n            <td valign='top' class='leftvalue'>" . $strings["shortname"] . $block1->printHelp("calendar_shortname") . " :</td>\n            <td>" . $detailCalendar->cal_shortname[0] . "&nbsp;</td>\n        </tr>\n        <tr class='odd'>\n            <td valign='top' class='leftvalue'>" . $strings["location"] . " :</td>\n            <td>" . $detailCalendar->cal_location[0] . "&nbsp;</td>\n        </tr>\n        <tr class='odd'>\n            <td valign='top' class='leftvalue'>" . $strings["date_start"] . " :</td>\n            <td>" . $detailCalendar->cal_date_start[0] . "</td>\n        </tr>\n        <tr class='odd'>\n            <td valign='top' class='leftvalue'>" . $strings["date_end"] . " :</td>\n            <td>" . $detailCalendar->cal_date_end[0] . "</td>\n        </tr>\n        <tr class='odd'>\n            <td valign='top' class='leftvalue'>" . $strings["time_start"] . " :</td>\n            <td>" . $detailCalendar->cal_time_start[0] . "</td>\n        </tr>\n        <tr class='odd'>\n            <td valign='top' class='leftvalue'>" . $strings["time_end"] . " :</td>\n            <td>" . $detailCalendar->cal_time_end[0] . "</td>\n        </tr>\n        <tr class='odd'>\n            <td valign='top' class='leftvalue'>" . $strings["calendar_reminder"] . " :</td>\n            <td>{$reminder}</td>\n        </tr>\n        <tr class='odd'>\n            <td valign='top' class='leftvalue'>" . $strings["calendar_broadcast"] . " :</td>\n            <td>{$broadcast}</td>\n        </tr>\n        <tr class='odd'\n        ><td valign='top' class='leftvalue'>" . $strings["calendar_recurring"] . " :</td>\n            <td>{$recurring}</td>\n        </tr>";
    $block1->closeContent();
    $block1->closeForm();
    $block1->openPaletteScript();
    if ($detailCalendar->cal_owner[0] == $idSession) {
        $block1->paletteScript(0, "remove", "../calendar/deletecalendar.php?id={$dateEnreg}", "true,true,true", $strings["delete"]);
        $block1->paletteScript(1, "edit", "../calendar/viewcalendar.php?id={$dateEnreg}&type=calendEdit&dateCalend={$dateCalend}", "true,true,true", $strings["edit"]);
    }
    $block1->paletteScript(2, "export", "../calendar/exportcalendar.php?id={$dateEnreg}", "true,true,true", $strings["export"]);
    $block1->closePaletteScript("", "");
}
$blockPage = new block();
if ($type == "dayList") {
    $blockPage->openBreadcrumbs();
    $blockPage->itemBreadcrumbs($blockPage->buildLink("../calendar/viewcalendar.php?type=monthPreview", $strings["calendar"], in));
    $blockPage->itemBreadcrumbs($blockPage->buildLink("../calendar/viewcalendar.php?type=monthPreview&dateCalend={$dateCalend}", "{$monthName} {$year}", in));
示例#10
0
 $block1 = new block();
 if ($error != "") {
     $block1->headingError($strings["errors"]);
     $block1->contentError($error);
 }
 $block1->heading($strings["calendar"] . " " . $strings["details"]);
 echo "<table cellspacing='0' width='90%' border='0' cellpadding='3' cols='4' class='listing'><tr><th class='active' colspan='2'>&nbsp;</th>";
 for ($i = 0; $i < $comptDetailCalendar; $i++) {
     if (!($i % 2)) {
         $class = "odd";
         $highlightOff = $block1->oddColor;
     } else {
         $class = "even";
         $highlightOff = $block1->evenColor;
     }
     echo "<tr class='{$class}' onmouseover=\"this.style.backgroundColor='" . $block1->highlightOn . "'\" onmouseout=\"this.style.backgroundColor='" . $highlightOff . "'\"><td valign='top' width='20%'><strong>" . $strings["shortname"] . $block1->printHelp("calendar_shortname") . "</strong> :</td><td width='80%'>" . $detailCalendar->cal_shortname[0] . "&nbsp;</td></tr>";
     if ($detailCalendar->cal_subject[0] != "") {
         echo "<tr class='{$class}' onmouseover=\"this.style.backgroundColor='" . $block1->highlightOn . "'\" onmouseout=\"this.style.backgroundColor='" . $highlightOff . "'\"><td valign='top'><strong>" . $strings["subject"] . "</strong> :</td><td>" . $detailCalendar->cal_subject[0] . "</td></tr>";
     } else {
         echo "<tr class='{$class}' onmouseover=\"this.style.backgroundColor='" . $block1->highlightOn . "'\" onmouseout=\"this.style.backgroundColor='" . $highlightOff . "'\"><td valign='top'><strong>" . $strings["subject"] . "</strong> :</td><td>" . $strings["none"] . "</td></tr>";
     }
     if ($detailCalendar->cal_description[0] != "") {
         echo "<tr class='{$class}' onmouseover=\"this.style.backgroundColor='" . $block1->highlightOn . "'\" onmouseout=\"this.style.backgroundColor='" . $highlightOff . "'\"><td valign='top'><strong>" . $strings["description"] . "</strong> :</td><td>" . nl2br($detailCalendar->cal_description[0]) . "&nbsp;</td></tr>";
     } else {
         echo "<tr class='{$class}' onmouseover=\"this.style.backgroundColor='" . $block1->highlightOn . "'\" onmouseout=\"this.style.backgroundColor='" . $highlightOff . "'\"><td valign='top'><strong>" . $strings["description"] . "</strong> :</td><td>" . $strings["none"] . "</td></tr></tr>";
     }
     if ($detailCalendar->cal_location[0] == "") {
         echo "<tr class='{$class}' onmouseover=\"this.style.backgroundColor='" . $block1->highlightOn . "'\" onmouseout=\"this.style.backgroundColor='" . $highlightOff . "'\"><td valign='top'><strong>" . $strings["location"] . "</strong> :</td><td>" . $strings["none"] . "</td></tr>";
     } else {
         echo "<tr class='{$class}' onmouseover=\"this.style.backgroundColor='" . $block1->highlightOn . "'\" onmouseout=\"this.style.backgroundColor='" . $highlightOff . "'\"><td valign='top'><strong>" . $strings["location"] . "</strong> :</td><td>" . $detailCalendar->cal_location[0] . "</td></tr>";
     }
示例#11
0
    $block1->contentRow($strings["phase_enabled"], $strings["false"]);
}
$block1->contentRow($strings["description"], nl2br($projectDetail->pro_description[0]));
$block1->contentRow($strings["url_dev"], $blockPage->buildLink($projectDetail->pro_url_dev[0], $projectDetail->pro_url_dev[0], out));
$block1->contentRow($strings["url_prod"], $blockPage->buildLink($projectDetail->pro_url_prod[0], $projectDetail->pro_url_prod[0], out));
$block1->contentRow($strings["owner"], $blockPage->buildLink("../users/viewuser.php?id=" . $projectDetail->pro_mem_id[0], $projectDetail->pro_mem_name[0], in) . " (" . $blockPage->buildLink($projectDetail->pro_mem_email_work[0], $projectDetail->pro_mem_login[0], mail) . ")");
$block1->contentRow($strings["created"], createDate($projectDetail->pro_created[0], $timezoneSession));
$block1->contentRow($strings["modified"], createDate($projectDetail->pro_modified[0], $timezoneSession));
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($strings["status"], $status[$idStatus]);
if ($fileManagement == "true") {
    $block1->contentRow($strings["max_upload"] . $blockPage->printHelp("max_file_size"), convertSize($projectDetail->pro_upload_max[0]));
    $block1->contentRow($strings["project_folder_size"] . $blockPage->printHelp("project_disk_space"), convertSize(folder_info_size("../files/" . $projectDetail->pro_id[0] . "/")));
}
$block1->contentRow($strings["estimated_time"], $estimated_time . " " . $strings["hours"]);
$block1->contentRow($strings["actual_time"], $actual_time . " " . $strings["hours"]);
$block1->contentRow($strings["scope_creep"] . $blockPage->printHelp("project_scope_creep"), $diff_time . " " . $strings["days"]);
if ($sitePublish == "true") {
    if ($projectDetail->pro_published[0] == "1") {
        $block1->contentRow($strings["project_site"], "&lt;" . $blockPage->buildLink("../projects/addprojectsite.php?id={$id}", $strings["create"] . "...", in) . "&gt;");
    } else {
        $block1->contentRow($strings["project_site"], "&lt;" . $blockPage->buildLink("../projects/viewprojectsite.php?id={$id}", $strings["details"], in) . "&gt;");
    }
}
if ($enableInvoicing == "true" && ($idSession == $projectDetail->pro_owner[0] || $profilSession == "0" || $profilSession == "5")) {
    if ($projectDetail->pro_invoicing[0] == "1") {
        $block1->contentRow($strings["invoicing"], $strings["true"]);
示例#12
0
    $block1->contentError($error);
}
$block1->heading($strings["user_profile"] . " : " . $userPrefs->mem_login[0]);
$block1->openPaletteIcon();
$block1->paletteIcon(0, "export", $strings["export"]);
$block1->closePaletteIcon();
$block1->openContent();
$block1->contentTitle($strings["edit_user_account"]);
$block1->contentRow($strings["full_name"], "<input size=\"24\" style=\"width: 250px;\" type=\"text\" name=\"fn\" value=\"" . $userPrefs->mem_name[0] . "\">");
$block1->contentRow($strings["title"], "<input size=\"24\" style=\"width: 250px;\" type=\"text\" name=\"tit\" value=\"" . $userPrefs->mem_title[0] . "\">");
$block1->contentRow($strings["email"], "<input size=\"24\" style=\"width: 250px;\" type=\"text\" name=\"em\" value=\"" . $userPrefs->mem_email_work[0] . "\">");
$block1->contentRow($strings["work_phone"], "<input size=\"14\" style=\"width: 150px;\" type=\"text\" name=\"wp\" value=\"" . $userPrefs->mem_phone_work[0] . "\">");
$block1->contentRow($strings["home_phone"], "<input size=\"14\" style=\"width: 150px;\" type=\"text\" name=\"hp\" value=\"" . $userPrefs->mem_phone_home[0] . "\">");
$block1->contentRow($strings["mobile_phone"], "<input size=\"14\" style=\"width: 150px;\" type=\"text\" name=\"mp\" value=\"" . $userPrefs->mem_mobile[0] . "\">");
$block1->contentRow($strings["fax"], "<input size=\"14\" style=\"width: 150px;\" type=\"text\" name=\"fax\" value=\"" . $userPrefs->mem_fax[0] . "\">");
$block1->contentRow($strings["logout_time"] . $blockPage->printHelp("user_autologout"), "<input size=\"14\" style=\"width: 150px;\" type=\"text\" name=\"logout_time\" value=\"" . $userPrefs->mem_logout_time[0] . "\"> sec.");
if ($gmtTimezone == "true") {
    $selectTimezone = "<select name=\"tz\">";
    for ($i = -12; $i <= +12; $i++) {
        if ($userPrefs->mem_timezone[0] == $i) {
            $selectTimezone .= "<option value=\"{$i}\" selected>{$i}</option>";
        } else {
            $selectTimezone .= "<option value=\"{$i}\">{$i}</option>";
        }
    }
    $selectTimezone .= "</select>";
    $block1->contentRow($strings["user_timezone"] . $blockPage->printHelp("user_timezone"), $selectTimezone);
}
if ($userPrefs->mem_profil[0] == "0") {
    $block1->contentRow($strings["permissions"], $strings["administrator_permissions"]);
} else {
示例#13
0
$blockPage->openBreadcrumbs();
$blockPage->itemBreadcrumbs($blockPage->buildLink("../administration/admin.php?", $strings["administration"], in));
$blockPage->itemBreadcrumbs($strings["company_details"]);
$blockPage->closeBreadcrumbs();
if ($msg != "") {
    include '../includes/messages.php';
    $blockPage->messagebox($msgLabel);
}
$block1 = new block();
echo "<a name='" . $block1->form . "Anchor'></a>\n\n\t<form accept-charset='UNKNOWN' method='POST' action='../administration/mycompany.php?action=update&" . session_name() . "=" . session_id() . "' name='adminDForm' enctype='multipart/form-data'>\n\t<input type='hidden' name='MAX_FILE_SIZE' value='100000000'>\n";
if ($error != "") {
    $block1->headingError($strings["errors"]);
    $block1->contentError($error);
}
$block1->heading($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->closeForm();
include '../themes/' . THEME . '/footer.php';