⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 list_attached_files.php

📁 ProjectPier 源码 很好的项目管理程序
💻 PHP
字号:
<?php  add_stylesheet_to_page('project/attach_files.css');?><?php if (isset($attached_files) && is_array($attached_files) && count($attached_files)) { ?><div class="objectFiles">  <div class="objectFilesTitle"><span><?php echo lang('attached files') ?>:</span></div>  <ul><?php foreach ($attached_files as $attached_file) { ?><?php if ($attached_file->isPrivate() && !logged_user()->isMemberOfOwnerCompany()) continue; ?>    <li><?php  $attached_file_options = array();  $attached_file_options[] = '<a href="' . $attached_file->getDetailsUrl() . '">' . lang('file details') . '</a>';  if ($attached_files_object->canDetachFile(logged_user(), $attached_file)) {    $attached_file_options[] = '<a href="' . $attached_files_object->getDetachFileUrl($attached_file) . '" onclick="return confirm(\'' . lang('confirm detach file') . '\')">' . lang('detach file') . '</a>';  }?>      <a href="<?php echo $attached_file->getDownloadUrl() ?>"><span><?php echo clean($attached_file->getFilename()) ?></span> (<?php echo format_filesize($attached_file->getFilesize()) ?>)</a> | <?php echo implode(' | ', $attached_file_options) ?>    </li><?php } // foreach ?>  </ul><?php if ($attached_files_object->canAttachFile(logged_user(), $attached_files_object->getProject())) { ?>  <p><a href="<?php echo $attached_files_object->getAttachFilesUrl() ?>">&raquo; <?php echo lang('attach more files') ?></a></p><?php } // if ?></div><?php } else { ?><?php if ($attached_files_object->canAttachFile(logged_user(), $attached_files_object->getProject())) { ?><div class="objectFiles">  <div class="objectFilesTitle"><span><?php echo lang('attached files') ?>:</span> <?php echo lang('no attached files') ?>. <a href="<?php echo $attached_files_object->getAttachFilesUrl() ?>"><?php echo lang('attach files') ?></a>.</div></div><?php } // if ?><?php } // if ?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -