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.

270 lines
14 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('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>
4 years ago
<td class="l"><span style="color:red">*</span>公司:</td>
4 years ago
<td class="r table_radio">
4 years ago
<input type="text" 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" 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" 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" 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" 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" name="qq" id="qq" class="input" placeholder="请输入QQ" maxlength="50">
4 years ago
</td>
</tr>
<tr>
<td class="l">游戏类型:</td>
<input id="game_type" name="game_type" type="hidden" value="{$game_types[0]['type_name']}">
4 years ago
<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']}"></span>
</volist>
4 years ago
<span class="notice-text"></span>
</td>
</tr>
<tr>
<td class="l">所做游戏:</td>
<td class="r table_radio">
4 years ago
<input type="text" 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" 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" 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">S</option>
<option value="2">A</option>
<option value="3">B</option>
<option value="4">其他</option>
</select>
<span class="notice-text"></span>
</td>
</tr>
<tr>
4 years ago
<tr>
<td class="l">流水:</td>
<td class="r table_radio">
4 years ago
<input type="text" 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" 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" 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>
4 years ago
<input type="radio" class="inp_radio" value="0" name="is_potential">
4 years ago
</label>
<label>
4 years ago
<input type="radio" class="inp_radio" value="1" name="is_potential" checked>
4 years ago
</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"></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">
4 years ago
<input type="text" class="txt" name="interface_person" value="{$interface_person}" placeholder="对接人" maxlength="50">
4 years ago
</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;">
4 years ago
<a class="submit_btn " alt="返回上一页" title="返回上一页" href="{:U('SocietyInfo/lists')}" >
4 years ago
返回
</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()) {
4 years ago
// layer.msg('请选择省份');return ;
4 years ago
}
if (!$("#city").val()) {
4 years ago
// layer.msg('请选择城市');return ;
4 years ago
}
if (!$("#company_name").val()) {
4 years ago
layer.msg('请输入公司名');return ;
4 years ago
}
//添加
$.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>