attach_to_object.php

来自「ProjectPier 源码 很好的项目管理程序」· PHP 代码 · 共 42 行

PHP
42
字号
<?php  set_page_title(lang('attach files'));  project_tabbed_navigation(PROJECT_TAB_FILES);  project_crumbs(array(    array(lang('files'), get_url('files')),    array(lang('attach files'))  ));  add_stylesheet_to_page('project/attach_files.css');?><script type="text/javascript" src="<?php echo get_javascript_url('modules/attachToObjectForm.js') ?>"></script><form action="<?php echo $attach_to_object->getAttachFilesUrl() ?>" method="post" enctype="multipart/form-data"><?php tpl_display(get_template_path('form_errors')) ?>  <div class="hint"><?php echo lang('attach files to object desc', $attach_to_object->getObjectUrl(), clean($attach_to_object->getObjectName())) ?></div>  <div>    <?php echo radio_field('attach[what]', array_var($attach_data, 'what') == 'existing_file', array('value' => 'existing_file', 'id' => 'attachFormExistingFile', 'onclick' => 'App.modules.attachToObjectForm.toggleAttachForms()')) ?> <label for="attachFormExistingFile" class="checkbox"><?php echo lang('attach existing file') ?></label>  </div>    <div id="attachFormExistingFileControls">    <fieldset>      <legend><?php echo lang('select file') ?></legend>      <?php echo select_project_file('attach[file_id]', active_project(), array_var($attach_data, 'file_id'), $already_attached_file_ids, array('id' => 'attachFormSelectFile', 'style' => 'width: 300px')) ?>    </fieldset>  </div>    <div>    <?php echo radio_field('attach[what]', array_var($attach_data, 'what') <> 'existing_file', array('value' => 'new_file', 'id' => 'attachFormNewFile', 'onclick' => 'App.modules.attachToObjectForm.toggleAttachForms()')) ?> <label for="attachFormNewFile" class="checkbox"><?php echo lang('upload and attach') ?></label>  </div>    <div id="attachFormNewFileControls">    <?php echo render_attach_files() ?>  </div>    <script type="text/javascript">    App.modules.attachToObjectForm.toggleAttachForms();  </script>    <?php echo submit_button(lang('attach files')) ?>  </form>

⌨️ 快捷键说明

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