Skip to content

duanzjun/tp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

企业管理系统 目前还在初步开发阶段,不是一个完善的项目,请勿下载

标准化 使用jquery.js做为js封装插件 后台弹窗统一使用artDialog v6.0.2插件完成,依赖于jquery v1.11.1 编辑器目前使用百度编辑器(暂定) css样式使用目前最流行的bootstrap3.0做为样式框架 后台共用js函数文件common.js 后台css函数使用admin.css 表单提交弹窗ajax.form.js,可阻止ajax表单提交自动跳转 公共函数文件app/common/common/function.php

后台模板结构

表格样式

模板测试选中状态 checked="checked"

编辑/添加共用模板,取当前路径用于提交表单请求 action="ACTION"

ajax请求数据确认 删除 返回数据为 $this->ajaxReturn(true/false)

复选框选中或取消

图片上传使用ajaxUpload无刷新上传图片 上传图片 multiple 多图片上传 tabIndex="-1" 获取焦点会导致文字往上偏移bug,禁止上传按钮获取焦点 数据返回处理 $('#fileupload').fileupload({ url: "{:U('adposition/adupload')}", dataType: 'json', done: function (e, data) { $.each(data.result.files, function (index, file) { var str='

  • '+ ''+ ''+ ''+ '删除
  • '; $('.ad-list').append(str); }); }, progressall: function (e, data) { var progress = parseInt(data.loaded / data.total * 100, 10); $('#progress .progress-bar').css( 'width', progress + '%' ); } }).prop('disabled', !$.support.fileInput).parent().addClass($.support.fileInput ? undefined : 'disabled'); 后台上传附件统一调用adminController.class.php@ajaxUpload(),附件数据统一存放在attachment表里

    判断数据不为空可以使用标签

    About

    No description, website, or topics provided.

    Resources

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

     
     
     

    Contributors