├── Demo
├── Controller
│ ├── BaseController.pas
│ ├── IndexController.pas
│ ├── MainController.pas
│ └── UserController.pas
├── Project
│ ├── WebDemo.dpr
│ ├── WebDemo.dproj
│ ├── WebDemo.dproj.local
│ ├── WebDemo.identcache
│ ├── WebDemo.res
│ ├── favicon.ico
│ └── mvc.inc
├── Publish
│ ├── Resources
│ │ ├── config.json
│ │ └── mime.json
│ ├── SQL
│ │ └── user.xml
│ ├── SQLite3.dll
│ ├── WebRoot
│ │ ├── 404.html
│ │ ├── 500.html
│ │ ├── assets
│ │ │ ├── css
│ │ │ │ ├── layui.css
│ │ │ │ ├── layui.mobile.css
│ │ │ │ ├── main.css
│ │ │ │ └── modules
│ │ │ │ │ ├── code.css
│ │ │ │ │ ├── laydate
│ │ │ │ │ └── default
│ │ │ │ │ │ └── laydate.css
│ │ │ │ │ └── layer
│ │ │ │ │ └── default
│ │ │ │ │ ├── icon-ext.png
│ │ │ │ │ ├── icon.png
│ │ │ │ │ ├── layer.css
│ │ │ │ │ ├── loading-0.gif
│ │ │ │ │ ├── loading-1.gif
│ │ │ │ │ └── loading-2.gif
│ │ │ ├── echarts.min.js
│ │ │ ├── echarts.simple.min.js
│ │ │ ├── font
│ │ │ │ ├── iconfont.eot
│ │ │ │ ├── iconfont.svg
│ │ │ │ ├── iconfont.ttf
│ │ │ │ ├── iconfont.woff
│ │ │ │ └── iconfont.woff2
│ │ │ ├── images
│ │ │ │ ├── face
│ │ │ │ │ ├── 0.gif
│ │ │ │ │ ├── 1.gif
│ │ │ │ │ ├── 10.gif
│ │ │ │ │ ├── 11.gif
│ │ │ │ │ ├── 12.gif
│ │ │ │ │ ├── 13.gif
│ │ │ │ │ ├── 14.gif
│ │ │ │ │ ├── 15.gif
│ │ │ │ │ ├── 16.gif
│ │ │ │ │ ├── 17.gif
│ │ │ │ │ ├── 18.gif
│ │ │ │ │ ├── 19.gif
│ │ │ │ │ ├── 2.gif
│ │ │ │ │ ├── 20.gif
│ │ │ │ │ ├── 21.gif
│ │ │ │ │ ├── 22.gif
│ │ │ │ │ ├── 23.gif
│ │ │ │ │ ├── 24.gif
│ │ │ │ │ ├── 25.gif
│ │ │ │ │ ├── 26.gif
│ │ │ │ │ ├── 27.gif
│ │ │ │ │ ├── 28.gif
│ │ │ │ │ ├── 29.gif
│ │ │ │ │ ├── 3.gif
│ │ │ │ │ ├── 30.gif
│ │ │ │ │ ├── 31.gif
│ │ │ │ │ ├── 32.gif
│ │ │ │ │ ├── 33.gif
│ │ │ │ │ ├── 34.gif
│ │ │ │ │ ├── 35.gif
│ │ │ │ │ ├── 36.gif
│ │ │ │ │ ├── 37.gif
│ │ │ │ │ ├── 38.gif
│ │ │ │ │ ├── 39.gif
│ │ │ │ │ ├── 4.gif
│ │ │ │ │ ├── 40.gif
│ │ │ │ │ ├── 41.gif
│ │ │ │ │ ├── 42.gif
│ │ │ │ │ ├── 43.gif
│ │ │ │ │ ├── 44.gif
│ │ │ │ │ ├── 45.gif
│ │ │ │ │ ├── 46.gif
│ │ │ │ │ ├── 47.gif
│ │ │ │ │ ├── 48.gif
│ │ │ │ │ ├── 49.gif
│ │ │ │ │ ├── 5.gif
│ │ │ │ │ ├── 50.gif
│ │ │ │ │ ├── 51.gif
│ │ │ │ │ ├── 52.gif
│ │ │ │ │ ├── 53.gif
│ │ │ │ │ ├── 54.gif
│ │ │ │ │ ├── 55.gif
│ │ │ │ │ ├── 56.gif
│ │ │ │ │ ├── 57.gif
│ │ │ │ │ ├── 58.gif
│ │ │ │ │ ├── 59.gif
│ │ │ │ │ ├── 6.gif
│ │ │ │ │ ├── 60.gif
│ │ │ │ │ ├── 61.gif
│ │ │ │ │ ├── 62.gif
│ │ │ │ │ ├── 63.gif
│ │ │ │ │ ├── 64.gif
│ │ │ │ │ ├── 65.gif
│ │ │ │ │ ├── 66.gif
│ │ │ │ │ ├── 67.gif
│ │ │ │ │ ├── 68.gif
│ │ │ │ │ ├── 69.gif
│ │ │ │ │ ├── 7.gif
│ │ │ │ │ ├── 70.gif
│ │ │ │ │ ├── 71.gif
│ │ │ │ │ ├── 8.gif
│ │ │ │ │ └── 9.gif
│ │ │ │ └── logo.png
│ │ │ ├── jquery-1.11.0.min.js
│ │ │ ├── jquery.PrintArea.js
│ │ │ ├── jquery.table2excel.min.js
│ │ │ ├── js
│ │ │ │ ├── data.js
│ │ │ │ ├── index.js
│ │ │ │ ├── jquery-1.11.0.min.js
│ │ │ │ ├── jquery.PrintArea.js
│ │ │ │ ├── jquery.qrcode.min.js
│ │ │ │ ├── jquery.table2excel.js
│ │ │ │ ├── jquery.table2excel.min.js
│ │ │ │ ├── province.js
│ │ │ │ └── tbdValidate.js
│ │ │ ├── json
│ │ │ │ ├── index.json
│ │ │ │ ├── project.json
│ │ │ │ ├── src.json
│ │ │ │ └── user.json
│ │ │ ├── lay
│ │ │ │ └── modules
│ │ │ │ │ ├── carousel.js
│ │ │ │ │ ├── code.js
│ │ │ │ │ ├── colorpicker.js
│ │ │ │ │ ├── element.js
│ │ │ │ │ ├── flow.js
│ │ │ │ │ ├── form.js
│ │ │ │ │ ├── jquery.js
│ │ │ │ │ ├── laydate.js
│ │ │ │ │ ├── layedit.js
│ │ │ │ │ ├── layer.js
│ │ │ │ │ ├── laypage.js
│ │ │ │ │ ├── laytpl.js
│ │ │ │ │ ├── mobile.js
│ │ │ │ │ ├── rate.js
│ │ │ │ │ ├── slider.js
│ │ │ │ │ ├── table.js
│ │ │ │ │ ├── transfer.js
│ │ │ │ │ ├── tree.js
│ │ │ │ │ ├── upload.js
│ │ │ │ │ └── util.js
│ │ │ ├── layui.all.js
│ │ │ └── layui.js
│ │ ├── favicon.ico
│ │ ├── image
│ │ │ └── logo.png
│ │ ├── js
│ │ │ ├── index.js
│ │ │ └── user
│ │ │ │ ├── add.js
│ │ │ │ ├── edit.js
│ │ │ │ └── index.js
│ │ └── view
│ │ │ ├── include.html
│ │ │ ├── index.html
│ │ │ ├── login.html
│ │ │ ├── main
│ │ │ ├── aa.html
│ │ │ └── main.html
│ │ │ └── user
│ │ │ ├── add.html
│ │ │ ├── edit.html
│ │ │ ├── index.html
│ │ │ └── print.html
│ ├── libmysql.dll
│ ├── mvc.ini
│ ├── sqlite.db
│ ├── 服务卸载.bat
│ └── 服务安装.bat
└── Service
│ ├── IndexService.pas
│ ├── MainService.pas
│ ├── Map
│ ├── SQLMap.pas
│ ├── ServiceMap.pas
│ └── TableMap.pas
│ ├── RoleService.pas
│ └── UserService.pas
├── LICENSE
├── MVC5.0
├── CrossSocket
│ ├── BSD.kqueue.pas
│ ├── Linux.epoll.pas
│ ├── Net.CrossHttpMiddleware.pas
│ ├── Net.CrossHttpParams.pas
│ ├── Net.CrossHttpRouter.pas
│ ├── Net.CrossHttpServer.pas
│ ├── Net.CrossHttpUtils.pas
│ ├── Net.CrossServer.pas
│ ├── Net.CrossSocket.Base.pas
│ ├── Net.CrossSocket.Epoll.pas
│ ├── Net.CrossSocket.Iocp.pas
│ ├── Net.CrossSocket.Kqueue.pas
│ ├── Net.CrossSocket.pas
│ ├── Net.CrossSslDemoCert.pas
│ ├── Net.CrossSslServer.pas
│ ├── Net.CrossSslSocket.Base.pas
│ ├── Net.CrossSslSocket.MbedTls.pas
│ ├── Net.CrossSslSocket.OpenSSL.pas
│ ├── Net.CrossSslSocket.pas
│ ├── Net.CrossWebSocketServer.pas
│ ├── Net.MbedBIO.pas
│ ├── Net.MbedTls.pas
│ ├── Net.OpenSSL.pas
│ ├── Net.Posix.inc
│ ├── Net.RawSocket.pas
│ ├── Net.SocketAPI.pas
│ ├── Net.Winsock.inc
│ ├── Net.Winsock2.pas
│ ├── Net.Wship6.pas
│ ├── Utils.DateTime.pas
│ ├── Utils.Logger.pas
│ ├── Utils.RegEx.pas
│ └── Utils.Utils.pas
├── SDK
│ ├── MVC.App.pas
│ ├── MVC.Config.pas
│ ├── MVC.Controller.pas
│ ├── MVC.CrossCommon.pas
│ ├── MVC.DB.pas
│ ├── MVC.DES.pas
│ ├── MVC.DM.pas
│ ├── MVC.DSQuery.pas
│ ├── MVC.DataSet.pas
│ ├── MVC.HttpCross.pas
│ ├── MVC.HttpMmt.pas
│ ├── MVC.JSON.pas
│ ├── MVC.JWT.pas
│ ├── MVC.LogUnit.pas
│ ├── MVC.Main.dfm
│ ├── MVC.Main.pas
│ ├── MVC.MmtHttp.pas
│ ├── MVC.Net.pas
│ ├── MVC.Route.pas
│ ├── MVC.Service.pas
│ ├── MVC.Session.pas
│ ├── MVC.Tool.pas
│ ├── MVC.TplParser.pas
│ ├── MVC.TplUnit.pas
│ ├── MVC.Verify.pas
│ ├── MVC.WINServer.dfm
│ ├── MVC.WINServer.pas
│ └── _版本.txt
├── mORMot
│ ├── Delphinus.Info.json
│ ├── Delphinus.Install.json
│ ├── PasZip.pas
│ ├── ReadMe.txt
│ ├── SynBidirSock.pas
│ ├── SynBigTable.pas
│ ├── SynBz.pas
│ ├── SynBzPas.pas
│ ├── SynCommons.pas
│ ├── SynCrtSock.pas
│ ├── SynCrypto.pas
│ ├── SynCurl.pas
│ ├── SynDB.pas
│ ├── SynDBDataset.pas
│ ├── SynDBFirebird.pas
│ ├── SynDBMidasVCL.pas
│ ├── SynDBODBC.pas
│ ├── SynDBOracle.pas
│ ├── SynDBPostgres.pas
│ ├── SynDBRemote.pas
│ ├── SynDBSQLite3.pas
│ ├── SynDBVCL.pas
│ ├── SynDBZeos.pas
│ ├── SynDoubleToText.inc
│ ├── SynDprUses.inc
│ ├── SynEcc.pas
│ ├── SynEcc32O2.obj
│ ├── SynEcc32asm.inc
│ ├── SynEcc64O2.o
│ ├── SynFPCCMemAligned.pas
│ ├── SynFPCLinux.pas
│ ├── SynFPCMetaFile.pas
│ ├── SynFPCSock.pas
│ ├── SynFPCSockLIBC.inc
│ ├── SynFPCTypInfo.pas
│ ├── SynFPCx64MM.pas
│ ├── SynFastWideString.pas
│ ├── SynGSSAPI.pas
│ ├── SynGSSAPIAuth.pas
│ ├── SynGdiPlus.pas
│ ├── SynKylix.pas
│ ├── SynLZ.pas
│ ├── SynLZO.pas
│ ├── SynLizard.pas
│ ├── SynLog.pas
│ ├── SynMemoEx.pas
│ ├── SynMongoDB.pas
│ ├── SynMustache.pas
│ ├── SynOleDB.pas
│ ├── SynOpenSSL.pas
│ ├── SynPdf.pas
│ ├── SynProtoRTSPHTTP.pas
│ ├── SynProtoRelay.pas
│ ├── SynSM.inc
│ ├── SynSM.pas
│ ├── SynSMAPI.pas
│ ├── SynSQLite3.pas
│ ├── SynSQLite3RegEx.pas
│ ├── SynSQLite3Static.pas
│ ├── SynSSPI.pas
│ ├── SynSSPIAuth.pas
│ ├── SynScaleMM.pas
│ ├── SynSelfTests.pas
│ ├── SynTBB.pas
│ ├── SynTable.pas
│ ├── SynTaskDialog.RES
│ ├── SynTaskDialog.pas
│ ├── SynTaskDialog.rc
│ ├── SynTests.pas
│ ├── SynVirtualDataSet.pas
│ ├── SynWinSock.pas
│ ├── SynZLibSSE.pas
│ ├── SynZip.pas
│ ├── SynZipFiles.pas
│ ├── Synopse.inc
│ ├── SynopseCommit.inc
│ ├── build-fpc-linux64.sh
│ ├── bunzipasm.inc
│ ├── compil.bat
│ ├── compilFPC.bat
│ ├── compilpil.bat
│ ├── crc32c64.obj
│ ├── deflate.obj
│ ├── lizard.dpr
│ ├── lizard.lpi
│ ├── padlock.o
│ ├── padlock_aes.o
│ ├── padlock_sha.o
│ ├── sha512-x64sse4.obj
│ ├── sha512-x86.obj
│ ├── trees.obj
│ ├── vista.RES
│ ├── vista.manifest
│ ├── vista.rc
│ ├── vistaAdm.RES
│ ├── vistaAdm.manifest
│ └── vistaAdm.rc
└── 更新记录.txt
├── README.md
└── 加密工具.zip
/Demo/Controller/BaseController.pas:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Controller/BaseController.pas
--------------------------------------------------------------------------------
/Demo/Controller/IndexController.pas:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Controller/IndexController.pas
--------------------------------------------------------------------------------
/Demo/Controller/MainController.pas:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Controller/MainController.pas
--------------------------------------------------------------------------------
/Demo/Controller/UserController.pas:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Controller/UserController.pas
--------------------------------------------------------------------------------
/Demo/Project/WebDemo.dpr:
--------------------------------------------------------------------------------
1 | program WebDemo;
2 | {$I mvc.inc}
3 |
4 | uses
5 | MVC.App,
6 | BaseController in '..\Controller\BaseController.pas',
7 | IndexController in '..\Controller\IndexController.pas',
8 | MainController in '..\Controller\MainController.pas',
9 | IndexService in '..\Service\IndexService.pas',
10 | MainService in '..\Service\MainService.pas',
11 | UserController in '..\Controller\UserController.pas',
12 | UserService in '..\Service\UserService.pas',
13 | RoleService in '..\Service\RoleService.pas',
14 | SQLMap in '..\Service\Map\SQLMap.pas',
15 | TableMap in '..\Service\Map\TableMap.pas',
16 | ServiceMap in '..\Service\Map\ServiceMap.pas';
17 |
18 | {$R *.res}
19 |
20 | begin
21 | MVCApp.Run();
22 | end.
23 |
24 |
--------------------------------------------------------------------------------
/Demo/Project/WebDemo.dproj.local:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 2022-01-18 22:27:14.000.205,D:\我的文档\Embarcadero\Studio\Projects\Unit1.dfm=D:\my\DFinal\MVC.Form.dfm
5 | 2022-01-18 22:27:24.000.844,D:\我的文档\Embarcadero\Studio\Projects\Project1.dproj=D:\my\DFinal\DFinal.dproj
6 | 2022-01-18 22:31:02.000.651,D:\my\DFinal\Project\DFinal.dproj=D:\my\DFinal\DFinal.dproj
7 | 2022-01-18 22:31:14.000.991,D:\my\DFinal\Command\MVC.Form.dfm=D:\my\DFinal\MVC.Form.dfm
8 | 2022-01-18 22:34:30.000.426,D:\my\DFinal\Command\MVC.MmtHttp.pas=D:\my\DFinal\Project\Unit1.pas
9 | 2022-01-18 23:06:31.000.041,D:\my\DFinal\Command\MVC.pas=D:\my\DFinal\Project\Unit1.pas
10 | 2022-01-18 23:06:42.000.425,D:\my\DFinal\Command\MVC.JSON.JSON=D:\my\DFinal\Command\MVC.JSON
11 | 2022-01-19 17:13:32.000.923,D:\my\DFinal\Command\MVC.MmtHttp.pas=D:\my\DFinal\Command\MVC.HttpMmt.pas
12 | 2022-01-23 10:09:05.000.871,D:\my\DFinal\Project\Project\DFinal.dproj=D:\my\DFinal\Project\DFinal.dproj
13 | 2022-01-23 10:09:53.000.648,D:\my\DFinal\Project\DFinal.dproj=D:\my\DFinal\Project\Project\DFinal.dproj
14 | 2022-01-26 11:11:09.000.999,D:\my\DFinal\Command\MVC.Command.pas=D:\my\DFinal\Command\MVC.App.pas
15 | 2022-01-27 13:07:30.000.275,D:\my\DFinal\Command\MVC.Command.pas=D:\my\DFinal\Command\MVC.App.pas
16 | 2022-01-30 13:36:00.000.696,D:\my\DFinal\Command\MVC.DB=D:\my\DFinal\Command\MVC.DB.DB
17 | 2022-02-01 22:02:33.000.922,D:\my\DFinal\Command\MVC.DM1.pas=D:\my\DFinal\Project\Unit1.pas
18 | 2022-02-03 18:47:08.000.649,D:\my\DFinal\Command\MVC.SQL=D:\my\DFinal\Command\MVC.SQL.SQL
19 | 2022-02-03 20:33:34.000.848,D:\my\DFinal\Service\TableMap.pas=D:\my\DFinal\Service\Table\TableMap.pas
20 | 2022-02-08 09:31:39.000.335,D:\my\DFinal\Config\MVC.Redis.pas=D:\my\DFinal\Project\Unit1.pas
21 | 2022-02-17 20:16:47.000.620,D:\my\MVC-demo\Project\DFinal.dproj=D:\my\MVC-demo\Project\MVCDemo.dproj
22 | 2022-02-19 19:30:27.000.501,D:\my\MVC5.0.1-layui\Project\MVCTest.dproj=D:\my\MVC5.0.1-layui\Project\MVCDemo.dproj
23 | 2022-02-19 19:51:51.000.214,D:\my\MVC5.0.1-layui\Project\MVCTest.dproj=D:\my\MVC5.0.1-layui\Project\MVCDemo.dproj
24 | 2022-02-21 15:48:27.000.144,D:\my\MVC5.0-Demo\WebDemo\Project\MVCDemo.dproj=D:\my\MVC5.0-Demo\WebDemo\Project\WebDemo.dproj
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/Demo/Project/WebDemo.identcache:
--------------------------------------------------------------------------------
1 | 9D:\GitHub\DelphiWebMVC\Demo\Controller\UserController.pas 6D:\GitHub\DelphiWebMVC\Demo\Service\Map\ServiceMap.pas 4D:\GitHub\DelphiWebMVC\Demo\Service\Map\TableMap.pas 3D:\GitHub\DelphiWebMVC\Demo\Service\RoleService.pas 4D:\GitHub\DelphiWebMVC\Demo\Service\IndexService.pas /D:\GitHub\DelphiWebMVC\Demo\Project\WebDemo.dpr 9D:\GitHub\DelphiWebMVC\Demo\Controller\BaseController.pas :D:\GitHub\DelphiWebMVC\Demo\Controller\IndexController.pas 3D:\GitHub\DelphiWebMVC\Demo\Service\UserService.pas 2D:\GitHub\DelphiWebMVC\Demo\Service\Map\SQLMap.pas 9D:\GitHub\DelphiWebMVC\Demo\Controller\MainController.pas 3D:\GitHub\DelphiWebMVC\Demo\Service\MainService.pas
--------------------------------------------------------------------------------
/Demo/Project/WebDemo.res:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Project/WebDemo.res
--------------------------------------------------------------------------------
/Demo/Project/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Project/favicon.ico
--------------------------------------------------------------------------------
/Demo/Project/mvc.inc:
--------------------------------------------------------------------------------
1 |
2 | {$STRONGLINKTYPES ON} //禁止删除
3 | {.$APPTYPE CONSOLE} //控制台模式
4 | {.$DEFINE SERVICE} //生成windows服务编译条件
5 | {.$DEFINE LOGDEBUG} //调试日志开关,正式发布关闭
6 | {.$DEFINE CROSSSOCKET} //使用跨平台Cross-Socket库
7 |
8 |
9 | {----------------------配置说明--------------------}
10 | ///////////////////////////////////////////////////
11 | //1.生成windows服务,
12 | //2.关闭{$APPTYPE CONSOLE},打开{$DEFINE SERVICE}
13 | //3.在config文件中设置WinService参数。
14 | ///////////////////////////////////////////////////
15 |
16 |
17 | ///////////////////////////////////////////////////
18 | //1.进行linux等跨平台开发
19 | //2.打开{$APPTYPE CONSOLE},{$DEFINE CROSSSOCKET}
20 | ///////////////////////////////////////////////////
21 | {----------------------配置说明--------------------}
22 |
--------------------------------------------------------------------------------
/Demo/Publish/Resources/config.json:
--------------------------------------------------------------------------------
1 | {
2 | "AppTitle":"MVC演示Demo",
3 |
4 | "Server": {
5 | "Port": "8004",
6 | "Compress":"deflate",
7 | "HTTPQueueLength":1000,
8 | "ChildThreadCount":10
9 | },
10 | "WinService":{
11 | "Name":"myMVCService",
12 | "DisplayName":"MVC演示Demo服务描述",
13 | "ServiceType":"stWin32",
14 | "StartType":"stAuto"
15 | },
16 | "Redis":{
17 | "Host":"127.0.0.1",
18 | "Port":6379,
19 | "PassWord":"admin",
20 | "InitSize":5,
21 | "TimeOut":60,
22 | "ReadTimeOut":10
23 | },
24 | "Config":{
25 | "auto_start":true,
26 | "APP":"",
27 | "leftFmt":"#{",
28 | "rightFmt":"}",
29 | "session_timer":30,
30 | "open_log":true,
31 | "open_debug":true,
32 | "Corss_Origin":{
33 | "Allow_Origin":"*",
34 | "Allow_Headers":"*",
35 | "Allow_Method":"*",
36 | "Allow_Credentials":true
37 | },
38 | "directory":[
39 | {
40 | "path":"/view/",
41 | "permission":false
42 | }
43 | ]
44 | },
45 | "DBConfig":{
46 | "db1": {
47 | "DriverID": "SQLite",
48 | "Database": "sqlite.db",
49 | "User_Name": "",
50 | "Password": "",
51 | "OpenMode": "CreateUTF8",
52 | "Pooled": "True",
53 | "POOL_CleanupTimeout": "30000",
54 | "POOL_ExpireTimeout": "90000",
55 | "POOL_MaximumItems": "50"
56 | },
57 | "db2": {
58 | "DriverID": "MySQL",
59 | "Server": "127.0.0.1",
60 | "Port": "3306",
61 | "Database": "test",
62 | "User_Name": "root",
63 | "Password": "root",
64 | "CharacterSet": "utf8",
65 | "Compress": "False",
66 | "Pooled": "True",
67 | "POOL_CleanupTimeout": "30000",
68 | "POOL_ExpireTimeout": "90000",
69 | "POOL_MaximumItems": "50"
70 | },
71 |
72 | "db5": {
73 | "DriverID": "Ora",
74 | "CharacterSet": "UTF8",
75 | "Database": "192.168.1.56:1521/orcl",
76 | "User_Name": "soft",
77 | "Password": "000000",
78 | "Pooled": "True",
79 | "POOL_CleanupTimeout": "30000",
80 | "POOL_ExpireTimeout": "90000",
81 | "POOL_MaximumItems": "50"
82 | },
83 | "db3": {
84 | "DriverID": "MSSQL",
85 | "Server": "192.168.1.56",
86 | "Port": "1433",
87 | "Database": "test",
88 | "User_Name": "sa",
89 | "Password": "sa",
90 | "Pooled": "True",
91 | "POOL_CleanupTimeout": "30000",
92 | "POOL_ExpireTimeout": "90000",
93 | "POOL_MaximumItems": "50"
94 | }
95 |
96 |
97 | }
98 | }
--------------------------------------------------------------------------------
/Demo/Publish/Resources/mime.json:
--------------------------------------------------------------------------------
1 | [{
2 | "Extensions": "css",
3 | "MimeType": "text/css"
4 | },
5 | {
6 | "Extensions": "html;htm",
7 | "MimeType": "text/html"
8 | },
9 | {
10 | "Extensions": "js",
11 | "MimeType": "text/javascript"
12 | },
13 | {
14 | "Extensions": "jpeg;jpg",
15 | "MimeType": "image/jpeg"
16 | },
17 | {
18 | "Extensions": "png",
19 | "MimeType": "image/x-png"
20 | },
21 | {
22 | "Extensions": "ico",
23 | "MimeType": "image/x-icon"
24 | },
25 | {
26 | "Extensions": "gif",
27 | "MimeType": "image/gif"
28 | },
29 | {
30 | "Extensions": "bmp",
31 | "MimeType": "image/bmp"
32 | },
33 | {
34 | "Extensions": "xml",
35 | "MimeType": "text/xml"
36 | },
37 | {
38 | "Extensions": "json",
39 | "MimeType": "text/json"
40 | },
41 | {
42 | "Extensions": "svg",
43 | "MimeType": "image/svg+xml"
44 | },
45 | {
46 | "Extensions": "woff",
47 | "MimeType": "application/font-woff"
48 | },
49 | {
50 | "Extensions": "woff2",
51 | "MimeType": "application/font-woff2"
52 | },
53 | {
54 | "Extensions": "rtx",
55 | "MimeType": "text/richtext"
56 | },
57 | {
58 | "Extensions": "zip",
59 | "MimeType": "application/x-zip-compressed"
60 | },
61 | {
62 | "Extensions": "txt",
63 | "MimeType": "text/plain"
64 | },
65 | {
66 | "Extensions": "svg;svgz",
67 | "MimeType": "image/svg+xml"
68 | },
69 | {
70 | "Extensions": "apk",
71 | "MimeType": "application/vnd.android.package-archive"
72 | }
73 | ]
--------------------------------------------------------------------------------
/Demo/Publish/SQL/user.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | *
4 | users
5 |
6 |
7 | id
8 |
9 |
10 |
11 |
12 | users
13 |
14 | id= <#if #{_Param.name} eq '管理员'>2 <#else> 1#if>
15 |
16 |
17 |
21 |
22 | users
23 |
24 | name=#{_Param.name|s},
25 | sex=#{_Param.sex|s},
26 | age=#{_Param.age},
27 | ntime= now()
28 |
29 |
30 |
31 |
32 | users
33 |
34 | name=#{_param.name|s},
35 | sex=#{_Param.sex|s},
36 | age=#{_Param.age}
37 |
38 | id=#{_Param.id}
39 |
40 |
41 |
42 | users
43 | id=#{_Param.id}
44 |
45 |
46 | select * from users
47 |
48 |
49 | call testProc(#{_param.id});
50 |
51 |
52 |
--------------------------------------------------------------------------------
/Demo/Publish/SQLite3.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/SQLite3.dll
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/404.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | 404
8 |
9 |
10 | 404
11 | (┬_┬) 网页被外星人劫持了(┬_┬)
12 | #{message}
13 |
14 |
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/500.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | 500
8 |
9 |
10 | 500
11 | (┬_┬) 网页被外星人劫持了(┬_┬)
12 | #{message}
13 |
14 |
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/css/main.css:
--------------------------------------------------------------------------------
1 | .bitian{ color:#dc2b2b;}
2 | .layui-layout-admin .layui-body {
3 | /*去掉底部固定区域44px*/
4 | bottom: 0px;
5 | }
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/css/modules/code.css:
--------------------------------------------------------------------------------
1 | /** layui-v2.5.6 MIT License By https://www.layui.com */
2 | html #layuicss-skincodecss{display:none;position:absolute;width:1989px}.layui-code-h3,.layui-code-view{position:relative;font-size:12px}.layui-code-view{display:block;margin:10px 0;padding:0;border:1px solid #e2e2e2;border-left-width:6px;background-color:#F2F2F2;color:#333;font-family:Courier New}.layui-code-h3{padding:0 10px;height:32px;line-height:32px;border-bottom:1px solid #e2e2e2}.layui-code-h3 a{position:absolute;right:10px;top:0;color:#999}.layui-code-view .layui-code-ol{position:relative;overflow:auto}.layui-code-view .layui-code-ol li{position:relative;margin-left:45px;line-height:20px;padding:0 5px;border-left:1px solid #e2e2e2;list-style-type:decimal-leading-zero;*list-style-type:decimal;background-color:#fff}.layui-code-view pre{margin:0}.layui-code-notepad{border:1px solid #0C0C0C;border-left-color:#3F3F3F;background-color:#0C0C0C;color:#C2BE9E}.layui-code-notepad .layui-code-h3{border-bottom:none}.layui-code-notepad .layui-code-ol li{background-color:#3F3F3F;border-left:none}
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/css/modules/layer/default/icon-ext.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/css/modules/layer/default/icon-ext.png
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/css/modules/layer/default/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/css/modules/layer/default/icon.png
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/css/modules/layer/default/loading-0.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/css/modules/layer/default/loading-0.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/css/modules/layer/default/loading-1.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/css/modules/layer/default/loading-1.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/css/modules/layer/default/loading-2.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/css/modules/layer/default/loading-2.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/font/iconfont.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/font/iconfont.eot
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/font/iconfont.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/font/iconfont.ttf
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/font/iconfont.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/font/iconfont.woff
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/font/iconfont.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/font/iconfont.woff2
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/0.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/0.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/1.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/1.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/10.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/10.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/11.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/11.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/12.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/12.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/13.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/13.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/14.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/14.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/15.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/15.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/16.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/16.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/17.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/17.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/18.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/18.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/19.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/19.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/2.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/2.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/20.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/20.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/21.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/21.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/22.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/22.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/23.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/23.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/24.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/24.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/25.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/25.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/26.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/26.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/27.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/27.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/28.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/28.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/29.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/29.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/3.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/3.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/30.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/30.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/31.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/31.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/32.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/32.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/33.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/33.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/34.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/34.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/35.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/35.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/36.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/36.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/37.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/37.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/38.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/38.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/39.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/39.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/4.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/4.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/40.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/40.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/41.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/41.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/42.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/42.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/43.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/43.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/44.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/44.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/45.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/45.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/46.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/46.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/47.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/47.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/48.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/48.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/49.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/49.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/5.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/5.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/50.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/50.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/51.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/51.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/52.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/52.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/53.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/53.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/54.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/54.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/55.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/55.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/56.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/56.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/57.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/57.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/58.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/58.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/59.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/59.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/6.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/6.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/60.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/60.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/61.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/61.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/62.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/62.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/63.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/63.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/64.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/64.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/65.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/65.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/66.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/66.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/67.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/67.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/68.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/68.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/69.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/69.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/7.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/7.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/70.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/70.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/71.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/71.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/8.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/8.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/face/9.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/face/9.gif
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/images/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pearroom/DelphiWebMVC/6bf9825ef307a5d5d8f189ddb651249d3a9173ee/Demo/Publish/WebRoot/assets/images/logo.png
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/jquery.PrintArea.js:
--------------------------------------------------------------------------------
1 | (function ($) {
2 | var counter = 0;
3 | var modes = { iframe: "iframe", popup: "popup" };
4 | var defaults = { mode: modes.iframe,
5 | popHt: 500,
6 | popWd: 400,
7 | popX: 200,
8 | popY: 200,
9 | popTitle: '',
10 | popClose: false
11 | };
12 |
13 | var settings = {}; //global settings
14 |
15 | $.fn.printArea = function (options) {
16 | $.extend(settings, defaults, options);
17 |
18 | counter++;
19 | var idPrefix = "printArea_";
20 | $("[id^=" + idPrefix + "]").remove();
21 | var ele = getFormData($(this));
22 |
23 | settings.id = idPrefix + counter;
24 |
25 | var writeDoc;
26 | var printWindow;
27 |
28 | switch (settings.mode) {
29 | case modes.iframe:
30 | var f = new Iframe();
31 | writeDoc = f.doc;
32 | printWindow = f.contentWindow || f;
33 | break;
34 | case modes.popup:
35 | printWindow = new Popup();
36 | writeDoc = printWindow.doc;
37 | }
38 |
39 | writeDoc.open();
40 | writeDoc.write(docType() + "" + getHead() + getBody(ele) + "");
41 | writeDoc.close();
42 |
43 | printWindow.focus();
44 | printWindow.print();
45 |
46 | if (settings.mode == modes.popup && settings.popClose)
47 | printWindow.close();
48 | }
49 |
50 | function docType() {
51 | if (settings.mode == modes.iframe || !settings.strict) return "";
52 |
53 | var standard = settings.strict == false ? " Trasitional" : "";
54 | var dtd = settings.strict == false ? "loose" : "strict";
55 |
56 | return '';
57 | }
58 |
59 | function getHead() {
60 | var head = "" + settings.popTitle + "";
61 | $(document).find("link")
62 | .filter(function () {
63 | return $(this).attr("rel").toLowerCase() == "stylesheet";
64 | })
65 | .filter(function () { // this filter contributed by "mindinquiring"
66 | var media = $(this).attr("media");
67 | if (media == undefined) {
68 | return false;
69 | }
70 | else {
71 | return (media.toLowerCase() == "" || media.toLowerCase() == "print");
72 | }
73 | })
74 | .each(function () {
75 | head += '';
76 | });
77 | head += "";
78 | return head;
79 | }
80 |
81 | function getBody(printElement) {
82 | return '' + $(printElement).html() + '
';
83 | }
84 |
85 | function getFormData(ele) {
86 | $("input,select,textarea", ele).each(function () {
87 | // In cases where radio, checkboxes and select elements are selected and deselected, and the print
88 | // button is pressed between select/deselect, the print screen shows incorrectly selected elements.
89 | // To ensure that the correct inputs are selected, when eventually printed, we must inspect each dom element
90 | var type = $(this).attr("type");
91 | if (type == "radio" || type == "checkbox") {
92 | if ($(this).is(":not(:checked)")) this.removeAttribute("checked");
93 | else this.setAttribute("checked", true);
94 | }
95 | else if (type == "text")
96 | this.setAttribute("value", $(this).val());
97 | else if (type == "select-multiple" || type == "select-one")
98 | $(this).find("option").each(function () {
99 | if ($(this).is(":not(:selected)")) this.removeAttribute("selected");
100 | else this.setAttribute("selected", true);
101 | });
102 | else if (type == "textarea") {
103 | var v = $(this).attr("value");
104 | if ($.browser.mozilla) {
105 | if (this.firstChild) this.firstChild.textContent = v;
106 | else this.textContent = v;
107 | }
108 | else this.innerHTML = v;
109 | }
110 | });
111 | return ele;
112 | }
113 |
114 | function Iframe() {
115 | var frameId = settings.id;
116 | var iframeStyle = 'border:0;position:absolute;width:0px;height:0px;left:0px;top:0px;';
117 | var iframe;
118 |
119 | try {
120 | iframe = document.createElement('iframe');
121 | document.body.appendChild(iframe);
122 | $(iframe).attr({ style: iframeStyle, id: frameId, src: "" });
123 | iframe.doc = null;
124 | iframe.doc = iframe.contentDocument ? iframe.contentDocument : (iframe.contentWindow ? iframe.contentWindow.document : iframe.document);
125 | }
126 | catch (e) { throw e + ". iframes may not be supported in this browser."; }
127 |
128 | if (iframe.doc == null) throw "Cannot find document.";
129 |
130 | return iframe;
131 | }
132 |
133 | function Popup() {
134 | var windowAttr = "location=no,statusbar=no,directories=no,menubar=no,titlebar=no,toolbar=no,dependent=no";
135 | windowAttr += ",width=595px,height=842px,top=0,left=0,toolbar=no,scrollbars=no,personalbar=no";
136 | windowAttr += ",resizable=yes,screenX=" + settings.popX + ",screenY=" + settings.popY + "";
137 |
138 | var newWin = window.open("", "_blank", windowAttr);
139 |
140 | newWin.doc = newWin.document;
141 |
142 | return newWin;
143 | }
144 |
145 | })(jQuery);
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/jquery.table2excel.min.js:
--------------------------------------------------------------------------------
1 | /*
2 | * jQuery table2excel - v1.0.2
3 | * jQuery plugin to export an .xls file in browser from an HTML table
4 | * https://github.com/rainabba/jquery-table2excel
5 | *
6 | * Made by rainabba
7 | * Under MIT License
8 | */
9 | !function(a,b,c,d){function e(b,c){this.element=b,this.settings=a.extend({},h,c),this._defaults=h,this._name=g,this.init()}function f(a){return(a.filename?a.filename:"table2excel")+""}var g="table2excel",h={exclude:".noExl",name:"Table2Excel"};e.prototype={init:function(){var b=this;b.template={head:'",table:{head:""},foot:""},b.tableRows=[],a(b.element).each(function(c,d){var e="";a(d).find("tr").not(b.settings.exclude).each(function(b,c){e+=""+a(c).html()+"
"}),b.tableRows.push(e)}),b.tableToExcel(b.tableRows,b.settings.name)},tableToExcel:function(d,e){var g,h,i,j=this,k="";if(j.uri="data:application/vnd.ms-excel;base64,",j.base64=function(a){return b.btoa(unescape(encodeURIComponent(a)))},j.format=function(a,b){return a.replace(/{(\w+)}/g,function(a,c){return b[c]})},j.ctx={worksheet:e||"Worksheet",table:d},k=j.template.head,a.isArray(d))for(g in d)k+=j.template.sheet.head+"Table"+g+j.template.sheet.tail;if(k+=j.template.mid,a.isArray(d))for(g in d)k+=j.template.table.head+"{table"+g+"}"+j.template.table.tail;k+=j.template.foot;for(g in d)j.ctx["table"+g]=d[g];if(delete j.ctx.table,"undefined"!=typeof msie&&msie>0||navigator.userAgent.match(/Trident.*rv\:11\./))if("undefined"!=typeof Blob){k=[k];var l=new Blob(k,{type:"text/html"});b.navigator.msSaveBlob(l,f(j.settings))}else txtArea1.document.open("text/html","replace"),txtArea1.document.write(k),txtArea1.document.close(),txtArea1.focus(),sa=txtArea1.document.execCommand("SaveAs",!0,f(j.settings));else h=j.uri+j.base64(j.format(k,j.ctx)),i=c.createElement("a"),i.download=f(j.settings),i.href=h,i.click();return!0}},a.fn[g]=function(b){var c=this;return c.each(function(){a.data(c,"plugin_"+g)||a.data(c,"plugin_"+g,new e(this,b))}),c}}(jQuery,window,document);
--------------------------------------------------------------------------------
/Demo/Publish/WebRoot/assets/js/index.js:
--------------------------------------------------------------------------------
1 | var $,tab,skyconsWeather;
2 | layui.config({
3 | base : "js/"
4 | }).use(['bodyTab','form','element','layer','jquery'],function(){
5 | var form = layui.form(),
6 | layer = layui.layer,
7 | element = layui.element();
8 | $ = layui.jquery;
9 | tab = layui.bodyTab();
10 |
11 | //锁屏
12 | function lockPage(){
13 | layer.open({
14 | title : false,
15 | type : 1,
16 | content : $("#lock-box"),
17 | closeBtn : 0,
18 | shade : 0.9
19 | })
20 | }
21 | $(".lockcms").on("click",function(){
22 | window.sessionStorage.setItem("lockcms",true);
23 | lockPage();
24 | })
25 | // 判断是否显示锁屏
26 | if(window.sessionStorage.getItem("lockcms") == "true"){
27 | lockPage();
28 | }
29 | // 解锁
30 | $("#unlock").on("click",function(){
31 | if($(this).siblings(".admin-header-lock-input").val() == ''){
32 | layer.msg("请输入解锁密码!");
33 | }else{
34 | if($(this).siblings(".admin-header-lock-input").val() == "123456"){
35 | window.sessionStorage.setItem("lockcms",false);
36 | $(this).siblings(".admin-header-lock-input").val('');
37 | layer.closeAll("page");
38 | }else{
39 | layer.msg("密码错误,请重新输入!");
40 | }
41 | }
42 | });
43 | $(document).on('keydown', function() {
44 | if(event.keyCode == 13) {
45 | $("#unlock").click();
46 | }
47 | });
48 |
49 | //手机设备的简单适配
50 | var treeMobile = $('.site-tree-mobile'),
51 | shadeMobile = $('.site-mobile-shade')
52 |
53 | treeMobile.on('click', function(){
54 | $('body').addClass('site-mobile');
55 | });
56 |
57 | shadeMobile.on('click', function(){
58 | $('body').removeClass('site-mobile');
59 | });
60 |
61 | // 添加新窗口
62 | $(".layui-nav .layui-nav-item a").on("click",function(){
63 | addTab($(this));
64 | $(this).parent("li").siblings().removeClass("layui-nav-itemed");
65 | })
66 |
67 | //公告层
68 | function showNotice(){
69 | layer.open({
70 | type: 1,
71 | title: "系统公告", //不显示标题栏
72 | closeBtn: false,
73 | area: '310px',
74 | shade: 0.8,
75 | id: 'LAY_layuipro', //设定一个id,防止重复弹出
76 | btn: ['火速围观'],
77 | moveType: 1, //拖拽模式,0或者1
78 | content: '最近偶然发现贤心大神的layui框架,瞬间被他的完美样式所吸引,虽然功能不算强大,但毕竟是一个刚刚出现的框架,后面会慢慢完善的。很早之前就想做一套后台模版,但是感觉bootstrop代码的冗余太大,不是非常喜欢,自己写又太累,所以一直闲置了下来。直到遇到了layui我才又燃起了制作一套后台模版的斗志。由于本人只是纯前端,所以页面只是单纯的实现了效果,没有做服务器端的一些处理,可能后期技术跟上了会更新的,如果有什么问题欢迎大家指导。谢谢大家。
在此特别感谢Beginner和Paco,他们写的框架给了我很好的启发和借鉴。希望有时间可以多多请教。
',
79 | success: function(layero){
80 | var btn = layero.find('.layui-layer-btn');
81 | btn.css('text-align', 'center');
82 | btn.on("click",function(){
83 | window.sessionStorage.setItem("showNotice","true");
84 | })
85 | if($(window).width() > 432){ //如果页面宽度不足以显示顶部“系统公告”按钮,则不提示
86 | btn.on("click",function(){
87 | layer.tips('系统公告躲在了这里', '#showNotice', {
88 | tips: 3
89 | });
90 | })
91 | }
92 | }
93 | });
94 | }
95 | //判断是否处于锁屏状态(如果关闭以后则未关闭浏览器之前不再显示)
96 | if(window.sessionStorage.getItem("lockcms") != "true" && window.sessionStorage.getItem("showNotice") != "true"){
97 | showNotice();
98 | }
99 | $(".showNotice").on("click",function(){
100 | showNotice();
101 | })
102 |
103 | //刷新后还原打开的窗口
104 | if(window.sessionStorage.getItem("menu") != null){
105 | menu = JSON.parse(window.sessionStorage.getItem("menu"));
106 | curmenu = window.sessionStorage.getItem("curmenu");
107 | var openTitle = '';
108 | for(var i=0;i