Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

172 lines
5.3 KiB

  1. <!-- ############################################################################ -->
  2. <!-- ## UDDI Services ## -->
  3. <!-- ## Copyright (c) Microsoft Corporation. All rights reserved. ## -->
  4. <!-- ############################################################################ -->
  5. <%@ Page Language='C#' Inherits='UDDI.Web.UddiPage' %>
  6. <%@ Register TagPrefix='uddi' Namespace='UDDI.Web' Assembly='uddi.web' %>
  7. <%@ Register Tagprefix='uddi' Tagname='Header' Src='../controls/header.ascx' %>
  8. <%@ Register Tagprefix='uddi' Tagname='Footer' Src='../controls/footer.ascx' %>
  9. <%@ Register Tagprefix='uddi' Tagname='BreadCrumb' Src='../controls/breadcrumb.ascx' %>
  10. <%@ Register Tagprefix='uddi' Tagname='Descriptions' Src='../controls/descriptions.ascx' %>
  11. <%@ Register Tagprefix='uddi' Tagname='Names' Src='../controls/names.ascx' %>
  12. <%@ Register Tagprefix='uddi' Tagname='CategoryBag' Src='../controls/categorybag.ascx' %>
  13. <%@ Register Tagprefix='uddi' Tagname='Bindings' Src='../controls/bindings.ascx' %>
  14. <%@ Import Namespace='UDDI.API' %>
  15. <%@ Import Namespace='UDDI.API.Business' %>
  16. <%@ Import Namespace='UDDI.API.Service' %>
  17. <%@ Import Namespace='UDDI' %>
  18. <%@ Import Namespace='System.Data' %>
  19. <script language='C#' runat='server'>
  20. protected bool frames = false;
  21. protected void Page_Init( object sender, EventArgs e )
  22. {
  23. frames = ( "true" == Request[ "frames" ] );
  24. }
  25. protected void Page_Load( object sender, EventArgs e )
  26. {
  27. if( Utility.StringEmpty( Request[ "key" ] ) )
  28. Response.Redirect( "default.aspx" );
  29. string key = Request[ "key" ];
  30. string projectionKey = Request[ "projectionKey" ];
  31. string projectionContext = Request[ "projectionContext" ];
  32. BusinessService service = new BusinessService();
  33. service.ServiceKey = key;
  34. service.Get();
  35. serviceKey.Text = service.ServiceKey;
  36. descriptions.Initialize( service.Descriptions );
  37. names.Initialize( service.Names );
  38. bindings.Initialize( service.BindingTemplates );
  39. categoryBag.Initialize( service.CategoryBag );
  40. if( null==projectionContext )
  41. {
  42. breadcrumb.Initialize( BreadCrumbType.Details, EntityType.BusinessService, key,projectionKey );
  43. }
  44. else
  45. {
  46. breadcrumb.Initialize( BreadCrumbType.Edit, EntityType.BusinessService, key,projectionKey );
  47. }
  48. }
  49. </script>
  50. <uddi:StyleSheetControl
  51. Runat='server'
  52. Default='../stylesheets/uddi.css'
  53. Downlevel='../stylesheets/uddidl.css'
  54. />
  55. <uddi:PageStyleControl
  56. Runat='server'
  57. OnClientContextMenu='Document_OnContextMenu()'
  58. Title="TITLE"
  59. AltTitle="TITLE_ALT"
  60. />
  61. <uddi:ClientScriptRegister
  62. Runat='server'
  63. Source='../client.js'
  64. Language='javascript'
  65. />
  66. <uddi:SecurityControl
  67. UserRequired='true'
  68. Runat='server'
  69. />
  70. <form runat='server'>
  71. <table width='100%' border='0' height='100%' cellpadding='0' cellspacing='0'>
  72. <asp:PlaceHolder
  73. Id='HeaderBag'
  74. Runat='server'
  75. >
  76. <tr height='95'>
  77. <td>
  78. <!-- Header Control Here -->
  79. <uddi:Header
  80. Runat='server'
  81. />
  82. </td>
  83. </tr>
  84. </asp:PlaceHolder>
  85. <tr height='100%' valign='top'>
  86. <td>
  87. <uddi:BreadCrumb
  88. Id='breadcrumb'
  89. Runat='server'
  90. />
  91. <table cellpadding='10' cellspacing='0' border='0' width='100%'>
  92. <tr>
  93. <td>
  94. <uddi:UddiLabel Text='[[HELP_BLOCK_SERVICE]]' CssClass='helpBlock' Runat='server' /><br>
  95. <br>
  96. <uddi:TabControl ID='tabs' Runat='server'>
  97. <uddi:TabPage Name='TAB_DETAILS' Runat='server'>
  98. <uddi:ContextualHelpControl
  99. Runat='Server'
  100. Text='[[HELP_BLOCK_SERVICE_DETAILS]]'
  101. HelpFile='search.context.servicedetails'
  102. CssClass='tabHelpBlock'
  103. />
  104. <br>
  105. <uddi:UddiLabel Text='[[TAG_SERVICE_KEY]]' CssClass='header' Runat='server' /><br>
  106. <asp:Label id='serviceKey' Runat='server' /><br>
  107. <br>
  108. <uddi:Names ID='names' Runat='server' /><br>
  109. <br>
  110. <uddi:Descriptions ID='descriptions' Runat='server' /><br>
  111. </uddi:TabPage>
  112. <uddi:TabPage Name='TAB_BINDINGS' Runat='server'>
  113. <uddi:ContextualHelpControl
  114. Runat='Server'
  115. Text='[[HELP_BLOCK_BINDINGS_DETAILS]]'
  116. HelpFile='search.context.servicebindings'
  117. CssClass='tabHelpBlock'
  118. />
  119. <br>
  120. <uddi:Bindings Id='bindings' Runat='server' />
  121. </uddi:TabPage>
  122. <uddi:TabPage Name='TAB_CATEGORIES' Runat='server'>
  123. <uddi:ContextualHelpControl
  124. Runat='Server'
  125. Text='[[HELP_BLOCK_SERVICE_CATEGORIES]]'
  126. HelpFile='search.context.servicecategories'
  127. CssClass='tabHelpBlock'
  128. BorderWidth='0'
  129. />
  130. <br>
  131. <uddi:CategoryBag ID='categoryBag' Runat='server' />
  132. </uddi:TabPage>
  133. </uddi:TabControl>
  134. </td>
  135. </tr>
  136. </table>
  137. </td>
  138. </tr>
  139. <asp:PlaceHolder
  140. Id='FooterBag'
  141. Runat='server'
  142. >
  143. <tr height='95'>
  144. <td>
  145. <!-- Footer Control Here -->
  146. <uddi:Footer
  147. Runat='server'
  148. />
  149. </td>
  150. </tr>
  151. </asp:PlaceHolder>
  152. </table>
  153. </form>