diff options
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/upload_fisheye.tpl | 56 |
1 files changed, 1 insertions, 55 deletions
diff --git a/templates/upload_fisheye.tpl b/templates/upload_fisheye.tpl index 84477ef..88d373c 100644 --- a/templates/upload_fisheye.tpl +++ b/templates/upload_fisheye.tpl @@ -38,61 +38,7 @@ {elseif $gBitSystem->isFeatureActive( 'fisheye_extended_upload_slots' )} <br /> <h2>{tr}Upload Images{/tr}</h2> - - <div id="slot0"> - <div class="row"> - {formlabel label="Title" for="title0"} - {forminput} - <input type="text" name="imagedata[0][title]" id="title0" size="50" /> - <br /> - <input type="file" name="upload0" id="upload0" size="35" /> - {/forminput} - </div> - - <div class="row"> - {formlabel label="Description" for="edit0"} - {forminput} - <textarea rows="2" cols="50" name="imagedata[0][edit]" id="edit0"></textarea> - {/forminput} - </div> - - <script type="text/javascript">/* <![CDATA[ */ - document.write( "<input id=\"button1\" type=\"button\" onclick=\"javascript:showById('slot1');hideById('button1')\" value=\"{tr}Add slot{/tr}\" />" ); - /* ]]> */</script> - </div> - - {foreach from=$uploadSlots item=dummy key=key} - {assign var=slot value=$key+1} - - <script type="text/javascript">/* <![CDATA[ */ - document.write( "<div id=\"slot{$slot}\" style=\"display:none;\">" ); - /* ]]> */</script> - - <hr /> - - <div class="row"> - {formlabel label="Title" for="title$slot"} - {forminput} - <input type="text" name="imagedata[{$slot}][title]" id="title{$slot}" size="50" /> - <br /> - <input type="file" name="upload{$slot}" id="upload{$slot}" size="35" /> - {/forminput} - </div> - - <div class="row"> - {formlabel label="Description" for="edit$slot"} - {forminput} - <textarea rows="2" cols="50" name="imagedata[{$slot}][edit]" id="edit{$slot}"></textarea> - {/forminput} - </div> - - <script type="text/javascript">/* <![CDATA[ */ - {if count($uploadSlots) gt $slot} - document.write( "<input id=\"button{$slot+1}\" type=\"button\" onclick=\"javascript:showById('slot{$slot+1}');hideById('button{$slot+1}')\" value=\"{tr}Add slot{/tr}\" />" ); - {/if} - document.write( "</div>" ); - /* ]]> */</script> - {/foreach} + {include file="bitpackage:kernel/upload_slot_inc.tpl" hash_key=imagedata} {else} <div class="row"> {formlabel label="Select File(s)"} |
