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.

226 lines
7.0 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='CategoryBag' Src='../controls/categorybag.ascx' %>
  12. <%@ Register Tagprefix='uddi' Tagname='IdentifierBag' Src='../controls/identifierbag.ascx' %>
  13. <%@ Import Namespace='UDDI.API' %>
  14. <%@ Import Namespace='UDDI.API.ServiceType' %>
  15. <%@ Import Namespace='UDDI' %>
  16. <%@ Import Namespace='System.Data' %>
  17. <script language='C#' runat='server'>
  18. protected bool frames = false;
  19. protected void Page_Init( object sender, EventArgs e )
  20. {
  21. frames = ( "true" == Request[ "frames" ] );
  22. if( UDDI.Context.User.IsCoordinator )
  23. {
  24. changeOwner.Text = Localization.GetString( "BUTTON_CHANGE_OWNER" );
  25. changeOwner.Visible = true;
  26. }
  27. }
  28. protected void ChangeOwner_OnClick( object sender, EventArgs e )
  29. {
  30. string url = HyperLinkManager.GetSecureHyperLink( "/admin/changeowner.aspx?frames=" +
  31. ( frames ? "true" : "false" ) +
  32. "&type=tmodel&key=" +
  33. Request[ "key" ] );
  34. Response.Redirect( url );
  35. }
  36. protected void Page_Load( object sender, EventArgs e )
  37. {
  38. if( Utility.StringEmpty( Request[ "key" ] ) )
  39. Response.Redirect( "default.aspx?frames=" + ( frames ? "true" : "false" ) );
  40. string key = Request[ "key" ];
  41. if( key.IndexOf( "uuid:" ) < 0 )
  42. key = "uuid:" + key;
  43. TModel tModel = new TModel();
  44. tModel.TModelKey = key;
  45. tModel.Get();
  46. if( null == (object)tModel )
  47. Response.Redirect( "default.aspx?frames=" + ( frames ? "true" : "false" ) );
  48. authorizedName.Text = tModel.AuthorizedName;
  49. tModelKey.Text = tModel.TModelKey;
  50. if( "" != tModel.Name.Trim() )
  51. Name.Text = HttpUtility.HtmlEncode( tModel.Name.Trim() );
  52. if( !Page.IsPostBack )
  53. {
  54. string url = tModel.OverviewDoc.OverviewURL;
  55. overviewDocUrl.NavigateUrl = "";
  56. if( Utility.StringEmpty( url ) )
  57. overviewDocUrl.Text = Localization.GetString( "HEADING_NONE" );
  58. else
  59. {
  60. overviewDocUrl.Text = url;
  61. overviewDocUrl.NavigateUrl = url;
  62. }
  63. }
  64. descriptions.Initialize( tModel.Descriptions );
  65. overviewDocDescriptions.Initialize( tModel.OverviewDoc.Descriptions );
  66. identifierBag.Initialize( tModel.IdentifierBag );
  67. categoryBag.Initialize( tModel.CategoryBag );
  68. breadcrumb.Initialize( BreadCrumbType.Details, EntityType.TModel, key );
  69. }
  70. </script>
  71. <uddi:StyleSheetControl
  72. Runat='server'
  73. Default='../stylesheets/uddi.css'
  74. Downlevel='../stylesheets/uddidl.css'
  75. />
  76. <uddi:PageStyleControl
  77. Runat='server'
  78. OnClientContextMenu='Document_OnContextMenu()'
  79. Title="TITLE"
  80. AltTitle="TITLE_ALT"
  81. />
  82. <uddi:ClientScriptRegister
  83. Runat='server'
  84. Source='../client.js'
  85. Language='javascript'
  86. />
  87. <uddi:SecurityControl
  88. UserRequired='true'
  89. Runat='server'
  90. />
  91. <form runat='server'>
  92. <table width='100%' border='0' height='100%' cellpadding='0' cellspacing='0'>
  93. <asp:PlaceHolder
  94. Id='HeaderBag'
  95. Runat='server'
  96. >
  97. <tr height='95'>
  98. <td>
  99. <!-- Header Control Here -->
  100. <uddi:Header
  101. Runat='server'
  102. />
  103. </td>
  104. </tr>
  105. </asp:PlaceHolder>
  106. <tr height='100%' valign='top'>
  107. <td>
  108. <uddi:BreadCrumb
  109. Id='breadcrumb'
  110. Runat='server'
  111. />
  112. <table cellpadding='10' cellspacing='0' border='0' width='100%'>
  113. <tr>
  114. <td>
  115. <uddi:UddiLabel Text='[[HELP_BLOCK_TMODEL]]' CssClass='helpBlock' Runat='server' /><br>
  116. <br>
  117. <uddi:TabControl ID='tabs' Runat='server'>
  118. <uddi:TabPage Name='TAB_DETAILS' Runat='server'>
  119. <uddi:ContextualHelpControl
  120. Runat='Server'
  121. Text='[[HELP_BLOCK_TMODEL]]'
  122. HelpFile='search.context.tmodeldetails'
  123. CssClass='tabHelpBlock'
  124. BorderWidth='0'
  125. />
  126. <br>
  127. <uddi:UddiLabel Text='[[TAG_TMODEL_NAME]]' CssClass='header' Runat='server' /><br>
  128. <asp:Label id='Name' Runat='server'/><br>
  129. <br>
  130. <uddi:UddiLabel Text='[[TAG_OWNER]]' CssClass='header' Runat='server' /><br>
  131. <asp:Label id='authorizedName' Runat='server' />
  132. <asp:Button
  133. ID='changeOwner'
  134. Visible='false'
  135. OnClick='ChangeOwner_OnClick'
  136. Runat='server' /><br>
  137. <br>
  138. <uddi:UddiLabel Text='[[TAG_TMODEL_KEY]]' CssClass='header' Runat='server' /><br>
  139. <asp:Label id='tModelKey' Runat='server' /><br>
  140. <br>
  141. <uddi:Descriptions ID='descriptions' Runat='Server' />
  142. </uddi:TabPage>
  143. <uddi:TabPage Name='TAB_IDENTIFIERS' Runat='server'>
  144. <uddi:ContextualHelpControl
  145. Runat='Server'
  146. Text='[[HELP_BLOCK_TMODEL_IDENTIFIERS]]'
  147. HelpFile='search.context.tmodelidentifiers'
  148. CssClass='tabHelpBlock'
  149. BorderWidth='0'
  150. />
  151. <br>
  152. <uddi:IdentifierBag ID='identifierBag' Runat='Server' />
  153. </uddi:TabPage>
  154. <uddi:TabPage Name='TAB_CATEGORIES' Runat='server'>
  155. <uddi:ContextualHelpControl
  156. Runat='Server'
  157. Text='[[HELP_BLOCK_TMODEL_CATEGORIES]]'
  158. HelpFile='search.context.tmodelcategories'
  159. CssClass='tabHelpBlock'
  160. BorderWidth='0'
  161. />
  162. <br>
  163. <uddi:CategoryBag ID='categoryBag' Runat='server' />
  164. </uddi:TabPage>
  165. <uddi:TabPage Name='TAB_OVERVIEWDOC' Runat='server'>
  166. <uddi:ContextualHelpControl
  167. Runat='Server'
  168. Text='[[HELP_BLOCK_TMODEL_OVERVIEWDOCS]]'
  169. HelpFile='search.context.tmodelcategories'
  170. CssClass='tabHelpBlock'
  171. BorderWidth='0'
  172. />
  173. <br>
  174. <uddi:UddiLabel Text='[[TAG_OVERVIEWDOC_URL]]' CssClass='header' Runat='Server' /><br>
  175. <asp:HyperLink id='overviewDocUrl' Target='_new' Runat='server'/><br>
  176. <br>
  177. <uddi:Descriptions ID='overviewDocDescriptions' Runat='server' />
  178. </uddi:TabPage>
  179. </uddi:TabControl>
  180. </td>
  181. </tr>
  182. </table>
  183. </td>
  184. </tr>
  185. <asp:PlaceHolder
  186. Id='FooterBag'
  187. Runat='server'
  188. >
  189. <tr height='95'>
  190. <td>
  191. <!-- Footer Control Here -->
  192. <uddi:Footer
  193. Runat='server'
  194. />
  195. </td>
  196. </tr>
  197. </asp:PlaceHolder>
  198. </table>
  199. </form>