mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[ticket/15041] Show error if there are not attachments
PHPBB3-15041
This commit is contained in:
parent
3f95d49fee
commit
cc361144f9
1 changed files with 40 additions and 31 deletions
|
@ -340,35 +340,41 @@
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<table class="table1 zebra-table fixed-width-table">
|
<!-- IF .orphan -->
|
||||||
<thead>
|
<table class="table1 zebra-table fixed-width-table">
|
||||||
<tr>
|
<thead>
|
||||||
<th>{L_FILENAME}</th>
|
|
||||||
<th style="width: 15%;">{L_FILEDATE}</th>
|
|
||||||
<th style="width: 15%;">{L_FILESIZE}</th>
|
|
||||||
<th style="width: 15%;">{L_ATTACH_POST_ID}</th>
|
|
||||||
<th style="width: 15%;">{L_ATTACH_TO_POST}</th>
|
|
||||||
<th style="width: 15%;">{L_DELETE}</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<!-- BEGIN orphan -->
|
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href="{orphan.U_FILE}">{orphan.REAL_FILENAME}</a></td>
|
<th>{L_FILENAME}</th>
|
||||||
<td>{orphan.FILETIME}</td>
|
<th style="width: 15%;">{L_FILEDATE}</th>
|
||||||
<td>{orphan.FILESIZE}</td>
|
<th style="width: 15%;">{L_FILESIZE}</th>
|
||||||
<td><strong>{L_ATTACH_ID}{L_COLON} </strong><input type="number" min="0" max="9999999999" name="post_id[{orphan.ATTACH_ID}]" value="{orphan.POST_ID}" style="width: 75%;" /></td>
|
<th style="width: 15%;">{L_ATTACH_POST_ID}</th>
|
||||||
<td><input type="checkbox" class="radio" name="add[{orphan.ATTACH_ID}]" /></td>
|
<th style="width: 15%;">{L_ATTACH_TO_POST}</th>
|
||||||
<td><input type="checkbox" class="radio" name="delete[{orphan.ATTACH_ID}]" /></td>
|
<th style="width: 15%;">{L_DELETE}</th>
|
||||||
</tr>
|
</tr>
|
||||||
<!-- END orphan -->
|
</thead>
|
||||||
<tr class="row4">
|
<tbody>
|
||||||
<td colspan="4"> </td>
|
<!-- BEGIN orphan -->
|
||||||
<td class="small"><a href="#" onclick="marklist('orphan', 'add', true); return false;">{L_MARK_ALL}</a> :: <a href="#" onclick="marklist('orphan', 'add', false); return false;">{L_UNMARK_ALL}</a></td>
|
<tr>
|
||||||
<td class="small"><a href="#" onclick="marklist('orphan', 'delete', true); return false;">{L_MARK_ALL}</a> :: <a href="#" onclick="marklist('orphan', 'delete', false); return false;">{L_UNMARK_ALL}</a></td>
|
<td><a href="{orphan.U_FILE}">{orphan.REAL_FILENAME}</a></td>
|
||||||
</tr>
|
<td>{orphan.FILETIME}</td>
|
||||||
</tbody>
|
<td>{orphan.FILESIZE}</td>
|
||||||
</table>
|
<td><strong>{L_ATTACH_ID}{L_COLON} </strong><input type="number" min="0" max="9999999999" name="post_id[{orphan.ATTACH_ID}]" value="{orphan.POST_ID}" style="width: 75%;" /></td>
|
||||||
|
<td><input type="checkbox" class="radio" name="add[{orphan.ATTACH_ID}]" /></td>
|
||||||
|
<td><input type="checkbox" class="radio" name="delete[{orphan.ATTACH_ID}]" /></td>
|
||||||
|
</tr>
|
||||||
|
<!-- END orphan -->
|
||||||
|
<tr class="row4">
|
||||||
|
<td colspan="4"> </td>
|
||||||
|
<td class="small"><a href="#" onclick="marklist('orphan', 'add', true); return false;">{L_MARK_ALL}</a> :: <a href="#" onclick="marklist('orphan', 'add', false); return false;">{L_UNMARK_ALL}</a></td>
|
||||||
|
<td class="small"><a href="#" onclick="marklist('orphan', 'delete', true); return false;">{L_MARK_ALL}</a> :: <a href="#" onclick="marklist('orphan', 'delete', false); return false;">{L_UNMARK_ALL}</a></td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<!-- ELSE -->
|
||||||
|
<div class="errorbox">
|
||||||
|
<p>{L_NO_ATTACHMENTS}</p>
|
||||||
|
</div>
|
||||||
|
<!-- ENDIF -->
|
||||||
|
|
||||||
<!-- IF TOTAL_FILES -->
|
<!-- IF TOTAL_FILES -->
|
||||||
<div class="pagination">
|
<div class="pagination">
|
||||||
|
@ -381,10 +387,13 @@
|
||||||
</div>
|
</div>
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
|
|
||||||
<p class="submit-buttons">
|
<!-- IF .orphan -->
|
||||||
<input class="button1" type="submit" id="submit" name="submit" value="{L_SUBMIT}" />
|
<p class="submit-buttons">
|
||||||
<input class="button2" type="reset" id="reset" name="reset" value="{L_RESET}" />
|
<input class="button1" type="submit" id="submit" name="submit" value="{L_SUBMIT}" />
|
||||||
</p>
|
<input class="button2" type="reset" id="reset" name="reset" value="{L_RESET}" />
|
||||||
|
</p>
|
||||||
|
<!-- ENDIF -->
|
||||||
|
|
||||||
{S_FORM_TOKEN}
|
{S_FORM_TOKEN}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</form>
|
</form>
|
||||||
|
|
Loading…
Add table
Reference in a new issue