├── .gitattributes ├── .gitignore ├── README.md ├── admin ├── addAdmin.php ├── addCate.php ├── addPro.php ├── addUser.php ├── doAdminAction.php ├── doLogin.php ├── editAdmin.php ├── editCate.php ├── editPro.php ├── editUser.php ├── getVerify.php ├── images │ ├── attach.jpg │ ├── delete.png │ ├── icon │ │ ├── e.png │ │ ├── i.png │ │ ├── icon.png │ │ ├── j.png │ │ ├── login_btn.jpg │ │ ├── n.png │ │ ├── red_link.jpg │ │ ├── t.png │ │ └── user_icon.jpg │ ├── logo.jpg │ ├── logo_index.png │ └── webLogo.jpg ├── index.php ├── listAdmin.php ├── listCate.php ├── listPro.php ├── listProImages.php ├── listUser.php ├── login.php ├── main.php ├── scripts │ ├── jquery-1.6.4.js │ └── jquery-ui │ │ ├── css │ │ └── ui-lightness │ │ │ ├── images │ │ │ ├── animated-overlay.gif │ │ │ ├── ui-bg_diagonals-thick_18_b81900_40x40.png │ │ │ ├── ui-bg_diagonals-thick_20_666666_40x40.png │ │ │ ├── ui-bg_flat_10_000000_40x100.png │ │ │ ├── ui-bg_glass_100_f6f6f6_1x400.png │ │ │ ├── ui-bg_glass_100_fdf5ce_1x400.png │ │ │ ├── ui-bg_glass_65_ffffff_1x400.png │ │ │ ├── ui-bg_gloss-wave_35_f6a828_500x100.png │ │ │ ├── ui-bg_highlight-soft_100_eeeeee_1x100.png │ │ │ ├── ui-bg_highlight-soft_75_ffe45c_1x100.png │ │ │ ├── ui-icons_222222_256x240.png │ │ │ ├── ui-icons_228ef1_256x240.png │ │ │ ├── ui-icons_ef8c08_256x240.png │ │ │ ├── ui-icons_ffd27a_256x240.png │ │ │ └── ui-icons_ffffff_256x240.png │ │ │ ├── jquery-ui-1.10.4.custom.css │ │ │ └── jquery-ui-1.10.4.custom.min.css │ │ └── js │ │ ├── jquery-1.10.2.js │ │ ├── jquery-ui-1.10.4.custom.js │ │ └── jquery-ui-1.10.4.custom.min.js ├── styles │ ├── backstage.css │ ├── global.css │ ├── main.css │ └── reset.css └── uploads │ ├── 03337e466bb517e92689a37dedb0b047.jpg │ ├── 034d6982af4c78bff1e3d667fc1efab9.jpg │ ├── 16fe3a3a263947fca9c8cd733235ee96.jpg │ ├── 1a5b4ba74286b8ff9de244e77f030421.jpg │ ├── 393959f6d14d2a26389c0d707f8f2786.jpg │ ├── 46fea3c37a73cb4ae264b33a4d9473c9.jpg │ ├── 4bed5f2b0b5d34ef5bf249cf8f309189.jpg │ ├── 4f73f320a12ddaec942e5fcf43f9d214.jpg │ ├── 544cb38f9039b89507e18e8fabce4712.jpg │ ├── 597d4589316bc5c1ddfb450b11f6e560.jpg │ ├── 60dc2a05d3c1b23b997b24bce60e2d06.jpg │ ├── 82be5812aa88d2d271196a4b13089a51.jpg │ ├── aa9e21d2b7c2447090df0833a07d83be.jpg │ ├── b360d495a863f212125376bffb86ebce.jpg │ ├── b8af62d4edc08156ebbee7aa0b3f2ec4.jpg │ ├── ccf4e758b1b9e015d6861f0d362219f9.jpg │ ├── d77af7bb4f128f8ca8514e9f031d9842.jpg │ ├── e8e2b866b2e5e0e52b67d422eb5ea564.jpg │ └── f39345a10b92904d262575b758bb4d8a.jpg ├── configs └── configs.php ├── core ├── admin.inc.php ├── album.inc.php ├── cate.inc.php ├── pro.inc.php └── user.inc.php ├── data └── shop.sql ├── doAction.php ├── fonts ├── MSYH.TTC ├── MSYHBD.TTC ├── SIMKAI.TTF ├── SIMSUN.TTC └── SIMYOU.TTF ├── image_220 ├── 034d6982af4c78bff1e3d667fc1efab9.jpg ├── 1a5b4ba74286b8ff9de244e77f030421.jpg ├── 336e36b02c6b1543de14be443ee06026.jpg ├── 393959f6d14d2a26389c0d707f8f2786.jpg ├── 46fea3c37a73cb4ae264b33a4d9473c9.jpg ├── 4bed5f2b0b5d34ef5bf249cf8f309189.jpg ├── 597d4589316bc5c1ddfb450b11f6e560.jpg ├── 60dc2a05d3c1b23b997b24bce60e2d06.jpg ├── 9183e5ab7c6298490371086df3d8a720.jpg ├── b360d495a863f212125376bffb86ebce.jpg ├── b8af62d4edc08156ebbee7aa0b3f2ec4.jpg ├── ccf4e758b1b9e015d6861f0d362219f9.jpg ├── d77af7bb4f128f8ca8514e9f031d9842.jpg ├── e35c6828dd3cf7d9338f3fb3c63f4963.jpg └── e8e2b866b2e5e0e52b67d422eb5ea564.jpg ├── image_350 ├── 034d6982af4c78bff1e3d667fc1efab9.jpg ├── 1a5b4ba74286b8ff9de244e77f030421.jpg ├── 336e36b02c6b1543de14be443ee06026.jpg ├── 393959f6d14d2a26389c0d707f8f2786.jpg ├── 46fea3c37a73cb4ae264b33a4d9473c9.jpg ├── 4bed5f2b0b5d34ef5bf249cf8f309189.jpg ├── 597d4589316bc5c1ddfb450b11f6e560.jpg ├── 60dc2a05d3c1b23b997b24bce60e2d06.jpg ├── 9183e5ab7c6298490371086df3d8a720.jpg ├── b360d495a863f212125376bffb86ebce.jpg ├── b8af62d4edc08156ebbee7aa0b3f2ec4.jpg ├── ccf4e758b1b9e015d6861f0d362219f9.jpg ├── d77af7bb4f128f8ca8514e9f031d9842.jpg ├── e35c6828dd3cf7d9338f3fb3c63f4963.jpg └── e8e2b866b2e5e0e52b67d422eb5ea564.jpg ├── image_50 ├── 034d6982af4c78bff1e3d667fc1efab9.jpg ├── 1a5b4ba74286b8ff9de244e77f030421.jpg ├── 336e36b02c6b1543de14be443ee06026.jpg ├── 393959f6d14d2a26389c0d707f8f2786.jpg ├── 46fea3c37a73cb4ae264b33a4d9473c9.jpg ├── 4bed5f2b0b5d34ef5bf249cf8f309189.jpg ├── 597d4589316bc5c1ddfb450b11f6e560.jpg ├── 60dc2a05d3c1b23b997b24bce60e2d06.jpg ├── 9183e5ab7c6298490371086df3d8a720.jpg ├── b360d495a863f212125376bffb86ebce.jpg ├── b8af62d4edc08156ebbee7aa0b3f2ec4.jpg ├── ccf4e758b1b9e015d6861f0d362219f9.jpg ├── d77af7bb4f128f8ca8514e9f031d9842.jpg ├── e35c6828dd3cf7d9338f3fb3c63f4963.jpg └── e8e2b866b2e5e0e52b67d422eb5ea564.jpg ├── image_800 ├── 034d6982af4c78bff1e3d667fc1efab9.jpg ├── 1a5b4ba74286b8ff9de244e77f030421.jpg ├── 336e36b02c6b1543de14be443ee06026.jpg ├── 393959f6d14d2a26389c0d707f8f2786.jpg ├── 46fea3c37a73cb4ae264b33a4d9473c9.jpg ├── 4bed5f2b0b5d34ef5bf249cf8f309189.jpg ├── 597d4589316bc5c1ddfb450b11f6e560.jpg ├── 60dc2a05d3c1b23b997b24bce60e2d06.jpg ├── 9183e5ab7c6298490371086df3d8a720.jpg ├── b360d495a863f212125376bffb86ebce.jpg ├── b8af62d4edc08156ebbee7aa0b3f2ec4.jpg ├── ccf4e758b1b9e015d6861f0d362219f9.jpg ├── d77af7bb4f128f8ca8514e9f031d9842.jpg ├── e35c6828dd3cf7d9338f3fb3c63f4963.jpg └── e8e2b866b2e5e0e52b67d422eb5ea564.jpg ├── images ├── ad.jpg ├── banner │ ├── banner_01.jpg │ ├── banner_02.jpg │ ├── banner_sm_01.jpg │ └── banner_sm_02.jpg ├── des_big.jpg ├── des_sm.jpg ├── des_sm2.jpg ├── iPhone1.jpg ├── icon │ ├── aLink_bg.png │ ├── buy_btn.jpg │ ├── car.jpg │ ├── collection.jpg │ ├── des_input_bg.jpg │ ├── des_title.jpg │ ├── des_title_icon.png │ ├── down.jpg │ ├── down.png │ ├── hg_icon.jpg │ ├── hot.jpg │ ├── icon.png │ ├── icon_cart_prompt.jpg │ ├── login_btn.jpg │ ├── plus_bg.jpg │ ├── red_link.jpg │ ├── shaoIcon.jpg │ ├── shopIcon.jpg │ ├── shop_sj.jpg │ ├── sj.jpg │ ├── sj_blue.jpg │ ├── sj_grey.gif │ ├── user_icon.jpg │ └── xing.gif ├── logo.jpg ├── pad.jpg ├── reg.jpg ├── sh_btn.jpg ├── shopImg.jpg ├── shopping_bg.jpg ├── step.jpg ├── t-shirt.jpg ├── t-shirt1.jpg ├── userhead.jpg ├── webLogo.jpg └── 蚊帐.jpg ├── include.php ├── index.php ├── lib ├── common.func.php ├── image.func.php ├── mysql.func.php ├── page.func.php ├── string.func.php └── upload.func.php ├── login.php ├── plugins └── kindeditor │ ├── kindeditor-all-min.js │ ├── kindeditor-all.js │ ├── kindeditor-min.js │ ├── kindeditor.js │ ├── lang │ ├── ar.js │ ├── en.js │ ├── ko.js │ ├── zh_CN.js │ └── zh_TW.js │ ├── license.txt │ ├── php │ ├── JSON.php │ ├── demo.php │ ├── file_manager_json.php │ └── upload_json.php │ ├── plugins │ ├── anchor │ │ └── anchor.js │ ├── autoheight │ │ └── autoheight.js │ ├── baidumap │ │ ├── baidumap.js │ │ ├── index.html │ │ └── map.html │ ├── clearhtml │ │ └── clearhtml.js │ ├── code │ │ ├── code.js │ │ ├── prettify.css │ │ └── prettify.js │ ├── emoticons │ │ ├── emoticons.js │ │ └── images │ │ │ ├── 0.gif │ │ │ ├── 1.gif │ │ │ ├── 10.gif │ │ │ ├── 100.gif │ │ │ ├── 101.gif │ │ │ ├── 102.gif │ │ │ ├── 103.gif │ │ │ ├── 104.gif │ │ │ ├── 105.gif │ │ │ ├── 106.gif │ │ │ ├── 107.gif │ │ │ ├── 108.gif │ │ │ ├── 109.gif │ │ │ ├── 11.gif │ │ │ ├── 110.gif │ │ │ ├── 111.gif │ │ │ ├── 112.gif │ │ │ ├── 113.gif │ │ │ ├── 114.gif │ │ │ ├── 115.gif │ │ │ ├── 116.gif │ │ │ ├── 117.gif │ │ │ ├── 118.gif │ │ │ ├── 119.gif │ │ │ ├── 12.gif │ │ │ ├── 120.gif │ │ │ ├── 121.gif │ │ │ ├── 122.gif │ │ │ ├── 123.gif │ │ │ ├── 124.gif │ │ │ ├── 125.gif │ │ │ ├── 126.gif │ │ │ ├── 127.gif │ │ │ ├── 128.gif │ │ │ ├── 129.gif │ │ │ ├── 13.gif │ │ │ ├── 130.gif │ │ │ ├── 131.gif │ │ │ ├── 132.gif │ │ │ ├── 133.gif │ │ │ ├── 134.gif │ │ │ ├── 14.gif │ │ │ ├── 15.gif │ │ │ ├── 16.gif │ │ │ ├── 17.gif │ │ │ ├── 18.gif │ │ │ ├── 19.gif │ │ │ ├── 2.gif │ │ │ ├── 20.gif │ │ │ ├── 21.gif │ │ │ ├── 22.gif │ │ │ ├── 23.gif │ │ │ ├── 24.gif │ │ │ ├── 25.gif │ │ │ ├── 26.gif │ │ │ ├── 27.gif │ │ │ ├── 28.gif │ │ │ ├── 29.gif │ │ │ ├── 3.gif │ │ │ ├── 30.gif │ │ │ ├── 31.gif │ │ │ ├── 32.gif │ │ │ ├── 33.gif │ │ │ ├── 34.gif │ │ │ ├── 35.gif │ │ │ ├── 36.gif │ │ │ ├── 37.gif │ │ │ ├── 38.gif │ │ │ ├── 39.gif │ │ │ ├── 4.gif │ │ │ ├── 40.gif │ │ │ ├── 41.gif │ │ │ ├── 42.gif │ │ │ ├── 43.gif │ │ │ ├── 44.gif │ │ │ ├── 45.gif │ │ │ ├── 46.gif │ │ │ ├── 47.gif │ │ │ ├── 48.gif │ │ │ ├── 49.gif │ │ │ ├── 5.gif │ │ │ ├── 50.gif │ │ │ ├── 51.gif │ │ │ ├── 52.gif │ │ │ ├── 53.gif │ │ │ ├── 54.gif │ │ │ ├── 55.gif │ │ │ ├── 56.gif │ │ │ ├── 57.gif │ │ │ ├── 58.gif │ │ │ ├── 59.gif │ │ │ ├── 6.gif │ │ │ ├── 60.gif │ │ │ ├── 61.gif │ │ │ ├── 62.gif │ │ │ ├── 63.gif │ │ │ ├── 64.gif │ │ │ ├── 65.gif │ │ │ ├── 66.gif │ │ │ ├── 67.gif │ │ │ ├── 68.gif │ │ │ ├── 69.gif │ │ │ ├── 7.gif │ │ │ ├── 70.gif │ │ │ ├── 71.gif │ │ │ ├── 72.gif │ │ │ ├── 73.gif │ │ │ ├── 74.gif │ │ │ ├── 75.gif │ │ │ ├── 76.gif │ │ │ ├── 77.gif │ │ │ ├── 78.gif │ │ │ ├── 79.gif │ │ │ ├── 8.gif │ │ │ ├── 80.gif │ │ │ ├── 81.gif │ │ │ ├── 82.gif │ │ │ ├── 83.gif │ │ │ ├── 84.gif │ │ │ ├── 85.gif │ │ │ ├── 86.gif │ │ │ ├── 87.gif │ │ │ ├── 88.gif │ │ │ ├── 89.gif │ │ │ ├── 9.gif │ │ │ ├── 90.gif │ │ │ ├── 91.gif │ │ │ ├── 92.gif │ │ │ ├── 93.gif │ │ │ ├── 94.gif │ │ │ ├── 95.gif │ │ │ ├── 96.gif │ │ │ ├── 97.gif │ │ │ ├── 98.gif │ │ │ ├── 99.gif │ │ │ └── static.gif │ ├── filemanager │ │ ├── filemanager.js │ │ └── images │ │ │ ├── file-16.gif │ │ │ ├── file-64.gif │ │ │ ├── folder-16.gif │ │ │ ├── folder-64.gif │ │ │ └── go-up.gif │ ├── flash │ │ └── flash.js │ ├── image │ │ ├── image.js │ │ └── images │ │ │ ├── align_left.gif │ │ │ ├── align_right.gif │ │ │ ├── align_top.gif │ │ │ └── refresh.png │ ├── insertfile │ │ └── insertfile.js │ ├── lineheight │ │ └── lineheight.js │ ├── link │ │ └── link.js │ ├── map │ │ ├── map.html │ │ └── map.js │ ├── media │ │ └── media.js │ ├── multiimage │ │ ├── images │ │ │ ├── image.png │ │ │ ├── select-files-en.png │ │ │ ├── select-files-zh_CN.png │ │ │ └── swfupload.swf │ │ └── multiimage.js │ ├── pagebreak │ │ └── pagebreak.js │ ├── plainpaste │ │ └── plainpaste.js │ ├── preview │ │ └── preview.js │ ├── quickformat │ │ └── quickformat.js │ ├── table │ │ └── table.js │ ├── template │ │ ├── html │ │ │ ├── 1.html │ │ │ ├── 2.html │ │ │ └── 3.html │ │ └── template.js │ └── wordpaste │ │ └── wordpaste.js │ └── themes │ ├── common │ ├── anchor.gif │ ├── blank.gif │ ├── flash.gif │ ├── loading.gif │ ├── media.gif │ └── rm.gif │ ├── default │ ├── background.png │ ├── default.css │ └── default.png │ ├── qq │ ├── editor.gif │ └── qq.css │ └── simple │ └── simple.css ├── proDetails.php ├── reg.php ├── scripts ├── jquery-1.6.js └── jquery.jqzoom-core.js ├── styles ├── jquery.jqzoom.css ├── main.css └── reset.css ├── test.php ├── test ├── a1f0b5afb20d0da700edb4dbf4821e56.jpg ├── des_big.jpg ├── doAction.php ├── doAction1.php ├── doAction2.php ├── doAction3.php ├── resizeImage.php ├── resizeImage1.php ├── resizeImage2.php ├── upload.func.php ├── upload.php ├── upload1.php ├── upload2.php ├── uploads │ ├── image_220 │ │ └── des_big.jpg │ ├── image_350 │ │ └── des_big.jpg │ ├── image_50 │ │ └── des_big.jpg │ └── image_800 │ │ └── des_big.jpg ├── waterPic.php └── waterText.php └── uploads ├── 635c14fb95e989e5707a5f9802ca4d2a.jpg ├── 6ea82909b43efbe17dafea572af3180c.jpg ├── 91a023aeb48d1a7331efd54e1af24a6d.jpg └── c88fb1b66b21306df775a0892a877e2d.jpg /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | *.php linguist-language=PHP 3 | *.js linguist-language=PHP 4 | *.css linguist-language=PHP 5 | 6 | # Custom for Visual Studio 7 | *.cs diff=csharp 8 | 9 | # Standard to msysgit 10 | *.doc diff=astextplain 11 | *.DOC diff=astextplain 12 | *.docx diff=astextplain 13 | *.DOCX diff=astextplain 14 | *.dot diff=astextplain 15 | *.DOT diff=astextplain 16 | *.pdf diff=astextplain 17 | *.PDF diff=astextplain 18 | *.rtf diff=astextplain 19 | *.RTF diff=astextplain 20 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Windows image file caches 2 | Thumbs.db 3 | ehthumbs.db 4 | 5 | # Folder config file 6 | Desktop.ini 7 | 8 | # Recycle Bin used on file shares 9 | $RECYCLE.BIN/ 10 | 11 | # Windows Installer files 12 | *.cab 13 | *.msi 14 | *.msm 15 | *.msp 16 | 17 | # Windows shortcuts 18 | *.lnk 19 | 20 | # ========================= 21 | # Operating System Files 22 | # ========================= 23 | 24 | # OSX 25 | # ========================= 26 | 27 | .DS_Store 28 | .AppleDouble 29 | .LSOverride 30 | 31 | # Thumbnails 32 | ._* 33 | 34 | # Files that might appear on external disk 35 | .Spotlight-V100 36 | .Trashes 37 | 38 | # Directories potentially created on remote AFP share 39 | .AppleDB 40 | .AppleDesktop 41 | Network Trash Folder 42 | Temporary Items 43 | .apdisk 44 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Shop1 2 | 3 | 基于php开发的电子商务网站 4 | 5 | #关于这个项目 这个是慕课网上面的课程 6 | 7 | http://www.imooc.com/learn/148 8 | 9 | 大家如果有问题,都可以来咨询我,如果可以我能尽量给你们解答 10 | 11 | 环境搭建我是分布式搭建,即Apache、Mysql、PHP分别安装 12 | 13 | 关于gd库,需要修改php.ini里面的相关配置,将其前面的;删除即可 14 | 15 | 我使用的是最新的php版本,因此已经摒弃了mysql,变成了mysqli,因此这个项目中数据库连接我使用的是mysqli 16 | 17 | 跟着慕课网的一个老师一点一点敲下来,遇错排查,各种百度、Google,最后解决了问题,收获很大 18 | 19 | 希望可以 慢慢学,学有所成 20 | 21 | 大家一起加油 ! 22 | -------------------------------------------------------------------------------- /admin/addAdmin.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Insert title here 6 | 7 | 8 |

添加管理员

9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 |
管理员名称
管理员密码
管理员邮箱
28 |
29 | 30 | -------------------------------------------------------------------------------- /admin/addCate.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Insert title here 6 | 7 | 8 |

添加分类

9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 |
分类名称
20 |
21 | 22 | -------------------------------------------------------------------------------- /admin/addPro.php: -------------------------------------------------------------------------------- 1 | 9 | 10 | 11 | 12 | 13 | -.- 14 | 15 | 16 | 17 | 18 | 42 | 43 | 44 |

添加商品

45 |
46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 82 | 83 | 84 | 85 | 89 | 90 | 91 | 92 | 93 |
商品名称
商品分类 54 | 59 |
商品货号
商品数量
商品市场价
商品慕课价
商品描述 80 | 81 |
商品图像 86 | 添加附件 87 |
88 |
94 |
95 | 96 | -------------------------------------------------------------------------------- /admin/addUser.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Insert title here 6 | 7 | 8 |

添加用户

9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 |
用户名
密码
邮箱
性别男 26 | 女 27 | 保密 28 |
头像
39 |
40 | 41 | -------------------------------------------------------------------------------- /admin/doAdminAction.php: -------------------------------------------------------------------------------- 1 | 39 | 40 | 41 | 42 | 43 | Insert title here 44 | 45 | 46 | 51 | 52 | -------------------------------------------------------------------------------- /admin/doLogin.php: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | 11 | Insert title here 12 | 13 | 14 |

编辑管理员

15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 |
管理员名称
管理员密码
管理员邮箱
34 |
35 | 36 | -------------------------------------------------------------------------------- /admin/editCate.php: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 9 | 10 | Insert title here 11 | 12 | 13 |

修改分类

14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 |
分类名称
25 |
26 | 27 | -------------------------------------------------------------------------------- /admin/editPro.php: -------------------------------------------------------------------------------- 1 | 11 | 12 | 13 | 14 | 15 | -.- 16 | 17 | 18 | 19 | 20 | 44 | 45 | 46 |

添加商品

47 |
48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 84 | 85 | 86 | 87 | 91 | 92 | 93 | 94 | 95 |
商品名称
商品分类 56 | 61 |
商品货号
商品数量
商品市场价
商品慕课价
商品描述 82 | 83 |
商品图像 88 | 添加附件 89 |
90 |
96 |
97 | 98 | -------------------------------------------------------------------------------- /admin/editUser.php: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | 11 | Insert title here 12 | 13 | 14 |

编辑用户

15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 36 | 37 | 38 | 39 | 40 | 41 |
用户名
密码
邮箱
性别/>男 33 | />女 34 | />保密 35 |
42 |
43 | 44 | -------------------------------------------------------------------------------- /admin/getVerify.php: -------------------------------------------------------------------------------- 1 | =$totalPage)$page=$totalPage; 10 | $offset=($page-1)*$pageSize; 11 | $sql="select id,username,email from shop_admin order by id asc limit {$offset},{$pageSize}"; 12 | $rows=fetchAll($sql); 13 | if(!$rows){ 14 | alertMes("sorry,没有管理员,请添加!","addAdmin.php"); 15 | exit; 16 | } 17 | ?> 18 | 19 | 20 | 21 | 22 | -.- 23 | 24 | 25 | 26 | 27 |
28 |
29 |
30 | 31 |
32 | 33 |
34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | $pageSize):?> 55 | 56 | 57 | 58 | 59 | 60 |
编号管理员名称管理员邮箱操作
61 |
62 | 63 | 77 | -------------------------------------------------------------------------------- /admin/listCate.php: -------------------------------------------------------------------------------- 1 | =$totalPage)$page=$totalPage; 10 | $offset=($page-1)*$pageSize; 11 | $sql="select id,cName from shop_cate order by id asc limit {$offset},{$pageSize}"; 12 | $rows=fetchAll($sql); 13 | if(!$rows){ 14 | alertMes("sorry,没有分类,请添加!","addCate.php"); 15 | exit; 16 | } 17 | 18 | ?> 19 | 20 | 21 | 22 | 23 | Insert title here 24 | 25 | 26 | 27 |
28 |
29 |
30 | 31 |
32 | 33 |
34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | $pageSize):?> 53 | 54 | 55 | 56 | 57 | 58 |
编号分类操作
59 |
60 | 73 | 74 | -------------------------------------------------------------------------------- /admin/listUser.php: -------------------------------------------------------------------------------- 1 | 11 | 12 | 13 | 14 | 15 | -.- 16 | 17 | 18 | 19 | 20 |
21 |
22 |
23 | 24 |
25 | 26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 50 | 51 | 52 | 53 | 54 |
编号用户名称用户邮箱是否激活操作
46 | 49 |
55 |
56 | 57 | 71 | -------------------------------------------------------------------------------- /admin/login.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 登陆 6 | 7 | 8 | 12 | 13 | 14 | 15 |
16 | 24 |
25 | 26 |
27 |
28 |
29 | 40 |
41 |
42 |
43 | 44 |
45 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /admin/main.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Insert title here 6 | 7 | 8 |
9 |

系统信息

10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 |
操作系统
Apache版本
PHP版本
运行方式
28 |

软件信息

29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 |
系统名称慕课网电子商城
开发团队King&慕课网的小伙伴
公司网址http://www.imooc.com
成功案例慕课网
47 |
48 | 49 | 50 | -------------------------------------------------------------------------------- /admin/scripts/jquery-ui/css/ui-lightness/images/animated-overlay.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/admin/scripts/jquery-ui/css/ui-lightness/images/animated-overlay.gif -------------------------------------------------------------------------------- /admin/scripts/jquery-ui/css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/admin/scripts/jquery-ui/css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png -------------------------------------------------------------------------------- /admin/scripts/jquery-ui/css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/admin/scripts/jquery-ui/css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png -------------------------------------------------------------------------------- /admin/scripts/jquery-ui/css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/admin/scripts/jquery-ui/css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png -------------------------------------------------------------------------------- /admin/scripts/jquery-ui/css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/admin/scripts/jquery-ui/css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png -------------------------------------------------------------------------------- /admin/scripts/jquery-ui/css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/admin/scripts/jquery-ui/css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png -------------------------------------------------------------------------------- /admin/scripts/jquery-ui/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/admin/scripts/jquery-ui/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png -------------------------------------------------------------------------------- /admin/scripts/jquery-ui/css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/admin/scripts/jquery-ui/css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png -------------------------------------------------------------------------------- /admin/scripts/jquery-ui/css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/admin/scripts/jquery-ui/css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png -------------------------------------------------------------------------------- /admin/scripts/jquery-ui/css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/admin/scripts/jquery-ui/css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png -------------------------------------------------------------------------------- /admin/scripts/jquery-ui/css/ui-lightness/images/ui-icons_222222_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/admin/scripts/jquery-ui/css/ui-lightness/images/ui-icons_222222_256x240.png -------------------------------------------------------------------------------- /admin/scripts/jquery-ui/css/ui-lightness/images/ui-icons_228ef1_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/admin/scripts/jquery-ui/css/ui-lightness/images/ui-icons_228ef1_256x240.png -------------------------------------------------------------------------------- /admin/scripts/jquery-ui/css/ui-lightness/images/ui-icons_ef8c08_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/admin/scripts/jquery-ui/css/ui-lightness/images/ui-icons_ef8c08_256x240.png -------------------------------------------------------------------------------- /admin/scripts/jquery-ui/css/ui-lightness/images/ui-icons_ffd27a_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/admin/scripts/jquery-ui/css/ui-lightness/images/ui-icons_ffd27a_256x240.png -------------------------------------------------------------------------------- /admin/scripts/jquery-ui/css/ui-lightness/images/ui-icons_ffffff_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/admin/scripts/jquery-ui/css/ui-lightness/images/ui-icons_ffffff_256x240.png -------------------------------------------------------------------------------- /admin/styles/backstage.css: -------------------------------------------------------------------------------- 1 | @charset "utf-8"; 2 | *{margin: 0;padding: 0;} 3 | li{list-style: none;} 4 | input,select,textarea{outline: none;border: none; background: none;} 5 | textarea{resize: none;} 6 | a{text-decoration: none;} 7 | a:hover{text-decoration: underline;} 8 | .clearfix:after, 9 | .clearfix:before{content: ""; display: table;} 10 | .clearfix:after{ clear: both;} 11 | .clearfix{zoom:1;} 12 | .fl{float: left;} 13 | .fr{float: right;} 14 | 15 | 16 | /*头部*/ 17 | .head{height: 60px; background-color: #2a2c2e; padding: 0 10px;} 18 | .logo{width: 100px; height: 100%; background: url(../images/logo_index.png) left top no-repeat;} 19 | .head_text{height: 100%; font:22px/60px "微软雅黑"; color: #FFF; } 20 | 21 | /*用户位置*/ 22 | .operation_user{font:12px/2.5 "微软雅黑";padding: 0 10px; background-color: rgb(225, 224, 224);} 23 | .link span{font-family: "宋体"; font-weight: 500; padding: 0 10px;} 24 | .link a{color: #000;} 25 | 26 | .content{overflow: hidden;} 27 | .main{width: 100%;float: left; margin-bottom: -999999px;padding-bottom: 999999px; overflow: hidden;} 28 | .menu{width: 200px; float: left; margin-left: -100%; height: 100%; position: relative; z-index: 2; background-color: #505254; border-right: solid 1px rgb(11, 82, 215);margin-bottom: -999999px;padding-bottom: 999999px; overflow: hidden;} 29 | .cont{position: relative;z-index: 3; zoom:1;} 30 | .main .cont{margin-left: 201px;} 31 | .title{font:16px/2.5 "微软雅黑";padding: 0 10px; background-color: #ccc;} 32 | /*左侧导航*/ 33 | .mList{color:#FFF; font-size: 14px; font-family: "微软雅黑"; padding-top: 1em; zoom:1;} 34 | .mList h3{font:14px/2 ""; padding-left: 1em;} 35 | .mList h3 span{display: inline-block; width: 10px; margin-right: 8px;} 36 | .mList dl{text-indent: 3em;} 37 | .mList a{color: #FFF;font:12px/2 "微软雅黑"; display: block;} 38 | .icon{padding-left: 18px; background-position: left center; background-repeat: no-repeat;} 39 | .icon_i{background-image: url(../images/icon/i.png);} 40 | .icon_j{background-image: url(../images/icon/j.png);} 41 | .icon_t{background-image: url(../images/icon/t.png);} 42 | .icon_n{background-image: url(../images/icon/n.png);} 43 | .icon_e{background-image: url(../images/icon/e.png);} 44 | /*右侧详细列表*/ 45 | .details_operation{margin-bottom: 20px;} 46 | .details{padding: 15px; font-family: "微软雅黑";} 47 | .bui_select{background-color: #E8E8E8; height: 30px; float: left;} 48 | .add{width: 92px; height: 30px; font-family: "微软雅黑"; font-size: 14px;} 49 | .select{font-family: "微软雅黑"; font-size: 14px; height: 22px; margin: 4px 8px;} 50 | .text {float: left; margin-left: 30px; display: inline;} 51 | .text span{line-height: 30px; font-size: 14px; float:left; margin-right: 10px;} 52 | .search{width: 140px; height: 30px; line-height: 30px\9; background-color: #E8E8E8; padding: 0 8px;} 53 | .ml30{margin-left: 30px; display: inline;} 54 | /*表格*/ 55 | .table{border-collapse: collapse; width: 100%; font-size: 14px;} 56 | .table th{background-color: #E8E8E8;} 57 | .table th, 58 | .table td{border: solid 1px #ccc; padding: 8px;} 59 | .label,.check{vertical-align: middle;} 60 | .check{margin-right: 4px;} 61 | .btn{padding: 4px 16px; background-color: #E8E8E8; margin: 0 10px;font-family: "微软雅黑"; font-size: 14px; } 62 | .btn:hover{background-color: #ccc;} 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | -------------------------------------------------------------------------------- /admin/styles/global.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/admin/styles/global.css -------------------------------------------------------------------------------- /admin/styles/reset.css: -------------------------------------------------------------------------------- 1 | @charset "utf-8"; 2 | /* CSS Document */ 3 | body,ul,ol,li,p,h1,h2,h3,h4,h5,h6,form,fieldset,table,td,img,div,dl,dt,dd,input{margin:0;padding:0;} 4 | body{font-size:12px;} 5 | img{border:none;} 6 | li{list-style:none;} 7 | input,select,textarea{outline:none;border:none; background:none;} 8 | textarea{resize:none;} 9 | a{text-decoration:none; color:#656565;} 10 | 11 | /*清浮动*/ 12 | .clearfix:after{content:"";display:block;clear:both;} 13 | .clearfix{zoom:1;} 14 | .fl{float:left;} 15 | .fr{float:right;} 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /admin/uploads/03337e466bb517e92689a37dedb0b047.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/admin/uploads/03337e466bb517e92689a37dedb0b047.jpg -------------------------------------------------------------------------------- /admin/uploads/034d6982af4c78bff1e3d667fc1efab9.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/admin/uploads/034d6982af4c78bff1e3d667fc1efab9.jpg -------------------------------------------------------------------------------- /admin/uploads/16fe3a3a263947fca9c8cd733235ee96.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/admin/uploads/16fe3a3a263947fca9c8cd733235ee96.jpg -------------------------------------------------------------------------------- /admin/uploads/1a5b4ba74286b8ff9de244e77f030421.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/admin/uploads/1a5b4ba74286b8ff9de244e77f030421.jpg -------------------------------------------------------------------------------- /admin/uploads/393959f6d14d2a26389c0d707f8f2786.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/admin/uploads/393959f6d14d2a26389c0d707f8f2786.jpg -------------------------------------------------------------------------------- /admin/uploads/46fea3c37a73cb4ae264b33a4d9473c9.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/admin/uploads/46fea3c37a73cb4ae264b33a4d9473c9.jpg -------------------------------------------------------------------------------- /admin/uploads/4bed5f2b0b5d34ef5bf249cf8f309189.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/admin/uploads/4bed5f2b0b5d34ef5bf249cf8f309189.jpg -------------------------------------------------------------------------------- /admin/uploads/4f73f320a12ddaec942e5fcf43f9d214.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/admin/uploads/4f73f320a12ddaec942e5fcf43f9d214.jpg -------------------------------------------------------------------------------- /admin/uploads/544cb38f9039b89507e18e8fabce4712.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/admin/uploads/544cb38f9039b89507e18e8fabce4712.jpg -------------------------------------------------------------------------------- /admin/uploads/597d4589316bc5c1ddfb450b11f6e560.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/admin/uploads/597d4589316bc5c1ddfb450b11f6e560.jpg -------------------------------------------------------------------------------- /admin/uploads/60dc2a05d3c1b23b997b24bce60e2d06.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/admin/uploads/60dc2a05d3c1b23b997b24bce60e2d06.jpg -------------------------------------------------------------------------------- /admin/uploads/82be5812aa88d2d271196a4b13089a51.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/admin/uploads/82be5812aa88d2d271196a4b13089a51.jpg -------------------------------------------------------------------------------- /admin/uploads/aa9e21d2b7c2447090df0833a07d83be.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/admin/uploads/aa9e21d2b7c2447090df0833a07d83be.jpg -------------------------------------------------------------------------------- /admin/uploads/b360d495a863f212125376bffb86ebce.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/admin/uploads/b360d495a863f212125376bffb86ebce.jpg -------------------------------------------------------------------------------- /admin/uploads/b8af62d4edc08156ebbee7aa0b3f2ec4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/admin/uploads/b8af62d4edc08156ebbee7aa0b3f2ec4.jpg -------------------------------------------------------------------------------- /admin/uploads/ccf4e758b1b9e015d6861f0d362219f9.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/admin/uploads/ccf4e758b1b9e015d6861f0d362219f9.jpg -------------------------------------------------------------------------------- /admin/uploads/d77af7bb4f128f8ca8514e9f031d9842.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/admin/uploads/d77af7bb4f128f8ca8514e9f031d9842.jpg -------------------------------------------------------------------------------- /admin/uploads/e8e2b866b2e5e0e52b67d422eb5ea564.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/admin/uploads/e8e2b866b2e5e0e52b67d422eb5ea564.jpg -------------------------------------------------------------------------------- /admin/uploads/f39345a10b92904d262575b758bb4d8a.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/admin/uploads/f39345a10b92904d262575b758bb4d8a.jpg -------------------------------------------------------------------------------- /configs/configs.php: -------------------------------------------------------------------------------- 1 | 继续添加 36 | |查看管理员列表"; 37 | }else{ 38 | $mes="添加失败!
重新添加"; 39 | } 40 | return $mes; 41 | } 42 | 43 | /** 44 | * 编辑管理员 45 | * @param unknown $id 46 | * @return Ambigous 47 | */ 48 | function editAdmin($id){ 49 | $arr=$_POST; 50 | $arr['password']=md5($_POST['password']); 51 | //print_r($arr); 52 | //$mes=update("shop_admin", $arr,"id={$id}"); 53 | if(update("shop_admin", $arr,"id='{$id}'")){ 54 | $mes="编辑成功!
查看管理员列表"; 55 | }else{ 56 | $mes="编辑失败!
重新修改"; 57 | } 58 | return $mes; 59 | } 60 | 61 | /** 62 | * 删除管理员 63 | * @param unknown $id 64 | * @return string 65 | */ 66 | function delAdmin($id){ 67 | if(delete("shop_admin","id={$id}")){ 68 | $mes="删除成功!
查看管理员列表"; 69 | }else{ 70 | $mes="删除失败!
重新删除"; 71 | } 72 | return $mes; 73 | } 74 | 75 | 76 | /** 77 | * 得到所有的管理员 78 | * @return multitype: 79 | */ 80 | function getAllAdmin(){ 81 | $sql="select id,username,email from shop_admin"; 82 | $rows=fetchAll($sql); 83 | return $rows; 84 | } 85 | 86 | function getAdminByPage($pageSize=2){ 87 | $sql = "select * from shop_admin"; 88 | global $totalPage; 89 | $totalRows = getResultNum($sql); 90 | global $totalPage; 91 | $totalPage = ceil($totalRows / $pageSize); 92 | global $page; 93 | $page = empty($_REQUEST['page']) ? 1 : intval ($_REQUEST['page']); 94 | if ($page < 1 || $page == null || ! is_numeric($page)) { 95 | $page = 1; 96 | } 97 | if ($page >= $totalPage) { 98 | $page = $totalPage; 99 | } 100 | $offset = ($page - 1) * $pageSize; 101 | $sql = "select id,username,email from shop_admin limit {$offset},{$pageSize}"; 102 | $rows = fetchAll($sql); 103 | return $rows; 104 | } 105 | 106 | /** 107 | * 注销管理员 108 | */ 109 | function logout(){ 110 | //清空$_SESSION 111 | $_SESSION=array(); 112 | if(isset($_COOKIE[session_name()])){ 113 | //注销cookie 114 | setcookie(session_name(),"",time()-1); 115 | } 116 | if(isset($_COOKIE['adminName'])){ 117 | setcookie('adminName',"",time()-1); 118 | } 119 | if(isset($_COOKIE['adminId'])){ 120 | setcookie('adminId',"",time()-1); 121 | } 122 | //注销session 123 | session_destroy(); 124 | //跳转到登录页面 125 | header("location:login.php"); 126 | } 127 | 128 | -------------------------------------------------------------------------------- /core/album.inc.php: -------------------------------------------------------------------------------- 1 | 继续添加|查看分类"; 10 | }else{ 11 | $mes="添加失败!
重新添加|查看分类"; 12 | } 13 | return $mes; 14 | } 15 | 16 | /** 17 | * 根据id得到指定分类信息 18 | * @param int $id 19 | * @return unknown 20 | */ 21 | function getCateById($id){ 22 | $sql="select id,cName from shop_cate where id='{$id}'"; 23 | return fetchOne($sql); 24 | } 25 | 26 | /** 27 | * 修改分类列表 28 | * @param string $where 29 | * @return string 30 | */ 31 | function editCate($where){ 32 | $arr=$_POST; 33 | if(update("shop_cate", $arr,$where)){ 34 | $mes="分类修改成功!
查看分类"; 35 | }else{ 36 | $mes="分类修改失败!
重新修改"; 37 | } 38 | return $mes; 39 | } 40 | 41 | /** 42 | * 删除分类 43 | * @param string $where 44 | * @return string 45 | */ 46 | function delCate($id){ 47 | $res=checkProExit($id); 48 | if(!$res){ 49 | $where="id=".$id; 50 | if(delete("shop_cate",$where)){ 51 | $mes="分类删除成功!
查看分类"; 52 | }else{ 53 | $mes="分类删除失败!
重新删除"; 54 | } 55 | return $mes; 56 | }else{ 57 | alertMes("不能删除分类,请先删除分类下的商品", "listPro.php"); 58 | } 59 | 60 | } 61 | 62 | /** 63 | * 得到所有商品的分类 64 | */ 65 | function getAllCate(){ 66 | $sql="select id,cName from shop_cate"; 67 | $rows=fetchAll($sql); 68 | return $rows; 69 | } 70 | 71 | 72 | 73 | 74 | /* function getAllCateByPage(){ 75 | 76 | } */ -------------------------------------------------------------------------------- /data/shop.sql: -------------------------------------------------------------------------------- 1 | CREATE DATABASE IF NOT EXISTS shop; 2 | CHARACTER SET 'utf8'; 3 | COLLATE 'utf_general_ci'; 4 | USE shop; 5 | 6 | -- 管理员 7 | DROP TABLE IF EXISTS shop_admin; 8 | CREATE TABLE shop_admin( 9 | id tinyint unsigned auto_increment key, 10 | username varchar(20) not null unique, 11 | password char(32) not null, 12 | email varchar(50) not null 13 | )ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; 14 | 15 | -- 16 | DROP TABLE IF EXISTS shop_cate; 17 | CREATE TABLE shop_cate( 18 | id smallint unsigned auto_increment key, 19 | cName varchar(50) unique 20 | )ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; 21 | 22 | -- 产品 23 | DROP TABLE IF EXISTS shop_pro; 24 | CREATE TABLE shop_pro( 25 | id int unsigned auto_increment key, 26 | pName varchar(50) not null unique, 27 | pSn varchar(50) not null, 28 | pNum int unsigned default 1, 29 | mPrice decimal(10,2) not null, 30 | iPrice decimal(10,2) not null, 31 | pDesc text, 32 | pubTime int unsigned not null, 33 | isShow tinyint(1) default 1, 34 | isHot tinyint(1) default 0, 35 | cId smallint unsigned not null 36 | )ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; 37 | 38 | -- 用户 39 | DROP TABLE IF EXISTS shop_user; 40 | CREATE TABLE shop_user( 41 | id int unsigned auto_increment key, 42 | username varchar(20) not null unique, 43 | password char(32) not null, 44 | sex enum("保密","男","女") not null, 45 | face varchar(50) not null, 46 | regTime int unsigned not null 47 | )ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;; 48 | 49 | -- 相册 50 | DROP TABLE IF EXISTS shop_album; 51 | CREATE TABLE shop_album( 52 | id int unsigned auto_increment key, 53 | pid int unsigned not null, 54 | albumPath varchar(50) not null 55 | )ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; 56 | -------------------------------------------------------------------------------- /doAction.php: -------------------------------------------------------------------------------- 1 | 13 | 14 | 15 | 16 | 17 | Insert title here 18 | 19 | 20 | 25 | 26 | -------------------------------------------------------------------------------- /fonts/MSYH.TTC: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/fonts/MSYH.TTC -------------------------------------------------------------------------------- /fonts/MSYHBD.TTC: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/fonts/MSYHBD.TTC -------------------------------------------------------------------------------- /fonts/SIMKAI.TTF: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/fonts/SIMKAI.TTF -------------------------------------------------------------------------------- /fonts/SIMSUN.TTC: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/fonts/SIMSUN.TTC -------------------------------------------------------------------------------- /fonts/SIMYOU.TTF: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/fonts/SIMYOU.TTF -------------------------------------------------------------------------------- /image_220/034d6982af4c78bff1e3d667fc1efab9.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/image_220/034d6982af4c78bff1e3d667fc1efab9.jpg -------------------------------------------------------------------------------- /image_220/1a5b4ba74286b8ff9de244e77f030421.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/image_220/1a5b4ba74286b8ff9de244e77f030421.jpg -------------------------------------------------------------------------------- /image_220/336e36b02c6b1543de14be443ee06026.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/image_220/336e36b02c6b1543de14be443ee06026.jpg -------------------------------------------------------------------------------- /image_220/393959f6d14d2a26389c0d707f8f2786.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/image_220/393959f6d14d2a26389c0d707f8f2786.jpg -------------------------------------------------------------------------------- /image_220/46fea3c37a73cb4ae264b33a4d9473c9.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/image_220/46fea3c37a73cb4ae264b33a4d9473c9.jpg -------------------------------------------------------------------------------- /image_220/4bed5f2b0b5d34ef5bf249cf8f309189.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/image_220/4bed5f2b0b5d34ef5bf249cf8f309189.jpg -------------------------------------------------------------------------------- /image_220/597d4589316bc5c1ddfb450b11f6e560.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/image_220/597d4589316bc5c1ddfb450b11f6e560.jpg -------------------------------------------------------------------------------- /image_220/60dc2a05d3c1b23b997b24bce60e2d06.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/image_220/60dc2a05d3c1b23b997b24bce60e2d06.jpg -------------------------------------------------------------------------------- /image_220/9183e5ab7c6298490371086df3d8a720.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/image_220/9183e5ab7c6298490371086df3d8a720.jpg -------------------------------------------------------------------------------- /image_220/b360d495a863f212125376bffb86ebce.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/image_220/b360d495a863f212125376bffb86ebce.jpg -------------------------------------------------------------------------------- /image_220/b8af62d4edc08156ebbee7aa0b3f2ec4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/image_220/b8af62d4edc08156ebbee7aa0b3f2ec4.jpg -------------------------------------------------------------------------------- /image_220/ccf4e758b1b9e015d6861f0d362219f9.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/image_220/ccf4e758b1b9e015d6861f0d362219f9.jpg -------------------------------------------------------------------------------- /image_220/d77af7bb4f128f8ca8514e9f031d9842.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/image_220/d77af7bb4f128f8ca8514e9f031d9842.jpg -------------------------------------------------------------------------------- /image_220/e35c6828dd3cf7d9338f3fb3c63f4963.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/image_220/e35c6828dd3cf7d9338f3fb3c63f4963.jpg -------------------------------------------------------------------------------- /image_220/e8e2b866b2e5e0e52b67d422eb5ea564.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/image_220/e8e2b866b2e5e0e52b67d422eb5ea564.jpg -------------------------------------------------------------------------------- /image_350/034d6982af4c78bff1e3d667fc1efab9.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/image_350/034d6982af4c78bff1e3d667fc1efab9.jpg -------------------------------------------------------------------------------- /image_350/1a5b4ba74286b8ff9de244e77f030421.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/image_350/1a5b4ba74286b8ff9de244e77f030421.jpg -------------------------------------------------------------------------------- /image_350/336e36b02c6b1543de14be443ee06026.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/image_350/336e36b02c6b1543de14be443ee06026.jpg -------------------------------------------------------------------------------- /image_350/393959f6d14d2a26389c0d707f8f2786.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/image_350/393959f6d14d2a26389c0d707f8f2786.jpg -------------------------------------------------------------------------------- /image_350/46fea3c37a73cb4ae264b33a4d9473c9.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/image_350/46fea3c37a73cb4ae264b33a4d9473c9.jpg -------------------------------------------------------------------------------- /image_350/4bed5f2b0b5d34ef5bf249cf8f309189.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/image_350/4bed5f2b0b5d34ef5bf249cf8f309189.jpg -------------------------------------------------------------------------------- /image_350/597d4589316bc5c1ddfb450b11f6e560.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/image_350/597d4589316bc5c1ddfb450b11f6e560.jpg -------------------------------------------------------------------------------- /image_350/60dc2a05d3c1b23b997b24bce60e2d06.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/image_350/60dc2a05d3c1b23b997b24bce60e2d06.jpg -------------------------------------------------------------------------------- /image_350/9183e5ab7c6298490371086df3d8a720.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/image_350/9183e5ab7c6298490371086df3d8a720.jpg -------------------------------------------------------------------------------- /image_350/b360d495a863f212125376bffb86ebce.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/image_350/b360d495a863f212125376bffb86ebce.jpg -------------------------------------------------------------------------------- /image_350/b8af62d4edc08156ebbee7aa0b3f2ec4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/image_350/b8af62d4edc08156ebbee7aa0b3f2ec4.jpg -------------------------------------------------------------------------------- /image_350/ccf4e758b1b9e015d6861f0d362219f9.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/image_350/ccf4e758b1b9e015d6861f0d362219f9.jpg -------------------------------------------------------------------------------- /image_350/d77af7bb4f128f8ca8514e9f031d9842.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/image_350/d77af7bb4f128f8ca8514e9f031d9842.jpg -------------------------------------------------------------------------------- /image_350/e35c6828dd3cf7d9338f3fb3c63f4963.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/image_350/e35c6828dd3cf7d9338f3fb3c63f4963.jpg -------------------------------------------------------------------------------- /image_350/e8e2b866b2e5e0e52b67d422eb5ea564.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/image_350/e8e2b866b2e5e0e52b67d422eb5ea564.jpg -------------------------------------------------------------------------------- /image_50/034d6982af4c78bff1e3d667fc1efab9.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/image_50/034d6982af4c78bff1e3d667fc1efab9.jpg -------------------------------------------------------------------------------- /image_50/1a5b4ba74286b8ff9de244e77f030421.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/image_50/1a5b4ba74286b8ff9de244e77f030421.jpg -------------------------------------------------------------------------------- /image_50/336e36b02c6b1543de14be443ee06026.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/image_50/336e36b02c6b1543de14be443ee06026.jpg -------------------------------------------------------------------------------- /image_50/393959f6d14d2a26389c0d707f8f2786.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/image_50/393959f6d14d2a26389c0d707f8f2786.jpg -------------------------------------------------------------------------------- /image_50/46fea3c37a73cb4ae264b33a4d9473c9.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/image_50/46fea3c37a73cb4ae264b33a4d9473c9.jpg -------------------------------------------------------------------------------- /image_50/4bed5f2b0b5d34ef5bf249cf8f309189.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/image_50/4bed5f2b0b5d34ef5bf249cf8f309189.jpg -------------------------------------------------------------------------------- /image_50/597d4589316bc5c1ddfb450b11f6e560.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/image_50/597d4589316bc5c1ddfb450b11f6e560.jpg -------------------------------------------------------------------------------- /image_50/60dc2a05d3c1b23b997b24bce60e2d06.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/image_50/60dc2a05d3c1b23b997b24bce60e2d06.jpg -------------------------------------------------------------------------------- /image_50/9183e5ab7c6298490371086df3d8a720.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/image_50/9183e5ab7c6298490371086df3d8a720.jpg -------------------------------------------------------------------------------- /image_50/b360d495a863f212125376bffb86ebce.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/image_50/b360d495a863f212125376bffb86ebce.jpg -------------------------------------------------------------------------------- /image_50/b8af62d4edc08156ebbee7aa0b3f2ec4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/image_50/b8af62d4edc08156ebbee7aa0b3f2ec4.jpg -------------------------------------------------------------------------------- /image_50/ccf4e758b1b9e015d6861f0d362219f9.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/image_50/ccf4e758b1b9e015d6861f0d362219f9.jpg -------------------------------------------------------------------------------- /image_50/d77af7bb4f128f8ca8514e9f031d9842.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/image_50/d77af7bb4f128f8ca8514e9f031d9842.jpg -------------------------------------------------------------------------------- /image_50/e35c6828dd3cf7d9338f3fb3c63f4963.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/image_50/e35c6828dd3cf7d9338f3fb3c63f4963.jpg -------------------------------------------------------------------------------- /image_50/e8e2b866b2e5e0e52b67d422eb5ea564.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/image_50/e8e2b866b2e5e0e52b67d422eb5ea564.jpg -------------------------------------------------------------------------------- /image_800/034d6982af4c78bff1e3d667fc1efab9.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/image_800/034d6982af4c78bff1e3d667fc1efab9.jpg -------------------------------------------------------------------------------- /image_800/1a5b4ba74286b8ff9de244e77f030421.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/image_800/1a5b4ba74286b8ff9de244e77f030421.jpg -------------------------------------------------------------------------------- /image_800/336e36b02c6b1543de14be443ee06026.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/image_800/336e36b02c6b1543de14be443ee06026.jpg -------------------------------------------------------------------------------- /image_800/393959f6d14d2a26389c0d707f8f2786.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/image_800/393959f6d14d2a26389c0d707f8f2786.jpg -------------------------------------------------------------------------------- /image_800/46fea3c37a73cb4ae264b33a4d9473c9.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/image_800/46fea3c37a73cb4ae264b33a4d9473c9.jpg -------------------------------------------------------------------------------- /image_800/4bed5f2b0b5d34ef5bf249cf8f309189.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/image_800/4bed5f2b0b5d34ef5bf249cf8f309189.jpg -------------------------------------------------------------------------------- /image_800/597d4589316bc5c1ddfb450b11f6e560.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/image_800/597d4589316bc5c1ddfb450b11f6e560.jpg -------------------------------------------------------------------------------- /image_800/60dc2a05d3c1b23b997b24bce60e2d06.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/image_800/60dc2a05d3c1b23b997b24bce60e2d06.jpg -------------------------------------------------------------------------------- /image_800/9183e5ab7c6298490371086df3d8a720.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/image_800/9183e5ab7c6298490371086df3d8a720.jpg -------------------------------------------------------------------------------- /image_800/b360d495a863f212125376bffb86ebce.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/image_800/b360d495a863f212125376bffb86ebce.jpg -------------------------------------------------------------------------------- /image_800/b8af62d4edc08156ebbee7aa0b3f2ec4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/image_800/b8af62d4edc08156ebbee7aa0b3f2ec4.jpg -------------------------------------------------------------------------------- /image_800/ccf4e758b1b9e015d6861f0d362219f9.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/image_800/ccf4e758b1b9e015d6861f0d362219f9.jpg -------------------------------------------------------------------------------- /image_800/d77af7bb4f128f8ca8514e9f031d9842.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/image_800/d77af7bb4f128f8ca8514e9f031d9842.jpg -------------------------------------------------------------------------------- /image_800/e35c6828dd3cf7d9338f3fb3c63f4963.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/image_800/e35c6828dd3cf7d9338f3fb3c63f4963.jpg -------------------------------------------------------------------------------- /image_800/e8e2b866b2e5e0e52b67d422eb5ea564.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/image_800/e8e2b866b2e5e0e52b67d422eb5ea564.jpg -------------------------------------------------------------------------------- /images/ad.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/images/ad.jpg -------------------------------------------------------------------------------- /images/banner/banner_01.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/images/banner/banner_01.jpg -------------------------------------------------------------------------------- /images/banner/banner_02.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/images/banner/banner_02.jpg -------------------------------------------------------------------------------- /images/banner/banner_sm_01.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/images/banner/banner_sm_01.jpg -------------------------------------------------------------------------------- /images/banner/banner_sm_02.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/images/banner/banner_sm_02.jpg -------------------------------------------------------------------------------- /images/des_big.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/images/des_big.jpg -------------------------------------------------------------------------------- /images/des_sm.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/images/des_sm.jpg -------------------------------------------------------------------------------- /images/des_sm2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/images/des_sm2.jpg -------------------------------------------------------------------------------- /images/iPhone1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/images/iPhone1.jpg -------------------------------------------------------------------------------- /images/icon/aLink_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/images/icon/aLink_bg.png -------------------------------------------------------------------------------- /images/icon/buy_btn.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/images/icon/buy_btn.jpg -------------------------------------------------------------------------------- /images/icon/car.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/images/icon/car.jpg -------------------------------------------------------------------------------- /images/icon/collection.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/images/icon/collection.jpg -------------------------------------------------------------------------------- /images/icon/des_input_bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/images/icon/des_input_bg.jpg -------------------------------------------------------------------------------- /images/icon/des_title.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/images/icon/des_title.jpg -------------------------------------------------------------------------------- /images/icon/des_title_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/images/icon/des_title_icon.png -------------------------------------------------------------------------------- /images/icon/down.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/images/icon/down.jpg -------------------------------------------------------------------------------- /images/icon/down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/images/icon/down.png -------------------------------------------------------------------------------- /images/icon/hg_icon.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/images/icon/hg_icon.jpg -------------------------------------------------------------------------------- /images/icon/hot.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/images/icon/hot.jpg -------------------------------------------------------------------------------- /images/icon/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/images/icon/icon.png -------------------------------------------------------------------------------- /images/icon/icon_cart_prompt.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/images/icon/icon_cart_prompt.jpg -------------------------------------------------------------------------------- /images/icon/login_btn.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/images/icon/login_btn.jpg -------------------------------------------------------------------------------- /images/icon/plus_bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/images/icon/plus_bg.jpg -------------------------------------------------------------------------------- /images/icon/red_link.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/images/icon/red_link.jpg -------------------------------------------------------------------------------- /images/icon/shaoIcon.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/images/icon/shaoIcon.jpg -------------------------------------------------------------------------------- /images/icon/shopIcon.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/images/icon/shopIcon.jpg -------------------------------------------------------------------------------- /images/icon/shop_sj.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/images/icon/shop_sj.jpg -------------------------------------------------------------------------------- /images/icon/sj.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/images/icon/sj.jpg -------------------------------------------------------------------------------- /images/icon/sj_blue.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/images/icon/sj_blue.jpg -------------------------------------------------------------------------------- /images/icon/sj_grey.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/images/icon/sj_grey.gif -------------------------------------------------------------------------------- /images/icon/user_icon.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/images/icon/user_icon.jpg -------------------------------------------------------------------------------- /images/icon/xing.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/images/icon/xing.gif -------------------------------------------------------------------------------- /images/logo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/images/logo.jpg -------------------------------------------------------------------------------- /images/pad.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/images/pad.jpg -------------------------------------------------------------------------------- /images/reg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/images/reg.jpg -------------------------------------------------------------------------------- /images/sh_btn.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/images/sh_btn.jpg -------------------------------------------------------------------------------- /images/shopImg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/images/shopImg.jpg -------------------------------------------------------------------------------- /images/shopping_bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/images/shopping_bg.jpg -------------------------------------------------------------------------------- /images/step.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/images/step.jpg -------------------------------------------------------------------------------- /images/t-shirt.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/images/t-shirt.jpg -------------------------------------------------------------------------------- /images/t-shirt1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/images/t-shirt1.jpg -------------------------------------------------------------------------------- /images/userhead.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/images/userhead.jpg -------------------------------------------------------------------------------- /images/webLogo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/images/webLogo.jpg -------------------------------------------------------------------------------- /images/蚊帐.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/images/蚊帐.jpg -------------------------------------------------------------------------------- /include.php: -------------------------------------------------------------------------------- 1 | alert('{$mes}');"; 4 | echo ""; 5 | } -------------------------------------------------------------------------------- /lib/page.func.php: -------------------------------------------------------------------------------- 1 | = $totalPage) { 21 | $page = $totalPage; 22 | } 23 | $sql = "select * from shop_admin limit {$offset},{$pageSize}"; 24 | // echo $sql; 25 | $rows = fetchAll($sql); 26 | // print_r($rows); 27 | /* foreach ($rows as $row) { 28 | echo "编号:" . $row['id'], "
"; 29 | echo "管理员的名称:" . $row['username'], "
"; 30 | } */ 31 | //echo showPage($page, $totalPage); */ 32 | 33 | function showPage($page, $totalPage, $where = null, $sep = " ") 34 | { 35 | $where = ($where == null) ? null : "&" . $where; 36 | $url = $_SERVER['PHP_SELF']; 37 | $index = ($page == 1) ? "首页" : "首页"; 38 | $last = ($page == $totalPage) ? "尾页" : "尾页"; 39 | $prev = ($page == 1) ? "上一页" : "上一页"; 40 | $next = ($page == $totalPage) ? "下一页" : "下一页"; 41 | $str = "总共{$totalPage}页/当前是第{$page}页"; 42 | $p = ""; 43 | for ($i = 1; $i <= $totalPage; $i ++) { 44 | // 当前页无连接 45 | if ($page == $i) { 46 | $p .= "[{$i}]"; 47 | } else { 48 | $p .= "[{$i}]"; 49 | } 50 | } 51 | $pageStr = $str . $sep . $index . $sep . $last . $sep . $prev . $sep . $next . $sep . $p; 52 | return $pageStr; 53 | } -------------------------------------------------------------------------------- /lib/string.func.php: -------------------------------------------------------------------------------- 1 | strlen($chars)) { 17 | exit("字符串长度不够"); 18 | } 19 | $chars = str_shuffle($chars); 20 | return substr($chars, 0, $length); 21 | } 22 | 23 | /** 24 | * 生成唯一字符串 25 | * @return string 26 | */ 27 | function getUniName(){ 28 | return md5(uniqid(microtime(true),true)); 29 | } 30 | 31 | /** 32 | * 得到文件扩展名 33 | * @param string $filename 34 | */ 35 | function getExt($filename){ 36 | $temp=explode(".", $filename); 37 | return strtolower(end($temp)); 38 | } 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /login.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 登陆 6 | 7 | 8 | 12 | 13 | 14 | 15 |
16 | 24 |
25 | 26 |
27 | 55 | 56 |
57 | 58 |
59 | 64 | 65 | 66 | -------------------------------------------------------------------------------- /plugins/kindeditor/php/demo.php: -------------------------------------------------------------------------------- 1 | 11 | 12 | 13 | 14 | 15 | KindEditor PHP 16 | 17 | 18 | 19 | 20 | 21 | 43 | 44 | 45 | 46 |
47 | 48 |
49 | (提交快捷键: Ctrl + Enter) 50 |
51 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /plugins/kindeditor/php/upload_json.php: -------------------------------------------------------------------------------- 1 | array('gif', 'jpg', 'jpeg', 'png', 'bmp'), 22 | 'flash' => array('swf', 'flv'), 23 | 'media' => array('swf', 'flv', 'mp3', 'wav', 'wma', 'wmv', 'mid', 'avi', 'mpg', 'asf', 'rm', 'rmvb'), 24 | 'file' => array('doc', 'docx', 'xls', 'xlsx', 'ppt', 'htm', 'html', 'txt', 'zip', 'rar', 'gz', 'bz2'), 25 | ); 26 | //最大文件大小 27 | $max_size = 1000000; 28 | 29 | $save_path = realpath($save_path) . '/'; 30 | 31 | //PHP上传失败 32 | if (!empty($_FILES['imgFile']['error'])) { 33 | switch($_FILES['imgFile']['error']){ 34 | case '1': 35 | $error = '超过php.ini允许的大小。'; 36 | break; 37 | case '2': 38 | $error = '超过表单允许的大小。'; 39 | break; 40 | case '3': 41 | $error = '图片只有部分被上传。'; 42 | break; 43 | case '4': 44 | $error = '请选择图片。'; 45 | break; 46 | case '6': 47 | $error = '找不到临时目录。'; 48 | break; 49 | case '7': 50 | $error = '写文件到硬盘出错。'; 51 | break; 52 | case '8': 53 | $error = 'File upload stopped by extension。'; 54 | break; 55 | case '999': 56 | default: 57 | $error = '未知错误。'; 58 | } 59 | alert($error); 60 | } 61 | 62 | //有上传文件时 63 | if (empty($_FILES) === false) { 64 | //原文件名 65 | $file_name = $_FILES['imgFile']['name']; 66 | //服务器上临时文件名 67 | $tmp_name = $_FILES['imgFile']['tmp_name']; 68 | //文件大小 69 | $file_size = $_FILES['imgFile']['size']; 70 | //检查文件名 71 | if (!$file_name) { 72 | alert("请选择文件。"); 73 | } 74 | //检查目录 75 | if (@is_dir($save_path) === false) { 76 | alert("上传目录不存在。"); 77 | } 78 | //检查目录写权限 79 | if (@is_writable($save_path) === false) { 80 | alert("上传目录没有写权限。"); 81 | } 82 | //检查是否已上传 83 | if (@is_uploaded_file($tmp_name) === false) { 84 | alert("上传失败。"); 85 | } 86 | //检查文件大小 87 | if ($file_size > $max_size) { 88 | alert("上传文件大小超过限制。"); 89 | } 90 | //检查目录名 91 | $dir_name = empty($_GET['dir']) ? 'image' : trim($_GET['dir']); 92 | if (empty($ext_arr[$dir_name])) { 93 | alert("目录名不正确。"); 94 | } 95 | //获得文件扩展名 96 | $temp_arr = explode(".", $file_name); 97 | $file_ext = array_pop($temp_arr); 98 | $file_ext = trim($file_ext); 99 | $file_ext = strtolower($file_ext); 100 | //检查扩展名 101 | if (in_array($file_ext, $ext_arr[$dir_name]) === false) { 102 | alert("上传文件扩展名是不允许的扩展名。\n只允许" . implode(",", $ext_arr[$dir_name]) . "格式。"); 103 | } 104 | //创建文件夹 105 | if ($dir_name !== '') { 106 | $save_path .= $dir_name . "/"; 107 | $save_url .= $dir_name . "/"; 108 | if (!file_exists($save_path)) { 109 | mkdir($save_path); 110 | } 111 | } 112 | $ymd = date("Ymd"); 113 | $save_path .= $ymd . "/"; 114 | $save_url .= $ymd . "/"; 115 | if (!file_exists($save_path)) { 116 | mkdir($save_path); 117 | } 118 | //新文件名 119 | $new_file_name = date("YmdHis") . '_' . rand(10000, 99999) . '.' . $file_ext; 120 | //移动文件 121 | $file_path = $save_path . $new_file_name; 122 | if (move_uploaded_file($tmp_name, $file_path) === false) { 123 | alert("上传文件失败。"); 124 | } 125 | @chmod($file_path, 0644); 126 | $file_url = $save_url . $new_file_name; 127 | 128 | header('Content-type: text/html; charset=UTF-8'); 129 | $json = new Services_JSON(); 130 | echo $json->encode(array('error' => 0, 'url' => $file_url)); 131 | exit; 132 | } 133 | 134 | function alert($msg) { 135 | header('Content-type: text/html; charset=UTF-8'); 136 | $json = new Services_JSON(); 137 | echo $json->encode(array('error' => 1, 'message' => $msg)); 138 | exit; 139 | } 140 | -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/anchor/anchor.js: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * KindEditor - WYSIWYG HTML Editor for Internet 3 | * Copyright (C) 2006-2011 kindsoft.net 4 | * 5 | * @author Roddy 6 | * @site http://www.kindsoft.net/ 7 | * @licence http://www.kindsoft.net/license.php 8 | *******************************************************************************/ 9 | 10 | KindEditor.plugin('anchor', function(K) { 11 | var self = this, name = 'anchor', lang = self.lang(name + '.'); 12 | self.plugin.anchor = { 13 | edit : function() { 14 | var html = ['
', 15 | '
', 16 | '', 17 | '', 18 | '
', 19 | '
'].join(''); 20 | var dialog = self.createDialog({ 21 | name : name, 22 | width : 300, 23 | title : self.lang(name), 24 | body : html, 25 | yesBtn : { 26 | name : self.lang('yes'), 27 | click : function(e) { 28 | self.insertHtml('').hideDialog().focus(); 29 | } 30 | } 31 | }); 32 | var div = dialog.div, 33 | nameBox = K('input[name="name"]', div); 34 | var img = self.plugin.getSelectedAnchor(); 35 | if (img) { 36 | nameBox.val(unescape(img.attr('data-ke-name'))); 37 | } 38 | nameBox[0].focus(); 39 | nameBox[0].select(); 40 | }, 41 | 'delete' : function() { 42 | self.plugin.getSelectedAnchor().remove(); 43 | } 44 | }; 45 | self.clickToolbar(name, self.plugin.anchor.edit); 46 | }); 47 | -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/autoheight/autoheight.js: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * KindEditor - WYSIWYG HTML Editor for Internet 3 | * Copyright (C) 2006-2011 kindsoft.net 4 | * 5 | * @author Roddy 6 | * @site http://www.kindsoft.net/ 7 | * @licence http://www.kindsoft.net/license.php 8 | *******************************************************************************/ 9 | 10 | KindEditor.plugin('autoheight', function(K) { 11 | var self = this; 12 | 13 | if (!self.autoHeightMode) { 14 | return; 15 | } 16 | 17 | var minHeight; 18 | 19 | function hideScroll() { 20 | var edit = self.edit; 21 | var body = edit.doc.body; 22 | edit.iframe[0].scroll = 'no'; 23 | body.style.overflowY = 'hidden'; 24 | } 25 | 26 | function resetHeight() { 27 | var edit = self.edit; 28 | var body = edit.doc.body; 29 | edit.iframe.height(minHeight); 30 | self.resize(null, Math.max((K.IE ? body.scrollHeight : body.offsetHeight) + 76, minHeight)); 31 | } 32 | 33 | function init() { 34 | minHeight = K.removeUnit(self.height); 35 | 36 | self.edit.afterChange(resetHeight); 37 | hideScroll(); 38 | resetHeight(); 39 | } 40 | 41 | if (self.isCreated) { 42 | init(); 43 | } else { 44 | self.afterCreate(init); 45 | } 46 | }); 47 | 48 | /* 49 | * 如何实现真正的自动高度? 50 | * 修改编辑器高度之后,再次获取body内容高度时,最小值只会是当前iframe的设置高度,这样就导致高度只增不减。 51 | * 所以每次获取body内容高度之前,先将iframe的高度重置为最小高度,这样就能获取body的实际高度。 52 | * 由此就实现了真正的自动高度 53 | * 测试:chrome、firefox、IE9、IE8 54 | * */ 55 | -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/baidumap/baidumap.js: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * KindEditor - WYSIWYG HTML Editor for Internet 3 | * Copyright (C) 2006-2011 kindsoft.net 4 | * 5 | * @author Roddy 6 | * @site http://www.kindsoft.net/ 7 | * @licence http://www.kindsoft.net/license.php 8 | *******************************************************************************/ 9 | 10 | // Baidu Maps: http://dev.baidu.com/wiki/map/index.php?title=%E9%A6%96%E9%A1%B5 11 | 12 | KindEditor.plugin('baidumap', function(K) { 13 | var self = this, name = 'baidumap', lang = self.lang(name + '.'); 14 | var mapWidth = K.undef(self.mapWidth, 558); 15 | var mapHeight = K.undef(self.mapHeight, 360); 16 | self.clickToolbar(name, function() { 17 | var html = ['
', 18 | '
', 19 | // left start 20 | '
', 21 | lang.address + ' ', 22 | '', 23 | '', 24 | '', 25 | '
', 26 | // right start 27 | '
', 28 | ' ', 29 | '
', 30 | '
', 31 | '
', 32 | '
', 33 | '
'].join(''); 34 | var dialog = self.createDialog({ 35 | name : name, 36 | width : mapWidth + 42, 37 | title : self.lang(name), 38 | body : html, 39 | yesBtn : { 40 | name : self.lang('yes'), 41 | click : function(e) { 42 | var map = win.map; 43 | var centerObj = map.getCenter(); 44 | var center = centerObj.lng + ',' + centerObj.lat; 45 | var zoom = map.getZoom(); 46 | var url = [checkbox[0].checked ? self.pluginsPath + 'baidumap/index.html' : 'http://api.map.baidu.com/staticimage', 47 | '?center=' + encodeURIComponent(center), 48 | '&zoom=' + encodeURIComponent(zoom), 49 | '&width=' + mapWidth, 50 | '&height=' + mapHeight, 51 | '&markers=' + encodeURIComponent(center), 52 | '&markerStyles=' + encodeURIComponent('l,A')].join(''); 53 | if (checkbox[0].checked) { 54 | self.insertHtml(''); 55 | } else { 56 | self.exec('insertimage', url); 57 | } 58 | self.hideDialog().focus(); 59 | } 60 | }, 61 | beforeRemove : function() { 62 | searchBtn.remove(); 63 | if (doc) { 64 | doc.write(''); 65 | } 66 | iframe.remove(); 67 | } 68 | }); 69 | var div = dialog.div, 70 | addressBox = K('[name="address"]', div), 71 | searchBtn = K('[name="searchBtn"]', div), 72 | checkbox = K('[name="insertDynamicMap"]', dialog.div), 73 | win, doc; 74 | var iframe = K(''); 75 | function ready() { 76 | win = iframe[0].contentWindow; 77 | doc = K.iframeDoc(iframe); 78 | } 79 | iframe.bind('load', function() { 80 | iframe.unbind('load'); 81 | if (K.IE) { 82 | ready(); 83 | } else { 84 | setTimeout(ready, 0); 85 | } 86 | }); 87 | K('.ke-map', div).replaceWith(iframe); 88 | // search map 89 | searchBtn.click(function() { 90 | win.search(addressBox.val()); 91 | }); 92 | }); 93 | }); 94 | -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/baidumap/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 百度地图API自定义地图 8 | 9 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 83 | -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/baidumap/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Baidu Maps 6 | 10 | 11 | 39 | 40 | 41 |
42 | 43 | 44 | -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/clearhtml/clearhtml.js: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * KindEditor - WYSIWYG HTML Editor for Internet 3 | * Copyright (C) 2006-2011 kindsoft.net 4 | * 5 | * @author Roddy 6 | * @site http://www.kindsoft.net/ 7 | * @licence http://www.kindsoft.net/license.php 8 | *******************************************************************************/ 9 | 10 | KindEditor.plugin('clearhtml', function(K) { 11 | var self = this, name = 'clearhtml'; 12 | self.clickToolbar(name, function() { 13 | self.focus(); 14 | var html = self.html(); 15 | html = html.replace(/(]*>)([\s\S]*?)(<\/script>)/ig, ''); 16 | html = html.replace(/(]*>)([\s\S]*?)(<\/style>)/ig, ''); 17 | html = K.formatHtml(html, { 18 | a : ['href', 'target'], 19 | embed : ['src', 'width', 'height', 'type', 'loop', 'autostart', 'quality', '.width', '.height', 'align', 'allowscriptaccess'], 20 | img : ['src', 'width', 'height', 'border', 'alt', 'title', '.width', '.height'], 21 | table : ['border'], 22 | 'td,th' : ['rowspan', 'colspan'], 23 | 'div,hr,br,tbody,tr,p,ol,ul,li,blockquote,h1,h2,h3,h4,h5,h6' : [] 24 | }); 25 | self.html(html); 26 | self.cmd.selection(true); 27 | self.addBookmark(); 28 | }); 29 | }); 30 | -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/code/code.js: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * KindEditor - WYSIWYG HTML Editor for Internet 3 | * Copyright (C) 2006-2011 kindsoft.net 4 | * 5 | * @author Roddy 6 | * @site http://www.kindsoft.net/ 7 | * @licence http://www.kindsoft.net/license.php 8 | *******************************************************************************/ 9 | 10 | // google code prettify: http://google-code-prettify.googlecode.com/ 11 | // http://google-code-prettify.googlecode.com/ 12 | 13 | KindEditor.plugin('code', function(K) { 14 | var self = this, name = 'code'; 15 | self.clickToolbar(name, function() { 16 | var lang = self.lang(name + '.'), 17 | html = ['
', 18 | '
', 19 | '', 35 | '
', 36 | '', 37 | '
'].join(''), 38 | dialog = self.createDialog({ 39 | name : name, 40 | width : 450, 41 | title : self.lang(name), 42 | body : html, 43 | yesBtn : { 44 | name : self.lang('yes'), 45 | click : function(e) { 46 | var type = K('.ke-code-type', dialog.div).val(), 47 | code = textarea.val(), 48 | cls = type === '' ? '' : ' lang-' + type, 49 | html = '
\n' + K.escape(code) + '
'; 50 | if (K.trim(code) === '') { 51 | alert(lang.pleaseInput); 52 | textarea[0].focus(); 53 | return; 54 | } 55 | self.insertHtml(html).hideDialog().focus(); 56 | } 57 | } 58 | }), 59 | textarea = K('textarea', dialog.div); 60 | textarea[0].focus(); 61 | }); 62 | }); 63 | -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/code/prettify.css: -------------------------------------------------------------------------------- 1 | .pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.pun,.opn,.clo{color:#660}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun,.opn,.clo{color:#440}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}}pre.prettyprint{padding:2px;border:1px solid #888}ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee} 2 | 3 | pre.prettyprint { 4 | border: 0; 5 | border-left: 3px solid rgb(204, 204, 204); 6 | margin-left: 2em; 7 | padding: 0.5em; 8 | font-size: 110%; 9 | display: block; 10 | font-family: "Consolas", "Monaco", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace; 11 | margin: 1em 0px; 12 | white-space: pre; 13 | } 14 | -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/0.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/0.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/1.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/10.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/10.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/100.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/100.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/101.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/101.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/102.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/102.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/103.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/103.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/104.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/104.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/105.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/105.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/106.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/106.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/107.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/107.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/108.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/108.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/109.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/109.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/11.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/11.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/110.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/110.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/111.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/111.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/112.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/112.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/113.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/113.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/114.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/114.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/115.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/115.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/116.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/116.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/117.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/117.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/118.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/118.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/119.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/119.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/12.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/12.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/120.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/120.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/121.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/121.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/122.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/122.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/123.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/123.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/124.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/124.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/125.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/125.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/126.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/126.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/127.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/127.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/128.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/128.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/129.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/129.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/13.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/13.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/130.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/130.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/131.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/131.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/132.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/132.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/133.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/133.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/134.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/134.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/14.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/14.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/15.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/15.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/16.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/16.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/17.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/17.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/18.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/18.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/19.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/19.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/2.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/20.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/20.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/21.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/21.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/22.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/22.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/23.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/23.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/24.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/24.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/25.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/25.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/26.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/26.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/27.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/27.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/28.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/28.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/29.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/29.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/3.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/3.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/30.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/30.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/31.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/31.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/32.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/32.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/33.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/33.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/34.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/34.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/35.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/35.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/36.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/36.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/37.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/37.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/38.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/38.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/39.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/39.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/4.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/4.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/40.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/40.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/41.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/41.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/42.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/42.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/43.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/43.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/44.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/44.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/45.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/45.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/46.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/46.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/47.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/47.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/48.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/48.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/49.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/49.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/5.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/5.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/50.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/50.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/51.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/51.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/52.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/52.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/53.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/53.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/54.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/54.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/55.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/55.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/56.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/56.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/57.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/57.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/58.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/58.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/59.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/59.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/6.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/6.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/60.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/60.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/61.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/61.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/62.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/62.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/63.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/63.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/64.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/64.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/65.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/65.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/66.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/66.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/67.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/67.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/68.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/68.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/69.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/69.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/7.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/7.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/70.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/70.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/71.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/71.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/72.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/72.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/73.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/73.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/74.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/74.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/75.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/75.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/76.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/76.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/77.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/77.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/78.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/78.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/79.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/79.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/8.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/8.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/80.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/80.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/81.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/81.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/82.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/82.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/83.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/83.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/84.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/84.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/85.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/85.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/86.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/86.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/87.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/87.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/88.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/88.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/89.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/89.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/9.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/9.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/90.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/90.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/91.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/91.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/92.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/92.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/93.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/93.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/94.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/94.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/95.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/95.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/96.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/96.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/97.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/97.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/98.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/98.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/99.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/99.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/emoticons/images/static.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/emoticons/images/static.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/filemanager/images/file-16.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/filemanager/images/file-16.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/filemanager/images/file-64.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/filemanager/images/file-64.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/filemanager/images/folder-16.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/filemanager/images/folder-16.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/filemanager/images/folder-64.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/filemanager/images/folder-64.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/filemanager/images/go-up.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/filemanager/images/go-up.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/image/images/align_left.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/image/images/align_left.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/image/images/align_right.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/image/images/align_right.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/image/images/align_top.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/image/images/align_top.gif -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/image/images/refresh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/image/images/refresh.png -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/lineheight/lineheight.js: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * KindEditor - WYSIWYG HTML Editor for Internet 3 | * Copyright (C) 2006-2011 kindsoft.net 4 | * 5 | * @author Roddy 6 | * @site http://www.kindsoft.net/ 7 | * @licence http://www.kindsoft.net/license.php 8 | *******************************************************************************/ 9 | 10 | KindEditor.plugin('lineheight', function(K) { 11 | var self = this, name = 'lineheight', lang = self.lang(name + '.'); 12 | self.clickToolbar(name, function() { 13 | var curVal = '', commonNode = self.cmd.commonNode({'*' : '.line-height'}); 14 | if (commonNode) { 15 | curVal = commonNode.css('line-height'); 16 | } 17 | var menu = self.createMenu({ 18 | name : name, 19 | width : 150 20 | }); 21 | K.each(lang.lineHeight, function(i, row) { 22 | K.each(row, function(key, val) { 23 | menu.addItem({ 24 | title : val, 25 | checked : curVal === key, 26 | click : function() { 27 | self.cmd.toggle('', { 28 | span : '.line-height=' + key 29 | }); 30 | self.updateState(); 31 | self.addBookmark(); 32 | self.hideMenu(); 33 | } 34 | }); 35 | }); 36 | }); 37 | }); 38 | }); 39 | -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/link/link.js: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * KindEditor - WYSIWYG HTML Editor for Internet 3 | * Copyright (C) 2006-2011 kindsoft.net 4 | * 5 | * @author Roddy 6 | * @site http://www.kindsoft.net/ 7 | * @licence http://www.kindsoft.net/license.php 8 | *******************************************************************************/ 9 | 10 | KindEditor.plugin('link', function(K) { 11 | var self = this, name = 'link'; 12 | self.plugin.link = { 13 | edit : function() { 14 | var lang = self.lang(name + '.'), 15 | html = '
' + 16 | //url 17 | '
' + 18 | '' + 19 | '
' + 20 | //type 21 | '
' + 22 | '' + 23 | '' + 24 | '
' + 25 | '
', 26 | dialog = self.createDialog({ 27 | name : name, 28 | width : 450, 29 | title : self.lang(name), 30 | body : html, 31 | yesBtn : { 32 | name : self.lang('yes'), 33 | click : function(e) { 34 | var url = K.trim(urlBox.val()); 35 | if (url == 'http://' || K.invalidUrl(url)) { 36 | alert(self.lang('invalidUrl')); 37 | urlBox[0].focus(); 38 | return; 39 | } 40 | self.exec('createlink', url, typeBox.val()).hideDialog().focus(); 41 | } 42 | } 43 | }), 44 | div = dialog.div, 45 | urlBox = K('input[name="url"]', div), 46 | typeBox = K('select[name="type"]', div); 47 | urlBox.val('http://'); 48 | typeBox[0].options[0] = new Option(lang.newWindow, '_blank'); 49 | typeBox[0].options[1] = new Option(lang.selfWindow, ''); 50 | self.cmd.selection(); 51 | var a = self.plugin.getSelectedLink(); 52 | if (a) { 53 | self.cmd.range.selectNode(a[0]); 54 | self.cmd.select(); 55 | urlBox.val(a.attr('data-ke-src')); 56 | typeBox.val(a.attr('target')); 57 | } 58 | urlBox[0].focus(); 59 | urlBox[0].select(); 60 | }, 61 | 'delete' : function() { 62 | self.exec('unlink', null); 63 | } 64 | }; 65 | self.clickToolbar(name, self.plugin.link.edit); 66 | }); 67 | -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/map/map.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 10 | 11 | 53 | 54 | 55 |
56 | 57 | -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/multiimage/images/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/multiimage/images/image.png -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/multiimage/images/select-files-en.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/multiimage/images/select-files-en.png -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/multiimage/images/select-files-zh_CN.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/multiimage/images/select-files-zh_CN.png -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/multiimage/images/swfupload.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/plugins/multiimage/images/swfupload.swf -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/pagebreak/pagebreak.js: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * KindEditor - WYSIWYG HTML Editor for Internet 3 | * Copyright (C) 2006-2011 kindsoft.net 4 | * 5 | * @author Roddy 6 | * @site http://www.kindsoft.net/ 7 | * @licence http://www.kindsoft.net/license.php 8 | *******************************************************************************/ 9 | 10 | KindEditor.plugin('pagebreak', function(K) { 11 | var self = this; 12 | var name = 'pagebreak'; 13 | var pagebreakHtml = K.undef(self.pagebreakHtml, '
'); 14 | 15 | self.clickToolbar(name, function() { 16 | var cmd = self.cmd, range = cmd.range; 17 | self.focus(); 18 | var tail = self.newlineTag == 'br' || K.WEBKIT ? '' : ''; 19 | self.insertHtml(pagebreakHtml + tail); 20 | if (tail !== '') { 21 | var p = K('#__kindeditor_tail_tag__', self.edit.doc); 22 | range.selectNodeContents(p[0]); 23 | p.removeAttr('id'); 24 | cmd.select(); 25 | } 26 | }); 27 | }); 28 | -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/plainpaste/plainpaste.js: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * KindEditor - WYSIWYG HTML Editor for Internet 3 | * Copyright (C) 2006-2011 kindsoft.net 4 | * 5 | * @author Roddy 6 | * @site http://www.kindsoft.net/ 7 | * @licence http://www.kindsoft.net/license.php 8 | *******************************************************************************/ 9 | 10 | KindEditor.plugin('plainpaste', function(K) { 11 | var self = this, name = 'plainpaste'; 12 | self.clickToolbar(name, function() { 13 | var lang = self.lang(name + '.'), 14 | html = '
' + 15 | '
' + lang.comment + '
' + 16 | '' + 17 | '
', 18 | dialog = self.createDialog({ 19 | name : name, 20 | width : 450, 21 | title : self.lang(name), 22 | body : html, 23 | yesBtn : { 24 | name : self.lang('yes'), 25 | click : function(e) { 26 | var html = textarea.val(); 27 | html = K.escape(html); 28 | html = html.replace(/ {2}/g, '  '); 29 | if (self.newlineTag == 'p') { 30 | html = html.replace(/^/, '

').replace(/$/, '

').replace(/\n/g, '

'); 31 | } else { 32 | html = html.replace(/\n/g, '
$&'); 33 | } 34 | self.insertHtml(html).hideDialog().focus(); 35 | } 36 | } 37 | }), 38 | textarea = K('textarea', dialog.div); 39 | textarea[0].focus(); 40 | }); 41 | }); 42 | -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/preview/preview.js: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * KindEditor - WYSIWYG HTML Editor for Internet 3 | * Copyright (C) 2006-2011 kindsoft.net 4 | * 5 | * @author Roddy 6 | * @site http://www.kindsoft.net/ 7 | * @licence http://www.kindsoft.net/license.php 8 | *******************************************************************************/ 9 | 10 | KindEditor.plugin('preview', function(K) { 11 | var self = this, name = 'preview', undefined; 12 | self.clickToolbar(name, function() { 13 | var lang = self.lang(name + '.'), 14 | html = '

' + 15 | '' + 16 | '
', 17 | dialog = self.createDialog({ 18 | name : name, 19 | width : 750, 20 | title : self.lang(name), 21 | body : html 22 | }), 23 | iframe = K('iframe', dialog.div), 24 | doc = K.iframeDoc(iframe); 25 | doc.open(); 26 | doc.write(self.fullHtml()); 27 | doc.close(); 28 | K(doc.body).css('background-color', '#FFF'); 29 | iframe[0].contentWindow.focus(); 30 | }); 31 | }); 32 | -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/quickformat/quickformat.js: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * KindEditor - WYSIWYG HTML Editor for Internet 3 | * Copyright (C) 2006-2011 kindsoft.net 4 | * 5 | * @author Roddy 6 | * @site http://www.kindsoft.net/ 7 | * @licence http://www.kindsoft.net/license.php 8 | *******************************************************************************/ 9 | 10 | KindEditor.plugin('quickformat', function(K) { 11 | var self = this, name = 'quickformat', 12 | blockMap = K.toMap('blockquote,center,div,h1,h2,h3,h4,h5,h6,p'); 13 | function getFirstChild(knode) { 14 | var child = knode.first(); 15 | while (child && child.first()) { 16 | child = child.first(); 17 | } 18 | return child; 19 | } 20 | self.clickToolbar(name, function() { 21 | self.focus(); 22 | var doc = self.edit.doc, 23 | range = self.cmd.range, 24 | child = K(doc.body).first(), next, 25 | nodeList = [], subList = [], 26 | bookmark = range.createBookmark(true); 27 | while(child) { 28 | next = child.next(); 29 | var firstChild = getFirstChild(child); 30 | if (!firstChild || firstChild.name != 'img') { 31 | if (blockMap[child.name]) { 32 | child.html(child.html().replace(/^(\s| | )+/ig, '')); 33 | child.css('text-indent', '2em'); 34 | } else { 35 | subList.push(child); 36 | } 37 | if (!next || (blockMap[next.name] || blockMap[child.name] && !blockMap[next.name])) { 38 | if (subList.length > 0) { 39 | nodeList.push(subList); 40 | } 41 | subList = []; 42 | } 43 | } 44 | child = next; 45 | } 46 | K.each(nodeList, function(i, subList) { 47 | var wrapper = K('

', doc); 48 | subList[0].before(wrapper); 49 | K.each(subList, function(i, knode) { 50 | wrapper.append(knode); 51 | }); 52 | }); 53 | range.moveToBookmark(bookmark); 54 | self.addBookmark(); 55 | }); 56 | }); 57 | 58 | /** 59 | -------------------------- 60 | abcd
61 | 1234
62 | 63 | to 64 | 65 |

66 | abcd
67 | 1234
68 |

69 | 70 | -------------------------- 71 | 72 |   abcd1233 73 |

1234

74 | 75 | to 76 | 77 |

abcd1233

78 |

1234

79 | 80 | -------------------------- 81 | */ -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/template/html/1.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |

8 | 在此处输入标题 9 |

10 |

11 | 在此处输入内容 12 |

13 | 14 | -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/template/html/2.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |

8 | 标题 9 |

10 | 11 | 12 | 13 | 16 | 19 | 20 | 21 | 24 | 27 | 28 | 29 | 32 | 35 | 36 | 37 |
14 |

标题1

15 |
17 |

标题1

18 |
22 | 内容1 23 | 25 | 内容2 26 |
30 | 内容3 31 | 33 | 内容4 34 |
38 |

39 | 表格说明 40 |

41 | 42 | -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/template/html/3.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |

8 | 在此处输入内容 9 |

10 |
    11 |
  1. 12 | 描述1 13 |
  2. 14 |
  3. 15 | 描述2 16 |
  4. 17 |
  5. 18 | 描述3 19 |
  6. 20 |
21 |

22 | 在此处输入内容 23 |

24 |
    25 |
  • 26 | 描述1 27 |
  • 28 |
  • 29 | 描述2 30 |
  • 31 |
  • 32 | 描述3 33 |
  • 34 |
35 | 36 | -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/template/template.js: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * KindEditor - WYSIWYG HTML Editor for Internet 3 | * Copyright (C) 2006-2011 kindsoft.net 4 | * 5 | * @author Roddy 6 | * @site http://www.kindsoft.net/ 7 | * @licence http://www.kindsoft.net/license.php 8 | *******************************************************************************/ 9 | 10 | KindEditor.plugin('template', function(K) { 11 | var self = this, name = 'template', lang = self.lang(name + '.'), 12 | htmlPath = self.pluginsPath + name + '/html/'; 13 | function getFilePath(fileName) { 14 | return htmlPath + fileName + '?ver=' + encodeURIComponent(K.DEBUG ? K.TIME : K.VERSION); 15 | } 16 | self.clickToolbar(name, function() { 17 | var lang = self.lang(name + '.'), 18 | arr = ['
', 19 | '
', 20 | // left start 21 | '
', 22 | lang. selectTemplate + '
', 28 | // right start 29 | '
', 30 | ' ', 31 | '
', 32 | '
', 33 | '
', 34 | '', 35 | '
'].join(''); 36 | var dialog = self.createDialog({ 37 | name : name, 38 | width : 500, 39 | title : self.lang(name), 40 | body : html, 41 | yesBtn : { 42 | name : self.lang('yes'), 43 | click : function(e) { 44 | var doc = K.iframeDoc(iframe); 45 | self[checkbox[0].checked ? 'html' : 'insertHtml'](doc.body.innerHTML).hideDialog().focus(); 46 | } 47 | } 48 | }); 49 | var selectBox = K('select', dialog.div), 50 | checkbox = K('[name="replaceFlag"]', dialog.div), 51 | iframe = K('iframe', dialog.div); 52 | checkbox[0].checked = true; 53 | iframe.attr('src', getFilePath(selectBox.val())); 54 | selectBox.change(function() { 55 | iframe.attr('src', getFilePath(this.value)); 56 | }); 57 | }); 58 | }); 59 | -------------------------------------------------------------------------------- /plugins/kindeditor/plugins/wordpaste/wordpaste.js: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * KindEditor - WYSIWYG HTML Editor for Internet 3 | * Copyright (C) 2006-2011 kindsoft.net 4 | * 5 | * @author Roddy 6 | * @site http://www.kindsoft.net/ 7 | * @licence http://www.kindsoft.net/license.php 8 | *******************************************************************************/ 9 | 10 | KindEditor.plugin('wordpaste', function(K) { 11 | var self = this, name = 'wordpaste'; 12 | self.clickToolbar(name, function() { 13 | var lang = self.lang(name + '.'), 14 | html = '
' + 15 | '
' + lang.comment + '
' + 16 | '' + 17 | '
', 18 | dialog = self.createDialog({ 19 | name : name, 20 | width : 450, 21 | title : self.lang(name), 22 | body : html, 23 | yesBtn : { 24 | name : self.lang('yes'), 25 | click : function(e) { 26 | var str = doc.body.innerHTML; 27 | str = K.clearMsWord(str, self.filterMode ? self.htmlTags : K.options.htmlTags); 28 | self.insertHtml(str).hideDialog().focus(); 29 | } 30 | } 31 | }), 32 | div = dialog.div, 33 | iframe = K('iframe', div), 34 | doc = K.iframeDoc(iframe); 35 | if (!K.IE) { 36 | doc.designMode = 'on'; 37 | } 38 | doc.open(); 39 | doc.write('WordPaste'); 40 | doc.write(''); 41 | if (!K.IE) { 42 | doc.write('
'); 43 | } 44 | doc.write(''); 45 | doc.close(); 46 | if (K.IE) { 47 | doc.body.contentEditable = 'true'; 48 | } 49 | iframe[0].contentWindow.focus(); 50 | }); 51 | }); 52 | -------------------------------------------------------------------------------- /plugins/kindeditor/themes/common/anchor.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/themes/common/anchor.gif -------------------------------------------------------------------------------- /plugins/kindeditor/themes/common/blank.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/themes/common/blank.gif -------------------------------------------------------------------------------- /plugins/kindeditor/themes/common/flash.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/themes/common/flash.gif -------------------------------------------------------------------------------- /plugins/kindeditor/themes/common/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/themes/common/loading.gif -------------------------------------------------------------------------------- /plugins/kindeditor/themes/common/media.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/themes/common/media.gif -------------------------------------------------------------------------------- /plugins/kindeditor/themes/common/rm.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/themes/common/rm.gif -------------------------------------------------------------------------------- /plugins/kindeditor/themes/default/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/themes/default/background.png -------------------------------------------------------------------------------- /plugins/kindeditor/themes/default/default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/themes/default/default.png -------------------------------------------------------------------------------- /plugins/kindeditor/themes/qq/editor.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/plugins/kindeditor/themes/qq/editor.gif -------------------------------------------------------------------------------- /plugins/kindeditor/themes/qq/qq.css: -------------------------------------------------------------------------------- 1 | /* container */ 2 | .ke-container-qq { 3 | display: block; 4 | border: 1px solid #c3c3c3; 5 | background-color: #FFF; 6 | overflow: hidden; 7 | margin: 0; 8 | padding: 0; 9 | } 10 | /* toolbar */ 11 | .ke-container-qq .ke-toolbar { 12 | border-bottom: 1px solid #c3c3c3; 13 | background-color: #FFFFFF; 14 | padding: 2px 5px; 15 | text-align: left; 16 | overflow: hidden; 17 | zoom: 1; 18 | } 19 | .ke-toolbar-icon-url { 20 | background-image: url(editor.gif); 21 | width:18px; 22 | *xwidth:20px; 23 | height:18px; 24 | *xheight:20px; 25 | } 26 | .ke-icon-checked{ 27 | background-image: url(../default/default.png); 28 | width:16px; 29 | height:16px; 30 | } 31 | .ke-container-qq .ke-icon-bold{ 32 | background-position: 4px 1px; 33 | } 34 | .ke-container-qq .ke-icon-italic{ 35 | background-position: -27px 1px; 36 | } 37 | .ke-container-qq .ke-icon-italic{ 38 | background-position: -28px 1px; 39 | } 40 | .ke-container-qq .ke-icon-underline{ 41 | background-position: -60px 1px; 42 | } 43 | .ke-container-qq .ke-icon-fontname{ 44 | background-position: -95px 1px; 45 | } 46 | .ke-container-qq .ke-icon-fontsize{ 47 | background-position: -128px 1px; 48 | } 49 | .ke-container-qq .ke-icon-forecolor{ 50 | background-position: -159px 1px; 51 | } 52 | .ke-container-qq .ke-icon-hilitecolor{ 53 | background-position: -190px 1px; 54 | } 55 | .ke-container-qq .ke-icon-plug-align{ 56 | background-position: -223px 1px; 57 | } 58 | .plug-align-justifyleft{ 59 | background-position: -350px 1px; 60 | } 61 | .plug-align-justifycenter{ 62 | background-position: -382px 1px; 63 | } 64 | .plug-align-justifyright{ 65 | background-position: -414px 1px; 66 | } 67 | .plug-order-insertorderedlist{ 68 | background-position: -446px 1px; 69 | } 70 | .plug-order-insertunorderedlist{ 71 | background-position: -477px 1px; 72 | } 73 | .plug-indent-indent{ 74 | background-position: -513px 1px; 75 | } 76 | .plug-indent-outdent{ 77 | background-position: -545px 1px; 78 | } 79 | .ke-container-qq .ke-icon-plug-order{ 80 | background-position: -255px 1px; 81 | } 82 | .ke-container-qq .ke-icon-plug-indent{ 83 | background-position: -287px 1px; 84 | } 85 | .ke-container-qq .ke-icon-link{ 86 | background-position: -319px 1px; 87 | } 88 | 89 | .ke-container-qq .ke-toolbar .ke-outline { 90 | cursor: default; 91 | padding:0px; 92 | border:1px solid #fff; 93 | } 94 | .ke-container-qq .ke-toolbar .ke-on { 95 | border-left:1px solid white; 96 | border-top:1px solid white; 97 | border-right:1px solid gray; 98 | border-bottom:1px solid gray; 99 | background-color: #FFFFFF; 100 | } 101 | .ke-container-qq .ke-toolbar .ke-selected { 102 | border-left:1px solid gray; 103 | border-top:1px solid gray; 104 | border-right:1px solid white; 105 | border-bottom:1px solid white; 106 | background-color: #FFFFFF; 107 | } 108 | .ke-container-qq .ke-toolbar .ke-disabled { 109 | cursor: default; 110 | } 111 | 112 | .ke-colorpicker-qq{ 113 | background:#fff; 114 | } 115 | /* statusbar */ 116 | .ke-container-qq .ke-statusbar { 117 | display:none; 118 | } 119 | /* menu */ 120 | .ke-menu-qq { 121 | border:1px solid #a6a6a6; 122 | position:absolute; 123 | background:#fff; 124 | -moz-box-shadow:2px 2px 4px #DDDDDD; 125 | z-index:999; 126 | left:-400px; 127 | top:-386px; 128 | right:218px; 129 | width:130px; 130 | } 131 | .ke-menu-qq .ke-menu-item { 132 | padding:0px; 133 | background:#fff; 134 | } 135 | .ke-menu-qq .ke-menu-item-on { 136 | border:1px solid #000080;background:#FFEEC2;color:#036; 137 | } 138 | .ke-menu-qq .ke-toolbar .ke-selected { 139 | border:1px solid #9a9afb; 140 | } 141 | .ke-menu-qq .ke-menu-item-left{ 142 | width:auto; 143 | } 144 | -------------------------------------------------------------------------------- /plugins/kindeditor/themes/simple/simple.css: -------------------------------------------------------------------------------- 1 | /* container */ 2 | .ke-container-simple { 3 | display: block; 4 | border: 1px solid #CCC; 5 | background-color: #FFF; 6 | overflow: hidden; 7 | } 8 | /* toolbar */ 9 | .ke-container-simple .ke-toolbar { 10 | border-bottom: 1px solid #CCC; 11 | background-color: #FFF; 12 | padding: 2px 5px; 13 | overflow: hidden; 14 | } 15 | .ke-container-simple .ke-toolbar .ke-outline { 16 | border: 1px solid #FFF; 17 | background-color: transparent; 18 | margin: 1px; 19 | padding: 1px 2px; 20 | font-size: 0; 21 | line-height: 0; 22 | overflow: hidden; 23 | cursor: pointer; 24 | } 25 | .ke-container-simple .ke-toolbar .ke-on { 26 | border: 1px solid #5690D2; 27 | } 28 | .ke-container-simple .ke-toolbar .ke-selected { 29 | border: 1px solid #5690D2; 30 | background-color: #E9EFF6; 31 | } 32 | .ke-container-simple .ke-toolbar .ke-disabled { 33 | cursor: default; 34 | } 35 | /* statusbar */ 36 | .ke-container-simple .ke-statusbar { 37 | position: relative; 38 | background-color: #FFF; 39 | border-top: 1px solid #CCCCCC; 40 | font-size: 0; 41 | line-height: 0; 42 | *height: 12px; 43 | overflow: hidden; 44 | text-align: center; 45 | cursor: s-resize; 46 | } 47 | /* menu */ 48 | .ke-menu-simple { 49 | border: 1px solid #A0A0A0; 50 | background-color: #FFF; 51 | color: #222222; 52 | padding: 2px; 53 | font-family: "sans serif",tahoma,verdana,helvetica; 54 | font-size: 12px; 55 | text-align: left; 56 | overflow: hidden; 57 | } 58 | .ke-menu-simple .ke-menu-item { 59 | border: 1px solid #FFF; 60 | background-color: #FFF; 61 | color: #222222; 62 | height: 24px; 63 | overflow: hidden; 64 | cursor: pointer; 65 | } 66 | .ke-menu-simple .ke-menu-item-on { 67 | border: 1px solid #5690D2; 68 | background-color: #FFF; 69 | } 70 | /* colorpicker */ 71 | .ke-colorpicker-simple { 72 | border: 1px solid #A0A0A0; 73 | background-color: #FEFEFE; 74 | color: #222222; 75 | padding: 2px; 76 | } 77 | .ke-colorpicker-simple .ke-colorpicker-cell { 78 | font-size: 0; 79 | line-height: 0; 80 | border: 1px solid #FEFEFE; 81 | cursor: pointer; 82 | margin:3px; 83 | padding:0; 84 | } 85 | .ke-colorpicker-simple .ke-colorpicker-cell-top { 86 | font-family: "sans serif",tahoma,verdana,helvetica; 87 | font-size: 12px; 88 | line-height: 24px; 89 | border: 1px solid #FEFEFE; 90 | cursor: pointer; 91 | margin:0; 92 | padding:0; 93 | text-align: center; 94 | } 95 | .ke-colorpicker-simple .ke-colorpicker-cell-on { 96 | border: 1px solid #5690D2; 97 | } 98 | .ke-colorpicker-simple .ke-colorpicker-cell-selected { 99 | border: 1px solid #2446AB; 100 | } 101 | -------------------------------------------------------------------------------- /reg.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 注册 6 | 7 | 8 | 12 | 13 | 14 | 15 |
16 | 24 |
25 | 26 |
27 | 44 |
45 | 46 |
47 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /styles/jquery.jqzoom.css: -------------------------------------------------------------------------------- 1 | .zoomPad{ 2 | position:relative; 3 | float:left; 4 | z-index:99; 5 | cursor:crosshair; 6 | } 7 | 8 | 9 | .zoomPreload{ 10 | -moz-opacity:0.8; 11 | opacity: 0.8; 12 | filter: alpha(opacity = 80); 13 | color: #333; 14 | font-size: 12px; 15 | font-family: Tahoma; 16 | text-decoration: none; 17 | border: 1px solid #CCC; 18 | background-color: white; 19 | padding: 8px; 20 | text-align:center; 21 | background-image: url(../images/zoomloader.gif); 22 | background-repeat: no-repeat; 23 | background-position: 43px 30px; 24 | z-index:110; 25 | width:90px; 26 | height:43px; 27 | position:absolute; 28 | top:0px; 29 | left:0px; 30 | * width:100px; 31 | * height:49px; 32 | } 33 | 34 | 35 | .zoomPup{ 36 | overflow:hidden; 37 | background-color: #fff; 38 | -moz-opacity:0.6; 39 | opacity: 0.6; 40 | filter: alpha(opacity = 60); 41 | z-index:120; 42 | position:absolute; 43 | border:1px solid #CCC; 44 | z-index:101; 45 | cursor:crosshair; 46 | } 47 | 48 | .zoomOverlay{ 49 | position:absolute; 50 | left:0px; 51 | top:0px; 52 | background:#FFF; 53 | /*opacity:0.5;*/ 54 | z-index:5000; 55 | width:100%; 56 | height:100%; 57 | display:none; 58 | z-index:101; 59 | } 60 | 61 | .zoomWindow{ 62 | position:absolute; 63 | left:110%; 64 | top:40px; 65 | background:#FFF; 66 | z-index:6000; 67 | height:auto; 68 | z-index:10000; 69 | z-index:110; 70 | } 71 | .zoomWrapper{ 72 | position:relative; 73 | border:1px solid #999; 74 | z-index:110; 75 | } 76 | .zoomWrapperTitle{ 77 | display:block; 78 | background:#999; 79 | color:#FFF; 80 | height:18px; 81 | line-height:18px; 82 | width:100%; 83 | overflow:hidden; 84 | text-align:center; 85 | font-size:10px; 86 | position:absolute; 87 | top:0px; 88 | left:0px; 89 | z-index:120; 90 | -moz-opacity:0.6; 91 | opacity: 0.6; 92 | filter: alpha(opacity = 60); 93 | } 94 | .zoomWrapperImage{ 95 | display:block; 96 | position:relative; 97 | overflow:hidden; 98 | z-index:110; 99 | 100 | } 101 | .zoomWrapperImage img{ 102 | border:0px; 103 | display:block; 104 | position:absolute; 105 | z-index:101; 106 | } 107 | 108 | .zoomIframe{ 109 | z-index: -1; 110 | filter:alpha(opacity=0); 111 | -moz-opacity: 0.80; 112 | opacity: 0.80; 113 | position:absolute; 114 | display:block; 115 | } 116 | 117 | /********************************************************* 118 | / When clicking on thumbs jqzoom will add the class 119 | / "zoomThumbActive" on the anchor selected 120 | /*********************************************************/ -------------------------------------------------------------------------------- /styles/reset.css: -------------------------------------------------------------------------------- 1 | @charset "utf-8"; 2 | /* CSS Document */ 3 | body,ul,ol,li,p,h1,h2,h3,h4,h5,h6,form,fieldset,table,td,img,div,dl,dt,dd,input{margin:0;padding:0;} 4 | body{font-size:12px;} 5 | img{border:none;} 6 | li{list-style:none;} 7 | input,select,textarea{outline:none;border:none; background:none;} 8 | textarea{resize:none;} 9 | a{text-decoration:none; color:#656565;} 10 | 11 | /*清浮动*/ 12 | .clearfix:after{content:"";display:block;clear:both;} 13 | .clearfix{zoom:1;} 14 | .fl{float:left;} 15 | .fr{float:right;} 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /test.php: -------------------------------------------------------------------------------- 1 | $maxSize){ 28 | exit("文件过大"); 29 | } 30 | if ($imgFlag){ 31 | //如何验证图片是否是一个真正的图片类型 32 | //getimagesize($filename):验证文件是否是图片类型 33 | $info=getimagesize($tmp_name); 34 | if(!$info){ 35 | exit("不是真正的图片类型"); 36 | } 37 | } 38 | if(is_uploaded_file($tmp_name)){ 39 | if(move_uploaded_file($tmp_name, $destination)){ 40 | $mes="文件上传成功"; 41 | }else{ 42 | $mes="文件移动失败"; 43 | } 44 | }else{ 45 | $mes="文件不是通过HTTP POST方式上传上来的"; 46 | } 47 | }else{ 48 | switch ($error){ 49 | case 1: 50 | //UPLOAD_ERR_INI_SIZE==1 51 | $mes="超过了配置文件上传文件的大小"; 52 | break; 53 | case 2: 54 | //UPLOAD_ERR_FORM_SIZE==2 55 | $mes="超过了表单设置上传文件的大小"; 56 | break; 57 | case 3: 58 | //UPLOAD_ERR_PARTIAL 59 | $mes="文件部分被上传"; 60 | break; 61 | case 4: 62 | //UPLOAD_ERR_NO_FILE 63 | $mes="没有文件被上传"; 64 | break; 65 | case 6: 66 | //UPLOAD_ERR_NO_TMP_DIR 67 | $mes="没有找到临时目录"; 68 | break; 69 | case 7: 70 | //UPLOAD_ERR_CANT_WRITE 71 | $mes="文件不可写"; 72 | break; 73 | case 8: 74 | //UPLOAD_ERR_EXTENSION 75 | $mes="由于PHP的扩展程序中断了文件上传"; 76 | break; 77 | } 78 | } 79 | echo $mes; 80 | //服务器端进行的配置 81 | //file_uploads = On 支持通过HTTP POST方式上传文件 82 | //;upload_tmp_dir = 临时文件保存路径 83 | //upload_max_filesize = 2M 默认值2M,表单文件上传的最大大小 84 | //post_max_size = 8M 表单以POST方式发送数据的最大值,默认是8M 85 | //客户端进行配置 86 | // 87 | // 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | -------------------------------------------------------------------------------- /test/doAction1.php: -------------------------------------------------------------------------------- 1 | $maxSize) { 38 | exit("文件过大"); 39 | } 40 | if ($imgFlag) { 41 | // 如何验证图片是否是一个真正的图片类型 42 | // getimagesize($filename):验证文件是否是图片类型 43 | $info = getimagesize($fileInfo['tmp_name']); 44 | if (! $info) { 45 | exit("不是真正的图片类型"); 46 | } 47 | } 48 | if (is_uploaded_file($fileInfo['tmp_name'])) { 49 | if (move_uploaded_file($fileInfo['tmp_name'], $destination)) { 50 | $mes = "文件上传成功"; 51 | } else { 52 | $mes = "文件移动失败"; 53 | } 54 | } else { 55 | $mes = "文件不是通过HTTP POST方式上传上来的"; 56 | } 57 | } else { 58 | switch ($fileInfo['error']) { 59 | case 1: 60 | // UPLOAD_ERR_INI_SIZE==1 61 | $mes = "超过了配置文件上传文件的大小"; 62 | break; 63 | case 2: 64 | // UPLOAD_ERR_FORM_SIZE==2 65 | $mes = "超过了表单设置上传文件的大小"; 66 | break; 67 | case 3: 68 | // UPLOAD_ERR_PARTIAL 69 | $mes = "文件部分被上传"; 70 | break; 71 | case 4: 72 | // UPLOAD_ERR_NO_FILE 73 | $mes = "没有文件被上传"; 74 | break; 75 | case 6: 76 | // UPLOAD_ERR_NO_TMP_DIR 77 | $mes = "没有找到临时目录"; 78 | break; 79 | case 7: 80 | // UPLOAD_ERR_CANT_WRITE 81 | $mes = "文件不可写"; 82 | break; 83 | case 8: 84 | // UPLOAD_ERR_EXTENSION 85 | $mes = "由于PHP的扩展程序中断了文件上传"; 86 | break; 87 | } 88 | } 89 | return $mes; 90 | } 91 | 92 | -------------------------------------------------------------------------------- /test/upload.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Insert title here 6 | 7 | 8 |

添加管理员

9 |
10 | 11 | 请选择上传文件:
12 | 13 |
14 | 15 | -------------------------------------------------------------------------------- /test/upload1.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Insert title here 6 | 7 | 8 |

添加管理员

9 |
10 | 请选择上传文件:
11 | 请选择上传文件:
12 | 请选择上传文件:
13 | 14 |
15 | 16 | -------------------------------------------------------------------------------- /test/upload2.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Insert title here 6 | 7 | 8 |

添加管理员

9 |
10 | 请选择上传文件:
11 | 请选择上传文件:
12 | 请选择上传文件:
13 | 14 |
15 | 16 | -------------------------------------------------------------------------------- /test/uploads/image_220/des_big.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/test/uploads/image_220/des_big.jpg -------------------------------------------------------------------------------- /test/uploads/image_350/des_big.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/test/uploads/image_350/des_big.jpg -------------------------------------------------------------------------------- /test/uploads/image_50/des_big.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/test/uploads/image_50/des_big.jpg -------------------------------------------------------------------------------- /test/uploads/image_800/des_big.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Johnny-Zhao/PHP-Shop/9a4979e587cb61288d9063708a7b03ab7aaddd9b/test/uploads/image_800/des_big.jpg -------------------------------------------------------------------------------- /test/waterPic.php: -------------------------------------------------------------------------------- 1 |