diff options
Diffstat (limited to 'WebContent/templates')
| -rw-r--r-- | WebContent/templates/common.xhtml | 60 | ||||
| -rw-r--r-- | WebContent/templates/loggedin.xhtml | 60 |
2 files changed, 120 insertions, 0 deletions
diff --git a/WebContent/templates/common.xhtml b/WebContent/templates/common.xhtml new file mode 100644 index 0000000..151411f --- /dev/null +++ b/WebContent/templates/common.xhtml @@ -0,0 +1,60 @@ +<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" + xmlns:ui="http://java.sun.com/jsf/facelets" + xmlns:h="http://java.sun.com/jsf/html" + xmlns:f="http://java.sun.com/jsf/core"> + + <head> + <title><ui:insert name="pageTitle">Page Title</ui:insert></title> + <link rel="stylesheet" type="text/css" href="../stylesheets/twocolumn.css" /> + <link rel="stylesheet" type="text/css" href="../stylesheets/navigation.css" /> + <link rel="stylesheet" type="text/css" href="../stylesheets/form.css" /> + <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /> + </head> + + <body> + + <div id="container"> + + <div id="top"> + <ui:insert name="pageHeader">Page Header</ui:insert> + </div> + + <div id="leftnav"> + <ui:insert name="leftnav"> + <h:form id="navcontainer"> + <ul> + <li> + <h:commandLink action="contact"> + <h:outputText id="contact" value="Cont@ct" /> + </h:commandLink> + </li> + <li> + <h:commandLink action="categories"> + <h:outputText id="catalog" value="Catalog" /> + </h:commandLink> + </li> + <li> + <h:commandLink action="login" id="loginLink"> + <h:outputText id="login" value="Login" /> + </h:commandLink> + </li> + </ul> + </h:form> + </ui:insert> + </div> + + <div id="content"> + <ui:insert name="body">Page Body</ui:insert> + </div> + + <div id="footer"> + <ui:insert name="footer">Page Footer</ui:insert> + </div> + + </div> <!-- id="container" --> + + </body> + +</html> diff --git a/WebContent/templates/loggedin.xhtml b/WebContent/templates/loggedin.xhtml new file mode 100644 index 0000000..3ac57ca --- /dev/null +++ b/WebContent/templates/loggedin.xhtml @@ -0,0 +1,60 @@ +<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" + xmlns:ui="http://java.sun.com/jsf/facelets" + xmlns:h="http://java.sun.com/jsf/html" + xmlns:f="http://java.sun.com/jsf/core"> + + <head> + <title><ui:insert name="pageTitle">Page Title</ui:insert></title> + <link rel="stylesheet" type="text/css" href="../stylesheets/twocolumn.css" /> + <link rel="stylesheet" type="text/css" href="../stylesheets/navigation.css" /> + <link rel="stylesheet" type="text/css" href="../stylesheets/form.css" /> + <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /> + </head> + + <body> + + <div id="container"> + + <div id="top"> + <ui:insert name="pageHeader">Page Header</ui:insert> + </div> + + <div id="leftnav"> + <ui:insert name="leftnav"> + <h:form id="navcontainer"> + <ul> + <li> + <h:commandLink action="contact"> + <h:outputText id="contact" value="Cont@ct" /> + </h:commandLink> + </li> + <li> + <h:commandLink action="categories"> + <h:outputText id="catalog" value="Catalog" /> + </h:commandLink> + </li> + <li> + <h:commandLink action="#{UserManager.logout}" id="logoutLink"> + <h:outputText id="logout" value="Logout" /> + </h:commandLink> + </li> + </ul> + </h:form> + </ui:insert> + </div> + + <div id="content"> + <ui:insert name="body">Page Body</ui:insert> + </div> + + <div id="footer"> + <ui:insert name="footer">Page Footer</ui:insert> + </div> + + </div> <!-- id="container" --> + + </body> + +</html> |
