Merge branch 'feature/ylw-06-10' of wmtx/platform into release

电子合同展示设置 针对工会,市场部总监的信息可展示的情况需要做成配置
master
廖金灵 4 years ago committed by Gogs
commit 109ca9d159

@ -273,6 +273,7 @@ class PromoteCompanyController extends ThinkController
));
}
} else {
$this->assign('serviceAgreements', M('service_agreement', 'tab_')->select());
$this->assign('commonset', M('Kuaijieicon')->where(['url' => 'PromoteCompany/add'])->find());
$this->meta_title = '新增推广公司';
$this->display();
@ -304,6 +305,12 @@ class PromoteCompanyController extends ThinkController
$this->assign('data', $data);
$this->display();
}
public function marketingDirectorShow($ids=[], $isShow=0)
{
$upt = M('promote_company','tab_')->where(['id'=>['in', $ids]])->save(['marketing_director_show'=>$isShow]);
return $upt ? $this->success('更新成功'): $this->error('更新失败');
}
//编辑
@ -378,7 +385,7 @@ class PromoteCompanyController extends ThinkController
if($data['resources'] == ''){
$data['resources'] ="[]";
}
$this->assign('serviceAgreements', M('service_agreement', 'tab_')->select());
$this->assign('data', $data);
$this->display();
}
@ -558,4 +565,91 @@ WHERE old_change_promote_id in ({$promoteData})";
}
public function serviceAgreementList($row = 10, $p = 1)
{
$map = [];
$map['_string'] = " 1=1 ";
if (isset($_GET['time-start'])) {
$map['_string'] .= " and created_time >= " . strtotime($_GET['time-start']);
}
if (isset($_GET['time-end'])) {
$map['_string'] .= " and created_time < " . (strtotime($_GET['time-end']) + 86400);
}
if (isset($_GET['type'])) {
$map['type'] = $_GET['type'];
}
if (!empty($_GET['title'])) {
$map['title'] = ['like', "%{$_GET['title']}%"];
}
$list = M('service_agreement', 'tab_')
->field("tab_service_agreement.*, group_concat(distinct(tab_promote_company.company_name)) as company_name")
->join('tab_promote_company on tab_promote_company.service_agreement_show = tab_service_agreement.id', 'LEFT')->where($map)->group('tab_service_agreement.id asc')->page($p, $row)->order("status desc")->select();
$count = M('service_agreement', 'tab_')->where($map)->count();
$page = set_pagination($count, $row);
if ($page) {
$this->assign('_page', $page);
}
$this->assign('list_data', $list);
$this->display('service_agreement_list');
}
public function serviceAgreementSave($id=0, $delete=0)
{
if (IS_POST) {
if (!empty(I('ids'))) {
$ids = is_array(I('ids')) ? I('ids') : [I('ids')];
if ($delete) {
// 获取默认合同id
$defaultService = M('service_agreement', 'tab_')->where(['status'=>2])->find();
if(in_array($defaultService['id'], $ids)) {
return $this->error('无法删除默认模板');
}
$usingService = M('promote_company', 'tab_')->where(['service_agreement_show'=>['in', $ids]])->find();
if (!empty($usingService)) return $this->error('有正在使用该服务合同的公司,无法删除');
$result = M('service_agreement', 'tab_')->where(['id'=>['in', $ids]])->delete();
return $result ? $this->success('删除完成') : $this->error('删除失败');
}
}
if (empty($_POST['name']) || empty($_POST['content'])) {
return $this->error('请填写完整内容');
}
if ($id) {
$result = M('service_agreement', 'tab_')->where(['id'=>$id])->save($_POST);
return $result ? $this->success('更新完成') : $this->error('更新失败');
} else {
$data = $_POST;
$data['creator'] = is_login();
$data['created_time'] = time();
$result = M('service_agreement', 'tab_')->add($data);
return $result ? $this->success('生成协议完成') : $this->error('生成协议失败');
}
} else {
if (!empty($id)) {
if ($delete) {
$ids = [$id];
// 获取默认合同id
$defaultService = M('service_agreement', 'tab_')->where(['status'=>2])->find();
if(in_array($defaultService['id'], $ids)) {
return $this->error('无法删除默认模板');
}
$usingService = M('promote_company', 'tab_')->where(['service_agreement_show'=>['in', $ids]])->find();
if (!empty($usingService)) return $this->error('有正在使用该服务合同的公司,无法删除');
$result = M('service_agreement', 'tab_')->where(['id'=>['in', $ids]])->delete();
return $result ? $this->success('删除完成') : $this->error('删除失败');
}
$info = M('service_agreement', 'tab_')->where(['id'=>$id])->find();
if (empty($info)) return $this->error('未找到协议');
$this->assign('info', $info);
}
$this->display('service_agreement_save');
}
}
public function serviceAgreementSetDefault($id)
{
M('service_agreement', 'tab_')->where('id > 0')->save(['status'=>1]);
M('service_agreement', 'tab_')->where(['id'=>$id])->save(['status'=>2]);
return $this->success('设置完成');
}
}

@ -105,6 +105,20 @@
</div>
</td>
</tr>
<tr>
<td class="l">是否展示合同服务协议:</td>
<td class="r" >
<div class="input-list input-list-server search_label_rehab" style="margin:0;">
<select id="service_agreement_show" name="service_agreement_show" class="select_gallery" style="width: 215px;">
<!-- <option value="">请选择是否签署合同</option> -->
<option value="0" selected>不显示</option>
<?php foreach($serviceAgreements as $index => $service):?>
<option value="{$service.id}" <?php if($index == 0):?>selected<?php endif;?>>{$service.name}</option>
<?php endforeach;?>
</select>
</div>
</td>
</tr>
<tr>
<td class="l">团体归属:</td>
<td class="r" >
@ -204,7 +218,20 @@
</div>
</td>
</tr>
<tr>
<td class="l noticeinfo">市场总监信息展示:</td>
<td class="r table_radio">
<span class="form_radio table_btn">
<label>
<input type="radio" class="inp_radio" value="1" name="marketing_director_show" >展示
</label>
<label>
<input type="radio" class="inp_radio" value="2" name="marketing_director_show" checked> 隐藏
</label>
</span>
<span class="notice-text"></span>
</td>
</tr>
</tbody>
</table>
<table border="1" style="width: 600px;text-align: center;" cellspacing="0" cellpadding="0" id="docShow">
@ -316,7 +343,9 @@
"ali_user":["nocheck","支付宝真实姓名不能为空"],
"ali_account":["nocheck","支付宝登陆账号不能为空"],
"content":["nocheck"],
"status":["nocheck","","radio"]
"status":["nocheck","","radio"],
"service_agreement_show":["nocheck","","select"],
"marketing_director_show":["nocheck","","radio"],
}
var cres = CIC.checkAddInput(obj);
if(!cres){

@ -109,6 +109,20 @@
</div>
</td>
</tr>
<tr>
<td class="l">是否展示合同服务协议:</td>
<td class="r" >
<div class="input-list input-list-server search_label_rehab" style="margin:0;">
<select id="service_agreement_show" name="service_agreement_show" class="select_gallery" style="width: 215px;">
<!-- <option value="">请选择是否签署合同</option> -->
<option value="0" selected>不显示</option>
<?php foreach($serviceAgreements as $index => $service):?>
<option value="{$service.id}" <?php if($service['id'] == $data['service_agreement_show']):?>selected<?php endif;?>>{$service.name}</option>
<?php endforeach;?>
</select>
</div>
</td>
</tr>
<tr>
<td class="l">团体归属:</td>
<td class="r" >
@ -213,7 +227,22 @@
</span>
</td>
</tr>
<tr>
<td class="l noticeinfo">市场总监信息展示:</td>
<td class="r table_radio">
<span class="form_radio table_btn">
<label>
<input type="radio" class="inp_radio" value="1" name="marketing_director_show" <if condition="$data['marketing_director_show'] eq 1">checked
</if>> 展示
</label>
<label>
<input type="radio" class="inp_radio" value="2" name="marketing_director_show" <if condition="$data['marketing_director_show'] eq 2">checked
</if>> 隐藏
</label>
</span>
<span class="notice-text"></span>
</td>
</tr>
</tbody>
</table>
<table border="1" style="width: 600px;text-align: center;margin:10px 0 0 60px;" cellspacing="0" cellpadding="0" id="docShow">
@ -385,7 +414,9 @@
"ali_user":[["nocheck",true],"支付宝真实姓名不能为空"],
"ali_account":[["nocheck",true],"支付宝登陆账号不能为空"],
"content":[["nocheck",true]],
"status":["nocheck","","radio"]
"status":["nocheck","","radio"],
"service_agreement_show":["nocheck","","select"],
"marketing_director_show":["nocheck","","radio"],
}
var cres = CIC.checkAddInput(obj);
if(!cres){

@ -34,14 +34,18 @@
padding: 3px;
height: 30px;
}
.clearfix:after {
content:"";
display: block;
clear:both;
}
</style>
<div class="cf main-place top_nav_list navtab_list">
<h3 class="page_title">{$meta_title}</h3>
<p class="description_text">说明:该功能是用于录入工会所属的推广公司名称 / 如需删除公司请先将公司底下会长移走后方可操作</p>
</div>
<div class="cf top_nav_list">
<div class="cf top_nav_list clearfix" style="display: inline;">
<div class="fl button_list">
<div class="tools">
<a class="" href="{:U('add')}"><span class="button_icon button_icon1"></span>新增</a>
@ -91,6 +95,15 @@
</div>
</div>
<div class="cf top_nav_list clearfix">
<div class="fl button_list">
<div class="tools">
<a class="ajax-post" target-form="ids" url="{:U('PromoteCompany/marketingDirectorShow', ['isShow'=>1])}"><span class="button_icon "></span>展示市场总监信息</a>
<a class="ajax-post" target-form="ids" url="{:U('PromoteCompany/marketingDirectorShow', ['isShow'=>2])}"><span class="button_icon "></span>隐藏市场总监信息</a>
</div>
</div>
</div>
<!-- 数据列表 -->
<div class="data_list data_game_list">
<div class="">
@ -98,6 +111,9 @@
<!-- 表头 -->
<thead>
<tr>
<th class="">
<input class="check-all" type="checkbox">
</th>
<th style="width:10%;min-width:150px;">操作</th>
<th>合作方名称</th>
<th>对应平台</th>
@ -125,6 +141,7 @@
<else />
<volist name="listData" id="data" key="companykey">
<tr>
<td rowspan="{$data.row}"><input class="ids" type="checkbox" value="{$data['id']}" name="ids[]"></td>
<td rowspan="{$data.row}">
<a href="{:U('view',array('id'=>$data['id']))}">查看</a>
<a href="{:U('edit',array('id'=>$data['id']))}">编辑</a>

@ -0,0 +1,213 @@
<extend name="Public/base"/>
<block name="body">
<link rel="stylesheet" href="__CSS__/select2.min.css" type="text/css"/>
<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;}
</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">
<a class="confirm ajax-post" id="dtnn" target-form="ids" url="{:U('PromoteCompany/serviceAgreementSave', ['delete'=>1])}"><span class="button_icon button_icon2 "></span>批量删除</a>
</div>
<!-- 高级搜索 -->
<div class="jssearch fl cf search_list">
<div class="input-list">
<a class="sch-btn" href="{:U('PromoteCompany/serviceAgreementSave')}">
新增
</a>
</div>
</div>
</div>
<!-- 数据列表 -->
<div class="data_list">
<div class="">
<table>
<!-- 表头 -->
<thead>
<tr>
<th class="">
<input class="check-all" type="checkbox">
</th>
<th>ID</th>
<th>标题</th>
<th>是否默认合同</th>
<th>应用公司</th>
<th>操作人</th>
<th>操作时间</th>
<th>操作</th>
</tr>
</thead>
<!-- 列表 -->
<tbody>
<empty name="list_data">
<td colspan="8" class="text-center">aOh! 暂时还没有内容!</td>
<else/>
<volist name="list_data" id="data">
<tr>
<td><input class="ids" type="checkbox" value="{$data['id']}" name="ids[]"></td>
<td>{$data.id}</td>
<td>{$data.name}</td>
<td><?php echo $data['status'] == 1 ? '否' : '是';?></td>
<td style="width: 500px;">
<div style="height: 100px;overflow-x: hidden;overflow-y: scroll;">
{$data.company_name}
</div>
</td>
<td>{:get_admin_nickname($data['creator'])}</td>
<td>{$data.created_time|date='Y-m-d H:i:s',###}</td>
<td>
<?php if ($data['status'] == 1):?>
<a class="ajax-get" href="{:U('PromoteCompany/serviceAgreementSetDefault',array('id'=>$data['id']))}">设置默认 </a>
<?php endif;?>
<a href="{:U('PromoteCompany/serviceAgreementSave',array('id'=>$data['id']))}">编辑 </a>
<a class="ajax-get" href="{:U('PromoteCompany/serviceAgreementSave',array('id'=>$data['id'], 'delete'=>1))}">删除 </a>
</td>
</tr>
</volist>
</empty>
</tbody>
</table>
</div>
</div>
<div class="page">
{$_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="Member/login_record">
</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">
<link href="__STATIC__/datetimepicker/css/datetimepicker.css" rel="stylesheet" type="text/css">
<php>if(C('COLOR_STYLE')=='blue_color') echo '
<link href="__STATIC__/datetimepicker/css/datetimepicker_blue.css" rel="stylesheet" type="text/css">
';
</php>
<link href="__STATIC__/datetimepicker/css/dropdown.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="__STATIC__/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
<script type="text/javascript" src="__STATIC__/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js"
charset="UTF-8"></script>
<script src="__STATIC__/layer/layer.js" type="text/javascript"></script>
<script type="text/javascript">
</script>
<script type="text/javascript">
//导航高亮
highlight_subnav('{:U('PromoteCompany/serviceAgreementList')}');
$(function () {
<volist name = ":I('get.')" id = "vo" > Think.setValue('{$key}', "{$vo}");
</volist >
$(".select_gallery").select2();
//搜索功能
$("#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;
}
var start = $("#time-start").val();
var end = $("#time-end").val();
if (start !='' && end != ''){
if (Date.parse(start) > Date.parse(end)){
layer.msg('开始时间必须小于等于结束时间');
return false;
}
}
window.location.href = url;
});
//回车自动提交
$('.jssearch').find('input').keyup(function (event) {
if (event.keyCode === 13) {
$("#search").click();
}
});
$('#time-start').datetimepicker({
format: 'yyyy-mm-dd',
language: "zh-CN",
minView: 2,
autoclose: true
});
$('#datetimepicker').datetimepicker({
format: 'yyyy-mm-dd',
language: "zh-CN",
minView: 2,
autoclose: true,
pickerPosition: 'bottom-left'
})
$(".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();
});
var a = $('.i_list_li li a');
$('#i_list_id').on('keyup', function (event) {
var val = $.trim($(this).val()).toLowerCase();
$('#i_list_idh').val(val);
});
$("#i_list_li").find("a").each(function () {
$(this).click(function () {
var text = $.trim($(this).text()).toLowerCase();
$("#i_list_id").val(text);
$('#i_list_idh').val(text);
})
});
})
</script>
</block>

@ -0,0 +1,52 @@
<extend name="Public/base" />
<!-- 管理员用户组新增和编辑页面 -->
<block name="body">
<form action="{:U('PromoteCompany/serviceAgreementSave')}" enctype="application/x-www-form-urlencoded" method="POST"
class="form-horizontal form_info_ml">
<div class="formtitle"><span>服务协议新增</span></div>
<ul class="form_info ">
<input type="hidden" name="id" value="{$info.id}" />
<li>
<label>标题</label>
<input type="text" name="name" maxlength="20" value="{$info['name']}">
</li>
<li>
<label>关键词</label>
<span>{sn}:合同编号&nbsp;&nbsp;&nbsp;&nbsp;{time}:合同开始时间&nbsp;&nbsp;&nbsp;&nbsp;{endTime}:合同结束时间 </span>
<div>
&nbsp;&nbsp;&nbsp;&nbsp;{account}:签约者账号
&nbsp;&nbsp;&nbsp;&nbsp;{email}:签约者邮箱
&nbsp;&nbsp;&nbsp;&nbsp;{realname}:签约者姓名
&nbsp;&nbsp;&nbsp;&nbsp;{phone}:签约者电话
&nbsp;&nbsp;&nbsp;&nbsp;{address}:签约者地址
</div>
</li>
<li>
<label>内容</label>
<span class="form_textarea">
<textarea name="content">{$info.content}</textarea>
{:hook('adminArticleEdit', array('name'=>'content','value'=>$info['content']))}
</span>
</textarea>
</li>
<li>
<label>&nbsp;</label><input type="submit" id="submit" value="确认保存" target-form="form-horizontal" class="form_btn ajax-post">
</li>
</ul>
</form>
<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="AuthManager/index">
</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">
highlight_subnav('{:U('PromoteCompany/serviceAgreementList')}');
</script>
</block>

@ -46,6 +46,11 @@ class BaseController extends HomeController
define('G_SETTLEMENT_GRADE', 'sub_status,third_status');
}
if ($loginer['company_id']) {
$company = M('promote_company', 'tab_')->where(['id'=>$loginer['company_id']])->find();
$this->assign('company', $company);
}
$this->canViewUserRecharge = $this->promoteCan('view-user-recharge');
$this->checkUrlPermission();

@ -352,7 +352,14 @@ class SafeController extends BaseController{
$this->assign('addr',json_decode($address)[1]);
}
$promoteInfo['address'] = json_decode($address);
// 获取推广员的公司
$promoteCompany = M('promote_company', 'tab_')->where(['id'=>$promoteInfo['company_id']])->find();
if ($promoteCompany['service_agreement_show'] > 0) {
$serviceAgreement = M('service_agreement', 'tab_')->where(['id'=>$promoteCompany['service_agreement_show']])->find();
$serviceAgreement['content'] = $this->renderServiceAgreement($serviceAgreement['content'], $promoteInfo);
$this->assign("serviceAgreement",$serviceAgreement);
}
$this->assign("promoteCompany",$promoteCompany);
$this->assign("ver_status",$promoteInfo['ver_status']);
$this->assign('promoteinfo', $promoteInfo);
@ -475,37 +482,63 @@ class SafeController extends BaseController{
$this->ajaxReturn($res);
}
public function safeDocument() {
$realname = $_REQUEST['realname'];
$phone = $_REQUEST['phone'];
$email = $_REQUEST['email'];
$address = $_REQUEST['address'];
if (empty($realname)) {
$realname = '您未填写真实姓名';
}
if (empty($email)) {
$email = '您未填写联系邮箱';
}
if (empty($address)) {
$address = '您未填写注册地址';
}
if (empty($phone)) {
$phone = '您未填写联系号码';
}
$time = time();
$loginPromote = $this->getLoginPromote();
$sn = date('Ymd') . '-' . strtoupper(substr(md5($loginPromote['id']), 8, 16));
$endTime = date('Y-m-d',strtotime('+1 year'));
$this->assign('time',date('Y-m-d',$time));
$this->assign('endTime',$endTime);
$this->assign('sn',$sn);
$this->assign('realname',$realname);
$this->assign('email',$email);
$this->assign('address',$address);
$this->assign('phone',$phone);
public function safeDocument($templateId=0) {
$template = M('service_agreement', 'tab_')->where(['id'=>$templateId])->find();
$promoteInfo = $this->getLoginPromote();
$sn = date('Ymd') . '-' . strtoupper(substr(md5($promoteInfo['id']), 8, 16));
$content = $template['content'];
$content = str_replace("{time}", date('Y-m-d'), $content);
$content = str_replace("{sn}", $sn, $content);
$content = str_replace("{endTime}", date('Y-m-d',strtotime('+1 year')), $content);
$content = str_replace("{account}", $promoteInfo['account'], $content);
$content = str_replace("{email}", $promoteInfo['email'], $content);
$content = str_replace("{realname}", $promoteInfo['real_name'], $content);
$content = str_replace("{phone}", $promoteInfo['mobile_phone'], $content);
$content = str_replace("{address}", json_decode($promoteInfo['address'],true)[1] ?? '', $content);
// $realname = $_REQUEST['realname'];
// $phone = $_REQUEST['phone'];
// $email = $_REQUEST['email'];
// $address = $_REQUEST['address'];
// if (empty($realname)) {
// $realname = '您未填写真实姓名';
// }
// if (empty($email)) {
// $email = '您未填写联系邮箱';
// }
// if (empty($address)) {
// $address = '您未填写注册地址';
// }
// if (empty($phone)) {
// $phone = '您未填写联系号码';
// }
// $time = time();
// $loginPromote = $this->getLoginPromote();
// $endTime = date('Y-m-d',strtotime('+1 year'));
// $this->assign('time',date('Y-m-d',$time));
// $this->assign('endTime',$endTime);
// $this->assign('sn',$sn);
// $this->assign('realname',$realname);
// $this->assign('email',$email);
// $this->assign('address',$address);
// $this->assign('phone',$phone);
$this->assign('content', $content);
$this->display();
}
private function renderServiceAgreement($content, $promoteInfo)
{
$content = str_replace("{account}", $promoteInfo['account'], $content);
$content = str_replace("{email}", $promoteInfo['email'], $content);
$content = str_replace("{real_name}", $promoteInfo['real_name'], $content);
$content = str_replace("{mobile_phone}", $promoteInfo['mobile_phone'], $content);
$content = str_replace("{addr}", $promoteInfo['addr'], $content);
return $content;
}
public function promoteLogs() {
$page = intval(I('p', 1));
$row = intval(I('row', 10));

@ -151,10 +151,10 @@
<div class="trunk_con">
<!--头部个人信息-->
<div class="header">
<if condition="$loginer['level'] eq 1 and $loginer['company_belong'] eq 1">
<!-- <div style="position: absolute;padding-left: 1.5%;">
<if condition="$company['marketing_director_show'] eq 1">
<div style="position: absolute;padding-left: 1.5%;">
<span class="pinfo" style="color: #1239f2">市场总监联系方式:<span>13637338237(李总监)</span></span>
</div> -->
</div>
</if>
<div class="header-right">
<span class="pinfo jstime">今天是:<span></span></span>

@ -302,12 +302,14 @@
<span id="confirm_password_tip"></span></td>
</tr>
<?php if ($promoteCompany['service_agreement_show'] > 0):?>
<tr>
<td class="l"></td>
<!-- <td class="r"><input type="checkbox" class="input txt" id="agree" style="margin-left:20px" name="agree" >我已仔细阅读,并同意<a href="{:U('safe/safeDocument',array('username'=>$promoteinfo['account'],'email'=>$promoteinfo['email'],'realname'=>$promoteinfo['real_name'],'phone'=>$promoteinfo['mobile_phone'],'address'=>$promoteinfo['address']))}"><span style="color:#26c7dbd4" id="read">《游戏推广服务框架协议》</span></a> -->
<td class="r"><input type="checkbox" class="input txt" id="agree" style="margin-left:20px" name="agree" >我已仔细阅读,并同意<span style="color:#26c7dbd4" id="read" onclick="read_detail('{$promoteinfo.account}','{$promoteinfo.email}','{$promoteinfo.real_name}','{$promoteinfo.mobile_phone}','{$addr}')">《游戏推广服务框架协议</span>
<td class="r"><input type="checkbox" class="input txt" id="agree" style="margin-left:20px" name="agree" >我已仔细阅读,并同意<span style="color:#26c7dbd4" id="read" onclick="read_detail('{$serviceAgreement['name']}', {$serviceAgreement['id']})">《'{$serviceAgreement['name']}'</span>
<span id="confirm_password_tip"></span></td>
</tr>
<?php endif;?>
<tr>
<td class="l"></td>
<td class="r">
@ -333,19 +335,18 @@
<script src="__STATIC__/layer/layer.js" type="text/javascript"></script>
<script type="text/javascript" src="__STATIC__/layer/extend/layer.ext.js"></script>
<script>
function read_detail(username,email,realname,phone,address) {
console.log('xx')
console.log(address)
function read_detail(name, templateId) {
layer.open({
type: 2,
title: "游戏推广服务框架协议",
title: name,
shadeClose: true,
shade: 0.8,
area: ['70%', '82%'],
btn:['同意'],
content: ['index.php?s=/Home/safe/safeDocument/username/'+ username +'/email/' + email + '/realname/' + realname + '/phone/' + phone +'/address/' + address + '', 'no'],
content: "{:U('Safe/safeDocument')}&templateId="+templateId,
yes:function(index) {
window.localStorage.setItem('checked','checked');
$('#agree').prop('checked',true);
layer.close(index);
}
});

@ -11,246 +11,7 @@ and open the template in the editor.
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script type="text/javascript" src="__JS__/jquery-1.11.1.min.js"></script>
</head>
<style>
.docContain{
display: flex;
flex-direction: column;
margin-left:25%;
width:50%;
align-content: space-between;
align-items: center;
align-content: center;
}
.title{
display: flex;
flex-direction: column;
align-content: space-between;
align-items: center;
align-content: center;
height:520px;
}
.text {
display: flex;
flex-direction: column;
align-content: space-between;
width:90%;
}
table {
border-collapse: collapse;
}
th,td {
width: 100px;
height: 40px;
border: 1px solid black;
font-size: 12px;
text-align: center;
}
</style>
<body>
<div class="docContain" style="overflow:scroll; width:800px; height:800px;">
<div class="title"><h2>游戏推广服务框架协议</h1></div>
<div class="text">
<p>本协议由以下双方于<span>{$time}</span>签订:</p>
<p>合同编号:{$sn}</p>
<p style="font-weight: bold">甲方:海南万盟天下科技有限公司</p>
<p>注册地址海南省海口市南海大道26号海口国家高新区创业孵化中心A楼5层A1-1268室</p>
<p>联系电话13067391751</p>
<p>联系人:雷丽华</p>
<p>邮箱号383166987@qq.com</p>
<p>乙方:{$realname}</p>
<p>注册地址:{$address}</p>
<p>联系电话:{$phone}</p>
<p>联系人:{$realname}</p>
<p>邮箱号:{$email}</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;经甲乙双方协商一致,在平等互利的基础上,就乙方推广甲方拥有知识产权
或合法授权的游戏(以下简称“产品”)达成如下协议:</p>
<p style="font-weight: bold">1 合作内容及合作期限</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1.1合作内容:在双方合作期间,乙方以正规合法途径推广甲方拥有知识产
权或合法授权的游戏产品,为甲方产品导入用户,甲方根据乙方导入用户产生的
消费向乙方支付推广服务费。</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1.2本协议有效期自<span>{$time}</span>起至<span>{$endTime}</span>止。</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1.3本协议为甲乙双方之间推广服务的框架性协议,具体合作游戏的付费金
额、渠道等未尽事宜详见双方签订的附件《游戏推广服务协议》,甲乙双方在合
作期限内签订的所有附件《游戏推广服务协议》均为本框架协议的组成部分。乙方使用甲方的合作渠道应当严格遵守合作渠道已经发布的或将来可能发布或修
订的各种规则制度、条款、帮助、提示文档等规定,若乙方有存在违反的行为乙
方愿意接受该规定的处理措施合作渠道中新发布或修订的内容经本协议8.3
条通知送达后若乙方未按照8.3条提出异议并停止使用合作渠道的,视为乙方接
受并同意遵守合作渠道发布的内容,关于异议部分双方无法协商一致的,甲方有
权单方终止本协议。附件《游戏推广服务协议》或本框架协议组成部分与本框架
协议约定不符的,以最新签订的《游戏推广服务协议》或协议为准。</p>
<p style="font-weight: bold">2 甲方的权利及义务</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2.1甲方负责合作产品内容及运营的合法性。</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2.2甲方负责维护各推广渠道的产品的内容更新;甲方负责产品内容及其传
播的合法性、适当性。甲方承诺其享有提供给乙方的全部产品内容及其组成部分
的相关知识产权等权利或有合法授权。</p>
<p style="font-weight: bold">3 乙方的权利及义务</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3.1乙方需利用自身资源将潜在用户导入到甲方提供的游戏系统内,推广甲
方的产品,提升甲方产品的付费用户的导入,对于甲方产品以外的推广,甲方将
不予支付推广服务费。</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3.2乙方应自行负责并保证其组织、推广活动的合法性,乙方组织、推广甲
方产品活动不得有虚假或者引人误解的内容,不得进行不正当竞争行为,不得欺
骗、误导玩家,不得损害甲方商誉或侵害任何第三方合法权益等行为。</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3.3乙方违反3.2条规定引发的一切争议、责任由乙方自行负责处理、承担,
与甲方无关;若因此损害甲方声誉的或造成甲方损失的,乙方应承担赔偿责任。
若甲方发现乙方违反3.2条规定,甲方有权暂停结算,因此引起的一切纠纷和责
任均由乙方承担,甲方有权直接从任何应支付给乙方的款项中直接扣除,并且甲
方有权立即终止本协议。</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3.4乙方保证其推广成果的真实有效,否则甲方有权利拒绝支付相应部分的
推广服务费。</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3.5未经甲方事先书面同意,乙方不得将本协议项下的任何权利或义务全部或部分转让、分包或委托给任何第三方,否则甲方有权随时提前终止本协议并追
究乙方的违约责任。甲方有权将本协议项下的任何权利或义务全部或部分转让给
其他公司,而无须另行征得乙方的同意。</p>
<p style="font-weight: bold">4 结算方式</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4.1甲方按照乙方完成的每款产品推广付费金额支付服务费。乙方的推广服
务费=推广付费总金额×(乙方推广服务费比例+补点比例×1-税费费率),
每款产品推广服务费比例、税费费率、补点比例等由甲乙双方在《游戏推广服务
协议》中另行约定。</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4.2结算周期:按自然月进行结算,本协议合作期内合作游戏有效用户产生
的游戏运营收入后的次月前七个工作日内对账(如遇节假休息日则顺延),乙方
在甲方指定的后台核对乙方导入的付费总金额后申请结算(数据以甲方指定的后
台为准),甲方将上一月产生的属于乙方的合作分成费用款项向乙方分别出具结
算单乙方在收到并确认甲方结算单后的5个工作日内乙方在结算单加盖公章
(公章公司名称必须与协议公司名称完全一致)并向甲方开具等额发票,发票类
型为增值税专用发票(内容为信息服务费),发票抬头为“海南万盟天下科技有
限公司”,盖好章的结算单与发票一并交付给甲方。</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4.3推广服务费支付时间:甲方在收到乙方开具的正式发票及加盖公章的结
算单后5日内将双方确认的应结款项支付到协议约定的乙方账户号。如遇节假
日或休息日则相应顺延,或者其他特殊情况应提前通知后可以延后打款,且甲方
无需支付滞纳金)</p>
<p>甲乙双方账户信息如下:</p>
<table>
<tbody>
<tr>
<th></th>
<th>甲方信息</th>
<th>乙方信息</th>
</tr>
<tr>
<th>纳税人识别号</th>
<th>海南万盟天下科技有限公司</th>
<th></th>
</tr>
<tr>
<th>开户行</th>
<th>中国工商银行股份有限公司
海口海德路支行</th>
<th></th>
</tr>
<tr>
<th>地址</th>
<th>海南省海口市南海大道26号
海口国家高新区创业孵化中
心A楼5层A1-1268室</th>
<th></th>
</tr>
<tr>
<th>电话</th>
<th>13067391751</th>
<th></th>
</tr>
<tr>
<th>银行账号</th>
<th>2201021709200030067</th>
<th></th>
</tr>
</tbody>
</table>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4.4乙方不得擅自变更上述收款账户,如确需变更账户,乙方应当在变更前
书面通知甲方,经甲方同意后就变更账户事项双方另行签订补充或变更协议,协
议生效后变更账户方得以生效,否则甲方就乙方变更前的账户进行的所有支付均
视为乙方已收到甲方的支付款项,由乙方自行承担相应法律后果,乙方不得向甲
方再主张支付。</p>
<p style="font-weight: bold">5 保密条款</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;5.1未经对方书面许可或本协议另有约定,任何一方禁止向与履行本协议无
关的任何第三方或雇员泄露本协议的条款的任何内容以及本协议的签订及履行
情况,以及通过签订和履行本协议过程中获知的对方及对方关联公司或对方提供
的任何信息和数据资料。但确为本协议履行之必需任何一方(以下简称披露方)
可向其法律、会计、商业及其它顾问、授权雇员(统称“接收方代表”)披露前
述信息,披露前提是披露方须提前明确告知接收方代表关于本协议的保密义务,
接收方代表明确同意承担与本协议中所规定的保密义务相同或更严格的保密义
务,如果接收方代表违反保密义务的与披露方连带承担赔偿责任或违约责任。</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;5.2本协议有效期内及终止后5年内保密条款仍具有法律效力。如有违反
违约方应承担由此给守约方造成的一切损失【包含一方因违约方的违约行为而遭
致的全部直接经济损失及任何可预期的间接损失及额外的费用(包括但不限于律
师费用、诉讼及仲裁费用、申请执行费用、财务费用及差旅费等详见本协议7.3
条)】或向守约方支付本协议项下双方结算的所有推广服务费合计金额五倍的违
约金。</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;5.3未经对方事先书面许可,任何一方均不得就本协议发表任何公开声明。</p>
<p style="font-weight: bold">6 不可抗力条款</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;6.1不可抗力:如果出现不可抗力,双方在本协议中的义务在不可抗力影响
范围及其持续期间内将中止履行。合作期限可根据中止的期限而作相应延长,但
须双方协商一致。任何一方均不会因此而承担责任。声称遭受不可抗力的一方应
在不可抗力发生后不迟于十五(15)日内通知另一方,并随附经有关部门确认的不
可抗力书面证明,且应尽可能减少不可抗力所产生之损害。</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;6.2本协议中的不可抗力是指无法预见、无法避免、无法克服、非任何一
方所能控制且使任何一方无法部分或完全履行本协议的地震、台风、火灾、水灾、
战争、罢工、暴动、黑客攻击、电信部门技术调整和政府管制、病毒侵袭、系统
故障或任何其它自然或人为造成的灾难和意外事件。</p>
<p style="font-weight: bold">7 违约责任</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;7.1除本协议另有约定外,任何一方直接或间接违反本协议的任何条款,或
不承担或不及时、充分地承担本协议项下其应承担的义务即构成违约行为,守约
方有权以书面通知要求违约方纠正其违约行为并采取充分、有效、及时的措施消
除违约后果,并赔偿守约方因违约方之违约行为而遭致的损失。若违约方在收到
守约方关于其违约行为的上述通知后10日内未纠正其违约行为守约方有权以
书面通知的方式单方提前解除本协议,并追究违约方之违约责任。</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;7.2经数据核对甲方认为乙方未按合作产品规则内容进行推广或未达到规
则要求的,甲方有权利单方面解除本协议,乙方应按照合作产品规定或约定标准
支付违约金,违约金不足以弥补给甲方造成损失的,乙方还应赔偿损失。</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;7.3本协议所指守约方的损失包括但不限于守约方因主张违约方的违约赔
偿责任而支出的律师费、诉讼费用、差旅费、交通费、调查费、评估费、鉴定费、
公告费、公证费、审计费用等等。</p>
<p style="font-weight: bold">8 通知</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;8.1双方确认本协议首部双方的通讯地址、邮箱、电话为真实有效的,并且
同意作为双方或人民法院或仲裁机构向各方送达(包含电子方式送达)相关文书
的送达地址,依据通讯地址、邮箱、电话向一方发出与本协议相关的任何通知、
协议或其他有关文件或法律文书的,无论该方是否签收(包括但不限于拒收、查
无此人、下落不明等)均视为有效送达。</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;8.2如果一方需要变更通讯地址及方式(含联系人)的,应在变更前五日内及时将变更的情况书面通知另一方,变更后的通讯地址及方式(含联系人)自被
通知方实际收到时生效,在变更后的通讯地址及方式(含联系人)生效前,另一
方就以变更前的通讯地址及方式送达文件的即视为有效送达。</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;8.3除上述通知形式外,甲方有权单方在甲方渠道以网页公告、网页提示、
电子邮箱、手机短信、QQ、发送站内信等方式中的一种或多种向乙方送达发布
或修订的规则制度、用户协议、隐私政策、公告通知等内容,一经甲方采取前述
任何一种方式公布或发送,即视为送达。若乙方收到通知后对内容存在异议的,
应在收到通知后24小时内提出异议并且停止使用合作渠道否则均视为乙方已
充分阅读、理解并接受遵守甲方发布或修订的内容,并与甲方达成协议,甲方有
权按照渠道发布内容对乙方进行管理。</p>
<p style="font-weight: bold">9 其他条款</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;9.1本协议之未尽事宜应按照中国法律规定执行,不足之处双方应当本着诚
实信用的原则协商并另行签订补充协议,补充协议与本协议条款不一致时,以最
新签订的补充协议为准。如果协商不能解决,任何一方均可以向原告方所在地人
民法院提起诉讼解决。</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;9.2本协议的注解、附件、补充协议以及经甲方发布的渠道使用规则制度、
用户协议、隐私政策、公告通知等为本协议组成部分,与本协议具有同等法律效
力。</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;9.3本协议自双方签字或盖章之日起生效。本协议壹式肆份,双方各留存贰
份,每份具有同等法律效力。本协议的任何条款部分或全部无效的,不影响其它
条款的效力。</p>
<br><br><br><br>
</div>
<!-- <button id="ag" style="width:120px;height:40px;background: #26C7DB;color:white;border:none" >同意</button> -->
<br><br><br><br>
<br><br><br><br>
</div>
{$content}
</body>
<script type="text/javascript">
$(function() {
$("#ag").on('click',function(event) {
window.localStorage.setItem('checked','checked');
window.location.href = "/index.php?s=/Home/Safe/modifyBaseInfo.html"
});
})
</script>
</html>

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save