123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914 |
- {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}" />
- 规则编号: {$detail.orderno} 规则名称: {$detail.title}
- </dd>
- </dl>
-
-
- <dl class="row">
- <dt class="tit"> <label for="title"><em>*</em>学历要求</label> </dt>
- <dd class="opt">
- <select name="xlyq" class="select" id="selectTest333" style="margin:0px 5px;height:30px;width:130px;">
- <option value="0" {eq name="$field.xlyq" value="0"}selected{/eq}>不限制</option>
- <option value="1" {eq name="$field.xlyq" value="1"}selected{/eq}>中专</option>
- <option value="2" {eq name="$field.xlyq" value="2"}selected{/eq}>高技</option>
- <option value="3" {eq name="$field.xlyq" value="3"}selected{/eq}>大专</option>
- <option value="4" {eq name="$field.xlyq" value="4"}selected{/eq}>本科</option>
- <option value="5" {eq name="$field.xlyq" value="5"}selected{/eq}>硕士</option>
- <option value="6" {eq name="$field.xlyq" value="6"}selected{/eq}>博士</option>
- </select>
- </dd>
- </dl>
-
-
- <?php
-
-
-
-
- ?>
-
- <hr/>
- <b>基本要求设置:</b>
-
- <dl class="row">
- <dt class="tit"> <label for="title"><em>*</em>年龄区间:</label> </dt>
- <dd class="opt">
-
- <span style="" id="ega-b">
- <label class="curpoin">
- <input type="radio" name="is_ega" {eq name="$field.is_ega" value="0"}checked{/eq} value="0">年龄不限制</label>
-
- <label class="curpoin">
- <input type="radio" name="is_ega" {eq name="$field.is_ega" value="1"}checked{/eq} value="1">年龄限制</label>
- </span>
-
-
- <span id="ega_input" style="{eyou:if condition='($field.is_ega > 0)'}{eyou:else /}display: none;{/eyou:if} margin-left: 15px !important;text-align: center;">
- <input style="width:50px !important;" type="number" name="ega[]" id="ega333" class="input-txt" autocomplete="off" value="{$field.ega_0}">
- -
- <input style="width:50px !important;" type="number" name="ega[]" id="ega333" class="input-txt" autocomplete="off" value="{$field.ega_1}">
- 岁
- </span>
-
- <script>
- $(function(){
- $('#ega-b input[name="is_ega"]').change(function (){
- console.log("fdfd");
-
- if($(this).val() == 1){
- $('#ega_input').show();
- }else{
- $('#ega_input').hide();
- }
- });
- });
-
- </script>
-
- <span class="err"></span>
- <p class="notic2 red" id="title_tips">
- </p>
- </dd>
- </dl>
-
- <dl class="row">
- <dt class="tit">
- <label for="type">毕业专业</label>
- </dt>
- <dd class="opt">
-
-
-
-
-
- <?php
-
-
- ?>
- <select name="byzy" class="select" id="selectTest777" style="margin:0px 5px;height:30px;width:130px;">
- <option value="0" {eq name="$field.byzy" value="0"}selected{/eq}>不要求</option>
- <option value="1" {eq name="$field.byzy" value="1"}selected{/eq}>指定相关要求</option>
- </select>
-
- <script>
- $(function(){
- $("#selectTest777").change(function(e){
-
-
-
-
-
- console.log($(this).val());
- var v = $(this).val();
- if(v == 1){
- $('#citychoose2').show();
- }else{
- $('#citychoose2').hide();
- }
- });
- });
- </script>
-
- <span class="err"></span>
- <p class="notic"></p>
- </dd>
- </dl>
-
- <dl class="row" id="citychoose2" style="{eyou:if condition='($field.byzy > 0)'}{eyou:else /}display: none;{/eyou:if}">
- <dt class="tit"> <label for="title"><em>*</em>专业选择</label> </dt>
- <dd class="opt">
-
-
- <div id="zhengshu2">
- {$byzy_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">
- <label class="curpoin">
- <input type="radio" name="xxlx" value="0" {eq name="$field.xxlx" value="0"}checked{/eq}>不限制</label>
-
- <label class="curpoin">
- <input type="radio" name="xxlx" value="1" {eq name="$field.xxlx" value="1"}checked{/eq}>全日制</label>
-
- <label class="curpoin">
- <input type="radio" name="xxlx" value="2" {eq name="$field.xxlx" value="2"}checked{/eq}>非全日制</label>
- </dd>
- </dl>
-
-
- <dl class="row">
- <dt class="tit"> <label for="title"><em>*</em>毕业时间:</label> </dt>
- <dd class="opt">
-
- <span style="" id="bysj-b">
- <label class="curpoin">
- <input type="radio" name="bysj" value="0" {eq name="$field.bysj" value="0"}checked{/eq}>不限制</label>
-
- <label class="curpoin">
- <input type="radio" name="bysj" value="1" {eq name="$field.bysj" value="1"}checked{/eq}>限制</label>
- </span>
-
-
-
- <span id="bysj_input" style="{eyou:if condition='($field.bysj > 0)'}{eyou:else /}display: none;{/eyou:if} margin-left: 15px !important;text-align: center;">
- >=
- <input style="width:50px !important;" type="number" name="bysj_time" id="bysj333" class="input-txt" autocomplete="off" value="{$field.bysj_time}">
- 年
- </span>
-
- <script>
- $(function(){
- $('#bysj-b input[name="bysj"]').change(function (){
- console.log("fdfd");
-
- if($(this).val() == 1){
- $('#bysj_input').show();
- }else{
- $('#bysj_input').hide();
- }
- });
- });
-
- </script>
-
- <span class="err"></span>
- <p class="notic2 red" id="title_tips">
- </p>
- </dd>
- </dl>
-
-
- <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($("#selectTest333").val() == '' || $("#selectTest333").val() == 0){
- layer.msg('请选择学历要求!', {icon: 2,time: 1000});
- return false;
- }
-
- if($('#selectTest777').val() == '1'){
- var checkedValues = [];
- $('#zhengshu2 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;
- }
- }
-
-
-
-
-
-
-
- layer_loading('正在处理');
- $.ajax({
- type : 'post',
- url : "{:url('ZcwePosition/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" /}
|