151 lines
No EOL
5.6 KiB
HTML
151 lines
No EOL
5.6 KiB
HTML
{assign var='requiredFields' value=$Upload->loadRequiredFields()}
|
|
{assign var='optionFields' value=$Upload->loadOptionFields()}
|
|
{assign var='locationFields' value=$Upload->loadLocationFields()}
|
|
{assign var='cust_fields' value=$Upload->custom_form_fields}
|
|
|
|
|
|
{lang code='vdo_upload_step2' assign='vdo_upload_step'}
|
|
<div class="upload_left">
|
|
|
|
<!-- STEP 1 - UPLOADING VIDEO DETAILS -->
|
|
|
|
{if $step =='1'}
|
|
<div class="upload_info">
|
|
<h2>{$vdo_upload_step|sprintf:1}</h2>
|
|
<form name="upload_form" class="upload_form" method="post" action="">
|
|
|
|
<!-- Required Fields -->
|
|
<fieldset>
|
|
<span class="form_head">required fields</span>
|
|
|
|
{foreach from=$requiredFields item=field}
|
|
<div class="field">
|
|
<label for="{$field.id}" class="label">{$field.title}</label>
|
|
{if $field.hint_1}<div class="hint">{$field.hint_1}</div><br>{/if}
|
|
{ANCHOR place=$field.anchor_before}
|
|
{$formObj->createField($field)}
|
|
{if $field.hint_2}<br>
|
|
<div class="hint">{$field.hint_2}</div>{/if}
|
|
</div>
|
|
{/foreach}
|
|
|
|
</fieldset>
|
|
<!-- Required Fields -->
|
|
|
|
|
|
<span class="more_button"><a href="javascript:void(0)" onClick="$('#more_fields').slideToggle();$('.more_button').toggleClass('more_button_up');">{lang code='more_options'}</a></span>
|
|
|
|
|
|
<div id="more_fields" style="display:none">
|
|
<!-- Location Fields -->
|
|
<fieldset>
|
|
<span class="form_head">{lang code='vdo_date_loc'}</span>
|
|
{foreach from=$locationFields item=field}
|
|
<div class="field">
|
|
<label for="{$field.id}" class="label">{$field.title}</label>
|
|
{if $field.hint_1}<div class="hint">{$field.hint_1}</div><br>{/if}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}{ANCHOR place=$field.anchor_after}
|
|
{if $field.hint_2}<br>
|
|
<div class="hint">{$field.hint_2}</div>{/if}
|
|
</div>
|
|
{/foreach}
|
|
|
|
</fieldset>
|
|
<!-- Location Fields -->
|
|
|
|
|
|
<!-- Sharing Fields -->
|
|
<fieldset>
|
|
<span class="form_head">{lang code='vdo_share_opt'}</span>
|
|
{foreach from=$optionFields item=field}
|
|
<div class="field">
|
|
<label for="{$field.id}" class="label">{$field.title}</label>
|
|
{if $field.hint_1}<div class="hint">{$field.hint_1}</div><br>{/if}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}{ANCHOR place=$field.anchor_before}
|
|
{if $field.hint_2}<br>
|
|
<div class="hint">{$field.hint_2}</div>{/if}
|
|
</div>
|
|
{/foreach}
|
|
|
|
</fieldset>
|
|
<!-- Sharing Fields -->
|
|
|
|
{if $cust_fields}
|
|
<!-- Other Custom Fields -->
|
|
<fieldset>
|
|
<span class="form_head">{lang code='Custom Fields'}</span>
|
|
{foreach from=$cust_fields item=field}
|
|
<div class="field">
|
|
<label for="{$field.id}" class="label">{$field.title}</label>
|
|
{if $field.hint_1}<div class="hint">{$field.hint_1}</div><br>{/if}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}{ANCHOR place=$field.anchor_before}
|
|
{if $field.hint_2}<br>
|
|
<div class="hint">{$field.hint_2}</div>{/if}
|
|
</div>
|
|
{/foreach}
|
|
|
|
</fieldset>
|
|
<!-- Other Custom Fields -->
|
|
{/if}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div align="right" style="margin-top:10px"><input type="submit" name="submit_data" class="cb_button_2" value="{lang code='vdo_continue_upload'}"></div>
|
|
</form>
|
|
</div>
|
|
{/if}
|
|
|
|
|
|
<!-- STEP 1 ENDS HERE -->
|
|
|
|
|
|
|
|
<!-- STEP 2 - UPLOADING VIDEO FILES -->
|
|
{if $step =="2"}
|
|
<h2>{$vdo_upload_step|sprintf:2}</h2>
|
|
{literal}
|
|
<script type="text/javascript">
|
|
$(document).ready(function() { show_menu('file_upload_div') })
|
|
</script>
|
|
{/literal}
|
|
<form action="{$upload_link}" method="post" enctype="multipart/form-data" name="{$upload_form_name}" id="{$upload_form_name}" >
|
|
{$Upload->load_post_fields()}
|
|
<input name="file_name" type="hidden" value="{$file_name}">
|
|
|
|
{assign var=opt_list value=$Upload->load_upload_options()}
|
|
<ul class="upload_opts clearfix">
|
|
{foreach from=$opt_list item=opt key=divid}
|
|
<li class="upload_opt_head moveL {$divid}" onclick="show_menu('{$divid}')">{$opt.title}</li>
|
|
{/foreach}
|
|
</ul>
|
|
<div class="clear"></div>
|
|
{foreach from=$opt_list item=opt key=divid}
|
|
<div class="upload_opt" id="{$divid}">
|
|
{load_form name=$opt.load_func button_class='cb_button_2' class='upload_form'}
|
|
</div> <!--upload_opt-->
|
|
{/foreach}
|
|
</form>
|
|
{/if}
|
|
<!-- STEP 2 ENDS HERE -->
|
|
|
|
<!-- STEP 3 - VIEWING SUCCESSFULL PAGE -->
|
|
{if $step==3}
|
|
<div class="upload_info">
|
|
{lang code='video_complete_msg' assign='video_complete_msg'}
|
|
{link name='upload' assign='uploadlink'}
|
|
{link name='my_videos' assign='myvidslink'}
|
|
{$video_complete_msg|sprintf:$myvidslink:$uploadlink:$myvidslink}
|
|
</div>
|
|
{/if}
|
|
<!-- STEP 3 ENDS HERE -->
|
|
|
|
</div>
|
|
|
|
<div class="upload_right">
|
|
<div class="instructions">
|
|
{lang code='upload_right_guide'}
|
|
</div>
|
|
<div style="height:10px"></div>
|
|
{AD place='ad_300x250'}
|
|
</div>
|
|
<div class="clearfix"></div> |