Вход Регистрация
Файл: adultscript-2.0.3-pro/files/admin/templates/default/rss_add.tpl.php
Строк: 247
<?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">
    $(document).ready(function() {
        $("select[id='category_method']").change(function() {
            if ($(this).val() == 'select') {
                $("#categories-container").show();
            } else {
                $("#categories-container").hide();
            }
        });

       $("input[id^='category-']").change(function() {
            var cat_id = $(this).attr('id').match(/category-(.*)/)[1];
            
            if ($(this).is(':checked')) {
                $("#subcategory-" + cat_id).slideDown();
            } else {
                $("#subcategory-" + cat_id).slideUp();
                $(".parent-" + cat_id).removeAttr("checked");
            }
        });
        
        $("input[class*='parent-']:checked").each(function(index) {
            var parent_id = $(this).attr('class').match(/checkbox parent-(.*)/)[1];
            $("#subcategory-" + parent_id).show();
        });
        
        $("select[id='method']").change(function() {
              var method = $(this).val();
              if (method == 'download') {
                  $("select[id='method_thumb']").val('generate');
              } else {
                  $("select[id='method_thumb']").val('download');
                  $("select[name='queue']").val('0');
              }
        });

       $("select[id='method_thumb']").change(function() {
            if ($(this).val() == 'download') {
                $("select[name='queue']").val('0');
            }
        });        
    });
    </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'); ?>
                <form method="post" enctype="multipart/form-data" action="<?php echo ADMIN_URL?>/index.php?q=rss/add">
                    <fieldset>
                        <legend>Feed Information</legend>
                        <div class="required">
                            <label for="name">Name:</label>
                            <input name="name" type="text" id="name" class="large" value="<?php echo e($this->rss['name']); ?>" />
                        </div>
                    </fieldset>
                    <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 e($this->rss['url']); ?>" />
                        </div>
                    </fieldset>
                    <fieldset>
                        <legend>Import Properties</legend>
                        <div class="required">
                            <label for="method">Method:</label>
                            <select name="method" id="method">
                                <option value="host"<?php if ($this->rss['method'] == 'host'): echo ' selected="selected"'; endif; ?>>Host Videos</option>
                                <option value="hotlink"<?php if ($this->rss['method'] == 'hotlink'): echo ' selected="selected"'; endif; ?>>Hotlink Videos</option>
                                <option value="embed"<?php if ($this->rss['method'] == 'embed'): echo ' selected="selected"'; endif; ?>>Embed Videos</option>
                            </select>
                        </div>
                        <div class="required">
                            <label for="method_thumb">Thumb Method:</label>
                            <select name="method_thumb" id="method_thumb">
                                <option value="generate"<?php if ($this->rss['method_thumb'] == 'generate'): echo ' selected="selected"'; endif; ?>>Generate</option>
                                <option value="download"<?php if ($this->rss['method_thumb'] == 'download'): echo ' selected="selected"'; endif; ?>>Download</option>
                            </select>
                        </div>
                        <div class="required">
                            <label for="queue">Queue Videos:</label>
                            <select name="queue" id="queue">
                                <option value="1"<?php if ($this->rss['queue'] == '1'): echo ' selected="selected"'; endif; ?>>Yes</option>
                                <option value="0"<?php if ($this->rss['queue'] == '0'): echo ' selected="selected"'; endif; ?>>No</option>
                            </select>
                        </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->rss['block_duplicates'] == '1'): echo ' checked="checked"'; endif; ?> /> &nbsp;Yes
                            <input name="block_duplicates" type="radio" class="radio" value="0"<?php if ($this->rss['block_duplicates'] == '0'): echo ' checked="checked"'; endif; ?> /> &nbsp;No
                        </div>
                        <div class="required">
                            <label for="update_limit">Update Limit:</label>
                            <input name="update_limit" type="text" id="update_limit" class="small" value="<?php echo $this->rss['update_limit']; ?>" />
                        </div>
                    </fieldset>
                    <fieldset>
                        <legend>Channel Properties</legend>
                        <div class="required">
                            <label for="channel_id">Channel:</label>
                            <select name="channel_id" id="channel_id">
                                <option value="">-------------</option>
                                <?php foreach ($this->channels as $channel): ?>
                                <option value="<?php echo $channel['channel_id']; ?>"<?php if ($this->rss['channel_id'] == $channel['channel_id']): echo ' selected="selected"'; endif; ?>><?php echo e($channel['name']); ?></option>
                                <?php endforeach; ?>
                            </select>                        
                        </div>
                    </fieldset>
                    <fieldset>
                        <legend>Video Properties</legend>
                        <div class="required">
                            <label for="username">Username:</label>
                            <input name="username" type="text" id="username" class="medium" value="<?php echo e($this->rss['username']); ?>" />
                        </div>
                        <div class="required">
                            <label for="categories">Categories:</label>
                            <select name="category_method" id="category_method">
                                <option value="auto"<?php if ($this->rss['categ_method'] == 'auto'): echo ' selected="selected"'; endif; ?>>Autodetect</option>
                                <option value="select"<?php if ($this->rss['categ_method'] == 'select'): echo ' selected="selected"'; endif; ?>>Select</option>
                            </select><br /><br />
                            <div id="categories-container" class="categories"<?php if ($this->rss['categ_method'] == 'auto'): echo ' style="display: none;"'; endif; ?>>
                                <?php echo p('categories_select'$this->categories$this->rss['categories']); ?>
                            </div>
                        </div>
                        <div class="clear"></div>
                        <div class="required">
                            <label for="allow_embed">Allow Embedding</label>
                            <input name="allow_embed" type="radio" id="allow_embed" class="radio" value="1"<?php if ($this->rss['allow_embed'] == '1'): echo ' checked="checked"'; endif; ?>> &nbsp;Yes
                            <input name="allow_embed" type="radio" class="radio" value="0"<?php if ($this->rss['allow_embed'] == '0'): echo ' checked="checked"'; endif; ?>> &nbsp;No
                        </div>
                        <div class="required">
                            <label for="allow_comment">Allow Comment</label>
                            <input name="allow_comment" type="radio" id="allow_comment" class="radio" value="1"<?php if ($this->rss['allow_comment'] == '1'): echo ' checked="checked"'; endif; ?>> &nbsp;Yes
                            <input name="allow_comment" type="radio" class="radio" value="0"<?php if ($this->rss['allow_comment'] == '0'): echo ' checked="checked"'; endif; ?>> &nbsp;No
                        </div>
                        <div class="required">
                            <label for="allow_download">Allow Download</label>
                            <input name="allow_download" type="radio" id="allow_download" class="radio" value="1"<?php if ($this->rss['allow_download'] == '1'): echo ' checked="checked"'; endif; ?>> &nbsp;Yes
                            <input name="allow_download" type="radio" class="radio" value="0"<?php if ($this->rss['allow_download'] == '0'): echo ' checked="checked"'; endif; ?>> &nbsp;No
                        </div>
                        <div class="required">
                            <label for="allow_rating">Allow Rating</label>
                            <input name="allow_rating" type="radio" id="allow_rating" class="radio" value="1"<?php if ($this->rss['allow_rating'] == '1'): echo ' checked="checked"'; endif; ?>> &nbsp;Yes
                            <input name="allow_rating" type="radio" class="radio" value="0"<?php if ($this->rss['allow_rating'] == '0'): echo ' checked="checked"'; endif; ?>> &nbsp;No
                        </div>
                        <div class="required">
                            <label for="mobile">Mobile</label>
                            <input name="mobile" type="radio" id="mobile" class="radio" value="1"<?php if ($this->rss['mobile'] == '1'): echo ' checked="checked"'; endif; ?>> &nbsp;Yes
                            <input name="mobile" type="radio" class="radio" value="0"<?php if ($this->rss['mobile'] == '0'): echo ' checked="checked"'; endif; ?>> &nbsp;No
                        </div>
                        <div class="required">
                            <label for="premium">Premium</label>
                            <input name="premium" type="radio" id="premium" class="radio" value="1"<?php if ($this->rss['premium'] == '1'): echo ' checked="checked"'; endif; ?>> &nbsp;Yes
                            <input name="premium" type="radio" class="radio" value="0"<?php if ($this->rss['premium'] == '0'): echo ' checked="checked"'; endif; ?>> &nbsp;No
                        </div>
                        <div class="required">
                            <label for="status">Status</label>
                            <input name="status" type="radio" id="status" class="radio" value="1"<?php if ($this->rss['status'] == '1'): echo ' checked="checked"'; endif; ?>> &nbsp; Published
                            <input name="status" type="radio" class="radio" value="0"<?php if ($this->rss['status'] == '0'): echo ' checked="checked"'; endif; ?>> &nbsp; Suspended
                        </div>
                    </fieldset>
                    <div class="submit">
                        <input name="submit_rss" type="submit" id="submit_rss" class="button butDef" value=" Add Feed " />
                    </div>
                </form>
            </div>
        </div>
    </div>
Онлайн: 0
Реклама