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.

302 lines
16 KiB
HTML

4 years ago
<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">
<style>
#form .txt_area.download_url {width:400px;}
.tabcon1711 .table_radio2 .table_btn {width:215px;}
.tabcon1711 td:first-child{width: 20px; padding-left: 20px;}
</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 src="__STATIC__/juicer-min.js" type="text/javascript"></script>
<script src="__STATIC__/area.js" type="text/javascript" charset="utf-8"></script>
<!-- 标签页导航 -->
<div class="tab-wrap">
<div class="cf main-place top_nav_list navtab_list">
<h3 class="page_title">{$meta_title}</h3>
</div>
<div class="tab-content tabcon1711">
<!-- 表单 -->
<form id="form" action="{:U('edit')}" method="post" class="form-horizontal" autocomplete="off">
<input value="{$data['id']}" name="id" type="hidden">
<!-- 基础 -->
<div id="tab1" class="tab1">
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td class="l"><i class="mustmark" style="margin-left:-7px">*</i>省份:</td>
4 years ago
<td class="r" style="width: 50px;">
<select name="province" id="province" class="select_gallery">
</select>
<span class="notice-text"></span>
</td>
</tr>
<tr>
<td class="l"><i class="mustmark" style="margin-left:-7px">*</i>城市:</td>
4 years ago
<td class="r" style="width: 50px;">
<select name="city" id="city" class="select_gallery">
</select>
<span class="notice-text"></span>
</td>
</tr>
<tr>
<td class="l"><i class="mustmark" style="margin-left:-7px">*</i>公司:</td>
4 years ago
<td class="r table_radio">
4 years ago
<input type="text" value="{$data['company_name']}" name="company_name" id="company_name" class="input" placeholder="请输入公司名称" maxlength="50">
4 years ago
</td>
</tr>
<tr>
<td class="l">注册资本:</td>
<td class="r table_radio">
4 years ago
<input type="text" value="{$data['register_capital']}" name="register_capital" id="register_capital" class="input" placeholder="请输入注册资本" maxlength="50">
4 years ago
</td>
</tr>
<tr>
<td class="l">负责人:</td>
<td class="r table_radio">
4 years ago
<input type="text" value="{$data['functionary']}" name="functionary" id="functionary" class="input" placeholder="请输入负责人" maxlength="50">
4 years ago
</td>
</tr>
<tr>
<td class="l">电话:</td>
<td class="r table_radio">
4 years ago
<input type="text" value="{$data['phone']}" name="phone" id="phone" class="input" placeholder="请输入电话" maxlength="50">
4 years ago
</td>
</tr>
<tr>
<td class="l">微信:</td>
<td class="r table_radio">
4 years ago
<input type="text" value="{$data['wechat']}" name="wechat" id="wechat" class="input" placeholder="请输入微信" maxlength="50">
4 years ago
</td>
</tr>
<tr>
<td class="l">QQ</td>
<td class="r table_radio">
4 years ago
<input type="text" value="{$data['qq']}" name="qq" id="qq" class="input" placeholder="请输入QQ" maxlength="50">
4 years ago
</td>
</tr>
<tr>
<td class="l"><i class="mustmark" style="margin-left:-7px">*</i>游戏类型:</td>
4 years ago
<!--<input id="game_type" name="game_type" type="hidden" value="{$game_types[0]['type_name']}">-->
<td class="r" style="">
<volist name="game_types" id="vo">
<span style="margin-right:18px;">{$vo['type_name']}: <input type="checkbox" name="game_types[]" value="{$vo['type_name']}" <if condition="$vo['check'] eq 1">checked</if>></span>
</volist>
<!--<select name="game_type_id" id="game_type_id" class="select_gallery">
<volist name="game_types" id="vo">
<option value="<?=$vo['id']?>" <if condition="$data['game_type_id'] eq $vo['id']">selected</if> >{$vo['type_name']}</option>
</volist>
</select>-->
<span class="notice-text"></span>
</td>
<!--<script>$("#game_type_id").change(function() {
$("#game_type").val($("#game_type_id option:selected").text());
});</script>-->
</tr>
<tr>
<td class="l">所做游戏:</td>
<td class="r table_radio">
4 years ago
<input type="text" value="{$data['game_name']}" name="game_name" id="game_name" class="input" placeholder="请输入所做游戏" maxlength="50">
4 years ago
</td>
</tr>
<tr>
<td class="l">合作平台:</td>
<td class="r table_radio">
4 years ago
<input type="text" value="{$data['join_platform']}" name="join_platform" id="join_platform" class="input" placeholder="请输入合作平台" maxlength="50">
4 years ago
</td>
</tr>
<tr>
<td class="l">推广规模:</td>
<td class="r table_radio">
4 years ago
<input type="text" value="{$data['promote_scale']}" name="promote_scale" id="promote_scale" class="input" placeholder="请输入推广规模" maxlength="50">
4 years ago
</td>
</tr>
<tr>
<td class="l">公会等级:</td>
<td class="r" style="width: 50px;">
<select name="sociaty_level" id="sociaty_level" class="select_gallery">
<option>请选择公会等级</option>
<option value="1" <if condition="$data['sociaty_level'] eq 1">selected</if>>S</option>
<option value="2" <if condition="$data['sociaty_level'] eq 2">selected</if>>A</option>
<option value="3" <if condition="$data['sociaty_level'] eq 3">selected</if>>B</option>
<option value="4" <if condition="$data['sociaty_level'] eq 4">selected</if>>其他</option>
</select>
<span class="notice-text"></span>
</td>
</tr>
4 years ago
<tr>
<td class="l">流水:</td>
<td class="r table_radio">
4 years ago
<input type="text" value="{$data['turnover']}" name="turnover" id="turnover" class="input" placeholder="请输入流水" maxlength="50">
4 years ago
</td>
</tr>
<tr>
<td class="l">地址:</td>
<td class="r table_radio">
4 years ago
<input type="text" value="{$data['address']}" name="address" id="address" class="input" placeholder="请输入地址" maxlength="100">
4 years ago
</td>
</tr>
<tr>
<td class="l">联盟信息:</td>
<td class="r table_radio">
4 years ago
<input type="text" value="{$data['league_info']}" name="league_info" id="league_info" class="input" placeholder="请输入联盟信息" maxlength="50">
4 years ago
</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="0" name="is_potential" <if condition="$data['is_potential'] eq 0">checked</if>> 否
</label>
<label>
<input type="radio" class="inp_radio" value="1" name="is_potential" <if condition="$data['is_potential'] eq 1">checked</if>> 是
</label>
</span>
<span class="notice-text"></span>
</td>
</tr>
<tr>
<td class="l">备注信息:</td>
<td class="r">
4 years ago
<textarea name="remark" class="txt" placeholder="请输入备注信息" maxlength="100">{$data['remark']}</textarea>
4 years ago
</td>
</tr>
<!--<tr>
<td class="l">沟通时间:</td>
<td class="r">
<input type="text" class="txt time time1" name="communication_time" value="" placeholder="请选择沟通时间">
</td>
</tr>-->
<tr>
<td class="l">对接人:</td>
<td class="r">
<input type="text" class="txt" name="interface_person" value="{$data['interface_person']}" placeholder="对接人">
</td>
</tr>
</tbody>
</table>
</div>
<div class="form-item cf">
<input class="submit_btn" type="button" value="保存" id="submit" target-form="form-horizontal" style="margin-left:210px;">
<a class="submit_btn " alt="返回上一页" title="返回上一页" href="{:U('SocietyInfo/lists')}" >
返回
</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="{$meta_title}">
<input type="hidden" name="url" value="SocietyInfo/add">
</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">
<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 type="text/javascript">
$(function() {
areaInit();
var province = document.getElementById('province');
//给选择框一个高度可直接写进数据不然要先创建dom元素option再录值
province.length=provinces.length;
for(var i=0;i<provinces.length;i++){
if (province.options[i].text == "{$data['province']}"
|| province.options[i].text.substring(0, 2) == "{$data['province']}".substring(0, 2)
) {
province.selectedIndex = province.options[i].index;
province.options[i].selected = true;
$("#province").change();
break;
}
}
var city = document.getElementById('city');
city.length=citys.length;
for(var i=0;i<citys.length;i++){
if (city.options[i].text == "{$data['city']}"
|| city.options[i].text.substring(0, 2) == "{$data['city']}".substring(0, 2)
) {
city.selectedIndex = city.options[i].index;
city.options[i].selected = true;
break;
}
}
});
$('.time1').datetimepicker({
format: 'yyyy-mm-dd H:i:0',
language:"zh-CN",
minView: 0,
autoclose:true,
showClear: true,
});
//导航高亮
highlight_subnav("{:U('SocietyInfo/lists')}");
</script>
<script>
$("#submit").on("click",function(){
var cres = $('form').serializeArray();
if ($("#province").val() == "请选择省份" || !$("#province").val()) {
layer.msg('请选择省份');return ;
4 years ago
}
if (!$("#city").val()) {
layer.msg('请选择城市');return ;
4 years ago
}
if (!$("#company_name").val()) {
layer.msg('请输入公司名');return ;
}
//添加
$.ajax({
url:"{:U('SocietyInfo/edit')}",
type:"post",
data:cres,
dataType:"json",
success:function(data){
if(data.status == 1){
layer.msg(data.info,function(){
window.location.href="{:U('SocietyInfo/lists')}";
});
}else{
layer.msg(data.info);
}
},
error:function(e){
}
});
});
</script>
</block>