|
|
|
@ -9,6 +9,8 @@
|
|
|
|
|
<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">
|
|
|
|
@ -158,7 +160,7 @@
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="l"><i class="mustmark" style="margin-left:-7px">*</i>推广公司名称:</td>
|
|
|
|
|
<td class="r" >
|
|
|
|
|
<input type="text" class="txt " name="company_name" value="{$data.company_name}" readonly placeholder="请输入推广公司名称">
|
|
|
|
|
<input type="text" class="txt " name="company_name" id="partner" value="{$data.company_name}" readonly placeholder="请输入推广公司名称">
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
@ -470,7 +472,7 @@
|
|
|
|
|
<table border="0" cellspacing="0" cellpadding="0">
|
|
|
|
|
<tbody>
|
|
|
|
|
<?php if($relation):?>
|
|
|
|
|
<tr>
|
|
|
|
|
<!--<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">
|
|
|
|
@ -479,8 +481,27 @@
|
|
|
|
|
</select>
|
|
|
|
|
<span class="notice-text"></span>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</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">
|
|
|
|
@ -491,7 +512,26 @@
|
|
|
|
|
</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">
|
|
|
|
@ -523,7 +563,7 @@
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="l">是否支付宝打款:</td>
|
|
|
|
|
<td class="r table_radio">
|
|
|
|
|
<span class="form_radio table_btn">
|
|
|
|
|
<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>
|
|
|
|
@ -547,7 +587,7 @@
|
|
|
|
|
<?php endif;?>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="l">结算生效期限:</td>
|
|
|
|
|
<td class="r">
|
|
|
|
|
<td class="r" style="width: 640px;">
|
|
|
|
|
<input type="text" class="txt time time3" readonly name="validity_start_time" value="{$data.validity_start_time}" placeholder="生效开始时间">
|
|
|
|
|
- <input type="text" class="txt time time4" readonly name="validity_end_time" value="{$data.validity_end_time}" placeholder="生效结束时间">
|
|
|
|
|
</td>
|
|
|
|
@ -764,6 +804,76 @@
|
|
|
|
|
|
|
|
|
|
<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(){
|
|
|
|
|