{lang share_file_content}
+
+ 
+ {lang share_file_content} +

+ {lang share_file_content} +
diff --git a/dzz/share/template/share.htm b/dzz/share/template/share.htm
index 24f2f65..8ac83e0 100644
--- a/dzz/share/template/share.htm
+++ b/dzz/share/template/share.htm
@@ -31,7 +31,10 @@
-
{lang share_file_content}
+
+ 
+ {lang share_file_content} +

+ {lang share_file_content} +
diff --git a/dzz/shares/ajax.php b/dzz/shares/ajax.php
index a25ddf1..6f5a7a4 100644
--- a/dzz/shares/ajax.php
+++ b/dzz/shares/ajax.php
@@ -10,7 +10,7 @@ if (!defined('IN_DZZ')) {
exit('Access Denied');
}
global $_G;
-if(!$_G['setting']['ballowshare']){
+if($_G['setting']['allowshare'] && !$_G['setting']['ballowshare']){
showmessage('no_privilege');
}
$open = false;
@@ -46,9 +46,8 @@ if(isset($_GET['currentfolder']) && $_GET['currentfolder']){
}else{
$currentfolder = false;
}
-$ismobile = helper_browser::ismobile();
$page = (isset($_GET['page'])) ? intval($_GET['page']):1;
-$perpage = ($ismobile) ? 20:20;
+$perpage = 20;
$start = ($page - 1) * $perpage;
$gets = array('mod' => 'shares', 'sid' => $sid, );
$theurl = BASESCRIPT . "?" . url_implode($gets);
@@ -124,10 +123,6 @@ if (count($list) >= $perpage) {
} else {
$naxtpage = 0;
}
-if($ismobile){
- include template('mobile/list_item');
-}else{
- include template('list_item');
-}
+include template('list_item');
dexit();
?>
diff --git a/dzz/shares/download.php b/dzz/shares/download.php
index 4f33ef7..8fb34b7 100644
--- a/dzz/shares/download.php
+++ b/dzz/shares/download.php
@@ -10,7 +10,7 @@
@set_time_limit(0);
include_once libfile('class/ZipStream');
global $_G;
-if(!$_G['setting']['ballowshare']){
+if($_G['setting']['allowshare'] && !$_G['setting']['ballowshare']){
showmessage('no_privilege');
}
$patharr = $_GET['paths'];
diff --git a/dzz/shares/images/folder.css b/dzz/shares/images/folder.css
index 1dd9c1b..2458747 100644
--- a/dzz/shares/images/folder.css
+++ b/dzz/shares/images/folder.css
@@ -49,17 +49,17 @@
/*border-bottom: 1px solid transparent;*/
}
.module-list-view .item-hover {
- background-color: rgba(var(--bs-white-rgb), .35);
+ background-color: var(--bs-primary);
}
.module-list-view .item-block {
- background-color: rgba(var(--bs-white-rgb), .35);
+ background-color: var(--bs-primary);
}
.module-list-view .item-block.item .btns a.dzz{
color: #FFFFFF;
opacity: 1;
}
.module-list-view .item-block.item {
- border-bottom:1px solid #3779ff;
+ border-bottom:1px solid var(--bs-primary);
}
.module-list-view .item-block .col{
color: #FFFFFF;
@@ -94,19 +94,13 @@
.module-list-view .title .col {
cursor: pointer;
_overflow: hidden;
+ padding: var(--radius);
}
.module-list-view .title .col:hover {
background-color: rgba(var(--bs-black-rgb), .175);
}
.module-list-view .col {
float: left;
- height: 51px;
- line-height: 51px;
- text-indent: 10px;
- width: 10%;
- white-space: nowrap;
- text-overflow: ellipsis;
- overflow: hidden;
}
.module-list-view .title .col {
cursor: pointer;
@@ -114,9 +108,7 @@
}
.module-list-view .c1 {
position: relative;
- text-align: left;
- top: 0;
- overflow: visible;
+ padding: var(--radius);
}
.module-list-view .item .btns {
position: absolute;
@@ -140,6 +132,10 @@
.select-toperate-center .btns a .dzz,.btns a.dzz{
opacity: 0.65;
}
+.select-toperate-center .btns a .dzz,.btns a.dzz:hover{
+ opacity: 1;
+ color: #000;
+}
.select-toperate-center .btns a:hover .dzz,.btns:hover a.dzz{
opacity: 1;
}
@@ -323,16 +319,6 @@
border-bottom: 1px solid #DCDCDC;
padding-bottom: 1.42rem;
}
-
-.button-share-group .btn,.btn-group .btn{
- padding: 0px;
- font-size: 14px;
- background: none;
- border: 0;
- box-shadow: none;
- color: #FFFFFF;
- line-height: 64px;
-}
.select-toperate-right .btn-group .btn{
padding: 0px;
font-size: 14px;
@@ -345,24 +331,12 @@
padding-right: 1.42rem;
}
-.button-share-group .btn span{
- font-size: 22px;
- padding:5px 7px;
- vertical-align: middle;
-}
-.button-share-group .btn .dzz-textdecoration{
- /*border-right: 1px solid #FFFFFF;
- padding-right: 1.37rem;*/
-}
.select-toperate-right .btn-group .btn.btn-group-list i,.select-toperate-right .btn-group .btn.btn-group-thumbnail i{
opacity: 0.65;
}
.select-toperate-right .btn-group .btn.btn-group-list i:hover,.select-toperate-right .btn-group .btn.btn-group-thumbnail i:hover{
opacity: 1;
}
-.button-share-group .btn-group a i{
- opacity: 1;
-}
.btn-group .btn.btn-group-list i{
font-size: 22px;
padding: 0px 0.71rem 0px 1rem;
@@ -384,9 +358,6 @@
.nav-pills li{
padding-right: 5px;
}
-.main-header{
- border: none;
-}
.navtopheader{
position: fixed;
top: 0;
@@ -396,10 +367,9 @@
height:65px;
z-index: 2201;
display: none;
- min-width: 768px;
}
.navtoperate{
- background-color:#FFFFFF;
+ background-color:var(--bs-primary);
box-shadow: 0px 0px 15px 0px rgba(0,0,0,0.15);
border-radius: .3rem;
}
@@ -437,10 +407,8 @@
-webkit-box-pack: end;
}
.selectall-box{
- padding-left:2.14rem;
width: auto;
display: inline-block;
- line-height: 65px;
}
.selectall-box .dzz-backing-out{
font-size: 24px;
diff --git a/dzz/shares/images/mobile/password.css b/dzz/shares/images/mobile/password.css
deleted file mode 100644
index ab11a8f..0000000
--- a/dzz/shares/images/mobile/password.css
+++ /dev/null
@@ -1,94 +0,0 @@
-ul,ul li{
- list-style: none;
-}
-.hide{
- display: none;
-}
-.weui-cell__bd{
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
- word-break: break-all;
-}
-.weui-cell__bd h4{
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
- word-break: break-all;
-}
-.weui-submit{
- padding: 0.75rem;
-}
-.weui-cell__hd .weui-cell__recentimg {
- width: 2rem;
- height: 2rem;
- margin-right: var(--radius);
- border-radius: 2px;
-}
-.weui-cell__bd p{
- font-size: 0.7rem;
-}
-.weui-cell__bd p i {
- font-style: normal;
- margin: 0px 0.25rem;
-}
-.weui-share-dzzicon{
- font-size: 1.1rem;
- color: #3779ff;
-}
-/*地址栏开始*/
-.weui-address {
- position: relative;
-}
-.weui-index {
- position: absolute;
- top: 0.4rem;
- left: 0.5rem;
- width: 3rem;
- line-height: 1rem;
-}
-.weui-index .dzz-index {
- font-size: 1.2rem;
- color: #3779FF;
-}
-.weui-index .dzz-index-vline {
- font-size: 1.2rem;
- color: #DDDDDD;
-}
-.weui-address-container {
- margin-left: 0.5rem;
- overflow: hidden;
- position: relative;
- height: 1.5rem;
-}
-.weui-address-field {
- position: absolute;
- top: 0;
- right: 0;
- left: 0;
- white-space: nowrap;
- padding: 0.15rem;
- min-width: 100%;
-}
-.weui-address-field li {
- float: left;
-}
-.weui-address-field li a {
- font-size: 0.7rem;
-}
-.weui-address-field li span {
- vertical-align: middle;
-}
-/*地址栏结束*/
-.weui-member-footer{
- background-color: #FFFFFF;
- position: fixed;
- box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.1);
- margin: 5px;
- left: 0;
- right: 0;
- width: auto;
-}
-.weui-cells_checkbox .weui-check:checked+.weui-icon-checked:before{
- color: #4c8afb;
-}
diff --git a/dzz/shares/index.php b/dzz/shares/index.php
index b6d1e9a..ddde0a8 100644
--- a/dzz/shares/index.php
+++ b/dzz/shares/index.php
@@ -10,13 +10,12 @@ if (!defined('IN_DZZ')) {
exit('Access Denied');
}
global $_G;
-if(!$_G['setting']['ballowshare']){
+if($_G['setting']['allowshare'] && !$_G['setting']['ballowshare']){
showmessage('no_privilege');
}
$osid = $_GET['sid'];
$morepath = $osid;
$sid = dzzdecode($osid);
-$ismobile = helper_browser::ismobile();
$navtitle='分享文件';
$do = isset($_GET['do']) ? trim($_GET['do']) : '';
if ($do == 'adddowns') {
@@ -43,21 +42,13 @@ if ($do == 'adddowns') {
if ($share['password'] && (dzzdecode($share['password']) != authcode($_G['cookie']['pass_' . $sid]))) {
if (submitcheck('passwordsubmit')) {
if ($_GET['password'] != dzzdecode($share['password'])) {
- if ($ismobile) {
- include template('mobile/share_password');
- } else {
- include template('password');
- }
+ include template('password');
exit();
}
dsetcookie('pass_' . $sid, authcode($_GET['password'], 'ENCODE'));
} else {
$rightpassword = dzzdecode($share['password']);
- if ($ismobile) {
- include template('mobile/share_password');
- } else {
- include template('password');
- }
+ include template('password');
exit();
}
}
@@ -111,7 +102,7 @@ if ($do == 'adddowns') {
//增加浏览次数
C::t('shares')->add_views_by_id($sid);
$page = (isset($_GET['page'])) ? intval($_GET['page']) : 1;
- $perpage = ($ismobile) ? 20 : 20;
+ $perpage = 20;
$start = ($page - 1) * $perpage;
$gets = array('mod' => 'shares', 'sid' => $sid,);
$theurl = BASESCRIPT . "?" . url_implode($gets);
@@ -185,10 +176,6 @@ if ($do == 'adddowns') {
$nextpage = 0;
}
//echo $nextpage;die;
- if ($ismobile) {
- include template('mobile/list');
- } else {
- include template('list');
- }
+ include template('list');
}
?>
diff --git a/dzz/shares/save.php b/dzz/shares/save.php
index 95e85df..38952e1 100644
--- a/dzz/shares/save.php
+++ b/dzz/shares/save.php
@@ -10,7 +10,7 @@ if (!defined('IN_DZZ')) {
}
global $_G;
Hook::listen('check_login');//检查是否登录,未登录跳转到登录界面
-if(!$_G['setting']['ballowshare']){
+if($_G['setting']['allowshare'] && !$_G['setting']['ballowshare']){
showmessage('no_privilege');
}
$uid = $_G['uid'];
diff --git a/dzz/shares/scripts/mobile/appevent.js b/dzz/shares/scripts/mobile/appevent.js
deleted file mode 100644
index 365e9b4..0000000
--- a/dzz/shares/scripts/mobile/appevent.js
+++ /dev/null
@@ -1,214 +0,0 @@
-/**
- * Created by a on 2018/5/3.
- */
-(function($){
- var touch = {},
- touchTimeout, tapTimeout, swipeTimeout, longTapTimeout,
- longTapDelay = 500,
- gesture,
- down, up, move,
- eventMap,
- initialized = false
-
- function swipeDirection(x1, x2, y1, y2) {
- return Math.abs(x1 - x2) >=
- Math.abs(y1 - y2) ? (x1 - x2 > 0 ? 'Left' : 'Right') : (y1 - y2 > 0 ? 'Up' : 'Down')
- }
-
- function longTap() {
- longTapTimeout = null
- if (touch.last) {
- touch.el.trigger('longTap')
- touch = {}
- }
- }
-
- function cancelLongTap() {
- if (longTapTimeout) clearTimeout(longTapTimeout)
- longTapTimeout = null
- }
-
- function cancelAll() {
- if (touchTimeout) clearTimeout(touchTimeout)
- if (tapTimeout) clearTimeout(tapTimeout)
- if (swipeTimeout) clearTimeout(swipeTimeout)
- if (longTapTimeout) clearTimeout(longTapTimeout)
- touchTimeout = tapTimeout = swipeTimeout = longTapTimeout = null
- touch = {}
- }
-
- function isPrimaryTouch(event){
- return (event.pointerType == 'touch' ||
- event.pointerType == event.MSPOINTER_TYPE_TOUCH)
- && event.isPrimary
- }
-
- function isPointerEventType(e, type){
- return (e.type == 'pointer'+type ||
- e.type.toLowerCase() == 'mspointer'+type)
- }
-
- // helper function for tests, so they check for different APIs
- function unregisterTouchEvents(){
- if (!initialized) return
- $(document).off(eventMap.down, down)
- .off(eventMap.up, up)
- .off(eventMap.move, move)
- .off(eventMap.cancel, cancelAll)
- $(window).off('scroll', cancelAll)
- cancelAll()
- initialized = false
- }
-
- function setup(__eventMap){
- var now, delta, deltaX = 0, deltaY = 0, firstTouch, _isPointerType
-
- unregisterTouchEvents()
-
- eventMap = (__eventMap && ('down' in __eventMap)) ? __eventMap :
- ('ontouchstart' in document ?
- { 'down': 'touchstart', 'up': 'touchend',
- 'move': 'touchmove', 'cancel': 'touchcancel' } :
- 'onpointerdown' in document ?
- { 'down': 'pointerdown', 'up': 'pointerup',
- 'move': 'pointermove', 'cancel': 'pointercancel' } :
- 'onmspointerdown' in document ?
- { 'down': 'MSPointerDown', 'up': 'MSPointerUp',
- 'move': 'MSPointerMove', 'cancel': 'MSPointerCancel' } : false)
-
- // No API availables for touch events
- if (!eventMap) return
-
- if ('MSGesture' in window) {
- gesture = new MSGesture()
- gesture.target = document.body
-
- $(document)
- .bind('MSGestureEnd', function(e){
- var swipeDirectionFromVelocity =
- e.velocityX > 1 ? 'Right' : e.velocityX < -1 ? 'Left' : e.velocityY > 1 ? 'Down' : e.velocityY < -1 ? 'Up' : null
- if (swipeDirectionFromVelocity) {
- touch.el.trigger('swipe')
- touch.el.trigger('swipe'+ swipeDirectionFromVelocity)
- }
- })
- }
-
- down = function(e){
- if((_isPointerType = isPointerEventType(e, 'down')) &&
- !isPrimaryTouch(e)) return
- firstTouch = _isPointerType ? e :((e.touches) ? e.touches[0]:e.originalEvent.changedTouches[0])
- if (e.touches && e.touches.length === 1 && touch.x2) {
- // Clear out touch movement data if we have it sticking around
- // This can occur if touchcancel doesn't fire due to preventDefault, etc.
- touch.x2 = undefined
- touch.y2 = undefined
- }
- now = Date.now()
- delta = now - (touch.last || now)
- touch.el = jQuery('tagName' in firstTouch.target ?
- firstTouch.target : firstTouch.target.parentNode)
- touchTimeout && clearTimeout(touchTimeout)
- touch.x1 = firstTouch.pageX
- touch.y1 = firstTouch.pageY
- if (delta > 0 && delta <= 250) touch.isDoubleTap = true
- touch.last = now
- longTapTimeout = setTimeout(longTap, longTapDelay)
- // adds the current touch contact for IE gesture recognition
- if (gesture && _isPointerType) gesture.addPointer(e.pointerId)
- }
-
- move = function(e){
- if((_isPointerType = isPointerEventType(e, 'move')) &&
- !isPrimaryTouch(e)) return
- firstTouch = _isPointerType ? e :((e.touches) ? e.touches[0]:e.originalEvent.changedTouches[0])
- cancelLongTap()
- touch.x2 = firstTouch.pageX
- touch.y2 = firstTouch.pageY
-
- deltaX += Math.abs(touch.x1 - touch.x2)
- deltaY += Math.abs(touch.y1 - touch.y2)
- }
-
- up = function(e){
- if((_isPointerType = isPointerEventType(e, 'up')) &&
- !isPrimaryTouch(e)) return
- cancelLongTap()
-
- // swipe
- if ((touch.x2 && Math.abs(touch.x1 - touch.x2) > 30) ||
- (touch.y2 && Math.abs(touch.y1 - touch.y2) > 30))
-
- swipeTimeout = setTimeout(function() {
- if (touch.el){
- touch.el.trigger('swipe')
- touch.el.trigger('swipe' + (swipeDirection(touch.x1, touch.x2, touch.y1, touch.y2)))
- }
- touch = {}
- }, 0)
-
- // normal tap
- else if ('last' in touch)
- // don't fire tap when delta position changed by more than 30 pixels,
- // for instance when moving to a point and back to origin
- if (deltaX < 30 && deltaY < 30) {
- // delay by one tick so we can cancel the 'tap' event if 'scroll' fires
- // ('tap' fires before 'scroll')
- tapTimeout = setTimeout(function() {
-
- // trigger universal 'tap' with the option to cancelTouch()
- // (cancelTouch cancels processing of single vs double taps for faster 'tap' response)
- var event = jQuery.Event('tap')
- event.cancelTouch = cancelAll
- // [by paper] fix -> "TypeError: 'undefined' is not an object (evaluating 'touch.el.trigger'), when double tap
- if (touch.el) touch.el.trigger(event)
-
- // trigger double tap immediately
- if (touch.isDoubleTap) {
- if (touch.el) touch.el.trigger('doubleTap')
- touch = {}
- }
-
- // trigger single tap after 250ms of inactivity
- else {
- touchTimeout = setTimeout(function(){
- touchTimeout = null
- if (touch.el) touch.el.trigger('singleTap')
- touch = {}
- }, 250)
- }
- }, 0)
- } else {
- touch = {}
- }
- deltaX = deltaY = 0
- }
-
- jQuery(document).on(eventMap.up, up)
- .on(eventMap.down, down)
- .on(eventMap.move, move)
-
- // when the browser window loses focus,
- // for example when a modal dialog is shown,
- // cancel all ongoing events
- jQuery(document).on(eventMap.cancel, cancelAll)
-
- // scrolling the window indicates intention of the user
- // to scroll, not tap or swipe, so cancel all ongoing events
- jQuery(window).on('scroll', cancelAll)
-
- initialized = true
- }
-
- ;['swipe', 'swipeLeft', 'swipeRight', 'swipeUp', 'swipeDown',
- 'doubleTap', 'tap', 'singleTap', 'longTap'].forEach(function(eventName){
- jQuery.fn[eventName] = function(callback){return this.on(eventName, callback) }
- /*jQuery.fn[eventName] = function(callback){
- return jQuery(document).off(eventName).on(eventName,this,callback)
- }*/
- })
-
- jQuery.touch = { setup: setup }
-
- jQuery(document).ready(setup)
-})(jQuery)
diff --git a/dzz/shares/scripts/mobile/share.js b/dzz/shares/scripts/mobile/share.js
deleted file mode 100644
index 6642db0..0000000
--- a/dzz/shares/scripts/mobile/share.js
+++ /dev/null
@@ -1,190 +0,0 @@
-//开始长按
-/*
- $(document).bind('contextmenu',function(){
- var e=event;
- e.preventDefault();
- })*/
-var selectors = [];
-//打开文件
-$(document).off('tap.openfile').on('tap.openfile', '.filelist', function () {
- var obj = $(this), dpath = obj.data('dpath');
- if (selectors.length > 0) {
- select_file(obj);
- return false;
- } else {
- if (is_wxwork) {
- var href = obj.data('href');
- window.location.href = href;
- return false;
- } else {
- var dpath = obj.data('dpath');
- var preurl = 'share.php?a=view&s=' + dpath;
- window.open(preurl);
- }
- }
-
-
-})
-//打开文件夹
-$(document).off('tap.openfolder').on('tap.openfolder', '.folderlist', function () {
- var obj = $(this), dhpath = obj.data('dhpath'), dpath = obj.data('dpath');
- if (selectors.length > 0) {
- select_file(obj);
- return false;
- } else {
- $.post(MOD_URL + '&op=ajax', {path: dhpath, currentfolder: 0}, function (data) {
- $('#dataContainer').html(data);
- $('#filelist').html($('#dataContainer').find('.module-list').html());
- $($('#dataContainer').find('.breadcrumb-data:first').html()).insertAfter($('.breadcrumb li').last());
- $('.breadcrumb li:not(:last)').each(function () {
- $(this).removeClass('active');
- $(this).html('' + $(this).html() + '');
- });
- $('#weui_address_scroll').navbarscroll();
- $('#dataContainer').empty();
- })
- }
-})
-//选择文件
-function select_file(obj) {
- var dpath = obj.data('dpath'), index = $.inArray(dpath, selectors);
- if (obj.find('.weui-cells_checkbox .weui-check').prop('checked')) {
- obj.find('.weui-cells_checkbox').addClass('hide');
- obj.find('.weui-cell__ft').removeClass('hide');
- obj.find('.weui-cells_checkbox .weui-check').prop('checked', false)
- if (index != -1) {
- selectors.splice(index, 1);
- }
- } else {
- obj.find('.weui-cells_checkbox').removeClass('hide');
- obj.find('.weui-cell__ft').addClass('hide');
- obj.find('.weui-cells_checkbox .weui-check').prop('checked', true)
- if (index == -1) {
- selectors.push(dpath);
- }
- }
- chk_select();
-}
-//选择文件
-$(document).off('longTap.select').on('longTap.select', '.weui-cell_longpress', function () {
- var obj = $(this);
- select_file(obj);
-})
-function chk_select() {
- if (selectors.length > 0) {
- $('.weui-cells_checkbox').removeClass('hide');
- $('.weui-cell__ft').addClass('hide');
- } else {
- $('.weui-cells_checkbox').addClass('hide');
- $('.weui-cell__ft').removeClass('hide');
- }
- return false;
-}
-$(document).off('tap.route').on('tap.route', '.route', function () {
- var obj = $(this);
- var href = obj.data('href');
- $.post(href, {currentfolder: 0}, function (data) {
- $('#dataContainer').html(data);
- $('#filelist').html($('#dataContainer').find('.module-list').html());
- obj.nextAll('li').remove();
- $('.breadcrumb li:not(:last)').each(function () {
- $(this).removeClass('active');
- });
- $('#weui_address_scroll').navbarscroll();
- $('#dataContainer').empty();
- })
-})
-//加载更多
-//单页滚动加载
-var loading = false; //状态标记
-$(document.body).infinite().on("infinite", function () {
- if (loading) return;
- loading = true;
- var nextpage=$('#nextpage');
- if (nextpage.length) {
- $.post(DZZSCRIPT + '?mod=shares&op=ajax', {'morepath': nextpage.data('morepath'), 'page': nextpage.data('nextpage')}, function (data) {
- loading = false;
- $('#dataContainer').html(data);
- $('#filelist #nextpage').replaceWith($('#dataContainer').find('.module-list').html());
- $('#dataContainer').empty();
- });
- } else {
- loading = false;
- }
-});
-function nextPageLoad(){
- if (loading) return;
- loading = true;
- var nextpage=$('#nextpage');
- if (nextpage.length) {
- $.post(DZZSCRIPT + '?mod=shares&op=ajax', {'morepath': nextpage.data('morepath'), 'page': nextpage.data('nextpage')}, function (data) {
- loading = false;
- $('#dataContainer').html(data);
- $('#filelist #nextpage').replaceWith($('#dataContainer').find('.module-list').html());
- $('#dataContainer').empty();
- });
- } else {
- loading = false;
- }
-}
-//保存文件
-$(document).off('tap.savefile').on('tap.savefile', '.savefiles', function () {
- var action = 'index.php?mod=system&op=mobilefileselection&type=2&handlekey=seldir&allowcreate=1',
- rids = [], callback_url = encodeURI(MOD_URL + '&op=save'), token = {};
- if (selectors.length > 0) {
- rids = selectors.join(',');
- } else {
- $('.weui-cell_longpress').each(function () {
- var rid = $(this).data('dpath');
- rids.push(rid);
- })
- rids = rids.join(',');
- }
- token = {"paths": rids};
- if ($('#submitForm').length < 1) {
- var form = $('');
- $(document.body).append(form);
- } else {
- form = $('#submitForm');
- }
- if ($('#tokendata').length < 1) {
- var tokendata = $('');
- form.append(tokendata);
- } else {
- var tokendata = $('#tokendata');
- }
-
- tokendata.val(JSON.stringify(token));
- if ($('#callbackdata').length < 1) {
- var callbackdata = $('');
- form.append(callbackdata);
- } else {
- var callbackdata = $('#callbackdata');
- }
- callbackdata.val(callback_url);
- form.attr('action', action);
- form.attr('method', 'post');
- form.submit();
- return false;
-
-})
-//下载文件
-$(document).off('tap.down').on('tap.down', '.downfile', function () {
- var href = DZZSCRIPT + '?mod=io&op=download&checkperm=false',
- rids = [];
- if (selectors.length > 0) {
- rids = selectors.join(',');
- } else {
- $('.weui-cell_longpress').each(function () {
- var rid = $(this).data('dpath');
- rids.push(rid);
- })
- rids = rids.join(',');
- }
- href = href + '&path=' + rids;
- downfile(href);
-})
-
-function yulantishi() {
- confirm('禁止在线预览!');
-}
\ No newline at end of file
diff --git a/dzz/shares/template/header_search.htm b/dzz/shares/template/header_search.htm
index 24d9f3a..d12a317 100644
--- a/dzz/shares/template/header_search.htm
+++ b/dzz/shares/template/header_search.htm
@@ -1,19 +1,23 @@
-
+
\ No newline at end of file
diff --git a/dzz/shares/template/list.htm b/dzz/shares/template/list.htm
index 1e7ff62..fa69714 100644
--- a/dzz/shares/template/list.htm
+++ b/dzz/shares/template/list.htm
@@ -8,7 +8,7 @@
-
+
@@ -151,7 +151,7 @@
data-dpath="$value[dpath]"
/>
- $value[name]
+ $value[name]
diff --git a/dzz/shares/template/list_item.htm b/dzz/shares/template/list_item.htm
index 9fbb1e8..8e31a11 100644
--- a/dzz/shares/template/list_item.htm
+++ b/dzz/shares/template/list_item.htm
@@ -8,7 +8,7 @@
- $value[name]
+ $value[name]
-
-
-
diff --git a/dzz/system/css/filelist_detaillist/images/index.htm b/dzz/system/css/filelist_detaillist/images/index.htm
deleted file mode 100644
index e69de29..0000000
diff --git a/dzz/system/css/filelist_detaillist/images/sort_asc.gif b/dzz/system/css/filelist_detaillist/images/sort_asc.gif
deleted file mode 100644
index 67a2a4c..0000000
Binary files a/dzz/system/css/filelist_detaillist/images/sort_asc.gif and /dev/null differ
diff --git a/dzz/system/css/filelist_detaillist/images/sort_desc.gif b/dzz/system/css/filelist_detaillist/images/sort_desc.gif
deleted file mode 100644
index 34db47c..0000000
Binary files a/dzz/system/css/filelist_detaillist/images/sort_desc.gif and /dev/null differ
diff --git a/dzz/system/css/filelist_detaillist/images/treeshow.png b/dzz/system/css/filelist_detaillist/images/treeshow.png
deleted file mode 100644
index 06109c6..0000000
Binary files a/dzz/system/css/filelist_detaillist/images/treeshow.png and /dev/null differ
diff --git a/dzz/system/css/filelist_detaillist/index.htm b/dzz/system/css/filelist_detaillist/index.htm
deleted file mode 100644
index e69de29..0000000
diff --git a/dzz/system/css/filelist_detaillist/style.css b/dzz/system/css/filelist_detaillist/style.css
deleted file mode 100644
index e76efd5..0000000
--- a/dzz/system/css/filelist_detaillist/style.css
+++ /dev/null
@@ -1,263 +0,0 @@
-.CONTENT.filemanage{
- font-size:13px;
- overflow:hidden;
- background:#FBFBFB;
-}
-
-.filemanage .file-icoitem{
- float:left;
- margin:5px 10px;
- border:1px solid #FBFBFB;
- cursor:pointer;
- position:relative;
- z-index:100;
-}
-.filemanage .icosContainer{
- overflow-y:auto;overflow-x:hidden;
- width:100%;
- border-top:1px solid #FFF;
-}
-.filemanage .icosContainer_inner{
- min-height:100%;
-}
-.filemanage .filemanage-ltdrager{
- left:180px;
- top:0px;
- bottom:0px;
- position:absolute;
- cursor:e-resize;
- width:5px;
- border-left:1px solid #FFF;
- z-index:101;
-}
-
-.window .jstree-default.jstree-focused{
- background:#F7F7F7;
-}
-.window .filemanage-left{
- left:0px;top:0px;padding:0px;height:100%; width:180px;overflow-y:auto;overflow-x:hidden;position:absolute;
- background: none repeat scroll 0 0 #F7F7F7;
- border-right:1px solid #D2D2D2;
- z-index:99;
-}
-.window .jstree * {
- box-sizing: content-box;
- -moz-box-sizing: content-box;
- -webkit-box-sizing: content-box;
-}.window .jstree li{
- min-height: 22px;
- line-height: 22px;
-}
-.window .jstree li a{
- min-height: 18px;
- line-height: 20px;
- height:20px;
- position:relative;
- border:1px solid transparent;
- padding:0 2px 0 20px;
- margin-bottom:2px;
-}
-.window .jstree a > ins {
- position:absolute;
- left:0px;
- top:2px;
-}
-.filemanage .filemanage-right{
- left:0px;top:0px;padding:0px;height:100%; position:relative;
- margin-left:180px;
-}
-.filemanage .filemanage-right .filemanage-header{
- background: #FbFbFb;
- border-bottom: 1px solid #ddd;
- font-size: 12px;
- overflow:visible;
-}
-.filemanage-header .nav,.filemanage-bottom .nav{
- margin:0;
-}
-.nav > li > a:focus {
- background: none;
- text-decoration: none;
-}
-.nav-pills .dropdown-menu{
- border-radius:0;
- min-width:100px;
-}
-.filemanage .filemanage-right .filemanage-bottom{
- background: #FbFbFb;
- font-size: 12px;
- position:absolute;
- z-index:100;
- left:0;
- top:0;
- width:100%;
- border-left:1px solid #FFF;
- display:none;
- }
- .filemanage-bottom span{
- padding:0 10px;
- }
-.filemanage-detail-header{
-
-}
-.filemanage .table {
- border-collapse: initial;
-}
-
-.filemanage .table th, .filemanage .table td {
- border-bottom: 1px solid #e7e7e7;
- border-top:1px solid #FFF;
- line-height: 30px;
-}
-.filemanage .detail_header_tr{
- /*background:url(images/header.gif) repeat-x;*/
-}
-
-.filemanage .detail_header_asc{
- display: inline-block;
- vertical-align:middle;
- height: 4px;
- width: 13px;
- margin-left: 3px;
- background-repeat:no-repeat;
- _margin-top:10px;
-}
-.filemanage .detail_header_asc_0{
- background:url(images/sort_desc.gif) no-repeat;
-}
-.filemanage .detail_header_asc_1{
- background:url(images/sort_asc.gif) no-repeat;
-}
-.filemanage .detail_header{
-/* border-left:1px solid #FF;
- border-right:1px solid #FFF;
-*/ overflow:visible;
-}
-.filemanage .detail_header:hover,.filemanage .detail_header_hover{
- background:#F7F7F7;
- /*border-left:1px solid #CCC;
- border-right:1px solid #CCC*/
-}
-.filemanage .detail_header_td_div{
- overflow:hidden;
- line-height:22px;
- height:22px;
- overflow:visible;
- position:relative;
-}
-.filemanage .detail_header_drag{
- position:absolute;
- width:10px;
- height:22px;
- top:0px ;
- right:-5px;
- z-index:10;
-}
-.filemanage .detail_item_name_icon,.DragCopy .detail_item_name_icon{
- max-width:28px;
- max-height:28px;
- display:inline;
- vertical-align:middle;
- margin-top:-5px;
-
-}
-*html .filemanage .detail_item_name_icon, *html .DragCopy .detail_item_name_icon{
- width: expression(this.width > 28 && this.width>=this.height ? 28 : true);
- height: expression(this.height > 28 && this.width<=this.height ? 28 : true);
-}
-
-.filemanage .detail_item_name_text,.DragCopy .detail_item_name_text{
- margin-left:5px;
- cursor:default;
-
-}
-.filemanage .detail_text{
- word-break:break-all;
-}
-.filemanage .detail_tr{
- height:32px;
- border-bottom: 1px dotted rgb(204, 204, 204);
-}
-
-
-.filemanage .detail_item_td_div,.DragCopy .detail_item_td_div{
-
- overflow:hidden;
- line-height:30px;
- height:30px;
- overflow:hidden;
- float:left;
-
-}
-
-.filemanage .treeshow-guide{
- width:15px;
- height:35px;
- display:inline-block;
- float:left;
- margin-right:10px;
- background:url(images/treeshow.png) 0 -2px no-repeat;
-}
-.filemanage .treeshow-guide .treeshow-guide-left{
- width:15px;
- height:35px;
- display:inline-block;
- background:url(images/treeshow.png) -15px -2px no-repeat;
-}
-.filemanage .treeshow-guide .treeshow-guide-left:hover{
- background:url(images/treeshow.png) -30px -2px no-repeat;
-}
-.filemanage .treeshow-guide .treeshow-guide-right{
- width:15px;
- height:35px;
- display:inline-block;
- background:url(images/treeshow.png) -45px -2px no-repeat;
-}
-.filemanage .treeshow-guide .treeshow-guide-right:hover{
- background:url(images/treeshow.png) -60px -2px no-repeat;
-}
-
-
-
-.filemanage .detail_tr a:hover{
- text-decoration:none;
-}
-.filemanage .detail_tr.hover{
- background:#F7F7F7;
- transition: all 0.2s ease-in 0s;
-}
-.filemanage .detail_tr.Icoselected{
- background:#EFEFEF;
- transition: all 0.2s ease-in 0s;
-}
-.filemanage .detail_item_name{
- margin:0 10px;
- line-height:30px;
- font-size:12px;
- height:30px;
- font-weight:700;
- overflow:hidden;
- word-wrap:nowrap;
-}
-.filemanage .detail_item_name span{
- cursor:pointer;
-}
-.filemanage .detail_item_info{
- margin:0 10px;
- font-size:12px;
- overflow:hidden;
- word-wrap:nowrap;
- height:18px;
-
-}
-.filemanage .detail_item_hover{
- overflow:hidden;
- word-wrap:nowrap;
- position:relative;
-
- line-height:50px;
-}
-
-.filemanage .detail_item_info span{
- padding:0 10px 0 0;
-}
diff --git a/dzz/system/css/filelist_detaillist/thumb.jpg b/dzz/system/css/filelist_detaillist/thumb.jpg
deleted file mode 100644
index 56b03fd..0000000
Binary files a/dzz/system/css/filelist_detaillist/thumb.jpg and /dev/null differ
diff --git a/dzz/system/css/filelist_middleicon/images/checkbox.png b/dzz/system/css/filelist_middleicon/images/checkbox.png
deleted file mode 100644
index 6a0342a..0000000
Binary files a/dzz/system/css/filelist_middleicon/images/checkbox.png and /dev/null differ
diff --git a/dzz/system/css/filelist_middleicon/images/index.htm b/dzz/system/css/filelist_middleicon/images/index.htm
deleted file mode 100644
index e69de29..0000000
diff --git a/dzz/system/css/filelist_middleicon/images/link_small_bg.png b/dzz/system/css/filelist_middleicon/images/link_small_bg.png
deleted file mode 100644
index d3e0498..0000000
Binary files a/dzz/system/css/filelist_middleicon/images/link_small_bg.png and /dev/null differ
diff --git a/dzz/system/css/filelist_middleicon/images/ops.png b/dzz/system/css/filelist_middleicon/images/ops.png
deleted file mode 100644
index f2cbb1a..0000000
Binary files a/dzz/system/css/filelist_middleicon/images/ops.png and /dev/null differ
diff --git a/dzz/system/css/filelist_middleicon/images/play.png b/dzz/system/css/filelist_middleicon/images/play.png
deleted file mode 100644
index 8c76b10..0000000
Binary files a/dzz/system/css/filelist_middleicon/images/play.png and /dev/null differ
diff --git a/dzz/system/css/filelist_middleicon/images/saveto.png b/dzz/system/css/filelist_middleicon/images/saveto.png
deleted file mode 100644
index 74dc6ef..0000000
Binary files a/dzz/system/css/filelist_middleicon/images/saveto.png and /dev/null differ
diff --git a/dzz/system/css/filelist_middleicon/images/selected.png b/dzz/system/css/filelist_middleicon/images/selected.png
deleted file mode 100644
index ae3dc78..0000000
Binary files a/dzz/system/css/filelist_middleicon/images/selected.png and /dev/null differ
diff --git a/dzz/system/css/filelist_middleicon/images/selected_folder.png b/dzz/system/css/filelist_middleicon/images/selected_folder.png
deleted file mode 100644
index 443cd3a..0000000
Binary files a/dzz/system/css/filelist_middleicon/images/selected_folder.png and /dev/null differ
diff --git a/dzz/system/css/filelist_middleicon/images/share.png b/dzz/system/css/filelist_middleicon/images/share.png
deleted file mode 100644
index 92fb690..0000000
Binary files a/dzz/system/css/filelist_middleicon/images/share.png and /dev/null differ
diff --git a/dzz/system/css/filelist_middleicon/images/share1.png b/dzz/system/css/filelist_middleicon/images/share1.png
deleted file mode 100644
index 0f28639..0000000
Binary files a/dzz/system/css/filelist_middleicon/images/share1.png and /dev/null differ
diff --git a/dzz/system/css/filelist_middleicon/images/share2.png b/dzz/system/css/filelist_middleicon/images/share2.png
deleted file mode 100644
index 5653348..0000000
Binary files a/dzz/system/css/filelist_middleicon/images/share2.png and /dev/null differ
diff --git a/dzz/system/css/filelist_middleicon/images/share3.png b/dzz/system/css/filelist_middleicon/images/share3.png
deleted file mode 100644
index 92fb690..0000000
Binary files a/dzz/system/css/filelist_middleicon/images/share3.png and /dev/null differ
diff --git a/dzz/system/css/filelist_middleicon/images/shortcut.png b/dzz/system/css/filelist_middleicon/images/shortcut.png
deleted file mode 100644
index 1534cf2..0000000
Binary files a/dzz/system/css/filelist_middleicon/images/shortcut.png and /dev/null differ
diff --git a/dzz/system/css/filelist_middleicon/images/tips_1.png b/dzz/system/css/filelist_middleicon/images/tips_1.png
deleted file mode 100644
index 57d6062..0000000
Binary files a/dzz/system/css/filelist_middleicon/images/tips_1.png and /dev/null differ
diff --git a/dzz/system/css/filelist_middleicon/images/tips_2.png b/dzz/system/css/filelist_middleicon/images/tips_2.png
deleted file mode 100644
index a948baf..0000000
Binary files a/dzz/system/css/filelist_middleicon/images/tips_2.png and /dev/null differ
diff --git a/dzz/system/css/filelist_middleicon/images/tips_3.png b/dzz/system/css/filelist_middleicon/images/tips_3.png
deleted file mode 100644
index 55e4c41..0000000
Binary files a/dzz/system/css/filelist_middleicon/images/tips_3.png and /dev/null differ
diff --git a/dzz/system/css/filelist_middleicon/images/tips_4.png b/dzz/system/css/filelist_middleicon/images/tips_4.png
deleted file mode 100644
index 38a0c34..0000000
Binary files a/dzz/system/css/filelist_middleicon/images/tips_4.png and /dev/null differ
diff --git a/dzz/system/css/filelist_middleicon/images/tishibg.png b/dzz/system/css/filelist_middleicon/images/tishibg.png
deleted file mode 100644
index c822497..0000000
Binary files a/dzz/system/css/filelist_middleicon/images/tishibg.png and /dev/null differ
diff --git a/dzz/system/css/filelist_middleicon/images/user100.png b/dzz/system/css/filelist_middleicon/images/user100.png
deleted file mode 100644
index ec47335..0000000
Binary files a/dzz/system/css/filelist_middleicon/images/user100.png and /dev/null differ
diff --git a/dzz/system/css/filelist_middleicon/images/user50.png b/dzz/system/css/filelist_middleicon/images/user50.png
deleted file mode 100644
index 433290c..0000000
Binary files a/dzz/system/css/filelist_middleicon/images/user50.png and /dev/null differ
diff --git a/dzz/system/css/filelist_middleicon/images/video100.png b/dzz/system/css/filelist_middleicon/images/video100.png
deleted file mode 100644
index d18333c..0000000
Binary files a/dzz/system/css/filelist_middleicon/images/video100.png and /dev/null differ
diff --git a/dzz/system/css/filelist_middleicon/images/video50.png b/dzz/system/css/filelist_middleicon/images/video50.png
deleted file mode 100644
index fa4862c..0000000
Binary files a/dzz/system/css/filelist_middleicon/images/video50.png and /dev/null differ
diff --git a/dzz/system/css/filelist_middleicon/index.htm b/dzz/system/css/filelist_middleicon/index.htm
deleted file mode 100644
index e69de29..0000000
diff --git a/dzz/system/css/filelist_middleicon/style.css b/dzz/system/css/filelist_middleicon/style.css
deleted file mode 100644
index 0d0b89d..0000000
--- a/dzz/system/css/filelist_middleicon/style.css
+++ /dev/null
@@ -1,462 +0,0 @@
-/*图标闪烁*/
-.glow {
- filter: glow(color=#FF9900, strengh=2);
- -moz-box-shadow: 0px 0px 2px #FF9900;
- -webkit-box-shadow: 0px 0px 2px #FF9900;
- box-shadow: 0px 0px 2px #FF9900;
- border-radius: 2px;
- -moz-border-radius: 2px;
- -webket-border-radius: 2px;
-}
-/*图标剪切时*/
-.Icoblock.iscut{
- opacity:0.6;
- filter:alpha(opacity=60);
-}
-.Icoblock.middleicon{
- position: relative; float: left; width: 100px; height: 103px;padding:0; z-index:10;overflow: visible;margin:10px;
-}
-.Icoblock.middleicon .icoimgContainer{
- position:relative;width:50px;height:50px;
-}
-
-.Icoblock.middleicon .Icoblock_icon{
- width:50px;height:50px;
-}
-.Icoblock.middleicon .icoimgCover_up{
- position:absolute;left:0px;top:0px;width:100%;height:100%;z-index:1
-}
-.Icoblock.middleicon .icoimgtips{
- position:absolute;left:0px;top:0px;width:50px;height:50px;z-index:2
-}
-.Icoblock.middleicon .icoimgCover_down{
- position:absolute;left:0px;top:0px;width:100%;height:100%;z-index:-1
-}
-
-.Icoblock.middleicon .IcoText_div{
- padding:0 5px;
-}
-.backgound_radius{
- position: absolute; left: 0px; top: 0px; z-index: -5; width: 100%; height: 100%;
-}
-/*图标悬停和选中时背景样式*/
-.hover .backgound_radius{filter:Alpha(opacity=20);opacity:0.2;background:#000;border:#FFF 1px solid;transition: all 0.2s ease-in 0s; }
-.Icoselected .backgound_radius {filter:Alpha(opacity=30);opacity:0.5;background:#000;border:#FFF 1px solid;transition: all 0.2s ease-in 0s; }
-.window .hover .backgound_radius{background:#E5F3FB;border:#70C0E7 1px solid;opacity:1;filter:Alpha(opacity=100);transition: all 0.2s ease-in 0s; }
-.window .Icoselected .backgound_radius {background:#D1E8FF;border:#66A7E8 1px solid;opacity:1;filter:Alpha(opacity=100);transition: all 0.2s ease-in 0s; }
-.icoimgContainer .icoimgtips{
- cursor:pointer;
- overflow:hidden;
-}
-/*图标文字部分*/
-/*桌面图标文字样式*/
-.IcoText { color:#fff; font-weight:700;font-family:Tahoma,'微软雅黑','Simsun'; word-break:break-all;text-shadow: 1px 1px 1px #000,0px 0px 1px #000,0px 0px 1px #000,0px 0px 1px #000;display:inline-block;
-
-}
-.IcoText:hover,.IcoText:focus{
- color:#FFF;
- text-decoration:none;
-}
-/*目录内图标文字样式*/
-.IcoText_folder {font-size:13px; color:#333; font-weight:nomal;font-family:Tahoma,'微软雅黑','Simsun';word-break:break-all;text-decoration:none}
-.IcoText_folder>a:hover{
- color:#333;
-}
-
-.IcoText_div { max-height:38px; overflow:hidden;word-break:break-all; }
-.IcoText_div table{table-layout:fixed;}
-.IcoText_div a{
- text-decoration:none;
-}
-.icosContainer .IcoText_div{position:relative;}
-* html .IcoText_div { height: expression(this.height > 38 ? 38 : true);}
-.IcoText_textarea {
- border: 1px solid #6CABE7;
- font-size: 13px;
- overflow: visible;
- z-index: 99999999;
-}
-
-/*桌面图标前景层*/
-/*html结构
-
-*/
-.icoblank_tip{
- position:absolute;
- display:none;
- z-index:10;
-
-}
-.Icoselected .icoblank_tip,.hover .icoblank_tip{
- display:block;
- transition: all 0.5s ease-in 0s;
-}
-.icoblank_tip .icon
-{
- display:none;
- width:17px;
- height:17px;
- margin:0 5px;
- float:left;
- background-image:url(/dzz/styles/icoblock/default/images/ops.png);
- background-repeat:no-repeat;
-}
-
-.hover .icoblank_tip .icon{
- transition: all 0.2s ease-in 0s;
- display:inline-block;
-}
-.like_icon{
- background-position:0px 0px;
-}
-.liked_icon{
- background-position:-20px 0px;
-}
-.like_icon:hover{
- background-position:-20px 0;
-}
-
-.hover .icoblank_tip .liked_icon:hover{
- background-position:-20px 0;
-}
-
-.share_icon{
- background-position:0px -20px;
-}
-.share_icon:hover{
- background-position:-20px -20px;
-}
-.download_icon{
- background-position:0px -40px;
-}
-.download_icon:hover{
- background-position:-20px -40px;
-}
-.saveto_icon{
- background-position:0px -60px;
-}
-.saveto_icon:hover{
- background-position:-20px -60px;
-}
-
-
-
-.op_righttop{
- right:-24px;
- top:0px;
- width:27px;
-
-}
-.op_righttop .icon{
- margin-bottom:5px;
-}
-.op_lefttop{
- left:0px;
- top:-17px;
- height:17px;
-}
-.op_lefttop .icon{
- margin-right:5px;
-}
-
-
-/*右下角选择框*/
-
-.icoblank_rightbottom{
- width:16px;
- height:16px;
- bottom:2px;
- right:2px;
- transition: all 0.2s ease-in 0s;
- z-index:10;
-}
-.window .icoblank_rightbottom{
- background-color:#FFF;
-}
-.hover .icoblank_rightbottom{
-
- left:3px;
- top:3px;
- _filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='dzz/styles/icoblock/images/checkbox.png', sizingMethod='scale');
- background-image:url(images/checkbox.png) !important;
- background-image:none;
- background-repeat: no-repeat;
-
-}
-.Icoselected .icoblank_rightbottom{
- left:3px;
- top:3px;
- _filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='dzz/styles/icoblock/images/selected.png', sizingMethod='scale');
- background-image:url(images/selected.png) !important;
- background-image:none;
- background-repeat: no-repeat;
-
-}
-.Icoselected .icoblank_rightbottom,.hover .icoblank_rightbottom,.hover .icoblank_leftbottom{
- display:block;
-}
-.selectbox{
- _filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='dzz/styles/icoblock/default/images/checkbox.png', sizingMethod='scale');
- background-image:url(./images/checkbox.png) !important;
- background-image:none;
- background-repeat: no-repeat;
- width:16px;
- height:16px;
- display:inline-block;
- margin:5px;
-}
-.Icoselected .selectbox{
- display:inline-block;
- _filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='dzz/styles/icoblock/default/images/selected_folder.png', sizingMethod='scale');
- background-image:url(./images/selected_folder.png) !important;
- background-image:none;
- background-repeat: no-repeat;
-}
-
-
-
-.icoimgContainer_folder{}
-.icoimgContainer_image{}
-.icoimgContainer_video{}
-.icoimgContainer_music{}
-.icoimgContainer_user{}
-.icoimgContainer_link{}
-.icoimgContainer_attach{}
-
-.icoimgContainer_shortcut .icoimgCover_up{ /*通用图标遮罩层前景层*/
- background-image:url(images/shortcut.png);
- background-repeat: no-repeat ;
- background-size:100%;
-}
-.icoimgContainer .icoimgCover_up{ /*通用图标遮罩层前景层*/
-
-}
-.icoimgContainer .icoimgCover_down{/*通用图标遮罩层背景层*/
-
-}
-.icoimgContainer_image .icoimgCover_up{ /*图片类图标遮罩层前景层*/
-
-}
-.icoimgContainer_image .icoimgCover_down{ /*图片类图标遮罩层背景层*/
-
-}
-
-/*图标图标tips*/
-/*用户图标左上角数字提醒*/
-.icoimgtips .icobutton_tips{
- float:left;
- margin:2px 0px 0 -2px;
- position:absolute;
- top:-5px;
- right:-5px;
-}
-.icoimgtips .tips_size_1{
- line-height:16px;
- font-size:12px;
- width:21px;
- height:21px;
- display:block;
- _filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='dzz/styles/icoblock/images/tips_1.png', sizingMethod='scale');
- background-image:url(images/tips_1.png) !important;
- background-image:none;
- background-repeat: no-repeat;
- color:#FFF;
-}
-.icoimgtips .tips_size_2{
- line-height:16px;
- font-size:12px;
- width:29px;
- height:21px;
- display:block;
- _filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='dzz/styles/icoblock/images/tips_2.png', sizingMethod='scale');
- background-image:url(images/tips_2.png) !important;
- background-image:none;
- background-repeat: no-repeat;
- color:#FFF;
-}
-.icoimgtips .tips_size_3{
- line-height:16px;
- font-size:12px;
- width:35px;
- height:21px;
- display:block;
- _filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='dzz/styles/icoblock/images/tips_3.png', sizingMethod='scale');
- background-image:url(images/tips_3.png) !important;
- background-image:none;
- background-repeat: no-repeat;
- color:#FFF;
-}
-.icoimgtips .tips_size_4{
- line-height:16px;
- font-size:12px;
- width:40px;
- height:21px;
- display:block;
- _filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='dzz/styles/icoblock/images/tips_4.png', sizingMethod='scale');
- background-image:url(images/tips_4.png) !important;
- background-image:none;
- background-repeat: no-repeat;
- color:#FFF;
-}
-/*图标右下喜欢提醒*/
-.icoimgtips .icoimg_liked_tips{
- position:absolute;
- left:-5px;
- top:-5px;
- width:17px;
- height:17px;
- background:url(/dzz/styles/icoblock/default/images/ops.png) -20px 0 no-repeat;
-}
-/*图标左下角分享提醒*/
-.icoimgtips .icoimg_share_tips{
- position:absolute;
- left:-5px;
- bottom:0px;
-}
-.icoimgtips .icoimg_share_tips_1{
- float:left;
- height:16px;
- width:16px;
- margin-right:5px;
- _filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='dzz/styles/icoblock/images/share1.png', sizingMethod='scale');
- background-image:url(images/share1.png) !important;
- background-image:none;
- background-repeat: no-repeat;
- cursor:pointer
-}
-.icoimgtips .icoimg_share_tips_2{
- float:left;
- height:16px;
- width:16px;
- margin-right:5px;
- _filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='dzz/styles/icoblock/images/share2.png', sizingMethod='scale');
- background-image:url(images/share2.png) !important;
- background-image:none;
- background-repeat: no-repeat;
- cursor:pointer
-}
-.icoimgtips .icoimg_share_tips_3{
- float:left;
- height:16px;
- width:16px;
- margin-right:5px;
- _filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='dzz/styles/icoblock/images/share3.png', sizingMethod='scale');
- background-image:url(images/share3.png) !important;
- background-image:none;
- background-repeat: no-repeat;
- cursor:pointer
-}
-/*图标左下角分享提醒*/
-/*图标图片*/
-.IcoImg img {background-color: #FFF; color: #FFF; padding: 2px; vertical-align: bottom;}
-.imageclass{
- background: #FFFFFF;
- border: 1px solid #999;
- padding: 2px;
- box-shadow:1px 1px 2px #000;
- display:none;
- margin: -3px;
-}
-.ie6 .imageclass,.ie7 .imageclass{
- margin:0;
- position:relative;
- left:-3px;
-}
-
-.appclass{
- box-shadow:1px 1px 2px #000;
- display:none;
-}
-.videocss_loaded_flag,.usercss_loaded_flag{
- width:1px;
- height:1px;
-}
-.videoclass{
- border: 1px solid #000;
- box-shadow:1px 1px 2px #000;
- display:none;
- margin:-2px;
-}
-.ie6 .videoclass,.ie7 .videoclass{
- margin:0;
- position:relative;
- left:-2px;
-}
-.videoclass100_100{
- background: url(images/video100.png) center no-repeat;
- padding: 6px 16px 6px 16px;
- width:102px;
- height:83px;
- margin: -6px -16px -6px -16px;
-}
-.ie6 .videoclass100_100,.ie7 .videoclass100_100{
- margin:0;
- position:relative;
- left:-16px;
-}
-.videoclass50_50{
- background: url(images/video50.png) center no-repeat;
- padding: 3px 9px;
- width:50px;
- height:41px;
- margin: -3px -9px;
-}
-.ie6 .videoclass50_50{
- margin:0;
-}
-.ie7 .videoclass50_50{
- margin:0;
- position:relative;
- left:-9px;
-}
-.userclass{
- background: #FFFFFF;
- border: 1px solid #999;
- padding: 2px;
- box-shadow:1px 1px 2px #000;
- display:none;
- margin: -3px;
-}
-.ie6 .userclass,.ie7 .userclass{
- margin:0;
- position:relative;
- left:-3px;
- top:-3px;
-}
-
-.userclass100_100{
- background: url(images/user100.png) center no-repeat;
- padding:15px 19px 21px 16px;width:85px;height:84px;
- margin:-15px -19px -21px -16px;
-}
-.ie6 .userclass100_100,.ie7 .userclass100_100{
- margin:0;
- position:relative;
- left:-8px;
-}
-.userclass50_50{
- background: url(images/user50.png) center no-repeat;
- padding:7px 10px 11px 8px;
- width:42px;height:41px;
- margin:-7px -10px -11px -8px;
-}
-.ie6 .userclass50_50,.ie7 .userclass50_50{
- margin:0;
- position:relative;
- left:-4px;
-}
-
-.image_tosmall.imageclass{
-
-}
-.icoimgContainer_link .image_tosmall{
- background:url('./images/link_small_bg.png') no-repeat center center;
- background-size:contain;
-}
-
-/*图标图片层end*/
\ No newline at end of file
diff --git a/dzz/system/css/mobile/mobile_member.css b/dzz/system/css/mobile/mobile_member.css
deleted file mode 100644
index 14f3086..0000000
--- a/dzz/system/css/mobile/mobile_member.css
+++ /dev/null
@@ -1,390 +0,0 @@
-/*搜索*/
-html, body {
- -webkit-tap-highlight-color: transparent;
- min-height: 100%;
- height: auto;
-}
-ul,li,ul li{
- list-style: none;
-}
-.hide{
- display: none;
-}
-.weui-search-bar {
- padding: 0.5rem 0.5rem 0rem 0.5rem;
- margin-bottom: 0.5rem;
- position: fixed;
- width: 100%;
- top: 0;
- z-index: 3;
-}
-.weui-cells_margin_top{
- margin-top: 60px;
-}
-.weui-search-bar__form {
- background-color: transparent;
- height: 1.5rem;
-}
-.weui-search-return__cancel-btn {
- margin-left: 0.5rem;
- margin-right: .5rem;
- line-height: 1.4rem;
- color: #3779ff;
- white-space: nowrap;
-}
-.weui-search-bar__box {
- padding-left: 0.5rem;
-}
-.weui-search-bar__box .weui-search-bar__input {
- line-height: 1.5rem;
- height: auto;
-}
-.weui-search-bar__box .weui-icon-clear {
- line-height: 1.5rem;
-}
-.weui-search-index__label, .weui-search-bar__label {
- position: absolute;
- text-align: left;
- padding-left: 0.5rem;
- top: 0px;
- bottom: 0px;
- left: 0px;
- right: 0px;
- border-radius: 30px;
- z-index: 2;
- color: #9b9b9b;
- background: #fff;
-}
-.weui-search-index__label .weui-icon-search, .weui-search-bar__label .weui-icon-search {
- float: right;
- clear: both;
- line-height: 1.5rem;
- margin-right: var(--radius);
-}
-.weui-search-bar:after {
- border: none;
-}
-.weui-search-bar__form:after {
- border-radius: 30px;
-}
-.weui-cell__hd {
- display: block;
- float: left;
-}
-.weui-cell__bd {
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
- word-break: break-all;
-}
-.weui-cell-member{
- background-color: #FFFFFF;
-}
-.weui-cell__bd h4{
- color: #555555;
-/* font-weight: normal;*/
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
- word-break: break-all;
-}
-.weui-cell__bd .weui-member-team{
- font-weight:600;
-}
-.weui-member-select{
- position: fixed;
- bottom: 0;
- background-color: #FFFFFF;
- height: 2.5rem;
- box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.1);
- z-index: 3;
- right: 0;
- left: 0;
-}
-.weui-member-select-scroller .img-avatar{
- width: 1.5rem;
- height: 1.5rem;
- line-height: 1.5rem;
- display: block;
- color: #fff;
- font-size: 1rem;
- text-align: center;
- border-radius: 50%;
- margin-right: 0.5rem;
- font-weight: bold;
-}
-.weui-member-success{
- right: 0;
- width: 4rem;
- line-height: 2.5rem;
- text-align: center;
- border-radius: var(--radius);
- box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.1);
- margin: .5rem;
- position: absolute;
- top: 0rem;
-}
-.weui-member-success .weui-member-success-word{
- line-height: 1.5rem;
- width: 100%;
- color:#3779ff;
- display: block;
- background-color: #fff;
- outline: 0;
- border: none;
- border-radius: var(--radius);
-}
-.weui-member-select-user{
- margin-right: 5rem;
- line-height: 2.5rem;
- height: 100%;
- overflow: hidden;
-}
-.weui-member-select-scroller{
- overflow: hidden;
- height: 2.5rem;
- margin-left: 0.5rem;
- min-width: 100%;
-}
-.weui-member-select-scroller li{
- float: left;
- line-height: 2.5rem;
- height: 100%;
- position: relative;
- padding-top: 0.5rem;
-}
-
-/*文件另存为*/
-.weui_cells-margin-top{
- margin-top: 6.3rem;
-}
-.weui-cell__explorer {
- background-color: #ff9800;
-}
-.weui-cell__group {
- background-color: #009688;
-}
-.weui-cell__img {
- font-size: 24px;
- margin-right: var(--radius);
- display: block;
- color: #FFFFFF;
- padding: 0.4rem;
- border-radius: 0.14rem;
-}
-.weui-cells__recent{
- margin-bottom:0.5rem;
-}
-.weui-file-keep{
- background-color: #FFFFFF;
- line-height: 2.75rem;
- text-align: center;
- font-size: 0.8rem;
- position: fixed;
- left: .5rem;
- right: .5rem;
- top: 64px;
- margin: .5rem 0;
- z-index: 3;
- border-radius: 0.5rem;
-}
-.weui-file-keep .weui-file-keep-cancel {
- padding-left: 1rem;
-}
-.weui-file-keep .placeholder {
- color: #2196f3;
-}
-.weui-file-div-keep-cancel{
- display: block;
- color: #2196f3;
-}
-.weui-file-sumite-keep{
- padding-right: 1rem;
-}
-.weui-address {
- position: relative;
-}
-.weui-cell-address{
- margin-top:2.75rem;
-}
-.weui-index {
- position: absolute;
- top: 0.4rem;
- left: 0.5rem;
- width: 3rem;
- line-height: 1rem;
-}
-.weui-index .dzz-index {
- font-size: 1.2rem;
- color: #3779FF;
-}
-.weui-index .dzz-index-vline {
- font-size: 1.2rem;
- color: #DDDDDD;
-}
-.weui-address-container {
- margin-left: 3rem;
- overflow: hidden;
- line-height: 1.7rem;
- position: relative;
- height: 2rem;
-}
-.weui-address-field {
- position: absolute;
- top: 0;
- right: 0;
- left: 0;
- white-space: nowrap;
- padding: 0.15rem;
- min-width: 100%;
-}
-.weui-address-field li {
- float: left;
- color: #666666;
-}
-.weui-address-field li a {
- font-size: 0.7rem;
- color: #666666;
-}
-.weui-address-field li span {
- vertical-align: middle;
-}
-.weui-cells{
- margin-top: 0rem;
-}
-.weui-cell__hd {
- display: block;
- float: left;
-}
-.weui-cell__hd .weui-cell__recentimg {
- width: 2rem;
- height: 2rem;
- margin-right: var(--radius);
- border-radius: 2px;
-}
-.weui-cell__bd p {
- color: #999999;
- font-size: 0.7rem;
-}
-.weui-cell__bd p i {
- font-style: normal;
- padding: 0px 0.25rem;
-}
-.weui-file-footer .weui-file-dzzicon{
- color: #3779ff;
- font-size: 1rem;
-}
-.weui-file-footer.weui-tabbar {
- background-color: #FFFFFF;
- position: fixed;
- box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.1);
-}
-.weui-tabbar__item{
- padding: 0.25rem 0;
-}
-.weui-file-footer.weui-tabbar:before {
- border-top: none;
-}
-.weui-cells__margin_footer{
- margin-bottom: 3rem;
-}
-.weui-dialog__hd {
- padding: 1rem 1rem 0.5rem;
- text-align: left;
- color: #666666;
- font-size: 0.8rem;
-}
-.weui-dialog .weui-dialog__btn.primary {
- color: #3779ff;
-}
-.weui-tabbar__item a {
- display: block;
- position: relative;
-}
-.weui-footer-item i {
- color: #3779ff;
- font-size: 1rem;
-}
-.weui-footer-item p {
- font-size: 0.6rem;
- color: #666666;
-}
-.weui-dropup{
- box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.1);
- background-color: #fff;
- border-radius: var(--radius);
- position: absolute;
- bottom: 100%;
- left: 10%;
- float: left;
- min-width: 180px;
- margin-bottom: 5px;
- z-index: 3;
-}
-.weui-dropup-right {
- left: auto;
- right: 10%;
-}
-.weui-dropup-type{
- left: 0.5rem;
- right: 0.5rem;
- bottom:3rem;
- position: fixed;
- max-height: 450px;
- overflow: auto;
- border-radius: var(--radius);
-}
-.weui-dropup-type .weui-type-word{
- text-align: left;
- font-size: 0.7rem;
-}
-.weui-cells_radio .weui-check:checked+.weui-icon-checked:before{
- color:#3779ff;
-}
-.background-none{
- z-index: 2;
- position: fixed;
- top: 0;
- bottom: 0;
- left: 0;
- right: 0;
- display: none;
-}
-.weui-dropup>li {
- margin: 0 1rem;
- overflow: hidden;
-}
-.weui-dropup>li>a {
- display: block;
- padding: 0.5rem 0rem;
- border-bottom: 1px solid #f2f2f2;
- color: #666666;
- text-align: left;
- position: relative;
- font-size: 0.7rem;
-}
-.org-sel-box-iframe{
- border: none;
-}
-.ti-opacity{
- position: absolute;
- top: 0;
- bottom: 0;
- left: 0;
- right: 0;
- opacity: 0;
-}
-/*搜索*/
-.weui-type-place{
- color: #999999;
- font-size: 0.7rem;
- padding: 0.5rem;
- margin-top: 4.8rem;
-}
-.weui-cell__search {
- background-color: #ffc107;
-}
-.weui-type-resulting{
- color: #666666;
- text-align: center;
-}
diff --git a/dzz/system/css/select-file.css b/dzz/system/css/select-file.css
index 75c23cd..86dc0b3 100644
--- a/dzz/system/css/select-file.css
+++ b/dzz/system/css/select-file.css
@@ -96,16 +96,6 @@ li{
/*top: 0px;*/
/*bottom: 64px;*/
}
-.modal-header{
- border: none;
-}
-.modal-footer{
- /*position: fixed;*/
- left: 0;
- right: 0;
- bottom: 0;
- border: none;
-}
.user-select-body {
padding-top: 20px!important;
}
@@ -171,7 +161,7 @@ li{
display: block;
}
#seluser_dropdown_menu {
- height: 600px;
+ height: 650px;
}
.iconFirstWord {
width: 24px;
@@ -196,9 +186,6 @@ li{
}
}
/*内容上部分开始*/
-.modal-footer {
- padding: 10px 15px;
-}
.select-fileall{
padding:0 15px
}
@@ -393,12 +380,6 @@ li{
z-index: 0;
}
/*新建上传按钮结束*/
-/*新建文件夹开始*/
-
-.modal .modal-footer{
- border-top:none;
-}
-/*新建文件夹结束*/
/*内容上部分结束*/
/*内容中间部分开始*/
.select-filecenter{
@@ -413,16 +394,8 @@ li{
/*列表开始*/
.filemanage .detail_item_td_div, .DragCopy .detail_item_td_div{
- overflow: hidden;
- height: 30px;
float: left;
}
-
-.filemanage .detail_item_td_name, .filemanage td, .filemanage th {
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
-}
.filemanage .IcoText_folder,.filemanage .detail_item_td{
color:#71717a;
}
diff --git a/dzz/system/css/selfilewindow.css b/dzz/system/css/selfilewindow.css
index c4a2799..b4f0a77 100644
--- a/dzz/system/css/selfilewindow.css
+++ b/dzz/system/css/selfilewindow.css
@@ -38,6 +38,8 @@
color: #f9b743;
}
.jstree-default .jstree-wholerow-hovered{
+ background-color: rgba(0,0,0,0.1);
+ background: rgba(0,0,0,0.1);
border-radius: var(--radius);
}
.jstree-default .jstree-wholerow-clicked{
diff --git a/dzz/system/filelist.php b/dzz/system/filelist.php
index 77695d7..6db37dc 100644
--- a/dzz/system/filelist.php
+++ b/dzz/system/filelist.php
@@ -18,7 +18,6 @@ $selhome = isset($_GET['selhome']) ? $_GET['selhome']:0;//展示网盘0不展示
$selorg = isset($_GET['selorg']) ? $_GET['selorg']:0;//展示机构0不展示
$selgroup = isset($_GET['selgroup']) ? $_GET['$selgroup']:0;//展示群组0不展示
$range = isset($_GET['range']) ? $_GET['range']:0;//是否限制展示0不限定
-$ismobile=helper_browser::ismobile();
$data = array();
$powerarr = perm_binPerm::getPowerArr();
if ($do == 'get_children') {
diff --git a/dzz/system/fileselection.php b/dzz/system/fileselection.php
index 248bcb8..75f354f 100644
--- a/dzz/system/fileselection.php
+++ b/dzz/system/fileselection.php
@@ -43,19 +43,14 @@ $gets = array(
$urldefined= '&'. url_implode($gets);
$allowvisit = array('file','listtree','explorerfile','json','ajax','dzzcp','save');
//如果是移动端
-$ismobile = helper_browser::ismobile();
-if($ismobile){
- require MOD_PATH.'/mobilefileselection.php';
-}else{
- if($do){
- if(!in_array($do,$allowvisit)){
- showmessage(lang('access_denied'),dreferer());
- }else{
- require MOD_PATH.'/fileselection/'.$do.'.php';
- }
+if($do){
+ if(!in_array($do,$allowvisit)){
+ showmessage(lang('access_denied'),dreferer());
}else{
- include template('fileselection/index');
- exit();
+ require MOD_PATH.'/fileselection/'.$do.'.php';
}
+}else{
+ include template('fileselection/index');
+ exit();
}
diff --git a/dzz/system/mobile_selectuser.php b/dzz/system/mobile_selectuser.php
index 8fd5627..b3e957d 100644
--- a/dzz/system/mobile_selectuser.php
+++ b/dzz/system/mobile_selectuser.php
@@ -12,7 +12,6 @@ if (!defined('IN_DZZ')) {
}
include_once libfile('function/organization');
$do = isset($_GET['do']) ? trim($_GET['do']) : '';
-$ismobile = helper_browser::ismobile();
$ids = isset($_GET['ids']) ? rawurldecode($_GET['ids']) : '';
$zero = $_GET['zero'] ? urldecode($_GET['zero']) : lang('no_institution_users');//无机构用户名称
$nouser = intval($_GET['nouser']);//不显示用户
diff --git a/dzz/system/mobilefileselection/ajax.php b/dzz/system/mobilefileselection/ajax.php
deleted file mode 100644
index 4714626..0000000
--- a/dzz/system/mobilefileselection/ajax.php
+++ /dev/null
@@ -1,30 +0,0 @@
-fetch($fid);
- $perm = 0;
- $name = !empty($_GET['foldername']) ? trim($_GET['foldername']) : lang('newfolder');
- $fid = intval($_GET['fid']);
- $fname = io_dzz::name_filter(getstr($name, 80));
- if ($arr = IO::CreateFolder($fid, $fname, $perm)) {
- if ($arr['error']) {
- } else {
- $arr = array_merge($arr['icoarr'], $arr['folderarr']);
- $arr['msg'] = 'success';
-
- }
- } else {
- $arr = array();
- $arr['error'] = lang('failure_newfolder');
- }
- exit(json_encode($arr));
-}
\ No newline at end of file
diff --git a/dzz/system/mobilefileselection/file.php b/dzz/system/mobilefileselection/file.php
deleted file mode 100644
index 63657e7..0000000
--- a/dzz/system/mobilefileselection/file.php
+++ /dev/null
@@ -1,195 +0,0 @@
-fetch($gid)) {
- showmessage(lang('no_group'), dreferer());
- }
- //获取成员权限
- $perm = C::t('organization_admin')->chk_memberperm($gid, $uid);
- //判断群组是否开启,如果未开启(共享目录)并且不是管理员不能访问
- if (!$group['diron'] && !$perm) {
- showmessage(lang('no_privilege'), dreferer());
- }
- //判断是否有权限访问群组,如果不是管理员权限(主要针对系统管理员和上级管理员),并且非成员,不能访问
- if (!$perm && !C::t('organization')->ismember($gid, $uid, false)) {
- showmessage(lang('no_privilege'), dreferer());
- }
-
- if (!$group['syatemon']) {
- showmessage(lang('no_group_by_system'), dreferer());
- }
- if (!$group['manageon'] && $perm < 1) {
- showmessage(lang('no_privilege'), dreferer());
- }
- if (!$fid) $fid = $group['fid'];
-}
-$perpage = isset($_GET['perpage']) ? intval($_GET['perpage']) : 10;//默认每页条数
-$page = empty($_GET['page']) ? 1 : intval($_GET['page']);//页码数
-$start = ($page - 1) * $perpage;//开始条数
-$datastart = isset($_GET['datatotal']) ? intval($_GET['datatotal']) : 0;
-$total = 0;//总条数
-//是否有更多群组
-$gropunext = isset($_GET['gropunext']) ? intval($_GET['gropunext']) : true;
-//默认按时间顺序查询
-$disp = isset($_GET['disp']) ? intval($_GET['disp']) : 3;
-$bz = empty($_GET['bz']) ? '' : urldecode($_GET['bz']);
-$marker = empty($_GET['marker']) ? '' : trim($_GET['marker']);
-$data = array();
-$keyword = isset($_GET['keyword']) ? urldecode($_GET['keyword']) : '';
-$exts = isset($_GET['exts']) ? trim($_GET['exts']) : '';
-$conditions = array();
-if ($keyword) {
- $conditions['name'] = array($keyword, 'like', 'and');
-}
-
-//类型筛选
-if ($exts) {
- if ($exts == 'folder') {
- $conditions['type'] = array('folder', '=', 'and');
- } else {
- $extarr = explode(',', $exts);
- $conditions['ext'] = array($extarr, 'in', 'and');
- }
-}
-$asc = isset($_GET['asc']) ? intval($_GET['asc']) : 0;
-
-$order = $asc > 0 ? 'ASC' : "DESC";
-
-switch ($disp) {
- case 0:
- $orderby = 'name';
- $groupby = 'o.orgname';
- break;
- case 1:
- $orderby = 'size';
- $groupby = 'o.dateline';
- break;
- case 2:
- $orderby = array('type', 'ext');
- $groupby = 'o.dateline';
- break;
- case 3:
- $orderby = 'dateline';
- $groupby = 'o.dateline';
- break;
-
-}
-$folder = C::t('folder')->fetch_folderinfo_by_fid($fid);
-$folder['gid'] = ($gid) ? $gid : 0;
-$folder['ismoderator'] = $perm;
-$folderjson = json_encode(array($fid => $folder));
-$folderpath = array_filter(explode('/', preg_replace('/dzz:(.+?):/', '', $folder['path'])));
-$navtitle = $folderpath[0];
-$pathkeyarr = explode('-', str_replace('_', '', $folder['pathkey']));
-$folderpatharr = array();
-foreach (DB::fetch_all("select fid,gid,fname from %t where fid in(%n)", array('folder', $pathkeyarr)) as $v) {
- $folderpatharr[] = array('fid' => $v['fid'], 'gid' => $v['gid'], 'name' => $v['fname']);
-}
-$groups = array();
-$newperpage = 10;
-//如果是机构获或部门取下级
-if ($gid > 0 && $group['type'] == 0 && $gropunext) {
- if (C::t('organization_admin')->chk_memberperm($gid, $uid) || C::t('organization')->ismember($gid, $uid, true)) {
- foreach (DB::fetch_all("select o.*,f.fid from %t o left join %t f on o.fid=f.fid where o.forgid = %d order by $groupby $order limit $start,$perpage", array('organization', 'folder', $gid)) as $v) {
- if (((C::t('organization_admin')->chk_memberperm($v['orgid'], $uid) > 0) || ($v['manageon'] && $v['diron'])) && $v['syatemon']) {
- $resultarr[] = $v;
- if (intval($v['aid'])) {
- //群组图
- $v['img'] = 'index.php?mod=io&op=thumbnail&width=45&height=45&path=' . dzzencode('attach::' . $v['aid']);
- }
- $contaions = C::t('resources')->get_contains_by_fid($v['fid']);
- $v['filenum'] = $contaions['contain'][0];
- $v['foldernum'] = $contaions['contain'][1];
- $v['orgname'] = addslashes($v['orgname']);
- $groups[] = $v;
- } else {
- continue;
- }
- }
- }
- $groupnum = count($groups);
- if ($groupnum >= $perpage) {
- $gropunext = $page + 1;
- } else {
- $gropunext = false;
- }
- //如果有机构部门结果,则减去机构部门结果数量
- $newperpage = $perpage - $groupnum;
-} else {
- $gropunext = false;
-}
-
-//获取文件数据
-if ($newperpage) {
- //查询结果处理
- foreach (C::t('resources')->fetch_all_by_pfid($fid, $conditions, $newperpage, $orderby, $order, $datastart) as $val) {
- if ($val['type'] == 'folder') {
- $val['filenum'] = $val['contaions']['contain'][0];
- $val['foldernum'] = $val['contaions']['contain'][1];
- } else {
- $val['monthdate'] = dgmdate($val['dateline'], 'm-d');
- $val['hourdate'] = dgmdate($val['dateline'], 'H:i');
- }
- if ($val['type'] == 'image') {
- $val['img'] = DZZSCRIPT . '?mod=io&op=thumbnail&width=45&height=45&path=' . dzzencode('attach::' . $val['aid']);
- $val['imgpath'] = DZZSCRIPT . '?mod=io&op=thumbnail&path=' . dzzencode('attach::' . $val['aid']);
- }
- $val['name'] = addslashes($val['name']);
- $data[$val['rid']] = $val;
- }
-}
-$next = false;
-if (count($data) + count($groups) >= $perpage) {
- $next = $page + 1;
-}
-$createFolderPerm = false;
-if($gid){
- if ($folder['ismoderator']) {
- $createFolderPerm = true;
- } else {
- $$createFolderPerm = perm_binPerm::havePower('folder', $folder['perm_inherit']) ? true:false;
- }
-}else{
- $createFolderPerm = true;
-}
-
-//返回数据
-$return = array('fid' => $fid, 'data' => $data ? $data : array(), 'param' => array(
- 'perpage' => $perpage,
- 'bz' => $bz,
- 'asc' => $asc,
- 'disp' => $disp,
- 'page' => $next,
- 'ext' => $exts,
- 'fid' => $fid,
- 'gid' => $gid,
- 'datatotal' => (count($data) + count($groups) + $datastart),
- 'groupnext' => $gropunext,
- 'localsearch' => $bz ? 1 : 0,
- 'createFolderPerm'=>$createFolderPerm
-)
-);
-$params = json_encode($return['param']);
-require template('mobilefileselection/filelist');
-exit();
-
-
-
diff --git a/dzz/system/mobilefileselection/group.php b/dzz/system/mobilefileselection/group.php
deleted file mode 100644
index fd6f327..0000000
--- a/dzz/system/mobilefileselection/group.php
+++ /dev/null
@@ -1,64 +0,0 @@
- 0 ? 'ASC' : "DESC";
-
-switch ($disp) {
- case 0:
- $orderby = 'orgname';
- break;
- case 1:
- $orderby = 'dateline';
- break;
-
-}
-$ordersql = '';
-if (is_array($orderby)) {
- foreach ($orderby as $key => $value) {
- $orderby[$key] = $value . ' ' . $order;
- }
- $ordersql = ' ORDER BY ' . implode(',', $orderby);
-} elseif ($orderby) {
- $ordersql = ' ORDER BY ' . $orderby . ' ' . $order;
-}
-$next = false;
-$nextstart = $start + $limit;
-$explorer_setting = get_resources_some_setting();
-$groups = array();
-//获取用户坐在群组id
-$orgids = C::t('organization_user')->fetch_org_by_uid($uid, 1);
-if (DB::result_first("select count(*) from %t where orgid in(%n) $ordersql ", array('organization', $orgids)) > $nextstart) {
- $next = $nextstart;
-}
-if ($explorer_setting['grouponperm']) {
- foreach (DB::fetch_all("select * from %t where orgid in(%n) $ordersql $limitsql", array('organization', $orgids)) as $orginfo) {
- if ($orginfo['syatemon'] == 0) {//系统管理员关闭群组
- continue;
- } elseif ($orginfo['syatemon'] == 1 && $orginfo['manageon'] == 0 && C::t('organization_admin')->chk_memberperm($orginfo['orgid'], $uid) == 0) {//管理员关闭群组,当前用户不具备管理员权限
- continue;
- }
- if (intval($orginfo['aid']) > 0) {
- //群组图
- $orginfo['imgs'] = 'index.php?mod=io&op=thumbnail&width=45&height=45&path=' . dzzencode('attach::' . $orginfo['aid']);
- } /*else {
- $orginfo['imgs'] = avatar_group($v['orgid'], array($orginfo['orgid'] => array('aid' => $orginfo['aid'], 'orgname' => $orginfo['orgname'])));
- }*/
- $contaions = C::t('resources')->get_contains_by_fid($orginfo['fid']);
- $orginfo['filenum'] = $contaions['contain'][0];
- $orginfo['foldernum'] = $contaions['contain'][1];
- $groups[] = $orginfo;
- }
-}
-require template('mobilefileselection/group');
\ No newline at end of file
diff --git a/dzz/system/mobilefileselection/home.php b/dzz/system/mobilefileselection/home.php
deleted file mode 100644
index 6eccac4..0000000
--- a/dzz/system/mobilefileselection/home.php
+++ /dev/null
@@ -1,29 +0,0 @@
-fetch_home_by_uid();
- $myexplorer['name'] = lang('explorer_user_root_dirname');
- $contains = C::t('resources')->get_contains_by_fid($myexplorer['fid']);
- $myexplorer['filenum'] = $contains['contain'][0];
- $myexplorer['foldernum'] = $contains['contain'][1];
-}
-if ($explorer_setting['orgonperm']) {
- $orgs = C::t('organization')->fetch_all_orggroup($uid);
- foreach ($orgs['org'] as $v) {
- if(intval($v['aid'])){
- $v['icon']='index.php?mod=io&op=thumbnail&width=24&height=24&path=' . dzzencode('attach::' . $v['aid']);
- }
- $contains = C::t('resources')->get_contains_by_fid($v['fid']);
- $v['filenum'] = $contains['contain'][0];
- $v['foldernum'] = $contains['contain'][1];
- $myorgs[] = $v;
- }
-}
-if ($explorer_setting['grouponperm']) {
- $mygroup = true;
-}
-include template('mobilefileselection/index_content');
\ No newline at end of file
diff --git a/dzz/system/mobilefileselection/json.php b/dzz/system/mobilefileselection/json.php
deleted file mode 100644
index 9c8edfe..0000000
--- a/dzz/system/mobilefileselection/json.php
+++ /dev/null
@@ -1,137 +0,0 @@
-fetch_all();
-}
-
-$data['iconview'] = $iconview;
-
-$config = array();
-$config=C::t('user_field')->fetch($_G['uid']);
-$applist=$config['applist']?explode(',',$config['applist']):array();
-if($applist_n =array_keys(C::t('app_market')->fetch_all_by_notdelete($_G['uid']))) {
- $newappids = array();
- foreach ($applist_n as $appid) {
- if (!in_array($appid, $applist)) {
- $applist[] = $appid;
- $newappids[] = $appid;
- }
- }
- if ($newappids){
- C::t('app_user')->insert_by_uid($_G['uid'], $newappids);
- C::t('user_field')->update($_G['uid'], array('applist' => implode(',', $applist)));
- }
-}
-//应用数据
-$appdata=array();
-$appdata=C::t('app_market')->fetch_all_by_appid($applist);
-//$arr['appdata']=microtime(true);
-$applist_1=array();
-foreach($appdata as $value){
- if($value['isshow']<1) continue;
- if($value['available']<1) continue;
- if($value['system'] == 2) continue;
- $applist_1[]=$value['appid'];
-}
-
-
-$data['applist']=array_values($applist_1);
-//获取系统桌面设置信息
-$icosdata = array();
-$data['noticebanlist'] = $config['noticebanlist'] ? explode(',', $config['noticebanlist']) : array();
-//获取打开方式
-/*$data['extopen']['all'] = C::t('app_open')->fetch_all_ext();
-$data['extopen']['ext'] = C::t('app_open')->fetch_all_orderby_ext($_G['uid'], $data['extopen']['all']);
-$data['extopen']['user'] = C::t('app_open_default')->fetch_all_by_uid($_G['uid']);
-//获取用户的默认打开方式
-$data['extopen']['userdefault'] = C::t('app_open_default')->fetch_all_by_uid($_G['uid']);
-//目录数据
-$folderdata = array();
-$data['cut']=array();
-//用户粘贴板数据
-$clipboardinfo = C::t('resources_clipboard')->fetch_by_uid($uid);
-if($clipboardinfo){
- //复制类型1为复制,2为剪切
- $copttype = $clipboardinfo['copytype'];
- $data['cut']['iscut'] = ($copttype == 1) ? 0:1;
-
- $files = explode(',',$clipboardinfo['files']);
- foreach($files as $v){
- $resourcesdata = C::t('resources')->fetch_by_rid($v);
- if($resourcesdata['type'] == 'folder'){
- $folderdata[$resourcesdata['fid']] = C::t('folder')->fetch_by_fid($resourcedata['oid']);
- $icosdata[$v] = $resourcesdata;
- }else{
- $icosdata[$v] = $resourcesdata;
- }
- }
- $data['cut']['icos'] = $files;
-}else{
- $data['cut']['icos']=array();
-}*/
-
-$data['formhash'] = $_G['formhash'];
-
-
-$data['sourcedata'] = array(
- 'icos' => $icosdata ? $icosdata : array(),
- 'folder' => $folderdata ? $folderdata : array(),
- 'app' => $appdata?$appdata:array()
-);
-$space['attachextensions'] = $space['attachextensions'] ? explode(',', $space['attachextensions']) : array();
-
-$data['myspace'] = $data['space'] = $space;
-$thame = getThames();
-$data['thame'] = $thame['data'];
-/*$infoPanelOpened = C::t('user_setting')->fetch_by_skey('infoPanelOpened');
-if (isset($infoPanelOpened)) {
- $data['infoPanelOpened'] = ($infoPanelOpened) ? 1 : 0;
-} else {
- C::t('user_setting')->update_by_skey('infoPanelOpened',1);
- $data['infoPanelOpened'] = 1;
-}*/
-$data['mulitype'] = $mulitype;
-$data['fileselectiontype'] = $type;
-$data['callback_url'] = $callback;
-if($exttype){
- $exttype = str_replace(array('"','|','$'),array('"','(',')'),$exttype);
-}
-$data['allowselecttype'] = json_decode($exttype);
-$data['defaultfilename'] = isset($filename) ? $filename:'';
-echo json_encode($data);
-exit();
diff --git a/dzz/system/mobilefileselection/listtree.php b/dzz/system/mobilefileselection/listtree.php
deleted file mode 100644
index caea60f..0000000
--- a/dzz/system/mobilefileselection/listtree.php
+++ /dev/null
@@ -1,9 +0,0 @@
-fetch($fid);
-}
-include template('mobilefileselection/search');
\ No newline at end of file
diff --git a/dzz/system/mobilefileselection/searchfile.php b/dzz/system/mobilefileselection/searchfile.php
deleted file mode 100644
index 9f72fec..0000000
--- a/dzz/system/mobilefileselection/searchfile.php
+++ /dev/null
@@ -1,171 +0,0 @@
- 0 ? 'ASC' : "DESC";
-
-$powerarr = perm_binPerm::getPowerArr();
-
-switch ($disp) {
- case 0:
- $orderby = 'r.name';
- break;
- case 1:
- $orderby = 'r.size';
- break;
- case 2:
- $orderby = array('r.type', 'ext');
- break;
- case 3:
- $orderby = 'r.dateline';
- break;
-
-}
-$ordersql = '';
-if (is_array($orderby)) {
- foreach ($orderby as $key => $value) {
- $orderby[$key] = $value . ' ' . $order;
- }
- $ordersql = ' ORDER BY ' . implode(',', $orderby);
-} elseif ($orderby) {
- $ordersql = ' ORDER BY ' . $orderby . ' ' . $order;
-}
-$wheresql = ' where 1';
-$param = array('resources', 'folder');
-if ($keyword && !preg_match('/^\s*$/', $keyword)) {
- $kewordsarr = explode(',', $keyword);
- $tids = C::t('tag')->fetch_tid_by_tagname($kewordsarr, 'explorer');
- $tagsql = '';
- if ($tids) {
- $rids = C::t('resources_tag')->fetch_rid_by_tid($tids);
- if (count($rids)) {
- $tagsql = " r.rid in(%n)";
- $param[] = $rids;
- }
-
- }
- $keywordsqlarr = array();
- foreach ($kewordsarr as $v) {
- $keywordsqlarr[] = " r.name like(%s) ";
- $param[] = '%' . trim($v) . '%';
- }
- if ($tagsql) {
- $wheresql .= " and ($tagsql or (" . implode(' or ', $keywordsqlarr) . "))";
- } else {
- $wheresql .= " and (" . implode(' or ', $keywordsqlarr) . ")";
- }
-}
-//类型筛选
-if ($exts) {
- if($exts == 'folder'){
- $wheresql .= ' and r.type = %s';
- $param[] = 'folder';
- }else{
- $extarr = explode(',', $exts);
- $wheresql .= ' and r.ext in(%n)';
- $param[] = $extarr;
- }
-}
-$orgids = C::t('organization')->fetch_all_orgid();//获取所有有管理权限的部门
-$or = array();
-if (!$fid) {
- //我的
- $or[] = "(r.gid=0 and r.uid=%d)";
- $param[] = $uid;
- //我管理的群组或部门的文件
- if ($orgids['orgids_admin']) {
- $or[] = "r.gid IN (%n)";
- $param[] = $orgids['orgids_admin'];
- }
-
- if ($orgids['orgids_member']) {
- $or[] = "(r.gid IN(%n) and ((f.perm_inherit & %d) OR (r.uid=%d and f.perm_inherit & %d)))";
- $param[] = $orgids['orgids_member'];
- $param[] = $powerarr['read2'];
- $param[] = $_G['uid'];
- $param[] = $powerarr['read1'];
- }
-
-
-} else {
- $folderinfo = C::t('folder')->fetch($fid);
- if (($folderinfo['gid'] > 0 && C::t('organization_admin')->chk_memberperm($gid)) || !$folderinfo['gid']) {//如果具有管理员权限
- $wheresql .= ' and r.pfid = %d ';
- $param[] = $fid;
-
- } else {
- $wheresql .= ' and r.pfid = %d and ((f.perm_inherit & %d) OR (r.uid=%d and f.perm_inherit & %d))';
- $param[] = $fid;
- $param[] = $powerarr['read2'];
- $param[] = $_G['uid'];
- $param[] = $powerarr['read1'];
- }
-}
-if ($or && !$fid) $wheresql .= " and (" . implode(' OR ', $or) . ")";
-$data = array();
-$foldersids = $folderdata = array();
-if ($total = DB::result_first("SELECT COUNT(*) FROM %t r LEFT JOIN %t f ON r.pfid=f.fid $wheresql", $param) > $start) {
- foreach (DB::fetch_all("SELECT r.rid FROM %t r LEFT JOIN %t f ON r.pfid=f.fid $wheresql $limitsql", $param) as $value) {
- if ($arr = C::t('resources')->fetch_by_rid($value['rid'])) {
- $folderids[$value['pfid']] = $arr['pfid'];
- if ($arr['type'] == 'folder') {
- $folderids[$arr['oid']] = $arr['oid'];
- $arr['filenum'] = $arr['contaions']['contain'][0];
- $arr['foldernum'] = $arr['contaions']['contain'][1];
- } else {
- $arr['monthdate'] = dgmdate($arr['dateline'], 'm-d');
- $arr['hourdate'] = dgmdate($arr['dateline'], 'H:i');
- }
- if ($arr['type'] == 'image') {
- $arr['img'] = DZZSCRIPT . '?mod=io&op=thumbnail&width=45&height=45&path=' . dzzencode('attach::' . $arr['aid']);
- $arr['imgpath'] = DZZSCRIPT . '?mod=io&op=thumbnail&path=' . dzzencode('attach::' . $arr['aid']);
- }
- $data[$arr['rid']] = $arr;
- }
- }
-}
-
-$disp = isset($_GET['disp']) ? intval($_GET['disp']) : intval($usersettings['disp']);//文件排序
-if (!isset($usersettings['iconview'])) $usersettings['iconview'] = 4;
-$iconview = (isset($_GET['iconview']) ? intval($_GET['iconview']) : intval($usersettings['iconview']));//排列方式
-$next = false;
-if (count($data) >= $perpage) {
- $next = $page + 1;
-}
-$return = array(
- 'total' => count($data) + $start,
- 'param' => array(
- 'disp' => $disp,
- 'view' => $iconview,
- 'page' => $next,
- 'perpage' => $perpage,
- 'bz' => $bz,
- 'datatotal' => count($data) + $start,
- 'asc' => $asc,
- 'keyword' => $keyword,
- 'fid' => $fid,
- 'localsearch' => $bz ? 1 : 0,
- 'exts'=>$exts
- ),
-);
-$params = json_encode($return['param']);
-require template('mobilefileselection/searchfile');
-exit();
\ No newline at end of file
diff --git a/dzz/system/orgtree.php b/dzz/system/orgtree.php
index 959e3f6..359b23e 100644
--- a/dzz/system/orgtree.php
+++ b/dzz/system/orgtree.php
@@ -12,7 +12,6 @@ if(!defined('IN_DZZ')) {
}
Hook::listen('check_login');
include_once libfile('function/organization');
-$ismobile=helper_browser::ismobile();
$uid =isset($_GET['uid'])?intval($_GET['uid']):$_G['uid'];
$zero=$_GET['zero']?urldecode($_GET['zero']):lang('no_institution_users');
@@ -193,7 +192,6 @@ function getuserIcon($uids,$datas,&$data){
$data[] = $v;
}
}
-$ismobile=helper_browser::ismobile();
include template('orgtree');
?>
diff --git a/dzz/system/scripts/mobile/appevent.js b/dzz/system/scripts/mobile/appevent.js
deleted file mode 100644
index 365e9b4..0000000
--- a/dzz/system/scripts/mobile/appevent.js
+++ /dev/null
@@ -1,214 +0,0 @@
-/**
- * Created by a on 2018/5/3.
- */
-(function($){
- var touch = {},
- touchTimeout, tapTimeout, swipeTimeout, longTapTimeout,
- longTapDelay = 500,
- gesture,
- down, up, move,
- eventMap,
- initialized = false
-
- function swipeDirection(x1, x2, y1, y2) {
- return Math.abs(x1 - x2) >=
- Math.abs(y1 - y2) ? (x1 - x2 > 0 ? 'Left' : 'Right') : (y1 - y2 > 0 ? 'Up' : 'Down')
- }
-
- function longTap() {
- longTapTimeout = null
- if (touch.last) {
- touch.el.trigger('longTap')
- touch = {}
- }
- }
-
- function cancelLongTap() {
- if (longTapTimeout) clearTimeout(longTapTimeout)
- longTapTimeout = null
- }
-
- function cancelAll() {
- if (touchTimeout) clearTimeout(touchTimeout)
- if (tapTimeout) clearTimeout(tapTimeout)
- if (swipeTimeout) clearTimeout(swipeTimeout)
- if (longTapTimeout) clearTimeout(longTapTimeout)
- touchTimeout = tapTimeout = swipeTimeout = longTapTimeout = null
- touch = {}
- }
-
- function isPrimaryTouch(event){
- return (event.pointerType == 'touch' ||
- event.pointerType == event.MSPOINTER_TYPE_TOUCH)
- && event.isPrimary
- }
-
- function isPointerEventType(e, type){
- return (e.type == 'pointer'+type ||
- e.type.toLowerCase() == 'mspointer'+type)
- }
-
- // helper function for tests, so they check for different APIs
- function unregisterTouchEvents(){
- if (!initialized) return
- $(document).off(eventMap.down, down)
- .off(eventMap.up, up)
- .off(eventMap.move, move)
- .off(eventMap.cancel, cancelAll)
- $(window).off('scroll', cancelAll)
- cancelAll()
- initialized = false
- }
-
- function setup(__eventMap){
- var now, delta, deltaX = 0, deltaY = 0, firstTouch, _isPointerType
-
- unregisterTouchEvents()
-
- eventMap = (__eventMap && ('down' in __eventMap)) ? __eventMap :
- ('ontouchstart' in document ?
- { 'down': 'touchstart', 'up': 'touchend',
- 'move': 'touchmove', 'cancel': 'touchcancel' } :
- 'onpointerdown' in document ?
- { 'down': 'pointerdown', 'up': 'pointerup',
- 'move': 'pointermove', 'cancel': 'pointercancel' } :
- 'onmspointerdown' in document ?
- { 'down': 'MSPointerDown', 'up': 'MSPointerUp',
- 'move': 'MSPointerMove', 'cancel': 'MSPointerCancel' } : false)
-
- // No API availables for touch events
- if (!eventMap) return
-
- if ('MSGesture' in window) {
- gesture = new MSGesture()
- gesture.target = document.body
-
- $(document)
- .bind('MSGestureEnd', function(e){
- var swipeDirectionFromVelocity =
- e.velocityX > 1 ? 'Right' : e.velocityX < -1 ? 'Left' : e.velocityY > 1 ? 'Down' : e.velocityY < -1 ? 'Up' : null
- if (swipeDirectionFromVelocity) {
- touch.el.trigger('swipe')
- touch.el.trigger('swipe'+ swipeDirectionFromVelocity)
- }
- })
- }
-
- down = function(e){
- if((_isPointerType = isPointerEventType(e, 'down')) &&
- !isPrimaryTouch(e)) return
- firstTouch = _isPointerType ? e :((e.touches) ? e.touches[0]:e.originalEvent.changedTouches[0])
- if (e.touches && e.touches.length === 1 && touch.x2) {
- // Clear out touch movement data if we have it sticking around
- // This can occur if touchcancel doesn't fire due to preventDefault, etc.
- touch.x2 = undefined
- touch.y2 = undefined
- }
- now = Date.now()
- delta = now - (touch.last || now)
- touch.el = jQuery('tagName' in firstTouch.target ?
- firstTouch.target : firstTouch.target.parentNode)
- touchTimeout && clearTimeout(touchTimeout)
- touch.x1 = firstTouch.pageX
- touch.y1 = firstTouch.pageY
- if (delta > 0 && delta <= 250) touch.isDoubleTap = true
- touch.last = now
- longTapTimeout = setTimeout(longTap, longTapDelay)
- // adds the current touch contact for IE gesture recognition
- if (gesture && _isPointerType) gesture.addPointer(e.pointerId)
- }
-
- move = function(e){
- if((_isPointerType = isPointerEventType(e, 'move')) &&
- !isPrimaryTouch(e)) return
- firstTouch = _isPointerType ? e :((e.touches) ? e.touches[0]:e.originalEvent.changedTouches[0])
- cancelLongTap()
- touch.x2 = firstTouch.pageX
- touch.y2 = firstTouch.pageY
-
- deltaX += Math.abs(touch.x1 - touch.x2)
- deltaY += Math.abs(touch.y1 - touch.y2)
- }
-
- up = function(e){
- if((_isPointerType = isPointerEventType(e, 'up')) &&
- !isPrimaryTouch(e)) return
- cancelLongTap()
-
- // swipe
- if ((touch.x2 && Math.abs(touch.x1 - touch.x2) > 30) ||
- (touch.y2 && Math.abs(touch.y1 - touch.y2) > 30))
-
- swipeTimeout = setTimeout(function() {
- if (touch.el){
- touch.el.trigger('swipe')
- touch.el.trigger('swipe' + (swipeDirection(touch.x1, touch.x2, touch.y1, touch.y2)))
- }
- touch = {}
- }, 0)
-
- // normal tap
- else if ('last' in touch)
- // don't fire tap when delta position changed by more than 30 pixels,
- // for instance when moving to a point and back to origin
- if (deltaX < 30 && deltaY < 30) {
- // delay by one tick so we can cancel the 'tap' event if 'scroll' fires
- // ('tap' fires before 'scroll')
- tapTimeout = setTimeout(function() {
-
- // trigger universal 'tap' with the option to cancelTouch()
- // (cancelTouch cancels processing of single vs double taps for faster 'tap' response)
- var event = jQuery.Event('tap')
- event.cancelTouch = cancelAll
- // [by paper] fix -> "TypeError: 'undefined' is not an object (evaluating 'touch.el.trigger'), when double tap
- if (touch.el) touch.el.trigger(event)
-
- // trigger double tap immediately
- if (touch.isDoubleTap) {
- if (touch.el) touch.el.trigger('doubleTap')
- touch = {}
- }
-
- // trigger single tap after 250ms of inactivity
- else {
- touchTimeout = setTimeout(function(){
- touchTimeout = null
- if (touch.el) touch.el.trigger('singleTap')
- touch = {}
- }, 250)
- }
- }, 0)
- } else {
- touch = {}
- }
- deltaX = deltaY = 0
- }
-
- jQuery(document).on(eventMap.up, up)
- .on(eventMap.down, down)
- .on(eventMap.move, move)
-
- // when the browser window loses focus,
- // for example when a modal dialog is shown,
- // cancel all ongoing events
- jQuery(document).on(eventMap.cancel, cancelAll)
-
- // scrolling the window indicates intention of the user
- // to scroll, not tap or swipe, so cancel all ongoing events
- jQuery(window).on('scroll', cancelAll)
-
- initialized = true
- }
-
- ;['swipe', 'swipeLeft', 'swipeRight', 'swipeUp', 'swipeDown',
- 'doubleTap', 'tap', 'singleTap', 'longTap'].forEach(function(eventName){
- jQuery.fn[eventName] = function(callback){return this.on(eventName, callback) }
- /*jQuery.fn[eventName] = function(callback){
- return jQuery(document).off(eventName).on(eventName,this,callback)
- }*/
- })
-
- jQuery.touch = { setup: setup }
-
- jQuery(document).ready(setup)
-})(jQuery)
diff --git a/dzz/system/scripts/mobile/explorer.js b/dzz/system/scripts/mobile/explorer.js
deleted file mode 100644
index 739cb9b..0000000
--- a/dzz/system/scripts/mobile/explorer.js
+++ /dev/null
@@ -1,3 +0,0 @@
-/**
- * Created by a on 2018/5/23.
- */
diff --git a/dzz/system/scripts/mobile/file_keep.js b/dzz/system/scripts/mobile/file_keep.js
deleted file mode 100644
index 7405e24..0000000
--- a/dzz/system/scripts/mobile/file_keep.js
+++ /dev/null
@@ -1,319 +0,0 @@
-var _filemanage = {};
-_filemanage = function (json) {
- _filemanage.formhash = json.formhash || ''; //FORMHASH
- _filemanage.type = json.type || 0;//文件选择类型,0为选择文件,1为保存文件,2为选择位置
- _filemanage.mulitype = json.mulitype || 0;//是否允许多选,默认不允许
- _filemanage.callback_url = json.callback_url;
- _filemanage.token = json.token;
- _filemanage.defaultfilename = json.filename;
- if (_filemanage.type == 2) {
- _filemanage.allowselecttype = {'folder': ['文件夹', ['folder'], 'selected']}
- } else {
- _filemanage.allowselecttype = json.exttype || '';//允许筛选文件类型
- }
- //默认筛选文件类型
- if (_filemanage.allowselecttype) {
- for (var o in _filemanage.allowselecttype) {
- if (_filemanage.allowselecttype[o][2] == 'selected') {
- _filemanage.defaultexttype = _filemanage.allowselecttype[o][1].join(',').toLowerCase();
- }
- }
- } else {
- _filemanage.defaultexttype = '';
- }
- _filemanage.defaultfilename = json.defaultfilename || '';
-};
-_filemanage.hash = '';
-_filemanage.getConfig = function (json, callback) {
- new _filemanage(json);
- _filemanage.hashHandler();
- _filemanage.initEvents();
- if (typeof callback === "function") {
- callback(json);
- }
- //});
-};
-_filemanage.selector = [];//选择文件rid
-_filemanage.dataparam = {};//请求文件条件参数
-_filemanage.initEvents = function () { //初始化页面事件
- _filemanage.height();
- //hashchange事件
- $(window).on('hashchange', function () {
- _filemanage.hashHandler();
- });
- $(document).off('click.document-data').on('click.document-data', '.document-data', function () {
- location.hash = jQuery(this).data('hash');
- });
- //右侧加载完成事件
- $(document).off('ajaxLoad.middleContent').on('ajaxLoad.middleContent', function () {
- var hash = location.hash.replace(/^#/i, '');
- var op = hash.replace(/&(.+?)$/ig, '');
- if (hash.indexOf('search') == 0) {
- $('#footermenu').html('');
- } else if (_filemanage.fid) {
- if(_filemanage.dataparam.createFolderPerm){
- $('#footer_menu').find('.filelistmenu .new-folder').removeClass('hide');
- }else{
- $('#footer_menu').find('.filelistmenu .new-folder').addClass('hide');
- }
- $('#footermenu').html($('#footer_menu').find('.filelistmenu').html());
- } else {
- $('#footermenu').html($('#footer_menu').find('.formatmenu').html());
- }
- //设置类型
- if (_filemanage.allowselecttype) {
- var typejson = _filemanage.allowselecttype, typehtml = '', selecttype = '', selectval = '';
- for (var o in typejson) {
- var exts = typejson[o][1].join(',').toLowerCase();
- if (typejson[o][2] == 'selected') {
- selecttype = typejson[o][0];
- selectval = exts;
- typehtml += '';
- } else {
- typehtml += '';
- }
-
-
- }
- $('#footermenu .typeext').html(typehtml);
- }
- //加载更多
- if (_filemanage.dataparam.page) {
-
- //单页滚动加载
- var loading = false; //状态标记
- $(document.body).infinite().on("infinite", function () {
- if (loading) return;
- loading = true;
- if (_filemanage.dataparam.page) {
- $.post(_filemanage.appUrl + '&do=' + _filemanage.hash, _filemanage.dataparam, function (data) {
- $('#containsdata').html(data);
- $('#middleconMenu .filelist').append($('#containsdata').find('.weui-cells__margin_footer').html());
- $('#containsdata').empty();
- if (!_filemanage.dataparam.page) {
- loading = false;
- } else {
- loading = true;
- }
- })
-
- } else {
- jQuery(document.body).destroyInfinite();
- }
- });
- }
- });
-
-};
-_filemanage.height = function () {
- var h = $(document).outerHeight(true);
- var h1 = $('.weui-file-keep').outerHeight(true);
- var h2 = $('.weui-file-footer').outerHeight(true);
- $('#middleconMenu').css('height', h - h1 - h2);
-}
-_filemanage.hashHandler = function () { //处理页面hash变化
- var hash = location.hash;
- hash = hash.replace(/^#/i, '');
- if (!hash) {
- hash = 'home';
- }
- if (hash === _filemanage.hash) {
- return false;
- }
- if (hash !== _filemanage.hash) {
- _filemanage.getContent(hash, $('#middleconMenu'));
- _filemanage.hash = hash;
- } else {
- _filemanage.hash = hash;
- }
- return false;
-};
-_filemanage.getContent = function (hash, container) { //处理页面加载
- var url = _filemanage.appUrl + '&do=' + hash;
- if(url.indexOf('?') == -1){
- url = url.replace('&','?');
- }
- _filemanage.dataparam = {};
- if (_filemanage.defaultexttype) {
- _filemanage.dataparam.exts = _filemanage.defaultexttype;
- }
- $.post(url, _filemanage.dataparam, function (data) {
- $('#containsdata').html(data);
- $('#middleconMenu').html($('#containsdata').find('.datacontent').html());
- if ($('#containsdata').find('.addresscontent').length) {
- $('#addressdata').html($('#containsdata').find('.addresscontent').html());
- $('#addressdata').removeClass('hide');
- }else if( _filemanage.hash.indexOf('home') == 0){
- $('#addressdata').html('');
- $('#addressdata').removeClass('hide');
- }
- if(_filemanage.hash.indexOf('search') == 0){
- $('.weui-file-keep').addClass('hide');
- $('#addressdata').addClass('hide');
- }else{
- $('.weui-file-keep').removeClass('hide');
- }
- $('#containsdata').empty();
- $(document).trigger('ajaxLoad.middleContent', [hash]);
- })
-
-};
-//打开文件夹
-$(document).off('tap.openhref').on('tap.openhref', '.document-data', function () {
- var hash = $(this).data('hash');
- location.hash = hash;
-})
-//排序
-$(document).off('tap.sort').on('tap.sort', '.sort_menu .sort', function () {
- var sort = $(this).data('sort');
- if (_filemanage.dataparam.disp == sort) _filemanage.dataparam.asc = (_filemanage.dataparam.asc > 0) ? 0 : 1;
- else _filemanage.dataparam.disp = sort;
- _filemanage.dataparam.page = 1;
- _filemanage.dataparam.datatotal = 0;
- if (_filemanage.defaultexttype) {
- _filemanage.dataparam.exts = _filemanage.defaultexttype;
- }
- $.post(_filemanage.appUrl + '&do=' + _filemanage.hash, _filemanage.dataparam, function (data) {
- $('#containsdata').html(data);
- $('#middleconMenu').html($('#containsdata').find('.datacontent').html());
- if ($('#containsdata').find('.addresscontent').length) {
- $('#addressdata').html($('#containsdata').find('.addresscontent').html());
- $('#addressdata').removeClass('hide');
- }
- $('#containsdata').empty();
- $('.sort_menu').addClass('hide');
- })
-})
-//类型筛选
-$(document).off('tap.exts').on('tap.exts', '.weui-check__label', function () {
- var obj = $(this);
- var exts = obj.find('.weui-cell__ft input').val();
- _filemanage.dataparam.exts = exts;
- _filemanage.dataparam.page = 1;
- _filemanage.dataparam.datatotal = 0;
- $.post(_filemanage.appUrl + '&do=' + _filemanage.hash, _filemanage.dataparam, function (data) {
- $('#containsdata').html(data);
- $('#middleconMenu').html($('#containsdata').find('.datacontent').html());
- if ($('#containsdata').find('.addresscontent').length) {
- $('#addressdata').html($('#containsdata').find('.addresscontent').html());
- $('#addressdata').removeClass('hide');
- }
- $('#containsdata').empty();
- obj.closest('.typeext').addClass('hide');
- })
-
-})
-//搜索文件
-$(document).off('tap.search').on('tap.search', '.search', function () {
- var hash = 'search', oldhash = _filemanage.hash;
- oldhash = oldhash.replace(/&/g, '-');
- if (_filemanage.fid) {
- hash += '&fid=' + _filemanage.fid + '&oldhash=' + oldhash;
- }
- location.hash = hash;
-})
-
-//文件选择
-$(document).off('tap.selectFile').on('tap.selectFile', '.document-filelist', function () {
- var obj = $(this), rid = obj.data('rid'), index = $.inArray(rid, _filemanage.selector);
- if (_filemanage.mulitype) {
- if (obj.find('.weui-cells_checkbox .weui-check').prop('checked')) {
- obj.find('.weui-cells_checkbox').addClass('hide');
- obj.find('.weui-cells_checkbox .weui-check').prop('checked', false);
- if (index != -1) {
- _filemanage.selector.splice(index, 1);
- }
- } else {
- obj.find('.weui-cells_checkbox').removeClass('hide');
- obj.find('.weui-cells_checkbox .weui-check').prop('checked', true);
- if (index == -1) {
- _filemanage.selector.push(rid);
- }
- }
- } else {
- if (obj.find('.weui-cells_checkbox .weui-check').prop('checked')) {
- $('.weui-cells_checkbox').each(function () {
- $(this).find('.weui-check').prop('checked', false);
- $(this).addClass('hide');
- })
- if (index != -1) {
- _filemanage.selector.splice(index, 1);
- }
- } else {
- $('.weui-cells_checkbox').each(function () {
- $(this).find('.weui-check').prop('checked', false);
- $(this).addClass('hide');
- })
- obj.find('.weui-cells_checkbox').removeClass('hide');
- obj.find('.weui-cells_checkbox .weui-check').prop('checked', true);
- if (index == -1) {
- _filemanage.selector.push(rid);
- }
- }
-
- }
-
-
-})
-//新建文件夹
-jQuery(document).off('tap.docreate').on('tap.docreate', '.new-folder', function (placeholder) {
- var obj = $(this);
- $.prompt({
- title: '新建文件夹',
- placeholder: '新建文件夹',
- empty: false, // 是否允许为空
- onOK: function (input) {
- var foldername = $('#weui-prompt-input').val(),
- fid = _filemanage.fid, emojpatt = /[\ud800-\udbff][\udc00-\udfff]/gi;
- if (emojpatt.test(foldername)) {
- $.toast('文件名不合法!', "cancel");
- $('#weui-prompt-input').val('');
- return false;
- }
- $.post(_filemanage.appUrl + '&do=ajax&operation=createFolder', {
- 'foldername': foldername,
- 'fid': fid,
- }, function (data) {
- if (data['error']) {
- $.toast(data['error'], 1000);
- } else {
- var html = '
diff --git a/dzz/shares/template/mobile/list.htm b/dzz/shares/template/mobile/list.htm
deleted file mode 100644
index bd4d924..0000000
--- a/dzz/shares/template/mobile/list.htm
+++ /dev/null
@@ -1,80 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/dzz/shares/template/mobile/list_item.htm b/dzz/shares/template/mobile/list_item.htm
deleted file mode 100644
index 8dfefeb..0000000
--- a/dzz/shares/template/mobile/list_item.htm
+++ /dev/null
@@ -1,41 +0,0 @@
-
-
-
-
-
-
-
- {$shareuser[firstword]}
-
-
-
-
-$shareuser[username]的分享文件
-
-
-
-
- -
-
- - {lang all_typename_attach} - -
- -
- $foldername
-
-
-
-
-
-
\ No newline at end of file
diff --git a/dzz/shares/template/mobile/share_password.htm b/dzz/shares/template/mobile/share_password.htm
deleted file mode 100644
index ba54ad9..0000000
--- a/dzz/shares/template/mobile/share_password.htm
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- $v[name]
- 文件:$v[filenum], - 文件夹:$v[foldernum] -
-
-
-
-onclick="yulantishi();" data-href="{DZZSCRIPT}?mod=io&op=download&path=$v[dpath]" data-rid="$v[rid]">
-
-
-
-
-
-{lang nextpage}
-
-
-
- $v[name]
- $v[fsize]{eval echo dgmdate($v[dateline],'Y/m/d');} - {eval echo dgmdate($v[dateline],'H:i');} -
-
-
-
-
-
-
-{eval echo avatar_block($share['uid']);}
-
-
-{$share[username]}{lang password_share_to}
- ' +
- '
';
- $('.filelist').prepend(html);
- $.toast("操作成功");
- }
- }, 'json');
-
- },
- onCancel: function () {
- $('#weui-prompt-input').val('');
- obj.closest('div.weui-dropup').addClass('hide');
- obj.closest('div.weui-dropup').siblings('.background-none').hide();
- obj.closest('div.weui-dropup').siblings('.weui-footer-new-folder').find('p').css('color', '#666');
- }
- });
-});
-//弹出框点击其他地方消失
-jQuery(document).off('tap.confirm').on('tap.confirm', '.background-none', function () {
- $(this).prev('.weui-dropup').addClass('hide');
- $(this).prevAll('.weui-footer-none').find('p').css({'color': '#666666'});
- $(this).hide();
-})
-//排序菜单
-jQuery(document).off('tap.array').on('tap.array', '.weui-footer-sort', function () {
- var dropup = $(this).next('.weui-dropup');
- if (dropup.hasClass('hide')) {
- dropup.removeClass('hide');
- dropup.next('.background-none').show();
- $(this).find('p').css({'color': '#3779ff'});
- }
-})
\ No newline at end of file
diff --git a/dzz/system/selectfile.php b/dzz/system/selectfile.php
index 948c459..d3dc80d 100644
--- a/dzz/system/selectfile.php
+++ b/dzz/system/selectfile.php
@@ -8,6 +8,7 @@
if (!defined('IN_DZZ')) {
exit('Access Denied');
}
+include libfile('function/filerouterule');
$savefile = isset($_GET['savefile']) ? intval($_GET['savefile']) : 0;//是否直接保存文件
$callback = isset($_GET['callback']) ? $_GET['callback'] : 'callback_selectposition';//回调函数名称
$allowcreate = isset($_GET['allowcreate']) ? intval($_GET['allowcreate']):0;//是否允许新建文件夹
@@ -24,7 +25,8 @@ $gets = array(
'selhome'=>$selhome,
'selorg'=>$selorg,
'selgroup'=>$selgroup,
- 'range'=>$range
+ 'range'=>$range,
+ 'savefile'=>$savefile
);
$theurl = MOD_URL . "&op=filelist&callback=".$callback.'&'. url_implode($gets);
include template('selectfile');
diff --git a/dzz/system/selorguser.php b/dzz/system/selorguser.php
index 73b8dc2..1856a7d 100644
--- a/dzz/system/selorguser.php
+++ b/dzz/system/selorguser.php
@@ -11,7 +11,6 @@ if(!defined('IN_DZZ')) {
exit('Access Denied');
}
include_once libfile('function/organization');
-$ismobile=helper_browser::ismobile();
$ids =isset($_GET['ids'])?rawurldecode($_GET['ids']):'';
$navtitle='人员管理';
$zero=$_GET['zero']?urldecode($_GET['zero']):lang('no_institution_users');//无机构用户名称
@@ -102,12 +101,5 @@ if($uids){
}
$openarr_length=count($open)?'1':'';
$openarr=json_encode($open);
-$ismobile = helper_browser::ismobile();
-if($ismobile){
- include template('mobile_selectuser');
- dexit();
-}else{
include template('selorguser');
- exit();
-}
-
+ exit();
\ No newline at end of file
diff --git a/dzz/system/template/filelist.htm b/dzz/system/template/filelist.htm
index 4e29521..013e91a 100644
--- a/dzz/system/template/filelist.htm
+++ b/dzz/system/template/filelist.htm
@@ -20,10 +20,10 @@ body {
var nouser=parseInt('$_GET[nouser]')>0?1:0;
var stype='$_GET[stype]'?parseInt('$_GET[stype]'):0;//0:可以选择机构和用户;1:仅选择机构和部门:2:仅选择用户
var moderator=parseInt('$_GET[moderator]')>0?1:0;*/
- var ismobile = '$ismobile' ? 1 : 0;
+ ' +
- '
' +
- '
' + data.name + '
' + - '文件:0, ' + - '文件夹:0
' + - '
@@ -93,7 +93,7 @@ body {
-
+
@@ -107,6 +107,7 @@ body {
+
@@ -20,10 +19,10 @@
-
-
+
+