1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006 |
- {include file="public/layout" /}
-
- <body class="ad_postion bodystyle" style="overflow-y: scroll;">
- <div id="toolTipLayer" style="position: absolute; z-index: 9999; display: none; visibility: visible; left: 95px; top: 573px;"></div>
- <div id="append_parent"></div>
- <div id="ajaxwaitid"></div>
- <div class="page min-hg-c-10">
- <form class="form-horizontal" id="post_form" action="{:url('ZcwdPosition/edit')}" method="post">
- <div class="ncap-form-default">
-
- <dl class="row">
- <dt class="tit">
- <label for="type">规则详情</label>
- </dt>
- <dd class="opt">
- <input type="hidden" name="type" value="{$rule_id}" />
- <input type="hidden" name="type_son" value="{$rule_id_son}" />
- 规则编号: {$detail.orderno} 规则名称: {$detail_son.title} <br/>
- </dd>
- </dl>
-
-
-
- <hr/>
- <b>设置前置条件:</b>
-
-
- <dl class="row">
- <dt class="tit">
- <label for="type">是否需要证书</label>
- </dt>
- <dd class="opt">
-
-
-
-
-
- <?php
-
-
- ?>
- <select name="is_zs" class="select" id="selectTest666" style="margin:0px 5px;height:30px;width:130px;">
- <option value="0" {eq name="$field.is_zs" value="0"}selected{/eq}>不需要</option>
- <option value="1" {eq name="$field.is_zs" value="1"}selected{/eq}>需要</option>
- </select>
-
- <script>
- $(function(){
- $("#selectTest666").change(function(e){
-
-
-
-
-
- console.log($(this).val());
- var v = $(this).val();
- if(v == 1){
- $('#citychoose').show();
- }else{
- $('#citychoose').hide();
- }
- });
- });
- </script>
-
- <span class="err"></span>
- <p class="notic"></p>
- </dd>
- </dl>
-
- <dl class="row" id="citychoose" style="{eyou:if condition='($field.is_zs > 0)'}{eyou:else /}display: none;{/eyou:if}">
- <dt class="tit"> <label for="title"><em>*</em>证书选择</label> </dt>
- <dd class="opt">
-
-
- <div id="zhengshu">
-
- {$zs_html}
- </div>
-
- <span class="err"></span>
- <p class="notic2 red" id="title_tips"></p>
- </dd>
- </dl>
-
-
-
-
-
- <dl class="row">
- <dt class="tit"> <label for="title"><em>*</em>工作要求:</label> </dt>
- <dd class="opt">
- {eyou:for start='0' end='9'}
- {$i+1}. <input type="text" name="gzyq[]" value="{$gzyq[$i]}" id="title" class="input-txt" autocomplete="off" style="margin-top: 5px;width: 800px !important;"><br/>
- {/eyou:for}
- </dd>
- </dl>
-
-
- <hr/>
- <b>其他:</b>
-
- <?php
-
-
-
- ?>
-
- <dl class="row 1615775137_dl" style="display: none;" id="1615775137_2" style="z-index: 2">
- <dt class="tit"> <label for="type">广告内容</label> </dt>
- <dd class="opt">
- <input type="hidden" name="video_id" {eq name="$ad_data.0.media_type" value="2"} value="{$ad_data.0.id}" {/eq} class="input-txt">
- <input type="text" name="video_litpic" id="video_litpic" {eq name="$ad_data.0.media_type" value="2"} value="{$ad_data.0.litpic}" {/eq} class="input-txt">
- <input type="file" id="courseware_file" data-type='local' onchange="upload_video_litpic_1615775137(this)" style="display: none;">
- {eq name="$WeappOpen.qny_open" value="1"}
- <a href="javascript:void(0);" class="ncap-btn ncap-btn-green" id="upload_video_litpic_qiniu" onclick="$('#courseware_file').attr('data-type', 'qiniu').trigger('click');">七牛云上传</a>
- {/eq}
- {eq name="$WeappOpen.oss_open" value="1"}
- <a href="javascript:void(0);" class="ncap-btn ncap-btn-green" id="upload_video_litpic_oss" onclick="$('#courseware_file').attr('data-type', 'oss').trigger('click');">oss上传</a>
- {/eq}
- {eq name="$WeappOpen.cos_open" value="1"}
- <a href="javascript:void(0);" class="ncap-btn ncap-btn-green" id="upload_video_litpic_cos" onclick="$('#courseware_file').attr('data-type', 'cos').trigger('click');">cos上传</a>
- {/eq}
- <a href="javascript:void(0);" class="ncap-btn ncap-btn-green " id="upload_video_litpic_local" onclick="$('#courseware_file').attr('data-type', 'local').trigger('click');">本地上传</a>
- <input type="hidden" id="OpenPreviewVideoUrl" value="{:url('ZcwdPosition/open_preview_video')}">
- <a href="javascript:void(0);" class="ncap-btn ncap-btn-green" id="PreviewVideo" onclick="OpenPreviewVideo();">预览</a>
- </dd>
- </dl>
-
- <dl class="row 1615775137_dl" style="display: none;" id="1615775137_3" style="z-index: 2">
- <dt class="tit"> <label for="type">广告内容</label> </dt>
- <dd class="opt">
- <input type="hidden" name="html_id" {eq name="$ad_data.0.media_type" value="3"} value="{$ad_data.0.id}" {/eq} class="input-txt">
- <textarea rows="5" cols="60" id="html_intro" name="html_intro" style="height: 200px;">{eq name="$ad_data.0.media_type" value="3"}{$ad_data.0.intro}{/eq}</textarea>
- <span class="err"></span>
- <p class="notic"></p>
- </dd>
- </dl>
-
- <dl class="row">
- <dt class="tit">
- <label>其他条件</label>
- </dt>
- <dd class="opt">
- <textarea rows="5" cols="60" id="intro" name="qttj" style="height:60px;">{$field.qttj}</textarea>
- <span class="err"></span>
- <p class="notic"></p>
- </dd>
- </dl>
-
- <dl class="row">
- <dt class="tit">
- <label>输出结果</label>
- </dt>
- <dd class="opt">
-
- 匹配算法: 前端根据选择的申报专业和所选资料,按所设定的规则(多条)进行对比,结果可能符合多个区域(符合省市),生成多个报告;
-
-
- <span class="err"></span>
- <p class="notic"></p>
- </dd>
- </dl>
-
- <input type="hidden" id="zhengshu_val" name="zhengshu_val" value="" />
-
- <div class="bot">
- <input type="hidden" name="id" id="1615775137_id" value="{$field.id}">
- <a href="JavaScript:void(0);" onclick="checkForm();" class="ncap-btn-big ncap-btn-green" id="submitBtn">确认提交</a>
- </div>
- </div>
- </form>
- </div>
-
- <script type="text/javascript">
- var SelectedType = '{$field.type}';
- $(function() {
-
-
-
- $('#1615775137_'+SelectedType).show();
-
- VideoLitpicValue('#video_litpic');
- });
-
-
- function TypeSwitch(typeValue) {
-
- $('.1615775137_dl').hide();
-
- $('#1615775137_'+typeValue).show();
-
- SelectedType = typeValue;
-
-
-
-
-
-
-
-
-
- }
-
-
- function VideoLitpicValue(obj) {
-
-
-
- if (2 == SelectedType) {
- $('#PreviewVideo').show();
- } else {
- $('#PreviewVideo').hide();
- }
- }
-
-
- function OpenPreviewVideo() {
-
- var video_litpic = $('#video_litpic').val();
- if (video_litpic == '') {
- $('#video_litpic').focus();
- showErrorMsg('请先上传视频');
- return false;
- }
-
-
- var fileExt = video_litpic.substr(video_litpic.lastIndexOf('.')).toLowerCase();
- var fileExt = judgeExt(fileExt);
- if (fileExt == -1) {
- $('#video_litpic').focus();
- showErrorMsg('不支持的视频格式,可在附件设置中修改');
- return false;
- }
-
-
-
- var fileInfo = video_litpic.lastIndexOf('/');
- if (fileInfo == -1) {
- $('#video_litpic').focus();
- showErrorMsg('视频链接不完整,无法正常预览');
- return false;
- }
-
-
-
- $.ajax({
- type : 'post',
- url : $('#OpenPreviewVideoUrl').val(),
- data : {video_litpic: video_litpic},
- dataType : 'json',
- success : function(res) {
- if (1 == res.code) {
- var PreviewVideo = "<video style='width:100%; height:100%;' src='"+res.url+"' controls preload='auto' oncontextmenu='return fase' autoplay></video>";
- layer.open({
- type: 1,
- title: false,
- fixed: true,
- shadeClose: false,
- shade: layer_shade,
- area: ['80%', '80%'],
- content: PreviewVideo
- });
- } else {
- showErrorMsg(res.msg);
- }
- },
- error: function(e) {
- showErrorAlert(e.responseText);
- }
- });
- }
-
-
- function upload_video_litpic_1615775137(e) {
- var data_type = $(e).attr('data-type');
- if ('qiniu' == data_type) {
-
- upload_video_litpic_qiniu(e);
- } else if ('oss' == data_type) {
-
- upload_video_litpic_oss(e);
- } else if ('cos' == data_type) {
-
- upload_video_litpic_cos(e);
- } else {
-
- upload_video_litpic_local(e);
- }
- }
-
-
- function upload_video_litpic_qiniu(e) {
-
- var file = $(e)[0].files[0];
-
-
- var fileName = file.name;
- var fileExt = fileName.substr(fileName.lastIndexOf('.')).toLowerCase();
- var ext = judgeExt(fileExt);
- if (ext == -1) {
- showErrorMsg('不支持选中的视频格式,可在附件设置中修改');
- return false;
- }
-
-
- var size = "{$upload_max_filesize}";
- if (file.size > size) {
- showErrorMsg('视频大小超过限制,可在附件设置中修改');
- return false;
- }
-
-
- layer_loading('上传七牛云');
- $.ajax({
- type: 'POST',
- url: '__ROOT_DIR__/index.php?m=plugins&c=Qiniuyun&a=qiniu_upload',
- data: {_ajax: 1},
- dataType: "JSON",
- success: function(res1) {
- if (1 == res1.code) {
- var token = res1.data.token;
- var formData = new FormData();
- formData.append('file', file);
- formData.append('token', token);
-
- fileName = res1.data.filePath + fileExt;
- formData.append('key', fileName);
- $.ajax({
- url: res1.data.uphost,
- type: 'POST',
- dataType: 'JSON',
- data: formData,
- timeout: 1200000,
- cache: false,
- processData: false,
- contentType: false,
- xhr: function () {
- myXhr = $.ajaxSettings.xhr();
- if (myXhr.upload) {
- myXhr.upload.addEventListener('progress', function(e){
- var curr = e.loaded;
- var total = e.total;
- process = parseInt(curr / total * 100);
- $("#upload_video_litpic_qiniu").text('上传中...'+process+"%");
- });
- }
- return myXhr;
- },
- success: function(res2) {
- layer.closeAll();
- $("#upload_video_litpic_qiniu").text('上传成功');
- setTimeout(function() {
- $('#upload_video_litpic_qiniu').text('七牛云上传');
- }, 2000);
- var video_url = res1.data.domain + "/" + res2.key;
- $("#video_litpic").empty().val(video_url);
- },
- error: function(e) {
- layer.closeAll();
- showErrorMsg(e.responseText);
- return false;
- }
- });
- } else {
- layer.closeAll();
- showErrorMsg(res1.msg);
- }
- },
- error: function(e) {
- layer.closeAll();
- showErrorMsg(e.responseText);
- }
- });
- }
-
-
- function upload_video_litpic_oss(e) {
-
- var file = $(e)[0].files[0];
-
-
- var fileName = file.name;
- var fileExt = fileName.substr(fileName.lastIndexOf('.')).toLowerCase();
- var ext = judgeExt(fileExt);
- if (ext == -1) {
- showErrorMsg('不支持选中的视频格式,可在附件设置中修改');
- return false;
- }
-
-
- var size = "{$upload_max_filesize}";
- if (file.size > size) {
- showErrorMsg('视频大小超过限制,可在附件设置中修改');
- return false;
- }
-
-
- layer_loading('上传阿里云OSS');
- $.ajax({
- type: 'POST',
- url: '__ROOT_DIR__/index.php?m=plugins&c=AliyunOss&a=oss_upload',
- data: {_ajax: 1},
- dataType: "JSON",
- success: function(res1){
- if (1 == res1.code){
- fileName = res1.data.filePath + fileExt;
-
- var request = new FormData();
- request.append("OSSAccessKeyId",res1.data.accessid);
- request.append("policy",res1.data.policy);
- request.append("Signature",res1.data.signature);
- request.append("key",fileName);
- request.append("success_action_status",201);
- request.append('file', file);
-
- $.ajax({
- url : res1.data.host,
- data : request,
- processData: false,
- cache: false,
- contentType: false,
- dataType: 'xml',
- type : 'post',
- xhr: function () {
- myXhr = $.ajaxSettings.xhr();
- if (myXhr.upload) {
- myXhr.upload.addEventListener('progress', function(e){
- var curr = e.loaded;
- var total = e.total;
- var process = parseInt(curr / total * 100);
- $("#upload_video_litpic_oss").text('上传中...'+process+"%");
- });
- }
- return myXhr;
- },
- success : function(data) {
- layer.closeAll();
- var res = $(data).find('PostResponse');
- if (res) {
- var key = res.find('Key').text();
- $("#upload_video_litpic_oss").text('上传成功');
- setTimeout(function() {
- $('#upload_video_litpic_oss').text('oss上传');
- }, 2000);
- var video_url = res1.data.domain + "/" + key;
- $("#video_litpic").val(video_url);
- } else {
- $("#upload_video_litpic_oss").text('上传失败');
- setTimeout(function() {
- $('#upload_video_litpic_oss').text('oss上传');
- }, 2000);
- }
- },
- error : function(e) {
- layer.closeAll();
- console.log(e.responseText);
- }
- });
- } else {
- layer.closeAll();
- showErrorMsg(res1.msg);
- }
- },
- error: function(e) {
- layer.closeAll();
- showErrorMsg(e.responseText);
- }
- });
- }
-
-
- function upload_video_litpic_cos(e) {
-
- var file = $(e)[0].files[0];
-
-
- var fileName = file.name;
- var fileExt = fileName.substr(fileName.lastIndexOf('.')).toLowerCase();
- var ext = judgeExt(fileExt);
- if (ext == -1) {
- showErrorMsg('不支持选中的视频格式,可在附件设置中修改');
- return false;
- }
-
-
- var size = "{$upload_max_filesize}";
- if (file.size > size) {
- showErrorMsg('视频大小超过限制,可在附件设置中修改');
- return false;
- }
-
-
- var formData = new FormData();
- formData.append('file', file);
- formData.append('file_ext', fileExt);
-
-
- $.ajax({
- type: 'post',
- url: '__ROOT_DIR__/index.php?m=plugins&c=Cos&a=cos_upload&_ajax=1',
- data: formData,
- contentType: false,
- processData: false,
- dataType: 'json',
- xhr: function () {
- myXhr = $.ajaxSettings.xhr();
- if (myXhr.upload) {
- myXhr.upload.addEventListener('progress', function(e){
- var curr = e.loaded;
- var total = e.total;
- process = parseInt(curr / total * 100);
- if (100 == process) {
- process = 99;
- layer_loading('上传腾讯云COS');
- }
- $("#upload_video_litpic_cos").text('上传中...'+process+"%");
-
- });
- }
- return myXhr;
- },
- success: function(res) {
- layer.closeAll();
- if (1 == res.code) {
- $("#video_litpic").val(res.data.url);
- $("#upload_video_litpic_cos").text('上传成功');
- } else {
- $("#upload_video_litpic_cos").text('上传失败');
- }
- setTimeout(function() {
- $('#upload_video_litpic_cos').text('cos上传');
- }, 2000);
- },
- error: function(e) {
- layer.closeAll();
- showErrorMsg(e.responseText);
- }
- });
- }
-
-
- function upload_video_litpic_local(e) {
-
- var file = $(e)[0].files[0];
-
-
- var fileName = file.name;
- var fileExt = fileName.substr(fileName.lastIndexOf('.')).toLowerCase();
- var ext = judgeExt(fileExt);
- if (ext == -1) {
- showErrorMsg('不支持选中的视频格式,可在附件设置中修改');
- return false;
- }
-
-
- var size = "{$upload_max_filesize}";
- if (file.size > size) {
- showErrorMsg('视频大小超过限制,可在附件设置中修改');
- return false;
- }
-
-
- var formData = new FormData();
- formData.append('file', file);
-
-
- layer_loading('上传本地');
- $.ajax({
- type: 'post',
- url : "{:url('Ueditor/upVideo', ['savepath'=>'media'])}",
- data: formData,
- contentType: false,
- processData: false,
- dataType: 'json',
- xhr: function () {
- myXhr = $.ajaxSettings.xhr();
- if (myXhr.upload) {
- myXhr.upload.addEventListener('progress', function(e){
- var curr = e.loaded;
- var total = e.total;
- process = parseInt(curr / total * 100);
- $("#upload_video_litpic_local").html('上传中...'+process+"%");
- });
- }
- return myXhr;
- },
- success: function (res) {
- layer.closeAll();
- $("#upload_video_litpic_local").html('上传成功');
- setTimeout(function() {
- $('#upload_video_litpic_local').html('本地上传');
- }, 2000);
- if ("SUCCESS" == res.state) {
- $("#video_litpic").val(res.url);
- } else {
- showErrorMsg(res.msg);
- }
- }
- });
- }
-
-
- function judgeExt(ext) {
- var type = "{$media_type}";
- var extArr = [];
- extArr = type.split("|");
- var ext = ext.replace(".","");
- return extArr.indexOf(ext);
- }
- </script>
-
- <script type="text/javascript">
-
- function CheckedTarget(t){
- if ($(t).is(':checked')) {
- $(t).parent().find('input[name="img_target[]"]').val(1);
- }else{
- $(t).parent().find('input[name="img_target[]"]').val(0);
- }
- }
-
- function upimgMouseover(obj)
- {
- $(obj).find('div.icaction').show();
- $(obj).find('div.cover-bg').show();
- }
- function upimgMouseout(obj)
- {
- $(obj).find('div.icaction').hide();
- $(obj).find('div.cover-bg').hide();
- }
-
-
- function DetectionTitleRepeat(obj) {
-
- var id = $('#1615775137_id').val();
-
- var title = $(obj).val();
-
- $.ajax({
- type: 'post',
- url : "{:url('ZcwdPosition/detection_title_repeat', ['_ajax'=>1])}",
- data: {id: id, title: title},
- dataType: 'json',
- success: function(res) {
- if (0 == res.code) {
- $('#title_tips').show().html(res.msg);
- } else {
- $('#title_tips').hide().html('');
- }
- },
- error: function(e){
- layer.closeAll();
- showErrorAlert(e.responseText);
- }
- });
- }
-
-
- function checkForm(){
-
-
-
-
-
-
- if($('#selectTest666').val() == '1'){
- var checkedValues = [];
- $('#zhengshu input[type=checkbox]:checked').each(function() {
- checkedValues.push($(this).val());
- });
- console.log(checkedValues);
- if(checkedValues.length > 0){
-
- }else{
- layer.msg('请选择证书!', {icon: 2,time: 1000});
- return false;
- }
- }
-
-
-
-
-
-
-
-
-
- var zhengshu = '';
- $('#zhengshu input[type=checkbox]').each(function() {
- if ($(this).is(':checked')) {
-
-
- zhengshu += $(this).val()+',';
- } else {
-
-
- zhengshu += '0,';
- }
- });
- console.log($('#post_form').serializeArray());
- $('#zhengshu_val').val(zhengshu);
-
- layer_loading('正在处理');
- $.ajax({
- type : 'post',
- url : "{:url('ZcwfPosition/edit', ['_ajax'=>1])}",
- data : $('#post_form').serialize(),
- dataType : 'json',
- success : function(res){
- layer.closeAll();
- if (res.code == 1) {
- layer.msg(res.msg, {icon: 1, shade: layer_shade, time: 1000}, function(){
- window.location.reload();
- });
- } else {
- showErrorMsg(res.msg);
- }
- },
- error: function(e){
- layer.closeAll();
- showErrorAlert(e.responseText);
- }
- });
- }
-
-
- function LoadImagesId(id){
-
- $('#ImagesId').val(id);
-
- GetUploadify(1,'','allimg','UpdataImages');
- }
-
-
- function UpdataImages(path){
-
- var id = $('#ImagesId').val();
-
- $("#"+id+"_Id").attr('src', path);
-
- $("#"+id+"_Litpic").val(path);
- }
-
-
- function ShowInput(id) {
- var obj = $("#"+id+"_ShowInput");
- var showOrHide = obj.attr('data-showOrHide');
- if ('hide' == showOrHide) {
- obj.show().attr('data-showOrHide', 'show');
- } else {
- obj.hide().attr('data-showOrHide', 'hide');
- }
- }
-
-
- function HideInput(id) {
- $("#"+id+"_ShowInput").hide().attr('data-showOrHide', 'hide');
- }
-
-
- function imgupload_call_back(paths){
- var last_div = $(".images_upload_tpl").html();
- var inputs = $('.span_input input');
- var timestamp = 0;
-
-
- for (var i=0; i<paths.length; i++) {
-
- timestamp = (new Date()).getTime();
-
- $(".images_upload:eq(0)").before(last_div);
-
- $(".images_upload:eq(0)").find('span:eq(0)').attr('onclick', "Images('"+paths[i]+"', 900, 600);");
-
- $(".images_upload:eq(0)").find('span:eq(1)').attr('onclick', "ShowInput('"+timestamp+"');");
-
- $(".images_upload:eq(0)").find('img').attr('src', paths[i]);
-
- $(".images_upload:eq(0)").find('a:eq(1)').attr('onclick', "ClearPicArr(this, '"+paths[i]+"', 0);");
-
- $(".images_upload:eq(0)").find('.load_input:eq(0)').attr('id', timestamp+'_ShowInput');
-
-
- if (inputs.length > 0) {
-
- $(".images_upload:eq(0)").find('input:eq(0)').attr('name', 'img_id[]').attr('value', '');
- $(".span_input:eq(0)").find('input:eq(0)').attr('name', 'img_litpic[]').attr('value', paths[i]);
-
- $(".images_upload:eq(0)").find('textarea:eq(0)').attr('name', 'img_title[]');
-
- $(".images_upload:eq(0)").find('textarea:eq(1)').attr('name', 'img_links[]');
-
- $(".images_upload:eq(0)").find('textarea:eq(2)').attr('name', 'img_intro[]');
-
- $(".images_upload:eq(0)").find('div.operation a:eq(0)').html("<label><input type='checkbox' title='在新窗口打开' onclick='CheckedTarget(this);'/>新窗口<input type='hidden' name='img_target[]' value='0'></label>");
-
- $(".images_upload:eq(0)").find('div.operation a:eq(2)').attr('onclick', "HideInput('"+timestamp+"');").attr('title', "收回").html('<i style="font-size:16px;" class="fa fa-angle-double-up"></i>');
- }
- }
- }
-
-
- function ClearPicArr(obj, path, id) {
-
- $.ajax({
- type:'POST',
- url:"{:url('ZcwdPosition/del_imgupload')}",
- data:{del_id:id,_ajax:1},
- success:function(){
- $(obj).parent().parent().parent().remove();
- $.ajax({
- type:'POST',
- url:"{:url('Uploadimgnew/delupload')}",
- data:{action:"del", filename:path,_ajax:1},
- success:function(){}
- });
- }
- });
- }
-
-
- function copyToClipBoard(id) {
- var adstr = "{eyou:ad aid='" + id + "'}\r\n <a href='{$"+"field.links}' {$"+"field.target}><img src='{$"+"field.litpic}' alt='{$"+"field.title}' /></a>\r\n 广告注释:{$"+"field.intro}\r\n{/eyou:ad";
- var contentdiv = '<div class="dialog_content" style="margin: 0px; padding: 0px;"><dl style="padding:10px 30px;line-height:30px"><dd>标签 ad 调用:</dd>';
- contentdiv += '<textarea rows="4" cols="60" style="width:400px;height:100px;">' + adstr + '}</textarea>';
- contentdiv += '<dd style="border-top: dotted 1px #E7E7E7; color: #F60;">请将对应标签代码复制并粘贴到对应模板文件中!</dd></dl></div>';
- layer.open({
- title: '代码调用',
- type: 1,
- shade: layer_shade,
- skin: 'layui-layer-demo',
- area: ['480px', '260px'],
- content: contentdiv
- });
- }
-
-
- $( ".sort-list" ).sortable({
- start: function( event, ui) {
-
- }
- ,stop: function( event, ui ) {
-
- }
- });
-
-
- </script>
-
- {include file="public/footer" /}
|