修改荣誉添加路由、编写程序课题
This commit is contained in:
1 parent
56162f1a82
commit
4fcaf1c9ae
13 files changed
+294
-125
No files matched your search
@@ -147,7 +147,19 @@ class Index extends Base
|
||||
*/
|
||||
public function read($id)
|
||||
{
|
||||
//
|
||||
|
||||
// 获取变量
|
||||
$list['id'] = $id;
|
||||
// 设置页面标题
|
||||
$list['title'] = '课题信息';
|
||||
// 设置数据总数
|
||||
$ktinfo = new \app\keti\model\KetiInfo;
|
||||
$list['count'] = $ktinfo->where('ketice',$id)->count();
|
||||
|
||||
// 模板赋值
|
||||
$this->assign('list',$list);
|
||||
|
||||
return $this->fetch('keti_info/read');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -143,7 +143,7 @@
|
||||
{
|
||||
"targets": 1,
|
||||
"render": function(data, type, row, meta) {
|
||||
return '<a title="查看课题" data-href="ktinfo/'+ row.id +'/ketice" data-title="'+row.title+'" onClick="Hui_admin_tab(this)" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">'+row.title+'册</i></a>'
|
||||
return '<a title="查看课题信息" data-href="kt/'+ row.id +'" data-title="'+row.title+'" onClick="Hui_admin_tab(this)" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">'+row.title+'</i></a>'
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -156,9 +156,9 @@
|
||||
startbut = '<a style="text-decoration:none" onClick="start(this,'+ row.id +')" href="javascript:;" title="启用"><i class="Hui-iconfont"></i></a>';
|
||||
|
||||
// 上图图片按钮
|
||||
picbut = '<a title="批传" href="javascript:void(0);" onclick=addfull("批传立项通知书","/ktinfoall/'+row.id+'/createall") class="ml-5" style="text-decoration:none"><i class="Hui-iconfont"></i></a>';
|
||||
picbut = '<a title="批传" href="javascript:void(0);" onclick=addfull("批传立项通知书","/ktinfoadd/'+row.id+'/createall") class="ml-5" style="text-decoration:none"><i class="Hui-iconfont"></i></a>';
|
||||
// 添加荣誉
|
||||
addbut = '<a title="添加课题信息" href="javascript:void(0);" onclick=addfull("添加课题信息","/ktinfo/'+row.id+'/create") class="ml-5" style="text-decoration:none"><i class="Hui-iconfont"></i></a>';
|
||||
addbut = '<a title="添加课题信息" href="javascript:void(0);" onclick=addfull("添加课题信息","/ktinfoadd/'+row.id+'/create") class="ml-5" style="text-decoration:none"><i class="Hui-iconfont"></i></a>';
|
||||
// 编辑按钮
|
||||
editbut = '<a title="编辑" href="javascript:void(0);" onclick=add("编辑","/kt/'+row.id+'/edit",600,350) class="ml-5" style="text-decoration:none"><i class="Hui-iconfont"></i></a>';
|
||||
delbut = '<a title="删除" href="javascript:void(0);" onclick=del(this,"/kt/'+row.id+'") class="ml-5" style="text-decoration:none"><i class="Hui-iconfont"></i></a>';
|
||||
|
||||
@@ -2,7 +2,22 @@
|
||||
{block name="mycss"}
|
||||
{/block}
|
||||
{block name="formaa"}
|
||||
<div class="form form-horizontal">
|
||||
<div class="row cl">
|
||||
<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>上传文件:</label>
|
||||
<div class="formControls col-xs-8 col-sm-9 f-l">
|
||||
<div class="uploader-thum-container">
|
||||
<div id="fileList" class="uploader-list"></div>
|
||||
<div id="filePicker">选择文件</div>
|
||||
<button id="btn-star" class="btn btn-default btn-uploadstar radius ml-10">开始上传</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<form action="/ktinfo/" method="POST" class="form form-horizontal" id="form-member-add">
|
||||
<input type="hidden" value="" id="lxpic" name="lxpic" readonly="true">
|
||||
<input type="hidden" value="" id="id" name="id" readonly="true">
|
||||
<input type="hidden" value="{$list['ketice']}" id="ketice" name="ketice" readonly="true">
|
||||
<div class="row cl">
|
||||
<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>课题名称:</label>
|
||||
<div class="formControls col-xs-8 col-sm-9">
|
||||
|
||||
Loaded 3 of 13 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user