📄 ulogin.pas
字号:
unit uLogin;
interface
uses
Windows, Messages, SysUtils, Classes, HTTPApp, WebModu, HTTPProd,
CompProd, PagItems, SiteProd, WebForm, MidItems, WebComp, WebAdapt;
type
TLogin = class(TWebPageModule)
AdapterPageProducer: TAdapterPageProducer;
LoginFormAdapter1: TLoginFormAdapter;
AdaptUserName: TAdapterUserNameField;
AdaptPassword: TAdapterPasswordField;
AdapterForm1: TAdapterForm;
LayoutGroup1: TLayoutGroup;
AdapterFieldGroup1: TAdapterFieldGroup;
AdapterCommandGroup1: TAdapterCommandGroup;
CmdLogin: TAdapterActionButton;
private
{ Private declarations }
public
{ Public declarations }
end;
function Login: TLogin;
implementation
{$R *.dfm} {*.html}
uses WebReq, WebCntxt, WebFact, Variants;
function Login: TLogin;
begin
Result := TLogin(WebContext.FindModuleClass(TLogin));
end;
initialization
if WebRequestHandler <> nil then
WebRequestHandler.AddWebModuleFactory(TWebPageModuleFactory.Create(TLogin, TWebPageInfo.Create([wpLoginRequired], '.html', '', '登录'), crOnDemand, caCache));
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -