webmain/system/word/rock_word_shate.php
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php if(!defined('HOST'))die('not access');?>
<script >
$(document).ready(function(){
var a = $('#view_{rand}').bootstable({
tablename:'word',url:publicmodeurl('worc','getfiledata'),fanye:true,params:{'atype':'shateall'},
columns:[{
text:'类型',dataIndex:'fileext',renderer:function(v, d){
if(!isempt(d.thumbpath))return '<img src="'+d.thumbpath+'" width="24" height="24">';
var lxs = js.filelxext(v);
return '<img src="web/images/fileicons/'+lxs+'.gif">';
}
},{
text:'名称',dataIndex:'filename',editor:true,align:'left'
},{
text:'大小',dataIndex:'filesizecn',sortable:true
},{
text:'创建者',dataIndex:'optname',sortable:true
},{
text:'创建时间',dataIndex:'optdt',sortable:true
},{
text:'下载次数',dataIndex:'downci',sortable:true
},{
text:'',dataIndex:'opt',renderer:function(v,d,oi){
if(d.ishui=='1')return '已删';
var str = '<a href="javascript:;" onclick="showvies{rand}('+oi+',0)">预览</a> <a href="javascript:;" onclick="showvies{rand}('+oi+',1)"><i class="icon-arrow-down"></i></a>';
if(c.atype=='shatewfx')str+=' <a href="javascript:;" title="取消共享" onclick="showvies{rand}('+oi+',2)"><i class="icon-remove-circle"></i></a>';
return str;
}
}]
});
showvies{rand}=function(oi,lx){
var d=a.getData(oi);
if(lx==1){
js.downshow(d.fileid);
}else if(lx==2){
c.cancelshate(d.id, false);
}else{
js.yulanfile(d.fileid,d.fileext,d.filepath,d.filename);
}
}
var c = {
reload:function(){
a.reload();
},
daochu:function(){
a.exceldown(nowtabs.name);
},
changlx:function(o1,lx){
$("button[id^='state{rand}']").removeClass('active');
$('#state{rand}_'+lx+'').addClass('active');
var as = ['shateall','shatewfx'];
this.atype = as[lx];
a.setparams({'atype':as[lx]},true);
},
search:function(){
var s=get('key_{rand}').value;
a.setparams({key:s},true);
},
后面还有 49 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
