Вход Регистрация
Файл: adultscript-2.0.3-pro/files/admin/templates/default/video_upload.tpl.php
Строк: 132
<?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[name='method']").change(function() {
              var method = $(this).val();
              $("div[id^='method_']").hide();
              $("div[id='method_" + method + "']").show();
          });
    });
    </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 name="video-upload-form" id="video-upload-form" method="post" enctype="multipart/form-data" action="<?php echo ADMIN_URL?>/index.php?q=video/upload">
                    <fieldset>
                        <legend>Video Information</legend>
                        <div class="required">
                            <label for="username">Username</label>
                            <input name="username" type="text" id="username" class="medium" maxlength="16" value="<?php echo e($this->upload['username']); ?>" />
                        </div>
                        <div class="required">
                              <label for="title">Title:</label>
                            <input name="title" type="text" id="title" class="mega" maxlength="100" value="<?php echo e($this->upload['title']); ?>" />
                        </div>
                        <div class="required">
                              <label for="desc">Description:</label>
                            <textarea name="desc" id="desc" class="mega"><?php echo e($this->upload['description']); ?></textarea>
                        </div>
                        <div class="required">
                              <label for="tags">Tags:</label>
                            <textarea name="tags" id="tags" class="mega"><?php echo e($this->upload['tags']); ?></textarea>
                        </div>
                        <div class="required">
                              <label for="category">Category:</label>
                            <div class="categs">
                                  <?php $category explode(','$this->video['category']);
                                  foreach (
$this->categories as $cat): ?>
                                  <div style="width: 120px; float: left;"><input name="categories[]" type="checkbox" value="<?php echo $cat['cat_id']; ?>"<?php if (in_array($cat['cat_id'], $category)): echo ' checked="checked"'; endif; ?><?php echo e($cat['name']); ?></div>
                                  <?php endforeach; ?>
                                  <div class="clear_left"></div>
                            </div>
                        </div>
                        <div class="clear"></div>
                        <div class="required">
                            <label for="broadcast">Broadcast:</label>
                            <select name="broadcast" id="broadcast">
                                <option value="public"<?php if ($this->upload['broadcast'] == 'public'): echo ' selected="selected"'; endif; ?>>Public</option>
                                <option value="private"<?php if ($this->upload['broadcast'] == 'private'): echo ' selected="selected"'; endif; ?>>Private</option>
                            </select>
                        </div>                        
                        <div class="required">
                            <label for="premium">Premium:</label>
                            <input name="premium" type="radio" id="premium" class="radio" value="0"<?php if ($this->upload['premium'] == '0'): echo ' checked="checked"'; endif; ?> /> No
                            <input name="premium" type="radio" class="radio" value="1"<?php if ($this->upload['premium'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
                        </div>                        
                        <div class="required">
                            <label for="queue">Queue:</label>
                            <select name="queue" id="queue">
                                <option value="1"<?php if ($this->upload['queue'] == '1'): echo ' selected="selected"'; endif; ?>>Yes</option>
                                <option value="0"<?php if ($this->upload['queue'] == '0'): echo ' selected="selected"'; endif; ?>>No</option>
                            </select>
                        </div>                        
                        <div class="required">
                            <label for="status">Status:</label>
                            <select name="status" id="status">
                                <option value="0"<?php if ($this->upload['status'] == '0'): echo ' selected="selected"'; endif; ?>>Suspended</option>
                                <option value="1"<?php if ($this->upload['status'] == '1'): echo ' selected="selected"'; endif; ?>>Active</option>
                            </select>
                        </div>                        
                    </fieldset>
                    <fieldset>
                        <legend>Video Channel</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->upload['channel_id'] == $channel['channel_id']): echo ' selected="selected"'; endif; ?>><?php echo e($channel['name']); ?></option>
                                <?php endforeach; ?>
                            </select>
                        </div>
                    </fieldset>
                    <fieldset>
                        <legend>Video File</legend>
                        <div class="required">
                            <label for="method">Upload Method</label>
                            <select name="method" id="method">
                                <option value="file"<?php if ($this->upload['method'] == 'file'): echo ' selected="selected"'; endif; ?>>File</option>
                                <option value="url"<?php if ($this->upload['method'] == 'url'): echo ' selected="selected"'; endif; ?>>URL</option>
                            </select>
                        </div>
                        <div id="method_file"<?php if ($this->upload['method'] == 'url'): echo ' style="display: none;"'; endif; ?>>
                            <div class="required">
                                <label for="file">File</label>
                                <input name="file" type="file" id="file" />
                            </div>
                        </div>
                        <div id="method_url"<?php if ($this->upload['method'] == 'file'): echo ' style="display: none;"'; endif; ?>>
                            <div class="required">
                                <label for="url">URL</label>
                                <input name="url" type="text" id="url" class="mega" value="<?php echo e($this->upload['url']); ?>" />
                            </div>
                        </div>
                    </fieldset>
                    <div class="submit">
                        <input name="submit_upload" type="submit" id="submit_upload" class="button butDef" value=" Upload Video " />
                    </div>
                </form>
            </div>
        </div>
    </div>
Онлайн: 0
Реклама