source: forum/cache/tpl_WoWMoonclaw_posting_attach_body.html.php@ 400

Last change on this file since 400 was 400, checked in by george, 16 years ago
  • Přidáno: Nové forum phpBB 3.
File size: 4.4 KB
Line 
1<tr>
2 <th colspan="2">
3 <script type="text/javascript">
4 // <![CDATA[
5 /**
6 * Show upload progress bar
7 */
8 function popup_progress_bar()
9 {
10 close_waitscreen = 0;
11 // no scrollbars
12 popup('<?php echo (isset($this->_rootref['UA_PROGRESS_BAR'])) ? $this->_rootref['UA_PROGRESS_BAR'] : ''; ?>', 400, 200, '_upload');
13 }
14 // ]]>
15 </script>
16
17 <?php if ($this->_rootref['S_CLOSE_PROGRESS_WINDOW']) { ?>
18 <script type="text/javascript">
19 // <![CDATA[
20 close_waitscreen = 1;
21 // ]]>
22 </script>
23 <?php } ?>
24
25 <?php echo ((isset($this->_rootref['L_ADD_ATTACHMENT'])) ? $this->_rootref['L_ADD_ATTACHMENT'] : ((isset($user->lang['ADD_ATTACHMENT'])) ? $user->lang['ADD_ATTACHMENT'] : '{ ADD_ATTACHMENT }')); ?>
26 </th>
27</tr>
28<tr>
29 <td class="row3" colspan="2"><span class="gensmall"><?php echo ((isset($this->_rootref['L_ADD_ATTACHMENT_EXPLAIN'])) ? $this->_rootref['L_ADD_ATTACHMENT_EXPLAIN'] : ((isset($user->lang['ADD_ATTACHMENT_EXPLAIN'])) ? $user->lang['ADD_ATTACHMENT_EXPLAIN'] : '{ ADD_ATTACHMENT_EXPLAIN }')); ?></span></td>
30</tr>
31
32<tr>
33 <td class="row1"><b class="genmed"><?php echo ((isset($this->_rootref['L_FILENAME'])) ? $this->_rootref['L_FILENAME'] : ((isset($user->lang['FILENAME'])) ? $user->lang['FILENAME'] : '{ FILENAME }')); ?></b></td>
34 <td class="row2"><input type="file" name="fileupload" size="40" maxlength="<?php echo (isset($this->_rootref['FILESIZE'])) ? $this->_rootref['FILESIZE'] : ''; ?>" value="" class="btnfile" /></td>
35</tr>
36<tr>
37 <td class="row1"><b class="genmed"><?php echo ((isset($this->_rootref['L_FILE_COMMENT'])) ? $this->_rootref['L_FILE_COMMENT'] : ((isset($user->lang['FILE_COMMENT'])) ? $user->lang['FILE_COMMENT'] : '{ FILE_COMMENT }')); ?></b></td>
38 <td class="row2">
39 <table border="0" cellspacing="0" cellpadding="2">
40 <tr>
41 <td><textarea class="post" name="filecomment" rows="3" cols="35"><?php echo (isset($this->_rootref['FILE_COMMENT'])) ? $this->_rootref['FILE_COMMENT'] : ''; ?></textarea>&nbsp;</td>
42 <td valign="top">
43 <table border="0" cellspacing="4" cellpadding="0">
44 <tr>
45 <td><input class="btnlite" type="submit" style="width:150px" name="add_file" value="<?php echo ((isset($this->_rootref['L_ADD_FILE'])) ? $this->_rootref['L_ADD_FILE'] : ((isset($user->lang['ADD_FILE'])) ? $user->lang['ADD_FILE'] : '{ ADD_FILE }')); ?>" onclick="popup_progress_bar();" /></td>
46 </tr>
47 </table>
48 </td>
49 </tr>
50 </table>
51 </td>
52</tr>
53
54<?php if ($this->_rootref['S_HAS_ATTACHMENTS']) { ?>
55 <tr>
56 <th colspan="2"><?php echo ((isset($this->_rootref['L_POSTED_ATTACHMENTS'])) ? $this->_rootref['L_POSTED_ATTACHMENTS'] : ((isset($user->lang['POSTED_ATTACHMENTS'])) ? $user->lang['POSTED_ATTACHMENTS'] : '{ POSTED_ATTACHMENTS }')); ?></th>
57 </tr>
58
59 <?php $_attach_row_count = (isset($this->_tpldata['attach_row'])) ? sizeof($this->_tpldata['attach_row']) : 0;if ($_attach_row_count) {for ($_attach_row_i = 0; $_attach_row_i < $_attach_row_count; ++$_attach_row_i){$_attach_row_val = &$this->_tpldata['attach_row'][$_attach_row_i]; ?>
60 <tr>
61 <td class="row1"><b class="genmed"><?php echo ((isset($this->_rootref['L_FILENAME'])) ? $this->_rootref['L_FILENAME'] : ((isset($user->lang['FILENAME'])) ? $user->lang['FILENAME'] : '{ FILENAME }')); ?></b></td>
62 <td class="row2"><a class="genmed" href="<?php echo $_attach_row_val['U_VIEW_ATTACHMENT']; ?>" target="_blank"><?php echo $_attach_row_val['FILENAME']; ?></a></td>
63 </tr>
64 <tr>
65 <td class="row1"><b class="genmed"><?php echo ((isset($this->_rootref['L_FILE_COMMENT'])) ? $this->_rootref['L_FILE_COMMENT'] : ((isset($user->lang['FILE_COMMENT'])) ? $user->lang['FILE_COMMENT'] : '{ FILE_COMMENT }')); ?></b></td>
66 <td class="row2"><?php echo $_attach_row_val['S_HIDDEN']; ?>
67 <table border="0" cellspacing="0" cellpadding="2">
68 <tr>
69 <td><textarea class="post" name="comment_list[<?php echo $_attach_row_val['ASSOC_INDEX']; ?>]" rows="3" cols="35" wrap="virtual"><?php echo $_attach_row_val['FILE_COMMENT']; ?></textarea>&nbsp;</td>
70 <td valign="top">
71 <table border="0" cellspacing="4" cellpadding="0">
72 <tr>
73 <td><input class="btnlite" type="submit" style="width:150px" name="delete_file[<?php echo $_attach_row_val['ASSOC_INDEX']; ?>]" value="<?php echo ((isset($this->_rootref['L_DELETE_FILE'])) ? $this->_rootref['L_DELETE_FILE'] : ((isset($user->lang['DELETE_FILE'])) ? $user->lang['DELETE_FILE'] : '{ DELETE_FILE }')); ?>" /></td>
74 </tr>
75 </table>
76 </td>
77 </tr>
78 </table>
79 </td>
80 </tr>
81 <?php }} } ?>
Note: See TracBrowser for help on using the repository browser.