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.

105 lines
3.2 KiB

  1. <%@ Control Language='C#' Inherits='UDDI.Web.InstanceInfoControl' %>
  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. <%@ Import Namespace='UDDI.API.Service' %>
  9. <%@ Import Namespace='UDDI.API.ServiceType' %>
  10. <%@ Import Namespace='UDDI.API.Binding' %>
  11. <asp:DataGrid
  12. ID='grid'
  13. Border='0'
  14. CellPadding='4'
  15. CellSpacing='0'
  16. EnableViewState='false'
  17. Width='100%'
  18. AutoGenerateColumns='false'
  19. OnEditCommand='InstanceInfo_Edit'
  20. OnDeleteCommand='InstanceInfo_Delete'
  21. ItemStyle-VerticalAlign='top'
  22. ShowFooter='true'
  23. Runat='server'>
  24. <EditItemStyle CssClass='tableEditItem' />
  25. <HeaderStyle CssClass='tableHeader' />
  26. <ItemStyle CssClass='tableItem' />
  27. <AlternatingItemStyle CssClass='tableAlternatingItem' />
  28. <FooterStyle CssClass='tableFooter' />
  29. <Columns>
  30. <asp:TemplateColumn>
  31. <HeaderTemplate>
  32. <%# Localization.GetString( "HEADING_INSTANCE_INFO" ) %>
  33. </HeaderTemplate>
  34. <ItemTemplate>
  35. <uddi:UddiLabel
  36. Text='<%# Lookup.TModelName( ((TModelInstanceInfo)Container.DataItem).TModelKey ) %>'
  37. CssClass='rowItem'
  38. Runat='Server' />
  39. </ItemTemplate>
  40. <FooterTemplate>
  41. <uddi:UddiLabel
  42. Text='<%# String.Format( Localization.GetString( "TEXT_RECORD_COUNT" ), instanceInfos.Count ) %>'
  43. ForeColor='#000000'
  44. Runat='server' />
  45. </FooterTemplate>
  46. </asp:TemplateColumn>
  47. <asp:TemplateColumn HeaderStyle-Width='150px'>
  48. <HeaderTemplate>
  49. <%# Localization.GetString( "HEADING_ACTIONS" ) %>
  50. </HeaderTemplate>
  51. <ItemTemplate>
  52. <nobr>
  53. <uddi:UddiButton
  54. CommandName='Edit'
  55. Text='[[BUTTON_VIEW]]'
  56. EditModeDisable='true'
  57. Width='60px'
  58. CssClass='button'
  59. CausesValidation='false'
  60. Runat='server' />
  61. <uddi:UddiButton
  62. CommandName='Delete'
  63. Text='[[BUTTON_DELETE]]'
  64. EditModeDisable='true'
  65. Width='60px'
  66. CssClass='button'
  67. CausesValidation='false'
  68. Runat='server' />
  69. </nobr>
  70. </ItemTemplate>
  71. <FooterTemplate>
  72. <uddi:UddiButton
  73. Text='[[BUTTON_ADD_INSTANCE_INFO]]'
  74. EditModeDisable='true'
  75. Width='120px'
  76. CssClass='button'
  77. OnClick='InstanceInfo_Add'
  78. CausesValidation='false'
  79. Runat='Server' />
  80. </FooterTemplate>
  81. </asp:TemplateColumn>
  82. <asp:TemplateColumn HeaderStyle-Width='150px'>
  83. <HeaderTemplate>
  84. <%# Localization.GetString( "HEADING_INSTANCE_INFO" ) %>
  85. </HeaderTemplate>
  86. <ItemTemplate>
  87. <asp:HyperLink
  88. Text='<%# HttpUtility.HtmlEncode( Lookup.TModelName( ((TModelInstanceInfo)Container.DataItem).TModelKey ) ) %>'
  89. NavigateUrl='<%# "../details/instanceinfodetail.aspx?search=" + Request[ "search" ] + "&frames="+(frames?"true":"false")+"&key=" + parent.BindingKey + "&index=" + parent.TModelInstanceInfos.IndexOf( (TModelInstanceInfo)Container.DataItem ) %>'
  90. CssClass='rowItem'
  91. Runat='Server' />
  92. </ItemTemplate>
  93. </asp:TemplateColumn>
  94. </Columns>
  95. </asp:DataGrid>