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.

190 lines
5.9 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='Email' Src='../controls/emails.ascx' %>
  12. <%@ Register Tagprefix='uddi' Tagname='Phone' Src='../controls/phones.ascx' %>
  13. <%@ Register Tagprefix='uddi' Tagname='Address' Src='../controls/address.ascx' %>
  14. <%@ Import Namespace='UDDI.API' %>
  15. <%@ Import Namespace='UDDI.API.Business' %>
  16. <%@ Import Namespace='UDDI' %>
  17. <%@ Import Namespace='System.Data' %>
  18. <script language='C#' runat='server'>
  19. protected bool frames = false;
  20. protected void Page_Init( object sender, EventArgs e )
  21. {
  22. frames = ( "true" == Request[ "frames" ] );
  23. }
  24. protected void Page_Load( object sender, EventArgs e )
  25. {
  26. if( Utility.StringEmpty( Request[ "key" ] ) || Utility.StringEmpty( Request[ "index" ] ) )
  27. Response.Redirect( "default.aspx" );
  28. string key = Request[ "key" ];
  29. int contactIndex = Convert.ToInt32( Request[ "index" ] );
  30. BusinessEntity business = new BusinessEntity();
  31. business.BusinessKey = key;
  32. business.Get();
  33. if( null == (object) business )
  34. Response.Redirect( "default.aspx" );
  35. Contact contact = business.Contacts[ contactIndex ];
  36. Name.Text = HttpUtility.HtmlEncode( contact.PersonName.Trim() );
  37. UseType.Text = Utility.StringEmpty( contact.UseType ) ? Localization.GetString( "HEADING_NONE" ) : HttpUtility.HtmlEncode( contact.UseType );
  38. descriptions.Initialize( contact.Descriptions );
  39. emails.Initialize( contact.Emails );
  40. phones.Initialize( contact.Phones );
  41. addresses.Initialize( contact.Addresses );
  42. breadcrumb.Initialize( BreadCrumbType.Details, EntityType.Contact, key, contactIndex );
  43. }
  44. </script>
  45. <uddi:StyleSheetControl
  46. Runat='server'
  47. Default='../stylesheets/uddi.css'
  48. Downlevel='../stylesheets/uddidl.css'
  49. />
  50. <uddi:PageStyleControl
  51. Runat='server'
  52. OnClientContextMenu='Document_OnContextMenu()'
  53. Title="TITLE"
  54. AltTitle="TITLE_ALT"
  55. />
  56. <uddi:ClientScriptRegister
  57. Runat='server'
  58. Source='../client.js'
  59. Language='javascript'
  60. />
  61. <uddi:SecurityControl
  62. UserRequired='true'
  63. Runat='server'
  64. />
  65. <form runat='server'>
  66. <table width='100%' border='0' height='100%' cellpadding='0' cellspacing='0'>
  67. <asp:PlaceHolder
  68. Id='HeaderBag'
  69. Runat='server'
  70. >
  71. <tr height='95'>
  72. <td>
  73. <!-- Header Control Here -->
  74. <uddi:Header
  75. Runat='server'
  76. />
  77. </td>
  78. </tr>
  79. </asp:PlaceHolder>
  80. <tr height='100%' valign='top'>
  81. <td>
  82. <uddi:BreadCrumb
  83. Id='breadcrumb'
  84. Runat='server'
  85. />
  86. <table cellpadding='10' cellspacing='0' border='0' width='100%'>
  87. <tr>
  88. <td>
  89. <uddi:UddiLabel Text='[[HELP_BLOCK_CONTACT]]' CssClass='helpBlock' Runat='server' /><br>
  90. <br>
  91. <uddi:TabControl ID='tabs' Runat='server'>
  92. <uddi:TabPage Name='TAB_DETAILS' Runat='server'>
  93. <uddi:ContextualHelpControl
  94. Runat='Server'
  95. Text='[[HELP_BLOCK_CONTACT_DETAILS]]'
  96. HelpFile='search.context.contactdetails'
  97. CssClass='tabHelpBlock'
  98. BorderWidth='0'
  99. />
  100. <br>
  101. <uddi:UddiLabel Text='[[TAG_CONTACT]]' CssClass='header' Runat='server' /><br>
  102. <asp:Label id='Name' Runat='server'/><br>
  103. <br>
  104. <uddi:UddiLabel Text='[[TAG_USE_TYPE]]' CssClass='header' Runat='server' /><br>
  105. <asp:Label ID='UseType' Runat='server'/><br>
  106. <br>
  107. <uddi:Descriptions ID='descriptions' Runat='server' />
  108. </uddi:TabPage>
  109. <uddi:TabPage Name='TAB_EMAILS' Runat='server'>
  110. <uddi:ContextualHelpControl
  111. Runat='Server'
  112. Text='[[HELP_BLOCK_CONTACT_EMAILS]]'
  113. HelpFile='search.context.contactemails'
  114. CssClass='tabHelpBlock'
  115. BorderWidth='0'
  116. />
  117. <br>
  118. <uddi:Email ID='emails' Runat='Server' />
  119. </uddi:TabPage>
  120. <uddi:TabPage Name='TAB_PHONES' Runat='server'>
  121. <uddi:ContextualHelpControl
  122. Runat='Server'
  123. Text='[[HELP_BLOCK_CONTACT_PHONES]]'
  124. HelpFile='search.context.contactphones'
  125. CssClass='tabHelpBlock'
  126. BorderWidth='0'
  127. />
  128. <br>
  129. <uddi:Phone ID='phones' Runat='Server' />
  130. </uddi:TabPage>
  131. <uddi:TabPage Name='TAB_ADDRESSES' Runat='server'>
  132. <uddi:ContextualHelpControl
  133. Runat='Server'
  134. Text='[[HELP_BLOCK_CONTACT_ADDRESSES]]'
  135. HelpFile='search.context.contactaddress'
  136. CssClass='tabHelpBlock'
  137. BorderWidth='0'
  138. />
  139. <br>
  140. <uddi:Address ID='addresses' Runat='server' />
  141. </uddi:TabPage>
  142. </uddi:TabControl>
  143. </td>
  144. </tr>
  145. </table>
  146. </td>
  147. </tr>
  148. <asp:PlaceHolder
  149. Id='FooterBag'
  150. Runat='server'
  151. >
  152. <tr height='95'>
  153. <td>
  154. <!-- Footer Control Here -->
  155. <uddi:Footer
  156. Runat='server'
  157. />
  158. </td>
  159. </tr>
  160. </asp:PlaceHolder>
  161. </table>
  162. </form>