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.

138 lines
3.8 KiB

  1. <%@ Control Language='C#' Inherits='UDDI.Web.PhoneControl' %>
  2. <%@ Register TagPrefix='uddi' Namespace='UDDI.Web' Assembly='uddi.web' %>
  3. <%@ Import Namespace='System.Data' %>
  4. <%@ Import Namespace='UDDI' %>
  5. <%@ Import Namespace='UDDI.API.Business' %>
  6. <asp:DataGrid
  7. ID='grid'
  8. Cellpadding='4'
  9. Cellspacing='0'
  10. Border='0'
  11. Width='100%'
  12. AutoGenerateColumns='false'
  13. OnEditCommand='DataGrid_Edit'
  14. OnDeleteCommand='DataGrid_Delete'
  15. OnUpdateCommand='DataGrid_Update'
  16. OnCancelCommand='DataGrid_Cancel'
  17. ItemStyle-VerticalAlign='top'
  18. ShowFooter='true'
  19. Runat='Server'>
  20. <EditItemStyle CssClass='tableEditItem' />
  21. <HeaderStyle CssClass='tableHeader' />
  22. <ItemStyle CssClass='tableItem' />
  23. <AlternatingItemStyle CssClass='tableAlternatingItem' />
  24. <FooterStyle CssClass='tableFooter' />
  25. <Columns>
  26. <asp:TemplateColumn>
  27. <ItemTemplate>
  28. <uddi:UddiLabel
  29. Text='<%# ((Phone)Container.DataItem).Value %>'
  30. Runat='Server' /><br>
  31. <uddi:UddiLabel
  32. Text='[[TAG_USE_TYPE]]'
  33. CssClass='lightHeader'
  34. Runat='server' />
  35. <uddi:UddiLabel
  36. Text='<%# Utility.Iff( Utility.StringEmpty( ( (Phone)Container.DataItem ).UseType ), Localization.GetString( "HEADING_NONE" ), ( (Phone)Container.DataItem ).UseType ) %>'
  37. Runat='Server' />
  38. </ItemTemplate>
  39. <EditItemTemplate>
  40. <uddi:UddiLabel
  41. Text='[[TAG_PHONE]]'
  42. Runat='server' /><br>
  43. <uddi:UddiTextBox
  44. ID='phone'
  45. Width='200px'
  46. Columns='40'
  47. MaxLength='255'
  48. OnEnterKeyPressed='OnEnterKeyPressed'
  49. Selected='true'
  50. Text='<%# ((Phone)Container.DataItem).Value %>'
  51. Runat='Server' /><br>
  52. <asp:RequiredFieldValidator
  53. id='phoneRequired'
  54. ControlToValidate='phone'
  55. ErrorMessage='<%# Localization.GetString( "ERROR_FIELD_REQUIRED" ) %>'
  56. Display='dynamic'
  57. Runat='server'/><br>
  58. <uddi:UddiLabel
  59. Text='[[TAG_USE_TYPE]]'
  60. Runat='server' /><br>
  61. <uddi:UddiTextBox
  62. ID='useType'
  63. Columns='40'
  64. Width='200px'
  65. MaxLength='255'
  66. OnEnterKeyPressed='OnEnterKeyPressed'
  67. Text='<%# ((Phone)Container.DataItem).UseType %>'
  68. Runat='Server' />
  69. </EditItemTemplate>
  70. <FooterTemplate>
  71. <uddi:UddiLabel
  72. Text='<%# String.Format( Localization.GetString( "TEXT_RECORD_COUNT" ), phones.Count ) %>'
  73. ForeColor='#000000'
  74. Runat='server' />
  75. </FooterTemplate>
  76. </asp:TemplateColumn>
  77. <asp:TemplateColumn HeaderStyle-Width='150px'>
  78. <ItemTemplate>
  79. <nobr>
  80. <uddi:UddiButton
  81. ID='edit'
  82. CommandName='Edit'
  83. Text='[[BUTTON_EDIT]]'
  84. EditModeDisable='true'
  85. Width='70px'
  86. CssClass='button'
  87. Runat='server' />
  88. <uddi:UddiButton
  89. ID='delete'
  90. CommandName='Delete'
  91. Text='[[BUTTON_DELETE]]'
  92. EditModeDisable='true'
  93. Width='70px'
  94. CssClass='button'
  95. Runat='server' />
  96. </nobr>
  97. </ItemTemplate>
  98. <EditItemTemplate>
  99. <nobr>
  100. <uddi:UddiButton
  101. ID='update'
  102. CommandName='Update'
  103. Text='[[BUTTON_UPDATE]]'
  104. Width='70px'
  105. CssClass='button'
  106. Runat='server' />
  107. <uddi:UddiButton
  108. ID='cancel'
  109. CommandName='Cancel'
  110. Text='[[BUTTON_CANCEL]]'
  111. Width='70px'
  112. CssClass='button'
  113. CausesValidation='false'
  114. Runat='server' />
  115. </nobr>
  116. </EditItemTemplate>
  117. <FooterTemplate>
  118. <uddi:UddiButton
  119. ID='add'
  120. Text='[[BUTTON_ADD_PHONE]]'
  121. Width='146px'
  122. CssClass='button'
  123. OnClick='DataGrid_Add'
  124. EditModeDisable='true'
  125. Runat='Server' />
  126. </FooterTemplate>
  127. </asp:TemplateColumn>
  128. </Columns>
  129. </asp:DataGrid>