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.

104 lines
3.0 KiB

  1. <%@ Control Language='C#' Inherits='UDDI.Web.BusinessControl' %>
  2. <%@ Register TagPrefix='uddi' Namespace='UDDI.Web' Assembly='uddi.web' %>
  3. <%@ Import Namespace='System.Data' %>
  4. <%@ Import Namespace='UDDI' %>
  5. <%@ Import Namespace='UDDI.API' %>
  6. <%@ Import Namespace='UDDI.Web' %>
  7. <%@ Import Namespace='UDDI.API.Business' %>
  8. <asp:DataGrid
  9. ID='grid'
  10. Border='0'
  11. Cellpadding='4'
  12. Cellspacing='0'
  13. EnableViewState='false'
  14. Width='100%'
  15. AutoGenerateColumns='false'
  16. OnEditCommand='Business_Edit'
  17. OnDeleteCommand='Business_Delete'
  18. ItemStyle-VerticalAlign='top'
  19. ShowFooter='true'
  20. Runat='server'>
  21. <EditItemStyle CssClass='tableEditItem' />
  22. <HeaderStyle CssClass='tableHeader' />
  23. <ItemStyle CssClass='tableItem' />
  24. <AlternatingItemStyle CssClass='tableAlternatingItem' />
  25. <FooterStyle CssClass='tableFooter' />
  26. <Columns>
  27. <asp:TemplateColumn>
  28. <HeaderTemplate>
  29. <%# Localization.GetString( "HEADING_BUSINESS" ) %>
  30. </HeaderTemplate>
  31. <ItemTemplate>
  32. <uddi:UddiLabel
  33. Text='<%# ((BusinessInfo)Container.DataItem).Names[ 0 ].Value %>'
  34. CssClass='rowItem'
  35. Runat='Server' />
  36. </ItemTemplate>
  37. <FooterTemplate>
  38. <uddi:UddiLabel
  39. Text='<%# String.Format( Localization.GetString( "TEXT_RECORD_COUNT" ), businessInfos.Count ) %>'
  40. ForeColor='#000000'
  41. Runat='server' />
  42. </FooterTemplate>
  43. </asp:TemplateColumn>
  44. <asp:TemplateColumn HeaderStyle-Width='150px'>
  45. <HeaderTemplate>
  46. <%# Localization.GetString( "HEADING_ACTIONS" ) %>
  47. </HeaderTemplate>
  48. <ItemTemplate>
  49. <nobr>
  50. <uddi:UddiButton
  51. CommandName='Edit'
  52. Text='[[BUTTON_VIEW]]'
  53. EditModeDisable='true'
  54. Width='60px'
  55. CssClass='button'
  56. CausesValidation='false'
  57. Runat='server' />
  58. <uddi:UddiButton
  59. CommandName='Delete'
  60. Text='[[BUTTON_DELETE]]'
  61. EditModeDisable='true'
  62. Width='60px'
  63. CssClass='button'
  64. CausesValidation='false'
  65. Runat='server' />
  66. </nobr>
  67. </ItemTemplate>
  68. <FooterTemplate>
  69. <uddi:UddiButton
  70. Text='[[BUTTON_ADD_BUSINESS]]'
  71. EditModeDisable='true'
  72. Width='125px'
  73. CssClass='button'
  74. OnClick='Business_Add'
  75. CausesValidation='false'
  76. Runat='Server' />
  77. </FooterTemplate>
  78. </asp:TemplateColumn>
  79. <asp:TemplateColumn HeaderStyle-Width='150px'>
  80. <HeaderTemplate>
  81. <%# Localization.GetString( "HEADING_BUSINESS" ) %>
  82. </HeaderTemplate>
  83. <ItemTemplate>
  84. <asp:HyperLink
  85. Text='<%# HttpUtility.HtmlEncode( ((BusinessInfo)Container.DataItem).Names[ 0 ].Value ) %>'
  86. NavigateUrl='<%# "../details/businessdetail.aspx?search=" + Request[ "search" ] + "&frames="+(frames?"true":"false")+"&key=" + ((BusinessInfo)Container.DataItem).BusinessKey %>'
  87. CssClass='rowItem'
  88. Runat='Server' />
  89. </ItemTemplate>
  90. </asp:TemplateColumn>
  91. </Columns>
  92. </asp:DataGrid>