Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. <table>
  2. <apex:repeat value="{!mapSurveyQuestionResponseFinal}" var="key" >
  3. <tr>
  4. <td style="font-weight:bold;background-color:#e60000;color:white">{!key}
  5. Total Score:</td>
  6. <apex:repeat value="{!mapSurveyQuestionResponseFinal[key]}" var="con">
  7. <td style="font-weight:bold;background-color:#e60000;color:white">
  8. {!Round(mapSurveyQuestionResponseFinal[key][con],1)}</td>
  9. </apex:repeat>
  10.  
  11. </tr>
  12. </apex:repeat>
  13. <tr>
  14. <td style="font-weight:bold;background-color:#e60000;color:white">Grand Total:</td>
  15. <apex:repeat value="{!mapGrandTotal}" var="gt">
  16. <td style="font-weight:bold;background-color:#e60000;color:white">{!Round(mapGrandTotal[gt],1)}</td>
  17. </apex:repeat>
  18. </tr>
  19. </table>
  20.  
  21. <div class="{!CASE([key, 1, "yellow", 2, "red", 3, "green", "default")}">
  22.  
  23. <apex:page>
  24. <style>
  25. .red{
  26. background: red;
  27. }
  28. .greeen{
  29. background: green;
  30. }
  31. .blue{
  32. background: blue;
  33. }
  34. </style>
  35. <table>
  36. <thead>
  37. <tr>
  38. <th>Name</th>
  39. <th>Description</th>
  40. </tr>
  41. </thead>
  42. <tbody>
  43. <apex:repeat value="{!dataValue}" var="data">
  44. <tr class={! if(data.key == '1', 'red', data.key == '2', 'green','blue')}>
  45. <td>Avinash</td>
  46. <td>Salesforce Consultant</td>
  47. </tr>
  48. </apex:repeat>
  49.  
  50. </tbody>
  51. </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement