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

title) ?>

user->id . '/' . $relativePath; ?>
名称 最近修改时间 大小 操作
$item['type'] . ' file_icon']) ?> $relativePath], ['class' => 'file_name']) ?> --- 'fa-solid fa-download']), [ 'value' => Url::to(['home/download', 'relativePath' => $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-info share-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-info share-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(); $this->registerJsFile('@web/js/home_script.js', ['depends' => [JqueryAsset::class], 'position' => View::POS_END]); ?>