Вход Регистрация
Файл: adultscript-2.0.3-pro/files/admin/templates/default/pornstar_add_rss.tpl.php
Строк: 108
<?php defined('_VALID') or die('Restricted Access!'); ?>
    <?php echo $this->fetch('errors'); ?>
    <?php echo $this->fetch('messages'); ?>
    <?php echo $this->fetch('warnings'); ?>
    <script type="text/javascript">
    var unique = "<?php echo $this->unique?>";
    function update_feed_progress(unique_id)
    {
        $.ajax({
            url: base_url + '/ajax.php?s=feed_model_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_feed']").click(function(e) {
            $.ajax({
                url: base_url + '/ajax.php?s=feed_model_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);
                    $("#pornstar-import-form").submit();
                }
            });
        });
    });    
    </script>
    <div id="container" class="clearfix">
        <div id="page">
            <?php echo $this->fetch('pornstar_menu'); ?>
            <div class="content clearfix">
                <form id="pornstar-import-form" method="post" enctype="multipart/form-data" action="<?php echo ADMIN_URL?>/index.php?q=pornstar/add/rss">
                    <input name="submitted" type="hidden" value="1" />
                    <input name="unique" type="hidden" value="<?php echo $this->unique?>" />
                    <fieldset>
                        <legend>Feed Properties</legend>
                        <div class="required">
                            <label for="url">URL:</label>
                            <input name="url" type="text" id="url" class="extra" value="<?php echo $this->feed['url']; ?>" />
                        </div>
                    </fieldset>
                    <fieldset>
                        <legend>Import Properties</legend>
                        <div class="required">
                            <label for="limit">Limit:</label>
                            <input name="limit" type="text" id="limit" class="small" value="<?php echo $this->feed['limit']; ?>" />
                        </div>
                        <div class="required">
                            <label for="block_duplicates">Block Duplicates:</label>
                            <input name="block_duplicates" type="radio" id="block_duplicates" class="radio" value="1"<?php if ($this->feed['block_duplicates'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
                            <input name="block_duplicates" type="radio" class="radio" value="0"<?php if ($this->feed['block_duplicates'] == '0'): echo ' checked="checked"'; endif; ?> /> No
                        </div>
                        <div class="required">
                            <label for="method_thumb">Thumb Method:</label>
                            <select name="method_thumb" id="method_thumb">
                                <option value="cropc"<?php if ($this->feed['method_thumb'] == 'cropc'): echo ' selected="selected"'; endif; ?>>Crop (from center)</option>
                                <option value="cropt"<?php if ($this->feed['method_thumb'] == 'cropt'): echo ' selected="selected"'; endif; ?>>Crop (from top)</option>
                                <option value="resize"<?php if ($this->feed['method_thumb'] == 'resize'): echo ' selected="selected"'; endif; ?>>Resize</option>
                            </select>
                        </div>
                    </fieldset>
                    <fieldset>
                        <legend>Pornstar Properties</legend>
                        <div class="required">
                            <label for="status">Status:</label>
                            <input name="status" type="radio" id="status" class="radio" value="1"<?php if ($this->feed['status'] == '1'): echo ' checked="checked"'; endif; ?> /> Active
                            <input name="status" type="radio" class="radio" value="0"<?php if ($this->feed['status'] == '0'): echo ' checked="checked"'; endif; ?> /> Suspended
                        </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;">&nbsp;</div></div>
                        <div class="progress_msg">Processing...please wait!</div>
                    </fieldset>
                    </div>                    
                    <div class="submit">
                        <input name="submit_feed" type="button" id="submit_feed" class="button butDef" value=" Parse Feed " />
                    </div>
                </form>
            </div>
        </div>
    </div>
Онлайн: 0
Реклама