├── .gitignore ├── app ├── .htaccess ├── view │ ├── layout.html │ ├── index │ │ └── index.html │ ├── public │ │ ├── menu_base.html │ │ └── menu.html │ ├── error │ │ ├── dispatch_jump_error.html │ │ └── dispatch_jump_success.html │ └── unit │ │ └── create.html ├── model │ ├── Company.php │ ├── Role.php │ ├── Unit.php │ ├── Customer.php │ ├── Productup.php │ ├── Storage.php │ ├── OrderInfo.php │ ├── Supplier.php │ ├── Category.php │ ├── OrderList.php │ ├── Location.php │ ├── Shelve.php │ ├── Menu.php │ ├── Product.php │ ├── OrderGood.php │ ├── User.php │ └── Order.php ├── controller │ ├── Index.php │ ├── Allot.php │ ├── Login.php │ ├── Goodtop.php │ ├── Unit.php │ ├── Customer.php │ ├── Storage.php │ ├── Supplier.php │ ├── Company.php │ ├── User.php │ ├── Product.php │ ├── Role.php │ ├── Shelve.php │ ├── Location.php │ ├── Position.php │ ├── Category.php │ └── Base.php ├── validate │ ├── ProductupValidate.php │ ├── UnitValidate.php │ ├── CategoryValidate.php │ ├── ProductValidate.php │ ├── OrderValidate.php │ ├── RoleValidate.php │ ├── ShelveValidate.php │ ├── LocationValidate.php │ ├── CompanyValidate.php │ ├── UserValidate.php │ ├── StorageValidate.php │ ├── CustomerValidate.php │ ├── MenuValidate.php │ └── SupplierValidate.php ├── command.php ├── extra │ └── queue.php ├── route.php ├── tags.php └── service │ └── LoginService.php ├── thinkphp ├── .htaccess ├── .gitignore ├── logo.png ├── library │ └── think │ │ ├── console │ │ ├── bin │ │ │ ├── hiddeninput.exe │ │ │ └── README.md │ │ ├── command │ │ │ └── make │ │ │ │ ├── stubs │ │ │ │ ├── model.stub │ │ │ │ └── controller.plain.stub │ │ │ │ └── Model.php │ │ ├── LICENSE │ │ └── output │ │ │ └── driver │ │ │ └── Nothing.php │ │ ├── exception │ │ ├── RouteNotFoundException.php │ │ ├── HttpResponseException.php │ │ ├── ClassNotFoundException.php │ │ ├── TemplateNotFoundException.php │ │ ├── ValidateException.php │ │ └── HttpException.php │ │ ├── config │ │ └── driver │ │ │ ├── Ini.php │ │ │ ├── Json.php │ │ │ └── Xml.php │ │ ├── log │ │ └── driver │ │ │ └── Test.php │ │ ├── db │ │ ├── exception │ │ │ ├── BindParamException.php │ │ │ ├── ModelNotFoundException.php │ │ │ └── DataNotFoundException.php │ │ └── Expression.php │ │ ├── model │ │ └── Pivot.php │ │ └── Env.php ├── codecov.yml ├── start.php ├── console.php ├── composer.json ├── tpl │ └── default_index.tpl ├── .travis.yml ├── phpunit.xml └── LICENSE.txt ├── runtime └── .gitignore ├── vendor └── .gitignore ├── public ├── uploads │ └── .gitignore ├── robots.txt ├── static │ ├── css │ │ ├── custom.css │ │ └── fonts │ │ │ ├── linecons │ │ │ └── font │ │ │ │ ├── linecons.eot │ │ │ │ ├── linecons.ttf │ │ │ │ └── linecons.woff │ │ │ └── fontawesome │ │ │ └── fonts │ │ │ ├── FontAwesome.otf │ │ │ ├── fontawesome-webfont.eot │ │ │ ├── fontawesome-webfont.ttf │ │ │ └── fontawesome-webfont.woff │ ├── demo.xls │ ├── images │ │ ├── ok.png │ │ ├── logo.png │ │ ├── clouds.png │ │ ├── eiffel.jpg │ │ ├── image-1.jpg │ │ ├── image-2.jpg │ │ ├── image-3.jpg │ │ ├── image-4.jpg │ │ ├── image-5.jpg │ │ ├── logo@2x.png │ │ ├── sample.jpg │ │ ├── user-1.png │ │ ├── user-2.png │ │ ├── user-3.png │ │ ├── user-4.png │ │ ├── user-5.png │ │ ├── attach-1.png │ │ ├── attach-2.png │ │ ├── ok-white.png │ │ ├── album-img-1.png │ │ ├── album-img-2.png │ │ ├── album-img-3.png │ │ ├── album-img-4.png │ │ ├── album-img-5.png │ │ ├── album-img-6.png │ │ ├── album-img-7.png │ │ ├── album-img-8.png │ │ ├── notes-lines.png │ │ ├── logo-collapsed.png │ │ ├── logo-white-bg.png │ │ ├── news-image-widget-3 │ │ ├── ok-white-full.png │ │ ├── album-image-full.jpg │ │ ├── logo-collapsed@2x.png │ │ ├── logo-white-bg@2x.png │ │ ├── news-image-widget.png │ │ ├── news-image-widget-2.png │ │ ├── news-image-widget-3.png │ │ ├── news-image-widget-4.png │ │ └── layouts │ │ │ ├── layout-sidebar.png │ │ │ ├── layout-horizontal.png │ │ │ ├── layout-sidebar-right.png │ │ │ ├── layout-sidebar-collapsed.png │ │ │ ├── layout-sidebar-horizontal.png │ │ │ ├── layout-horizontal-right-sidebar.png │ │ │ ├── layout-sidebar-right-collapsed.png │ │ │ ├── layout-sidebar-collapsed-horizontal.png │ │ │ └── layout-horizontal-right-sidebar-collapsed.png │ └── js │ │ ├── toastr │ │ └── toastr-icon.png │ │ ├── datatables │ │ ├── images │ │ │ ├── favicon.ico │ │ │ ├── sort_asc.png │ │ │ ├── sort_both.png │ │ │ ├── sort_desc.png │ │ │ ├── Sorting icons.psd │ │ │ ├── back_disabled.png │ │ │ ├── back_enabled.png │ │ │ ├── forward_disabled.png │ │ │ ├── forward_enabled.png │ │ │ ├── back_enabled_hover.png │ │ │ ├── sort_asc_disabled.png │ │ │ ├── sort_desc_disabled.png │ │ │ └── forward_enabled_hover.png │ │ └── tabletools │ │ │ ├── copy_csv_xls.swf │ │ │ └── copy_csv_xls_pdf.swf │ │ ├── jstree │ │ └── themes │ │ │ ├── default │ │ │ ├── 32px.png │ │ │ ├── 40px.png │ │ │ └── throbber.gif │ │ │ └── default-dark │ │ │ ├── 32px.png │ │ │ ├── 40px.png │ │ │ └── throbber.gif │ │ └── jquery-validate │ │ └── localization │ │ ├── methods_pt.min.js │ │ ├── methods_nl.min.js │ │ ├── methods_fi.min.js │ │ ├── methods_de.min.js │ │ ├── methods_es_CL.min.js │ │ ├── methods_pt.js │ │ ├── methods_nl.js │ │ ├── methods_fi.js │ │ ├── methods_de.js │ │ ├── methods_es_CL.js │ │ ├── messages_zh.min.js │ │ ├── messages_zh_TW.min.js │ │ ├── messages_ko.min.js │ │ ├── messages_sk.min.js │ │ ├── messages_ja.min.js │ │ ├── messages_da.min.js │ │ ├── messages_vi.min.js │ │ ├── messages_he.min.js │ │ ├── messages_is.min.js │ │ ├── messages_zh.js │ │ ├── messages_zh_TW.js │ │ ├── messages_no.min.js │ │ ├── messages_hu.min.js │ │ ├── messages_ar.min.js │ │ ├── messages_th.min.js │ │ ├── messages_ko.js │ │ ├── messages_sr.min.js │ │ ├── messages_sr_lat.min.js │ │ ├── messages_sv.min.js │ │ ├── messages_hr.min.js │ │ ├── messages_sk.js │ │ ├── messages_ja.js │ │ ├── messages_da.js │ │ ├── messages_cs.min.js │ │ ├── messages_de.min.js │ │ ├── messages_vi.js │ │ ├── messages_et.min.js │ │ ├── messages_si.min.js │ │ ├── messages_sl.min.js │ │ ├── messages_bg.min.js │ │ ├── messages_id.min.js │ │ ├── messages_he.js │ │ ├── messages_is.js │ │ ├── messages_lv.min.js │ │ ├── messages_lt.min.js │ │ ├── messages_my.min.js │ │ ├── messages_fa.min.js │ │ ├── messages_ka.min.js │ │ ├── messages_eu.min.js │ │ ├── messages_it.min.js │ │ ├── messages_tj.min.js │ │ ├── messages_pl.min.js │ │ ├── messages_hu.js │ │ ├── messages_ca.min.js │ │ ├── messages_no.js │ │ ├── messages_uk.min.js │ │ ├── messages_ar.js │ │ ├── messages_th.js │ │ ├── messages_kk.min.js │ │ ├── messages_ru.min.js │ │ ├── messages_sv.js │ │ ├── messages_sr.js │ │ ├── messages_el.min.js │ │ ├── messages_fi.min.js │ │ ├── messages_tr.min.js │ │ ├── messages_hr.js │ │ ├── messages_ro.min.js │ │ ├── messages_de.js │ │ ├── messages_sr_lat.js │ │ ├── messages_cs.js │ │ ├── messages_es.min.js │ │ ├── messages_et.js │ │ ├── messages_si.js │ │ ├── messages_es_AR.min.js │ │ ├── messages_gl.min.js │ │ ├── messages_id.js │ │ ├── messages_bg.js │ │ └── messages_sl.js ├── favicon.ico ├── .htaccess ├── index.php └── router.php ├── run.bat ├── demo ├── 1.gif ├── qq.png ├── 20171229163116.png ├── 20171229163127.png ├── 20171229163140.png ├── 20171229185301.png ├── 20171230124816 .png ├── 20171230124819.png └── QQ图片20171230143517.jpg ├── extend └── Classes │ └── PHPExcel │ ├── Chart │ └── Renderer │ │ └── PHP Charting Libraries.txt │ ├── Shared │ └── JAMA │ │ ├── CHANGELOG.TXT │ │ └── utils │ │ └── Maths.php │ ├── Reader │ └── Excel5 │ │ ├── ErrorCode.php │ │ ├── Color │ │ └── BuiltIn.php │ │ ├── Color.php │ │ └── Style │ │ └── Border.php │ ├── locale │ └── en │ │ └── uk │ │ └── config │ ├── IComparable.php │ └── Writer │ └── OpenDocument │ └── WriterPart.php ├── phpunit.xml ├── index.php ├── think ├── composer.json └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | .vscode/ 2 | -------------------------------------------------------------------------------- /app/.htaccess: -------------------------------------------------------------------------------- 1 | deny from all -------------------------------------------------------------------------------- /thinkphp/.htaccess: -------------------------------------------------------------------------------- 1 | deny from all -------------------------------------------------------------------------------- /runtime/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /vendor/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /public/uploads/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /run.bat: -------------------------------------------------------------------------------- 1 | php -S localhost:8877 -t ./public -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: 3 | -------------------------------------------------------------------------------- /demo/1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/demo/1.gif -------------------------------------------------------------------------------- /public/static/css/custom.css: -------------------------------------------------------------------------------- 1 | table th,table tr{text-align:center;} -------------------------------------------------------------------------------- /demo/qq.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/demo/qq.png -------------------------------------------------------------------------------- /thinkphp/.gitignore: -------------------------------------------------------------------------------- 1 | /composer.lock 2 | /vendor 3 | .idea 4 | .DS_Store 5 | -------------------------------------------------------------------------------- /thinkphp/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/thinkphp/logo.png -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /public/static/demo.xls: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/public/static/demo.xls -------------------------------------------------------------------------------- /demo/20171229163116.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/demo/20171229163116.png -------------------------------------------------------------------------------- /demo/20171229163127.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/demo/20171229163127.png -------------------------------------------------------------------------------- /demo/20171229163140.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/demo/20171229163140.png -------------------------------------------------------------------------------- /demo/20171229185301.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/demo/20171229185301.png -------------------------------------------------------------------------------- /demo/20171230124816 .png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/demo/20171230124816 .png -------------------------------------------------------------------------------- /demo/20171230124819.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/demo/20171230124819.png -------------------------------------------------------------------------------- /demo/QQ图片20171230143517.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/demo/QQ图片20171230143517.jpg -------------------------------------------------------------------------------- /public/static/images/ok.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/public/static/images/ok.png -------------------------------------------------------------------------------- /app/view/layout.html: -------------------------------------------------------------------------------- 1 | {include file="public/header" /} 2 | {__CONTENT__} 3 | {include file="public/footer" /} -------------------------------------------------------------------------------- /public/static/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/public/static/images/logo.png -------------------------------------------------------------------------------- /public/static/images/clouds.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/public/static/images/clouds.png -------------------------------------------------------------------------------- /public/static/images/eiffel.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/public/static/images/eiffel.jpg -------------------------------------------------------------------------------- /public/static/images/image-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/public/static/images/image-1.jpg -------------------------------------------------------------------------------- /public/static/images/image-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/public/static/images/image-2.jpg -------------------------------------------------------------------------------- /public/static/images/image-3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/public/static/images/image-3.jpg -------------------------------------------------------------------------------- /public/static/images/image-4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/public/static/images/image-4.jpg -------------------------------------------------------------------------------- /public/static/images/image-5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/public/static/images/image-5.jpg -------------------------------------------------------------------------------- /public/static/images/logo@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/public/static/images/logo@2x.png -------------------------------------------------------------------------------- /public/static/images/sample.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/public/static/images/sample.jpg -------------------------------------------------------------------------------- /public/static/images/user-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/public/static/images/user-1.png -------------------------------------------------------------------------------- /public/static/images/user-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/public/static/images/user-2.png -------------------------------------------------------------------------------- /public/static/images/user-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/public/static/images/user-3.png -------------------------------------------------------------------------------- /public/static/images/user-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/public/static/images/user-4.png -------------------------------------------------------------------------------- /public/static/images/user-5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/public/static/images/user-5.png -------------------------------------------------------------------------------- /public/static/images/attach-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/public/static/images/attach-1.png -------------------------------------------------------------------------------- /public/static/images/attach-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/public/static/images/attach-2.png -------------------------------------------------------------------------------- /public/static/images/ok-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/public/static/images/ok-white.png -------------------------------------------------------------------------------- /public/static/images/album-img-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/public/static/images/album-img-1.png -------------------------------------------------------------------------------- /public/static/images/album-img-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/public/static/images/album-img-2.png -------------------------------------------------------------------------------- /public/static/images/album-img-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/public/static/images/album-img-3.png -------------------------------------------------------------------------------- /public/static/images/album-img-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/public/static/images/album-img-4.png -------------------------------------------------------------------------------- /public/static/images/album-img-5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/public/static/images/album-img-5.png -------------------------------------------------------------------------------- /public/static/images/album-img-6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/public/static/images/album-img-6.png -------------------------------------------------------------------------------- /public/static/images/album-img-7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/public/static/images/album-img-7.png -------------------------------------------------------------------------------- /public/static/images/album-img-8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/public/static/images/album-img-8.png -------------------------------------------------------------------------------- /public/static/images/notes-lines.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/public/static/images/notes-lines.png -------------------------------------------------------------------------------- /public/static/images/logo-collapsed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/public/static/images/logo-collapsed.png -------------------------------------------------------------------------------- /public/static/images/logo-white-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/public/static/images/logo-white-bg.png -------------------------------------------------------------------------------- /public/static/images/news-image-widget-3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/public/static/images/news-image-widget-3 -------------------------------------------------------------------------------- /public/static/images/ok-white-full.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/public/static/images/ok-white-full.png -------------------------------------------------------------------------------- /public/static/js/toastr/toastr-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/public/static/js/toastr/toastr-icon.png -------------------------------------------------------------------------------- /public/static/images/album-image-full.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/public/static/images/album-image-full.jpg -------------------------------------------------------------------------------- /public/static/images/logo-collapsed@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/public/static/images/logo-collapsed@2x.png -------------------------------------------------------------------------------- /public/static/images/logo-white-bg@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/public/static/images/logo-white-bg@2x.png -------------------------------------------------------------------------------- /public/static/images/news-image-widget.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/public/static/images/news-image-widget.png -------------------------------------------------------------------------------- /public/static/images/news-image-widget-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/public/static/images/news-image-widget-2.png -------------------------------------------------------------------------------- /public/static/images/news-image-widget-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/public/static/images/news-image-widget-3.png -------------------------------------------------------------------------------- /public/static/images/news-image-widget-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/public/static/images/news-image-widget-4.png -------------------------------------------------------------------------------- /public/static/images/layouts/layout-sidebar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/public/static/images/layouts/layout-sidebar.png -------------------------------------------------------------------------------- /public/static/js/datatables/images/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/public/static/js/datatables/images/favicon.ico -------------------------------------------------------------------------------- /public/static/js/datatables/images/sort_asc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/public/static/js/datatables/images/sort_asc.png -------------------------------------------------------------------------------- /public/static/js/jstree/themes/default/32px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/public/static/js/jstree/themes/default/32px.png -------------------------------------------------------------------------------- /public/static/js/jstree/themes/default/40px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/public/static/js/jstree/themes/default/40px.png -------------------------------------------------------------------------------- /public/static/css/fonts/linecons/font/linecons.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/public/static/css/fonts/linecons/font/linecons.eot -------------------------------------------------------------------------------- /public/static/css/fonts/linecons/font/linecons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/public/static/css/fonts/linecons/font/linecons.ttf -------------------------------------------------------------------------------- /public/static/images/layouts/layout-horizontal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/public/static/images/layouts/layout-horizontal.png -------------------------------------------------------------------------------- /public/static/js/datatables/images/sort_both.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/public/static/js/datatables/images/sort_both.png -------------------------------------------------------------------------------- /public/static/js/datatables/images/sort_desc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/public/static/js/datatables/images/sort_desc.png -------------------------------------------------------------------------------- /thinkphp/library/think/console/bin/hiddeninput.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenbool/wms/HEAD/thinkphp/library/think/console/bin/hiddeninput.exe -------------------------------------------------------------------------------- /app/model/Company.php: -------------------------------------------------------------------------------- 1 | fetch(); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /app/model/OrderInfo.php: -------------------------------------------------------------------------------- 1 | 2 | Options +FollowSymlinks -Multiviews 3 | RewriteEngine On 4 | 5 | RewriteCond %{REQUEST_FILENAME} !-d 6 | RewriteCond %{REQUEST_FILENAME} !-f 7 | RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L] 8 | 9 | -------------------------------------------------------------------------------- /thinkphp/codecov.yml: -------------------------------------------------------------------------------- 1 | comment: 2 | layout: header, changes, diff 3 | coverage: 4 | ignore: 5 | - base.php 6 | - helper.php 7 | - convention.php 8 | - lang/zh-cn.php 9 | - start.php 10 | - console.php 11 | status: 12 | patch: false 13 | -------------------------------------------------------------------------------- /app/model/Category.php: -------------------------------------------------------------------------------- 1 | hasOne('\app\model\Category','id','pid'); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /app/model/OrderList.php: -------------------------------------------------------------------------------- 1 | hasOne('\app\model\Product','id','good_id'); 13 | } 14 | } -------------------------------------------------------------------------------- /app/view/index/index.html: -------------------------------------------------------------------------------- 1 | {extend name="base"} 2 | 3 | {block name="content"} 4 | 5 |
6 | 7 |

欢迎使用

8 | 9 |

10 | 仓库管理系统beta版 localhost/index.php . 11 |

12 | 13 |
14 | 15 | {/block} 16 | 17 | -------------------------------------------------------------------------------- /app/model/Location.php: -------------------------------------------------------------------------------- 1 | hasOne('\app\model\Storage','id','storage'); 12 | } 13 | } 14 | 15 | -------------------------------------------------------------------------------- /app/model/Shelve.php: -------------------------------------------------------------------------------- 1 | hasOne('\app\model\Location','id','location'); 12 | } 13 | } 14 | 15 | -------------------------------------------------------------------------------- /app/validate/ProductupValidate.php: -------------------------------------------------------------------------------- 1 | 'require' 9 | ]; 10 | 11 | protected $message = [ 12 | 'num.require' => '上架数量不能为空', 13 | ]; 14 | } -------------------------------------------------------------------------------- /app/model/Menu.php: -------------------------------------------------------------------------------- 1 | '删除',0=>'显示',1=>'禁用',2=>'不显示']; 13 | return $status[$data['status']]; 14 | } 15 | } 16 | 17 | -------------------------------------------------------------------------------- /app/model/Product.php: -------------------------------------------------------------------------------- 1 | hasOne('\app\model\Productup','id','gid'); 12 | return $this->belongsTo('\app\model\Productup','id','gid'); 13 | } 14 | 15 | } 16 | 17 | -------------------------------------------------------------------------------- /app/model/OrderGood.php: -------------------------------------------------------------------------------- 1 | hasMany('\app\model\OrderList','rec_id','order_id'); 12 | return $this->hasMany('\app\model\OrderList','order_id','rec_id'); 13 | } 14 | 15 | } -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/methods_pt.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery Validation Plugin - v1.13.0 - 7/1/2014 2 | * http://jqueryvalidation.org/ 3 | * Copyright (c) 2014 Jörn Zaefferer; Licensed MIT */ 4 | !function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):a(jQuery)}(function(a){a.extend(a.validator.methods,{date:function(a,b){return this.optional(b)||/^\d\d?\/\d\d?\/\d\d\d?\d?$/.test(a)}})}); -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/methods_nl.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery Validation Plugin - v1.13.0 - 7/1/2014 2 | * http://jqueryvalidation.org/ 3 | * Copyright (c) 2014 Jörn Zaefferer; Licensed MIT */ 4 | !function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):a(jQuery)}(function(a){a.extend(a.validator.methods,{date:function(a,b){return this.optional(b)||/^\d\d?[\.\/\-]\d\d?[\.\/\-]\d\d\d?\d?$/.test(a)}})}); -------------------------------------------------------------------------------- /app/model/User.php: -------------------------------------------------------------------------------- 1 | hasOne('\app\model\Role','id','role'); 13 | } 14 | 15 | public function findCompany() 16 | { 17 | return $this->hasOne('\app\model\Company','id','company'); 18 | } 19 | 20 | } 21 | 22 | -------------------------------------------------------------------------------- /app/validate/UnitValidate.php: -------------------------------------------------------------------------------- 1 | 'require|max:25', 9 | 'desc' => 'max:100' 10 | ]; 11 | 12 | protected $message = [ 13 | 'name.require' => '名称必填', 14 | 'name.max' => '名称最多不能超过25个字符', 15 | 'desc.max' => '备注最多不能超过100个字符' 16 | ]; 17 | } 18 | -------------------------------------------------------------------------------- /app/validate/CategoryValidate.php: -------------------------------------------------------------------------------- 1 | 'require|max:25', 9 | 'desc' => 'max:100' 10 | ]; 11 | 12 | protected $message = [ 13 | 'name.require' => '名称必填', 14 | 'name.max' => '名称最多不能超过25个字符', 15 | 'desc.max' => '备注最多不能超过100个字符' 16 | ]; 17 | } 18 | -------------------------------------------------------------------------------- /app/validate/ProductValidate.php: -------------------------------------------------------------------------------- 1 | 'require|max:25', 9 | 'desc' => 'max:100' 10 | ]; 11 | 12 | protected $message = [ 13 | 'name.require' => '名称必填', 14 | 'name.max' => '名称最多不能超过25个字符', 15 | 'desc.max' => '备注最多不能超过100个字符' 16 | ]; 17 | } 18 | -------------------------------------------------------------------------------- /app/controller/Allot.php: -------------------------------------------------------------------------------- 1 | service = $service; 13 | } 14 | 15 | public function index() 16 | { 17 | $this->assign(['list' => $this->service->page()]); 18 | return view(); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /extend/Classes/PHPExcel/Chart/Renderer/PHP Charting Libraries.txt: -------------------------------------------------------------------------------- 1 | ChartDirector 2 | http://www.advsofteng.com/cdphp.html 3 | 4 | GraPHPite 5 | http://graphpite.sourceforge.net/ 6 | 7 | JpGraph 8 | http://www.aditus.nu/jpgraph/ 9 | 10 | LibChart 11 | http://naku.dohcrew.com/libchart/pages/introduction/ 12 | 13 | pChart 14 | http://pchart.sourceforge.net/ 15 | 16 | TeeChart 17 | http://www.steema.com/products/teechart/overview.html 18 | 19 | PHPGraphLib 20 | http://www.ebrueggeman.com/phpgraphlib -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/methods_fi.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery Validation Plugin - v1.13.0 - 7/1/2014 2 | * http://jqueryvalidation.org/ 3 | * Copyright (c) 2014 Jörn Zaefferer; Licensed MIT */ 4 | !function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):a(jQuery)}(function(a){a.extend(a.validator.methods,{date:function(a,b){return this.optional(b)||/^\d{1,2}\.\d{1,2}\.\d{4}$/.test(a)},number:function(a,b){return this.optional(b)||/^-?(?:\d+)(?:,\d+)?$/.test(a)}})}); -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/methods_de.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery Validation Plugin - v1.13.0 - 7/1/2014 2 | * http://jqueryvalidation.org/ 3 | * Copyright (c) 2014 Jörn Zaefferer; Licensed MIT */ 4 | !function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):a(jQuery)}(function(a){a.extend(a.validator.methods,{date:function(a,b){return this.optional(b)||/^\d\d?\.\d\d?\.\d\d\d?\d?$/.test(a)},number:function(a,b){return this.optional(b)||/^-?(?:\d+|\d{1,3}(?:\.\d{3})+)(?:,\d+)?$/.test(a)}})}); -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/methods_es_CL.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery Validation Plugin - v1.13.0 - 7/1/2014 2 | * http://jqueryvalidation.org/ 3 | * Copyright (c) 2014 Jörn Zaefferer; Licensed MIT */ 4 | !function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):a(jQuery)}(function(a){a.extend(a.validator.methods,{date:function(a,b){return this.optional(b)||/^\d\d?\-\d\d?\-\d\d\d?\d?$/.test(a)},number:function(a,b){return this.optional(b)||/^-?(?:\d+|\d{1,3}(?:\.\d{3})+)(?:,\d+)?$/.test(a)}})}); -------------------------------------------------------------------------------- /app/model/Order.php: -------------------------------------------------------------------------------- 1 | hasManyThrough('\app\model\Product','\app\model\OrderList','order_id','id','id'); 12 | } 13 | 14 | // public function getL(){ 15 | // $this->alias('a') 16 | // ->join('order_list b','a.id = b.order_id') 17 | // ->join('product c','b.good_id = c.id') 18 | // ->select(); 19 | // } 20 | 21 | } 22 | 23 | -------------------------------------------------------------------------------- /app/validate/OrderValidate.php: -------------------------------------------------------------------------------- 1 | 'require|max:25', 9 | 'sn' => 'require', 10 | 'desc' => 'max:100' 11 | ]; 12 | 13 | protected $message = [ 14 | 'author.require' => '制单者必填', 15 | 'author.max' => '制单者最多不能超过25个字符', 16 | 'sn.require' => 'SN必填', 17 | 'desc.max' => '备注最多不能超过100个字符' 18 | ]; 19 | } 20 | -------------------------------------------------------------------------------- /app/validate/RoleValidate.php: -------------------------------------------------------------------------------- 1 | 'require|max:25', 9 | 'ids' => 'require', 10 | 'desc' => 'max:100' 11 | ]; 12 | 13 | protected $message = [ 14 | 'name.require' => '名称必填', 15 | 'ids.require' => '至少选择一个', 16 | 'name.max' => '名称最多不能超过25个字符', 17 | 'desc.max' => '备注最多不能超过100个字符' 18 | ]; 19 | } 20 | -------------------------------------------------------------------------------- /app/validate/ShelveValidate.php: -------------------------------------------------------------------------------- 1 | 'require|max:25', 9 | 'location' => 'require', 10 | 'desc' => 'max:100' 11 | ]; 12 | 13 | protected $message = [ 14 | 'name.require' => '货架名称必填', 15 | 'name.max' => '货架名称最多不能超过25个字符', 16 | 'location.require' => '请选择库位', 17 | 'desc.max' => '备注最多不能超过100个字符' 18 | ]; 19 | } -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/methods_pt.js: -------------------------------------------------------------------------------- 1 | (function( factory ) { 2 | if ( typeof define === "function" && define.amd ) { 3 | define( ["jquery", "../jquery.validate"], factory ); 4 | } else { 5 | factory( jQuery ); 6 | } 7 | }(function( $ ) { 8 | 9 | /* 10 | * Localized default methods for the jQuery validation plugin. 11 | * Locale: PT_BR 12 | */ 13 | $.extend($.validator.methods, { 14 | date: function(value, element) { 15 | return this.optional(element) || /^\d\d?\/\d\d?\/\d\d\d?\d?$/.test(value); 16 | } 17 | }); 18 | 19 | })); -------------------------------------------------------------------------------- /app/validate/LocationValidate.php: -------------------------------------------------------------------------------- 1 | 'require|max:25', 9 | 'storage' => 'require', 10 | 'desc' => 'max:100' 11 | ]; 12 | 13 | protected $message = [ 14 | 'name.require' => '库位名称必填', 15 | 'name.max' => '库位名称最多不能超过25个字符', 16 | 'storage.require' => '请选择仓库', 17 | 'desc.max' => '备注最多不能超过100个字符' 18 | ]; 19 | } -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/methods_nl.js: -------------------------------------------------------------------------------- 1 | (function( factory ) { 2 | if ( typeof define === "function" && define.amd ) { 3 | define( ["jquery", "../jquery.validate"], factory ); 4 | } else { 5 | factory( jQuery ); 6 | } 7 | }(function( $ ) { 8 | 9 | /* 10 | * Localized default methods for the jQuery validation plugin. 11 | * Locale: NL 12 | */ 13 | $.extend($.validator.methods, { 14 | date: function(value, element) { 15 | return this.optional(element) || /^\d\d?[\.\/\-]\d\d?[\.\/\-]\d\d\d?\d?$/.test(value); 16 | } 17 | }); 18 | 19 | })); -------------------------------------------------------------------------------- /extend/Classes/PHPExcel/Shared/JAMA/CHANGELOG.TXT: -------------------------------------------------------------------------------- 1 | Mar 1, 2005 11:15 AST by PM 2 | 3 | + For consistency, renamed Math.php to Maths.java, utils to util, 4 | tests to test, docs to doc - 5 | 6 | + Removed conditional logic from top of Matrix class. 7 | 8 | + Switched to using hypo function in Maths.php for all php-hypot calls. 9 | NOTE TO SELF: Need to make sure that all decompositions have been 10 | switched over to using the bundled hypo. 11 | 12 | Feb 25, 2005 at 10:00 AST by PM 13 | 14 | + Recommend using simpler Error.php instead of JAMA_Error.php but 15 | can be persuaded otherwise. 16 | 17 | -------------------------------------------------------------------------------- /app/command.php: -------------------------------------------------------------------------------- 1 | 10 | // +---------------------------------------------------------------------- 11 | 12 | return []; 13 | -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/methods_fi.js: -------------------------------------------------------------------------------- 1 | (function( factory ) { 2 | if ( typeof define === "function" && define.amd ) { 3 | define( ["jquery", "../jquery.validate"], factory ); 4 | } else { 5 | factory( jQuery ); 6 | } 7 | }(function( $ ) { 8 | 9 | /* 10 | * Localized default methods for the jQuery validation plugin. 11 | * Locale: FI 12 | */ 13 | $.extend($.validator.methods, { 14 | date: function(value, element) { 15 | return this.optional(element) || /^\d{1,2}\.\d{1,2}\.\d{4}$/.test(value); 16 | }, 17 | number: function(value, element) { 18 | return this.optional(element) || /^-?(?:\d+)(?:,\d+)?$/.test(value); 19 | } 20 | }); 21 | 22 | })); -------------------------------------------------------------------------------- /app/validate/CompanyValidate.php: -------------------------------------------------------------------------------- 1 | 'require|max:25', 9 | 'tel' => 'require', 10 | 'email' => 'require|email', 11 | 'desc' => 'max:100' 12 | ]; 13 | 14 | protected $message = [ 15 | 'name.require' => '名称必填', 16 | 'name.max' => '名称最多不能超过25个字符', 17 | 'tel.require' => '电话必填', 18 | 'email.require' => '邮箱必填', 19 | 'email.email' => '邮箱格式不对', 20 | 'desc.max' => '备注最多不能超过100个字符' 21 | ]; 22 | } 23 | -------------------------------------------------------------------------------- /app/validate/UserValidate.php: -------------------------------------------------------------------------------- 1 | 'require|max:25', 9 | // 'username' => 'require', 10 | 'sn' => 'require', 11 | 'desc' => 'max:100', 12 | ]; 13 | 14 | protected $message = [ 15 | 'sn.require' => '员工编号必填', 16 | 'truename.require' => '员工姓名必填', 17 | 'truename.max' => '员工姓名最多不能超过25个字符', 18 | // 'username.require' => '登录账户必填', 19 | 'password.require' => '登录密码必填', 20 | 'desc.max' => '备注最多不能超过100个字符' 21 | ]; 22 | } -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/methods_de.js: -------------------------------------------------------------------------------- 1 | (function( factory ) { 2 | if ( typeof define === "function" && define.amd ) { 3 | define( ["jquery", "../jquery.validate"], factory ); 4 | } else { 5 | factory( jQuery ); 6 | } 7 | }(function( $ ) { 8 | 9 | /* 10 | * Localized default methods for the jQuery validation plugin. 11 | * Locale: DE 12 | */ 13 | $.extend($.validator.methods, { 14 | date: function(value, element) { 15 | return this.optional(element) || /^\d\d?\.\d\d?\.\d\d\d?\d?$/.test(value); 16 | }, 17 | number: function(value, element) { 18 | return this.optional(element) || /^-?(?:\d+|\d{1,3}(?:\.\d{3})+)(?:,\d+)?$/.test(value); 19 | } 20 | }); 21 | 22 | })); -------------------------------------------------------------------------------- /app/extra/queue.php: -------------------------------------------------------------------------------- 1 | 10 | // +---------------------------------------------------------------------- 11 | 12 | return [ 13 | 'connector' => 'Sync' 14 | ]; 15 | -------------------------------------------------------------------------------- /extend/Classes/PHPExcel/Reader/Excel5/ErrorCode.php: -------------------------------------------------------------------------------- 1 | '#NULL!', 7 | 0x07 => '#DIV/0!', 8 | 0x0F => '#VALUE!', 9 | 0x17 => '#REF!', 10 | 0x1D => '#NAME?', 11 | 0x24 => '#NUM!', 12 | 0x2A => '#N/A', 13 | ); 14 | 15 | /** 16 | * Map error code, e.g. '#N/A' 17 | * 18 | * @param int $code 19 | * @return string 20 | */ 21 | public static function lookup($code) 22 | { 23 | if (isset(self::$map[$code])) { 24 | return self::$map[$code]; 25 | } 26 | return false; 27 | } 28 | } -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/methods_es_CL.js: -------------------------------------------------------------------------------- 1 | (function( factory ) { 2 | if ( typeof define === "function" && define.amd ) { 3 | define( ["jquery", "../jquery.validate"], factory ); 4 | } else { 5 | factory( jQuery ); 6 | } 7 | }(function( $ ) { 8 | 9 | /* 10 | * Localized default methods for the jQuery validation plugin. 11 | * Locale: ES_CL 12 | */ 13 | $.extend($.validator.methods, { 14 | date: function(value, element) { 15 | return this.optional(element) || /^\d\d?\-\d\d?\-\d\d\d?\d?$/.test(value); 16 | }, 17 | number: function(value, element) { 18 | return this.optional(element) || /^-?(?:\d+|\d{1,3}(?:\.\d{3})+)(?:,\d+)?$/.test(value); 19 | } 20 | }); 21 | 22 | })); -------------------------------------------------------------------------------- /app/controller/Login.php: -------------------------------------------------------------------------------- 1 | service = $service; 14 | } 15 | 16 | public function index() 17 | { 18 | return view(); 19 | } 20 | 21 | public function login() 22 | { 23 | return $this->service->login(); 24 | } 25 | 26 | public function quit() 27 | { 28 | $this->service->quit(); 29 | return $this->redirect("Login/index"); 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | ./tests/ 14 | 15 | 16 | 17 | 18 | app/ 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /index.php: -------------------------------------------------------------------------------- 1 | 10 | // +---------------------------------------------------------------------- 11 | 12 | // [ 应用入口文件 ] 13 | 14 | // 定义应用目录 15 | define('APP_PATH', __DIR__ . '/app/'); 16 | 17 | // 加载框架引导文件 18 | require __DIR__ . '/thinkphp/start.php'; 19 | -------------------------------------------------------------------------------- /think: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env php 2 | 11 | // +---------------------------------------------------------------------- 12 | 13 | // 定义项目路径 14 | define('APP_PATH', __DIR__ . '/app/'); 15 | 16 | // 加载框架引导文件 17 | require __DIR__.'/thinkphp/console.php'; 18 | -------------------------------------------------------------------------------- /app/validate/StorageValidate.php: -------------------------------------------------------------------------------- 1 | 'require|max:25', 9 | 'contact' => 'require', 10 | 'phone' => 'require|number', 11 | 'email' => 'email', 12 | 'desc' => 'max:100' 13 | ]; 14 | 15 | protected $message = [ 16 | 'name.require' => '名称必填', 17 | 'name.max' => '名称最多不能超过25个字符', 18 | 'contact.require' => '联系人必填', 19 | 'phone.require' => '手机号必填', 20 | 'phone.number' => '手机号格式错误', 21 | 'email' => '邮箱格式错误', 22 | 'desc.max' => '备注最多不能超过100个字符' 23 | ]; 24 | } 25 | -------------------------------------------------------------------------------- /public/index.php: -------------------------------------------------------------------------------- 1 | 10 | // +---------------------------------------------------------------------- 11 | 12 | // [ 应用入口文件 ] 13 | 14 | // 定义应用目录 15 | define('APP_PATH', __DIR__ . '/../app/'); 16 | // 加载框架引导文件 17 | require __DIR__ . '/../thinkphp/start.php'; 18 | -------------------------------------------------------------------------------- /thinkphp/start.php: -------------------------------------------------------------------------------- 1 | 10 | // +---------------------------------------------------------------------- 11 | 12 | namespace think; 13 | 14 | // ThinkPHP 引导文件 15 | // 1. 加载基础文件 16 | require __DIR__ . '/base.php'; 17 | 18 | // 2. 执行应用 19 | App::run()->send(); 20 | -------------------------------------------------------------------------------- /thinkphp/console.php: -------------------------------------------------------------------------------- 1 | 10 | // +---------------------------------------------------------------------- 11 | 12 | namespace think; 13 | 14 | // ThinkPHP 引导文件 15 | // 加载基础文件 16 | require __DIR__ . '/base.php'; 17 | 18 | // 执行应用 19 | App::initCommon(); 20 | Console::init(); 21 | -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_zh.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery Validation Plugin - v1.13.0 - 7/1/2014 2 | * http://jqueryvalidation.org/ 3 | * Copyright (c) 2014 Jörn Zaefferer; Licensed MIT */ 4 | !function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):a(jQuery)}(function(a){a.extend(a.validator.messages,{required:"必须填写",remote:"请修正此栏位",email:"请输入有效的电子邮件",url:"请输入有效的网址",date:"请输入有效的日期",dateISO:"请输入有效的日期 (YYYY-MM-DD)",number:"请输入正确的数字",digits:"只可输入数字",creditcard:"请输入有效的信用卡号码",equalTo:"你的输入不相同",extension:"请输入有效的后缀",maxlength:a.validator.format("最多 {0} 个字"),minlength:a.validator.format("最少 {0} 个字"),rangelength:a.validator.format("请输入长度为 {0} 至 {1} 之間的字串"),range:a.validator.format("请输入 {0} 至 {1} 之间的数值"),max:a.validator.format("请输入不大于 {0} 的数值"),min:a.validator.format("请输入不小于 {0} 的数值")})}); -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_zh_TW.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery Validation Plugin - v1.13.0 - 7/1/2014 2 | * http://jqueryvalidation.org/ 3 | * Copyright (c) 2014 Jörn Zaefferer; Licensed MIT */ 4 | !function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):a(jQuery)}(function(a){a.extend(a.validator.messages,{required:"必須填寫",remote:"請修正此欄位",email:"請輸入有效的電子郵件",url:"請輸入有效的網址",date:"請輸入有效的日期",dateISO:"請輸入有效的日期 (YYYY-MM-DD)",number:"請輸入正確的數值",digits:"只可輸入數字",creditcard:"請輸入有效的信用卡號碼",equalTo:"請重複輸入一次",extension:"請輸入有效的後綴",maxlength:a.validator.format("最多 {0} 個字"),minlength:a.validator.format("最少 {0} 個字"),rangelength:a.validator.format("請輸入長度為 {0} 至 {1} 之間的字串"),range:a.validator.format("請輸入 {0} 至 {1} 之間的數值"),max:a.validator.format("請輸入不大於 {0} 的數值"),min:a.validator.format("請輸入不小於 {0} 的數值")})}); -------------------------------------------------------------------------------- /app/validate/CustomerValidate.php: -------------------------------------------------------------------------------- 1 | 'require|max:100', 9 | 'contact' => 'require', 10 | 'phone' => 'require|number', 11 | 'email' => 'require|email', 12 | 'desc' => 'max:100' 13 | ]; 14 | 15 | protected $message = [ 16 | 'name.require' => '名称必填', 17 | 'name.max' => '名称最多不能超过50个字符', 18 | 'contact.require' => '联系人必填', 19 | 'phone.require' => '手机号必填', 20 | 'phone.number' => '手机号格式错误', 21 | 'email.require' => '邮箱必填', 22 | 'email.email' => '邮箱格式错误', 23 | 'desc.max' => '备注最多不能超过100个字符' 24 | ]; 25 | } 26 | -------------------------------------------------------------------------------- /app/validate/MenuValidate.php: -------------------------------------------------------------------------------- 1 | 'require|max:25', 12 | 'pid' => 'require|number', 13 | 'level' => 'require|number', 14 | 'controller' => 'checkController', 15 | 'status' => 'require|number' 16 | ]; 17 | 18 | protected $message = [ 19 | 'name.require' => '名称必填', 20 | 'pid.require' => '父ID必填', 21 | 'level.require' => '级别必填', 22 | 'status.require' => '状态必填' 23 | ]; 24 | 25 | public function checkController($val) 26 | { 27 | if(count(explode('/',$val)) >= 2){ 28 | return true; 29 | } 30 | return '控制器填写错误'; 31 | } 32 | } -------------------------------------------------------------------------------- /app/validate/SupplierValidate.php: -------------------------------------------------------------------------------- 1 | 'require|max:100', 9 | 'contact' => 'require', 10 | 'phone' => 'require|number', 11 | 'email' => 'require|email', 12 | 'desc' => 'max:100' 13 | ]; 14 | 15 | protected $message = [ 16 | 'name.require' => '名称必填', 17 | 'name.max' => '名称最多不能超过50个字符', 18 | 'contact.require' => '联系人必填', 19 | 'phone.require' => '手机号必填', 20 | 'phone.number' => '手机号格式错误', 21 | 'email.require' => '邮箱必填', 22 | 'email.email' => '邮箱格式错误', 23 | 'desc.max' => '备注最多不能超过100个字符' 24 | ]; 25 | } 26 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "topthink/think", 3 | "description": "the new thinkphp framework", 4 | "type": "project", 5 | "keywords": [ 6 | "framework", 7 | "thinkphp", 8 | "ORM" 9 | ], 10 | "homepage": "http://thinkphp.cn/", 11 | "license": "Apache-2.0", 12 | "authors": [ 13 | { 14 | "name": "liu21st", 15 | "email": "liu21st@gmail.com" 16 | } 17 | ], 18 | "require": { 19 | "php": ">=5.4.0", 20 | "topthink/framework": "~5.0.0", 21 | "topthink/think-queue": "1.*", 22 | "topthink/think-image": "1.*" 23 | }, 24 | "autoload": { 25 | "psr-4": { 26 | "app\\": "application" 27 | } 28 | }, 29 | "extra": { 30 | "think-path": "thinkphp" 31 | }, 32 | "config": { 33 | "preferred-install": "dist" 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # xenon-wms 2 | 3 | ## 仓库管理系统 4 | 5 | ## 在线地址 6 | 7 | http://148.70.120.105:8002/login/index 8 | 9 | 10 | 类型| 账号 | 密码 11 | ---|---|--- 12 | 普通|admin | admin 13 | 管理员|bool | admin 14 | 15 | 16 | 17 | 20 | 21 | 22 | 23 | ## qq群:785794314 24 | 25 |
26 | 图片名称 27 |
28 | 29 | ## 支付宝:81001985@qq.com 30 | 31 |
32 | 图片名称 33 |
34 | 35 | 36 | ## 演示 37 | ![1](./demo/1.gif) 38 | 39 | ![1](./demo/20171229163116.png) 40 | 41 | ![1](./demo/20171229163127.png) 42 | 43 | ![1](./demo/20171229163140.png) 44 | 45 | ![1](./demo/20171229185301.png) 46 | 47 | ![1](./demo/20171230124816.png) 48 | 49 | ![1](./demo/20171230124819.png) 50 | 51 | 52 | -------------------------------------------------------------------------------- /app/route.php: -------------------------------------------------------------------------------- 1 | 10 | // +---------------------------------------------------------------------- 11 | 12 | return [ 13 | '__pattern__' => [ 14 | 'name' => '\w+', 15 | ], 16 | '[hello]' => [ 17 | ':id' => ['index/hello', ['method' => 'get'], ['id' => '\d+']], 18 | ':name' => ['index/hello', ['method' => 'post']], 19 | ], 20 | 21 | ]; 22 | -------------------------------------------------------------------------------- /app/view/public/menu_base.html: -------------------------------------------------------------------------------- 1 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /extend/Classes/PHPExcel/Reader/Excel5/Color/BuiltIn.php: -------------------------------------------------------------------------------- 1 | '000000', 7 | 0x01 => 'FFFFFF', 8 | 0x02 => 'FF0000', 9 | 0x03 => '00FF00', 10 | 0x04 => '0000FF', 11 | 0x05 => 'FFFF00', 12 | 0x06 => 'FF00FF', 13 | 0x07 => '00FFFF', 14 | 0x40 => '000000', // system window text color 15 | 0x41 => 'FFFFFF', // system window background color 16 | ); 17 | 18 | /** 19 | * Map built-in color to RGB value 20 | * 21 | * @param int $color Indexed color 22 | * @return array 23 | */ 24 | public static function lookup($color) 25 | { 26 | if (isset(self::$map[$color])) { 27 | return array('rgb' => self::$map[$color]); 28 | } 29 | return array('rgb' => '000000'); 30 | } 31 | } -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_ko.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery Validation Plugin - v1.13.0 - 7/1/2014 2 | * http://jqueryvalidation.org/ 3 | * Copyright (c) 2014 Jörn Zaefferer; Licensed MIT */ 4 | !function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):a(jQuery)}(function(a){a.extend(a.validator.messages,{required:"필수 항목입니다.",remote:"항목을 수정하세요.",email:"유효하지 않은 E-Mail주소입니다.",url:"유효하지 않은 URL입니다.",date:"올바른 날짜를 입력하세요.",dateISO:"올바른 날짜(ISO)를 입력하세요.",number:"유효한 숫자가 아닙니다.",digits:"숫자만 입력 가능합니다.",creditcard:"신용카드 번호가 바르지 않습니다.",equalTo:"같은 값을 다시 입력하세요.",extension:"올바른 확장자가 아닙니다.",maxlength:a.validator.format("{0}자를 넘을 수 없습니다. "),minlength:a.validator.format("{0}자 이상 입력하세요."),rangelength:a.validator.format("문자 길이가 {0} 에서 {1} 사이의 값을 입력하세요."),range:a.validator.format("{0} 에서 {1} 사이의 값을 입력하세요."),max:a.validator.format("{0} 이하의 값을 입력하세요."),min:a.validator.format("{0} 이상의 값을 입력하세요.")})}); -------------------------------------------------------------------------------- /thinkphp/library/think/exception/RouteNotFoundException.php: -------------------------------------------------------------------------------- 1 | 10 | // +---------------------------------------------------------------------- 11 | 12 | namespace think\exception; 13 | 14 | class RouteNotFoundException extends HttpException 15 | { 16 | 17 | public function __construct() 18 | { 19 | parent::__construct(404, 'Route Not Found'); 20 | } 21 | 22 | } 23 | -------------------------------------------------------------------------------- /public/router.php: -------------------------------------------------------------------------------- 1 | 10 | // +---------------------------------------------------------------------- 11 | // $Id$ 12 | 13 | if (is_file($_SERVER["DOCUMENT_ROOT"] . $_SERVER["SCRIPT_NAME"])) { 14 | return false; 15 | } else { 16 | if (!isset($_SERVER['PATH_INFO'])) { 17 | $_SERVER['PATH_INFO'] = $_SERVER['REQUEST_URI']; 18 | } 19 | require __DIR__ . "/index.php"; 20 | } 21 | -------------------------------------------------------------------------------- /app/controller/Goodtop.php: -------------------------------------------------------------------------------- 1 | service = $service; 12 | } 13 | 14 | public function index() 15 | { 16 | $this->assign(['list' => $this->service->page()]); 17 | return view(); 18 | } 19 | 20 | public function edit($id) 21 | { 22 | $this->assign( $this->service->_init() ); 23 | $this->assign([ 24 | 'info' => $this->service->edit($id) 25 | ]); 26 | return view(); 27 | } 28 | 29 | public function update(){ 30 | return $this->service->update(); 31 | } 32 | 33 | public function delete($id){ 34 | return $this->service->delete($id); 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_sk.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery Validation Plugin - v1.13.0 - 7/1/2014 2 | * http://jqueryvalidation.org/ 3 | * Copyright (c) 2014 Jörn Zaefferer; Licensed MIT */ 4 | !function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):a(jQuery)}(function(a){a.extend(a.validator.messages,{required:"Povinné zadať.",maxlength:a.validator.format("Maximálne {0} znakov."),minlength:a.validator.format("Minimálne {0} znakov."),rangelength:a.validator.format("Minimálne {0} a Maximálne {1} znakov."),email:"E-mailová adresa musí byť platná.",url:"URL musí byť platný.",date:"Musí byť dátum.",number:"Musí byť číslo.",digits:"Môže obsahovať iba číslice.",equalTo:"Dva hodnoty sa musia rovnať.",range:a.validator.format("Musí byť medzi {0} a {1}."),max:a.validator.format("Nemôže byť viac ako{0}."),min:a.validator.format("Nemôže byť menej ako{0}."),creditcard:"Číslo platobnej karty musí byť platné."})}); -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_ja.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery Validation Plugin - v1.13.0 - 7/1/2014 2 | * http://jqueryvalidation.org/ 3 | * Copyright (c) 2014 Jörn Zaefferer; Licensed MIT */ 4 | !function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):a(jQuery)}(function(a){a.extend(a.validator.messages,{required:"このフィールドは必須です。",remote:"このフィールドを修正してください。",email:"有効なEメールアドレスを入力してください。",url:"有効なURLを入力してください。",date:"有効な日付を入力してください。",dateISO:"有効な日付(ISO)を入力してください。",number:"有効な数字を入力してください。",digits:"数字のみを入力してください。",creditcard:"有効なクレジットカード番号を入力してください。",equalTo:"同じ値をもう一度入力してください。",extension:"有効な拡張子を含む値を入力してください。",maxlength:a.validator.format("{0} 文字以内で入力してください。"),minlength:a.validator.format("{0} 文字以上で入力してください。"),rangelength:a.validator.format("{0} 文字から {1} 文字までの値を入力してください。"),range:a.validator.format("{0} から {1} までの値を入力してください。"),max:a.validator.format("{0} 以下の値を入力してください。"),min:a.validator.format("{0} 以上の値を入力してください。")})}); -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_da.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery Validation Plugin - v1.13.0 - 7/1/2014 2 | * http://jqueryvalidation.org/ 3 | * Copyright (c) 2014 Jörn Zaefferer; Licensed MIT */ 4 | !function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):a(jQuery)}(function(a){a.extend(a.validator.messages,{required:"Dette felt er påkrævet.",maxlength:a.validator.format("Indtast højst {0} tegn."),minlength:a.validator.format("Indtast mindst {0} tegn."),rangelength:a.validator.format("Indtast mindst {0} og højst {1} tegn."),email:"Indtast en gyldig email-adresse.",url:"Indtast en gyldig URL.",date:"Indtast en gyldig dato.",number:"Indtast et tal.",digits:"Indtast kun cifre.",equalTo:"Indtast den samme værdi igen.",range:a.validator.format("Angiv en værdi mellem {0} og {1}."),max:a.validator.format("Angiv en værdi der højst er {0}."),min:a.validator.format("Angiv en værdi der mindst er {0}."),creditcard:"Indtast et gyldigt kreditkortnummer."})}); -------------------------------------------------------------------------------- /thinkphp/library/think/config/driver/Ini.php: -------------------------------------------------------------------------------- 1 | 10 | // +---------------------------------------------------------------------- 11 | 12 | namespace think\config\driver; 13 | 14 | class Ini 15 | { 16 | public function parse($config) 17 | { 18 | if (is_file($config)) { 19 | return parse_ini_file($config, true); 20 | } else { 21 | return parse_ini_string($config, true); 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /thinkphp/library/think/config/driver/Json.php: -------------------------------------------------------------------------------- 1 | 10 | // +---------------------------------------------------------------------- 11 | 12 | namespace think\config\driver; 13 | 14 | class Json 15 | { 16 | public function parse($config) 17 | { 18 | if (is_file($config)) { 19 | $config = file_get_contents($config); 20 | } 21 | $result = json_decode($config, true); 22 | return $result; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_vi.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery Validation Plugin - v1.13.0 - 7/1/2014 2 | * http://jqueryvalidation.org/ 3 | * Copyright (c) 2014 Jörn Zaefferer; Licensed MIT */ 4 | !function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):a(jQuery)}(function(a){a.extend(a.validator.messages,{required:"Hãy nhập.",remote:"Hãy sửa cho đúng.",email:"Hãy nhập email.",url:"Hãy nhập URL.",date:"Hãy nhập ngày.",dateISO:"Hãy nhập ngày (ISO).",number:"Hãy nhập số.",digits:"Hãy nhập chữ số.",creditcard:"Hãy nhập số thẻ tín dụng.",equalTo:"Hãy nhập thêm lần nữa.",extension:"Phần mở rộng không đúng.",maxlength:a.validator.format("Hãy nhập từ {0} kí tự trở xuống."),minlength:a.validator.format("Hãy nhập từ {0} kí tự trở lên."),rangelength:a.validator.format("Hãy nhập từ {0} đến {1} kí tự."),range:a.validator.format("Hãy nhập từ {0} đến {1}."),max:a.validator.format("Hãy nhập từ {0} trở xuống."),min:a.validator.format("Hãy nhập từ {1} trở lên.")})}); -------------------------------------------------------------------------------- /thinkphp/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "topthink/framework", 3 | "description": "the new thinkphp framework", 4 | "type": "think-framework", 5 | "keywords": [ 6 | "framework", 7 | "thinkphp", 8 | "ORM" 9 | ], 10 | "homepage": "http://thinkphp.cn/", 11 | "license": "Apache-2.0", 12 | "authors": [ 13 | { 14 | "name": "liu21st", 15 | "email": "liu21st@gmail.com" 16 | } 17 | ], 18 | "require": { 19 | "php": ">=5.4.0", 20 | "topthink/think-installer": "~1.0" 21 | }, 22 | "require-dev": { 23 | "phpunit/phpunit": "4.8.*", 24 | "johnkary/phpunit-speedtrap": "^1.0", 25 | "mikey179/vfsStream": "~1.6", 26 | "phploc/phploc": "2.*", 27 | "sebastian/phpcpd": "2.*", 28 | "phpdocumentor/reflection-docblock": "^2.0" 29 | }, 30 | "autoload": { 31 | "psr-4": { 32 | "think\\": "library/think" 33 | } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /thinkphp/library/think/log/driver/Test.php: -------------------------------------------------------------------------------- 1 | 10 | // +---------------------------------------------------------------------- 11 | 12 | namespace think\log\driver; 13 | 14 | /** 15 | * 模拟测试输出 16 | */ 17 | class Test 18 | { 19 | /** 20 | * 日志写入接口 21 | * @access public 22 | * @param array $log 日志信息 23 | * @return bool 24 | */ 25 | public function save(array $log = []) 26 | { 27 | return true; 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /app/tags.php: -------------------------------------------------------------------------------- 1 | 10 | // +---------------------------------------------------------------------- 11 | 12 | // 应用行为扩展定义文件 13 | return [ 14 | // 应用初始化 15 | 'app_init' => [], 16 | // 应用开始 17 | 'app_begin' => [], 18 | // 模块初始化 19 | 'module_init' => [], 20 | // 操作开始执行 21 | 'action_begin' => [], 22 | // 视图内容过滤 23 | 'view_filter' => [], 24 | // 日志写入 25 | 'log_write' => [], 26 | // 应用结束 27 | 'app_end' => [], 28 | ]; 29 | -------------------------------------------------------------------------------- /app/controller/Unit.php: -------------------------------------------------------------------------------- 1 | service = $service; 12 | } 13 | 14 | public function index() 15 | { 16 | $this->assign(['list' => $this->service->page()]); 17 | return view(); 18 | } 19 | 20 | public function create() 21 | { 22 | return view(); 23 | } 24 | 25 | 26 | public function save() 27 | { 28 | return $this->service->save(); 29 | } 30 | 31 | public function edit($id) 32 | { 33 | $this->assign(['info' => $this->service->edit($id)]); 34 | return view(); 35 | } 36 | 37 | public function update(){ 38 | return $this->service->update(); 39 | } 40 | 41 | public function delete($id){ 42 | return $this->service->delete($id); 43 | } 44 | 45 | } 46 | -------------------------------------------------------------------------------- /thinkphp/tpl/default_index.tpl: -------------------------------------------------------------------------------- 1 | *{ padding: 0; margin: 0; } div{ padding: 4px 48px;} a{color:#2E5CD5;cursor: pointer;text-decoration: none} a:hover{text-decoration:underline; } body{ background: #fff; font-family: "Century Gothic","Microsoft yahei"; color: #333;font-size:18px;} h1{ font-size: 100px; font-weight: normal; margin-bottom: 12px; } p{ line-height: 1.6em; font-size: 42px }

:)

ThinkPHP V5
十年磨一剑 - 为API开发设计的高性能框架

[ V5.0 版本由 七牛云 独家赞助发布 ]
'; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_he.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery Validation Plugin - v1.13.0 - 7/1/2014 2 | * http://jqueryvalidation.org/ 3 | * Copyright (c) 2014 Jörn Zaefferer; Licensed MIT */ 4 | !function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):a(jQuery)}(function(a){a.extend(a.validator.messages,{required:"השדה הזה הינו שדה חובה",remote:"נא לתקן שדה זה",email:'נא למלא כתובת דוא"ל חוקית',url:"נא למלא כתובת אינטרנט חוקית",date:"נא למלא תאריך חוקי",dateISO:"נא למלא תאריך חוקי (ISO)",number:"נא למלא מספר",digits:"נא למלא רק מספרים",creditcard:"נא למלא מספר כרטיס אשראי חוקי",equalTo:"נא למלא את אותו ערך שוב",extension:"נא למלא ערך עם סיומת חוקית",maxlength:a.validator.format(".נא לא למלא יותר מ- {0} תווים"),minlength:a.validator.format("נא למלא לפחות {0} תווים"),rangelength:a.validator.format("נא למלא ערך בין {0} ל- {1} תווים"),range:a.validator.format("נא למלא ערך בין {0} ל- {1}"),max:a.validator.format("נא למלא ערך קטן או שווה ל- {0}"),min:a.validator.format("נא למלא ערך גדול או שווה ל- {0}")})}); -------------------------------------------------------------------------------- /app/controller/Customer.php: -------------------------------------------------------------------------------- 1 | service = $service; 12 | } 13 | 14 | public function index() 15 | { 16 | $this->assign(['list' => $this->service->page()]); 17 | return view(); 18 | } 19 | 20 | public function create() 21 | { 22 | return view(); 23 | } 24 | 25 | 26 | public function save() 27 | { 28 | return $this->service->save(); 29 | } 30 | 31 | public function edit($id) 32 | { 33 | $this->assign(['info' => $this->service->edit($id)]); 34 | return view(); 35 | } 36 | 37 | public function update(){ 38 | return $this->service->update(); 39 | } 40 | 41 | public function delete($id){ 42 | return $this->service->delete($id); 43 | } 44 | 45 | } 46 | -------------------------------------------------------------------------------- /app/controller/Storage.php: -------------------------------------------------------------------------------- 1 | service = $service; 12 | } 13 | 14 | public function index() 15 | { 16 | $this->assign(['list' => $this->service->page()]); 17 | return view(); 18 | } 19 | 20 | public function create() 21 | { 22 | return view(); 23 | } 24 | 25 | 26 | public function save() 27 | { 28 | return $this->service->save(); 29 | } 30 | 31 | public function edit($id) 32 | { 33 | $this->assign(['info' => $this->service->edit($id)]); 34 | return view(); 35 | } 36 | 37 | public function update(){ 38 | return $this->service->update(); 39 | } 40 | 41 | public function delete($id){ 42 | return $this->service->delete($id); 43 | } 44 | 45 | } 46 | -------------------------------------------------------------------------------- /app/controller/Supplier.php: -------------------------------------------------------------------------------- 1 | service = $service; 12 | } 13 | 14 | public function index() 15 | { 16 | $this->assign(['list' => $this->service->page()]); 17 | return view(); 18 | } 19 | 20 | public function create() 21 | { 22 | return view(); 23 | } 24 | 25 | 26 | public function save() 27 | { 28 | return $this->service->save(); 29 | } 30 | 31 | public function edit($id) 32 | { 33 | $this->assign(['info' => $this->service->edit($id)]); 34 | return view(); 35 | } 36 | 37 | public function update(){ 38 | return $this->service->update(); 39 | } 40 | 41 | public function delete($id){ 42 | return $this->service->delete($id); 43 | } 44 | 45 | } 46 | -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_is.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery Validation Plugin - v1.13.0 - 7/1/2014 2 | * http://jqueryvalidation.org/ 3 | * Copyright (c) 2014 Jörn Zaefferer; Licensed MIT */ 4 | !function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):a(jQuery)}(function(a){a.extend(a.validator.messages,{required:"Þessi reitur er nauðsynlegur.",remote:"Lagaðu þennan reit.",maxlength:a.validator.format("Sláðu inn mest {0} stafi."),minlength:a.validator.format("Sláðu inn minnst {0} stafi."),rangelength:a.validator.format("Sláðu inn minnst {0} og mest {1} stafi."),email:"Sláðu inn gilt netfang.",url:"Sláðu inn gilda vefslóð.",date:"Sláðu inn gilda dagsetningu.",number:"Sláðu inn tölu.",digits:"Sláðu inn tölustafi eingöngu.",equalTo:"Sláðu sama gildi inn aftur.",range:a.validator.format("Sláðu inn gildi milli {0} og {1}."),max:a.validator.format("Sláðu inn gildi sem er minna en eða jafnt og {0}."),min:a.validator.format("Sláðu inn gildi sem er stærra en eða jafnt og {0}."),creditcard:"Sláðu inn gilt greiðslukortanúmer."})}); -------------------------------------------------------------------------------- /app/controller/Company.php: -------------------------------------------------------------------------------- 1 | service = $service; 12 | } 13 | 14 | public function index() 15 | { 16 | $this->assign(['list' => $this->service->page()]); 17 | return view(); 18 | } 19 | 20 | public function create(){ 21 | return view(); 22 | } 23 | 24 | public function save() 25 | { 26 | return $this->service->save(); 27 | } 28 | 29 | 30 | public function edit($id) 31 | { 32 | $this->assign([ 33 | 'info' => $this->service->edit($id), 34 | ]); 35 | return view(); 36 | } 37 | 38 | public function update(){ 39 | return $this->service->update(); 40 | } 41 | 42 | public function delete($id){ 43 | return $this->service->delete($id); 44 | } 45 | 46 | 47 | } -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_zh.js: -------------------------------------------------------------------------------- 1 | (function( factory ) { 2 | if ( typeof define === "function" && define.amd ) { 3 | define( ["jquery", "../jquery.validate"], factory ); 4 | } else { 5 | factory( jQuery ); 6 | } 7 | }(function( $ ) { 8 | 9 | /* 10 | * Translated default messages for the jQuery validation plugin. 11 | * Locale: ZH (Chinese, 中文 (Zhōngwén), 汉语, 漢語) 12 | */ 13 | $.extend($.validator.messages, { 14 | required: "必须填写", 15 | remote: "请修正此栏位", 16 | email: "请输入有效的电子邮件", 17 | url: "请输入有效的网址", 18 | date: "请输入有效的日期", 19 | dateISO: "请输入有效的日期 (YYYY-MM-DD)", 20 | number: "请输入正确的数字", 21 | digits: "只可输入数字", 22 | creditcard: "请输入有效的信用卡号码", 23 | equalTo: "你的输入不相同", 24 | extension: "请输入有效的后缀", 25 | maxlength: $.validator.format("最多 {0} 个字"), 26 | minlength: $.validator.format("最少 {0} 个字"), 27 | rangelength: $.validator.format("请输入长度为 {0} 至 {1} 之間的字串"), 28 | range: $.validator.format("请输入 {0} 至 {1} 之间的数值"), 29 | max: $.validator.format("请输入不大于 {0} 的数值"), 30 | min: $.validator.format("请输入不小于 {0} 的数值") 31 | }); 32 | 33 | })); -------------------------------------------------------------------------------- /extend/Classes/PHPExcel/Shared/JAMA/utils/Maths.php: -------------------------------------------------------------------------------- 1 | abs($b)) { 17 | $r = $b / $a; 18 | $r = abs($a) * sqrt(1 + $r * $r); 19 | } elseif ($b != 0) { 20 | $r = $a / $b; 21 | $r = abs($b) * sqrt(1 + $r * $r); 22 | } else { 23 | $r = 0.0; 24 | } 25 | return $r; 26 | } // function hypo() 27 | 28 | 29 | /** 30 | * Mike Bommarito's version. 31 | * Compute n-dimensional hyotheneuse. 32 | * 33 | function hypot() { 34 | $s = 0; 35 | foreach (func_get_args() as $d) { 36 | if (is_numeric($d)) { 37 | $s += pow($d, 2); 38 | } else { 39 | throw new PHPExcel_Calculation_Exception(JAMAError(ARGUMENT_TYPE_EXCEPTION)); 40 | } 41 | } 42 | return sqrt($s); 43 | } 44 | */ 45 | -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_zh_TW.js: -------------------------------------------------------------------------------- 1 | (function( factory ) { 2 | if ( typeof define === "function" && define.amd ) { 3 | define( ["jquery", "../jquery.validate"], factory ); 4 | } else { 5 | factory( jQuery ); 6 | } 7 | }(function( $ ) { 8 | 9 | /* 10 | * Translated default messages for the jQuery validation plugin. 11 | * Locale: ZH (Chinese; 中文 (Zhōngwén), 汉语, 漢語) 12 | * Region: TW (Taiwan) 13 | */ 14 | $.extend($.validator.messages, { 15 | required: "必須填寫", 16 | remote: "請修正此欄位", 17 | email: "請輸入有效的電子郵件", 18 | url: "請輸入有效的網址", 19 | date: "請輸入有效的日期", 20 | dateISO: "請輸入有效的日期 (YYYY-MM-DD)", 21 | number: "請輸入正確的數值", 22 | digits: "只可輸入數字", 23 | creditcard: "請輸入有效的信用卡號碼", 24 | equalTo: "請重複輸入一次", 25 | extension: "請輸入有效的後綴", 26 | maxlength: $.validator.format("最多 {0} 個字"), 27 | minlength: $.validator.format("最少 {0} 個字"), 28 | rangelength: $.validator.format("請輸入長度為 {0} 至 {1} 之間的字串"), 29 | range: $.validator.format("請輸入 {0} 至 {1} 之間的數值"), 30 | max: $.validator.format("請輸入不大於 {0} 的數值"), 31 | min: $.validator.format("請輸入不小於 {0} 的數值") 32 | }); 33 | 34 | })); -------------------------------------------------------------------------------- /app/view/public/menu.html: -------------------------------------------------------------------------------- 1 | 5 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_no.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery Validation Plugin - v1.13.0 - 7/1/2014 2 | * http://jqueryvalidation.org/ 3 | * Copyright (c) 2014 Jörn Zaefferer; Licensed MIT */ 4 | !function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):a(jQuery)}(function(a){a.extend(a.validator.messages,{required:"Dette feltet er obligatorisk.",maxlength:a.validator.format("Maksimalt {0} tegn."),minlength:a.validator.format("Minimum {0} tegn."),rangelength:a.validator.format("Angi minimum {0} og maksimum {1} tegn."),email:"Oppgi en gyldig epostadresse.",url:"Angi en gyldig URL.",date:"Angi en gyldig dato.",dateISO:"Angi en gyldig dato (&ARING;&ARING;&ARING;&ARING;-MM-DD).",dateSE:"Angi en gyldig dato.",number:"Angi et gyldig nummer.",numberSE:"Angi et gyldig nummer.",digits:"Skriv kun tall.",equalTo:"Skriv samme verdi igjen.",range:a.validator.format("Angi en verdi mellom {0} og {1}."),max:a.validator.format("Angi en verdi som er mindre eller lik {0}."),min:a.validator.format("Angi en verdi som er større eller lik {0}."),creditcard:"Angi et gyldig kredittkortnummer."})}); -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_hu.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery Validation Plugin - v1.13.0 - 7/1/2014 2 | * http://jqueryvalidation.org/ 3 | * Copyright (c) 2014 Jörn Zaefferer; Licensed MIT */ 4 | !function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):a(jQuery)}(function(a){a.extend(a.validator.messages,{required:"Kötelező megadni.",maxlength:a.validator.format("Legfeljebb {0} karakter hosszú legyen."),minlength:a.validator.format("Legalább {0} karakter hosszú legyen."),rangelength:a.validator.format("Legalább {0} és legfeljebb {1} karakter hosszú legyen."),email:"Érvényes e-mail címnek kell lennie.",url:"Érvényes URL-nek kell lennie.",date:"Dátumnak kell lennie.",number:"Számnak kell lennie.",digits:"Csak számjegyek lehetnek.",equalTo:"Meg kell egyeznie a két értéknek.",range:a.validator.format("{0} és {1} közé kell esnie."),max:a.validator.format("Nem lehet nagyobb, mint {0}."),min:a.validator.format("Nem lehet kisebb, mint {0}."),creditcard:"Érvényes hitelkártyaszámnak kell lennie.",remote:"Kérem javítsa ki ezt a mezőt.",dateISO:"Kérem írjon be egy érvényes dátumot (ISO)."})}); -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_ar.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery Validation Plugin - v1.13.0 - 7/1/2014 2 | * http://jqueryvalidation.org/ 3 | * Copyright (c) 2014 Jörn Zaefferer; Licensed MIT */ 4 | !function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):a(jQuery)}(function(a){a.extend(a.validator.messages,{required:"هذا الحقل إلزامي",remote:"يرجى تصحيح هذا الحقل للمتابعة",email:"رجاء إدخال عنوان بريد إلكتروني صحيح",url:"رجاء إدخال عنوان موقع إلكتروني صحيح",date:"رجاء إدخال تاريخ صحيح",dateISO:"رجاء إدخال تاريخ صحيح (ISO)",number:"رجاء إدخال عدد بطريقة صحيحة",digits:"رجاء إدخال أرقام فقط",creditcard:"رجاء إدخال رقم بطاقة ائتمان صحيح",equalTo:"رجاء إدخال نفس القيمة",extension:"رجاء إدخال ملف بامتداد موافق عليه",maxlength:a.validator.format("الحد الأقصى لعدد الحروف هو {0}"),minlength:a.validator.format("الحد الأدنى لعدد الحروف هو {0}"),rangelength:a.validator.format("عدد الحروف يجب أن يكون بين {0} و {1}"),range:a.validator.format("رجاء إدخال عدد قيمته بين {0} و {1}"),max:a.validator.format("رجاء إدخال عدد أقل من أو يساوي (0}"),min:a.validator.format("رجاء إدخال عدد أكبر من أو يساوي (0}")})}); -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_th.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery Validation Plugin - v1.13.0 - 7/1/2014 2 | * http://jqueryvalidation.org/ 3 | * Copyright (c) 2014 Jörn Zaefferer; Licensed MIT */ 4 | !function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):a(jQuery)}(function(a){a.extend(a.validator.messages,{required:"โปรดระบุ",remote:"โปรดแก้ไขให้ถูกต้อง",email:"โปรดระบุที่อยู่อีเมล์ที่ถูกต้อง",url:"โปรดระบุ URL ที่ถูกต้อง",date:"โปรดระบุวันที่ ที่ถูกต้อง",dateISO:"โปรดระบุวันที่ ที่ถูกต้อง (ระบบ ISO).",number:"โปรดระบุทศนิยมที่ถูกต้อง",digits:"โปรดระบุจำนวนเต็มที่ถูกต้อง",creditcard:"โปรดระบุรหัสบัตรเครดิตที่ถูกต้อง",equalTo:"โปรดระบุค่าเดิมอีกครั้ง",extension:"โปรดระบุค่าที่มีส่วนขยายที่ถูกต้อง",maxlength:a.validator.format("โปรดอย่าระบุค่าที่ยาวกว่า {0} อักขระ"),minlength:a.validator.format("โปรดอย่าระบุค่าที่สั้นกว่า {0} อักขระ"),rangelength:a.validator.format("โปรดอย่าระบุค่าความยาวระหว่าง {0} ถึง {1} อักขระ"),range:a.validator.format("โปรดระบุค่าระหว่าง {0} และ {1}"),max:a.validator.format("โปรดระบุค่าน้อยกว่าหรือเท่ากับ {0}"),min:a.validator.format("โปรดระบุค่ามากกว่าหรือเท่ากับ {0}")})}); -------------------------------------------------------------------------------- /thinkphp/library/think/exception/HttpResponseException.php: -------------------------------------------------------------------------------- 1 | 10 | // +---------------------------------------------------------------------- 11 | 12 | namespace think\exception; 13 | 14 | use think\Response; 15 | 16 | class HttpResponseException extends \RuntimeException 17 | { 18 | /** 19 | * @var Response 20 | */ 21 | protected $response; 22 | 23 | public function __construct(Response $response) 24 | { 25 | $this->response = $response; 26 | } 27 | 28 | public function getResponse() 29 | { 30 | return $this->response; 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_ko.js: -------------------------------------------------------------------------------- 1 | (function( factory ) { 2 | if ( typeof define === "function" && define.amd ) { 3 | define( ["jquery", "../jquery.validate"], factory ); 4 | } else { 5 | factory( jQuery ); 6 | } 7 | }(function( $ ) { 8 | 9 | /* 10 | * Translated default messages for the jQuery validation plugin. 11 | * Locale: KO (Korean; 한국어) 12 | */ 13 | $.extend($.validator.messages, { 14 | required: "필수 항목입니다.", 15 | remote: "항목을 수정하세요.", 16 | email: "유효하지 않은 E-Mail주소입니다.", 17 | url: "유효하지 않은 URL입니다.", 18 | date: "올바른 날짜를 입력하세요.", 19 | dateISO: "올바른 날짜(ISO)를 입력하세요.", 20 | number: "유효한 숫자가 아닙니다.", 21 | digits: "숫자만 입력 가능합니다.", 22 | creditcard: "신용카드 번호가 바르지 않습니다.", 23 | equalTo: "같은 값을 다시 입력하세요.", 24 | extension: "올바른 확장자가 아닙니다.", 25 | maxlength: $.validator.format("{0}자를 넘을 수 없습니다. "), 26 | minlength: $.validator.format("{0}자 이상 입력하세요."), 27 | rangelength: $.validator.format("문자 길이가 {0} 에서 {1} 사이의 값을 입력하세요."), 28 | range: $.validator.format("{0} 에서 {1} 사이의 값을 입력하세요."), 29 | max: $.validator.format("{0} 이하의 값을 입력하세요."), 30 | min: $.validator.format("{0} 이상의 값을 입력하세요.") 31 | }); 32 | 33 | })); -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_sr.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery Validation Plugin - v1.13.0 - 7/1/2014 2 | * http://jqueryvalidation.org/ 3 | * Copyright (c) 2014 Jörn Zaefferer; Licensed MIT */ 4 | !function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):a(jQuery)}(function(a){a.extend(a.validator.messages,{required:"Поље је обавезно.",remote:"Средите ово поље.",email:"Унесите исправну и-мејл адресу.",url:"Унесите исправан URL.",date:"Унесите исправан датум.",dateISO:"Унесите исправан датум (ISO).",number:"Унесите исправан број.",digits:"Унесите само цифе.",creditcard:"Унесите исправан број кредитне картице.",equalTo:"Унесите исту вредност поново.",extension:"Унесите вредност са одговарајућом екстензијом.",maxlength:a.validator.format("Унесите мање од {0} карактера."),minlength:a.validator.format("Унесите барем {0} карактера."),rangelength:a.validator.format("Унесите вредност дугачку између {0} и {1} карактера."),range:a.validator.format("Унесите вредност између {0} и {1}."),max:a.validator.format("Унесите вредност мању или једнаку {0}."),min:a.validator.format("Унесите вредност већу или једнаку {0}.")})}); -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_sr_lat.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery Validation Plugin - v1.13.0 - 7/1/2014 2 | * http://jqueryvalidation.org/ 3 | * Copyright (c) 2014 Jörn Zaefferer; Licensed MIT */ 4 | !function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):a(jQuery)}(function(a){a.extend(a.validator.messages,{required:"Polje je obavezno.",remote:"Sredite ovo polje.",email:"Unesite ispravnu i-mejl adresu",url:"Unesite ispravan URL.",date:"Unesite ispravan datum.",dateISO:"Unesite ispravan datum (ISO).",number:"Unesite ispravan broj.",digits:"Unesite samo cife.",creditcard:"Unesite ispravan broj kreditne kartice.",equalTo:"Unesite istu vrednost ponovo.",extension:"Unesite vrednost sa odgovarajućom ekstenzijom.",maxlength:a.validator.format("Unesite manje od {0} karaktera."),minlength:a.validator.format("Unesite barem {0} karaktera."),rangelength:a.validator.format("Unesite vrednost dugačku između {0} i {1} karaktera."),range:a.validator.format("Unesite vrednost između {0} i {1}."),max:a.validator.format("Unesite vrednost manju ili jednaku {0}."),min:a.validator.format("Unesite vrednost veću ili jednaku {0}.")})}); -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_sv.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery Validation Plugin - v1.13.0 - 7/1/2014 2 | * http://jqueryvalidation.org/ 3 | * Copyright (c) 2014 Jörn Zaefferer; Licensed MIT */ 4 | !function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):a(jQuery)}(function(a){a.extend(a.validator.messages,{required:"Detta fält är obligatoriskt.",maxlength:a.validator.format("Du får ange högst {0} tecken."),minlength:a.validator.format("Du måste ange minst {0} tecken."),rangelength:a.validator.format("Ange minst {0} och max {1} tecken."),email:"Ange en korrekt e-postadress.",url:"Ange en korrekt URL.",date:"Ange ett korrekt datum.",dateISO:"Ange ett korrekt datum (ÅÅÅÅ-MM-DD).",number:"Ange ett korrekt nummer.",digits:"Ange endast siffror.",equalTo:"Ange samma värde igen.",range:a.validator.format("Ange ett värde mellan {0} och {1}."),max:a.validator.format("Ange ett värde som är mindre eller lika med {0}."),min:a.validator.format("Ange ett värde som är större eller lika med {0}."),creditcard:"Ange ett korrekt kreditkortsnummer."})}); -------------------------------------------------------------------------------- /thinkphp/library/think/console/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2004-2016 Fabien Potencier 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is furnished 8 | to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in all 11 | copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. -------------------------------------------------------------------------------- /thinkphp/library/think/console/output/driver/Nothing.php: -------------------------------------------------------------------------------- 1 | 10 | // +---------------------------------------------------------------------- 11 | 12 | namespace think\console\output\driver; 13 | 14 | use think\console\Output; 15 | 16 | class Nothing 17 | { 18 | 19 | public function __construct(Output $output) 20 | { 21 | // do nothing 22 | } 23 | 24 | public function write($messages, $newline = false, $options = Output::OUTPUT_NORMAL) 25 | { 26 | // do nothing 27 | } 28 | 29 | public function renderException(\Exception $e) 30 | { 31 | // do nothing 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_hr.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery Validation Plugin - v1.13.0 - 7/1/2014 2 | * http://jqueryvalidation.org/ 3 | * Copyright (c) 2014 Jörn Zaefferer; Licensed MIT */ 4 | !function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):a(jQuery)}(function(a){a.extend(a.validator.messages,{required:"Ovo polje je obavezno.",remote:"Ovo polje treba popraviti.",email:"Unesite ispravnu e-mail adresu.",url:"Unesite ispravan URL.",date:"Unesite ispravan datum.",dateISO:"Unesite ispravan datum (ISO).",number:"Unesite ispravan broj.",digits:"Unesite samo brojeve.",creditcard:"Unesite ispravan broj kreditne kartice.",equalTo:"Unesite ponovo istu vrijednost.",extension:"Unesite vrijednost sa ispravnom ekstenzijom.",maxlength:a.validator.format("Maksimalni broj znakova je {0} ."),minlength:a.validator.format("Minimalni broj znakova je {0} ."),rangelength:a.validator.format("Unesite vrijednost između {0} i {1} znakova."),range:a.validator.format("Unesite vrijednost između {0} i {1}."),max:a.validator.format("Unesite vrijednost manju ili jednaku {0}."),min:a.validator.format("Unesite vrijednost veću ili jednaku {0}.")})}); -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_sk.js: -------------------------------------------------------------------------------- 1 | (function( factory ) { 2 | if ( typeof define === "function" && define.amd ) { 3 | define( ["jquery", "../jquery.validate"], factory ); 4 | } else { 5 | factory( jQuery ); 6 | } 7 | }(function( $ ) { 8 | 9 | /* 10 | * Translated default messages for the jQuery validation plugin. 11 | * Locale: SK (Slovak; slovenčina, slovenský jazyk) 12 | */ 13 | $.extend($.validator.messages, { 14 | required: "Povinné zadať.", 15 | maxlength: $.validator.format("Maximálne {0} znakov."), 16 | minlength: $.validator.format("Minimálne {0} znakov."), 17 | rangelength: $.validator.format("Minimálne {0} a Maximálne {1} znakov."), 18 | email: "E-mailová adresa musí byť platná.", 19 | url: "URL musí byť platný.", 20 | date: "Musí byť dátum.", 21 | number: "Musí byť číslo.", 22 | digits: "Môže obsahovať iba číslice.", 23 | equalTo: "Dva hodnoty sa musia rovnať.", 24 | range: $.validator.format("Musí byť medzi {0} a {1}."), 25 | max: $.validator.format("Nemôže byť viac ako{0}."), 26 | min: $.validator.format("Nemôže byť menej ako{0}."), 27 | creditcard: "Číslo platobnej karty musí byť platné." 28 | }); 29 | 30 | })); -------------------------------------------------------------------------------- /thinkphp/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | 3 | language: php 4 | 5 | services: 6 | - memcached 7 | - mongodb 8 | - mysql 9 | - postgresql 10 | - redis-server 11 | 12 | matrix: 13 | fast_finish: true 14 | include: 15 | - php: 5.4 16 | - php: 5.5 17 | - php: 5.6 18 | - php: 7.0 19 | - php: hhvm 20 | allow_failures: 21 | - php: hhvm 22 | 23 | cache: 24 | directories: 25 | - $HOME/.composer/cache 26 | 27 | before_install: 28 | - composer self-update 29 | - mysql -e "create database IF NOT EXISTS test;" -uroot 30 | - psql -c 'DROP DATABASE IF EXISTS test;' -U postgres 31 | - psql -c 'create database test;' -U postgres 32 | 33 | install: 34 | - ./tests/script/install.sh 35 | 36 | script: 37 | ## LINT 38 | - find . -path ./vendor -prune -o -type f -name \*.php -exec php -l {} \; 39 | ## PHP Copy/Paste Detector 40 | - vendor/bin/phpcpd --verbose --exclude vendor ./ || true 41 | ## PHPLOC 42 | - vendor/bin/phploc --exclude vendor ./ 43 | ## PHPUNIT 44 | - vendor/bin/phpunit --coverage-clover=coverage.xml --configuration=phpunit.xml 45 | 46 | after_success: 47 | - bash <(curl -s https://codecov.io/bash) 48 | -------------------------------------------------------------------------------- /thinkphp/library/think/exception/ClassNotFoundException.php: -------------------------------------------------------------------------------- 1 | 10 | // +---------------------------------------------------------------------- 11 | 12 | namespace think\exception; 13 | 14 | class ClassNotFoundException extends \RuntimeException 15 | { 16 | protected $class; 17 | public function __construct($message, $class = '') 18 | { 19 | $this->message = $message; 20 | $this->class = $class; 21 | } 22 | 23 | /** 24 | * 获取类名 25 | * @access public 26 | * @return string 27 | */ 28 | public function getClass() 29 | { 30 | return $this->class; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /app/controller/User.php: -------------------------------------------------------------------------------- 1 | service = $service; 12 | } 13 | 14 | public function index() 15 | { 16 | $this->assign($this->service->getVar()); 17 | $this->assign(['list' => $this->service->page()]); 18 | return view(); 19 | } 20 | 21 | public function create() 22 | { 23 | $this->assign($this->service->getVar()); 24 | return view(); 25 | } 26 | 27 | 28 | public function save() 29 | { 30 | return $this->service->save(); 31 | } 32 | 33 | public function edit($id) 34 | { 35 | $this->assign($this->service->getVar()); 36 | $this->assign(['info' => $this->service->edit($id)]); 37 | return view(); 38 | } 39 | 40 | public function update(){ 41 | return $this->service->update(); 42 | } 43 | 44 | public function delete($id){ 45 | return $this->service->delete($id); 46 | } 47 | 48 | } 49 | -------------------------------------------------------------------------------- /extend/Classes/PHPExcel/Reader/Excel5/Color.php: -------------------------------------------------------------------------------- 1 | 'FF0000') 11 | */ 12 | public static function map($color, $palette, $version) 13 | { 14 | if ($color <= 0x07 || $color >= 0x40) { 15 | // special built-in color 16 | return PHPExcel_Reader_Excel5_Color_BuiltIn::lookup($color); 17 | } elseif (isset($palette) && isset($palette[$color - 8])) { 18 | // palette color, color index 0x08 maps to pallete index 0 19 | return $palette[$color - 8]; 20 | } else { 21 | // default color table 22 | if ($version == PHPExcel_Reader_Excel5::XLS_BIFF8) { 23 | return PHPExcel_Reader_Excel5_Color_BIFF8::lookup($color); 24 | } else { 25 | // BIFF5 26 | return PHPExcel_Reader_Excel5_Color_BIFF5::lookup($color); 27 | } 28 | } 29 | 30 | return $color; 31 | } 32 | } -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_ja.js: -------------------------------------------------------------------------------- 1 | (function( factory ) { 2 | if ( typeof define === "function" && define.amd ) { 3 | define( ["jquery", "../jquery.validate"], factory ); 4 | } else { 5 | factory( jQuery ); 6 | } 7 | }(function( $ ) { 8 | 9 | /* 10 | * Translated default messages for the jQuery validation plugin. 11 | * Locale: JA (Japanese; 日本語) 12 | */ 13 | $.extend($.validator.messages, { 14 | required: "このフィールドは必須です。", 15 | remote: "このフィールドを修正してください。", 16 | email: "有効なEメールアドレスを入力してください。", 17 | url: "有効なURLを入力してください。", 18 | date: "有効な日付を入力してください。", 19 | dateISO: "有効な日付(ISO)を入力してください。", 20 | number: "有効な数字を入力してください。", 21 | digits: "数字のみを入力してください。", 22 | creditcard: "有効なクレジットカード番号を入力してください。", 23 | equalTo: "同じ値をもう一度入力してください。", 24 | extension: "有効な拡張子を含む値を入力してください。", 25 | maxlength: $.validator.format("{0} 文字以内で入力してください。"), 26 | minlength: $.validator.format("{0} 文字以上で入力してください。"), 27 | rangelength: $.validator.format("{0} 文字から {1} 文字までの値を入力してください。"), 28 | range: $.validator.format("{0} から {1} までの値を入力してください。"), 29 | max: $.validator.format("{0} 以下の値を入力してください。"), 30 | min: $.validator.format("{0} 以上の値を入力してください。") 31 | }); 32 | 33 | })); -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_da.js: -------------------------------------------------------------------------------- 1 | (function( factory ) { 2 | if ( typeof define === "function" && define.amd ) { 3 | define( ["jquery", "../jquery.validate"], factory ); 4 | } else { 5 | factory( jQuery ); 6 | } 7 | }(function( $ ) { 8 | 9 | /* 10 | * Translated default messages for the jQuery validation plugin. 11 | * Locale: DA (Danish; dansk) 12 | */ 13 | $.extend($.validator.messages, { 14 | required: "Dette felt er påkrævet.", 15 | maxlength: $.validator.format("Indtast højst {0} tegn."), 16 | minlength: $.validator.format("Indtast mindst {0} tegn."), 17 | rangelength: $.validator.format("Indtast mindst {0} og højst {1} tegn."), 18 | email: "Indtast en gyldig email-adresse.", 19 | url: "Indtast en gyldig URL.", 20 | date: "Indtast en gyldig dato.", 21 | number: "Indtast et tal.", 22 | digits: "Indtast kun cifre.", 23 | equalTo: "Indtast den samme værdi igen.", 24 | range: $.validator.format("Angiv en værdi mellem {0} og {1}."), 25 | max: $.validator.format("Angiv en værdi der højst er {0}."), 26 | min: $.validator.format("Angiv en værdi der mindst er {0}."), 27 | creditcard: "Indtast et gyldigt kreditkortnummer." 28 | }); 29 | 30 | })); -------------------------------------------------------------------------------- /thinkphp/library/think/exception/TemplateNotFoundException.php: -------------------------------------------------------------------------------- 1 | 10 | // +---------------------------------------------------------------------- 11 | 12 | namespace think\exception; 13 | 14 | class TemplateNotFoundException extends \RuntimeException 15 | { 16 | protected $template; 17 | 18 | public function __construct($message, $template = '') 19 | { 20 | $this->message = $message; 21 | $this->template = $template; 22 | } 23 | 24 | /** 25 | * 获取模板文件 26 | * @access public 27 | * @return string 28 | */ 29 | public function getTemplate() 30 | { 31 | return $this->template; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_cs.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery Validation Plugin - v1.13.0 - 7/1/2014 2 | * http://jqueryvalidation.org/ 3 | * Copyright (c) 2014 Jörn Zaefferer; Licensed MIT */ 4 | !function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):a(jQuery)}(function(a){a.extend(a.validator.messages,{required:"Tento údaj je povinný.",remote:"Prosím, opravte tento údaj.",email:"Prosím, zadejte platný e-mail.",url:"Prosím, zadejte platné URL.",date:"Prosím, zadejte platné datum.",dateISO:"Prosím, zadejte platné datum (ISO).",number:"Prosím, zadejte číslo.",digits:"Prosím, zadávejte pouze číslice.",creditcard:"Prosím, zadejte číslo kreditní karty.",equalTo:"Prosím, zadejte znovu stejnou hodnotu.",extension:"Prosím, zadejte soubor se správnou příponou.",maxlength:a.validator.format("Prosím, zadejte nejvíce {0} znaků."),minlength:a.validator.format("Prosím, zadejte nejméně {0} znaků."),rangelength:a.validator.format("Prosím, zadejte od {0} do {1} znaků."),range:a.validator.format("Prosím, zadejte hodnotu od {0} do {1}."),max:a.validator.format("Prosím, zadejte hodnotu menší nebo rovnu {0}."),min:a.validator.format("Prosím, zadejte hodnotu větší nebo rovnu {0}.")})}); -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_de.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery Validation Plugin - v1.13.0 - 7/1/2014 2 | * http://jqueryvalidation.org/ 3 | * Copyright (c) 2014 Jörn Zaefferer; Licensed MIT */ 4 | !function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):a(jQuery)}(function(a){a.extend(a.validator.messages,{required:"Dieses Feld ist ein Pflichtfeld.",maxlength:a.validator.format("Geben Sie bitte maximal {0} Zeichen ein."),minlength:a.validator.format("Geben Sie bitte mindestens {0} Zeichen ein."),rangelength:a.validator.format("Geben Sie bitte mindestens {0} und maximal {1} Zeichen ein."),email:"Geben Sie bitte eine gültige E-Mail Adresse ein.",url:"Geben Sie bitte eine gültige URL ein.",date:"Bitte geben Sie ein gültiges Datum ein.",number:"Geben Sie bitte eine Nummer ein.",digits:"Geben Sie bitte nur Ziffern ein.",equalTo:"Bitte denselben Wert wiederholen.",range:a.validator.format("Geben Sie bitte einen Wert zwischen {0} und {1} ein."),max:a.validator.format("Geben Sie bitte einen Wert kleiner oder gleich {0} ein."),min:a.validator.format("Geben Sie bitte einen Wert größer oder gleich {0} ein."),creditcard:"Geben Sie bitte eine gültige Kreditkarten-Nummer ein."})}); -------------------------------------------------------------------------------- /thinkphp/library/think/exception/ValidateException.php: -------------------------------------------------------------------------------- 1 | 10 | // +---------------------------------------------------------------------- 11 | 12 | namespace think\exception; 13 | 14 | class ValidateException extends \RuntimeException 15 | { 16 | protected $error; 17 | 18 | public function __construct($error) 19 | { 20 | $this->error = $error; 21 | $this->message = is_array($error) ? implode("\n\r", $error) : $error; 22 | } 23 | 24 | /** 25 | * 获取验证错误信息 26 | * @access public 27 | * @return array|string 28 | */ 29 | public function getError() 30 | { 31 | return $this->error; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_vi.js: -------------------------------------------------------------------------------- 1 | (function( factory ) { 2 | if ( typeof define === "function" && define.amd ) { 3 | define( ["jquery", "../jquery.validate"], factory ); 4 | } else { 5 | factory( jQuery ); 6 | } 7 | }(function( $ ) { 8 | 9 | /* 10 | * Translated default messages for the jQuery validation plugin. 11 | * Locale: VI (Vietnamese; Tiếng Việt) 12 | */ 13 | $.extend($.validator.messages, { 14 | required: "Hãy nhập.", 15 | remote: "Hãy sửa cho đúng.", 16 | email: "Hãy nhập email.", 17 | url: "Hãy nhập URL.", 18 | date: "Hãy nhập ngày.", 19 | dateISO: "Hãy nhập ngày (ISO).", 20 | number: "Hãy nhập số.", 21 | digits: "Hãy nhập chữ số.", 22 | creditcard: "Hãy nhập số thẻ tín dụng.", 23 | equalTo: "Hãy nhập thêm lần nữa.", 24 | extension: "Phần mở rộng không đúng.", 25 | maxlength: $.validator.format("Hãy nhập từ {0} kí tự trở xuống."), 26 | minlength: $.validator.format("Hãy nhập từ {0} kí tự trở lên."), 27 | rangelength: $.validator.format("Hãy nhập từ {0} đến {1} kí tự."), 28 | range: $.validator.format("Hãy nhập từ {0} đến {1}."), 29 | max: $.validator.format("Hãy nhập từ {0} trở xuống."), 30 | min: $.validator.format("Hãy nhập từ {1} trở lên.") 31 | }); 32 | 33 | })); -------------------------------------------------------------------------------- /app/service/LoginService.php: -------------------------------------------------------------------------------- 1 | isPost() || die('request not post!'); 13 | 14 | //获取参数 15 | $param = Request::instance()->param(); 16 | $user = User::get(['username' => $param['username'] ]); 17 | 18 | //检测用户是否存在 19 | if( is_null($user) ){ 20 | return [ 21 | 'error' => 100, 22 | 'msg' => '用户名不存在' 23 | ]; 24 | } 25 | 26 | //检测密码是否正确 27 | if( $user['password'] != md5($param['password']) ){ 28 | return [ 29 | 'error' => 100, 30 | 'msg' => '用户名或者密码错误' 31 | ]; 32 | }else{ 33 | Session::set('uid',$user->id,'think'); 34 | Session::set('company',$user->company,'think'); 35 | return [ 36 | 'error' => 0, 37 | 'msg' => '登录成功' 38 | ]; 39 | 40 | } 41 | } 42 | 43 | //注销 44 | public function quit(){ 45 | Session::delete('uid','think'); 46 | Session::delete('company','think'); 47 | Session::delete('user_menu'); // 清理用户菜单 48 | } 49 | 50 | 51 | } 52 | -------------------------------------------------------------------------------- /thinkphp/library/think/config/driver/Xml.php: -------------------------------------------------------------------------------- 1 | 10 | // +---------------------------------------------------------------------- 11 | 12 | namespace think\config\driver; 13 | 14 | class Xml 15 | { 16 | public function parse($config) 17 | { 18 | if (is_file($config)) { 19 | $content = simplexml_load_file($config); 20 | } else { 21 | $content = simplexml_load_string($config); 22 | } 23 | $result = (array) $content; 24 | foreach ($result as $key => $val) { 25 | if (is_object($val)) { 26 | $result[$key] = (array) $val; 27 | } 28 | } 29 | return $result; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_et.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery Validation Plugin - v1.13.0 - 7/1/2014 2 | * http://jqueryvalidation.org/ 3 | * Copyright (c) 2014 Jörn Zaefferer; Licensed MIT */ 4 | !function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):a(jQuery)}(function(a){a.extend(a.validator.messages,{required:"See väli peab olema täidetud.",maxlength:a.validator.format("Palun sisestage vähem kui {0} tähemärki."),minlength:a.validator.format("Palun sisestage vähemalt {0} tähemärki."),rangelength:a.validator.format("Palun sisestage väärtus vahemikus {0} kuni {1} tähemärki."),email:"Palun sisestage korrektne e-maili aadress.",url:"Palun sisestage korrektne URL.",date:"Palun sisestage korrektne kuupäev.",dateISO:"Palun sisestage korrektne kuupäev (YYYY-MM-DD).",number:"Palun sisestage korrektne number.",digits:"Palun sisestage ainult numbreid.",equalTo:"Palun sisestage sama väärtus uuesti.",range:a.validator.format("Palun sisestage väärtus vahemikus {0} kuni {1}."),max:a.validator.format("Palun sisestage väärtus, mis on väiksem või võrdne arvuga {0}."),min:a.validator.format("Palun sisestage väärtus, mis on suurem või võrdne arvuga {0}."),creditcard:"Palun sisestage korrektne krediitkaardi number."})}); -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_si.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery Validation Plugin - v1.13.0 - 7/1/2014 2 | * http://jqueryvalidation.org/ 3 | * Copyright (c) 2014 Jörn Zaefferer; Licensed MIT */ 4 | !function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):a(jQuery)}(function(a){a.extend(a.validator.messages,{required:"To polje je obvezno.",remote:"Vpis v tem polju ni v pravi obliki.",email:"Prosimo, vnesite pravi email naslov.",url:"Prosimo, vnesite pravi URL.",date:"Prosimo, vnesite pravi datum.",dateISO:"Prosimo, vnesite pravi datum (ISO).",number:"Prosimo, vnesite pravo številko.",digits:"Prosimo, vnesite samo številke.",creditcard:"Prosimo, vnesite pravo številko kreditne kartice.",equalTo:"Prosimo, ponovno vnesite enako vsebino.",extension:"Prosimo, vnesite vsebino z pravo končnico.",maxlength:a.validator.format("Prosimo, da ne vnašate več kot {0} znakov."),minlength:a.validator.format("Prosimo, vnesite vsaj {0} znakov."),rangelength:a.validator.format("Prosimo, vnesite od {0} do {1} znakov."),range:a.validator.format("Prosimo, vnesite vrednost med {0} in {1}."),max:a.validator.format("Prosimo, vnesite vrednost manjšo ali enako {0}."),min:a.validator.format("Prosimo, vnesite vrednost večjo ali enako {0}.")})}); -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_sl.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery Validation Plugin - v1.13.0 - 7/1/2014 2 | * http://jqueryvalidation.org/ 3 | * Copyright (c) 2014 Jörn Zaefferer; Licensed MIT */ 4 | !function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):a(jQuery)}(function(a){a.extend(a.validator.messages,{required:"To polje je obvezno.",remote:"Prosimo popravite to polje.",email:"Prosimo vnesite veljaven email naslov.",url:"Prosimo vnesite veljaven URL naslov.",date:"Prosimo vnesite veljaven datum.",dateISO:"Prosimo vnesite veljaven ISO datum.",number:"Prosimo vnesite veljavno število.",digits:"Prosimo vnesite samo števila.",creditcard:"Prosimo vnesite veljavno številko kreditne kartice.",equalTo:"Prosimo ponovno vnesite vrednost.",extension:"Prosimo vnesite vrednost z veljavno končnico.",maxlength:a.validator.format("Prosimo vnesite največ {0} znakov."),minlength:a.validator.format("Prosimo vnesite najmanj {0} znakov."),rangelength:a.validator.format("Prosimo vnesite najmanj {0} in največ {1} znakov."),range:a.validator.format("Prosimo vnesite vrednost med {0} in {1}."),max:a.validator.format("Prosimo vnesite vrednost manjše ali enako {0}."),min:a.validator.format("Prosimo vnesite vrednost večje ali enako {0}.")})}); -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_bg.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery Validation Plugin - v1.13.0 - 7/1/2014 2 | * http://jqueryvalidation.org/ 3 | * Copyright (c) 2014 Jörn Zaefferer; Licensed MIT */ 4 | !function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):a(jQuery)}(function(a){a.extend(a.validator.messages,{required:"Полето е задължително.",remote:"Моля, въведете правилната стойност.",email:"Моля, въведете валиден email.",url:"Моля, въведете валидно URL.",date:"Моля, въведете валидна дата.",dateISO:"Моля, въведете валидна дата (ISO).",number:"Моля, въведете валиден номер.",digits:"Моля, въведете само цифри.",creditcard:"Моля, въведете валиден номер на кредитна карта.",equalTo:"Моля, въведете същата стойност отново.",extension:"Моля, въведете стойност с валидно разширение.",maxlength:a.validator.format("Моля, въведете повече от {0} символа."),minlength:a.validator.format("Моля, въведете поне {0} символа."),rangelength:a.validator.format("Моля, въведете стойност с дължина между {0} и {1} символа."),range:a.validator.format("Моля, въведете стойност между {0} и {1}."),max:a.validator.format("Моля, въведете стойност по-малка или равна на {0}."),min:a.validator.format("Моля, въведете стойност по-голяма или равна на {0}.")})}); -------------------------------------------------------------------------------- /app/controller/Product.php: -------------------------------------------------------------------------------- 1 | service = $service; 12 | } 13 | 14 | public function index() 15 | { 16 | $this->assign(['list' => $this->service->page()]); 17 | return view('index'); 18 | } 19 | 20 | public function lists() 21 | { 22 | return $this->index(); 23 | } 24 | 25 | 26 | public function create() 27 | { 28 | $this->assign( $this->service->_init() ); 29 | return view(); 30 | } 31 | 32 | 33 | public function save() 34 | { 35 | return $this->service->save(); 36 | } 37 | 38 | public function edit($id) 39 | { 40 | $this->assign( $this->service->_init() ); 41 | $this->assign(['info' => $this->service->edit($id)]); 42 | return view(); 43 | } 44 | 45 | public function update(){ 46 | return $this->service->update(); 47 | } 48 | 49 | public function delete($id){ 50 | return $this->service->delete($id); 51 | } 52 | 53 | } 54 | -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_id.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery Validation Plugin - v1.13.0 - 7/1/2014 2 | * http://jqueryvalidation.org/ 3 | * Copyright (c) 2014 Jörn Zaefferer; Licensed MIT */ 4 | !function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):a(jQuery)}(function(a){a.extend(a.validator.messages,{required:"Kolom ini diperlukan.",remote:"Harap benarkan kolom ini.",email:"Silakan masukkan format email yang benar.",url:"Silakan masukkan format URL yang benar.",date:"Silakan masukkan format tanggal yang benar.",dateISO:"Silakan masukkan format tanggal(ISO) yang benar.",number:"Silakan masukkan angka yang benar.",digits:"Harap masukan angka saja.",creditcard:"Harap masukkan format kartu kredit yang benar.",equalTo:"Harap masukkan nilai yg sama dengan sebelumnya.",maxlength:a.validator.format("Input dibatasi hanya {0} karakter."),minlength:a.validator.format("Input tidak kurang dari {0} karakter."),rangelength:a.validator.format("Panjang karakter yg diizinkan antara {0} dan {1} karakter."),range:a.validator.format("Harap masukkan nilai antara {0} dan {1}."),max:a.validator.format("Harap masukkan nilai lebih kecil atau sama dengan {0}."),min:a.validator.format("Harap masukkan nilai lebih besar atau sama dengan {0}.")})}); -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_he.js: -------------------------------------------------------------------------------- 1 | (function( factory ) { 2 | if ( typeof define === "function" && define.amd ) { 3 | define( ["jquery", "../jquery.validate"], factory ); 4 | } else { 5 | factory( jQuery ); 6 | } 7 | }(function( $ ) { 8 | 9 | /* 10 | * Translated default messages for the jQuery validation plugin. 11 | * Locale: HE (Hebrew; עברית) 12 | */ 13 | $.extend($.validator.messages, { 14 | required: "השדה הזה הינו שדה חובה", 15 | remote: "נא לתקן שדה זה", 16 | email: "נא למלא כתובת דוא\"ל חוקית", 17 | url: "נא למלא כתובת אינטרנט חוקית", 18 | date: "נא למלא תאריך חוקי", 19 | dateISO: "נא למלא תאריך חוקי (ISO)", 20 | number: "נא למלא מספר", 21 | digits: "נא למלא רק מספרים", 22 | creditcard: "נא למלא מספר כרטיס אשראי חוקי", 23 | equalTo: "נא למלא את אותו ערך שוב", 24 | extension: "נא למלא ערך עם סיומת חוקית", 25 | maxlength: $.validator.format(".נא לא למלא יותר מ- {0} תווים"), 26 | minlength: $.validator.format("נא למלא לפחות {0} תווים"), 27 | rangelength: $.validator.format("נא למלא ערך בין {0} ל- {1} תווים"), 28 | range: $.validator.format("נא למלא ערך בין {0} ל- {1}"), 29 | max: $.validator.format("נא למלא ערך קטן או שווה ל- {0}"), 30 | min: $.validator.format("נא למלא ערך גדול או שווה ל- {0}") 31 | }); 32 | 33 | })); -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_is.js: -------------------------------------------------------------------------------- 1 | (function( factory ) { 2 | if ( typeof define === "function" && define.amd ) { 3 | define( ["jquery", "../jquery.validate"], factory ); 4 | } else { 5 | factory( jQuery ); 6 | } 7 | }(function( $ ) { 8 | 9 | /* 10 | * Translated default messages for the jQuery validation plugin. 11 | * Locale: IS (Icelandic; íslenska) 12 | */ 13 | $.extend($.validator.messages, { 14 | required: "Þessi reitur er nauðsynlegur.", 15 | remote: "Lagaðu þennan reit.", 16 | maxlength: $.validator.format("Sláðu inn mest {0} stafi."), 17 | minlength: $.validator.format("Sláðu inn minnst {0} stafi."), 18 | rangelength: $.validator.format("Sláðu inn minnst {0} og mest {1} stafi."), 19 | email: "Sláðu inn gilt netfang.", 20 | url: "Sláðu inn gilda vefslóð.", 21 | date: "Sláðu inn gilda dagsetningu.", 22 | number: "Sláðu inn tölu.", 23 | digits: "Sláðu inn tölustafi eingöngu.", 24 | equalTo: "Sláðu sama gildi inn aftur.", 25 | range: $.validator.format("Sláðu inn gildi milli {0} og {1}."), 26 | max: $.validator.format("Sláðu inn gildi sem er minna en eða jafnt og {0}."), 27 | min: $.validator.format("Sláðu inn gildi sem er stærra en eða jafnt og {0}."), 28 | creditcard: "Sláðu inn gilt greiðslukortanúmer." 29 | }); 30 | 31 | })); -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_lv.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery Validation Plugin - v1.13.0 - 7/1/2014 2 | * http://jqueryvalidation.org/ 3 | * Copyright (c) 2014 Jörn Zaefferer; Licensed MIT */ 4 | !function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):a(jQuery)}(function(a){a.extend(a.validator.messages,{required:"Šis lauks ir obligāts.",remote:"Lūdzu, pārbaudiet šo lauku.",email:"Lūdzu, ievadiet derīgu e-pasta adresi.",url:"Lūdzu, ievadiet derīgu URL adresi.",date:"Lūdzu, ievadiet derīgu datumu.",dateISO:"Lūdzu, ievadiet derīgu datumu (ISO).",number:"Lūdzu, ievadiet derīgu numuru.",digits:"Lūdzu, ievadiet tikai ciparus.",creditcard:"Lūdzu, ievadiet derīgu kredītkartes numuru.",equalTo:"Lūdzu, ievadiet to pašu vēlreiz.",extension:"Lūdzu, ievadiet vērtību ar derīgu paplašinājumu.",maxlength:a.validator.format("Lūdzu, ievadiet ne vairāk kā {0} rakstzīmes."),minlength:a.validator.format("Lūdzu, ievadiet vismaz {0} rakstzīmes."),rangelength:a.validator.format("Lūdzu ievadiet {0} līdz {1} rakstzīmes."),range:a.validator.format("Lūdzu, ievadiet skaitli no {0} līdz {1}."),max:a.validator.format("Lūdzu, ievadiet skaitli, kurš ir mazāks vai vienāds ar {0}."),min:a.validator.format("Lūdzu, ievadiet skaitli, kurš ir lielāks vai vienāds ar {0}.")})}); -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_lt.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery Validation Plugin - v1.13.0 - 7/1/2014 2 | * http://jqueryvalidation.org/ 3 | * Copyright (c) 2014 Jörn Zaefferer; Licensed MIT */ 4 | !function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):a(jQuery)}(function(a){a.extend(a.validator.messages,{required:"Šis laukas yra privalomas.",remote:"Prašau pataisyti šį lauką.",email:"Prašau įvesti teisingą elektroninio pašto adresą.",url:"Prašau įvesti teisingą URL.",date:"Prašau įvesti teisingą datą.",dateISO:"Prašau įvesti teisingą datą (ISO).",number:"Prašau įvesti teisingą skaičių.",digits:"Prašau naudoti tik skaitmenis.",creditcard:"Prašau įvesti teisingą kreditinės kortelės numerį.",equalTo:"Prašau įvestį tą pačią reikšmę dar kartą.",extension:"Prašau įvesti reikšmę su teisingu plėtiniu.",maxlength:a.validator.format("Prašau įvesti ne daugiau kaip {0} simbolių."),minlength:a.validator.format("Prašau įvesti bent {0} simbolius."),rangelength:a.validator.format("Prašau įvesti reikšmes, kurių ilgis nuo {0} iki {1} simbolių."),range:a.validator.format("Prašau įvesti reikšmę intervale nuo {0} iki {1}."),max:a.validator.format("Prašau įvesti reikšmę mažesnę arba lygią {0}."),min:a.validator.format("Prašau įvesti reikšmę didesnę arba lygią {0}.")})}); -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_my.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery Validation Plugin - v1.13.0 - 7/1/2014 2 | * http://jqueryvalidation.org/ 3 | * Copyright (c) 2014 Jörn Zaefferer; Licensed MIT */ 4 | !function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):a(jQuery)}(function(a){a.extend(a.validator.messages,{required:"Medan ini diperlukan.",remote:"Sila betulkan medan ini.",email:"Sila masukkan alamat emel yang betul.",url:"Sila masukkan URL yang betul.",date:"Sila masukkan tarikh yang betul.",dateISO:"Sila masukkan tarikh(ISO) yang betul.",number:"Sila masukkan nombor yang betul.",digits:"Sila masukkan nilai digit sahaja.",creditcard:"Sila masukkan nombor kredit kad yang betul.",equalTo:"Sila masukkan nilai yang sama semula.",extension:"Sila masukkan nilai yang telah diterima.",maxlength:a.validator.format("Sila masukkan nilai tidak lebih dari {0} aksara."),minlength:a.validator.format("Sila masukkan nilai sekurang-kurangnya {0} aksara."),rangelength:a.validator.format("Sila masukkan panjang nilai antara {0} dan {1} aksara."),range:a.validator.format("Sila masukkan nilai antara {0} dan {1} aksara."),max:a.validator.format("Sila masukkan nilai yang kurang atau sama dengan {0}."),min:a.validator.format("Sila masukkan nilai yang lebih atau sama dengan {0}.")})}); -------------------------------------------------------------------------------- /extend/Classes/PHPExcel/locale/en/uk/config: -------------------------------------------------------------------------------- 1 | ## 2 | ## PHPExcel 3 | ## 4 | ## Copyright (c) 2006 - 2013 PHPExcel 5 | ## 6 | ## This library is free software; you can redistribute it and/or 7 | ## modify it under the terms of the GNU Lesser General Public 8 | ## License as published by the Free Software Foundation; either 9 | ## version 2.1 of the License, or (at your option) any later version. 10 | ## 11 | ## This library is distributed in the hope that it will be useful, 12 | ## but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | ## Lesser General Public License for more details. 15 | ## 16 | ## You should have received a copy of the GNU Lesser General Public 17 | ## License along with this library; if not, write to the Free Software 18 | ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 19 | ## 20 | ## @category PHPExcel 21 | ## @package PHPExcel_Settings 22 | ## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) 23 | ## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 24 | ## @version ##VERSION##, ##DATE## 25 | ## 26 | ## 27 | 28 | 29 | ## 30 | ## (For future use) 31 | ## 32 | currencySymbol = £ 33 | -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_fa.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery Validation Plugin - v1.13.0 - 7/1/2014 2 | * http://jqueryvalidation.org/ 3 | * Copyright (c) 2014 Jörn Zaefferer; Licensed MIT */ 4 | !function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):a(jQuery)}(function(a){a.extend(a.validator.messages,{required:"تکمیل این فیلد اجباری است.",remote:"لطفا این فیلد را تصحیح کنید.",email:".لطفا یک ایمیل صحیح وارد کنید",url:"لطفا آدرس صحیح وارد کنید.",date:"لطفا یک تاریخ صحیح وارد کنید",dateFA:"لطفا یک تاریخ صحیح وارد کنید",dateISO:"لطفا تاریخ صحیح وارد کنید (ISO).",number:"لطفا عدد صحیح وارد کنید.",digits:"لطفا تنها رقم وارد کنید",creditcard:"لطفا کریدیت کارت صحیح وارد کنید.",equalTo:"لطفا مقدار برابری وارد کنید",extension:"لطفا مقداری وارد کنید که ",maxlength:a.validator.format("لطفا بیشتر از {0} حرف وارد نکنید."),minlength:a.validator.format("لطفا کمتر از {0} حرف وارد نکنید."),rangelength:a.validator.format("لطفا مقداری بین {0} تا {1} حرف وارد کنید."),range:a.validator.format("لطفا مقداری بین {0} تا {1} حرف وارد کنید."),max:a.validator.format("لطفا مقداری کمتر از {0} حرف وارد کنید."),min:a.validator.format("لطفا مقداری بیشتر از {0} حرف وارد کنید."),minWords:a.validator.format("لطفا حداقل {0} کلمه وارد کنید."),maxWords:a.validator.format("لطفا حداکثر {0} کلمه وارد کنید.")})}); -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_ka.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery Validation Plugin - v1.13.0 - 7/1/2014 2 | * http://jqueryvalidation.org/ 3 | * Copyright (c) 2014 Jörn Zaefferer; Licensed MIT */ 4 | !function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):a(jQuery)}(function(a){a.extend(a.validator.messages,{required:"ამ ველის შევსება აუცილებელია.",remote:"გთხოვთ მიუთითოთ სწორი მნიშვნელობა.",email:"გთხოვთ მიუთითოთ ელ-ფოსტის კორექტული მისამართი.",url:"გთხოვთ მიუთითოთ კორექტული URL.",date:"გთხოვთ მიუთითოთ კორექტული თარიღი.",dateISO:"გთხოვთ მიუთითოთ კორექტული თარიღი ISO ფორმატში.",number:"გთხოვთ მიუთითოთ ციფრი.",digits:"გთხოვთ მიუთითოთ მხოლოდ ციფრები.",creditcard:"გთხოვთ მიუთითოთ საკრედიტო ბარათის კორექტული ნომერი.",equalTo:"გთხოვთ მიუთითოთ ასეთივე მნიშვნელობა კიდევ ერთხელ.",extension:"გთხოვთ აირჩიოთ ფაილი კორექტული გაფართოებით.",maxlength:a.validator.format("დასაშვებია არაუმეტეს {0} სიმბოლო."),minlength:a.validator.format("აუცილებელია შეიყვანოთ მინიმუმ {0} სიმბოლო."),rangelength:a.validator.format("ტექსტში სიმბოლოების რაოდენობა უნდა იყოს {0}-დან {1}-მდე."),range:a.validator.format("გთხოვთ შეიყვანოთ ციფრი {0}-დან {1}-მდე."),max:a.validator.format("გთხოვთ შეიყვანოთ ციფრი რომელიც ნაკლებია ან უდრის {0}-ს."),min:a.validator.format("გთხოვთ შეიყვანოთ ციფრი რომელიც მეტია ან უდრის {0}-ს.")})}); -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_eu.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery Validation Plugin - v1.13.0 - 7/1/2014 2 | * http://jqueryvalidation.org/ 3 | * Copyright (c) 2014 Jörn Zaefferer; Licensed MIT */ 4 | !function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):a(jQuery)}(function(a){a.extend(a.validator.messages,{required:"Eremu hau beharrezkoa da.",remote:"Mesedez, bete eremu hau.",email:"Mesedez, idatzi baliozko posta helbide bat.",url:"Mesedez, idatzi baliozko URL bat.",date:"Mesedez, idatzi baliozko data bat.",dateISO:"Mesedez, idatzi baliozko (ISO) data bat.",number:"Mesedez, idatzi baliozko zenbaki oso bat.",digits:"Mesedez, idatzi digituak soilik.",creditcard:"Mesedez, idatzi baliozko txartel zenbaki bat.",equalTo:"Mesedez, idatzi berdina berriro ere.",extension:"Mesedez, idatzi onartutako luzapena duen balio bat.",maxlength:a.validator.format("Mesedez, ez idatzi {0} karaktere baino gehiago."),minlength:a.validator.format("Mesedez, ez idatzi {0} karaktere baino gutxiago."),rangelength:a.validator.format("Mesedez, idatzi {0} eta {1} karaktere arteko balio bat."),range:a.validator.format("Mesedez, idatzi {0} eta {1} arteko balio bat."),max:a.validator.format("Mesedez, idatzi {0} edo txikiagoa den balio bat."),min:a.validator.format("Mesedez, idatzi {0} edo handiagoa den balio bat.")})}); -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_it.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery Validation Plugin - v1.13.0 - 7/1/2014 2 | * http://jqueryvalidation.org/ 3 | * Copyright (c) 2014 Jörn Zaefferer; Licensed MIT */ 4 | !function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):a(jQuery)}(function(a){a.extend(a.validator.messages,{required:"Campo obbligatorio.",remote:"Controlla questo campo.",email:"Inserisci un indirizzo email valido.",url:"Inserisci un indirizzo web valido.",date:"Inserisci una data valida.",dateISO:"Inserisci una data valida (ISO).",number:"Inserisci un numero valido.",digits:"Inserisci solo numeri.",creditcard:"Inserisci un numero di carta di credito valido.",equalTo:"Il valore non corrisponde.",extension:"Inserisci un valore con un'estensione valida.",maxlength:a.validator.format("Non inserire più di {0} caratteri."),minlength:a.validator.format("Inserisci almeno {0} caratteri."),rangelength:a.validator.format("Inserisci un valore compreso tra {0} e {1} caratteri."),range:a.validator.format("Inserisci un valore compreso tra {0} e {1}."),max:a.validator.format("Inserisci un valore minore o uguale a {0}."),min:a.validator.format("Inserisci un valore maggiore o uguale a {0}."),nifES:"Inserisci un NIF valido.",nieES:"Inserisci un NIE valido.",cifES:"Inserisci un CIF valido."})}); -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_tj.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery Validation Plugin - v1.13.0 - 7/1/2014 2 | * http://jqueryvalidation.org/ 3 | * Copyright (c) 2014 Jörn Zaefferer; Licensed MIT */ 4 | !function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):a(jQuery)}(function(a){a.extend(a.validator.messages,{required:"Ворид кардани ин филд маҷбури аст.",remote:"Илтимос, маълумоти саҳеҳ ворид кунед.",email:"Илтимос, почтаи электронии саҳеҳ ворид кунед.",url:"Илтимос, URL адреси саҳеҳ ворид кунед.",date:"Илтимос, таърихи саҳеҳ ворид кунед.",dateISO:"Илтимос, таърихи саҳеҳи (ISO)ӣ ворид кунед.",number:"Илтимос, рақамҳои саҳеҳ ворид кунед.",digits:"Илтимос, танҳо рақам ворид кунед.",creditcard:"Илтимос, кредит карди саҳеҳ ворид кунед.",equalTo:"Илтимос, миқдори баробар ворид кунед.",extension:"Илтимос, қофияи файлро дуруст интихоб кунед",maxlength:a.validator.format("Илтимос, бештар аз {0} рамз ворид накунед."),minlength:a.validator.format("Илтимос, камтар аз {0} рамз ворид накунед."),rangelength:a.validator.format("Илтимос, камтар аз {0} ва зиёда аз {1} рамз ворид кунед."),range:a.validator.format("Илтимос, аз {0} то {1} рақам зиёд ворид кунед."),max:a.validator.format("Илтимос, бештар аз {0} рақам ворид накунед."),min:a.validator.format("Илтимос, камтар аз {0} рақам ворид накунед.")})}); -------------------------------------------------------------------------------- /thinkphp/library/think/console/command/make/Model.php: -------------------------------------------------------------------------------- 1 | 10 | // +---------------------------------------------------------------------- 11 | 12 | namespace think\console\command\make; 13 | 14 | use think\console\command\Make; 15 | 16 | class Model extends Make 17 | { 18 | protected $type = "Model"; 19 | 20 | protected function configure() 21 | { 22 | parent::configure(); 23 | $this->setName('make:model') 24 | ->setDescription('Create a new model class'); 25 | } 26 | 27 | protected function getStub() 28 | { 29 | return __DIR__ . '/stubs/model.stub'; 30 | } 31 | 32 | protected function getNamespace($appNamespace, $module) 33 | { 34 | return parent::getNamespace($appNamespace, $module) . '\model'; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /thinkphp/phpunit.xml: -------------------------------------------------------------------------------- 1 | 2 | 12 | 13 | 14 | ./tests/thinkphp/ 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | ./ 23 | 24 | tests 25 | vendor 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /app/controller/Role.php: -------------------------------------------------------------------------------- 1 | service = $service; 12 | } 13 | 14 | public function index() 15 | { 16 | $this->assign(['list' => $this->service->page()]); 17 | return view(); 18 | } 19 | 20 | public function create(){ 21 | $this->assign([ 22 | 'menu' => json_encode(permission_jstree_data($this->service->menu())), 23 | ]); 24 | return view(); 25 | } 26 | 27 | public function save() 28 | { 29 | return $this->service->save(); 30 | } 31 | 32 | 33 | public function edit($id) 34 | { 35 | $info = $this->service->edit($id); 36 | $this->assign([ 37 | 'info' => $info, 38 | 'menu' => json_encode(permission_jstree_data($this->service->menu(),explode(',', $info->ids))), 39 | ]); 40 | return view(); 41 | } 42 | 43 | public function update(){ 44 | return $this->service->update(); 45 | } 46 | 47 | public function delete($id){ 48 | return $this->service->delete($id); 49 | } 50 | 51 | 52 | } 53 | -------------------------------------------------------------------------------- /app/controller/Shelve.php: -------------------------------------------------------------------------------- 1 | service = $service; 13 | } 14 | 15 | public function index() 16 | { 17 | $this->assign([ 18 | 'list' => $this->service->page(), 19 | 'location' => Location::all() 20 | ]); 21 | return view(); 22 | } 23 | 24 | public function create() 25 | { 26 | $this->assign([ 27 | 'location' => Location::all() 28 | ]); 29 | 30 | return view(); 31 | } 32 | 33 | 34 | public function save() 35 | { 36 | return $this->service->save(); 37 | } 38 | 39 | public function edit($id) 40 | { 41 | $this->assign([ 42 | 'info' => $this->service->edit($id), 43 | 'location' => Location::all() 44 | ]); 45 | return view(); 46 | } 47 | 48 | public function update(){ 49 | return $this->service->update(); 50 | } 51 | 52 | public function delete($id){ 53 | return $this->service->delete($id); 54 | } 55 | 56 | } 57 | -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_pl.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery Validation Plugin - v1.13.0 - 7/1/2014 2 | * http://jqueryvalidation.org/ 3 | * Copyright (c) 2014 Jörn Zaefferer; Licensed MIT */ 4 | !function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):a(jQuery)}(function(a){a.extend(a.validator.messages,{required:"To pole jest wymagane.",remote:"Proszę o wypełnienie tego pola.",email:"Proszę o podanie prawidłowego adresu email.",url:"Proszę o podanie prawidłowego URL.",date:"Proszę o podanie prawidłowej daty.",dateISO:"Proszę o podanie prawidłowej daty (ISO).",number:"Proszę o podanie prawidłowej liczby.",digits:"Proszę o podanie samych cyfr.",creditcard:"Proszę o podanie prawidłowej karty kredytowej.",equalTo:"Proszę o podanie tej samej wartości ponownie.",extension:"Proszę o podanie wartości z prawidłowym rozszerzeniem.",maxlength:a.validator.format("Proszę o podanie nie więcej niż {0} znaków."),minlength:a.validator.format("Proszę o podanie przynajmniej {0} znaków."),rangelength:a.validator.format("Proszę o podanie wartości o długości od {0} do {1} znaków."),range:a.validator.format("Proszę o podanie wartości z przedziału od {0} do {1}."),max:a.validator.format("Proszę o podanie wartości mniejszej bądź równej {0}."),min:a.validator.format("Proszę o podanie wartości większej bądź równej {0}.")})}); -------------------------------------------------------------------------------- /thinkphp/library/think/db/exception/BindParamException.php: -------------------------------------------------------------------------------- 1 | 10 | // +---------------------------------------------------------------------- 11 | 12 | namespace think\db\exception; 13 | 14 | use think\exception\DbException; 15 | 16 | /** 17 | * PDO参数绑定异常 18 | */ 19 | class BindParamException extends DbException 20 | { 21 | 22 | /** 23 | * BindParamException constructor. 24 | * @param string $message 25 | * @param array $config 26 | * @param string $sql 27 | * @param array $bind 28 | * @param int $code 29 | */ 30 | public function __construct($message, $config, $sql, $bind, $code = 10502) 31 | { 32 | $this->setData('Bind Param', $bind); 33 | parent::__construct($message, $config, $sql, $code); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_hu.js: -------------------------------------------------------------------------------- 1 | (function( factory ) { 2 | if ( typeof define === "function" && define.amd ) { 3 | define( ["jquery", "../jquery.validate"], factory ); 4 | } else { 5 | factory( jQuery ); 6 | } 7 | }(function( $ ) { 8 | 9 | /* 10 | * Translated default messages for the jQuery validation plugin. 11 | * Locale: HU (Hungarian; Magyar) 12 | */ 13 | $.extend($.validator.messages, { 14 | required: "Kötelező megadni.", 15 | maxlength: $.validator.format("Legfeljebb {0} karakter hosszú legyen."), 16 | minlength: $.validator.format("Legalább {0} karakter hosszú legyen."), 17 | rangelength: $.validator.format("Legalább {0} és legfeljebb {1} karakter hosszú legyen."), 18 | email: "Érvényes e-mail címnek kell lennie.", 19 | url: "Érvényes URL-nek kell lennie.", 20 | date: "Dátumnak kell lennie.", 21 | number: "Számnak kell lennie.", 22 | digits: "Csak számjegyek lehetnek.", 23 | equalTo: "Meg kell egyeznie a két értéknek.", 24 | range: $.validator.format("{0} és {1} közé kell esnie."), 25 | max: $.validator.format("Nem lehet nagyobb, mint {0}."), 26 | min: $.validator.format("Nem lehet kisebb, mint {0}."), 27 | creditcard: "Érvényes hitelkártyaszámnak kell lennie.", 28 | remote: "Kérem javítsa ki ezt a mezőt.", 29 | dateISO: "Kérem írjon be egy érvényes dátumot (ISO)." 30 | }); 31 | 32 | })); -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_ca.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery Validation Plugin - v1.13.0 - 7/1/2014 2 | * http://jqueryvalidation.org/ 3 | * Copyright (c) 2014 Jörn Zaefferer; Licensed MIT */ 4 | !function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):a(jQuery)}(function(a){a.extend(a.validator.messages,{required:"Aquest camp és obligatori.",remote:"Si us plau, omple aquest camp.",email:"Si us plau, escriu una adreça de correu-e vàlida",url:"Si us plau, escriu una URL vàlida.",date:"Si us plau, escriu una data vàlida.",dateISO:"Si us plau, escriu una data (ISO) vàlida.",number:"Si us plau, escriu un número enter vàlid.",digits:"Si us plau, escriu només dígits.",creditcard:"Si us plau, escriu un número de tarjeta vàlid.",equalTo:"Si us plau, escriu el maateix valor de nou.",extension:"Si us plau, escriu un valor amb una extensió acceptada.",maxlength:a.validator.format("Si us plau, no escriguis més de {0} caracters."),minlength:a.validator.format("Si us plau, no escriguis menys de {0} caracters."),rangelength:a.validator.format("Si us plau, escriu un valor entre {0} i {1} caracters."),range:a.validator.format("Si us plau, escriu un valor entre {0} i {1}."),max:a.validator.format("Si us plau, escriu un valor menor o igual a {0}."),min:a.validator.format("Si us plau, escriu un valor major o igual a {0}.")})}); -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_no.js: -------------------------------------------------------------------------------- 1 | (function( factory ) { 2 | if ( typeof define === "function" && define.amd ) { 3 | define( ["jquery", "../jquery.validate"], factory ); 4 | } else { 5 | factory( jQuery ); 6 | } 7 | }(function( $ ) { 8 | 9 | /* 10 | * Translated default messages for the jQuery validation plugin. 11 | * Locale: NO (Norwegian; Norsk) 12 | */ 13 | $.extend($.validator.messages, { 14 | required: "Dette feltet er obligatorisk.", 15 | maxlength: $.validator.format("Maksimalt {0} tegn."), 16 | minlength: $.validator.format("Minimum {0} tegn."), 17 | rangelength: $.validator.format("Angi minimum {0} og maksimum {1} tegn."), 18 | email: "Oppgi en gyldig epostadresse.", 19 | url: "Angi en gyldig URL.", 20 | date: "Angi en gyldig dato.", 21 | dateISO: "Angi en gyldig dato (&ARING;&ARING;&ARING;&ARING;-MM-DD).", 22 | dateSE: "Angi en gyldig dato.", 23 | number: "Angi et gyldig nummer.", 24 | numberSE: "Angi et gyldig nummer.", 25 | digits: "Skriv kun tall.", 26 | equalTo: "Skriv samme verdi igjen.", 27 | range: $.validator.format("Angi en verdi mellom {0} og {1}."), 28 | max: $.validator.format("Angi en verdi som er mindre eller lik {0}."), 29 | min: $.validator.format("Angi en verdi som er større eller lik {0}."), 30 | creditcard: "Angi et gyldig kredittkortnummer." 31 | }); 32 | 33 | })); -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_uk.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery Validation Plugin - v1.13.0 - 7/1/2014 2 | * http://jqueryvalidation.org/ 3 | * Copyright (c) 2014 Jörn Zaefferer; Licensed MIT */ 4 | !function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):a(jQuery)}(function(a){a.extend(a.validator.messages,{required:"Це поле необхідно заповнити.",remote:"Будь ласка, введіть правильне значення.",email:"Будь ласка, введіть коректну адресу електронної пошти.",url:"Будь ласка, введіть коректний URL.",date:"Будь ласка, введіть коректну дату.",dateISO:"Будь ласка, введіть коректну дату у форматі ISO.",number:"Будь ласка, введіть число.",digits:"Вводите потрібно лише цифри.",creditcard:"Будь ласка, введіть правильний номер кредитної карти.",equalTo:"Будь ласка, введіть таке ж значення ще раз.",extension:"Будь ласка, виберіть файл з правильним розширенням.",maxlength:a.validator.format("Будь ласка, введіть не більше {0} символів."),minlength:a.validator.format("Будь ласка, введіть не менше {0} символів."),rangelength:a.validator.format("Будь ласка, введіть значення довжиною від {0} до {1} символів."),range:a.validator.format("Будь ласка, введіть число від {0} до {1}."),max:a.validator.format("Будь ласка, введіть число, менше або рівно {0}."),min:a.validator.format("Будь ласка, введіть число, більше або рівно {0}.")})}); -------------------------------------------------------------------------------- /thinkphp/library/think/db/Expression.php: -------------------------------------------------------------------------------- 1 | 10 | // +---------------------------------------------------------------------- 11 | 12 | namespace think\db; 13 | 14 | class Expression 15 | { 16 | /** 17 | * 查询表达式 18 | * 19 | * @var string 20 | */ 21 | protected $value; 22 | 23 | /** 24 | * 创建一个查询表达式 25 | * 26 | * @param string $value 27 | * @return void 28 | */ 29 | public function __construct($value) 30 | { 31 | $this->value = $value; 32 | } 33 | 34 | /** 35 | * 获取表达式 36 | * 37 | * @return string 38 | */ 39 | public function getValue() 40 | { 41 | return $this->value; 42 | } 43 | 44 | public function __toString() 45 | { 46 | return (string) $this->value; 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /thinkphp/library/think/exception/HttpException.php: -------------------------------------------------------------------------------- 1 | 10 | // +---------------------------------------------------------------------- 11 | 12 | namespace think\exception; 13 | 14 | class HttpException extends \RuntimeException 15 | { 16 | private $statusCode; 17 | private $headers; 18 | 19 | public function __construct($statusCode, $message = null, \Exception $previous = null, array $headers = [], $code = 0) 20 | { 21 | $this->statusCode = $statusCode; 22 | $this->headers = $headers; 23 | 24 | parent::__construct($message, $code, $previous); 25 | } 26 | 27 | public function getStatusCode() 28 | { 29 | return $this->statusCode; 30 | } 31 | 32 | public function getHeaders() 33 | { 34 | return $this->headers; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /extend/Classes/PHPExcel/IComparable.php: -------------------------------------------------------------------------------- 1 | service = $service; 13 | } 14 | 15 | public function index() 16 | { 17 | $this->assign([ 18 | 'list' => $this->service->page(), 19 | 'storage' => Storage::get([ 'status' => 0 ]) 20 | ]); 21 | return view(); 22 | } 23 | 24 | public function create() 25 | { 26 | $this->assign([ 27 | 'storage' => Storage::all() 28 | ]); 29 | 30 | return view(); 31 | } 32 | 33 | 34 | public function save() 35 | { 36 | return $this->service->save(); 37 | } 38 | 39 | public function edit($id) 40 | { 41 | $this->assign([ 42 | 'info' => $this->service->edit($id), 43 | 'storage' => Storage::all() 44 | ]); 45 | return view(); 46 | } 47 | 48 | public function update(){ 49 | return $this->service->update(); 50 | } 51 | 52 | public function delete($id){ 53 | return $this->service->delete($id); 54 | } 55 | 56 | } 57 | -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_ar.js: -------------------------------------------------------------------------------- 1 | (function( factory ) { 2 | if ( typeof define === "function" && define.amd ) { 3 | define( ["jquery", "../jquery.validate"], factory ); 4 | } else { 5 | factory( jQuery ); 6 | } 7 | }(function( $ ) { 8 | 9 | /* 10 | * Translated default messages for the jQuery validation plugin. 11 | * Locale: AR (Arabic; العربية) 12 | */ 13 | $.extend($.validator.messages, { 14 | required: "هذا الحقل إلزامي", 15 | remote: "يرجى تصحيح هذا الحقل للمتابعة", 16 | email: "رجاء إدخال عنوان بريد إلكتروني صحيح", 17 | url: "رجاء إدخال عنوان موقع إلكتروني صحيح", 18 | date: "رجاء إدخال تاريخ صحيح", 19 | dateISO: "رجاء إدخال تاريخ صحيح (ISO)", 20 | number: "رجاء إدخال عدد بطريقة صحيحة", 21 | digits: "رجاء إدخال أرقام فقط", 22 | creditcard: "رجاء إدخال رقم بطاقة ائتمان صحيح", 23 | equalTo: "رجاء إدخال نفس القيمة", 24 | extension: "رجاء إدخال ملف بامتداد موافق عليه", 25 | maxlength: $.validator.format("الحد الأقصى لعدد الحروف هو {0}"), 26 | minlength: $.validator.format("الحد الأدنى لعدد الحروف هو {0}"), 27 | rangelength: $.validator.format("عدد الحروف يجب أن يكون بين {0} و {1}"), 28 | range: $.validator.format("رجاء إدخال عدد قيمته بين {0} و {1}"), 29 | max: $.validator.format("رجاء إدخال عدد أقل من أو يساوي (0}"), 30 | min: $.validator.format("رجاء إدخال عدد أكبر من أو يساوي (0}") 31 | }); 32 | 33 | })); -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_th.js: -------------------------------------------------------------------------------- 1 | (function( factory ) { 2 | if ( typeof define === "function" && define.amd ) { 3 | define( ["jquery", "../jquery.validate"], factory ); 4 | } else { 5 | factory( jQuery ); 6 | } 7 | }(function( $ ) { 8 | 9 | /* 10 | * Translated default messages for the jQuery validation plugin. 11 | * Locale: TH (Thai; ไทย) 12 | */ 13 | $.extend($.validator.messages, { 14 | required: "โปรดระบุ", 15 | remote: "โปรดแก้ไขให้ถูกต้อง", 16 | email: "โปรดระบุที่อยู่อีเมล์ที่ถูกต้อง", 17 | url: "โปรดระบุ URL ที่ถูกต้อง", 18 | date: "โปรดระบุวันที่ ที่ถูกต้อง", 19 | dateISO: "โปรดระบุวันที่ ที่ถูกต้อง (ระบบ ISO).", 20 | number: "โปรดระบุทศนิยมที่ถูกต้อง", 21 | digits: "โปรดระบุจำนวนเต็มที่ถูกต้อง", 22 | creditcard: "โปรดระบุรหัสบัตรเครดิตที่ถูกต้อง", 23 | equalTo: "โปรดระบุค่าเดิมอีกครั้ง", 24 | extension: "โปรดระบุค่าที่มีส่วนขยายที่ถูกต้อง", 25 | maxlength: $.validator.format("โปรดอย่าระบุค่าที่ยาวกว่า {0} อักขระ"), 26 | minlength: $.validator.format("โปรดอย่าระบุค่าที่สั้นกว่า {0} อักขระ"), 27 | rangelength: $.validator.format("โปรดอย่าระบุค่าความยาวระหว่าง {0} ถึง {1} อักขระ"), 28 | range: $.validator.format("โปรดระบุค่าระหว่าง {0} และ {1}"), 29 | max: $.validator.format("โปรดระบุค่าน้อยกว่าหรือเท่ากับ {0}"), 30 | min: $.validator.format("โปรดระบุค่ามากกว่าหรือเท่ากับ {0}") 31 | }); 32 | 33 | })); -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_kk.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery Validation Plugin - v1.13.0 - 7/1/2014 2 | * http://jqueryvalidation.org/ 3 | * Copyright (c) 2014 Jörn Zaefferer; Licensed MIT */ 4 | !function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):a(jQuery)}(function(a){a.extend(a.validator.messages,{required:"Бұл өрісті міндетті түрде толтырыңыз.",remote:"Дұрыс мағына енгізуіңізді сұраймыз.",email:"Нақты электронды поштаңызды енгізуіңізді сұраймыз.",url:"Нақты URL-ды енгізуіңізді сұраймыз.",date:"Нақты URL-ды енгізуіңізді сұраймыз.",dateISO:"Нақты ISO форматымен сәйкес датасын енгізуіңізді сұраймыз.",number:"Күнді енгізуіңізді сұраймыз.",digits:"Тек қана сандарды енгізуіңізді сұраймыз.",creditcard:"Несие картасының нөмірін дұрыс енгізуіңізді сұраймыз.",equalTo:"Осы мәнді қайта енгізуіңізді сұраймыз.",extension:"Файлдың кеңейтуін дұрыс таңдаңыз.",maxlength:a.validator.format("Ұзындығы {0} символдан көр болмасын."),minlength:a.validator.format("Ұзындығы {0} символдан аз болмасын."),rangelength:a.validator.format("Ұзындығы {0}-{1} дейін мән енгізуіңізді сұраймыз."),range:a.validator.format("Пожалуйста, введите число от {0} до {1}. - {0} - {1} санын енгізуіңізді сұраймыз."),max:a.validator.format("{0} аз немесе тең санын енгізуіңіді сұраймыз."),min:a.validator.format("{0} көп немесе тең санын енгізуіңізді сұраймыз.")})}); -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_ru.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery Validation Plugin - v1.13.0 - 7/1/2014 2 | * http://jqueryvalidation.org/ 3 | * Copyright (c) 2014 Jörn Zaefferer; Licensed MIT */ 4 | !function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):a(jQuery)}(function(a){a.extend(a.validator.messages,{required:"Это поле необходимо заполнить.",remote:"Пожалуйста, введите правильное значение.",email:"Пожалуйста, введите корректный адрес электронной почты.",url:"Пожалуйста, введите корректный URL.",date:"Пожалуйста, введите корректную дату.",dateISO:"Пожалуйста, введите корректную дату в формате ISO.",number:"Пожалуйста, введите число.",digits:"Пожалуйста, вводите только цифры.",creditcard:"Пожалуйста, введите правильный номер кредитной карты.",equalTo:"Пожалуйста, введите такое же значение ещё раз.",extension:"Пожалуйста, выберите файл с правильным расширением.",maxlength:a.validator.format("Пожалуйста, введите не больше {0} символов."),minlength:a.validator.format("Пожалуйста, введите не меньше {0} символов."),rangelength:a.validator.format("Пожалуйста, введите значение длиной от {0} до {1} символов."),range:a.validator.format("Пожалуйста, введите число от {0} до {1}."),max:a.validator.format("Пожалуйста, введите число, меньшее или равное {0}."),min:a.validator.format("Пожалуйста, введите число, большее или равное {0}.")})}); -------------------------------------------------------------------------------- /app/controller/Position.php: -------------------------------------------------------------------------------- 1 | service = $service; 13 | } 14 | 15 | public function index() 16 | { 17 | $this->assign([ 18 | 'list' => $this->service->page(), 19 | 'storage' => Storage::get([ 'status' => 0 ]) 20 | ]); 21 | return view(); 22 | } 23 | 24 | public function create() 25 | { 26 | $this->assign([ 27 | 'storage' => Storage::get([ 'status' => 0 ]) 28 | ]); 29 | 30 | return view(); 31 | } 32 | 33 | 34 | public function save() 35 | { 36 | return $this->service->save(); 37 | } 38 | 39 | public function edit($id) 40 | { 41 | $this->assign([ 42 | 'info' => $this->service->edit($id), 43 | 'storage' => Storage::all() 44 | ]); 45 | return view(); 46 | } 47 | 48 | public function update(){ 49 | return $this->service->update(); 50 | } 51 | 52 | public function delete($id){ 53 | return $this->service->delete($id); 54 | } 55 | 56 | } 57 | -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_sv.js: -------------------------------------------------------------------------------- 1 | (function( factory ) { 2 | if ( typeof define === "function" && define.amd ) { 3 | define( ["jquery", "../jquery.validate"], factory ); 4 | } else { 5 | factory( jQuery ); 6 | } 7 | }(function( $ ) { 8 | 9 | /* 10 | * Translated default messages for the jQuery validation plugin. 11 | * Locale: SV (Swedish; Svenska) 12 | */ 13 | $.extend($.validator.messages, { 14 | required: "Detta fält är obligatoriskt.", 15 | maxlength: $.validator.format("Du får ange högst {0} tecken."), 16 | minlength: $.validator.format("Du måste ange minst {0} tecken."), 17 | rangelength: $.validator.format("Ange minst {0} och max {1} tecken."), 18 | email: "Ange en korrekt e-postadress.", 19 | url: "Ange en korrekt URL.", 20 | date: "Ange ett korrekt datum.", 21 | dateISO: "Ange ett korrekt datum (ÅÅÅÅ-MM-DD).", 22 | number: "Ange ett korrekt nummer.", 23 | digits: "Ange endast siffror.", 24 | equalTo: "Ange samma värde igen.", 25 | range: $.validator.format("Ange ett värde mellan {0} och {1}."), 26 | max: $.validator.format("Ange ett värde som är mindre eller lika med {0}."), 27 | min: $.validator.format("Ange ett värde som är större eller lika med {0}."), 28 | creditcard: "Ange ett korrekt kreditkortsnummer." 29 | }); 30 | 31 | })); -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_sr.js: -------------------------------------------------------------------------------- 1 | (function( factory ) { 2 | if ( typeof define === "function" && define.amd ) { 3 | define( ["jquery", "../jquery.validate"], factory ); 4 | } else { 5 | factory( jQuery ); 6 | } 7 | }(function( $ ) { 8 | 9 | /* 10 | * Translated default messages for the jQuery validation plugin. 11 | * Locale: SR (Serbian; српски језик) 12 | */ 13 | $.extend($.validator.messages, { 14 | required: "Поље је обавезно.", 15 | remote: "Средите ово поље.", 16 | email: "Унесите исправну и-мејл адресу.", 17 | url: "Унесите исправан URL.", 18 | date: "Унесите исправан датум.", 19 | dateISO: "Унесите исправан датум (ISO).", 20 | number: "Унесите исправан број.", 21 | digits: "Унесите само цифе.", 22 | creditcard: "Унесите исправан број кредитне картице.", 23 | equalTo: "Унесите исту вредност поново.", 24 | extension: "Унесите вредност са одговарајућом екстензијом.", 25 | maxlength: $.validator.format("Унесите мање од {0} карактера."), 26 | minlength: $.validator.format("Унесите барем {0} карактера."), 27 | rangelength: $.validator.format("Унесите вредност дугачку између {0} и {1} карактера."), 28 | range: $.validator.format("Унесите вредност између {0} и {1}."), 29 | max: $.validator.format("Унесите вредност мању или једнаку {0}."), 30 | min: $.validator.format("Унесите вредност већу или једнаку {0}.") 31 | }); 32 | 33 | })); -------------------------------------------------------------------------------- /thinkphp/library/think/model/Pivot.php: -------------------------------------------------------------------------------- 1 | 10 | // +---------------------------------------------------------------------- 11 | 12 | namespace think\model; 13 | 14 | use think\Model; 15 | 16 | class Pivot extends Model 17 | { 18 | 19 | /** @var Model */ 20 | public $parent; 21 | 22 | protected $autoWriteTimestamp = false; 23 | 24 | /** 25 | * 架构函数 26 | * @access public 27 | * @param array|object $data 数据 28 | * @param Model $parent 上级模型 29 | * @param string $table 中间数据表名 30 | */ 31 | public function __construct($data = [], Model $parent = null, $table = '') 32 | { 33 | $this->parent = $parent; 34 | 35 | if (is_null($this->name)) { 36 | $this->name = $table; 37 | } 38 | 39 | parent::__construct($data); 40 | } 41 | 42 | } 43 | -------------------------------------------------------------------------------- /app/controller/Category.php: -------------------------------------------------------------------------------- 1 | service = $service; 12 | } 13 | 14 | public function index() 15 | { 16 | $this->assign([ 17 | 'list' => $this->service->page(), 18 | 'category' => $this->service->getList() 19 | ]); 20 | return view(); 21 | } 22 | 23 | public function create() 24 | { 25 | // dump( $this->service->getList() ); 26 | // die; 27 | $this->assign(['category' => $this->service->getList()]); 28 | return view(); 29 | } 30 | 31 | 32 | public function save() 33 | { 34 | return $this->service->save(); 35 | } 36 | 37 | public function edit($id) 38 | { 39 | $this->assign([ 40 | 'info' => $this->service->edit($id), 41 | 'category' => $this->service->getList() 42 | ]); 43 | return view(); 44 | } 45 | 46 | public function update(){ 47 | return $this->service->update(); 48 | } 49 | 50 | public function delete($id){ 51 | return $this->service->delete($id); 52 | } 53 | 54 | } 55 | -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_el.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery Validation Plugin - v1.13.0 - 7/1/2014 2 | * http://jqueryvalidation.org/ 3 | * Copyright (c) 2014 Jörn Zaefferer; Licensed MIT */ 4 | !function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):a(jQuery)}(function(a){a.extend(a.validator.messages,{required:"Αυτό το πεδίο είναι υποχρεωτικό.",remote:"Παρακαλώ διορθώστε αυτό το πεδίο.",email:"Παρακαλώ εισάγετε μια έγκυρη διεύθυνση email.",url:"Παρακαλώ εισάγετε ένα έγκυρο URL.",date:"Παρακαλώ εισάγετε μια έγκυρη ημερομηνία.",dateISO:"Παρακαλώ εισάγετε μια έγκυρη ημερομηνία (ISO).",number:"Παρακαλώ εισάγετε έναν έγκυρο αριθμό.",digits:"Παρακαλώ εισάγετε μόνο αριθμητικά ψηφία.",creditcard:"Παρακαλώ εισάγετε έναν έγκυρο αριθμό πιστωτικής κάρτας.",equalTo:"Παρακαλώ εισάγετε την ίδια τιμή ξανά.",extension:"Παρακαλώ εισάγετε μια τιμή με έγκυρη επέκταση αρχείου.",maxlength:a.validator.format("Παρακαλώ εισάγετε μέχρι και {0} χαρακτήρες."),minlength:a.validator.format("Παρακαλώ εισάγετε τουλάχιστον {0} χαρακτήρες."),rangelength:a.validator.format("Παρακαλώ εισάγετε μια τιμή με μήκος μεταξύ {0} και {1} χαρακτήρων."),range:a.validator.format("Παρακαλώ εισάγετε μια τιμή μεταξύ {0} και {1}."),max:a.validator.format("Παρακαλώ εισάγετε μια τιμή μικρότερη ή ίση του {0}."),min:a.validator.format("Παρακαλώ εισάγετε μια τιμή μεγαλύτερη ή ίση του {0}.")})}); -------------------------------------------------------------------------------- /thinkphp/library/think/Env.php: -------------------------------------------------------------------------------- 1 | 10 | // +---------------------------------------------------------------------- 11 | 12 | namespace think; 13 | 14 | class Env 15 | { 16 | /** 17 | * 获取环境变量值 18 | * @access public 19 | * @param string $name 环境变量名(支持二级 . 号分割) 20 | * @param string $default 默认值 21 | * @return mixed 22 | */ 23 | public static function get($name, $default = null) 24 | { 25 | $result = getenv(ENV_PREFIX . strtoupper(str_replace('.', '_', $name))); 26 | 27 | if (false !== $result) { 28 | if ('false' === $result) { 29 | $result = false; 30 | } elseif ('true' === $result) { 31 | $result = true; 32 | } 33 | 34 | return $result; 35 | } 36 | 37 | return $default; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /extend/Classes/PHPExcel/Writer/OpenDocument/WriterPart.php: -------------------------------------------------------------------------------- 1 | redirect("Login/index"); 17 | } 18 | $user_info = User::get(['id' => Session::get('uid','think') ]); 19 | $service = new MenuService(); 20 | //获取角色 21 | $role = $user_info->findRole; 22 | $this->assign('my_info',$user_info); 23 | $this->menuList = $service->getMenuShow($user_info); 24 | $this->assign('_menuList', $this->menuList ); 25 | $super_admin = config('super_admin'); 26 | 27 | //校验权限 ,代码需要写在权限校验之前 28 | if(isset($super_admin) && in_array($user_info->id,$super_admin)) { 29 | return true; 30 | } 31 | if(!$service->checkPermission($role->ids,$this->request->controller(),$this->request->action())){ 32 | if($this->request->isAjax()){ 33 | throw new HttpResponseException(json(['error'=>101,'msg'=>"没有操作权限!"])); 34 | } 35 | $this->error("没有操作权限!"); 36 | } 37 | 38 | 39 | } 40 | 41 | } 42 | -------------------------------------------------------------------------------- /extend/Classes/PHPExcel/Reader/Excel5/Style/Border.php: -------------------------------------------------------------------------------- 1 | PHPExcel_Style_Border::BORDER_NONE, 7 | 0x01 => PHPExcel_Style_Border::BORDER_THIN, 8 | 0x02 => PHPExcel_Style_Border::BORDER_MEDIUM, 9 | 0x03 => PHPExcel_Style_Border::BORDER_DASHED, 10 | 0x04 => PHPExcel_Style_Border::BORDER_DOTTED, 11 | 0x05 => PHPExcel_Style_Border::BORDER_THICK, 12 | 0x06 => PHPExcel_Style_Border::BORDER_DOUBLE, 13 | 0x07 => PHPExcel_Style_Border::BORDER_HAIR, 14 | 0x08 => PHPExcel_Style_Border::BORDER_MEDIUMDASHED, 15 | 0x09 => PHPExcel_Style_Border::BORDER_DASHDOT, 16 | 0x0A => PHPExcel_Style_Border::BORDER_MEDIUMDASHDOT, 17 | 0x0B => PHPExcel_Style_Border::BORDER_DASHDOTDOT, 18 | 0x0C => PHPExcel_Style_Border::BORDER_MEDIUMDASHDOTDOT, 19 | 0x0D => PHPExcel_Style_Border::BORDER_SLANTDASHDOT, 20 | ); 21 | 22 | /** 23 | * Map border style 24 | * OpenOffice documentation: 2.5.11 25 | * 26 | * @param int $index 27 | * @return string 28 | */ 29 | public static function lookup($index) 30 | { 31 | if (isset(self::$map[$index])) { 32 | return self::$map[$index]; 33 | } 34 | return PHPExcel_Style_Border::BORDER_NONE; 35 | } 36 | } -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_hr.js: -------------------------------------------------------------------------------- 1 | (function( factory ) { 2 | if ( typeof define === "function" && define.amd ) { 3 | define( ["jquery", "../jquery.validate"], factory ); 4 | } else { 5 | factory( jQuery ); 6 | } 7 | }(function( $ ) { 8 | 9 | /* 10 | * Translated default messages for the jQuery validation plugin. 11 | * Locale: HR (Croatia; hrvatski jezik) 12 | */ 13 | $.extend($.validator.messages, { 14 | required: "Ovo polje je obavezno.", 15 | remote: "Ovo polje treba popraviti.", 16 | email: "Unesite ispravnu e-mail adresu.", 17 | url: "Unesite ispravan URL.", 18 | date: "Unesite ispravan datum.", 19 | dateISO: "Unesite ispravan datum (ISO).", 20 | number: "Unesite ispravan broj.", 21 | digits: "Unesite samo brojeve.", 22 | creditcard: "Unesite ispravan broj kreditne kartice.", 23 | equalTo: "Unesite ponovo istu vrijednost.", 24 | extension: "Unesite vrijednost sa ispravnom ekstenzijom.", 25 | maxlength: $.validator.format("Maksimalni broj znakova je {0} ."), 26 | minlength: $.validator.format("Minimalni broj znakova je {0} ."), 27 | rangelength: $.validator.format("Unesite vrijednost između {0} i {1} znakova."), 28 | range: $.validator.format("Unesite vrijednost između {0} i {1}."), 29 | max: $.validator.format("Unesite vrijednost manju ili jednaku {0}."), 30 | min: $.validator.format("Unesite vrijednost veću ili jednaku {0}.") 31 | }); 32 | 33 | })); -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_ro.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery Validation Plugin - v1.13.0 - 7/1/2014 2 | * http://jqueryvalidation.org/ 3 | * Copyright (c) 2014 Jörn Zaefferer; Licensed MIT */ 4 | !function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):a(jQuery)}(function(a){a.extend(a.validator.messages,{required:"Acest câmp este obligatoriu.",remote:"Te rugăm să completezi acest câmp.",email:"Te rugăm să introduci o adresă de email validă",url:"Te rugăm sa introduci o adresă URL validă.",date:"Te rugăm să introduci o dată corectă.",dateISO:"Te rugăm să introduci o dată (ISO) corectă.",number:"Te rugăm să introduci un număr întreg valid.",digits:"Te rugăm să introduci doar cifre.",creditcard:"Te rugăm să introduci un numar de carte de credit valid.",equalTo:"Te rugăm să reintroduci valoarea.",extension:"Te rugăm să introduci o valoare cu o extensie validă.",maxlength:a.validator.format("Te rugăm să nu introduci mai mult de {0} caractere."),minlength:a.validator.format("Te rugăm să introduci cel puțin {0} caractere."),rangelength:a.validator.format("Te rugăm să introduci o valoare între {0} și {1} caractere."),range:a.validator.format("Te rugăm să introduci o valoare între {0} și {1}."),max:a.validator.format("Te rugăm să introduci o valoare egal sau mai mică decât {0}."),min:a.validator.format("Te rugăm să introduci o valoare egal sau mai mare decât {0}.")})}); -------------------------------------------------------------------------------- /app/view/error/dispatch_jump_error.html: -------------------------------------------------------------------------------- 1 | {extend name="base"} 2 | {block name="title"}访问错误 - {__block__}{/block} 3 | {block name="content"} 4 |
5 | 6 |
7 | 8 |
9 | 10 |

11 | 错误 404 12 | {$msg} 13 |

14 | 15 |

页面将自动跳转,等待时间: {$wait}

16 |
17 | 30 | {/block} 31 | {block name="script"} 32 | 45 | {/block} -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_de.js: -------------------------------------------------------------------------------- 1 | (function( factory ) { 2 | if ( typeof define === "function" && define.amd ) { 3 | define( ["jquery", "../jquery.validate"], factory ); 4 | } else { 5 | factory( jQuery ); 6 | } 7 | }(function( $ ) { 8 | 9 | /* 10 | * Translated default messages for the jQuery validation plugin. 11 | * Locale: DE (German, Deutsch) 12 | */ 13 | $.extend($.validator.messages, { 14 | required: "Dieses Feld ist ein Pflichtfeld.", 15 | maxlength: $.validator.format("Geben Sie bitte maximal {0} Zeichen ein."), 16 | minlength: $.validator.format("Geben Sie bitte mindestens {0} Zeichen ein."), 17 | rangelength: $.validator.format("Geben Sie bitte mindestens {0} und maximal {1} Zeichen ein."), 18 | email: "Geben Sie bitte eine gültige E-Mail Adresse ein.", 19 | url: "Geben Sie bitte eine gültige URL ein.", 20 | date: "Bitte geben Sie ein gültiges Datum ein.", 21 | number: "Geben Sie bitte eine Nummer ein.", 22 | digits: "Geben Sie bitte nur Ziffern ein.", 23 | equalTo: "Bitte denselben Wert wiederholen.", 24 | range: $.validator.format("Geben Sie bitte einen Wert zwischen {0} und {1} ein."), 25 | max: $.validator.format("Geben Sie bitte einen Wert kleiner oder gleich {0} ein."), 26 | min: $.validator.format("Geben Sie bitte einen Wert größer oder gleich {0} ein."), 27 | creditcard: "Geben Sie bitte eine gültige Kreditkarten-Nummer ein." 28 | }); 29 | 30 | })); -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_sr_lat.js: -------------------------------------------------------------------------------- 1 | (function( factory ) { 2 | if ( typeof define === "function" && define.amd ) { 3 | define( ["jquery", "../jquery.validate"], factory ); 4 | } else { 5 | factory( jQuery ); 6 | } 7 | }(function( $ ) { 8 | 9 | /* 10 | * Translated default messages for the jQuery validation plugin. 11 | * Locale: SR (Serbian - Latin alphabet; srpski jezik - latinica) 12 | */ 13 | $.extend($.validator.messages, { 14 | required: "Polje je obavezno.", 15 | remote: "Sredite ovo polje.", 16 | email: "Unesite ispravnu i-mejl adresu", 17 | url: "Unesite ispravan URL.", 18 | date: "Unesite ispravan datum.", 19 | dateISO: "Unesite ispravan datum (ISO).", 20 | number: "Unesite ispravan broj.", 21 | digits: "Unesite samo cife.", 22 | creditcard: "Unesite ispravan broj kreditne kartice.", 23 | equalTo: "Unesite istu vrednost ponovo.", 24 | extension: "Unesite vrednost sa odgovarajućom ekstenzijom.", 25 | maxlength: $.validator.format("Unesite manje od {0} karaktera."), 26 | minlength: $.validator.format("Unesite barem {0} karaktera."), 27 | rangelength: $.validator.format("Unesite vrednost dugačku između {0} i {1} karaktera."), 28 | range: $.validator.format("Unesite vrednost između {0} i {1}."), 29 | max: $.validator.format("Unesite vrednost manju ili jednaku {0}."), 30 | min: $.validator.format("Unesite vrednost veću ili jednaku {0}.") 31 | }); 32 | 33 | })); -------------------------------------------------------------------------------- /thinkphp/LICENSE.txt: -------------------------------------------------------------------------------- 1 | 2 | ThinkPHP遵循Apache2开源协议发布,并提供免费使用。 3 | 版权所有Copyright © 2006-2017 by ThinkPHP (http://thinkphp.cn) 4 | All rights reserved。 5 | ThinkPHP® 商标和著作权所有者为上海顶想信息科技有限公司。 6 | 7 | Apache Licence是著名的非盈利开源组织Apache采用的协议。 8 | 该协议和BSD类似,鼓励代码共享和尊重原作者的著作权, 9 | 允许代码修改,再作为开源或商业软件发布。需要满足 10 | 的条件: 11 | 1. 需要给代码的用户一份Apache Licence ; 12 | 2. 如果你修改了代码,需要在被修改的文件中说明; 13 | 3. 在延伸的代码中(修改和有源代码衍生的代码中)需要 14 | 带有原来代码中的协议,商标,专利声明和其他原来作者规 15 | 定需要包含的说明; 16 | 4. 如果再发布的产品中包含一个Notice文件,则在Notice文 17 | 件中需要带有本协议内容。你可以在Notice中增加自己的 18 | 许可,但不可以表现为对Apache Licence构成更改。 19 | 具体的协议参考:http://www.apache.org/licenses/LICENSE-2.0 20 | 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 22 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 23 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 24 | FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 25 | COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 26 | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 27 | BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 28 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 29 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 | LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 31 | ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 32 | POSSIBILITY OF SUCH DAMAGE. 33 | -------------------------------------------------------------------------------- /app/view/error/dispatch_jump_success.html: -------------------------------------------------------------------------------- 1 | {extend name="base"} 2 | {block name="title"}访问错误 - {__block__}{/block} 3 | {block name="content"} 4 |
5 | 6 |
7 | 8 |
9 | 10 |

11 | 成功 200 12 | {$msg} 13 |

14 | 15 |

页面将自动跳转,等待时间: {$wait}

16 |
17 | 30 | {/block} 31 | {block name="script"} 32 | 45 | {/block} -------------------------------------------------------------------------------- /thinkphp/library/think/db/exception/ModelNotFoundException.php: -------------------------------------------------------------------------------- 1 | 10 | // +---------------------------------------------------------------------- 11 | 12 | namespace think\db\exception; 13 | 14 | use think\exception\DbException; 15 | 16 | class ModelNotFoundException extends DbException 17 | { 18 | protected $model; 19 | 20 | /** 21 | * 构造方法 22 | * @param string $message 23 | * @param string $model 24 | */ 25 | public function __construct($message, $model = '', array $config = []) 26 | { 27 | $this->message = $message; 28 | $this->model = $model; 29 | 30 | $this->setData('Database Config', $config); 31 | } 32 | 33 | /** 34 | * 获取模型类名 35 | * @access public 36 | * @return string 37 | */ 38 | public function getModel() 39 | { 40 | return $this->model; 41 | } 42 | 43 | } 44 | -------------------------------------------------------------------------------- /app/view/unit/create.html: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 |
9 | 10 |
11 |
12 | 13 |
14 | 15 | 16 | 17 |
18 | 19 |
20 |
21 | 22 |
23 |
24 | 25 |
26 | 27 | 31 |
32 | 33 |
34 |
35 | 36 |
37 |
38 |
39 | 40 | 41 | 42 |
43 |
44 |
45 | 46 | 47 |
-------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_cs.js: -------------------------------------------------------------------------------- 1 | (function( factory ) { 2 | if ( typeof define === "function" && define.amd ) { 3 | define( ["jquery", "../jquery.validate"], factory ); 4 | } else { 5 | factory( jQuery ); 6 | } 7 | }(function( $ ) { 8 | 9 | /* 10 | * Translated default messages for the jQuery validation plugin. 11 | * Locale: CS (Czech; čeština, český jazyk) 12 | */ 13 | $.extend($.validator.messages, { 14 | required: "Tento údaj je povinný.", 15 | remote: "Prosím, opravte tento údaj.", 16 | email: "Prosím, zadejte platný e-mail.", 17 | url: "Prosím, zadejte platné URL.", 18 | date: "Prosím, zadejte platné datum.", 19 | dateISO: "Prosím, zadejte platné datum (ISO).", 20 | number: "Prosím, zadejte číslo.", 21 | digits: "Prosím, zadávejte pouze číslice.", 22 | creditcard: "Prosím, zadejte číslo kreditní karty.", 23 | equalTo: "Prosím, zadejte znovu stejnou hodnotu.", 24 | extension: "Prosím, zadejte soubor se správnou příponou.", 25 | maxlength: $.validator.format("Prosím, zadejte nejvíce {0} znaků."), 26 | minlength: $.validator.format("Prosím, zadejte nejméně {0} znaků."), 27 | rangelength: $.validator.format("Prosím, zadejte od {0} do {1} znaků."), 28 | range: $.validator.format("Prosím, zadejte hodnotu od {0} do {1}."), 29 | max: $.validator.format("Prosím, zadejte hodnotu menší nebo rovnu {0}."), 30 | min: $.validator.format("Prosím, zadejte hodnotu větší nebo rovnu {0}.") 31 | }); 32 | 33 | })); -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_es.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery Validation Plugin - v1.13.0 - 7/1/2014 2 | * http://jqueryvalidation.org/ 3 | * Copyright (c) 2014 Jörn Zaefferer; Licensed MIT */ 4 | !function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):a(jQuery)}(function(a){a.extend(a.validator.messages,{required:"Este campo es obligatorio.",remote:"Por favor, rellena este campo.",email:"Por favor, escribe una dirección de correo válida.",url:"Por favor, escribe una URL válida.",date:"Por favor, escribe una fecha válida.",dateISO:"Por favor, escribe una fecha (ISO) válida.",number:"Por favor, escribe un número válido.",digits:"Por favor, escribe sólo dígitos.",creditcard:"Por favor, escribe un número de tarjeta válido.",equalTo:"Por favor, escribe el mismo valor de nuevo.",extension:"Por favor, escribe un valor con una extensión aceptada.",maxlength:a.validator.format("Por favor, no escribas más de {0} caracteres."),minlength:a.validator.format("Por favor, no escribas menos de {0} caracteres."),rangelength:a.validator.format("Por favor, escribe un valor entre {0} y {1} caracteres."),range:a.validator.format("Por favor, escribe un valor entre {0} y {1}."),max:a.validator.format("Por favor, escribe un valor menor o igual a {0}."),min:a.validator.format("Por favor, escribe un valor mayor o igual a {0}."),nifES:"Por favor, escribe un NIF válido.",nieES:"Por favor, escribe un NIE válido.",cifES:"Por favor, escribe un CIF válido."})}); -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_et.js: -------------------------------------------------------------------------------- 1 | (function( factory ) { 2 | if ( typeof define === "function" && define.amd ) { 3 | define( ["jquery", "../jquery.validate"], factory ); 4 | } else { 5 | factory( jQuery ); 6 | } 7 | }(function( $ ) { 8 | 9 | /* 10 | * Translated default messages for the jQuery validation plugin. 11 | * Locale: ET (Estonian; eesti, eesti keel) 12 | */ 13 | $.extend($.validator.messages, { 14 | required: "See väli peab olema täidetud.", 15 | maxlength: $.validator.format("Palun sisestage vähem kui {0} tähemärki."), 16 | minlength: $.validator.format("Palun sisestage vähemalt {0} tähemärki."), 17 | rangelength: $.validator.format("Palun sisestage väärtus vahemikus {0} kuni {1} tähemärki."), 18 | email: "Palun sisestage korrektne e-maili aadress.", 19 | url: "Palun sisestage korrektne URL.", 20 | date: "Palun sisestage korrektne kuupäev.", 21 | dateISO: "Palun sisestage korrektne kuupäev (YYYY-MM-DD).", 22 | number: "Palun sisestage korrektne number.", 23 | digits: "Palun sisestage ainult numbreid.", 24 | equalTo: "Palun sisestage sama väärtus uuesti.", 25 | range: $.validator.format("Palun sisestage väärtus vahemikus {0} kuni {1}."), 26 | max: $.validator.format("Palun sisestage väärtus, mis on väiksem või võrdne arvuga {0}."), 27 | min: $.validator.format("Palun sisestage väärtus, mis on suurem või võrdne arvuga {0}."), 28 | creditcard: "Palun sisestage korrektne krediitkaardi number." 29 | }); 30 | 31 | })); -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_si.js: -------------------------------------------------------------------------------- 1 | (function( factory ) { 2 | if ( typeof define === "function" && define.amd ) { 3 | define( ["jquery", "../jquery.validate"], factory ); 4 | } else { 5 | factory( jQuery ); 6 | } 7 | }(function( $ ) { 8 | 9 | /* 10 | * Translated default messages for the jQuery validation plugin. 11 | * Locale: SI (Slovenian) 12 | */ 13 | $.extend($.validator.messages, { 14 | required: "To polje je obvezno.", 15 | remote: "Vpis v tem polju ni v pravi obliki.", 16 | email: "Prosimo, vnesite pravi email naslov.", 17 | url: "Prosimo, vnesite pravi URL.", 18 | date: "Prosimo, vnesite pravi datum.", 19 | dateISO: "Prosimo, vnesite pravi datum (ISO).", 20 | number: "Prosimo, vnesite pravo številko.", 21 | digits: "Prosimo, vnesite samo številke.", 22 | creditcard: "Prosimo, vnesite pravo številko kreditne kartice.", 23 | equalTo: "Prosimo, ponovno vnesite enako vsebino.", 24 | extension: "Prosimo, vnesite vsebino z pravo končnico.", 25 | maxlength: $.validator.format("Prosimo, da ne vnašate več kot {0} znakov."), 26 | minlength: $.validator.format("Prosimo, vnesite vsaj {0} znakov."), 27 | rangelength: $.validator.format("Prosimo, vnesite od {0} do {1} znakov."), 28 | range: $.validator.format("Prosimo, vnesite vrednost med {0} in {1}."), 29 | max: $.validator.format("Prosimo, vnesite vrednost manjšo ali enako {0}."), 30 | min: $.validator.format("Prosimo, vnesite vrednost večjo ali enako {0}.") 31 | }); 32 | 33 | })); -------------------------------------------------------------------------------- /thinkphp/library/think/db/exception/DataNotFoundException.php: -------------------------------------------------------------------------------- 1 | 10 | // +---------------------------------------------------------------------- 11 | 12 | namespace think\db\exception; 13 | 14 | use think\exception\DbException; 15 | 16 | class DataNotFoundException extends DbException 17 | { 18 | protected $table; 19 | 20 | /** 21 | * DbException constructor. 22 | * @param string $message 23 | * @param string $table 24 | * @param array $config 25 | */ 26 | public function __construct($message, $table = '', array $config = []) 27 | { 28 | $this->message = $message; 29 | $this->table = $table; 30 | 31 | $this->setData('Database Config', $config); 32 | } 33 | 34 | /** 35 | * 获取数据表名 36 | * @access public 37 | * @return string 38 | */ 39 | public function getTable() 40 | { 41 | return $this->table; 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_es_AR.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery Validation Plugin - v1.13.0 - 7/1/2014 2 | * http://jqueryvalidation.org/ 3 | * Copyright (c) 2014 Jörn Zaefferer; Licensed MIT */ 4 | !function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):a(jQuery)}(function(a){a.extend(a.validator.messages,{required:"Este campo es obligatorio.",remote:"Por favor, completá este campo.",email:"Por favor, escribí una dirección de correo válida.",url:"Por favor, escribí una URL válida.",date:"Por favor, escribí una fecha válida.",dateISO:"Por favor, escribí una fecha (ISO) válida.",number:"Por favor, escribí un número entero válido.",digits:"Por favor, escribí sólo dígitos.",creditcard:"Por favor, escribí un número de tarjeta válido.",equalTo:"Por favor, escribí el mismo valor de nuevo.",extension:"Por favor, escribí un valor con una extensión aceptada.",maxlength:a.validator.format("Por favor, no escribas más de {0} caracteres."),minlength:a.validator.format("Por favor, no escribas menos de {0} caracteres."),rangelength:a.validator.format("Por favor, escribí un valor entre {0} y {1} caracteres."),range:a.validator.format("Por favor, escribí un valor entre {0} y {1}."),max:a.validator.format("Por favor, escribí un valor menor o igual a {0}."),min:a.validator.format("Por favor, escribí un valor mayor o igual a {0}."),nifES:"Por favor, escribí un NIF válido.",nieES:"Por favor, escribí un NIE válido.",cifES:"Por favor, escribí un CIF válido."})}); -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_gl.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery Validation Plugin - v1.13.0 - 7/1/2014 2 | * http://jqueryvalidation.org/ 3 | * Copyright (c) 2014 Jörn Zaefferer; Licensed MIT */ 4 | !function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):a(jQuery)}(function(){!function(a){a.extend(a.validator.messages,{required:"Este campo é obrigatorio.",remote:"Por favor, cubre este campo.",email:"Por favor, escribe unha dirección de correo válida.",url:"Por favor, escribe unha URL válida.",date:"Por favor, escribe unha data válida.",dateISO:"Por favor, escribe unha data (ISO) válida.",number:"Por favor, escribe un número válido.",digits:"Por favor, escribe só díxitos.",creditcard:"Por favor, escribe un número de tarxeta válido.",equalTo:"Por favor, escribe o mesmo valor de novo.",extension:"Por favor, escribe un valor cunha extensión aceptada.",maxlength:a.validator.format("Por favor, non escribas máis de {0} caracteres."),minlength:a.validator.format("Por favor, non escribas menos de {0} caracteres."),rangelength:a.validator.format("Por favor, escribe un valor entre {0} e {1} caracteres."),range:a.validator.format("Por favor, escribe un valor entre {0} e {1}."),max:a.validator.format("Por favor, escribe un valor menor ou igual a {0}."),min:a.validator.format("Por favor, escribe un valor maior ou igual a {0}."),nifES:"Por favor, escribe un NIF válido.",nieES:"Por favor, escribe un NIE válido.",cifES:"Por favor, escribe un CIF válido."})}(jQuery)}); -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_id.js: -------------------------------------------------------------------------------- 1 | (function( factory ) { 2 | if ( typeof define === "function" && define.amd ) { 3 | define( ["jquery", "../jquery.validate"], factory ); 4 | } else { 5 | factory( jQuery ); 6 | } 7 | }(function( $ ) { 8 | 9 | /* 10 | * Translated default messages for the jQuery validation plugin. 11 | * Locale: ID (Indonesia; Indonesian) 12 | */ 13 | $.extend($.validator.messages, { 14 | required: "Kolom ini diperlukan.", 15 | remote: "Harap benarkan kolom ini.", 16 | email: "Silakan masukkan format email yang benar.", 17 | url: "Silakan masukkan format URL yang benar.", 18 | date: "Silakan masukkan format tanggal yang benar.", 19 | dateISO: "Silakan masukkan format tanggal(ISO) yang benar.", 20 | number: "Silakan masukkan angka yang benar.", 21 | digits: "Harap masukan angka saja.", 22 | creditcard: "Harap masukkan format kartu kredit yang benar.", 23 | equalTo: "Harap masukkan nilai yg sama dengan sebelumnya.", 24 | maxlength: $.validator.format("Input dibatasi hanya {0} karakter."), 25 | minlength: $.validator.format("Input tidak kurang dari {0} karakter."), 26 | rangelength: $.validator.format("Panjang karakter yg diizinkan antara {0} dan {1} karakter."), 27 | range: $.validator.format("Harap masukkan nilai antara {0} dan {1}."), 28 | max: $.validator.format("Harap masukkan nilai lebih kecil atau sama dengan {0}."), 29 | min: $.validator.format("Harap masukkan nilai lebih besar atau sama dengan {0}.") 30 | }); 31 | 32 | })); -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_bg.js: -------------------------------------------------------------------------------- 1 | (function( factory ) { 2 | if ( typeof define === "function" && define.amd ) { 3 | define( ["jquery", "../jquery.validate"], factory ); 4 | } else { 5 | factory( jQuery ); 6 | } 7 | }(function( $ ) { 8 | 9 | /* 10 | * Translated default messages for the jQuery validation plugin. 11 | * Locale: BG (Bulgarian; български език) 12 | */ 13 | $.extend($.validator.messages, { 14 | required: "Полето е задължително.", 15 | remote: "Моля, въведете правилната стойност.", 16 | email: "Моля, въведете валиден email.", 17 | url: "Моля, въведете валидно URL.", 18 | date: "Моля, въведете валидна дата.", 19 | dateISO: "Моля, въведете валидна дата (ISO).", 20 | number: "Моля, въведете валиден номер.", 21 | digits: "Моля, въведете само цифри.", 22 | creditcard: "Моля, въведете валиден номер на кредитна карта.", 23 | equalTo: "Моля, въведете същата стойност отново.", 24 | extension: "Моля, въведете стойност с валидно разширение.", 25 | maxlength: $.validator.format("Моля, въведете повече от {0} символа."), 26 | minlength: $.validator.format("Моля, въведете поне {0} символа."), 27 | rangelength: $.validator.format("Моля, въведете стойност с дължина между {0} и {1} символа."), 28 | range: $.validator.format("Моля, въведете стойност между {0} и {1}."), 29 | max: $.validator.format("Моля, въведете стойност по-малка или равна на {0}."), 30 | min: $.validator.format("Моля, въведете стойност по-голяма или равна на {0}.") 31 | }); 32 | 33 | })); -------------------------------------------------------------------------------- /public/static/js/jquery-validate/localization/messages_sl.js: -------------------------------------------------------------------------------- 1 | (function( factory ) { 2 | if ( typeof define === "function" && define.amd ) { 3 | define( ["jquery", "../jquery.validate"], factory ); 4 | } else { 5 | factory( jQuery ); 6 | } 7 | }(function( $ ) { 8 | 9 | /* 10 | * Translated default messages for the jQuery validation plugin. 11 | * Language: SL (Slovenian; slovenski jezik) 12 | */ 13 | $.extend($.validator.messages, { 14 | required: "To polje je obvezno.", 15 | remote: "Prosimo popravite to polje.", 16 | email: "Prosimo vnesite veljaven email naslov.", 17 | url: "Prosimo vnesite veljaven URL naslov.", 18 | date: "Prosimo vnesite veljaven datum.", 19 | dateISO: "Prosimo vnesite veljaven ISO datum.", 20 | number: "Prosimo vnesite veljavno število.", 21 | digits: "Prosimo vnesite samo števila.", 22 | creditcard: "Prosimo vnesite veljavno številko kreditne kartice.", 23 | equalTo: "Prosimo ponovno vnesite vrednost.", 24 | extension: "Prosimo vnesite vrednost z veljavno končnico.", 25 | maxlength: $.validator.format("Prosimo vnesite največ {0} znakov."), 26 | minlength: $.validator.format("Prosimo vnesite najmanj {0} znakov."), 27 | rangelength: $.validator.format("Prosimo vnesite najmanj {0} in največ {1} znakov."), 28 | range: $.validator.format("Prosimo vnesite vrednost med {0} in {1}."), 29 | max: $.validator.format("Prosimo vnesite vrednost manjše ali enako {0}."), 30 | min: $.validator.format("Prosimo vnesite vrednost večje ali enako {0}.") 31 | }); 32 | 33 | })); --------------------------------------------------------------------------------