当前位置: 首页>>代码示例>>PHP>>正文


PHP block::openPaletteIcon方法代码示例

本文整理汇总了PHP中block::openPaletteIcon方法的典型用法代码示例。如果您正苦于以下问题:PHP block::openPaletteIcon方法的具体用法?PHP block::openPaletteIcon怎么用?PHP block::openPaletteIcon使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在block的用法示例。


在下文中一共展示了block::openPaletteIcon方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: block

echo '
	  </select></td>
	</tr>';
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'>&nbsp;</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
开发者ID:jgatica,项目名称:Netoffice,代码行数:31,代码来源:addtasktime.php

示例2: headerFunction

if ($comptProjectDetail == "0") {
    headerFunction("../projects/listprojects.php?msg=blank&" . 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=" . $projectDetail->pro_id[0], $projectDetail->pro_name[0], in));
$blockPage->itemBreadcrumbs($strings["team_members"]);
$blockPage->closeBreadcrumbs();
$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);
开发者ID:ColBT,项目名称:php_tut,代码行数:31,代码来源:listusers.php

示例3: block

    $block2->paletteScript(1, 'remove', '../projects/deleteproject.php?', 'false,true,false', $strings['delete']);
}
$block2->paletteScript(2, 'info', '../projects/viewproject.php?', 'false,true,false', $strings['view']);
if ($_SESSION['profilSession'] == '0' || $_SESSION['profilSession'] == '1' || $_SESSION['profilSession'] == '5') {
    $block2->paletteScript(3, 'edit', '../projects/editproject.php?', 'false,true,false', $strings['edit']);
}
// if mantis bug tracker enabled
if ($enableMantis == 'true') {
    $block2->paletteScript(4, 'bug', $pathMantis . "login.php?url=http://{$HTTP_HOST}{$REQUEST_URI}&f_username=" . $_SESSION['loginSession'] . "&f_password=" . $_SESSION['passwordSession'], 'false,true,false', $strings['bug']);
}
$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') {
开发者ID:jgatica,项目名称:Netoffice,代码行数:31,代码来源:viewclient.php

示例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;
}
开发者ID:hostellerie,项目名称:nexpro,代码行数:34,代码来源:library.php

示例5: block

  $block5->paletteScript(3,"add_projectsite","../general/home.php?addToSite=true&project=".$projectDetail->pro_id[0]."&action=publish","false,true,true",$strings["add_project_site"]);
  $block5->paletteScript(4,"remove_projectsite","../general/home.php?removeToSite=true&project=".$projectDetail->pro_id[0]."&action=publish","false,true,true",$strings["remove_project_site"]);
  }*/
$block5->paletteScript(5, "info", "../notes/viewnote.php", "false,true,false", $strings["view"]);
$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();
开发者ID:jgatica,项目名称:Netoffice,代码行数:31,代码来源:home.php

示例6: count

$block6->openForm('../projects/viewproject.php?id=' . $projectDetail->pro_id[0] . '#' . $block6->form . 'Anchor');
$block6->borne = $blockPage->returnBorne('4');
$block6->rowsLimit = '5';
$comptTopic = count($topicNote);
if ($comptTopic != '0') {
    $block6->sorting('notes', $sortingUser->sor_notes[0], 'note.date DESC', $sortingFields = array(0 => 'note.subject', 1 => 'note.topic', 2 => 'note.date', 3 => 'mem.login', 4 => 'note.published'));
} else {
    $block6->sorting('notes', $sortingUser->sor_notes[0], 'note.date DESC', $sortingFields = array(0 => 'note.subject', 1 => 'note.date', 2 => 'mem.login', 3 => 'note.published'));
}
$tmpquery = "WHERE note.project = '{$id}' ORDER BY {$block6->sortingValue}";
$block6->recordsTotal = compt($initrequest['notes'] . ' ' . $tmpquery);
$listNotes = new request();
$listNotes->openNotes($tmpquery, $block6->borne, $block6->rowsLimit);
$comptListNotes = count($listNotes->note_id);
$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') {
开发者ID:TICanalyste,项目名称:netOffice--remix-,代码行数:31,代码来源:viewproject.php

示例7: block

             $block4->paletteScript(1, "add", $_CONF['site_url'] . "/nexfile/index.php?parm=2&op=newprojectfile&cid=" . $cid, "true,true,false", $strings["add"]);
             //$block4->paletteScript(2,"remove",$_CONF['site_url'] .
             //  "/nexfile/details.php?op=deletefile","false,true,false",$strings["delete"]);
             $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);
开发者ID:hostellerie,项目名称:nexpro,代码行数:31,代码来源:viewproject.php

示例8: block

$blockPage = new block();
$blockPage->openBreadcrumbs();
$blockPage->itemBreadcrumbs($blockPage->buildLink("../projects/listprojects.php?", $strings["projects"], in));
$blockPage->itemBreadcrumbs($blockPage->buildLink("../projects/viewproject.php?id=" . $projectDetail->pro_id[0], $projectDetail->pro_name[0], in));
$blockPage->itemBreadcrumbs($strings["phases"]);
$blockPage->closeBreadcrumbs();
if ($msg != "") {
    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");
开发者ID:ColBT,项目名称:php_tut,代码行数:31,代码来源:listphases.php

示例9: list

 list($user) = DB_fetchArray($result1);
 $p->set_var('owner_options', COM_optionList($_TABLES['users'], 'uid,username', $user, $sortcol = 1, "uid>1"));
 $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 />';
开发者ID:hostellerie,项目名称:nexpro,代码行数:31,代码来源:index.php


注:本文中的block::openPaletteIcon方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。