Location: PHPKode > projects > S-Bug Tracking System > BTS/protected/pages/Commons/CLogin.tpl
<!--
** One line to give the program's name and a brief idea of
** what it does.
** Copyright (C) 2006 Nguyen Thanh Hy
** 
** This program is free software; you can redistribute it
** and/or modify it under the terms of the GNU General Public
** License as published by the Free Software Foundation;
** either version 2 of the License, or (at your option) any
** later version.
** 
** This program is distributed in the hope that it will be
** useful, but WITHOUT ANY WARRANTY; without even the implied
** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
** PURPOSE. See the GNU General Public License for more details.
** 
** You should have received a copy of the GNU General Public
** License along with this program; if not, write to the Free
** Software Foundation, Inc., 59 Temple Place, Suite 330,
** Boston, MA 02111-1307 USA
** 
** Also add information on how to contact you by electronic and paper mail.
-->
<com:TPanel ID="PanelLogin" DefaultButton="LoginButton" >
		<com:TTable Width="100%" Height="21px">
			<com:TTableRow>
				<com:TTableCell width="100%" HorizontalAlign="Right" 
						Visible="<%= $this->User->IsGuest %>" >
					<com:TLabel Font.Name="Verdana, Arial, Helvetica" Font.Size="1"
						ForeColor="#FFFFFF" Font.Bold="true" Text="Username:" 
						/>
					<com:TRequiredFieldValidator
						ControlToValidate="Username"
						ValidationGroup="login" 
						FocusElementID="Username"
						Text=""
						ForeColor="#00FF00"
						Display="Dynamic"
						/>

					<com:TTextBox ID="Username" MaxLength="32" 
						Columns="12"  Height="15"
						/>&nbsp;
					
					<com:TLabel Font.Name="Verdana, Arial, Helvetica" Font.Size="1"
						ForeColor="#FFFFFF" Font.Bold="true" Text="Password:" 
						/>
					<com:TRequiredFieldValidator 
						ControlToValidate="Password" 
						Display="Dynamic" 
						EnableClientScript="true" 
						ValidationGroup="login"
						ForeColor="#00FF00"
						Text="" 
						/>
					
					<com:TTextBox ID="Password" TextMode="Password" 
						MaxLength="32" Columns="12" Height="15"
						/>
					&nbsp;
					<com:TCustomValidator
						ControlToValidate="Password"
						ValidationGroup="login"
						ForeColor="#00FF00"
						Text="Login fail"
						Display="Dynamic"
						OnServerValidate="validateUser" 
						/>
				</com:TTableCell >
				<com:TTableCell width="100%" HorizontalAlign="Center" 
						Visible="<%= !$this->User->IsGuest %>" >
					<com:TLabel ID="WelcomeID" 
						Text="Welcome" Font.Size="14px" Font.Bold="true"
						ForeColor="#00FF00"
						/>
					<com:TLabel ID="lbUser" 
						Text="" Font.Size="18px" Font.Bold="true"
						ForeColor="#FF00FF"
						/>
				</com:TTableCell>
				<com:TTableCell width="40px" HorizontalAlign="Center" 
						Visible="<%= $this->User->IsGuest %>" >
					<com:TButton
						ID="LoginButton"
						Text="Login" 
						ValidationGroup="login"
						Font.Bold="true" 
						ButtonType="Button"
						ForeColor="#0000FF" 
						OnClick="loginButtonClicked" 
						/>
				</com:TTableCell>
				<com:TTableCell width="40px" HorizontalAlign="Center" 
						Visible="<%= !$this->User->IsGuest %>" >
					<com:TButton
						ID="LogoutButton"
						Text="Logout" 
						Font.Bold="true" 
						ForeColor="#0000FF" 
						OnClick="logoutButtonClicked" 
						ButtonType="Button"
						/>
				</com:TTableCell>
			</com:TTableRow>
		</com:TTable>
</com:TPanel>
Return current item: S-Bug Tracking System