Advertisement
klimentmichal

Site map a calendar

May 19th, 2016
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.98 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
  3. <siteMapNode title="Menu" description="" roles="none">
  4. <siteMapNode title="Sekce pro administrátory" description="" roles="admin">
  5. <siteMapNode url="~/Admin/New-restaurant.aspx" title="Vytvoření restaurace" description="" />
  6. <siteMapNode url="~/Admin/restaurants.aspx" title="seznam restaurací" description="" />
  7. <siteMapNode url="~/Admin/users.aspx" title="seznam uživatlů" description="" />
  8. </siteMapNode>
  9. <siteMapNode title="Sekce pro přihlášené" description="" roles="user">
  10. <siteMapNode url="~/User/main.aspx" title="Domů" description="" />
  11. <siteMapNode url="~/User/restaurants.aspx" title="seznam restauraci" description="" />
  12. <siteMapNode url="~/User/reservation.aspx" title="moje rezervace" description="" />
  13. </siteMapNode>
  14. </siteMapNode>
  15. </siteMap>
  16.  
  17.  
  18.  
  19. CUser user;
  20. if ((user = StaticLocalDB.GetLoggedUser()) != null)
  21. {
  22. if (user.Role == "Admin")
  23. {
  24. SiteMapDataSource1.SiteMapProvider = "SiteAdmin";
  25. }
  26. else
  27. {
  28. SiteMapDataSource1.SiteMapProvider = "SiteUser";
  29. }
  30. }
  31. else {
  32.  
  33. SiteMapDataSource1.SiteMapProvider = "SiteWeb";
  34. }
  35.  
  36.  
  37. <asp:Menu ID="menu" runat="server" DataSourceID="SiteMapDataSource1"></asp:Menu>
  38. <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" />
  39.  
  40.  
  41.  
  42. http://www.jqueryscript.net/time-clock/Simple-jQuery-Calendar-Date-Picker-Plugin-DCalendar.html
  43. <link href="/js/dcalendar.picker.css" rel="stylesheet" media="all" />
  44. <script src="/js/dcalendar.picker.JS"></script>
  45. <script>
  46. $(function () {
  47.  
  48. $('.date').dcalendarpicker({
  49. format: 'dd. mm. yyyy'
  50. });
  51. })
  52. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement