示例#1
0
文件: 6.php 项目: rasel-sk/etomite
<head>
<title>ContextMenu</title>
<meta http-equiv="Content-Type" content="text/html; charset=<?php 
echo $etomite_charset;
?>
" />
<link rel="stylesheet" type="text/css" href="media/style/style.css" />

</HEAD>
<BODY onselectstart="return false;" onblur="parent.hideMenu();">
<div id='nameHolder'></div>
<?php 
constructLink(1, "context_view", $_lang["view_document"], 1);
constructLink(2, "save", $_lang["edit_document"], $_SESSION['permissions']['edit_document']);
constructLink(5, "cancel", $_lang["move_document"], $_SESSION['permissions']['edit_document']);
constructLink(3, "save", $_lang["create_document_here"], $_SESSION['permissions']['new_document']);
constructLink(6, "weblink", $_lang["create_weblink_here"], $_SESSION['permissions']['new_document']);
?>
<div class="seperator"></div>
<?php 
constructLink(4, "delete", $_lang["delete_document"], $_SESSION['permissions']['delete_document']);
constructLink(8, "b092", $_lang["undelete_document"], $_SESSION['permissions']['delete_document']);
?>
<div class="seperator"></div>
<?php 
constructLink(9, "date", $_lang["publish_document"], $_SESSION['permissions']['edit_document']);
constructLink(10, "date", $_lang["unpublish_document"], $_SESSION['permissions']['edit_document']);
?>
</BODY>
</HTML>
示例#2
0
文件: tree.php 项目: jgrau/MODx-CMS
<!-- Contextual Menu Popup Code -->
<div id="mx_contextmenu" onselectstart="return false;">
    <div id="nameHolder">&nbsp;</div>
    <?php 
constructLink(1, $_style["icons_document_overview"], $_lang["document_overview"], 1, $theme);
constructLink(2, $_style["icons_save"], $_lang["edit_document"], $modx->hasPermission('edit_document'), $theme);
constructLink(5, $_style["icons_move_document"], $_lang["move_document"], $modx->hasPermission('save_document'), $theme);
constructLink(7, $_style["icons_duplicate_document"], $_lang["duplicate_document"], $modx->hasPermission('new_document'), $theme);
// constructLink(11, "folder", $_lang["create_folder_here"], $modx->hasPermission('new_document'),$theme);
?>
    <div class="seperator"></div>
    <?php 
constructLink(3, $_style["icons_new_document"], $_lang["create_document_here"], $modx->hasPermission('new_document'), $theme);
constructLink(6, $_style["icons_weblink"], $_lang["create_weblink_here"], $modx->hasPermission('new_document'), $theme);
?>
    <div class="seperator"></div>
    <?php 
constructLink(4, $_style["icons_delete"], $_lang["delete_document"], $modx->hasPermission('delete_document'), $theme);
constructLink(8, $_style["icons_undelete_document"], $_lang["undelete_document"], $modx->hasPermission('delete_document'), $theme);
constructLink(9, $_style["icons_publish_document"], $_lang["publish_document"], $modx->hasPermission('publish_document'), $theme);
constructLink(10, $_style["icons_unpublish_document"], $_lang["unpublish_document"], $modx->hasPermission('publish_document'), $theme);
?>
    <div class="seperator"></div>
    <?php 
constructLink(12, $_style["icons_preview_document"], $_lang["preview_document"], 1, $theme);
?>
</div>

</body>
</html>
示例#3
0
// move
constructLink(7, $_style["icons_resource_duplicate"], $_lang["resource_duplicate"], $modx->hasPermission('new_document'));
// duplicate
?>
    <div class="seperator"></div>
    <?php 
constructLink(9, $_style["icons_publish_document"], $_lang["publish_resource"], $modx->hasPermission('publish_document'));
// publish
constructLink(10, $_style["icons_unpublish_resource"], $_lang["unpublish_resource"], $modx->hasPermission('publish_document'));
// unpublish
constructLink(4, $_style["icons_delete"], $_lang["delete_resource"], $modx->hasPermission('delete_document'));
// delete
constructLink(8, $_style["icons_undelete_resource"], $_lang["undelete_resource"], $modx->hasPermission('delete_document'));
// undelete
?>
    <div class="seperator"></div>
    <?php 
constructLink(6, $_style["icons_weblink"], $_lang["create_weblink_here"], $modx->hasPermission('new_document'));
// new Weblink
?>
    <div class="seperator"></div>
    <?php 
constructLink(1, $_style["icons_resource_overview"], $_lang["resource_overview"], $modx->hasPermission('view_document'));
// view
constructLink(12, $_style["icons_preview_resource"], $_lang["preview_resource"], 1);
// preview
?>
</div>

</body>
</html>
示例#4
0
function getSortNav()
{
    $artist = getReqArtist();
    $album = getReqAlbum();
    $pageName = getReqPageName(false);
    $section = getReqSection();
    $page = getReqPage();
    if (orderByAdded() || orderByFav()) {
        constructLink($pageName, $artist, $album, $section, null, 1, "None");
    } else {
        echo "<span class=\"current\">None</span>";
    }
    echo " | ";
    if (!orderByAdded()) {
        constructLink($pageName, $artist, $album, $section, "added", 1, "Recently added");
    } else {
        echo "<span class=\"current\">Recently added</span>";
    }
    echo " | ";
    if (!orderByFav()) {
        constructLink($pageName, $artist, $album, $section, "fav", 1, "Most favourited");
    } else {
        echo "<span class=\"current\">Most favourited</span>";
    }
}