1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97
| <%@ Page Title="" Language="C#" MasterPageFile="~/Master/TreeviewBase.Master" AutoEventWireup="true" CodeBehind="Menu.aspx.cs" Inherits="Acs.SCONF.Web.Pages.Equipement.Menu.Menu" %>
<asp:Content ID="pageCntTV" ContentPlaceHolderID="cntTV" runat="server">
<asp:UpdatePanel ID="UpdatePanel_tv" runat="server">
<ContentTemplate>
<asp:TreeView ID="TV" runat="server" ExpandDepth="0"
onselectednodechanged="TV_SelectedNodeChanged"
ontreenodeexpanded="TV_TreeNodeExpanded"
ontreenodecollapsed="TV_TreeNodeCollapsed">
<HoverNodeStyle CssClass="tv_hovernode" />
<NodeStyle CssClass="tv_node" />
<SelectedNodeStyle CssClass="tv_selectednode" />
</asp:TreeView>
<asp:LinkButton ID="LBCreer" style="position: absolute; width: 40px; bottom: 0; left: 0;" runat="server" OnClick="TV_Creer">Créer,</asp:LinkButton>
<asp:LinkButton ID="LBSupprimer" style="position: absolute; width: 70px; bottom: 0; left: 45px;" runat="server" OnClick="TV_Supprimer">Supprimer</asp:LinkButton>
</ContentTemplate>
</asp:UpdatePanel>
</asp:Content>
<asp:Content ID="pageCntOnglets" ContentPlaceHolderID="cntOnglets" runat="server" >
<asp:UpdatePanel ID="UpdatePanel_onglets" runat="server" >
<ContentTemplate>
<!--[if lte IE 6]>
<style>
#divMenuOnglets {
margin-top: -1px;
}
</style>
<![endif]-->
<div id="divMenuOnglets" style="position:absolute; top:0px; width:100%;height: 27px; ">
<asp:Menu ID="MenuOnglets" Orientation="Horizontal" runat="server"
DynamicEnableDefaultPopOutImage="False"
onmenuitemclick="mnuControl_MenuItemClick">
<StaticMenuStyle CssClass="menu_onglets_not_selected" />
<StaticSelectedStyle CssClass="menu_onglets_selected" />
</asp:Menu>
</div>
<div id="divUserObjectOnglet" style="position:absolute; top:26px; height:50px; width:100%;">
<asp:PlaceHolder ID="plhControl" runat="server" EnableViewState="true" ></asp:PlaceHolder>
</div>
<!-- palette navigation -->
<div id="divPalette" style="position:absolute; bottom:0px; width:100%; height: 43px; background-color: #F5CF75; overflow:hidden">
<table id="BoutonsDuBas" cellspacing="0" style="position:relative; bottom:0px; left:20%; height: 30px;background-position: bottom; background-color: #F5CF75;" cellpadding="0" width="220" border="0" >
<tr>
<td align="center" >
<asp:LinkButton ID="BtnCancel" runat="server" CssClass="btn-cancel" onclick="BtnCancel_Click"
><span class="btn-txt"><asp:Literal ID="Literal4" runat="server" EnableViewState="false" Text="Annuler" /></span></asp:LinkButton>
</td>
<td align="center">
<asp:LinkButton ID="BtnClose" runat="server" CssClass="btn-close" onclick="BtnClose_Click"
><span class="btn-txt"><asp:Literal ID="Literal5" runat="server" EnableViewState="false" Text="Fermer" /></span></asp:LinkButton>
</td>
<td align="center">
<asp:LinkButton ID="BtnSave" runat="server" CssClass="btn-save" onclick="BtnSave_Click"
><span class="btn-txt"><asp:Literal ID="Literal2" runat="server" EnableViewState="false" Text="Enregistrer" /></span></asp:LinkButton>
</td>
</tr>
</table>
</div>
<!-- fin palette navigation -->
</ContentTemplate>
</asp:UpdatePanel>
</asp:Content>
<asp:Content ID="idTbmCntJS" ContentPlaceHolderID="tbmCntJS" runat="server">
<script type="text/javascript" charset="utf-8">
// Code qui doit être réexécuté à chaque appel Ajax
reexec();
function reexec() {
$(document).ready(function() {
$('.tv_node').contextMenu('context-menu', {
'Créer type 1':
{ click: function(element) { element.css({ backgroundColor: 'green', color: 'black' }) },
klass: "menu-item"
},
'Créer type 2':
{ click: function(element) { element.css({ fontSize: '25px' }) },
klass: "menu-item"
}
},
{ disable_native_context_menu: true });
CustResize();
});
}
</script>
</asp:Content> |
Partager