Guest User

Untitled

a guest
Jul 18th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.38 KB | None | 0 0
  1. /* Wrappable cell
  2. * Add this class to make sure the text in a cell will wrap.
  3. * By default, data_table tds do not wrap.
  4. */
  5. td.wrappable,
  6. table.data_table td.wrappable
  7. {
  8. white-space: normal;
  9. }
  10.  
  11. <%@ include file="../../include/pre-header.html" %>
  12. <form id="commentForm" name="commentForm" action="" method="post">
  13.  
  14.  
  15.  
  16. <ctl:vertScroll height="300" headerStyleClass="data_table_scroll" bodyStyleClass="data_table_scroll" enabled="${user.scrollTables}">
  17. <ctl:sortableTblHdrSetup topTotal="false" href="show.whatif_edit_entry? entryId=${entry.entryId}"/>
  18. <table class="data_table vert_scroll_table">
  19.  
  20.  
  21.  
  22. </tr>
  23. <tr>
  24. <ctl:sortableTblHdr styleClass="center" title="Comments" property="comment" type="top">Comments</ctl:sortableTblHdr>
  25. </tr>
  26.  
  27.  
  28. <c:forEach var="comments" items="${entry.comments}">
  29.  
  30.  
  31. <tr id="id${comments.id}">
  32. <td id="comments-${comments.id}" class="wrappable" style="width:400px;">${comments.comment}</td>
  33. </tr>
  34.  
  35.  
  36.  
  37. </c:forEach>
  38. <c:if test="${lock.locked || form.entryId < 0 }">
  39. <%-- This is the row for adding a new comment. --%>
  40. <tr id="commentRow">
  41. <td><input type="text" id="comment" name="comment" size="50" maxlength="250" onkeypress="javascript:return noenter();"/>
  42. <a href="javascript:addComment();"><img src="../images/icon_add.gif" border="0" alt="Add"/></a>
  43. </td>
  44.  
  45. </tr>
  46. </c:if>
  47.  
  48. <html>
  49. <head>
  50. <style>
  51. table {border-collapse:collapse; table-layout:fixed; width:310px;}
  52. table td {border:solid 1px #fab; width:100px; word-wrap:break-word;}
  53. </style>
  54. </head>
  55.  
  56. <body>
  57. <table>
  58. <tr>
  59. <td>1</td>
  60. <td>Lorem Ipsum</td>
  61. <td>Lorem Ipsum is simply dummy text of the printing and typesetting industry. </td>
  62. </tr>
  63. <tr>
  64. <td>2</td>
  65. <td>LoremIpsumhasbeentheindustry'sstandarddummytexteversincethe1500s,whenanunknown</td>
  66. <td>Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</td>
  67. </tr>
  68. <tr>
  69. <td>3</td>
  70. <td></td>
  71. <td>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna...</td>
  72. </tr>
  73. </table>
  74. </body>
  75. </html>
Add Comment
Please, Sign In to add comment