title = '文件管理'; $this->params['breadcrumbs'][] = $this->title; FontAwesomeAsset::register($this); JqueryAsset::register($this); $this->registerCssFile('@web/css/home_style.css'); ?>
名称 | 最近修改时间 | 大小 | 操作 | ||||
---|---|---|---|---|---|---|---|
= Html::tag('i', '', ['class' => $item['type'] . ' file_icon']) ?> = Html::a($item['name'], ['home/index', 'directory' => $relativePath], ['class' => 'file_name']) ?> | = date('Y-m-d H:i:s', $item['lastModified']) ?> | --- | = Html::button(Html::tag('i', '', ['class' => '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' => '打包下载' ]) ?> = Html::button(Html::tag('i', '', ['class' => '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' => '重命名']) ?> = Html::button(Html::tag('i', '', ['class' => 'fa-solid fa-share-nodes']), ['value' => $relativePath, 'class' => 'btn btn-outline-info shares-btn', 'data-bs-toggle' => 'tooltip', 'data-bs-placement' => 'top', 'data-bs-title' => '分享']) ?> = Html::button(Html::tag('i', '', ['class' => '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' => '删除']) ?> | = Html::tag('i', '', ['class' => $item['type'] . ' file_icon']) ?> = Html::a($item['name'], ['home/download', 'relativePath' => $relativePath], ['class' => 'file_name']) ?> | = date('Y-m-d H:i:s', $item['lastModified']) ?> | = $item['size'] !== null ? Yii::$app->formatter->asShortSize($item['size'], 2) : '' ?> | = Html::button(Html::tag('i', '', ['class' => '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' => '下载' ]) ?> = Html::button(Html::tag('i', '', ['class' => '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' => '重命名']) ?> = Html::button(Html::tag('i', '', ['class' => 'fa-solid fa-share-nodes']), ['value' => $relativePath, 'class' => 'btn btn-outline-info shares-btn', 'data-bs-toggle' => 'tooltip', 'data-bs-placement' => 'top', 'data-bs-title' => '分享']) ?> = Html::button(Html::tag('i', '', ['class' => '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' => '删除']) ?> |