Add a Layout
Username:  
Password:
  > Home
> User Guide
> Reference
> Portal Object
v Development Guide
    o Overview
    > A Typical Page (C)
    > Data Handling
    > Applications
    v Working BEE
       o Add a Layout


Shortcuts
sys Class
debug Class
Intrinsic Conversions
>> Development Guide >> Working BEE >> Add a Layout <=      <  1  2  3  4  5  6  >  
Login Form How to add a layout

The Login Form has two parts: Login and Logout.

<form action="${pt%rt}index.htm" method="post">
<bee:access>
 Logged in as ${sys%auth:loginname}<br>
 <input type=submit class=button name=Submit value=Logout>
<bee:else>
 Username: <input class=field size=12 type=text name=username><br>
 Password: <input class=field size=12 type=password name=password>
 <input type=submit class=button name=Submit value=Login>
</bee:access>
<span class=error>${pt%AuthMessage}</span>
</form>

If you want the user to go to a particular page right after logging in, you may add a line after the <bee:else> line:

<input type=hidden name=submitredirectto value="${pt%rt}path/page.htm">

Of course, you can format the form to make it look nice.

Previous Page       Next Page

Accsoft Computer Technology Pty Ltd     ABN: 98 065 617 549
PO Box 892, Epping NSW 1710         Level 1, Epping Office Park, 242 Beecroft Rd, Epping NSW 2121, Australia
Tel: Sydney - (02)98691668     National - 1300-881668         Fax: (02)98691866
© Copyright 2003 Accsoft Computer Technology Pty Ltd