Файл: adultscript-2.0.3-pro/files/admin/templates/default/rss_run.tpl.php
Строк: 92
<?php defined('_VALID') or die('Restricted Access!'); ?>
<script type="text/javascript">
var unique = "<?php echo $this->unique; ?>";
function update_feed_progress(unique_id)
{
$.ajax({
url: base_url + '/ajax.php?s=feed_progress&d=backend',
cache: false,
type: "POST",
dataType: "json",
data: { unique_id: unique_id },
success: function(response){
$(".progress_msg").html('');
$(".bar").css('width', response.progress + '%');
$(".progress_msg").html(response.msg);
setTimeout("update_feed_progress('" + unique_id + "')", 3600);
}
});
}
$(document).ready(function() {
var unique_id = $("input[name='unique']").val();
$("input[name='submit_run']").click(function(e) {
$.ajax({
url: base_url + '/ajax.php?s=feed_progress&d=backend',
cache: false,
type: "POST",
dataType: "json",
data: { unique_id: unique },
success: function(response){
$("#progress_container").fadeIn();
setTimeout("update_feed_progress('" + unique_id + "')", 1200);
$("#feed-run-form").submit();
}
});
});
});
</script>
<?php echo $this->fetch('errors'); ?>
<?php echo $this->fetch('messages'); ?>
<?php echo $this->fetch('warnings'); ?>
</script>
<div id="container" class="clearfix">
<div id="page">
<?php echo $this->fetch('video_menu'); ?>
<div class="content clearfix">
<?php echo $this->fetch('video_add_menu'); ?>
<?php if ($this->unique): ?>
<form id="feed-run-form" method="post" enctype="multipart/form-data" action="<?php echo ADMIN_URL; ?>/index.php?q=rss/run&id=<?php echo $this->options['feed_id']; ?>">
<input name="unique" type="hidden" id="unique" value="<?php echo $this->unique; ?>" />
<input name="submitted" type="hidden" value="1" />
<fieldset>
<legend>Feed Properties</legend>
<div class="required">
<label for="feed">Feed:</label>
<strong><?php echo e($this->options['name']); ?></strong>
</div>
<div class="required">
<label for="update_limit">Videos:</label>
<input name="update_limit" type="text" id="update_limit" class="small" value="<?php echo $this->options['update_limit']; ?>" />
</div>
</fieldset>
<div id="progress_container" style="display: none;">
<fieldset>
<legend>Import Progress</legend>
<div id="progress" style="width: 98%;"><div class="bar" style="width: 0;"> </div></div>
<div class="progress_msg">Processing...please wait!</div>
</fieldset>
</div>
<div class="submit">
<input name="submit_run" type="button" id="submit_run" class="button butDef" value=" Parse Feed " />
</div>
</form>
<?php else: ?>
<div class="none">Invalid feed! Are you sure this feed exists!?</div>
<?php endif; ?>
</div>
</div>
</div>