portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i...@apache.org
Subject cvs commit: jakarta-jetspeed/webapp/WEB-INF/templates/jsp/screens/html/en NewAccount.jsp Login.jsp EditAccount.jsp ConfirmRegistration.jsp
Date Thu, 08 Mar 2001 16:24:58 GMT
ingo        01/03/08 08:24:56

  Added:       webapp/WEB-INF/templates/jsp/screens/html/en NewAccount.jsp
                        Login.jsp EditAccount.jsp ConfirmRegistration.jsp
  Log:
  [MLS] Multi- markup & language support. First "simple" implementation.
  
  Revision  Changes    Path
  1.1                  jakarta-jetspeed/webapp/WEB-INF/templates/jsp/screens/html/en/NewAccount.jsp
  
  Index: NewAccount.jsp
  ===================================================================
  <%@ taglib uri='/WEB-INF/templates/jsp/tld/template.tld' prefix='jetspeed' %>
  
  <%@ page import = "org.apache.turbine.util.*" %> 
  
  <% RunData rundata = (RunData)request.getAttribute("rundata"); %>
  
  
  <div align="left">
  
  <table cellpadding="4" cellspacing="0" border="0">
  
  <td>
    <h2>Create a new Jetspeed account</h2>
  
    To create a new account, please fill in all of the fields below. <br />
    After your account has been created, you will receive an email with a confirmation key.
<br />
    Enter the confirmation key that you received in the email on the next screen in order
to confirm your registration with the system. <br />
    <b>A valid email address is required!</b><br/>
  
    <form accept-charset="UNKNOWN" 
          method="POST" 
          action="<jetspeed:link template="ConfirmRegistration" />" 
          enctype="application/x-www-form-urlencoded">
    <input name="action" type="hidden" value="CreateNewUserAndConfirm">
  
  <%
    String message = rundata.getMessage();
    if (message != null) {
  %>
      <b> <%= message %> </b> <p />
  <%
    }  
  %>
  
    <table cellpadding="0" cellspacing="0" border="0">
      <tr>
        <td> Username: </td>
        <td> <input name="username" type="TEXT" value="<%= rundata.getParameters().getString("username",
"") %>"> </td>
      </tr>
      <tr>
        <td> Password: </td>
        <td> <input name="password" type="PASSWORD" value=""> </td>
      </tr>
      <tr>
        <td> Password (confirm): </td>
        <td> <input name="password_confirm" type="PASSWORD" value=""> </td>
      </tr>
      <tr>
        <td colspan="2"> <hr size="1" noshade> </td>
      </tr>
      <tr>
        <td> First Name: </td>
        <td> <input name="firstname" type="TEXT" value="<%= rundata.getParameters().getString("firstname",
"") %>"> </td> 
      </tr>
      <tr>
        <td> Last Name: </td>
        <td> <input name="lastname" type="TEXT" value="<%= rundata.getParameters().getString("lastname",
"") %>"> </td>
      </tr>
      <tr>
        <td> Email: </td>
        <td> <input name="email" type="TEXT" value="<%= rundata.getParameters().getString("email",
"") %>"> </td>
      </tr> 
      <tr>
        <td colspan="2" align="right">
          <br />
          <input name="submit1" type="reset"  value="Reset">
          &nbsp;
          <input name="submit2" type="submit" value="Create New Account">
        </td>
      </tr>
    </table>
  
  </td>
  </table>
  
  </form>
  
  </div>
  
  
  
  1.1                  jakarta-jetspeed/webapp/WEB-INF/templates/jsp/screens/html/en/Login.jsp
  
  Index: Login.jsp
  ===================================================================
  <%@ taglib uri='/WEB-INF/templates/jsp/tld/template.tld' prefix='jetspeed' %>
  
  <%@ page import = "org.apache.turbine.util.*" %> 
  <%@ page import = "org.apache.turbine.services.resources.TurbineResources" %> 
  
  <% RunData rundata = (RunData)request.getAttribute("rundata"); %>
  
  <div align="left">
  <form method="POST" 
        action="<jetspeed:dynamicUri screen="Home" />" 
        enctype="application/x-www-form-urlencoded">
  <input name="action" type="hidden" value="<%= TurbineResources.getString( "action.login"
) %>">
  
  <br>
  <table border="0" cellspacing="2" cellpadding="1">
  <tr>
    <td>Username:</td>
    <td><input size="12" value="<%= rundata.getParameters().getString("username",
"") %>" name="username" maxlength="25" type="text"></td>
  </tr>
  <tr>
    <td>Password:</td>
    <td><input size="12" value="" name="password" maxlength="25" type="password"></td>
  </tr>
  <tr>
    <td colspan="2" align="center">
      <input name="submit" type="submit" value="Login">
    </td>
  </tr>
  <tr>
    <td colspan="2" align="center">
      <small><a href="<jetspeed:uriLookup type="Enrollment" />">Create a
new account</a></small>
    </td>
  </tr>
  </table>
  <br>
  
  </form>
  </div>
  
  
  
  1.1                  jakarta-jetspeed/webapp/WEB-INF/templates/jsp/screens/html/en/EditAccount.jsp
  
  Index: EditAccount.jsp
  ===================================================================
  <%@ taglib uri='/WEB-INF/templates/jsp/tld/template.tld' prefix='jetspeed' %>
  
  <%@ page import = "org.apache.turbine.util.RunData" %> 
  <%@ page import = "java.util.Hashtable" %> 
  
  <% 
      String username  = "";
      String firstname = "";
      String lastname  = "";
      String email     = "";
  
      try {
          Hashtable screenData = (Hashtable)request.getAttribute( "ScreenDataEditAccount"
);
  
          username  = (String)screenData.get( "username" );
          firstname = (String)screenData.get( "firstname" );
          lastname  = (String)screenData.get( "lastname" );
          email     = (String)screenData.get( "email" );
      } catch (Exception e) {
  %>
          <%@ include file="ErrorNoScreenData.inc" %>
  <%
          return;
      }
  
  %>
  
  <div align="left">
  
  <table cellpadding="4" cellspacing="0" border="0">
  
  <td>
    <h2><u>Edit your account details</u></h2>
  
    <form accept-charset="UNKNOWN" 
          method="POST" 
          action="<jetspeed:dynamicUri screen="Home" />" 
          enctype="application/x-www-form-urlencoded">
    <input name="action" type="hidden" value="UpdateAccount">
    <input name="username" type="hidden" value="<%= username %>">
  
  <%
    String message = ((RunData)request.getAttribute("rundata")).getMessage();
    if (message != null) {
  %>
      <p><b> <%= message %> </b></p>
  <%
    }  
  %>
  
    <table cellpadding="0" cellspacing="0" border="0">
      <tr>
        <td> Username: </td>
        <td> <%= username %> </td>
      </tr>
      <tr>
        <td> Password: </td>
        <td> <input name="password" type="PASSWORD" value=""> </td>
      </tr>
      <tr>
        <td> Password (confirm): </td>
        <td> <input name="password_confirm" type="PASSWORD" value=""> </td>
      </tr>
      <tr>
        <td colspan="2"> <hr size="1" noshade> </td>
      </tr>
      <tr>
        <td> First Name: </td>
        <td> <input name="firstname" type="TEXT" value="<%= firstname %>">
</td> 
      </tr>
      <tr>
        <td> Last Name: </td>
        <td> <input name="lastname" type="TEXT" value="<%= lastname %>">
</td>
      </tr>
      <tr>
        <td> Email: </td>
        <td> <input name="email" type="TEXT" value="<%= email %>"> </td>
      </tr> 
      <tr>
        <td colspan="2" align="right">
          <br />
          <input name="cancelBtn" type="submit" value="Cancel">
          &nbsp;
          <input name="submit2"   type="submit" value="Update Account">
        </td>
      </tr>
    </table>
  
  </td>
  </table>
  
  </form>
  
  </div>
  
  
  
  1.1                  jakarta-jetspeed/webapp/WEB-INF/templates/jsp/screens/html/en/ConfirmRegistration.jsp
  
  Index: ConfirmRegistration.jsp
  ===================================================================
  <%@ taglib uri='/WEB-INF/templates/jsp/tld/template.tld' prefix='jetspeed' %>
  
  <%@ page import = "org.apache.turbine.util.*" %> 
  <%@ page import = "org.apache.turbine.services.resources.TurbineResources" %> 
  
  <% RunData rundata = (RunData)request.getAttribute("rundata"); %>
  
  <div align="left">
  
  <form accept-charset="UNKNOWN" method="POST" 
        action="<jetspeed:dynamicUri screen="Home" />" 
        enctype="application/x-www-form-urlencoded">
      <input name="username" type="hidden" value="<%= rundata.getParameters().getString("username",
"") %>">
      <input name="action" type="hidden" value="<%= TurbineResources.getString( "action.login"
) %>">
  
  Please check your email and enter your secret key to confirm your registration: <p />
  <table cellpadding="0" cellspacing="0" border="0">
    <tr>
      <td> Secret Key: </td>
      <td align="right">
        <input name="secretkey" type="TEXT" value="">
      </td>
    </tr>
    <tr>
      <td colspan="2"> &nbsp; </td>
    </tr>
    <tr>
      <td colspan="2" align="right">
        <input name="reset"   type="reset"  value="Reset">
        <input name="submit2" type="submit" value="Confirm Registration">
      </td>
    </tr>
  </table>
  
  </form>
  
  </div>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message