2009-12-01 11:51:31 +00:00
{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}
2009-12-04 21:03:27 +00:00
< div class = "upload_left" >
<!-- STEP 1 - UPLOADING VIDEO DETAILS -->
{if $step =='1'}
< div class = "upload_info" >
< h2 > Video Upload Step 1 of 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 -->
2010-01-20 07:03:11 +00:00
< span class = "more_button" > < a href = "javascript:void()" onClick = "$('#more_fields').slideToggle();$('.more_button').toggleClass('more_button_up');" > More Options< / a > < / span >
2009-12-04 21:03:27 +00:00
< 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)}
{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)}
{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)}
{if $field.hint_2}< br >
< div class = "hint" > {$field.hint_2}< / div > {/if}
< / div >
{/foreach}
< / fieldset >
<!-- Other Custom Fields -->
{/if}
< / div >
2010-01-20 07:03:11 +00:00
2009-12-04 21:03:27 +00:00
< 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 -->
2009-12-01 11:51:31 +00:00
{if $step =="2"}
2009-12-04 21:03:27 +00:00
< h2 > Video Upload - Step 2 of 2< / h2 >
2010-01-14 13:15:23 +00:00
2009-12-01 11:51:31 +00:00
< 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()}
{foreach from=$opt_list item=opt key=divid}
< div class = "upload_opt" id = "{$divid}" >
2010-01-14 13:15:23 +00:00
< span class = "upload_opt_head" > < a href = "javascript:void(0)" onClick = "$('#upload_form_div').slideToggle();" > {$opt.title}< / a > < / span >
2009-12-04 21:03:27 +00:00
{load_form name=$opt.load_func button_class='cb_button_2' class='upload_form'}
2009-12-01 11:51:31 +00:00
< / div >
{/foreach}
< / form >
{/if}
2009-12-04 21:03:27 +00:00
<!-- STEP 2 ENDS HERE -->
2009-12-01 11:51:31 +00:00
2009-12-04 21:03:27 +00:00
<!-- STEP 3 - VIEWING SUCCESSFULL PAGE -->
2009-12-01 11:51:31 +00:00
{if $step==3}
2009-12-04 21:03:27 +00:00
< div class = "upload_info" >
< h2 > {lang code='vdo_video_upload_complete'}< / h2 >
< span class = "header1" > {$LANG.vdo_thanks_you_upload_complete_1}.< / span > < br >
2009-12-01 11:51:31 +00:00
< span class = "tips" > {$LANG.vdo_thanks_you_upload_complete_2} < a href = "{$manage_videos}" > < strong > {$LANG.com_my_videos}< / strong > < / a > {$LANG.vdo_after_it_has_process} < / span > < span class = "header1" > < br >
2009-12-04 21:03:27 +00:00
< / span >
< div class = "upload_link_button" align = "center" >
< ul >
2010-01-20 07:03:11 +00:00
< li > < a href = "{link name='upload'}" > {$LANG.vdo_upload_another_video}< / a > < / li >
< li > < a href = "{link name='my_videos'}" > {$LANG.vdo_goto_my_videos}< / a > < / li >
2009-12-04 21:03:27 +00:00
< / ul >
< div class = 'clearfix' > < / div >
< / div >
< / div >
2009-12-01 11:51:31 +00:00
{/if}
2009-12-04 21:03:27 +00:00
<!-- STEP 3 ENDS HERE -->
< / div >
< div class = "upload_right" >
< div class = "instructions" >
< p > < strong > < strong > Important:< / strong > Do not upload any TV shows, music videos, music concerts, or commercials without permission unless they consist entirely of content you created yourself.< / strong > < / p >
< p > The < a href = "#" > Copyright Tips page< / a > and the < a href = "#" > Community Guidelines< / a > can help you determine whether your video infringes someone else's copyright.< / p >
< p > By clicking "Upload Video", you are representing that this video does not violate {$title}'s < a id = "terms-of-use-link" href = "#" > Terms of Use< / a > and that you own all copyrights in this video or have authorization to upload it.< / p >
< / div >
< / div >
< div class = "clearfix" > < / div >