本文整理汇总了PHP中block::checkboxRow方法的典型用法代码示例。如果您正苦于以下问题:PHP block::checkboxRow方法的具体用法?PHP block::checkboxRow怎么用?PHP block::checkboxRow使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类block
的用法示例。
在下文中一共展示了block::checkboxRow方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: request
$listSubtasks = new request();
$listSubtasks->openSubtasks($tmpquery);
$comptListSubtasks = count($listSubtasks->subtas_id);
if ($comptListSubtasks != "0") {
$block4->openResults();
$block4->labels($labels = array(0 => $strings["subtask"], 1 => $strings["priority"], 2 => $strings["status"], 3 => $strings["completion"], 4 => $strings["due_date"], 5 => $strings["assigned_to"], 6 => $strings["published"]), "true");
for ($i = 0; $i < $comptListSubtasks; $i++) {
if ($listSubtasks->subtas_due_date[$i] == "") {
$listSubtasks->subtas_due_date[$i] = $strings["none"];
}
$idStatus = $listSubtasks->subtas_status[$i];
$idPriority = $listSubtasks->subtas_priority[$i];
$idPublish = $listSubtasks->subtas_published[$i];
$complValue = $listSubtasks->subtas_completion[$i] > 0 ? $listSubtasks->subtas_completion[$i] . "0 %" : $listSubtasks->subtas_completion[$i] . " %";
$block4->openRow();
$block4->checkboxRow($listSubtasks->subtas_id[$i]);
$block4->cellRow($blockPage->buildLink("../subtasks/viewsubtask.php?id=" . $listSubtasks->subtas_id[$i] . "&task={$id}", $listSubtasks->subtas_name[$i], in));
$block4->cellRow("<img src=\"../themes/" . THEME . "/gfx_priority/" . $idPriority . ".gif\" alt=\"\"> " . $priority[$idPriority]);
$block4->cellRow($status[$idStatus]);
$block4->cellRow($complValue);
if ($listSubtasks->subtas_due_date[$i] <= $date && $listSubtasks->subtas_completion[$i] != "10") {
$block4->cellRow("<b>" . $listSubtasks->subtas_due_date[$i] . "</b>");
} else {
$block4->cellRow($listSubtasks->subtas_due_date[$i]);
}
if ($listSubtasks->subtas_start_date[$i] != "--" && $listSubtasks->subtas_due_date[$i] != "--") {
$gantt = "true";
}
if ($listSubtasks->subtas_assigned_to[$i] == "0") {
$block4->cellRow($strings["unassigned"]);
} else {
示例2: count
$listAttachments->openMeetingsAttachment($tmpquery);
$comptListFiles = count($listAttachments->mat_id);
if ($comptListFiles != "0") {
$block2->openResults();
$block2->labels($labels = array(0 => $strings["type"], 1 => $strings["name"], 2 => $strings["date"], 3 => $strings["approval_tracking"], 4 => $strings["published"]), "true");
require_once "../includes/files_types.php";
for ($i = 0; $i < $comptListFiles; $i++) {
$existFile = "false";
$idStatus = $listAttachments->mat_status[$i];
$idPublish = $listAttachments->mat_published[$i];
$type = file_info_type($listAttachments->mat_extension[$i]);
if (file_exists("../files/" . $listAttachments->mat_project[$i] . "/meetings/" . $listAttachments->mat_meeting[$i] . "/" . $listAttachments->mat_name[$i])) {
$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(" ");
}
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]);
}
示例3: array
$block10->paletteIcon(8, 'timelog', $strings['loghours']);
}
$block10->closePaletteIcon();
if ($comptListTasks != '0') {
$block10->openResults();
$block10->labels($labels = array('P', $strings['name'], $strings['status'], $strings['completion'], $strings['due_date'], $strings['phase'], $strings['assigned_to'], $strings['published']), 'true');
for ($i = 0; $i < $comptListTasks; $i++) {
if ($listTasks->tas_due_date[$i] == '') {
$listTasks->tas_due_date[$i] = $strings['none'];
}
$idStatus = $listTasks->tas_status[$i];
$idPriority = $listTasks->tas_priority[$i];
$idPublish = $listTasks->tas_published[$i];
$complValue = $listTasks->tas_completion[$i] > 0 ? $listTasks->tas_completion[$i] . '0 %' : $listTasks->tas_completion[$i] . ' %';
$block10->openRow($listTasks->tas_id[$i]);
$block10->checkboxRow($listTasks->tas_id[$i]);
//--- id ----
#$block10->cellRow(buildLink("../tasks/viewtask.php?id=" . $listTasks->tas_id[$i], $listTasks->tas_id[$i], LINK_INSIDE));
//--- prio ---
$block10->cellRow('<img src="../themes/' . THEME . '/gfx_priority/' . $idPriority . '.gif" alt="' . $priority[$idPriority] . '">', '1%', true);
//--- name ----
if ($idStatus == 1) {
$block10->cellRow(buildLink('../tasks/viewtask.php?id=' . $listTasks->tas_id[$i], $listTasks->tas_name[$i], LINK_STRIKE), "99%");
} else {
$block10->cellRow(buildLink('../tasks/viewtask.php?id=' . $listTasks->tas_id[$i], $listTasks->tas_name[$i], LINK_INSIDE), "99%");
}
//--- status ----
$block10->cellRow('<img src="../themes/' . THEME . '/gfx_status/' . $idStatus . '.gif" alt="' . $status[$idStatus] . '"> ' . $status[$idStatus], '', true);
//--- complete ----
$block10->cellRow($complValue);
//---- due date ------
示例4: array
$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";
示例5: array
$block1->labels($labels = array(0 => $strings["id"], 1 => $strings["subject"], 2 => $strings["priority"], 3 => $strings["status"], 4 => $strings["date_open"], 5 => $strings["date_close"]), "false");
for ($i = 0; $i < $comptListRequests; $i++) {
$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();
$block1->checkboxRow($listRequests->sr_id[$i]);
$block1->cellRow($listRequests->sr_id[$i]);
$block1->cellRow($blockPage->buildLink("../support/viewrequest.php?id=" . $listRequests->sr_id[$i], $listRequests->sr_subject[$i], in));
$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" || $profilSession == "0") {
$block1->openPaletteScript();
示例6: request
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'));
for ($i = 0; $i < $comptHolidayList; $i++) {
$block1->openRow($holidayList->hol_id[$i]);
$block1->checkboxRow($holidayList->hol_id[$i]);
$block1->cellRow($holidayList->hol_date[$i]);
$block1->cellRow($holidayList->hol_comments[$i]);
$block1->closeRow();
}
$block1->closeResults();
} else {
$block1->noresults();
}
$block1->closeFormResults();
$block1->openPaletteScript();
$block1->paletteScript(1, "remove", "../administration/deleteholidays.php?", "false,true,true", $strings["delete"]);
$block1->closePaletteScript($comptHolidayList, $holidayList->hol_id);
$block1->headingForm_close();
require_once "../themes/" . THEME . "/footer.php";
示例7: request
$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";
示例8: request
if ($project != "") {
$tmpquery = "WHERE topic.project = '{$project}' ORDER BY {$block1->sortingValue}";
} else {
$tmpquery = "WHERE topic.owner = '" . $_SESSION['idSession'] . "' ORDER BY {$block1->sortingValue}";
}
$listTopics = new request();
$listTopics->openTopics($tmpquery);
$comptListTopics = count($listTopics->top_id);
if ($comptListTopics != "0") {
$block1->openResults();
$block1->labels($labels = array(0 => $strings["topic"], 1 => $strings["owner"], 2 => $strings["posts"], 3 => $strings["last_post"], 4 => $strings["status"], 5 => $strings["published"]), "true");
for ($i = 0; $i < $comptListTopics; $i++) {
$idStatus = $listTopics->top_status[$i];
$idPublish = $listTopics->top_published[$i];
$block1->openRow($listTopics->top_id[$i]);
$block1->checkboxRow($listTopics->top_id[$i]);
$block1->cellRow(buildLink("../topics/viewtopic.php?id=" . $listTopics->top_id[$i], $listTopics->top_subject[$i], LINK_INSIDE));
$block1->cellRow(buildLink($listTopics->top_mem_email_work[$i], $listTopics->top_mem_login[$i], LINK_MAIL));
$block1->cellRow($listTopics->top_posts[$i]);
if ($listTopics->top_last_post[$i] > $_SESSION['lastvisiteSession']) {
$block1->cellRow("<b>" . createDate($listTopics->top_last_post[$i], $_SESSION['timezoneSession']) . "</b>");
} else {
$block1->cellRow(createDate($listTopics->top_last_post[$i], $_SESSION['timezoneSession']));
}
$block1->cellRow($statusTopic[$idStatus]);
if ($sitePublish == "true") {
$block1->cellRow($statusPublish[$idPublish]);
}
$block1->closeRow();
}
$block1->closeResults();
示例9: request
$tmpquery = "WHERE boo.shared = '1' OR boo.owner = '{$idSession}' ORDER BY {$block1->sortingValue}";
}
}
$listBookmarks = new request();
$listBookmarks->openBookmarks($tmpquery);
$comptListBookmarks = count($listBookmarks->boo_id);
if ($comptListBookmarks != "0") {
$block1->openResults();
if ($view == "my") {
$block1->labels($labels = array(0 => $strings["name"], 1 => $strings["bookmark_category"], 2 => $strings["shared"]), "false");
} else {
$block1->labels($labels = array(0 => $strings["name"], 1 => $strings["bookmark_category"], 2 => $strings["owner"]), "false");
}
for ($i = 0; $i < $comptListBookmarks; $i++) {
$block1->openRow();
$block1->checkboxRow($listBookmarks->boo_id[$i]);
$block1->cellRow($blockPage->buildLink("../bookmarks/viewbookmark.php?view={$view}&id=" . $listBookmarks->boo_id[$i], $listBookmarks->boo_name[$i], in) . " " . $blockPage->buildLink($listBookmarks->boo_url[$i], "(" . $strings["url"] . ")", out));
$block1->cellRow($listBookmarks->boo_boocat_name[$i]);
if ($view == "my") {
if ($listBookmarks->boo_shared[$i] == "1") {
$printShared = $strings["yes"];
} else {
$printShared = $strings["no"];
}
$block1->cellRow($printShared);
} else {
$block1->cellRow($blockPage->buildLink($listBookmarks->boo_mem_email_work[$i], $listBookmarks->boo_mem_login[$i], mail));
}
$block1->closeRow();
}
$block1->closeResults();
示例10:
$rate_type_value = "0";
} else {
if ($listInvoicesItems->invitem_rate_type[$i] == "b") {
$rate_type_value = "1";
} else {
if ($listInvoicesItems->invitem_rate_type[$i] == "c") {
$rate_type_value = "2";
} else {
if (is_numeric($listInvoicesItems->invitem_rate_type[$i])) {
$rate_type_value = "3";
}
}
}
}
$block2->openRow();
$block2->checkboxRow($listInvoicesItems->invitem_id[$i]);
$block2->cellRow($listInvoicesItems->invitem_position[$i]);
$block2->cellRow($blockPage->buildLink("../invoicing/editinvoiceitem.php?invoiceitem=" . $listInvoicesItems->invitem_id[$i], $listInvoicesItems->invitem_title[$i], in));
$block2->cellRow($rateType[$rate_type_value]);
$block2->cellRow($listInvoicesItems->invitem_rate_value[$i]);
$block2->cellRow($listInvoicesItems->invitem_amount_ex_tax[$i]);
if ($listInvoicesItems->invitem_completed[$i] == "1") {
$block2->cellRow($strings["yes"]);
} else {
$block2->cellRow($strings["no"]);
}
$block2->closeRow();
}
$block2->closeResults();
} else {
$block2->noresults();
示例11: array
$block3->openResults();
if (isset($flag_phases) && $flag_phases == true) {
$block3->labels($labels = array('P', $strings['name'], $strings['status'], $strings['completion'], $strings['due_date'], $strings['phase'], $strings['assigned_to'], $strings['published']), 'true');
} else {
$block3->labels($labels = array('P', $strings['name'], $strings['status'], $strings['completion'], $strings['due_date'], $strings['assigned_to'], $strings['published']), 'true');
}
for ($i = 0; $i < $comptListTasks; $i++) {
if ($listClosedTasks->tas_due_date[$i] == '') {
$listClosedTasks->tas_due_date[$i] = $strings['none'];
}
$idStatus = $listClosedTasks->tas_status[$i];
$idPriority = $listClosedTasks->tas_priority[$i];
$idPublish = $listClosedTasks->tas_published[$i];
$complValue = $listClosedTasks->tas_completion[$i] > 0 ? $listClosedTasks->tas_completion[$i] . '0 %' : $listClosedTasks->tas_completion[$i] . ' %';
$block3->openRow($listClosedTasks->tas_id[$i]);
$block3->checkboxRow($listClosedTasks->tas_id[$i]);
//--- id ----
#$block3->cellRow(buildLink("../tasks/viewtask.php?id=" . $listClosedTasks->tas_id[$i], $listClosedTasks->tas_id[$i], LINK_INSIDE));
//--- prio ---
$block3->cellRow('<img src="../themes/' . THEME . '/gfx_priority/' . $idPriority . '.gif" alt="' . $priority[$idPriority] . '">', '1%', true);
//--- name ----
if ($idStatus == 1 or $idStatus == 6) {
$block3->cellRow(buildLink('../tasks/viewtask.php?id=' . $listClosedTasks->tas_id[$i], $listClosedTasks->tas_name[$i], LINK_STRIKE), "99%");
} else {
$block3->cellRow(buildLink('../tasks/viewtask.php?id=' . $listClosedTasks->tas_id[$i], $listClosedTasks->tas_name[$i], LINK_INSIDE), "99%");
}
//--- status ----
$block3->cellRow('<img src="../themes/' . THEME . '/gfx_status/' . $idStatus . '.gif" alt="' . $status[$idStatus] . '"> ' . $status[$idStatus], '', true);
//--- complete ----
$block3->cellRow($complValue);
//---- due date ------
示例12: array
$sql = "SELECT {$_TABLES['gf_topic']}.id,{$_TABLES['gf_topic']}.pid,";
$sql .= "{$_TABLES['gf_topic']}.subject,{$_TABLES['users']}.fullname,";
$sql .= "{$_TABLES['gf_topic']}.lastupdated,{$_TABLES['gf_topic']}.replies ";
$sql .= "FROM {$_TABLES['gf_topic']}, {$_TABLES['users']} ";
$sql .= "WHERE forum={$A['fid']} AND pid=0 ";
$sql .= "AND {$_TABLES['gf_topic']}.uid={$_TABLES['users']}.uid ";
$sql .= "ORDER BY {$block5->sortingValue} LIMIT {$block5->borne},{$block5->rowsLimit}";
$result = DB_query($sql);
$comptListTasks = DB_numrows($result);
if ($comptListTasks != "0") {
$block5->openResults();
$block5->labels($labels = array(0 => $strings["Subject"], 1 => $strings["Author"], 2 => $strings["lastUpdated"], 3 => $strings["Replies"]), "true");
for ($i = 0; $i < $comptListTasks; $i++) {
list($listForum->topic[$i], $parent, $listForum->subject[$i], $listForum->author[$i], $listForum->date[$i], $listForum->replies[$i]) = DB_fetchArray($result);
$block5->openRow();
$block5->checkboxRow($listForum->topic[$i]);
$block5->cellRow($blockPage->buildLink($_CONF['site_url'] . "/forum/viewtopic.php?forum=" . $A[fid] . "&showtopic=" . $listForum->topic[$i], $listForum->subject[$i], "in", 'Click to View Discussion'));
$block5->cellRow($listForum->author[$i]);
$block5->cellRow(strftime("%Y/%m/%d %H:%M", $listForum->date[$i]));
$block5->cellRow($listForum->replies[$i]);
$block5->closeRow();
}
$block5->closeResults();
$block5->bornesFooter("5", $blockPage->bornesNumber, "", "pid={$pid}");
} else {
$block5->noresults();
}
echo '<input type="hidden" name="pid" value="' . $pid . '">';
$block5->closeToggle();
$block5->closeFormResults();
if ($membertoken != 0) {
示例13:
/**
* determine phase start and end dates by finding the
* earliest start times and latest end times for
* member tasks
*/
/**
* start task
*/
if ($phaseStart == "--" or $phaseStart == "") {
$phaseStart = $strings["none"];
}
if ($phaseEnd == "--" or $phaseEnd == "") {
$phaseEnd = $strings["none"];
}
$blockProject->openRow();
$blockProject->checkboxRow($phaseID, $checkbox = "false");
$blockProject->cellRow(buildLink("../phases/viewphase.php?id=" . $listPhases->pha_id[$i], $phaseName, LINK_INSIDE));
$blockProject->cellRow($phaseStatus[$listPhases->pha_status[$i]]);
$blockProject->cellRow($comptlistTasksRow);
$blockProject->cellRow($comptUncompleteTasks);
$blockProject->cellRow($phaseStart);
$blockProject->cellRow($phaseEnd);
// $blockProject->cellRow($phaseCompletion);
$blockProject->closeRow();
}
} else {
// no tasks for project
}
$blockProject->closeResults();
$blockProject->heading_close();
print "<p><br></p>";
示例14: block
require_once '../themes/' . THEME . '/header.php';
//--- content ----
$block1 = new block();
$block1->form = 'adminD';
$block1->openForm('../administration/listlogs.php?action=delete&id=' . $id . '#' . $block1->form . 'Anchor');
$block1->headingForm($strings['logs']);
$block1->openResults($checkbox = false);
$block1->labels($labels = array(0 => $strings['user_name'], 1 => $strings['ip'], 2 => $strings['session'], 3 => $strings['compteur'], 4 => $strings['last_visit'], 5 => $strings['connected']), false, $sorting = false, $sortingOff = array(0 => '4', 1 => 'DESC'));
$tmpquery = 'ORDER BY last_visite DESC';
$listLogs = new request();
$listLogs->openLogs($tmpquery);
$comptListLogs = count($listLogs->log_id);
$dateunix = date("U");
for ($i = 0; $i < $comptListLogs; $i++) {
$block1->openRow();
$block1->checkboxRow($listLogs->log_id[$i], $checkbox = false);
$block1->cellRow($listLogs->log_login[$i]);
$block1->cellRow($listLogs->log_ip[$i]);
$block1->cellRow($listLogs->log_session[$i]);
$block1->cellRow($listLogs->log_compt[$i]);
$block1->cellRow(createDate($listLogs->log_last_visite[$i], $_SESSION['timezoneSession']));
if ($listLogs->log_mem_profil[$i] == 3) {
$z = '(Client on project site)';
} else {
$z = '';
}
if ($listLogs->log_connected[$i] > $dateunix - 5 * 60) {
$block1->cellRow($strings['yes'] . ' ' . $z);
} else {
$block1->cellRow($strings['no']);
}
示例15: AND
$dayRecurr = _dayOfWeek(mktime(12, 12, 12, $month, $day, $year));
if ($viewCalend == 0) {
$tmpquery = "WHERE cal.owner = '" . $_SESSION['idSession'] . "' AND ((cal.date_start <= '{$dateCalend}' AND cal.date_end >= '{$dateCalend}' AND cal.recurring = '0') OR ((cal.date_start <= '{$dateCalend}' AND cal.date_end <= '{$dateCalend}') AND cal.recurring = '1' AND cal.recur_day = '{$dayRecurr}')) ORDER BY cal.shortname";
} else {
$tmpquery = "WHERE cal.project = '{$viewCalend}' AND ((cal.date_start <= '{$dateCalend}' AND cal.date_end >= '{$dateCalend}' AND cal.recurring = '0') OR ((cal.date_start <= '{$dateCalend}' AND cal.date_end <= '{$dateCalend}') AND cal.recurring = '1' AND cal.recur_day = '{$dayRecurr}')) ORDER BY cal.shortname";
}
// $tmpquery = "WHERE cal.owner = '" . $_SESSION['idSession'] . "' AND cal.date_start <= '$dateCalend' AND cal.date_end >= '$dateCalend' ORDER BY $block1->sortingValue";
$listCalendar = new request();
$listCalendar->openCalendar($tmpquery);
$comptListCalendar = count($listCalendar->cal_id);
if ($comptListCalendar != "0") {
$block1->openResults();
$block1->labels($labels = array(0 => $strings["shortname"], 1 => $strings["subject"], 2 => $strings["date_start"], 3 => $strings["date_end"]), "false");
for ($i = 0; $i < $comptListCalendar; $i++) {
$block1->openRow($listCalendar->cal_id[$i]);
$block1->checkboxRow($listCalendar->cal_id[$i]);
$block1->cellRow(buildLink("../calendar/viewcalendar.php?{$dateEnreg}=" . $listCalendar->cal_id[$i] . "&viewCalend={$viewCalend}&type=calendDetail&dateCalend={$dateCalend}", $listCalendar->cal_shortname[$i], LINK_INSIDE));
$block1->cellRow($listCalendar->cal_subject[$i]);
$block1->cellRow($listCalendar->cal_date_start[$i]);
$block1->cellRow($listCalendar->cal_date_end[$i]);
$block1->closeRow();
}
$block1->closeResults();
} else {
$block1->noresults();
}
$block1->closeFormResults();
$block1->openPaletteScript();
$block1->paletteScript(0, "add", "../calendar/viewcalendar.php?viewCalend={$viewCalend}&dateCalend={$dateCalend}&type=calendEdit", "true,false,false", $strings["add"]);
$block1->paletteScript(1, "remove", "../calendar/deletecalendar.php?", "false,true,true", $strings["delete"]);
$block1->paletteScript(2, "info", "../calendar/viewcalendar.php?viewCalend={$viewCalend}&dateCalend={$dateCalend}&type=calendDetail", "false,true,false", $strings["view"]);