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.

198 lines
6.4 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. <%@ Import Namespace='UDDI.API' %>
  12. <%@ Import Namespace='UDDI.API.Business' %>
  13. <%@ Import Namespace='UDDI.API.Binding' %>
  14. <%@ Import Namespace='UDDI.API.ServiceType' %>
  15. <%@ Import Namespace='UDDI' %>
  16. <%@ Import Namespace='System.Data' %>
  17. <script language='C#' runat='server'>
  18. protected CacheObject cache;
  19. protected TModelInstanceInfo instanceInfo;
  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" ] ) || Utility.StringEmpty( Request[ "index" ] ) )
  28. Response.Redirect( "default.aspx" );
  29. string key = HttpUtility.HtmlEncode( Request[ "key" ] );
  30. int instanceIndex = Convert.ToInt32( Request[ "index" ] );
  31. BindingTemplate binding = new BindingTemplate();
  32. binding.BindingKey = key;
  33. binding.Get();
  34. if( null == binding )
  35. Response.Redirect( "default.aspx" );
  36. instanceInfo = binding.TModelInstanceInfos[ instanceIndex ];
  37. tModelName.Text = HttpUtility.HtmlEncode( Lookup.TModelName( instanceInfo.TModelKey ) );
  38. tModelName.NavigateUrl = "modeldetail.aspx?search=" + Request[ "search" ] + "&frames=" + ( frames ? "true" : "false" ) + "&key=" + instanceInfo.TModelKey;
  39. tModelKey.Text = instanceInfo.TModelKey;
  40. InstanceParm.Text = instanceInfo.InstanceDetail.InstanceParm;
  41. //OverviewUrl.Text = instanceInfo.InstanceDetail.OverviewDoc.OverviewURL;
  42. string url = instanceInfo.InstanceDetail.OverviewDoc.OverviewURL;
  43. OverviewUrl.NavigateUrl = "";
  44. if( Utility.StringEmpty( url ) )
  45. OverviewUrl.Text = Localization.GetString( "HEADING_NONE" );
  46. else
  47. {
  48. OverviewUrl.Text = url;
  49. OverviewUrl.NavigateUrl = url;
  50. }
  51. descriptions.Initialize( instanceInfo.Descriptions );
  52. instanceDetailDescriptions.Initialize( instanceInfo.InstanceDetail.Descriptions );
  53. overviewDocDescriptions.Initialize( instanceInfo.InstanceDetail.OverviewDoc.Descriptions );
  54. breadcrumb.Initialize( BreadCrumbType.Details, EntityType.TModelInstanceInfo, key, instanceIndex );
  55. }
  56. </script>
  57. <uddi:StyleSheetControl
  58. Runat='server'
  59. Default='../stylesheets/uddi.css'
  60. Downlevel='../stylesheets/uddidl.css'
  61. />
  62. <uddi:PageStyleControl
  63. Runat='server'
  64. OnClientContextMenu='Document_OnContextMenu()'
  65. Title="TITLE"
  66. AltTitle="TITLE_ALT"
  67. />
  68. <uddi:ClientScriptRegister
  69. Runat='server'
  70. Source='../client.js'
  71. Language='javascript'
  72. />
  73. <uddi:SecurityControl
  74. UserRequired='true'
  75. Runat='server'
  76. />
  77. <form runat='server'>
  78. <table width='100%' border='0' height='100%' cellpadding='0' cellspacing='0'>
  79. <asp:PlaceHolder
  80. Id='HeaderBag'
  81. Runat='server'
  82. >
  83. <tr height='95'>
  84. <td>
  85. <!-- Header Control Here -->
  86. <uddi:Header
  87. Runat='server'
  88. />
  89. </td>
  90. </tr>
  91. </asp:PlaceHolder>
  92. <tr height='100%' valign='top'>
  93. <td>
  94. <uddi:BreadCrumb
  95. Id='breadcrumb'
  96. Runat='server'
  97. />
  98. <table cellpadding='10' cellspacing='0' border='0' width='100%'>
  99. <tr>
  100. <td>
  101. <uddi:UddiLabel Text='[[HELP_BLOCK_INSTANCEINFO]]' CssClass='helpBlock' Runat='server' /><br>
  102. <br>
  103. <uddi:TabControl ID='tabs' Runat='server'>
  104. <uddi:TabPage Name='TAB_DETAILS' Runat='server'>
  105. <uddi:ContextualHelpControl
  106. Runat='Server'
  107. Text='[[HELP_BLOCK_INSTANCEINFO_DETAILS]]'
  108. HelpFile='search.context.instanceinfodetails'
  109. CssClass='tabHelpBlock'
  110. BorderWidth='0'
  111. />
  112. <br>
  113. <uddi:UddiLabel Text='[[TAG_INTERFACE_TMODEL]]' CssClass='header' Runat='server' /><br>
  114. <asp:HyperLink ID='tModelName' Runat='server' /><br>
  115. <uddi:UddiLabel ID='tModelKey' Runat='server' /><br>
  116. <br>
  117. <uddi:Descriptions ID='descriptions' Runat='server' />
  118. </uddi:TabPage>
  119. <uddi:TabPage Name='TAB_INSTANCE_DETAILS' Runat='server'>
  120. <uddi:ContextualHelpControl
  121. Runat='Server'
  122. Text='[[HELP_BLOCK_INSTANCEINFO_INSTANCE_DETAILS]]'
  123. HelpFile='search.context.instanceinfoinstancedetails'
  124. CssClass='tabHelpBlock'
  125. BorderWidth='0'
  126. />
  127. <br>
  128. <uddi:UddiLabel Text='[[TAG_INSTANCE_PARAMETERS]]' CssClass='header' Runat='server' /><br>
  129. <uddi:UddiLabel id='InstanceParm' Runat='server'/><br>
  130. <br>
  131. <uddi:Descriptions ID='instanceDetailDescriptions' Runat='server' />
  132. </uddi:TabPage>
  133. <uddi:TabPage Name='TAB_OVERVIEWDOC' Runat='server'>
  134. <uddi:ContextualHelpControl
  135. Runat='Server'
  136. Text='[[HELP_BLOCK_INSTANCEINFO_OVERVIEWDOCS]]'
  137. HelpFile='search.context.instanceinfooverviewdocument'
  138. CssClass='tabHelpBlock'
  139. BorderWidth='0'
  140. />
  141. <br>
  142. <uddi:UddiLabel Text='[[TAG_OVERVIEWDOC_URL]]' CssClass='header' Runat='server' /><br>
  143. <asp:HyperLink
  144. id='OverviewUrl'
  145. Runat='server'
  146. Target='_new'
  147. /><br>
  148. <br>
  149. <uddi:Descriptions ID='overviewDocDescriptions' Runat='server' />
  150. </uddi:TabPage>
  151. </uddi:TabControl>
  152. </td>
  153. </tr>
  154. </table>
  155. </td>
  156. </tr>
  157. <asp:PlaceHolder
  158. Id='FooterBag'
  159. Runat='server'
  160. >
  161. <tr height='95'>
  162. <td>
  163. <!-- Footer Control Here -->
  164. <uddi:Footer
  165. Runat='server'
  166. />
  167. </td>
  168. </tr>
  169. </asp:PlaceHolder>
  170. </table>
  171. </form>