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.

262 lines
8.5 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='Contacts' Src='../controls/contacts.ascx' %>
  14. <%@ Register Tagprefix='uddi' Tagname='Services' Src='../controls/services.ascx' %>
  15. <%@ Register Tagprefix='uddi' Tagname='IdentifierBag' Src='../controls/identifierbag.ascx' %>
  16. <%@ Register Tagprefix='uddi' Tagname='DiscoveryUrls' Src='../controls/discoveryurls.ascx' %>
  17. <%@ Register Tagprefix='uddi' Tagname='PublisherAssertions' Src='../controls/publisherassertions.ascx' %>
  18. <%@ Import Namespace='UDDI.API' %>
  19. <%@ Import Namespace='UDDI.API.Business' %>
  20. <%@ Import Namespace='UDDI.API.Service' %>
  21. <%@ Import Namespace='UDDI' %>
  22. <%@ Import Namespace='UDDI.Web' %>
  23. <script language='C#' runat='server'>
  24. protected BusinessEntity business = new BusinessEntity();
  25. protected BusinessServiceCollection businessServices = new BusinessServiceCollection();
  26. protected CacheObject cache;
  27. protected bool frames = false;
  28. protected void Page_Init( object sender, EventArgs e )
  29. {
  30. if( UDDI.Context.User.IsCoordinator )
  31. {
  32. changeOwner.Text = Localization.GetString( "BUTTON_CHANGE_OWNER" );
  33. changeOwner.Visible = true;
  34. }
  35. frames = ( "true" == Request[ "frames" ] );
  36. }
  37. protected void ChangeOwner_OnClick( object sender, EventArgs e )
  38. {
  39. string url = HyperLinkManager.GetSecureHyperLink( "/admin/changeowner.aspx?frames=" +
  40. ( frames ? "true" : "false" ) +
  41. "&type=business&key=" +
  42. Request[ "key" ] );
  43. Response.Redirect( url );
  44. }
  45. protected void Page_Load( object sender, EventArgs e )
  46. {
  47. string key = Request[ "key" ];
  48. if( Utility.StringEmpty( key ) )
  49. Response.Redirect( "default.aspx?frames=" + ( frames ? "true" : "false" ) );
  50. business.BusinessKey = key;
  51. business.Get();
  52. business.BusinessServices.Sort();
  53. authorizedName.Text = business.AuthorizedName;
  54. businessKey.Text = business.BusinessKey;
  55. descriptions.Initialize( business.Descriptions );
  56. names.Initialize( business.Names );
  57. contacts.Initialize( business.Contacts, business, false );
  58. services.Initialize( business.BusinessServices, business.BusinessKey );
  59. identifierBag.Initialize( business.IdentifierBag );
  60. categoryBag.Initialize( business.CategoryBag );
  61. discoveryUrls.Initialize( business.DiscoveryUrls );
  62. assertions.Initialize( business.BusinessKey, false );
  63. breadcrumb.Initialize( BreadCrumbType.Details, EntityType.BusinessEntity, key );
  64. }
  65. </script>
  66. <uddi:StyleSheetControl
  67. Runat='server'
  68. Default='../stylesheets/uddi.css'
  69. Downlevel='../stylesheets/uddidl.css'
  70. />
  71. <uddi:PageStyleControl
  72. Runat='server'
  73. OnClientContextMenu='Document_OnContextMenu()'
  74. Title="TITLE"
  75. AltTitle="TITLE_ALT"
  76. />
  77. <uddi:ClientScriptRegister
  78. Runat='server'
  79. Source='../client.js'
  80. Language='javascript'
  81. />
  82. <uddi:SecurityControl
  83. UserRequired='true'
  84. Runat='server'
  85. />
  86. <form runat='server'>
  87. <table width='100%' border='0' height='100%' cellpadding='0' cellspacing='0'>
  88. <asp:PlaceHolder
  89. Id='HeaderBag'
  90. Runat='server'
  91. >
  92. <tr height='95'>
  93. <td>
  94. <!-- Header Control Here -->
  95. <uddi:Header
  96. Runat='server'
  97. />
  98. </td>
  99. </tr>
  100. </asp:PlaceHolder>
  101. <tr height='100%' valign='top'>
  102. <td>
  103. <uddi:BreadCrumb
  104. Id='breadcrumb'
  105. Runat='server'
  106. />
  107. <table cellpadding='10' cellspacing='0' border='0' width='100%'>
  108. <tr>
  109. <td>
  110. <uddi:UddiLabel Text='[[HELP_BLOCK_PROVIDER]]' CssClass='helpBlock' Runat='server' /><br>
  111. <br>
  112. <uddi:TabControl ID='tabs' Runat='server'>
  113. <uddi:TabPage Name='TAB_DETAILS' Runat='server'>
  114. <uddi:ContextualHelpControl
  115. Runat='Server'
  116. Text='[[HELP_BLOCK_PROVIDER_DETAILS]]'
  117. HelpFile='search.context.providerdetails'
  118. CssClass='tabHelpBlock'
  119. BorderWidth='0'
  120. />
  121. <br>
  122. <uddi:UddiLabel Text='[[TAG_OWNER]]' CssClass='header' Runat='server' /><br>
  123. <asp:Label id='authorizedName' Runat='server' />
  124. <asp:Button
  125. ID='changeOwner'
  126. Visible='false'
  127. OnClick='ChangeOwner_OnClick'
  128. Runat='server' /><br>
  129. <br>
  130. <uddi:UddiLabel Text='[[TAG_BUSINESS_KEY]]' CssClass='header' Runat='server' /><br>
  131. <asp:Label id='businessKey' Runat='server' /><br>
  132. <br>
  133. <uddi:Names ID='names' Runat='server' /><br>
  134. <br>
  135. <uddi:Descriptions ID='descriptions' Runat='server' />
  136. </uddi:TabPage>
  137. <uddi:TabPage Name='TAB_SERVICES' Runat='server'>
  138. <uddi:ContextualHelpControl
  139. Runat='Server'
  140. Text='[[HELP_BLOCK_SERVICES_DETAILS]]'
  141. HelpFile='search.context.providerservices'
  142. CssClass='tabHelpBlock'
  143. BorderWidth='0'
  144. />
  145. <br>
  146. <uddi:Services Id='services' Runat='server' />
  147. </uddi:TabPage>
  148. <uddi:TabPage Name='TAB_CONTACTS' Runat='server'>
  149. <uddi:ContextualHelpControl
  150. Runat='Server'
  151. Text='[[HELP_BLOCK_CONTACTS_DETAILS]]'
  152. HelpFile='search.context.providercontacts'
  153. CssClass='tabHelpBlock'
  154. BorderWidth='0'
  155. />
  156. <br>
  157. <uddi:Contacts Id='contacts' Runat='server' />
  158. </uddi:TabPage>
  159. <uddi:TabPage Name='TAB_IDENTIFIERS' Runat='server'>
  160. <uddi:ContextualHelpControl
  161. Runat='Server'
  162. Text='[[HELP_BLOCK_PROVIDER_IDENTIFIERS]]'
  163. HelpFile='search.context.provideridentifiers'
  164. CssClass='tabHelpBlock'
  165. BorderWidth='0'
  166. />
  167. <br>
  168. <uddi:IdentifierBag ID='identifierBag' Runat='Server' />
  169. </uddi:TabPage>
  170. <uddi:TabPage Name='TAB_CATEGORIES' Runat='server'>
  171. <uddi:ContextualHelpControl
  172. Runat='Server'
  173. Text='[[HELP_BLOCK_PROVIDER_CATEGORIES]]'
  174. HelpFile='search.context.providercategories'
  175. CssClass='tabHelpBlock'
  176. BorderWidth='0'
  177. />
  178. <br>
  179. <uddi:CategoryBag ID='categoryBag' Runat='server' />
  180. </uddi:TabPage>
  181. <uddi:TabPage Name='TAB_DISCOVERYURLS' Runat='server'>
  182. <uddi:ContextualHelpControl
  183. Runat='Server'
  184. Text='[[HELP_BLOCK_PROVIDER_OVERVIEWDOCS]]'
  185. HelpFile='search.context.providerdiscoveryurls'
  186. CssClass='tabHelpBlock'
  187. BorderWidth='0'
  188. />
  189. <br>
  190. <uddi:DiscoveryUrls ID='discoveryUrls' Runat='server' />
  191. </uddi:TabPage>
  192. <uddi:TabPage Name='TAB_PUBLISHER_ASSERTIONS' Runat='server'>
  193. <uddi:ContextualHelpControl
  194. Runat='Server'
  195. Text='[[HELP_BLOCK_RELATIONSHIPS]]'
  196. HelpFile='search.context.providerrelationships'
  197. CssClass='tabHelpBlock'
  198. BorderWidth='0'
  199. />
  200. <br>
  201. <uddi:PublisherAssertions ID='assertions' Runat='server' />
  202. </uddi:TabPage>
  203. </uddi:TabControl>
  204. </td>
  205. </tr>
  206. </table>
  207. </td>
  208. </tr>
  209. <asp:PlaceHolder
  210. Id='FooterBag'
  211. Runat='server'
  212. >
  213. <tr height='95'>
  214. <td>
  215. <!-- Footer Control Here -->
  216. <uddi:Footer
  217. Runat='server'
  218. />
  219. </td>
  220. </tr>
  221. </asp:PlaceHolder>
  222. </table>
  223. </form>