Login_dm.pas
上传用户:fh681027
上传日期:2022-07-23
资源大小:1959k
文件大小:1k
源码类别:

Delphi控件源码

开发平台:

Delphi

  1. unit Login_dm;
  2. interface
  3. uses
  4.   Windows, Messages, SysUtils, Classes, HTTPApp, WebModu, HTTPProd,
  5.   WebAdapt, WebComp, CompProd, PagItems, SiteProd, WebForm, MidItems;
  6. type
  7.   Tloginform = class(TWebPageModule)
  8.     AdapterPageProducer: TAdapterPageProducer;
  9.     LoginFormAdapter1: TLoginFormAdapter;
  10.     AdapterForm1: TAdapterForm;
  11.     AdapterFieldGroup1: TAdapterFieldGroup;
  12.     AdapterCommandGroup1: TAdapterCommandGroup;
  13.   private
  14.     { Private declarations }
  15.   public
  16.     { Public declarations }
  17.   end;
  18.   function loginform: Tloginform;
  19. implementation
  20. {$R *.dfm}  {*.html}
  21. uses WebReq, WebCntxt, WebFact, Variants;
  22. function loginform: Tloginform;
  23. begin
  24.   Result := Tloginform(WebContext.FindModuleClass(Tloginform));
  25. end;
  26. initialization
  27.   if WebRequestHandler <> nil then
  28.     WebRequestHandler.AddWebModuleFactory(TWebPageModuleFactory.Create(Tloginform, TWebPageInfo.Create([{wpPublished , wpLoginRequired}], '.html'), crOnDemand, caCache));
  29. end.