
<div class="wrap file-manager">
    <h1>高级文件管理器</h1>
    
    <div class="file-manager-container">
        <div class="file-list">
            <div class="file-list-header">
                <input type="text" id="file-search" placeholder="搜索文件...">
                <div class="view-options">
                    <span class="view-toggle" data-view="list">列表</span>
                    <span class="view-toggle" data-view="grid">网格</span>
                </div>
            </div>
            
            <div class="file-list-content">
                <?php foreach ($files as $file): ?>
                    <?php $is_dir = is_dir($this->current_path . '/' . $file); ?>
                    <div class="file-item <?= $is_dir ? 'directory' : 'file' ?>" 
                         data-path="<?= $this->current_path . '/' . $file ?>">
                        <?= $file ?>
                    </div>
                <?php endforeach; ?>
            </div>
        </div>
        
        <div class="file-viewer">
            <div class="file-content-area">
                <!-- 文件内容将在这里动态加载 -->
            </div>
        </div>
    </div>
</div>
