summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2007-07-16 21:01:24 +0000
committerMax Kremmel <xing@synapse.plus.com>2007-07-16 21:01:24 +0000
commit967bd5e48f23cf73e5dce9b01c1118660b5fa703 (patch)
tree2e6a8eb0759d771fa0e1d2d874f7448e73a10df5 /templates
parent6f5387405979eca57c01ee9dd47f858c74844e1c (diff)
downloadfisheye-967bd5e48f23cf73e5dce9b01c1118660b5fa703.tar.gz
fisheye-967bd5e48f23cf73e5dce9b01c1118660b5fa703.tar.bz2
fisheye-967bd5e48f23cf73e5dce9b01c1118660b5fa703.zip
use new upload slots
Diffstat (limited to 'templates')
-rw-r--r--templates/upload_fisheye.tpl56
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)"}