本文整理汇总了PHP中block::closePaletteIcon方法的典型用法代码示例。如果您正苦于以下问题:PHP block::closePaletteIcon方法的具体用法?PHP block::closePaletteIcon怎么用?PHP block::closePaletteIcon使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类block
的用法示例。
在下文中一共展示了block::closePaletteIcon方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: block
if ($ld == '') {
$ld = $date;
}
$block1->contentRow($strings['date'], "<input type=\"text\" style=\"width: 150px;\" name=\"ld\" id=\"sel1\"\r\n\tsize=\"20\" value=\"{$ld}\"><button type=\"reset\" id=\"trigger_a\">...</button>\r\n\t<script type=\"text/javascript\">Calendar.setup({ inputField:\"sel1\", button:\"trigger_a\" });</script>");
echo "\r\n\t<tr class='odd'>\r\n\t <td valign='top' class='leftvalue'>" . $strings["worked_hours"] . " :</td>\r\n\t <td><input size='20' value='{$hr}' style='width: 150px;' name='hr' maxlength='6' type='text'></td>\r\n\t</tr>\r\n\t<tr class='odd'>\r\n\t <td valign='top' class='leftvalue'>" . $strings["comments"] . " :</td>\r\n\t <td><textarea rows='10' style='width: 400px; height: 150px;' name='comm' cols='47'>{$comm}</textarea></td>\r\n\t</tr>\r\n\t<tr class='odd'>\r\n\t <td valign='top' class='leftvalue'> </td>\r\n\t <td><input type='SUBMIT' value='" . $strings["save"] . "'></td>\r\n\t</tr>";
$block1->closeContent();
$block1->block_close();
$block1->closeForm();
$block2 = new block();
$block2->form = "ahT";
$block2->openForm("../tasks/addtasktime.php?id={$id}#" . $block2->form . "Anchor");
$block2->heading($strings["task_time"] . ' : ' . $strings["details"]);
$block2->openPaletteIcon();
$block2->paletteIcon(0, "remove", $strings["delete"]);
$block2->paletteIcon(1, "edit", $strings["edit"]);
$block2->closePaletteIcon();
$block2->borne = $blockPage->returnBorne("1");
$block2->rowsLimit = "20";
$block2->sorting('tasks_time', $sortingUser->sor_tasks_time[0], 'tim.date ASC', $sortingFields = array(0 => 'mem.name', 1 => 'tim.date', 2 => 'tim.hours', 3 => 'tim.created', 4 => 'tim.modified', 5 => 'tim.comments'));
$tmpquery = "WHERE tim.task = '{$id}' ORDER BY {$block2->sortingValue}";
$block2->recordsTotal = compt($initrequest["tasks_time"] . " " . $tmpquery);
$listTaskTimes = new request();
$listTaskTimes->openTaskTime($tmpquery, $block2->borne, $block2->rowsLimit);
$comptListTaskTimes = count($listTaskTimes->tim_id);
if ($comptListTaskTimes != "0") {
$block2->openResults();
$block2->labels($labels = array(0 => $strings["owner"], 1 => $strings["date"], 2 => ucfirst($strings["hours"]), 3 => $strings["created"], 4 => $strings["modified"], 5 => $strings['comment']), "true");
// display logged hours for project
for ($i = 0; $i < $comptListTaskTimes; $i++) {
// only PM, PMA, and OWNERS can modify/delete
if ($_SESSION['profilSession'] == 1 or $_SESSION['profilSession'] == 5 or $_SESSION['idSession'] == $listTaskTimes->tim_owner[$i]) {
示例2: block
$block1 = new block();
$block1->form = "saM";
$block1->openForm("../teams/listusers.php?" . session_name() . "=" . session_id() . "&id={$id}#" . $block1->form . "Anchor");
$block1->heading($strings["team_members"]);
$block1->openPaletteIcon();
if ($idSession == $projectDetail->pro_owner[0] || $profilSession == "5") {
$block1->paletteIcon(0, "add", $strings["add"]);
$block1->paletteIcon(1, "remove", $strings["delete"]);
if ($sitePublish == "true") {
$block1->paletteIcon(2, "add_projectsite", $strings["add_project_site"]);
$block1->paletteIcon(3, "remove_projectsite", $strings["remove_project_site"]);
}
}
$block1->paletteIcon(4, "info", $strings["view"]);
$block1->paletteIcon(5, "email", $strings["email"]);
$block1->closePaletteIcon();
$block1->sorting("team", $sortingUser->sor_team[0], "mem.name ASC", $sortingFields = array(0 => "mem.name", 1 => "mem.title", 2 => "mem.login", 3 => "mem.phone_work", 4 => "log.connected", 5 => "tea.published"));
$tmpquery = "WHERE tea.project = '{$id}' AND mem.profil != '3' ORDER BY {$block1->sortingValue}";
$listTeam = new request();
$listTeam->openTeams($tmpquery);
$comptListTeam = count($listTeam->tea_id);
$block1->openResults();
$block1->labels($labels = array(0 => $strings["full_name"], 1 => $strings["title"], 2 => $strings["user_name"], 3 => $strings["work_phone"], 4 => $strings["connected"], 5 => $strings["published"]), "true");
for ($i = 0; $i < $comptListTeam; $i++) {
if ($listTeam->tea_mem_phone_work[$i] == "") {
$listTeam->tea_mem_phone_work[$i] = $strings["none"];
}
$idPublish = $listTeam->tea_published[$i];
$block1->openRow();
$block1->checkboxRow($listTeam->tea_mem_id[$i]);
$block1->cellRow($blockPage->buildLink("../users/viewuser.php?id=" . $listTeam->tea_mem_id[$i], $listTeam->tea_mem_name[$i], in));
示例3: block
}
$block2->closePaletteScript($comptListProjects, $listProjects->pro_id);
$block3 = new block();
$block3->form = 'clU';
$block3->openForm("../clients/viewclient.php?id={$id}#" . $block3->form . 'Anchor');
$block3->headingToggle($strings['client_users']);
$block3->openPaletteIcon();
if ($_SESSION['profilSession'] == '0' || $_SESSION['profilSession'] == '1' || $_SESSION['profilSession'] == '5') {
$block3->paletteIcon(0, 'add', $strings['add']);
$block3->paletteIcon(1, 'remove', $strings['delete']);
}
$block3->paletteIcon(2, 'info', $strings['view']);
if ($_SESSION['profilSession'] == '0' || $_SESSION['profilSession'] == '1' || $_SESSION['profilSession'] == '5') {
$block3->paletteIcon(3, 'edit', $strings['edit']);
}
$block3->closePaletteIcon();
$block3->sorting('users', $sortingUser->sor_users[0], 'mem.name ASC', $sortingFields = array(0 => 'mem.name', 1 => 'mem.login', 2 => 'mem.email_work', 3 => 'mem.profil', 4 => 'connected'));
$tmpquery = "WHERE mem.organization = '{$id}' ORDER BY {$block3->sortingValue}";
$listMembers = new request();
$listMembers->openMembers($tmpquery);
$comptListMembers = count($listMembers->mem_id);
if ($comptListMembers != '0') {
$block3->openResults();
$block3->labels($labels = array(0 => $strings['full_name'], 1 => $strings['user_name'], 2 => $strings['email'], 3 => $strings['work_phone'], 4 => $strings['connected']), 'false');
for ($i = 0; $i < $comptListMembers; $i++) {
$block3->openRow($listMembers->mem_id[$i]);
$block3->checkboxRow($listMembers->mem_id[$i]);
$block3->cellRow(buildLink('../users/viewclientuser.php?id=' . $listMembers->mem_id[$i] . "&organization={$id}", $listMembers->mem_name[$i], LINK_INSIDE));
$block3->cellRow($listMembers->mem_login[$i]);
$block3->cellRow(buildLink($listMembers->mem_email_work[$i], $listMembers->mem_email_work[$i], LINK_MAIL));
$block3->cellRow($listMembers->mem_phone_work[$i]);
示例4: prj_edit_task_icons
function prj_edit_task_icons($pid, $taskid, $mode = '')
{
global $_CONF, $strings;
ob_start();
$block = new block();
$block->form = "textblk";
$block->openForm($_CONF['site_url'] . "/nexproject/viewproject.php");
$block->openPaletteIcon();
$block->paletteIcon(0, "add", $strings["add"]);
$block->paletteIcon(1, "remove", $strings["delete"]);
if ($mode != 'view') {
$block->paletteIcon(2, "info", $strings["view"]);
}
if ($mode != 'edit') {
$block->paletteIcon(3, "edit", $strings["edit"]);
}
$block->paletteIcon(4, "copy", $strings["copy"]);
$block->closePaletteIcon();
$block->openPaletteScript();
$block->paletteScript(0, "add", $_CONF['site_url'] . "/nexproject/viewproject.php?mode=add&pid={$pid}&id={$taskid}", "true,false,false", $strings["add"]);
$block->paletteScript(1, "remove", $_CONF['site_url'] . "/nexproject/viewproject.php?mode=delete&id={$taskid}", "true,false,false", $strings["delete"]);
if ($mode != 'view') {
$block->paletteScript(2, "info", $_CONF['site_url'] . "/nexproject/viewproject.php?mode=view&id={$taskid}", "true,false,false", $strings["view"]);
}
if ($mode != 'edit') {
$block->paletteScript(3, "edit", $_CONF['site_url'] . "/nexproject/viewproject.php?mode=edit&id={$taskid}", "true,false,false", $strings["edit"]);
}
$block->paletteScript(4, "copy", $_CONF['site_url'] . "/nexproject/viewproject.php?mode=copy&id={$taskid}", "true,false,false", $strings["copy"]);
$block->closePaletteScript(0, $taskid);
echo '</form>';
$edit_icons = ob_get_contents();
ob_end_clean();
return $edit_icons;
}
示例5: block
$block5->paletteScript(6, "edit", "../notes/editnote.php?project={$project}", "false,true,false", $strings["edit"]);
$block5->closePaletteScript($comptListNotes, $listNotes->note_id);
$block4 = new block();
$block4->form = "wbSe";
$block4->openForm("../general/home.php#" . $block4->form . "Anchor");
$block4->sorting("home_reports", $sortingUser->sor_home_reports[0], "rep.name ASC", $sortingFields = array(0 => "rep.name", 1 => "rep.created"));
$tmpquery = "WHERE rep.owner = '" . $_SESSION['idSession'] . "' ORDER BY {$block4->sortingValue}";
$listReports = new request();
$listReports->openReports($tmpquery);
$comptListReports = count($listReports->rep_id);
$block4->headingToggle($strings["my_reports"] . " <span class=addition>({$comptListReports})</span>");
$block4->openPaletteIcon();
$block4->paletteIcon(0, "add", $strings["new"]);
$block4->paletteIcon(1, "remove", $strings["delete"]);
$block4->paletteIcon(2, "info", $strings["view"]);
$block4->closePaletteIcon();
if ($comptListReports != "0") {
$block4->openResults();
$block4->labels($labels = array(0 => $strings["name"], 1 => $strings["created"]), "false");
for ($i = 0; $i < $comptListReports; $i++) {
$block4->openRow($listReports->rep_id[$i]);
$block4->checkboxRow($listReports->rep_id[$i]);
$block4->cellRow(buildLink("../reports/resultsreport.php?id=" . $listReports->rep_id[$i], $listReports->rep_name[$i], LINK_INSIDE), "31");
$block4->cellRow(createDate($listReports->rep_created[$i], $_SESSION['timezoneSession']));
$block4->closeRow();
}
$block4->closeResults();
} else {
$block4->noresults();
}
$block4->closeToggle();
示例6: array
$block6->headingToggle($strings['notes'] . ' <span class=addition>(' . $comptListNotes . ')</span>');
$block6->openPaletteIcon();
if ($teamMember == 'true' || $_SESSION['profilSession'] == '5') {
$block6->paletteIcon(0, 'add', $strings['add']);
$block6->paletteIcon(1, 'remove', $strings['delete']);
// $block6->paletteIcon(2,'export',$strings['export']);
if ($sitePublish == 'true') {
$block6->paletteIcon(3, 'add_projectsite', $strings['add_project_site']);
$block6->paletteIcon(4, 'remove_projectsite', $strings['remove_project_site']);
}
}
$block6->paletteIcon(5, 'info', $strings['view']);
if ($teamMember == 'true' || $_SESSION['profilSession'] == '5') {
$block6->paletteIcon(6, 'edit', $strings['edit']);
}
$block6->closePaletteIcon();
if ($comptListNotes != '0') {
$block6->openResults();
if ($comptTopic != '0') {
$block6->labels($labels = array(0 => $strings['subject'], 1 => $strings['topic'], 2 => $strings['date'], 3 => $strings['owner'], 4 => $strings['published']), 'true');
} else {
$block6->labels($labels = array(0 => $strings['subject'], 1 => $strings['date'], 2 => $strings['owner'], 3 => $strings['published']), 'true');
}
for ($i = 0; $i < $comptListNotes; $i++) {
$idPublish = $listNotes->note_published[$i];
$block6->openRow($listNotes->note_id[$i]);
$block6->checkboxRow($listNotes->note_id[$i]);
$block6->cellRow(buildLink('../notes/viewnote.php?id=' . $listNotes->note_id[$i], $listNotes->note_subject[$i], LINK_INSIDE));
if ($comptTopic != '0') {
$block6->cellRow($topicNote[$listNotes->note_topic[$i]]);
}
示例7: block
$block4->paletteScript(2, "remove", $_CONF['site_url'] . "/nexproject/viewproject.php?pid={$pid}&mode=deletefile", "false,true,false", $strings["delete"]);
$block4->closePaletteScript($comptListTasks, $listDoc->fid);
}
}
}
if ($A[is_using_forum_flag] == 'Y') {
$blockPage->bornesNumber = "5";
$block5 = new block();
$block5->form = "forP";
$block5->openForm($_CONF['site_url'] . "/nexproject/viewproject.php?" . "#" . $block2->form . "Anchor");
$block5->headingToggle($strings["forum"]);
if ($membertoken != 0) {
$block5->openPaletteIcon();
$block5->paletteIcon(0, "view", $strings["view"]);
$block5->paletteIcon(1, "info", $strings["add"]);
$block5->closePaletteIcon();
}
$block5->borne = $blockPage->returnBorne("5");
$block5->rowsLimit = 5;
$block5->sorting('discussions', $sortingUser[forum], "{$_TABLES['gf_topic']}.lastupdated DESC", $sortingFields = array(0 => "{$_TABLES['gf_topic']}.subject", 1 => "{$_TABLES['gf_topic']}.name", 2 => "{$_TABLES['gf_topic']}.lastupdated", 3 => "{$_TABLES['gf_topic']}.replies"));
$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}";
$result = DB_query($sql);
$block5->recordsTotal = DB_numrows($result);
$sql = "SELECT {$_TABLES['gf_topic']}.id,{$_TABLES['gf_topic']}.pid,";
$sql .= "{$_TABLES['gf_topic']}.subject,{$_TABLES['users']}.fullname,";
示例8: block
include '../includes/messages.php';
$blockPage->messagebox($msgLabel);
}
if ($teamMember == "true" || $profilSession == "5") {
$block7 = new block();
$block7->form = "wbSe";
$block7->openForm("../phases/listphases.php?id={$id}&" . session_name() . "=" . session_id() . "#" . $block7->form . "Anchor");
$block7->headingToggle($strings["phases"]);
$block7->openPaletteIcon();
$block7->paletteIcon(0, "info", $strings["view"]);
if ($teamMember == "true" || $profilSession == "5") {
if ($idSession == $projectDetail->pro_owner[0] || $profilSession == "0" || $profilSession == "5") {
$block7->paletteIcon(1, "edit", $strings["edit"]);
}
}
$block7->closePaletteIcon();
$block7->sorting("phases", $sortingUser->sor_phases[0], "pha.order_num ASC", $sortingFields = array(0 => "pha.order_num", 1 => "pha.name", 2 => "none", 3 => "none", 4 => "pha.status", 5 => "pha.date_start", 6 => "pha.date_end"));
$tmpquery = "WHERE pha.project_id = '{$id}' ORDER BY {$block7->sortingValue}";
$listPhases = new request();
$listPhases->openPhases($tmpquery);
$comptListPhases = count($listPhases->pha_id);
if ($comptListPhases != "0") {
$block7->openResults();
$block7->labels($labels = array(0 => $strings["order"], 1 => $strings["name"], 2 => $strings["total_tasks"], 3 => $strings["uncomplete_tasks"], 4 => $strings["status"], 5 => $strings["date_start"], 6 => $strings["date_end"]), "false");
$tmpquery = "WHERE tas.project = '{$id}'";
$countPhaseTasks = new request();
$countPhaseTasks->openTasks($tmpquery);
$comptlistTasks = count($countPhaseTasks->tas_id);
for ($i = 0; $i < $comptListPhases; $i++) {
$comptlistTasksRow = "0";
$comptUncompleteTasks = "0";
示例9: getProjectToken
$p->parse('output', 'project');
echo $p->finish($p->get_var('output'));
/************************************************/
//added this area to handle new permissions piece
/************************************************/
$pid = $id;
$retperms = prj_getProjectPermissions($pid, $uid);
$ownertoken = getProjectToken($pid, $uid, "{$_TABLES['prj_users']}");
if ($retperms['full'] || SEC_ingroup('root') || $ownertoken != 0) {
$permissionsBlock = new block();
$permissionsBlock->form = "permissions";
$permissionsBlock->openForm($_CONF['site_url'] . "/nexproject/viewproject.php?pid={$pid}" . "#" . $permissionsBlock->form . "Anchor");
$permissionsBlock->headingToggle("Team Permissions");
$permissionsBlock->openPaletteIcon();
$permissionsBlock->paletteIcon(0, "edit", $strings["edit"]);
$permissionsBlock->closePaletteIcon();
$permissionsBlock->openPaletteScript();
$permissionsBlock->paletteScript(0, "edit", $_CONF['site_url'] . "/nexproject/prjperms.php?mode=add&pid=" . $pid, "true,false,false", $strings["edit"]);
$permissionsBlock->closePaletteScript(0, 0);
$p = new Template($_CONF['path_layout'] . 'nexproject/');
$p->set_file(array('perms' => 'projectPermissionRights.thtml', 'permrec' => 'projectPermRecord.thtml'));
$p->set_var('layout_url', $_CONF['layout_url']);
$p->set_var($pluginLangLabels);
prj_displayPerms($p, $pid, 0, true, $_COOKIE['permsOrderBy'] . $_COOKIE['prj_ascdesc']);
$p->parse('output', 'perms');
echo $p->finish($p->get_var('output'));
$permissionsBlock->closeToggle();
$permissionsBlock->closeFormResults();
echo '<p />';
}
} else {