Вход Регистрация
Файл: adultscript-2.0.3-pro/files/admin/templates/default/channel_add.tpl.php
Строк: 170
<?php defined('_VALID') or die('Restricted Access!'); ?>
    <script type="text/javascript">
    $(document).ready(function() {
        $("#name").keyup(function() {
            $("#slug").val(convertToSlug($(this).val()));
        });
    });
    </script>
    <?php echo $this->fetch('errors'); ?>
    <?php echo $this->fetch('messages'); ?>
    <?php echo $this->fetch('warnings'); ?>
    <div id="container" class="clearfix">
        <div id="page">
            <?php echo $this->fetch('channel_menu'); ?>
            <div class="content clearfix">
                <form id="channel-add-form" method="post" enctype="multipart/form-data" action="<?php echo ADMIN_URL?>/index.php?q=channel/add">
                    <fieldset>
                        <legend>Channel Information</legend>
                        <div class="required">
                              <label for="username">Username</label>
                            <input name="username" type="text" id="username" class="large" maxlength="32" value="<?php echo e($this->channel['username']); ?>" />
                        </div>
                        <div class="required">
                              <label for="network_id">Network</label>
                              <select name="network_id" id="network_id">
                                  <option value="">Select Network</option>
                                  <?php foreach ($this->networks as $network): ?>
                                  <option value="<?php echo $network['network_id']; ?>"<?php if ($this->channel['network_id'] == $network['network_id']): echo ' selected="selected"'; endif; echo '>',e($network['name']); ?></option>
                                  <?php endforeach; ?>
                              </select>
                        </div>
                        <div class="required">
                              <label for="name">Name</label>
                            <input name="name" type="text" id="name" class="mega" maxlength="100" value="<?php echo e($this->channel['name']); ?>" />
                        </div>
                        <div class="required">
                              <label for="slug">Slug</label>
                            <input name="slug" type="text" id="slug" class="mega" maxlength="100" value="<?php echo e($this->channel['slug']); ?>" />
                        </div>
                        <div class="optional">
                              <label for="description">Description</label>
                            <textarea name="description" id="description" class="mega" rows="3"><?php echo e($this->channel['description']); ?></textarea>
                        </div>
                        <div class="required">
                              <label for="url">URL</label>
                            <input name="url" type="text" id="url" class="mega" maxlength="255" value="<?php echo $this->channel['url']; ?>" />
                        </div>
                    </fieldset>
                    <fieldset>
                        <legend>Channel Graphics</legend>
                        <div class="required">
                            <label for="thumb">Thumb File:</label>
                            <input name="thumb" type="file" id="thumb" />
                        </div>
                        <div class="required">
                            <label for="logo">Logo File:</label>
                            <input name="logo" type="file" id="logo" />
                        </div>
                    </fieldset>
                    <fieldset>
                        <legend>Channel Advertising</legend>
                        <div class="required">
                            <label for="adv_bottom_id">Bottom Advertising:</label>
                            <select name="adv_bottom_id" id="adv_bottom_id" class="large">
                                <option value="">Select Advertising</option>
                                <?php foreach ($this->advs_bottom as $adv): ?>
                                <option value="<?php echo $adv['adv_id']; ?>"<?php if ($this->channel['adv_bottom_id'] == $adv['adv_id']): echo ' selected="selected"'; endif; echo '>',e($adv['adv_name']); ?></option>
                                <?php endforeach; ?>
                            </select>
                            <span class="help-info">Advertising entries from the Channel Bottom advertising group!</span>
                        </div>
                        <div class="required">
                            <label for="adv_right_id">Right Advertising:</label>
                            <select name="adv_right_id" id="adv_right_id" class="large">
                                <option value="">Select Advertising</option>
                                <?php foreach ($this->advs_right as $adv): ?>
                                <option value="<?php echo $adv['adv_id']; ?>"<?php if ($this->channel['adv_right_id'] == $adv['adv_id']): echo ' selected="selected"'; endif; echo '>',e($adv['adv_name']); ?></option>
                                <?php endforeach; ?>
                            </select>
                            <span class="help-info">Advertising entries from the Channel Right advertising group!</span>
                        </div>
                        <div class="required">
                            <label for="adv_player_id">Player Advertising:</label>
                            <select name="adv_player_id" id="adv_player_id" class="large">
                                <option value="">Select Advertising</option>
                                <?php foreach ($this->advs_player as $adv): ?>
                                <option value="<?php echo $adv['adv_id']; ?>"<?php if ($this->channel['adv_player_id'] == $adv['adv_id']): echo ' selected="selected"'; endif; echo '>',e($adv['adv_name']); ?></option>
                                <?php endforeach; ?>
                            </select>
                            <span class="help-info">Advertising entries from the Video Player advertising group!</span>
                        </div>
                    </fieldset>
                    <div class="submit">
                        <input name="submit-add-channel" type="submit" id="submit-add-channel" class="button butDef" value=" Add Channel " />
                    </div>
                </form>
            </div>
        </div>
    </div>
Онлайн: 1
Реклама