更新
This commit is contained in:
62
application/admin/view/form/detail_alumn.html
Normal file
62
application/admin/view/form/detail_alumn.html
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
{extend name="public/base"/}
|
||||||
|
{block name="body"}
|
||||||
|
<div class="main-box clearfix">
|
||||||
|
<header class="main-box-header clearfix">
|
||||||
|
<div class="pull-left">
|
||||||
|
<h2>{$meta_title}</h2>
|
||||||
|
</div>
|
||||||
|
<div class="pull-right">
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
<div class="main-box-body clearfix">
|
||||||
|
<div class="table-responsive clearfix">
|
||||||
|
<table class="table table-hover table-bordered">
|
||||||
|
<tr>
|
||||||
|
<th width="120" style="text-align: right;">姓名</th>
|
||||||
|
<td>{$info['name']}</td>
|
||||||
|
<th width="120" style="text-align: right;">性别</th>
|
||||||
|
<td>{if $info['sex'] == 0}保密{elseif $info['sex'] == 1}男{elseif $info['sex'] == 2}女{/if}</td>
|
||||||
|
<th width="120" style="text-align: right;">出生年月</th>
|
||||||
|
<td>{$info['birthday']|date='Y-m-d',###}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th width="120" style="text-align: right;">从事行业</th>
|
||||||
|
<td>{$info['industry']}</td>
|
||||||
|
<th width="120" style="text-align: right;">所在单位</th>
|
||||||
|
<td colspan="3">{$info['company']}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th width="120" style="text-align: right;">单位职务</th>
|
||||||
|
<td>{$info['duties']}</td>
|
||||||
|
<th width="120" style="text-align: right;">入学年份</th>
|
||||||
|
<td>{$info['en_year']}</td>
|
||||||
|
<th width="120" style="text-align: right;">所学专业</th>
|
||||||
|
<td>{$info['major']}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th width="120" style="text-align: right;">联系电话</th>
|
||||||
|
<td>{$info['mobile']}</td>
|
||||||
|
<th width="120" style="text-align: right;">QQ</th>
|
||||||
|
<td>{$info['qq']}</td>
|
||||||
|
<th width="120" style="text-align: right;">微信</th>
|
||||||
|
<td>{$info['wechat']}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th width="120" style="text-align: right;">个人简历</th>
|
||||||
|
<td colspan="5">
|
||||||
|
{$info['profile']}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan="6">
|
||||||
|
说明:个人简历中,您可以添加任何您愿意提供的信息,例如您可以为校友提供何种帮助,有何特长,获得的主要荣誉,是否参加其他社团组织等等。
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{/block}
|
||||||
|
{block name="script"}
|
||||||
|
|
||||||
|
{/block}
|
||||||
62
application/admin/view/form/list_alumn.html
Normal file
62
application/admin/view/form/list_alumn.html
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
{extend name="public/base"/}
|
||||||
|
{block name="body"}
|
||||||
|
<div class="main-box clearfix">
|
||||||
|
<header class="main-box-header clearfix">
|
||||||
|
<div class="pull-left">
|
||||||
|
<h2>{$meta_title}</h2>
|
||||||
|
</div>
|
||||||
|
<div class="pull-right">
|
||||||
|
<a class="btn btn-primary" href="{:url('admin/form/outxls?form_id='.$form_id)}" target="_blank">导出</a>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
<div class="main-box-body clearfix">
|
||||||
|
<div class="table-responsive clearfix">
|
||||||
|
<table class="table table-hover">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th><input class="checkbox check-all" type="checkbox"></th>
|
||||||
|
<th>姓名</th>
|
||||||
|
<th>性别</th>
|
||||||
|
<th>生日</th>
|
||||||
|
<th>从事行业</th>
|
||||||
|
<th>所在单位</th>
|
||||||
|
<th>职务</th>
|
||||||
|
<th>入学年份</th>
|
||||||
|
<th>所学专业</th>
|
||||||
|
<th>电话</th>
|
||||||
|
<th>QQ</th>
|
||||||
|
<th>微信</th>
|
||||||
|
<th>操作</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
{volist name="list" id="item"}
|
||||||
|
<tr>
|
||||||
|
<td><input class="ids row-selected" type="checkbox" name="id[]" value="{$item['id']}"></td>
|
||||||
|
<td>{$item['name']}</td>
|
||||||
|
<td>{if $item['sex'] == 0}保密{elseif $item['sex'] == 1}男{elseif $item['sex'] == 2}女{/if}</td>
|
||||||
|
<td>{$item['birthday']|date='Y-m-d',###}</td>
|
||||||
|
<td>{$item['industry']}</td>
|
||||||
|
<td>{$item['company']}</td>
|
||||||
|
<td>{$item['duties']}</td>
|
||||||
|
<td>{$item['en_year']}</td>
|
||||||
|
<td>{$item['major']}</td>
|
||||||
|
<td>{$item['mobile']}</td>
|
||||||
|
<td>{$item['qq']}</td>
|
||||||
|
<td>{$item['wechat']}</td>
|
||||||
|
<td>
|
||||||
|
<a href="{:url('detail',array('id'=>$item['id'], 'form_id'=>$form_id))}">详情</a>
|
||||||
|
<a href="{:url('deldata',array('id'=>$item['id'], 'form_id'=>$form_id))}" class="confirm ajax-get">删除</a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{/volist}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
{$page}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{/block}
|
||||||
|
{block name="script"}
|
||||||
|
|
||||||
|
{/block}
|
||||||
@@ -28,7 +28,7 @@ class Index extends Api {
|
|||||||
$this->data['code'] = 1;
|
$this->data['code'] = 1;
|
||||||
return $this->data;
|
return $this->data;
|
||||||
}else{
|
}else{
|
||||||
$data['msg'] = '未知信息,请联系管理员!';
|
$this->data['msg'] = '未知信息,请联系管理员!';
|
||||||
return $this->data;
|
return $this->data;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ class Api {
|
|||||||
|
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
header("Access-Control-Allow-Origin: *");
|
header("Access-Control-Allow-Origin: *");
|
||||||
header("Access-Control-Allow-Methods: GET, POST, PUT, DELETE");
|
header("Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS");
|
||||||
header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept, Authorization");
|
header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept, Authorization");
|
||||||
$header = getallheaders();
|
$header = getallheaders();
|
||||||
$this->data = array('code' => 0, 'msg' => '', 'time' => time(), 'data' => '');
|
$this->data = array('code' => 0, 'msg' => '', 'time' => time(), 'data' => '');
|
||||||
@@ -24,12 +24,12 @@ class Api {
|
|||||||
if (!$isCheck && 'api/index/gettoken' !== strtolower($url)) {
|
if (!$isCheck && 'api/index/gettoken' !== strtolower($url)) {
|
||||||
$this->data['code'] = '301';
|
$this->data['code'] = '301';
|
||||||
$this->data['data'] = '非法请求!';
|
$this->data['data'] = '非法请求!';
|
||||||
echo json($this->data);
|
echo json_encode($this->data);
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function checkToken($header){return true;
|
protected function checkToken($header){
|
||||||
if (isset($header['Authorization']) && $header['Authorization']) {
|
if (isset($header['Authorization']) && $header['Authorization']) {
|
||||||
$token = authcode($header['Authorization']);
|
$token = authcode($header['Authorization']);
|
||||||
list($appid, $appsecret, $currentTime) = explode('|', $token);
|
list($appid, $appsecret, $currentTime) = explode('|', $token);
|
||||||
|
|||||||
2
public/plugs/layer/mobile/layer.js
Normal file
2
public/plugs/layer/mobile/layer.js
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
/*! layer mobile-v2.0 弹层组件移动版 License LGPL http://layer.layui.com/mobile By 贤心 */
|
||||||
|
;!function(a){"use strict";var b=document,c="querySelectorAll",d="getElementsByClassName",e=function(a){return b[c](a)},f={type:0,shade:!0,shadeClose:!0,fixed:!0,anim:"scale"},g={extend:function(a){var b=JSON.parse(JSON.stringify(f));for(var c in a)b[c]=a[c];return b},timer:{},end:{}};g.touch=function(a,b){a.addEventListener("click",function(a){b.call(this,a)},!1)};var h=0,i=["layui-m-layer"],j=function(a){var b=this;b.config=g.extend(a),b.view()};j.prototype.view=function(){var a=this,c=a.config,f=b.createElement("div");a.id=f.id=i[0]+h,f.setAttribute("class",i[0]+" "+i[0]+(c.type||0)),f.setAttribute("index",h);var g=function(){var a="object"==typeof c.title;return c.title?'<h3 style="'+(a?c.title[1]:"")+'">'+(a?c.title[0]:c.title)+"</h3>":""}(),j=function(){"string"==typeof c.btn&&(c.btn=[c.btn]);var a,b=(c.btn||[]).length;return 0!==b&&c.btn?(a='<span yes type="1">'+c.btn[0]+"</span>",2===b&&(a='<span no type="0">'+c.btn[1]+"</span>"+a),'<div class="layui-m-layerbtn">'+a+"</div>"):""}();if(c.fixed||(c.top=c.hasOwnProperty("top")?c.top:100,c.style=c.style||"",c.style+=" top:"+(b.body.scrollTop+c.top)+"px"),2===c.type&&(c.content='<i></i><i class="layui-m-layerload"></i><i></i><p>'+(c.content||"")+"</p>"),c.skin&&(c.anim="up"),"msg"===c.skin&&(c.shade=!1),f.innerHTML=(c.shade?"<div "+("string"==typeof c.shade?'style="'+c.shade+'"':"")+' class="layui-m-layershade"></div>':"")+'<div class="layui-m-layermain" '+(c.fixed?"":'style="position:static;"')+'><div class="layui-m-layersection"><div class="layui-m-layerchild '+(c.skin?"layui-m-layer-"+c.skin+" ":"")+(c.className?c.className:"")+" "+(c.anim?"layui-m-anim-"+c.anim:"")+'" '+(c.style?'style="'+c.style+'"':"")+">"+g+'<div class="layui-m-layercont">'+c.content+"</div>"+j+"</div></div></div>",!c.type||2===c.type){var k=b[d](i[0]+c.type),l=k.length;l>=1&&layer.close(k[0].getAttribute("index"))}document.body.appendChild(f);var m=a.elem=e("#"+a.id)[0];c.success&&c.success(m),a.index=h++,a.action(c,m)},j.prototype.action=function(a,b){var c=this;a.time&&(g.timer[c.index]=setTimeout(function(){layer.close(c.index)},1e3*a.time));var e=function(){var b=this.getAttribute("type");0==b?(a.no&&a.no(),layer.close(c.index)):a.yes?a.yes(c.index):layer.close(c.index)};if(a.btn)for(var f=b[d]("layui-m-layerbtn")[0].children,h=f.length,i=0;h>i;i++)g.touch(f[i],e);if(a.shade&&a.shadeClose){var j=b[d]("layui-m-layershade")[0];g.touch(j,function(){layer.close(c.index,a.end)})}a.end&&(g.end[c.index]=a.end)},a.layer={v:"2.0",index:h,open:function(a){var b=new j(a||{});return b.index},close:function(a){var c=e("#"+i[0]+a)[0];c&&(c.innerHTML="",b.body.removeChild(c),clearTimeout(g.timer[a]),delete g.timer[a],"function"==typeof g.end[a]&&g.end[a](),delete g.end[a])},closeAll:function(){for(var a=b[d](i[0]),c=0,e=a.length;e>c;c++)layer.close(0|a[0].getAttribute("index"))}},"function"==typeof define?define(function(){return layer}):function(){var a=document.scripts,c=a[a.length-1],d=c.src,e=d.substring(0,d.lastIndexOf("/")+1);c.getAttribute("merge")||document.head.appendChild(function(){var a=b.createElement("link");return a.href=e+"need/layer.css?2.0",a.type="text/css",a.rel="styleSheet",a.id="layermcss",a}())}()}(window);
|
||||||
1
public/plugs/layer/mobile/need/layer.css
Normal file
1
public/plugs/layer/mobile/need/layer.css
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user