|
|
<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('add')}" method="post" class="form-horizontal" autocomplete="off">
|
|
|
<!-- 基础 -->
|
|
|
<div id="tab1" class="tab1">
|
|
|
<table border="0" cellspacing="0" cellpadding="0">
|
|
|
<tbody>
|
|
|
<tr>
|
|
|
<td class="l">省份:</td>
|
|
|
<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">城市:</td>
|
|
|
<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"><span style="color:red">*</span>公司:</td>
|
|
|
<td class="r table_radio">
|
|
|
<input type="text" name="company_name" id="company_name" class="input" placeholder="请输入公司名称">
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td class="l">注册资本:</td>
|
|
|
<td class="r table_radio">
|
|
|
<input type="text" name="register_capital" id="register_capital" class="input" placeholder="请输入注册资本">
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td class="l">负责人:</td>
|
|
|
<td class="r table_radio">
|
|
|
<input type="text" name="functionary" id="functionary" class="input" placeholder="请输入负责人">
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td class="l">电话:</td>
|
|
|
<td class="r table_radio">
|
|
|
<input type="text" name="phone" id="phone" class="input" placeholder="请输入电话">
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td class="l">微信:</td>
|
|
|
<td class="r table_radio">
|
|
|
<input type="text" name="wechat" id="wechat" class="input" placeholder="请输入微信">
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td class="l">QQ:</td>
|
|
|
<td class="r table_radio">
|
|
|
<input type="text" name="qq" id="qq" class="input" placeholder="请输入QQ">
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td class="l">游戏类型:</td>
|
|
|
<input id="game_type" name="game_type" type="hidden" value="{$game_types[0]['type_name']}">
|
|
|
<td class="r" style="width: 50px;">
|
|
|
<select name="game_type_id" id="game_type_id" class="select_gallery">
|
|
|
<volist name="game_types" id="vo">
|
|
|
<option value="<?=$vo['id']?>" >{$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">
|
|
|
<input type="text" name="game_name" id="game_name" class="input" placeholder="请输入所做游戏">
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td class="l">合作平台:</td>
|
|
|
<td class="r table_radio">
|
|
|
<input type="text" name="join_platform" id="join_platform" class="input" placeholder="请输入合作平台">
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td class="l">推广规模:</td>
|
|
|
<td class="r table_radio">
|
|
|
<input type="text" name="promote_scale" id="promote_scale" class="input" placeholder="请输入推广规模">
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td class="l">流水:</td>
|
|
|
<td class="r table_radio">
|
|
|
<input type="text" name="turnover" id="turnover" class="input" placeholder="请输入流水">
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td class="l">地址:</td>
|
|
|
<td class="r table_radio">
|
|
|
<input type="text" name="address" id="address" class="input" placeholder="请输入地址">
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td class="l">联盟信息:</td>
|
|
|
<td class="r table_radio">
|
|
|
<input type="text" name="league_info" id="league_info" class="input" placeholder="请输入联盟信息">
|
|
|
</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" checked> 否
|
|
|
</label>
|
|
|
<label>
|
|
|
<input type="radio" class="inp_radio" value="1" name="is_potential" > 是
|
|
|
</label>
|
|
|
</span>
|
|
|
<span class="notice-text"></span>
|
|
|
</td>
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
<td class="l">备注信息:</td>
|
|
|
<td class="r">
|
|
|
<textarea name="remark" class="txt" placeholder="请输入备注信息"></textarea>
|
|
|
</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="{$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('Partner/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();
|
|
|
provinceChange()
|
|
|
});
|
|
|
|
|
|
$('.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();
|
|
|
console.log(cres);
|
|
|
if ($("#province").val() == "请选择省份" || !$("#province").val()) {
|
|
|
// layer.msg('请选择省份');return ;
|
|
|
}
|
|
|
if (!$("#city").val()) {
|
|
|
// layer.msg('请选择城市');return ;
|
|
|
}
|
|
|
if (!$("#company_name").val()) {
|
|
|
layer.msg('请输入公司名');return ;
|
|
|
}
|
|
|
|
|
|
//添加
|
|
|
$.ajax({
|
|
|
url:"{:U('SocietyInfo/add')}",
|
|
|
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>
|