1. <?xml version='1.0' encoding='UTF-8' ?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"
  4. xmlns:h="http://java.sun.com/jsf/html"
  5. xmlns:f="http://java.sun.com/jsf/core"
  6. xmlns:ui="http://java.sun.com/jsf/facelets">
  7. <ui:composition>
  8.  
  9. <h:head>
  10. <ui:insert name="header">
  11. <ui:include src="header.xhtml"/>
  12. </ui:insert>
  13. </h:head>
  14.  
  15.  
  16. <h:body>
  17.  
  18. <h1><img src="resources/css/images/icon.png" alt="NVIDIA.com" /> Settings Center</h1>
  19. <!-- layer for black background of the buttons -->
  20. <div id="toolbar" style="margin: 0 auto; width:1180px; height:30px; position:relative; background-color:black">
  21. <!-- Include page Navigation -->
  22. <ui:insert name="Navigation">
  23. <ui:include src="Navigation.xhtml"/>
  24. </ui:insert>
  25.  
  26. </div>
  27.  
  28. <div id="greenBand" class="ui-state-default ui-corner-allh" style="position:relative; top:35px; left:0px;">
  29. <h:graphicImage alt="Application Settings" style="position:relative; top:-20px; left:9px;" value="resources/images/logo_application_settings.png" />
  30. </div>
  31. <div id="main" style="margin: 0 auto; width:1190px; height:700px; position:absolute; background-color:transparent; top:105px">
  32.  
  33. <div id="mainpage" style="margin: 0 auto; width:1190px; height:500px; position:absolute; background-color:transparent; top:80px">
  34.  
  35. <div id="settingsdiv" style="width:350px; height:400px; position:absolute; background-color:r; top:20px; left:1px">
  36. <h:panelGrid columns="2">
  37. <h:panelGroup>User Session Timeout</h:panelGroup>
  38. <h:panelGroup>
  39. <h:selectOneMenu value="#{ApplicationController.settingValue('SessionTTL')}">
  40. <f:selectItem itemValue="one" itemLabel="Option one" />
  41. <f:selectItem itemValue="two" itemLabel="Option two" />
  42. <f:selectItem itemValue="three" itemLabel="Option three" />
  43. <f:selectItem itemValue="custom" itemLabel="Define custom value" />
  44. <f:ajax render="input" />
  45. </h:selectOneMenu>
  46. <h:panelGroup id="input">
  47. <h:inputText value="#{ApplicationController.settingValue('SessionTTL')}" rendered="#{bean.type == 'custom'}" required="true" />
  48. </h:panelGroup>
  49. </h:panelGroup>
  50.  
  51. <h:panelGroup>Maximum allowed users</h:panelGroup>
  52. <h:panelGroup>#{ApplicationController.settingValue('MaxUsersActive')}</h:panelGroup>
  53. </h:panelGrid>
  54. <h:commandButton value="Submit" action="#{bean.submit}"/>
  55. </div>
  56.  
  57. <div id="settingsdiv" style="width:350px; height:400px; position:absolute; background-color:transparent; top:20px; left:400px">
  58.  
  59.  
  60.  
  61. </div>
  62.  
  63. <div id="settingsdiv" style="width:350px; height:400px; position:absolute; background-color:transparent; top:20px; left:800px">
  64.  
  65.  
  66. </div>
  67.  
  68.  
  69.  
  70. </div>
  71. </div>
  72.  
  73. </h:body>
  74. </ui:composition>
  75.  
  76. </html>
  77.  
  78.  
  79.  
  80. //header file
  81.  
  82. <?xml version='1.0' encoding='UTF-8' ?>
  83. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  84. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"
  85. xmlns:h="http://java.sun.com/jsf/html"
  86. xmlns:f="http://java.sun.com/jsf/core"
  87. xmlns:ui="http://java.sun.com/jsf/facelets">
  88.  
  89. <ui:composition>
  90.  
  91. <title>DX-57 Settings Center</title>
  92. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  93. <link rel="shortcut icon" type="image/x-icon" href="resources/css/themes/nvidia.com/images/favicon.ico" />
  94. <link href="resources/css/helper.css" media="screen" rel="stylesheet" type="text/css" />
  95.  
  96. <link href="resources/css/dropdown.css" media="screen" rel="stylesheet" type="text/css" />
  97. <link href="resources/css/default.advanced.css" media="screen" rel="stylesheet" type="text/css" />
  98.  
  99. <!--[if lt IE 7]>
  100. <script type="text/javascript" src="js/jquery/jquery.js"></script>
  101. <script type="text/javascript" src="js/jquery/jquery.dropdown.js"></script>
  102. <![endif]-->
  103.  
  104. <!-- / END -->
  105.  
  106. </ui:composition>
  107.  
  108.  
  109. </html>