From 090972c998d03e3083b9643b4bcdb7df530a02a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E6=9D=BE=E6=A0=91?= Date: Mon, 15 Apr 2019 14:33:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E4=BB=B6=E4=B8=8A=E4=BC=A0=E6=95=B4?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/renshi/controller/Index.php | 21 +- application/renshi/view/index/create.html | 6 - application/renshi/view/index/create_all.html | 179 +++--------------- application/renshi/view/index/index.html | 14 +- .../07dda563b2208d6f437894c33266c6a2.xlsx | Bin 0 -> 10933 bytes .../0bf3dc3038675384d40f38b6a1d12785.xlsx | Bin 0 -> 10933 bytes .../1481dedb74f3e9732232a3335cfcd2f6.xlsx | Bin 0 -> 10933 bytes .../1b6e5283fd523b6c1d4197f04a9c8e15.xlsx | Bin 0 -> 10933 bytes .../2a36f48e2fca5e73769e25602e0dd2f0.xlsx | Bin 0 -> 10933 bytes .../38b5684a7b3e359573908310ba3eb510.xlsx | Bin 0 -> 10933 bytes .../3f82c8a64bdf0dbd22d806528867b508.xlsx | Bin 0 -> 10933 bytes .../45e7652139c02ea6adff19b4c23b2f80.xlsx | Bin 0 -> 10933 bytes .../5620d5b8e0ca40960f96777df249dd81.xlsx | Bin 0 -> 10933 bytes .../6f208127d2a1a11863d1b5d12403dc0d.xlsx | Bin 0 -> 10933 bytes .../77f61edcc9910ef3239342d99a54a70a.xlsx | Bin 0 -> 10933 bytes .../d9186d41ba33cc06a593c564cdcc957a.xlsx | Bin 0 -> 10933 bytes .../e491952983f4a4c6135cb12cbc988288.xlsx | Bin 0 -> 10933 bytes .../f45c81dc747c1e98e19636d501f981e3.xlsx | Bin 0 -> 10933 bytes .../fbef1c56621ddc72fd05e4595cd5e5a0.xlsx | Bin 0 -> 10933 bytes 19 files changed, 59 insertions(+), 161 deletions(-) create mode 100644 public/uploads/teacher/20190415/07dda563b2208d6f437894c33266c6a2.xlsx create mode 100644 public/uploads/teacher/20190415/0bf3dc3038675384d40f38b6a1d12785.xlsx create mode 100644 public/uploads/teacher/20190415/1481dedb74f3e9732232a3335cfcd2f6.xlsx create mode 100644 public/uploads/teacher/20190415/1b6e5283fd523b6c1d4197f04a9c8e15.xlsx create mode 100644 public/uploads/teacher/20190415/2a36f48e2fca5e73769e25602e0dd2f0.xlsx create mode 100644 public/uploads/teacher/20190415/38b5684a7b3e359573908310ba3eb510.xlsx create mode 100644 public/uploads/teacher/20190415/3f82c8a64bdf0dbd22d806528867b508.xlsx create mode 100644 public/uploads/teacher/20190415/45e7652139c02ea6adff19b4c23b2f80.xlsx create mode 100644 public/uploads/teacher/20190415/5620d5b8e0ca40960f96777df249dd81.xlsx create mode 100644 public/uploads/teacher/20190415/6f208127d2a1a11863d1b5d12403dc0d.xlsx create mode 100644 public/uploads/teacher/20190415/77f61edcc9910ef3239342d99a54a70a.xlsx create mode 100644 public/uploads/teacher/20190415/d9186d41ba33cc06a593c564cdcc957a.xlsx create mode 100644 public/uploads/teacher/20190415/e491952983f4a4c6135cb12cbc988288.xlsx create mode 100644 public/uploads/teacher/20190415/f45c81dc747c1e98e19636d501f981e3.xlsx create mode 100644 public/uploads/teacher/20190415/fbef1c56621ddc72fd05e4595cd5e5a0.xlsx diff --git a/application/renshi/controller/Index.php b/application/renshi/controller/Index.php index b72766db..29c2a4eb 100644 --- a/application/renshi/controller/Index.php +++ b/application/renshi/controller/Index.php @@ -271,6 +271,17 @@ class Index extends Base // 批量添加 public function createAll() { + // 设置页面标题 + $list['set'] = array( + 'webtitle'=>'批量上传教师信息', + 'butname'=>'批传', + 'formpost'=>'PUT', + 'url'=>'/teacher/createall', + ); + + // 模板赋值 + $this->assign('list',$list); + // 渲染 return $this->fetch(); } @@ -346,18 +357,22 @@ class Index extends Base { // 获取文件信息 $list['text'] = '教师名单'; - $list['oldname']=input('post.name'); - $list['bianjitime'] = input('post.lastModifiedDate'); - $list['fieldsize'] = input('post.size'); + + // $list['bianjitime'] = input('post.lastModifiedDate'); + // $list['fieldsize'] = input('post.size'); // 获取表单上传文件 例如上传了001.jpg $file = request()->file('file'); + // $list['oldname']=$file->info->name; + // $list['size']=$file->info->size; // 移动到框架应用根目录/uploads/ 目录下 $info = $file->move( '..\public\uploads\teacher'); + dump($file); if($info){ // 成功上传后 获取上传信息 $list['category'] = $info->getExtension(); $list['url'] = $info->getSaveName(); $list['newname'] = $info->getFilename(); + //将文件信息保存 $data = Fields::create($list); diff --git a/application/renshi/view/index/create.html b/application/renshi/view/index/create.html index 8d82c5c9..d15cf7eb 100644 --- a/application/renshi/view/index/create.html +++ b/application/renshi/view/index/create.html @@ -1,12 +1,6 @@ {extend name="common@create" /} {block name="form"} - -
- -