Exemple #1
0
function load_remote_upload_form($params = NULL)
{
    global $file_name;
    assign('params', $params);
    Template(STYLES_DIR . '/global/remote_upload_form.html', false);
    return false;
    echo '<div class="alert alert-info marginTop">
			' . lang('upload_remote_video_msg') . '
			</div>';
    echo '<div class="upload_form_div clearfix form-group' . $class . '" id="remoteUploadFormDiv">
        <label for="remote_file_url" class="label">' . lang('please_enter_remote_file_url') . '</label>
        <input name="remote_file_url" type="textfield"  class="remoteUrlInput form-control" 
        id="remote_file_url" value="' . lang('remote_upload_example') . '"
        onclick="if($(this).val()==\'' . lang('remote_upload_example') . '\') $(this).val(\'\')"/>
        <input name="submit_upload" type="hidden" value="' . lang('upload_data_now') . '">
        
        <div id="remote_upload_result_cont"></div>
        <div class="remote_main_bar" id="main_bar">
            <div id="prog_bar" class="remote_prog_bar"></div>
        </div>
        <div align="center" id="loading" style="margin:5px 0px"></div>
        <div>
            ' . lang('remoteDownloadStatusDiv') . '
        </div>                
        <div align="right">
		
			<input type="button" name="ytUploadBttn" id="ytUploadBttn" 
			value="' . lang('grab_from_youtube') . '" onClick="youtube_upload()" class="cbSubmitUpload">
            <input type="button" name="remoteUploadBttn" id="remoteUploadBttn" value="' . lang('upload') . '" 
			onClick="_cb.' . get_remote_url_function() . '" class="cbSubmitUpload">
            <input type="button" name="remoteUploadBttnStop" id="remoteUploadBttnStop" value="' . lang('cancel') . '"   
			class="cbSubmitUpload" style="display:none"/>
        </div>
   	 	</div>
   	 	<div id="remoteForm"></div> ';
}
Exemple #2
0
function load_remote_upload_form($params = NULL)
{
    global $file_name;
    if ($params['class']) {
        $class = ' ' . $params['class'];
    }
    echo '<div style="font-size:12px; padding:5px">
			' . lang('upload_remote_video_msg') . '
			</div>';
    echo '<div class="upload_form_div clearfix' . $class . '" id="remoteUploadFormDiv">
        <label for="remote_file_url" class="label">' . lang('please_enter_remote_file_url') . '</label>
        <input name="remote_file_url" type="textfield"  class="remoteUrlInput" 
        id="remote_file_url" value="' . lang('remote_upload_example') . '"
        onclick="if($(this).val()==\'' . lang('remote_upload_example') . '\') $(this).val(\'\')"/>
        <input name="submit_upload" type="hidden" value="' . lang('upload_data_now') . '">
        
        <div id="remote_upload_result_cont"></div>
        <div class="remote_main_bar" id="main_bar">
            <div id="prog_bar" class="remote_prog_bar"></div>
        </div>
        <div align="center" id="loading" style="margin:5px 0px"></div>
        <div>
            ' . lang('remoteDownloadStatusDiv') . '
        </div>                
        <div align="right">
		
			<input type="button" name="ytUploadBttn" id="ytUploadBttn" 
			value="' . lang('grab_from_youtube') . '" onClick="youtube_upload()" class="cbSubmitUpload">
            <input type="button" name="remoteUploadBttn" id="remoteUploadBttn" value="' . lang('upload') . '" 
			onClick="' . get_remote_url_function() . '" class="cbSubmitUpload">
            <input type="button" name="remoteUploadBttnStop" id="remoteUploadBttnStop" value="' . lang('cancel') . '"   
			class="cbSubmitUpload" style="display:none"/>
        </div>
   	 	</div>
   	 	<div id="remoteForm"></div> ';
}
    function content_55e44567df5ff3_66229563($_smarty_tpl)
    {
        ?>
<div class="alert alert-info marginTop">
	<?php 
        echo lang('upload_remote_video_msg');
        ?>

</div>
<?php 
        if (isset($_smarty_tpl->tpl_vars['class'])) {
            $_smarty_tpl->tpl_vars['class'] = clone $_smarty_tpl->tpl_vars['class'];
            $_smarty_tpl->tpl_vars['class']->value = '';
            $_smarty_tpl->tpl_vars['class']->nocache = null;
            $_smarty_tpl->tpl_vars['class']->scope = 0;
        } else {
            $_smarty_tpl->tpl_vars['class'] = new Smarty_variable('', null, 0);
        }
        if ($_smarty_tpl->tpl_vars['params']->value['class']) {
            if (isset($_smarty_tpl->tpl_vars['class'])) {
                $_smarty_tpl->tpl_vars['class'] = clone $_smarty_tpl->tpl_vars['class'];
                $_smarty_tpl->tpl_vars['class']->value = $_smarty_tpl->tpl_vars['params']->value['class'];
                $_smarty_tpl->tpl_vars['class']->nocache = null;
                $_smarty_tpl->tpl_vars['class']->scope = 0;
            } else {
                $_smarty_tpl->tpl_vars['class'] = new Smarty_variable($_smarty_tpl->tpl_vars['params']->value['class'], null, 0);
            }
        }
        ?>


<div class="upload_form_div clearfix form-group <?php 
        echo $_smarty_tpl->tpl_vars['class']->value;
        ?>
" id="remoteUploadFormDiv">
	<div class="input-group marginTop">
	  <span class="input-group-addon"><i class="glyphicon glyphicon-link"></i></span>
	  <input name="remote_file_url" type="text"  class="remoteUrlInput form-control" id="remote_file_url" value="<?php 
        echo lang('remote_upload_example');
        ?>
" onclick="if($(this).val()=='<?php 
        echo lang('remote_upload_example');
        ?>
') $(this).val('')"/>
	  <input name="submit_upload" type="hidden" value="<?php 
        echo lang('upload_data_now');
        ?>
">
	</div>
	
	
	<div class="downloadStatusContainer hidden">
		<div class="progress marginTop">
		  <div id="prog_bar" class="progress-bar" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 0%;">
		    <span class="sr-only">60% Complete</span>
		  </div>
		</div>
		<div align="center" id="loading" style=""></div>
		<div id="downloadStatus">
			<small>
				<span>Downloaded </span>
				<span id="downloaded">0.00 Mb</span>
				<span> of </span>
				<span id="totalSize">0.00 Mb</span>
			</small>
		</div>
	</div>
	<!-- <div></div> -->
	
	<div class="align-right marginTop">
		<!--<input type="button" name="ytUploadBttn" id="ytUploadBttn" value="<?php 
        echo lang('grab_from_youtube');
        ?>
" onClick="_cb.youtube_upload()" class="btn btn-primary btn-lg">-->
		<input type="button" name="ytUploadBttn"  data-loading-text="Loading..." id="ytUploadBttn" value="<?php 
        echo lang('grab_from_youtube');
        ?>
" onClick="youtube_upload()" class="btn btn-primary btn-lg">
		<input type="button" name="remoteUploadBttn" id="remoteUploadBttn" data-loading-text="Loading..." value="<?php 
        echo lang('upload');
        ?>
" onClick="_cb.<?php 
        echo get_remote_url_function();
        ?>
" class="btn btn-primary btn-lg">
		<input type="button" name="remoteUploadBttnStop" id="remoteUploadBttnStop" value="<?php 
        echo lang('cancel');
        ?>
"   class="btn btn-primary btn-lg" style="display:none"/>
	</div>
</div>
<div id="remoteForm"></div>
<?php 
    }