You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

924 lines
51 KiB
HTML

<extend name="Public/base" />
<block name="css">
<link rel="stylesheet" type="text/css" href="__CSS__/admin_table.css" media="all">
<link rel="stylesheet" type="text/css" href="__STATIC__/webuploader/webuploader.css" media="all">
<link href="__STATIC__/icons_alibaba/iconfont.css" rel="stylesheet">
<link rel="stylesheet" href="__CSS__/pro_promote.css" type="text/css" />
<link href="__STATIC__/datetimepicker/css/datetimepicker.css" rel="stylesheet" type="text/css">
<link href="__STATIC__/datetimepicker/css/dropdown.css" rel="stylesheet" type="text/css">
<style>
#form .txt_area.download_url {width:400px;}
.tabcon1711 .table_radio2 .table_btn {width:215px;}
.move200 {margin-left: -1000px;}
.move150 {margin-left: -150px;}
</style>
</block>
<block name="body">
<script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>
<script src="__STATIC__/md5.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" src="__STATIC__/webuploader/webuploader.js"></script>
<script src="__STATIC__/layer/layer.js" type="text/javascript"></script>
<script type="text/javascript" src="__STATIC__/layer/extend/layer.ext.js"></script>
<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__/juicer-min.js" type="text/javascript"></script>
<script src="__STATIC__/czinputcheck.js?v=1.29" type="text/javascript"></script>
<style>
.coin-detail{
display: block;
float: left;
text-align: center;
line-height: 35px;
width: 100px;
height: 35px;
font-size: 14px;
border-radius: 4px;
cursor: pointer;
}
.list-ratio {
display: table;
}
.list-ratio .li-ratio {
display: flex;
margin-bottom: 20px;
align-items: center;
}
.list-ratio .li-ratio .turnover, .list-ratio .li-ratio .turnover-ratio {
position: relative;
}
.list-ratio .li-ratio .turnover span, .list-ratio .li-ratio .turnover-ratio .error-message {
color: red;
position: absolute;
left: 0;
top: 30px;
white-space: nowrap;
display: none;
}
.iconfont-btn {
cursor: pointer;
}
.iconfont-style {
font-size: 18px;
color: #fff;
border-radius: 4px;
border: 0;
padding: 5px;
margin-left: 10px;
}
.iconfont-selected {
background-color: #0A9AF2;
}
.iconfont-selected:hover {
background-color: #03a9f4;
}
.iconfont-unselected {
background-color: #999;
}
.iconfont-unselected:hover {
background-color: #ababab;
}
.normal-table {
border: solid 1px #cbcbcb;
width: 100%;
clear: both;
border-collapse: collapse;
font-size: 13px;
border-spacing: 0;
}
.normal-table th {
background-color: #F0F5F7;
box-shadow: 0px -3px 0px 0px #EDEDED inset;
height: 37px;
line-height: 37px;
border-bottom: solid 1px #b6cad2;
text-indent: 11px;
text-align: center;
height: 50px;
line-height: 50px;
}
.normal-table tbody tr:nth-child(even) {
background: #f5f8fa;
}
.normal-table tbody td {
text-align: center;
}
.normal-btn {
cursor: pointer;
border: none;
border-radius: 3px;
margin-bottom: 10px;
display: inline-block;
text-align: center;
line-height: 35px;
background: #3E96C9;
padding: 0px 10px;
color: #fff;
background-image: -moz-linear-gradient(top, #449ACB 0%,#3C95C8 50%, #3591C6 100%);
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#449ACB),color-stop(50%,#3C95C8), color-stop(100%,#3591C6));
background-image: -webkit-linear-gradient(top, #449ACB 0%,#3C95C8 50%,#3591C6 100%);
background-image: -o-linear-gradient(top, #449ACB 0%,#3C95C8 50%,#3591C6 100%);
background-image: -ms-linear-gradient(top, #449ACB 0%,#3C95C8 50%,#3591C6 100%);
background-image: linear-gradient(to bottom, #449ACB 0%,#3C95C8 50%,#3591C6 100%);
}
.normal-table .normal-btn {
line-height: 25px;
margin-bottom: 0px;
}
.normal-table .normal-btn.delete-btn {
background: rgb(221, 10, 10);
margin-left: 5px;
}
.layer-box .tabcon1711 input~.notice-text {
width: auto;
}
.deposit-item.no-deposit {
display: none;
}
</style>
<!-- 标签页导航 -->
<div class="tab-wrap">
<div class="cf main-place top_nav_list navtab_list">
<ul class="tabnav1711 fr jstabnav">
<li data-tab="tab1" class="current"><a href="javascript:void(0);">基本信息</a></li>
<li data-tab="tab2" ><a href="javascript:void(0);">结算信息</a></li>
<li data-tab="tab3" ><a href="javascript:void(0);">会长信息</a></li>
</ul>
<h3 class="page_title">{$meta_title}</h3>
</div>
<div class="tab-content tabcon1711">
<!-- 表单 -->
<form id="form" autocomplete="off">
<!-- 基础 -->
<div id="tab1" class="tab-pane in tab1 ">
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td class="l"><i class="mustmark" style="margin-left:-7px">*</i>推广公司名称:</td>
<td class="r" >
<input type="text" class="txt " name="company_name" id="partner" value="{$data.company_name}" readonly placeholder="请输入推广公司名称">
</td>
</tr>
<tr>
<td class="l"><i class="mustmark" style="margin-left:-7px">*</i>团体归属:</td>
<td class="r" >
<div class="input-list input-list-server search_label_rehab" style="margin:0;">
<select id="company_belong" name="company_belong" disabled class="select_gallery" style="width: 215px;">
<!-- <option value="">请选择团体归属</option> -->
<volist name=":getCompanyBlong()" id="vo">
<option value="{$vo.id}" <php> if($data['company_belong'] !='' && $vo['id'] == $data['company_belong'])echo selected;</php>>{$vo.name}</option>
</volist>
</select>
</div>
</td>
</tr>
<tr>
<td class="l"><i class="mustmark" style="margin-left:-7px">*</i>开发类型:</td>
<td class="r" >
<select id="develop_type" name="develop_type" disabled class="select_gallery" style="width: 215px;">
<option value="0" <if condition="$data.develop_type eq 0">selected</if>>无</option>
<option value="1" <if condition="$data.develop_type eq 1">selected</if>>自主开发</option>
<!-- <option value="2" <if condition="$data.develop_type eq 2">selected</if>>自主开发及维护</option>-->
<option value="3" <if condition="$data.develop_type eq 3">selected</if>>只维护</option>
</select>
</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="company_type" disabled name="company_type" class="select_gallery" style="width: 215px;">
<!-- <option value="">请选择公司性质</option> -->
<option value="1" <if condition="$data['company_type'] eq 1">selected
</if>>公司</option>
<option value="2" <if condition="$data.company_type eq 2">selected
</if>>个人</option>
</select>
</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="is_sign_contact" disabled name="is_sign_contact" class="select_gallery" style="width: 215px;">
<!-- <option value="">请选择是否签署合同</option> -->
<option value="0" <if condition="$data['is_sign_contact'] eq 0">selected
</if>>否</option>
<option value="1" <if condition="$data['is_sign_contact'] eq 1">selected
</if>>是</option>
</select>
</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" disabled 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" >
<div class="input-list" style="margin:0;">
<input type="text" readonly id="contact_begin" readonly name="contact_begin" class="" value="{$data.contact_begin}"
placeholder="合同开始时间" />
&nbsp;-&nbsp;
<div class="input-append date" id="datetimepicker" style="display:inline-block">
<input type="text" readonly id="contact_end" readonly name="contact_end" class="" value="{$data.contact_end}"
placeholder="合同结束时间" />
<span class="add-on"><i class="icon-th"></i></span>
</div>
</div>
</td>
</tr>
<?php if($deposit):?>
<tr class="deposit-item">
<td class="l"><i class="mustmark" style="margin-left:-7px">*</i>押金付款方式:</td>
<td class="r">
<select name="deposit[pay_type]" id="deposit-pay-type" disabled class="select_gallery">
<option value="">押金付款方式</option>
<?php foreach($payTypes as $key => $name):?>
<option value="<?=$key?>" <?php if($deposit && $deposit['pay_type'] == $key):?>selected<?php endif;?>><?=$name?></option>
<?php endforeach;?>
</select>
<span class="notice-text"></span>
</td>
</tr>
<?php if ($deposit['pay_type'] != 3):?>
<tr class="deposit-item need-amount">
<td class="l"><i class="mustmark" style="margin-left:-7px">*</i>押金支付方式:</td>
<td class="r">
<select name="deposit[pay_way]" id="deposit-pay-way" disabled class="select_gallery">
<option value="">押金支付方式</option>
<?php foreach($payWays as $key => $name):?>
<option value="<?=$key?>" <?php if($deposit && $deposit['pay_way'] == $key):?>selected<?php endif;?>><?=$name?></option>
<?php endforeach;?>
</select>
<span class="notice-text"></span>
</td>
</tr>
<tr class="deposit-item need-amount">
<td class="l"><?php if($record):?><i class="mustmark">*</i><?php endif?>押金金额:</td>
<td class="r table_radio">
<input type="text" class="txt ratio" name="deposit[amount]" readonly value="<?=$deposit?$deposit['amount']:''?>" placeholder="请输入押金金额">
<span class="notice-text"></span>
</td>
</tr>
<tr class="deposit-item need-amount">
<td class="l">押金付款人:</td>
<td class="r table_radio">
<input type="text" class="txt ratio" name="deposit[payer]" readonly value="<?=$deposit?$deposit['payer']:''?>" placeholder="请输入押金付款人">
<span class="notice-text"></span>
</td>
</tr>
<tr class="deposit-item need-amount">
<td class="l">押金付款账号:</td>
<td class="r table_radio">
<input type="text" class="txt ratio" name="deposit[pay_account]" readonly value="<?=$deposit?$deposit['pay_account']:''?>" placeholder="请输入押金付款账号">
<span class="notice-text"></span>
</td>
</tr>
<?php endif;?>
<?php endif;?>
<tr>
<td class="l noticeinfo"><i class="mustmark" style="margin-left:-7px">*</i>承担服务费:</td>
<td class="r table_radio">
<span class="form_radio table_btn" style="width: auto;">
<label>
<input type="radio" disabled class="inp_radio" value="0" name="has_server_fee" <if condition="$data['has_server_fee'] eq 0">checked</if>> 否
</label>
<label>
<input type="radio" disabled class="inp_radio" value="1" name="has_server_fee" <if condition="$data['has_server_fee'] eq 1">checked</if>> 是
</label>
</span>
<span class="notice-text" id="server_fee_input" style="color: #000;<if condition="$data['has_server_fee'] eq 0">display: none;</if>"><input type="text" class="txt " name="server_fee" value="{$data['server_fee']}" placeholder="请输入服务器费用" style="width: 100px;">&nbsp;&nbsp;</span>
</td>
</tr>
<tr>
<td class="l noticeinfo"><i class="mustmark" style="margin-left:-7px">*</i>合作关系:</td>
<td class="r table_radio">
<span class="form_radio table_btn">
<label>
<input type="radio" disabled class="inp_radio" value="1" name="cooperation_status" <if condition="$data['cooperation_status'] eq 1">checked</if>> 合作中
</label>
<label>
<input type="radio" disabled class="inp_radio" value="0" name="cooperation_status" <if condition="$data['cooperation_status'] eq 0">checked</if>> 停止合作
</label>
</span>
<span class="notice-text"></span>
</td>
</tr>
<tr>
<td class="l noticeinfo"><i class="mustmark" style="margin-left:-7px">*</i>显示状态:</td>
<td class="r table_radio">
<span class="form_radio table_btn">
<label>
<input type="radio" disabled class="inp_radio" value="1" name="status" <if condition="$data['status'] eq 1">checked
</if>> 开启
</label>
<label>
<input type="radio" disabled class="inp_radio" value="0" name="status" <if condition="$data['status'] eq 0">checked
</if>> 关闭
</label>
</span>
<span class="notice-text"></span>
</td>
</tr>
<tr>
<td class="l noticeinfo">是否为内部公司:</td>
<td class="r table_radio">
<span class="form_radio table_btn">
<label>
<input type="radio" disabled class="inp_radio" value="1" name="is_inside" <if condition="$data['is_inside'] eq 1">checked</if>> 是
</label>
<label>
<input type="radio" disabled class="inp_radio" value="0" name="is_inside" <if condition="$data['is_inside'] eq 0">checked</if>> 否
</label>
</span>
<span class="notice-text"></span>
</td>
</tr>
<tr>
<td class="l noticeinfo">市场总监信息展示:</td>
<td class="r table_radio">
<span class="form_radio table_btn">
<label>
<input type="radio" disabled class="inp_radio" value="1" name="marketing_director_show" <if condition="$data['marketing_director_show'] eq 1">checked</if>> 展示
</label>
<label>
<input type="radio" disabled 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>
<tr>
<td class="l noticeinfo"><i class="mustmark" style="margin-left:-7px">*</i>是否定制推广后台:</td>
<td class="r table_radio">
<span class="form_radio table_btn">
<label>
<input type="radio" disabled class="inp_radio" value="1" name="is_site_custom" <if condition="$data['is_site_custom'] eq 1">checked
</if>> 是
</label>
<label>
<input type="radio" disabled class="inp_radio" value="0" name="is_site_custom" <if condition="$data['is_site_custom'] eq 0">checked
</if>> 否
</label>
</span>
<span class="notice-text"></span>
</td>
</tr>
<tr>
<td class="l noticeinfo"><i class="mustmark" style="margin-left:-7px">*</i>是否特殊公司:</td>
<td class="r table_radio">
<span class="form_radio table_btn">
<label>
<input type="radio" disabled class="inp_radio" value="1" name="type" <if condition="$data['type'] eq 1">checked
</if>> 是
</label>
<label>
<input type="radio" disabled class="inp_radio" value="0" name="type" <if condition="$data['type'] eq 0">checked
</if>> 否
</label>
</span>
<span class="notice-text"></span>
</td>
</tr>
<?php if(isset($data['is_site_custom']) && $data['is_site_custom'] == 1):?>
<?php
$domain = C('DOMAIN', null, null);
$siteUrl = '无';
if ($domain && !empty($data['site_domain_prefix'])) {
$siteUrl = 'https://tg-' . $data['site_domain_prefix'] . $domain;
}
?>
<tr class="site-custom-item" >
<td class="l"><i class="mustmark" style="margin-left:-7px">*</i>推广后台域名前缀:</td>
<td class="r" >
<input type="text" disabled class="txt" style="float: none;" name="site_domain_prefix" value="{$data.site_domain_prefix}" placeholder="请输入推广后台域名前缀">
<span class="notice-text" style="float: none;">完整地址: <span id="site-url-show" style="color: red; font-weight: bold;" data-domain="<?=$domain?>"><?=$siteUrl?></span></span>
</td>
</tr>
<tr class="picbox site-custom-item">
<td class="l noticeinfo" ><i class="mustmark" style="margin-left:-7px">*</i>推广后台ICON</td>
<td class="r">
<span class="table_btn table_upload table_icon" style="float: none;">
<div class="upload-wrapper">
<div class="uploader-list" style="display: flex;">
<a href="javascript:;"><img src="{$siteConfig.icon}" style="width: 100px;height: 100px;cursor: move;"></a>
</div>
</div>
</span>
</td>
</tr>
<tr class="picbox site-custom-item">
<td class="l noticeinfo" ><i class="mustmark" style="margin-left:-7px">*</i>推广后台LOGO</td>
<td class="r">
<span class="table_btn table_upload table_icon" style="float: none;">
<div class="upload-wrapper">
<div class="uploader-list" style="display: flex;">
<a href="javascript:;"><img src="{$siteConfig.logo}" style="width: 100px;height: 100px;cursor: move;"></a>
</div>
</div>
</span>
</td>
</tr>
<?php endif;?>
<tr>
<td class="l noticeinfo">文档管理</td>
<td class="r table_radio">
</td>
</tr>
</tbody>
</table>
<table border="1" style="width: 600px;text-align: center;margin:10px 0 0 60px;" cellspacing="0" cellpadding="0" id="docShow">
</table>
</div>
<div id="tab2" class="tab-pane tab2 ">
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<?php if($relation):?>
<!--<tr>
<td class="l"><i class="mustmark" style="margin-left:-7px">*</i>合作方式:</td>
<td class="r">
<select name="relation[collaborate_way]" disabled id="collaborate_way" class="select_gallery">
<option value="1" <?php if($relation['collaborate_way'] == 1):?>selected<?php endif;?>>甲方</option>
<option value="2" <?php if($relation['collaborate_way'] == 2):?>selected<?php endif;?>>乙方</option>
</select>
<span class="notice-text"></span>
</td>
</tr>-->
<tr>
<td class="l"><i class="mustmark" style="margin-left:-7px">*</i>甲方公司类型:</td>
<td class="r" style="width: 50px;">
<select name="part_a_type" id="part_a_type" class="select_gallery" disabled>
<option value="1" selected>下游推广公司</option>
<option value="2">己方公司</option>
</select>
<span class="notice-text"></span>
</td>
<td class="l" style="width: 100px;"><i class="mustmark" >*</i>乙方公司类型:</td>
<td class="r">
<select name="part_b_type" id="part_b_type" class="select_gallery" disabled>
<option value="1" >下游推广公司</option>
<option value="2" selected>己方公司</option>
</select>
<span class="notice-text"></span>
</td>
</tr>
<!--<tr>
<td class="l"><i class="mustmark" style="margin-left:-7px">*</i>己方公司:</td>
<td class="r">
<select name="relation[self_company_id]" disabled id="self_company" class="select_gallery">
<option value="0">无</option>
<?php foreach($selfCompanies as $selfCompany):?>
<option value="<?=$selfCompany['id']?>" <?php if($relation['self_company_id'] == $selfCompany['id']):?>selected<?php endif;?>><?=$selfCompany['company_name']?></option>
<?php endforeach;?>
</select>
<span class="notice-text"></span>
</td>
</tr>-->
<tr>
<td class="l"><i class="mustmark" style="margin-left:-7px">*</i>甲方公司:</td>
<td class="r" style="width: 50px;">
<select name="part_a" id="part_a" class="select_gallery" disabled>
</select>
<span class="notice-text"></span>
</td>
<td class="l" style="width: 90px"><i class="mustmark" >*</i>乙方公司:</td>
<td class="r">
<select name="part_b" id="part_b" class="select_gallery" disabled>
<?php foreach($selfCompanies as $selfCompany):?>
<option value="<?=$selfCompany['id']?>" <?php if($selfCompany['company_name']==''):?>selected<?php endif;?>><?=$selfCompany['company_name']?></option>
<?php endforeach;?>
</select>
<span class="notice-text"></span>
</td>
</tr>
<tr>
<td class="l"><i class="mustmark" style="margin-left:-7px">*</i>结算周期:</td>
<td class="r">
<select name="relation[settlement_type]" disabled id="settlement_type" class="select_gallery">
<option value="0" <?php if($relation['settlement_type'] == 0):?>selected<?php endif;?>>无</option>
<option value="1" <?php if($relation['settlement_type'] == 1):?>selected<?php endif;?>>周结</option>
<option value="2" <?php if($relation['settlement_type'] == 2):?>selected<?php endif;?>>月结</option>
</select>
<span class="notice-text"></span>
</td>
</tr>
<tr>
<td class="l"><i class="mustmark" style="margin-left:-7px">*</i>开票类型:</td>
<td class="r">
<select name="relation[invoice_type]" disabled id="invoice_type" class="select_gallery">
<option value="0" <?php if($relation['invoice_type'] == 0):?>selected<?php endif;?>>无</option>
<option value="1" <?php if($relation['invoice_type'] == 1):?>selected<?php endif;?>>专票</option>
<option value="2" <?php if($relation['invoice_type'] == 2):?>selected<?php endif;?>>普票</option>
</select>
<span class="notice-text"></span>
</td>
</tr>
<tr>
<td class="l">开票内容:</td>
<td class="r table_radio">
<input type="text" name="relation[invoice_content]" readonly id="invoice_content" class="input" value="<?=$relation['invoice_content']?>"></textarea>
</td>
</tr>
<tr>
<td class="l">是否支付宝打款:</td>
<td class="r table_radio">
<span class="form_radio table_btn" style="width: 100px;">
<label>
<input type="radio" value="1" disabled name="relation[is_payment]" <?php if($relation['is_payment'] == 1):?>checked<?php endif;?>> 是
</label>
<label>
<input type="radio" value="2" disabled name="relation[is_payment]" <?php if($relation['is_payment'] == 2):?>checked<?php endif;?>> 否
</label>
</span>
<span class="notice-text">选择否将不能进行线上打款</span>
</td>
</tr>
<tr>
<td class="l"><i class="mustmark" style="margin-left:-7px">*</i>收款方:</td>
<td class="r">
<select name="relation[collection]" disabled class="select_gallery">
<option value="1" <?php if($relation['collection'] == 1):?>selected<?php endif;?>>甲方</option>
<option value="2" <?php if($relation['collection'] == 2):?>selected<?php endif;?>>乙方</option>
</select>
<span class="notice-text"></span>
</td>
</tr>
<?php endif;?>
<tr>
<td class="l">结算生效期限:</td>
<td class="r" style="width: 640px;">
<input type="text" class="txt time time3" readonly name="validity_start_time" value="{$data.validity_start_time}" placeholder="生效开始时间">
&nbsp;-&nbsp;<input type="text" class="txt time time4" readonly name="validity_end_time" value="{$data.validity_end_time}" placeholder="生效结束时间">
</td>
</tr>
<tr>
<td class="l">支付宝真实姓名:</td>
<td class="r" >
<input type="text" class="txt" readonly name="ali_user" value="{$data.ali_user}" placeholder="请输入支付宝真实姓名">
</td>
</tr>
<tr>
<td class="l">支付宝登陆账号:</td>
<td class="r" >
<input type="text" class="txt" readonly name="ali_account" value="{$data.ali_account}" placeholder="可以是手机及邮箱等">
</td>
</tr>
<tr>
<td class="l">账户名:</td>
<td class="r" >
<input type="text" class="txt" readonly name="bank_address" value="{$data.bank_address}" placeholder="请输入账户名">
</td>
</tr>
<tr>
<td class="l">银行卡号:</td>
<td class="r" >
<input type="text" class="txt" readonly name="bank_card" value="{$data.bank_card}" placeholder="请输入银行卡号">
</td>
</tr>
<tr>
<td class="l">收款银行:</td>
<td class="r" >
<input type="text" class="txt" readonly name="bank_name" value="{$data.bank_name}" placeholder="请输入收款银行">
</td>
</tr>
<tr>
<td class="l">联系结算人:</td>
<td class="r" >
<input type="text" class="txt" readonly name="settlement_contact" value="{$data.settlement_contact}" placeholder="请输入结算联系人">
</td>
</tr>
<tr>
<td class="l">联系电话:</td>
<td class="r" >
<input type="text" class="txt" readonly name="contact_phone" value="{$data.contact_phone}" placeholder="请输入联系电话">
</td>
</tr>
<tr>
<td class="l">对应平台(简称):</td>
<td class="r" >
<input type="text" class="txt " name="platform_name" readonly value="{$data.platform_name}" placeholder="请输入对应平台">
</td>
</tr>
<tr>
<td class="l">开票税点:</td>
<td class="r" >
<input type="text" class="txt" name="fax_ratio" readonly value="{$data.fax_ratio}" placeholder="开票税点(最多两位小数)">
<span style="margin-left: 3px;padding-top: 5px">%</span>
</td>
</tr>
<tr>
<td class="l">渠道费率:</td>
<td class="r" >
<input type="text" class="txt " name="channel_rate" readonly value="{$data.channel_rate}" placeholder="渠道费率(最多两位小数)"> <span style="margin-left: 3px;padding-top: 5px">%</span>
</td>
</tr>
<tr>
<td class="l">税费费率:</td>
<td class="r" >
<input type="text" class="txt " name="taxation_rate" readonly value="{$data.taxation_rate}" placeholder="税费费率(最多三位小数)"><span style="margin-left: 3px;padding-top: 5px">%</span>
</td>
</tr>
<tr>
<td class="l">注册地址:</td>
<td class="r" >
<input type="text" class="txt" readonly name="reg_address" value="{$data.reg_address}" placeholder="请输入注册地址">
</td>
</tr>
<tr>
<td class="l">注册电话:</td>
<td class="r" >
<input type="text" class="txt" readonly name="reg_phone" value="{$data.reg_phone}" placeholder="请输入注册电话">
</td>
</tr>
<tr>
<td class="l">邮寄地址:</td>
<td class="r" >
<input type="text" class="txt" readonly name="address" value="{$data.address}" placeholder="请输入邮寄地址">
</td>
</tr>
<tr>
<td class="l">备注:</td>
<td class="r" >
<input type="text" class="txt" readonly name="content" value="{$data.content}" placeholder="">
</td>
</tr>
<tr>
<td class="l noticeinfo"><i class="mustmark" style="margin-left:-7px">*</i>合作方比例增量:</td>
<td class="r table_radio">
<span class="form_radio table_btn">
<label>
<input type="radio" disabled class="inp_radio" value="0" name="has_ratio" <if condition="$data['has_ratio'] eq 0">checked</if>> 否
</label>
<label>
<input type="radio" disabled class="inp_radio" value="1" name="has_ratio" <if condition="$data['has_ratio'] eq 1">checked</if>> 是
</label>
</span>
<span class="notice-text"></span>
</td>
</tr>
<tr id="turnover_ratio" <if condition="$data['has_ratio'] eq 0">style="display: none;"</if> >
<td class="l"></td>
<td class="r table_radio">
<div class="list-ratio">
<div class="li-ratio">
<label class="instanceof_text" style="margin-right: 10px;">流水分成设定:</label>
</div>
<volist name="data['turnover_ratio']" key="key" id="vo">
<div class="li-ratio">
<label class="instanceof_text" style="margin-right: 10px;">月流水</label>
<select name="instanceof[]" disabled style="width: 50px;margin-right: 10px;">
<option value="1" <if condition="empty($vo['instanceof']) or $vo['instanceof'] eq 1">selected</if>>≥</option>
<option value="2" <if condition="!empty($vo['instanceof']) and $vo['instanceof'] eq 2">selected</if>>></option>
</select>
<div class="turnover">
<input type="text" class="txt turnover_money" readonly name="turnover[]" value="{$vo['turnover']|default=''}" placeholder="" onKeyUp="value=value.replace(/[^\w\.\/]/ig,'')" style="width: 100px;margin-right: 10px;">
<span class="error-message"></span>
</div>
<label>分成比例:</label>
<div class="turnover-ratio">
<input type="text" class="txt turnover_ratio" readonly name="turnover_ratio[]" value="{$vo['ratio']|default=''}" placeholder="" onKeyUp="value=value.replace(/[^\w\.\/]/ig,'')" style="width: 60px;">
<span class="form_unit" style="margin-right: 10px;">%</span>
<span class="error-message"></span>
</div>
</div>
</volist>
</div>
<span class="notice-text" style="width: auto;"></span>
</td>
</tr>
</tbody>
</table>
</div>
<div id="tab3" class="tab-pane tab3 ">
<!-- <div>
<button id="edit-promote-btn" class="normal-btn" type="button">新增会长</button>
</div> -->
<div class="table">
<table id="promote-table" class="normal-table">
<thead>
<tr>
<th>会长账号</th>
<th>真实姓名</th>
<th>手机号码</th>
<th>邮箱</th>
<th>充值信息查看权限</th>
</tr>
</thead>
<tbody>
<?php foreach($promotes as $promote):?>
<tr class="normal-record">
<td><?=$promote['account']?></td>
<td><?=$promote['real_name']?></td>
<td><?=$promote['mobile_phone']?></td>
<td><?=$promote['email']?></td>
<td><?=$promote['can_view_recharge'] == 1 ? '允许' : '禁止'?></td>
</tr>
<?php endforeach;?>
</tbody>
</table>
</div>
</div>
<div class="form-item cf" style="margin-bottom: 40px;">
<a class="submit_btn " alt="返回上一页" title="返回上一页" href="{:U('PromoteCompany/lists')}" >
返回
</a>
</div>
</form>
</div>
</div>
<script type="text/html" id="doctpl">
{@each list as it,index}
{@if index==0}
<thead>
<tr>
<th>文档名称</th>
<th>上传时间</th>
<th style="width:150px;">操作</th>
</tr>
</thead>
{@/if}
<tr>
<td style="padding:0;">${it.file_name}</td>
<td>${it.upload_time}</td>
<td>
<a class="filedown" data-index="${index}" data-path="${it.file_path}">下载</a>
</td>
</tr>
{@/each}
</script>
</block>
<block name="script">
<script type="text/javascript">
// 切换select
function selectRemove(id, typeId) {
$(id).children().remove();
indexNum = $(typeId).children('option:selected').index();
if (indexNum == 0) {
$(id).append("<option value='1'>" + $("#partner").val() + "</option>");
}
if (indexNum == 1) {
"<?php foreach($selfCompanies as $selfCompany):?>"
$(id).append(
"<option value=\"<?=$selfCompany['id']?>\" <?php if($selfCompany['company_name']=='海南万盟天下科技有限公司'):?>selected<?php endif;?>><?=$selfCompany['company_name']?></option>"
);
"<?php endforeach;?>";
}
}
$(function() {
if (!$("#partner").val()) {
$("#tab_tab1").click();
} else {
$("#part_a").children().remove();
$("#part_a").append("<option value='1'>" + $("#partner").val() + "</option>");
}
$("#tab_tab2").click(function() {
if (!$("#partner").val()) {
alert('请填写合作方名称');
$("#tab_tab1").click();
}
$("#part_a").children().remove();
$("#part_a").append("<option value='1'>" + $("#partner").val() + "</option>");
return false;
});
$("#part_a_type").change(function() {
selectRemove("#part_a", "#part_a_type");
indexBSelect = 0;
if (indexNum == 0) {
indexBSelect = 1;
}
if (indexNum == 1) {
indexBSelect = 0;
}
$("#part_b_type").get(0).selectedIndex = indexBSelect;
selectRemove("#part_b", "#part_b_type");
});
$("#part_b_type").change(function() {
selectRemove("#part_b", "#part_b_type");
indexASelect = 0;
if (indexNum == 0) {
indexASelect = 1;
}
if (indexNum == 1) {
indexASelect = 0;
}
$("#part_a_type").get(0).selectedIndex = indexASelect;
selectRemove("#part_a", "#part_a_type");
});
});
//导航高亮
highlight_subnav("{:U('PromoteCompany/lists')}");
$('#submit').click(function(){
$('#form').submit();
});
var ids = "{$data.game_ids}";
ids = ids.split(",");
showTab();
var PROMOTE = {
juicerFun(){
var tpl =$("#doctpl").html();
var html = juicer(tpl, {list:doc});
$("#docShow").html(html);
PROMOTE.juicerEvent();
},
juicerEvent(){
$(".filedown,.filedel").off("click");
$(".filedown").on("click",function(){
var url = window.location.protocol+"//"+window.location.host+$(this).data("path");
// window.open(url,"_blank");
var link = document.createElement('a');
link.setAttribute("download", "");
link.href = url;
link.click()
});
}
}
</script>
<script>
var doc = {$data.resources};
if(!doc){
doc = [];
}
PROMOTE.juicerFun();
function addFile(info) {
doc.push(info);
layer.closeAll();
PROMOTE.juicerFun();
// window.parent.addFile(info);
}
</script>
</block>