title = '文件管理'; $this->params['breadcrumbs'][] = $this->title; FontAwesomeAsset::register($this); JqueryAsset::register($this); $this->registerCssFile('@web/css/home_style.css'); ?>

title) ?>

'btn btn-outline-primary single-download-btn']) ?> 'btn btn-outline-primary batch-zip-download-btn']) ?> 'btn btn-outline-primary batch-zip-btn']) ?> 'btn btn-outline-primary unzip-btn']) ?> 'btn btn-outline-primary single-rename-btn']) ?> 'btn btn-outline-primary batch-copy-btn']) ?> 'btn btn-outline-primary batch-cut-btn']) ?> 'btn btn-outline-primary batch-paste-btn']) ?> 'btn btn-outline-primary calc-sum-btn']) ?> 'btn btn-outline-primary single-share-btn']) ?> 'btn btn-outline-danger batch-delete-btn']) ?> 'btn btn-outline-primary refresh-btn']) ?> 'btn btn-outline-primary new-folder-btn', 'value' => $directory]) ?>
0, 'barOptions' => ['class' => ['bg-success', 'progress-bar-animated', 'progress-bar-striped']], 'label' => '123', //NMD 不是说可选吗 'options' => ['style' => 'display: none;margin-top: 10px;', 'id' => 'progress-bar'] ]); ?> user->id . '/' . $relativePath; ?>
名称 最近修改时间 大小 操作
$item['type'] . ' file_icon']) ?> $relativePath], ['class' => 'file_name']) ?> --- 'fa-solid fa-download']), [ 'value' => $relativePath, 'class' => 'btn btn-outline-primary folder-download-btn', 'data-bs-toggle' => 'tooltip', 'data-bs-placement' => 'top', 'data-bs-title' => '打包下载' ]) ?> 'fa-regular fa-pen-to-square']), ['value' => $relativePath, 'class' => 'btn btn-outline-secondary rename-btn', 'data-bs-toggle' => 'tooltip', 'data-bs-placement' => 'top', 'data-bs-title' => '重命名']) ?> 'fa-solid fa-share-nodes']), ['value' => $relativePath, 'class' => 'btn btn-outline-success shares-btn', 'data-bs-toggle' => 'tooltip', 'data-bs-placement' => 'top', 'data-bs-title' => '分享']) ?> 'fa-regular fa-trash-can']), ['value' => $relativePath, 'class' => 'btn btn-outline-danger delete-btn', 'data-bs-toggle' => 'tooltip', 'data-bs-placement' => 'top', 'data-bs-title' => '删除']) ?> $item['type'] . ' file_icon']) ?> $relativePath], ['class' => 'file_name']) ?> formatter->asShortSize($item['size'], 2) : '' ?> 'fa-regular fa-circle-down']), [ 'value' => Url::to(['home/download', 'relativePath' => $relativePath]), 'class' => 'btn btn-outline-primary download-btn', 'data-bs-toggle' => 'tooltip', 'data-bs-placement' => 'top', 'data-bs-title' => '下载' ]) ?> 'fa-regular fa-pen-to-square']), ['value' => $relativePath, 'class' => 'btn btn-outline-secondary rename-btn', 'data-bs-toggle' => 'tooltip', 'data-bs-placement' => 'top', 'data-bs-title' => '重命名']) ?> 'fa-solid fa-share-nodes']), ['value' => $relativePath, 'class' => 'btn btn-outline-success shares-btn', 'data-bs-toggle' => 'tooltip', 'data-bs-placement' => 'top', 'data-bs-title' => '分享']) ?> 'fa-regular fa-trash-can']), ['value' => $relativePath, 'class' => 'btn btn-outline-danger delete-btn', 'data-bs-toggle' => 'tooltip', 'data-bs-placement' => 'top', 'data-bs-title' => '删除']) ?>
'

重命名文件/文件夹

', 'id' => 'renameModal', 'size' => 'modal-lg', ]); $model = new RenameForm(); $form = ActiveForm::begin(['id' => 'rename-form', 'action' => ['home/rename'], 'method' => 'post']); echo $form->field($model, 'newName')->textInput(['maxlength' => true])->label('新名称'); echo Html::hiddenInput('relativePath', '', ['id' => 'renameRelativePath']); echo Html::submitButton('提交', ['class' => 'btn btn-primary']); ActiveForm::end(); Modal::end(); Modal::begin([ 'title' => '

确认删除

', 'id' => 'deleteModal', 'size' => 'modal-sm', ]); echo Html::tag('div', '你确定要删除这个文件吗?', ['class' => 'modal-body']); echo Html::beginForm(['home/delete'], 'post', ['id' => 'delete-form']); echo Html::hiddenInput('relativePath', '', ['id' => 'deleteRelativePath']); echo Html::submitButton('确认', ['class' => 'btn btn-danger']); echo Html::endForm(); Modal::end(); Modal::begin([ 'title' => '

新建文件夹

', 'id' => 'newFolderModal', 'size' => 'modal-lg', ]); $model1 = new NewFolderForm(); $form = ActiveForm::begin(['id' => 'new-folder-form', 'action' => ['home/new-folder'], 'method' => 'post', 'enableAjaxValidation' => true]); echo $form->field($model1, 'folderName')->textInput(['maxlength' => true])->label('文件夹名称'); echo Html::hiddenInput('relativePath', '', ['id' => 'newDirRelativePath']); echo Html::submitButton('提交', ['class' => 'btn btn-primary']); ActiveForm::end(); Modal::end(); $this->registerJsFile('@web/js/home_script.js', ['depends' => [JqueryAsset::class], 'position' => View::POS_END]); ?>