新增需求:管理后台-》推广公会归属管理,列表,新增,编辑,审批
parent
4fb2806656
commit
50320be1d2
@ -0,0 +1,460 @@
|
||||
<extend name="Public/base"/>
|
||||
|
||||
<block name="body">
|
||||
<link rel="stylesheet" href="__CSS__/select2.min.css" type="text/css" />
|
||||
<link rel="stylesheet" href="__CSS__/pro_promote.css" type="text/css" />
|
||||
<script src="__STATIC__/jquery.form.js"></script>
|
||||
<script src="__STATIC__/layer/layer.js"></script>
|
||||
<script type="text/javascript" src="__JS__/bootstrap.min.js"></script>
|
||||
<script type="text/javascript" src="__JS__/select2.min.js"></script>
|
||||
<style>
|
||||
.select2-container--default .select2-selection--single {
|
||||
color: #000;
|
||||
resize: none;
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
border-color: #a7b5bc #ced9df #ced9df #a7b5bc;
|
||||
box-shadow: 0px 3px 3px #F7F8F9 inset;height:35px;
|
||||
height:28px;border-radius:3px;font-size:12px;
|
||||
}
|
||||
.select2-container--default .select2-selection--single .select2-selection__rendered {
|
||||
line-height:35px;
|
||||
line-height:28px;
|
||||
}
|
||||
.select2-container--default .select2-selection--single .select2-selection__arrow {
|
||||
height:26px;
|
||||
}
|
||||
.select2-container--default .select2-search--dropdown .select2-search__field {
|
||||
height:26px;line-height:26px;font-size:12px;
|
||||
}
|
||||
.select2-results__option[aria-selected] {font-size:12px;}
|
||||
.layui-layer-dialog .layui-layer-content{color:red}
|
||||
</style>
|
||||
|
||||
<div class="cf main-place top_nav_list navtab_list">
|
||||
<h3 class="page_title">推广公会归属管理</h3>
|
||||
</div>
|
||||
|
||||
<div class="cf top_nav_list">
|
||||
<div class="fl button_list" style="margin-right: 50%">
|
||||
<div class="tools">
|
||||
<a class=" " href="{:U('belong_add?model='.$model['id'])}">
|
||||
<span class="button_icon button_icon1"></span>工会归属申请</a>
|
||||
<a class="ajax-post " target-form="ids" url="{:U('Promote/belong_verify',
|
||||
array('verify_status'=>1))}">
|
||||
<span class="button_icon button_icon9"></span>审核通过</a>
|
||||
<a class="ajax-post " target-form="ids" url="{:U('Promote/belong_verify',
|
||||
array('verify_status'=>2))}">
|
||||
<span class="button_icon button_icon9"></span>审核拒绝</a>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 高级搜索 -->
|
||||
<div class="jssearch fl cf search_list">
|
||||
<div class="input-list search-title-box">
|
||||
<label>搜索:</label>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="input-list">
|
||||
<input type="text" name="account" placeholder="请输入会长账号" value="{:I('account')}">
|
||||
</div>
|
||||
<div class="input-list input-list-channelstatus">
|
||||
<select name="company_belong">
|
||||
<option value="">归属状态</option>
|
||||
<option value="0">自主开发及维护</option>
|
||||
<option value="1">只维护</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="input-list input-list-channelstatus">
|
||||
<select name="verify_status">
|
||||
<option value="">审核状态</option>
|
||||
<option value="1">已审核</option>
|
||||
<option value="0">待审核</option>
|
||||
<option value="2">审核未通过</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<input type="hidden" name="" value="" class="sortBy">
|
||||
<input type="hidden" name="type" value="{$_GET['type']}">
|
||||
<div class="input-list">
|
||||
<a class="sch-btn" href="javascript:;" id="search" url="{:U('Promote/belong','model='.$model['name'] .'&row='.I('row'),false)}">搜索</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 数据列表 -->
|
||||
<div class="data_list">
|
||||
|
||||
<div class="">
|
||||
<table>
|
||||
<!-- 表头 -->
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
<input class="check-all" type="checkbox">
|
||||
</th>
|
||||
<th>会长ID</th>
|
||||
<th>会长账号</th>
|
||||
<th>手机号码</th>
|
||||
<th ><a class="paixu" data-order='create_time'>注册时间</a></th>
|
||||
<th>状态</th>
|
||||
<th>身份状态</th>
|
||||
<th>内外团</th>
|
||||
<th>归属状态</th>
|
||||
<th>申请时间</th>
|
||||
<th>备注</th>
|
||||
<th>审核</th>
|
||||
<th>申请人</th>
|
||||
<th>确认人</th>
|
||||
<th>操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<!-- 列表 -->
|
||||
<tbody>
|
||||
<if condition = "empty($list_data)">
|
||||
<tr>
|
||||
<td colspan="16" class="text-center">aOh! 暂时还没有内容!</td>
|
||||
</tr>
|
||||
</if>
|
||||
<notemtpy name = "list_data">
|
||||
<volist name="list_data" id="data">
|
||||
<tr>
|
||||
<td><input class="ids" type="checkbox" value="{$data['id']}" name="ids[]"></td>
|
||||
<td>{$data.promote_id}</td>
|
||||
<td>
|
||||
<if condition="$is_admin eq true ">
|
||||
{$data.account}
|
||||
<else />
|
||||
{$data.account|encryptStr}
|
||||
</if>
|
||||
</td>
|
||||
<td>
|
||||
<if condition="$is_admin eq true ">
|
||||
{$data.mobile_phone}
|
||||
<else />
|
||||
{$data.mobile_phone|encryptStr}
|
||||
</if>
|
||||
</td>
|
||||
<td>{:set_show_time($data['create_time'])}</td>
|
||||
<td>
|
||||
<?php $status_str = get_info_status($data['status'],3); $status_str = $status_str ?: '待审核';?>
|
||||
<if condition="$data['status'] eq 0">
|
||||
<span class="preview_status">{$status_str}</span>
|
||||
<elseif condition="$data['status'] eq 2 " />
|
||||
<span class="disabled_status">{$status_str}</span>
|
||||
<else/>
|
||||
{$status_str}
|
||||
</if>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
<?php if($data['ver_status'] == 1) {?>
|
||||
<span>成功</span>
|
||||
<?php }?>
|
||||
<?php if(intval($data['ver_status']) == 2) {?>
|
||||
<span>拒绝</span>
|
||||
<?php }?>
|
||||
<?php if(intval($data['ver_status']) == 3) {?>
|
||||
<span>正在审核</span>
|
||||
<?php }?>
|
||||
<?php if(intval($data['ver_status']) == 4) {?>
|
||||
<span>修改审核中</span>
|
||||
<?php }?>
|
||||
<?php if(intval($data['ver_status']) == 0) {?>
|
||||
<span>未认证</span>
|
||||
<?php }?>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<?php if($data['company_belong'] == 0) {?>
|
||||
<span>内团</span>
|
||||
<?php }?>
|
||||
<?php if(intval($data['company_belong']) == 1) {?>
|
||||
<span>外团</span>
|
||||
<?php }?>
|
||||
</td>
|
||||
<td>
|
||||
<?php if($data['company_relation'] == 0) {?>
|
||||
<span>自主开发及维护</span>
|
||||
<?php }?>
|
||||
<?php if(intval($data['company_relation']) == 1) {?>
|
||||
<span>只维护</span>
|
||||
<?php }?>
|
||||
</td>
|
||||
<td>{$data['applicant_time']}</td>
|
||||
<td>{$data['remark']}</td>
|
||||
<td>
|
||||
<?php if($data['verify_status'] == 0) {?>
|
||||
<span>待审核</span>
|
||||
<?php }?>
|
||||
<?php if(intval($data['verify_status']) == 1) {?>
|
||||
<span>审核通过</span>
|
||||
<?php }?>
|
||||
<?php if(intval($data['verify_status']) == 2) {?>
|
||||
<span>审核拒绝</span>
|
||||
<?php }?>
|
||||
</td>
|
||||
<td>{$data['applicant_name']}</td>
|
||||
<td>{$data['approver_name']}</td>
|
||||
<td>
|
||||
<a href="{:U('belong_edit',array('id'=>$data['id']))}" class="">编辑</a>
|
||||
</td>
|
||||
</tr>
|
||||
</volist>
|
||||
</notemtpy>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="page">
|
||||
<if condition="$is_admin eq true ">
|
||||
<a class="sch-btn" href="{:U('Export/promote_list',array_merge(['xlsname'=>'推广员管理_推广员列表'.((I('type',1)==2)?'_混服申请':'_推广员列表')],I('get.')))}">导出</a>
|
||||
</if>
|
||||
{$_page|default=''}
|
||||
</div>
|
||||
|
||||
<div class="common_settings">
|
||||
<span class="plus_icon"><span><img src="__IMG__/zwmimages/icon_jia.png"></span></span>
|
||||
<form class="addShortcutIcon">
|
||||
<input type="hidden" name="title" value="{$m_title}">
|
||||
<input type="hidden" name="url" value="Promote/lists/type/{:I('type',1)}">
|
||||
</form>
|
||||
<a class="ajax-post add-butn <notempty name='commonset'>addSIsetted</notempty>" href="javascript:;" target-form="addShortcutIcon" url="{:U('Think/addShortcutIcon')}"><img src="__IMG__/zwmimages/icon_jia.png"><span><notempty name='commonset'>已添加<else />添加至常用设置</notempty></span></a>
|
||||
</div>
|
||||
|
||||
</block>
|
||||
|
||||
<block name="script">
|
||||
<script>
|
||||
<volist name=":I('get.')" id="vo">
|
||||
Think.setValue('{$key}',"{$vo}");
|
||||
</volist>
|
||||
$(".select_gallery").select2();
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
//导航高亮
|
||||
highlight_subnav('{:U('Promote/belong')}');
|
||||
$(function(){
|
||||
//搜索功能
|
||||
$("#search").click(function(){
|
||||
var url = $(this).attr('url');
|
||||
var query = $('.jssearch').find('input').serialize();
|
||||
query += "&"+$('.jssearch').find('select').serialize();
|
||||
query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g,'');
|
||||
query = query.replace(/^&/g,'');
|
||||
if( url.indexOf('?')>0 ){
|
||||
url += '&' + query;
|
||||
}else{
|
||||
url += '?' + query;
|
||||
}
|
||||
window.location.href = url;
|
||||
});
|
||||
$(".paixu").click(function(){
|
||||
var that=$(this);
|
||||
$data_order=that.attr('data-order');
|
||||
$order_type='{$userarpu_order}';
|
||||
if($order_type==''||$order_type=='4'){
|
||||
$(".sortBy").attr('name','data_order');
|
||||
val='3,'+$data_order;
|
||||
$(".sortBy").attr('value',val);
|
||||
$("#search").click();
|
||||
}else if($order_type=='3'){
|
||||
$(".sortBy").attr('name','data_order');
|
||||
val='4,'+$data_order;
|
||||
$(".sortBy").attr('value',val);
|
||||
$("#search").click();
|
||||
}
|
||||
});
|
||||
//回车自动提交
|
||||
$('.jssearch').find('input').keyup(function(event){
|
||||
if(event.keyCode===13){
|
||||
$("#search").click();
|
||||
}
|
||||
});
|
||||
$("#admin").on('click',function(event) {
|
||||
var navlist = $(this).find('.i_list_li');
|
||||
if (navlist.hasClass('hidden')) {
|
||||
navlist.removeClass('hidden');
|
||||
$(this).find('#i_list_id').focus().val('');
|
||||
} else {
|
||||
navlist.addClass('hidden');
|
||||
}
|
||||
$(document).one("click", function(){
|
||||
navlist.addClass('hidden');
|
||||
});
|
||||
event.stopPropagation();
|
||||
});
|
||||
|
||||
$('#admin #i_list_id').on('keyup',function(event) {
|
||||
var val = $.trim($(this).val()).toLowerCase();
|
||||
$(this).closest('.drop-down').find('#i_list_idh').val(val);
|
||||
});
|
||||
|
||||
$("#admin #i_list_li").find("a").each(function(){
|
||||
$(this).click(function(){
|
||||
var text = $.trim($(this).text()).toLowerCase();
|
||||
$(this).closest('.drop-down').find("#i_list_id").val(text);
|
||||
$(this).closest('.drop-down').find('#i_list_idh').val(text);
|
||||
})
|
||||
});
|
||||
|
||||
//下拉内容框
|
||||
$(".drop-down2").on('click',function(event) {
|
||||
var navlist = $(this).find('.i_list_li');
|
||||
if (navlist.hasClass('hidden')) {
|
||||
navlist.removeClass('hidden');
|
||||
$('#i_list_id').focus().val('');
|
||||
} else {
|
||||
navlist.addClass('hidden');
|
||||
}
|
||||
$(document).one("click", function(){
|
||||
navlist.addClass('hidden');
|
||||
});
|
||||
event.stopPropagation();
|
||||
});
|
||||
/* 状态搜索子菜单 */
|
||||
/*渠道删除*/
|
||||
$('.delete').click(function(){
|
||||
var id = $(this).attr('data-id');
|
||||
layer.confirm('渠道删除后,下级渠道同时被删除,所属数据归属于自然渠道!', {
|
||||
title:'确定要删除该渠道?',
|
||||
icon:0,
|
||||
btn: ['删除','取消'] //按钮
|
||||
}, function(){
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "{:U('del_promote')}",
|
||||
dataType: 'json',
|
||||
async: false,
|
||||
data: {id:id},
|
||||
success:function(data){
|
||||
if(data.status==1){
|
||||
layer.msg(data.msg);
|
||||
setTimeout(function(){
|
||||
window.location.reload();
|
||||
},1500);
|
||||
}
|
||||
}
|
||||
});
|
||||
}, function(){
|
||||
layer.close();
|
||||
});
|
||||
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
|
||||
//点击字母按照条件按钮筛选
|
||||
$(".pro_promot_select_list_con").click(function(){
|
||||
//选中高亮样式
|
||||
$(this).addClass('active');
|
||||
$(this).siblings().removeClass('active');
|
||||
|
||||
var that = $(this);
|
||||
var index = $(this).attr("data-index");
|
||||
|
||||
$("#game_list li").each(function(index,ele){
|
||||
var short = $(this).attr('data-short');
|
||||
$(this).show();
|
||||
if(that.attr('data-index')){
|
||||
if(that.attr('data-index')!=short.charAt(0)){
|
||||
$(this).hide();
|
||||
}
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
//打开弹窗
|
||||
$(".ajax-view").click(function(){
|
||||
//获取游戏列表
|
||||
var url = "{:U('Promote/getPromoteGame')}";
|
||||
var id = $(this).attr('data-id');
|
||||
$.post(url,{id:id},function(res){
|
||||
if(res.code==1){
|
||||
|
||||
$(".pro_promot_select_list a").eq(0).addClass('active');
|
||||
$(".pro_promot_select_list a").eq(0).siblings().removeClass('active');
|
||||
|
||||
var game_list = res.data.game_list;
|
||||
var promote_info = res.data.promote_info;
|
||||
var lis = [];
|
||||
|
||||
$.each(game_list,function(index,ele){
|
||||
if(ele.game_name.length>6){
|
||||
ele.game_name = ele.game_name .substring(0,6)+"..."
|
||||
}
|
||||
lis.push('<li class="fl pro_promot_game_con" data-short="'+ele.short+'">');
|
||||
|
||||
|
||||
if(promote_info['game_ids']==''){
|
||||
lis.push('<input type="checkbox" value="'+ele.id+'" name="game_ids[]" class="fl pro_promot_game_check jsgameid" checked="checked" id="gameCheck'+index+'" />');
|
||||
}else{
|
||||
if(promote_info['game_ids'].indexOf(ele.id)>-1){
|
||||
lis.push('<input type="checkbox" value="'+ele.id+'" name="game_ids[]" class="fl pro_promot_game_check jsgameid" checked="checked" id="gameCheck'+index+'" />');
|
||||
}else{
|
||||
lis.push('<input type="checkbox" value="'+ele.id+'" name="game_ids[]" class="fl pro_promot_game_check jsgameid" id="gameCheck'+index+'" />');
|
||||
}
|
||||
}
|
||||
lis.push('<label for="gameCheck'+index+'" class="fl"></label>');
|
||||
lis.push('<span class="fl pro_promot_game_name">'+ele.game_name+'</span>');
|
||||
lis.push('</li>');
|
||||
});
|
||||
|
||||
$("#game_list").html(lis.join(''));
|
||||
$(".pro_promot_number").text(res.data.promote_info.account);
|
||||
$("#se_promote_id").val(res.data.promote_info.id);
|
||||
$(".pro_promot").css("display","block");
|
||||
|
||||
jsgameid();
|
||||
|
||||
}else{
|
||||
var tip_msg = res.info ? res.info : '操作失败';
|
||||
layer.msg(tip_msg);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
//保存修改
|
||||
$(".pro_promot_btn_confirm").click(function(){
|
||||
$("#ajaxForm").ajaxSubmit(function(res){
|
||||
layer.msg(res.msg);
|
||||
$(".pro_promot").hide();
|
||||
});
|
||||
return false;
|
||||
});
|
||||
|
||||
//关闭弹窗
|
||||
$(".pro_promot_close").click(function(){
|
||||
$(".pro_promot").css("display","none");
|
||||
});
|
||||
//取消修改
|
||||
$(".pro_promot_btn_cancel").click(function(){
|
||||
$(".pro_promot").css("display","none");
|
||||
layer.msg('修改已取消');
|
||||
});
|
||||
|
||||
$(".jsgamecheckall").click(function(){
|
||||
$(this).closest('.jsgamecheckallbox').siblings("#game_list").find(".jsgameid").prop("checked", this.checked);
|
||||
});
|
||||
|
||||
//可申请游戏 全选及全选反选 功能 @author zwm date 20180604
|
||||
function jsgameid(){
|
||||
$(".jsgameid").click(function(){
|
||||
var option = $(this).closest('ul').find(".jsgameid"),
|
||||
checkall = $(this).closest('ul').siblings('.jsgamecheckallbox').find('.jsgamecheckall');
|
||||
option.each(function(i){
|
||||
if(!this.checked){
|
||||
checkall.prop("checked", false);
|
||||
return false;
|
||||
}else{
|
||||
checkall.prop("checked", true);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</block>
|
@ -0,0 +1,171 @@
|
||||
<extend name="Public/base" />
|
||||
|
||||
<block name="body">
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/admin_table.css" media="all">
|
||||
<script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>
|
||||
<script type="text/javascript" src="__STATIC__/provincecityarea/AreaData_min.js"></script><!--
|
||||
<script type="text/javascript" src="__STATIC__/provincecityarea/jquery-1.7.min.js"></script> -->
|
||||
|
||||
<link rel="stylesheet" href="__CSS__/select2.min.css" type="text/css" />
|
||||
<script type="text/javascript" src="__JS__/select2.min.js"></script>
|
||||
<style>
|
||||
.select2-container--default .select2-selection--single {
|
||||
color: #000;
|
||||
resize: none;
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
border-color: #a7b5bc #ced9df #ced9df #a7b5bc;
|
||||
box-shadow: 0px 3px 3px #F7F8F9 inset;height:35px;
|
||||
height:28px;border-radius:3px;font-size:12px;
|
||||
}
|
||||
.select2-container--default .select2-selection--single .select2-selection__rendered {
|
||||
line-height:35px;
|
||||
line-height:28px;
|
||||
}
|
||||
.select2-container--default .select2-selection--single .select2-selection__arrow {
|
||||
height:26px;
|
||||
}
|
||||
.select2-container--default .select2-search--dropdown .select2-search__field {
|
||||
height:26px;line-height:26px;font-size:12px;
|
||||
}
|
||||
.select2-results__option[aria-selected] {font-size:12px;}
|
||||
</style>
|
||||
|
||||
<div class="cf main-place top_nav_list navtab_list">
|
||||
<h3 class="page_title">工会归属申请</h3>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<!-- 标签页导航 -->
|
||||
<div class="tab-wrap">
|
||||
|
||||
<div class="tab-content tabcon1711">
|
||||
<!-- 表单 -->
|
||||
<form id="form" action="{:U('belong_add?model='.$model['id'])}" method="post" class="form-horizontal">
|
||||
<!-- 基础文档模型 -->
|
||||
<div id="tab1" class="tab-pane in tab1">
|
||||
<table border="0" cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="l">会长账号:</td>
|
||||
<td class="r">
|
||||
<select id="promote_id" name="promote_id" class="select_gallery" style="width:120px;">
|
||||
<option value="">请选择会长账号</option>
|
||||
<volist name=":promote_listsOther(1)" id="vo">
|
||||
<option promote_id-id="{$vo.id}" value="{$vo.id}" <if condition="$vo.id eq $_GET['promote_id']">selected=selected</if>>{$vo.account}</option>
|
||||
</volist>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td class="l">工会归属:</td>
|
||||
<td class="r table_radio">
|
||||
<span class="form_radio table_btn">
|
||||
<label >
|
||||
<input type="radio" value="0" name="company_belong" checked="checked" class="company_belong"> 内团
|
||||
</label >
|
||||
<label >
|
||||
<input type="radio" value="1" name="company_belong" class="company_belong"> 外团
|
||||
</label>
|
||||
</span>
|
||||
<!-- <span class="notice-text"></span>-->
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="company_relation">
|
||||
<td class="l">工会关系:</td>
|
||||
<td class="r table_radio">
|
||||
<span class="form_radio table_btn">
|
||||
<label >
|
||||
<input type="radio" value="0" name="company_relation" checked="checked"> 自主开发及维护
|
||||
</label >
|
||||
<label >
|
||||
<input type="radio" value="1" name="company_relation" > 只维护
|
||||
</label>
|
||||
</span>
|
||||
<!-- <span class="notice-text"></span>-->
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="l">备注:</td>
|
||||
<td> <textarea name="remark" class="" placeholder="备注" ></textarea></td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<input type="hidden" name="id" value="{$data['id']}" />
|
||||
|
||||
<div class="form-item cf">
|
||||
<button class="submit_btn ajax-post mlspacing" id="submit" type="submit" target-form="form-horizontal">
|
||||
保存
|
||||
</button>
|
||||
<a class="submit_btn " alt="返回上一页" title="返回上一页" href="javascript:window.history.back();" >
|
||||
返回
|
||||
</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="common_settings">
|
||||
<span class="plus_icon"><span><img src="__IMG__/zwmimages/icon_jia.png"></span></span>
|
||||
<form class="addShortcutIcon">
|
||||
<input type="hidden" name="title" value="{$m_title}">
|
||||
<input type="hidden" name="url" value="Promote/lists/type/1">
|
||||
</form>
|
||||
<a class="ajax-post add-butn <notempty name='commonset'>addSIsetted</notempty>" href="javascript:;" target-form="addShortcutIcon" url="{:U('Think/addShortcutIcon')}"><img src="__IMG__/zwmimages/icon_jia.png"><span><notempty name='commonset'>已添加<else />添加至常用设置</notempty></span></a>
|
||||
</div>
|
||||
|
||||
</block>
|
||||
|
||||
<block name="script">
|
||||
<script type="text/javascript" src="__STATIC__/datetimepicker/js/bootstrap-datetimepicker.min.js"></script><script type="text/javascript" src="__STATIC__/provincecityarea/area1.js"></script>
|
||||
<script type="text/javascript">
|
||||
//导航高亮
|
||||
highlight_subnav('{:U('Promote/belong')}');
|
||||
Think.setValue("game_type_id", {$data.game_type_id|default = 0});
|
||||
Think.setValue("category", {$data.category|default = 0});
|
||||
$(".select_gallery").select2();
|
||||
$(function(){
|
||||
showTab();
|
||||
prov="{:substr($data['bank_area'],0,2)}";
|
||||
city="{:substr($data['bank_area'],2,2)}";
|
||||
ciarea="{:substr($data['bank_area'],4,2)}";
|
||||
|
||||
});
|
||||
//得到地区码
|
||||
function getAreaID(){
|
||||
var area = 0;
|
||||
if($("#seachdistrict").val() != "0"){
|
||||
area = $("#seachdistrict").val();
|
||||
}else if ($("#seachcity").val() != "0"){
|
||||
area = $("#seachcity").val();
|
||||
}else{
|
||||
area = $("#seachprov").val();
|
||||
}
|
||||
return area;
|
||||
}
|
||||
|
||||
|
||||
//根据地区码查询地区名
|
||||
function getAreaNamebyID(areaID){
|
||||
var areaName = "";
|
||||
if(areaID.length == 2){
|
||||
areaName = area_array[areaID];
|
||||
}else if(areaID.length == 4){
|
||||
var index1 = areaID.substring(0, 2);
|
||||
areaName = area_array[index1] + " " + sub_array[index1][areaID];
|
||||
}else if(areaID.length == 6){
|
||||
var index1 = areaID.substring(0, 2);
|
||||
var index2 = areaID.substring(0, 4);
|
||||
areaName = area_array[index1] + " " + sub_array[index1][index2] + " " + sub_arr[index2][areaID];
|
||||
}
|
||||
return areaName;
|
||||
}
|
||||
</script>
|
||||
</block>
|
||||
|
@ -0,0 +1,181 @@
|
||||
<extend name="Public/base" />
|
||||
|
||||
<block name="body">
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/admin_table.css" media="all">
|
||||
<script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>
|
||||
<script type="text/javascript" src="__STATIC__/provincecityarea/AreaData_min.js"></script><!--
|
||||
<script type="text/javascript" src="__STATIC__/provincecityarea/jquery-1.7.min.js"></script> -->
|
||||
|
||||
<link rel="stylesheet" href="__CSS__/select2.min.css" type="text/css" />
|
||||
<script type="text/javascript" src="__JS__/select2.min.js"></script>
|
||||
<style>
|
||||
.select2-container--default .select2-selection--single {
|
||||
color: #000;
|
||||
resize: none;
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
border-color: #a7b5bc #ced9df #ced9df #a7b5bc;
|
||||
box-shadow: 0px 3px 3px #F7F8F9 inset;height:35px;
|
||||
height:28px;border-radius:3px;font-size:12px;
|
||||
}
|
||||
.select2-container--default .select2-selection--single .select2-selection__rendered {
|
||||
line-height:35px;
|
||||
line-height:28px;
|
||||
}
|
||||
.select2-container--default .select2-selection--single .select2-selection__arrow {
|
||||
height:26px;
|
||||
}
|
||||
.select2-container--default .select2-search--dropdown .select2-search__field {
|
||||
height:26px;line-height:26px;font-size:12px;
|
||||
}
|
||||
.select2-results__option[aria-selected] {font-size:12px;}
|
||||
</style>
|
||||
|
||||
<div class="cf main-place top_nav_list navtab_list">
|
||||
<h3 class="page_title">工会归属申请</h3>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<!-- 标签页导航 -->
|
||||
<div class="tab-wrap">
|
||||
|
||||
<div class="tab-content tabcon1711">
|
||||
<!-- 表单 -->
|
||||
<form id="form" action="{:U('belong_edit?model='.$model['id'])}" method="post" class="form-horizontal">
|
||||
<!-- 基础文档模型 -->
|
||||
<div id="tab1" class="tab-pane in tab1">
|
||||
<table border="0" cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="l">会长账号:</td>
|
||||
<td class="r">
|
||||
<select id="promote_id" name="promote_id" class="select_gallery" style="width:120px;">
|
||||
<option value="">请选择会长账号</option>
|
||||
<volist name=":promote_listsOther(1)" id="vo">
|
||||
<option promote_id-id="{$vo.id}" value="{$vo.id}" <if condition="$vo.id eq $data['promote_id']">selected=selected</if>>{$vo.account}</option>
|
||||
</volist>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td class="l">工会归属:</td>
|
||||
<td class="r table_radio">
|
||||
<span class="form_radio table_btn">
|
||||
<label >
|
||||
<input type="radio" value="0" name="company_belong" <?php if($data['company_belong'] ==0):?>
|
||||
checked="checked"
|
||||
<?php endif?> class="company_belong"> 内团
|
||||
</label >
|
||||
<label >
|
||||
<input type="radio" value="1" name="company_belong" <?php if($data['company_belong'] ==1):?>
|
||||
checked="checked"
|
||||
<?php endif?> class="company_belong"> 外团
|
||||
</label>
|
||||
</span>
|
||||
<!-- <span class="notice-text"></span>-->
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="company_relation">
|
||||
<td class="l">工会关系:</td>
|
||||
<td class="r table_radio">
|
||||
<span class="form_radio table_btn">
|
||||
<label >
|
||||
<input type="radio" value="0" name="company_relation" <?php if($data['company_relation'] ==0):?>
|
||||
checked="checked"
|
||||
<?php endif?>
|
||||
> 自主开发及维护
|
||||
</label >
|
||||
<label >
|
||||
<input type="radio" value="1" name="company_relation" <?php if($data['company_relation'] ==1):?>
|
||||
checked="checked"
|
||||
<?php endif?>> 只维护
|
||||
</label>
|
||||
</span>
|
||||
<!-- <span class="notice-text"></span>-->
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="l">备注:</td>
|
||||
<td> <textarea name="remark" class="" placeholder="备注" >{$data['remark']}</textarea></td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<input type="hidden" name="id" value="{$data['id']}" />
|
||||
|
||||
<div class="form-item cf">
|
||||
<button class="submit_btn ajax-post mlspacing" id="submit" type="submit" target-form="form-horizontal">
|
||||
保存
|
||||
</button>
|
||||
<a class="submit_btn " alt="返回上一页" title="返回上一页" href="javascript:window.history.back();" >
|
||||
返回
|
||||
</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="common_settings">
|
||||
<span class="plus_icon"><span><img src="__IMG__/zwmimages/icon_jia.png"></span></span>
|
||||
<form class="addShortcutIcon">
|
||||
<input type="hidden" name="title" value="{$m_title}">
|
||||
<input type="hidden" name="url" value="Promote/lists/type/1">
|
||||
</form>
|
||||
<a class="ajax-post add-butn <notempty name='commonset'>addSIsetted</notempty>" href="javascript:;" target-form="addShortcutIcon" url="{:U('Think/addShortcutIcon')}"><img src="__IMG__/zwmimages/icon_jia.png"><span><notempty name='commonset'>已添加<else />添加至常用设置</notempty></span></a>
|
||||
</div>
|
||||
|
||||
</block>
|
||||
|
||||
<block name="script">
|
||||
<script type="text/javascript" src="__STATIC__/datetimepicker/js/bootstrap-datetimepicker.min.js"></script><script type="text/javascript" src="__STATIC__/provincecityarea/area1.js"></script>
|
||||
<script type="text/javascript">
|
||||
//导航高亮
|
||||
highlight_subnav('{:U('Promote/belong')}');
|
||||
Think.setValue("game_type_id", {$data.game_type_id|default = 0});
|
||||
Think.setValue("category", {$data.category|default = 0});
|
||||
$(".select_gallery").select2();
|
||||
$(function(){
|
||||
showTab();
|
||||
prov="{:substr($data['bank_area'],0,2)}";
|
||||
city="{:substr($data['bank_area'],2,2)}";
|
||||
ciarea="{:substr($data['bank_area'],4,2)}";
|
||||
|
||||
});
|
||||
//得到地区码
|
||||
function getAreaID(){
|
||||
var area = 0;
|
||||
if($("#seachdistrict").val() != "0"){
|
||||
area = $("#seachdistrict").val();
|
||||
}else if ($("#seachcity").val() != "0"){
|
||||
area = $("#seachcity").val();
|
||||
}else{
|
||||
area = $("#seachprov").val();
|
||||
}
|
||||
return area;
|
||||
}
|
||||
|
||||
|
||||
//根据地区码查询地区名
|
||||
function getAreaNamebyID(areaID){
|
||||
var areaName = "";
|
||||
if(areaID.length == 2){
|
||||
areaName = area_array[areaID];
|
||||
}else if(areaID.length == 4){
|
||||
var index1 = areaID.substring(0, 2);
|
||||
areaName = area_array[index1] + " " + sub_array[index1][areaID];
|
||||
}else if(areaID.length == 6){
|
||||
var index1 = areaID.substring(0, 2);
|
||||
var index2 = areaID.substring(0, 4);
|
||||
areaName = area_array[index1] + " " + sub_array[index1][index2] + " " + sub_arr[index2][areaID];
|
||||
}
|
||||
return areaName;
|
||||
}
|
||||
</script>
|
||||
</block>
|
||||
|
Loading…
Reference in New Issue