<input type="hidden" name="formhash" value="52de5cf6" />
<input type="hidden" name="noticeauthor" value="c687CZMDYtzDTp9hOvgLX1g3k1mE4PcqJkkgn+60rp7GWSdm"> <div class="comiis_head bg_e b_b">
<div class="header_z"><a onclick="comiis_openrebox(0);"><i class="comiis_font f_d"></i></a></div>
<h2>回复</h2>
<div class="header_y"><a href="https://bbs.binmt.cc/forum.php?mod=post&action=reply&fid=40&tid=23670"><i class="comiis_font f_d"></i></a></div>
</div>
<div class="comiis_styli bg_f b_b cl">
<textarea name="message" id="needmessage" placeholder="说说你的看法..." class="comiis_pt bg_f comiis_mini_pt"></textarea>
</div>
<div class="comiis_post_ico comiis_minipost_icot f_c cl">
<a href="javascript:;"><i class="comiis_font"><em>表情</em></i></a>
<a href="javascript:;" class="comiis_pictitle"><i class="comiis_font"><em>图片</em></i><span>0</span></a>
<span id="fastpostsubmitline" class="y">
<input type="button" value="回复" class="bg_0 f_f" name="replysubmit" id="fastpostsubmit" comiis='handle'>
</span>
</div>
<div id="comiis_post_tab">
<div class="comiis_bqbox bg_f b_b cl" style="display:none;">
<div class="bqbox_t b_t cl">
<ul id="comiis_smilies_key"></ul>
</div>
<div class="comiis_smiley_box b_t">
<div class="swiper-wrapper bqbox_c comiis_optimization"></div>
<div class="bqbox_b cl"></div>
</div>
</div>
<div class="comiis_upbox bg_f b_t b_b cl" style="display:none;">
<ul id="imglist" class="comiis_post_imglist cl">
<li class="up_btn"><a href="javascript:;" class="bg_e b_ok f_d"><i class="comiis_font"></i><input type="file" name="Filedata" id="filedata" multiple="multiple" accept="image/*" /></a></li>
</ul>
</div>
</div>
<script src="https://cdn.bbs.binmt.cc/static/js/mobile/ajaxfileupload.js?YPf" type="text/javascript"></script>
<script src="https://cdn.bbs.binmt.cc/template/comiis_app/comiis/js/buildfileupload.js?YPf" type="text/javascript"></script>
<script type="text/javascript">
var imgexts = typeof imgexts == 'undefined' ? 'jpg, jpeg, gif, png' : imgexts;
var STATUSMSG = {'-1' : '内部服务器错误', '0' : '上传成功', '1' : '不支持此类扩展名', '2' : '服务器限制无法上传那么大的附件', '3' : '用户组限制无法上传那么大的附件', '4' : '不支持此类扩展名', '5' : '文件类型限制无法上传那么大的附件', '6' : '今日您已无法上传更多的附件', '7' : '请选择图片文件(' + imgexts + ')', '8' : '附件文件无法保存', '9' : '没有合法的文件被上传', '10' : '非法操作', '11' : '今日您已无法上传那么大的附件'};
$(document).on('change', '#filedata', function(){
var comiis_file = new Array();
var comiis_fileon = 0;
var comiis_filelength = this.files.length;
if(comiis_filelength == 0){
return;
}
popup.open('<img src="' + IMGDIR + '/imageloading.gif" class="comiis_loading comiis_noloadimage">');
uploadsuccess = function(data) {
comiis_fileon++;
var err = comiis_upload_success(data);
if(err == false){
return false;
}
if(comiis_fileon == comiis_filelength){
popup.close();
popup.open('上传完成!', 'alert');
}
};
uploaderror = function() {
comiis_fileon++;
popup.open('上传失败,请稍后再试', 'alert');
};
if(!(this.files[0].type == 'image/gif' && comiis_filelength == 1) && typeof FileReader != 'undefined' && this.files[0]) {
for (var i = 0; i < this.files.length; i++){
comiis_file[0] = this.files[i];
$.buildfileupload({
uploadurl:'misc.php?mod=swfupload&operation=upload&type=image&inajax=yes&infloat=yes&simple=2',
files:comiis_file,
uploadformdata:{uid:"0", hash:"59760bd526f4723b35050ac6e3726892"},
uploadinputname:'Filedata',
maxfilesize:"51200",
success:uploadsuccess,
error:uploaderror
});
}
} else {
$.ajaxfileupload({
url:'misc.php?mod=swfupload&operation=upload&type=image&inajax=yes&infloat=yes&simple=2',
data:{uid:"0", hash:"59760bd526f4723b35050ac6e3726892"},
dataType:'text',
fileElementId:'filedata',
success:uploadsuccess,
error:uploaderror
});
}
});
</script><script type="text/javascript">
function comiis_upload_success(data){
if(data == '') {
popup.open('上传失败,请稍后再试', 'alert');
}
var dataarr = data.split('|');
if(dataarr[0] == 'DISCUZUPLOAD' && dataarr[2] == 0) {
popup.close();
$('#imglist').append('<li><span aid="'+dataarr[3]+'" class="del"><a href="javascript:;"><i class="comiis_font f_g"></i></a></span><span class="p_img"><a href="javascript:;"><img style="height:54px;width:54px;" id="aimg_'+dataarr[3]+'" title="'+dataarr[6]+'" src="https://cdn.bbs.binmt.cc/data/attachment/forum/'+dataarr[5]+'" class="vm b_ok comiis_noloadimage" /></a></span><input type="hidden" name="attachnew['+dataarr[3]+'][description]" /></li>');
comiis_picnum();
} else {
var sizelimit = '';
if(dataarr[7] == 'ban') {
sizelimit = '(附件类型被禁止)';
} else if(dataarr[7] == 'perday') {
sizelimit = '(不能超过'+Math.ceil(dataarr[8]/1024)+'K)';
} else if(dataarr[7] > 0) {
sizelimit = '(不能超过'+Math.ceil(dataarr[7]/1024)+'K)';
}
popup.open(STATUSMSG[dataarr[2]] + sizelimit, 'alert');
return false;
}
}
var form = $('#postform');
$('.comiis_postbtn').on('click', function() {
var obj = $(this);
if(obj.attr('disable') == 'true') {
return false;
}
$('.comiis_postbtn').attr('disable', 'true').removeClass('bg_c f_f').addClass('bg_0 f_f');
$('.comiis_btn_pn').removeClass('bg_f f_0').addClass('bg_0 f_f');
popup.open('<img src="' + IMGDIR + '/imageloading.gif" class="comiis_loading">');
var postlocation = '';
if(geo.errmsg === '' && geo.loc) {
postlocation = geo.longitude + '|' + geo.latitude + '|' + geo.loc;
}
$.ajax({
type:'POST',
url:form.attr('action') + '&geoloc=' + postlocation + '&handlekey='+form.attr('id')+'&inajax=1',
data:form.serialize(),
dataType:'xml'
})
.success(function(s) {
popup.open(s.lastChild.firstChild.nodeValue);
})
.error(function() {
popup.open('网络出现问题,请稍后再试', 'alert');
});
return false;
});
$(document).on('click', '.del', function() {
var obj = $(this);
$.ajax({
type:'GET',
url:'forum.php?mod=ajax&action=deleteattach&inajax=yes&aids[]=' + obj.attr('aid') + (obj.attr('up') == 1 ? '&tid=&pid=' : ''),
})
.success(function(s) {
obj.parent().remove();
comiis_picnum();
})
.error(function() {
popup.open('网络出现问题,请稍后再试', 'alert');
});
return false;
});
</script></form>
</div>
</div><script type="text/javascript">
Back to home |
File page
Subscribe |
Register |
Login
| N