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


PHP block::openPaletteScript方法代码示例

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


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

示例1: 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

示例2:

    $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));
    $block1->cellRow($listTeam->tea_mem_title[$i]);
    $block1->cellRow($blockPage->buildLink($listTeam->tea_mem_email_work[$i], $listTeam->tea_mem_login[$i], mail));
    $block1->cellRow($listTeam->tea_mem_phone_work[$i]);
    if ($listTeam->tea_log_connected[$i] > $dateunix - 5 * 60) {
        $block1->cellRow($strings["yes"] . " " . $z);
    } else {
        $block1->cellRow($strings["no"]);
    }
    if ($sitePublish == "true") {
        $block1->cellRow($statusPublish[$idPublish]);
    }
    $block1->closeRow();
}
$block1->closeResults();
$block1->closeFormResults();
$block1->openPaletteScript();
if ($idSession == $projectDetail->pro_owner[0] || $profilSession == "5") {
    $block1->paletteScript(0, "add", "../teams/adduser.php?project=" . $projectDetail->pro_id[0] . "", "true,true,true", $strings["add"]);
    $block1->paletteScript(1, "remove", "../teams/deleteusers.php?project=" . $projectDetail->pro_id[0] . "", "false,true,true", $strings["delete"]);
    if ($sitePublish == "true") {
        $block1->paletteScript(2, "add_projectsite", "../projects/viewproject.php?addToSiteTeam=true&project=" . $projectDetail->pro_id[0] . "&action=publish", "false,true,true", $strings["add_project_site"]);
        $block1->paletteScript(3, "remove_projectsite", "../projects/viewproject.php?removeToSiteTeam=true&project=" . $projectDetail->pro_id[0] . "&action=publish", "false,true,true", $strings["remove_project_site"]);
    }
}
$block1->paletteScript(4, "info", "../users/viewuser.php?", "false,true,false", $strings["view"]);
$block1->paletteScript(5, "email", "../users/emailusers.php?", "false,true,true", $strings["email"]);
$block1->closePaletteScript($comptListTeam, $listTeam->tea_mem_id);
include '../themes/' . THEME . '/footer.php';
开发者ID:ColBT,项目名称:php_tut,代码行数:31,代码来源:listusers.php

示例3: getProjectToken

     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 {
     if ($id > 0) {
开发者ID:hostellerie,项目名称:nexpro,代码行数:31,代码来源:index.php


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