Вход Регистрация
Файл: adultscript-2.0.3-pro/files/admin/templates/default/adv_sponsor_edit.tpl.php
Строк: 111
<?php defined('_VALID') or die('Restricted Access!'); ?>
    <?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('adv_menu'); ?>
            <div class="content clearfix">
                <?php echo $this->fetch('adv_sponsor_menu'); ?>
                <?php if ($this->sponsor): ?>
                <form id="adv-sponsor-edit-form" method="post" enctype="multipart/form-data" action="<?php echo ADMIN_URL?>/index.php?q=adv/sponsor_edit&amp;id=<?php echo $this->sponsor['sponsor_id']; ?>">
                    <fieldset>
                        <legend>Sponsor Information</legend>
                        <div class="required">
                              <label for="sponsor_name">Name</label>
                            <input name="sponsor_name" type="text" id="name" class="mega" maxlength="255" value="<?php echo e($this->sponsor['sponsor_name']); ?>" />
                        </div>
                        <div class="required">
                              <label for="status">Status</label>
                              <input name="status" type="radio" id="status" class="radio" value="1"<?php if ($this->sponsor['status'] == '1'): echo ' checked="checked"'; endif; ?>> Active &nbsp;
                              <input name="status" type="radio" class="radio" value="0"<?php if ($this->sponsor['status'] == '0'): echo ' checked="checked"'; endif; ?>> Suspended
                        </div>
                    </fieldset>
                    <fieldset>
                        <legend>Advertising Properties</legend>
                        <fieldset>
                            <legend>Under Player Advertising</legend>
                            <div class="required">
                                <label for="adv_id">Advertising</label>
                                <select name="adv_id" id="adv_id">
                                    <option value="0">None</option>
                                    <?php foreach ($this->advs as $adv): ?>
                                    <option value="<?php echo $adv['adv_id']; ?>"<?php if ($adv['adv_id'] == $this->sponsor['adv_id']): echo ' selected="selected"'; endif; ?>><?php echo e($adv['adv_name']); ?></option>
                                    <?php endforeach; ?>
                                </select>
                            </div>
                        </fieldset>
                        <fieldset>
                            <legend>Player Advertising</legend>
                            <div class="required">
                                <label for="adv_text_id">Text Advertising</label>
                                <select name="adv_text_id" id="adv_text_id">
                                    <option value="0">None</option>
                                    <?php foreach ($this->advs_text as $adv): ?>
                                    <option value="<?php echo $adv['adv_id']; ?>"<?php if ($adv['adv_id'] == $this->sponsor['adv_text_id']): echo ' selected="selected"'; endif; ?>><?php echo e($adv['adv_name']); ?></option>
                                    <?php endforeach; ?>
                                </select>
                            </div>
                            <div class="required">
                                <label for="adv_image_id">Image Advertising</label>
                                <select name="adv_image_id" id="adv_image_id">
                                    <option value="0">None</option>
                                    <?php foreach ($this->advs_image as $adv): ?>
                                    <option value="<?php echo $adv['adv_id']; ?>"<?php if ($adv['adv_id'] == $this->sponsor['adv_image_id']): echo ' selected="selected"'; endif; ?>><?php echo e($adv['adv_name']); ?></option>
                                    <?php endforeach; ?>
                                </select>
                            </div>
                            <div class="required">
                                <label for="adv_video">Media Advertising</label>
                                <select name="adv_video[]" id="adv_video" multiple size="10" style="min-height: 100px;">
                                    <option value="0">None</option>
                                    <?php foreach ($this->advs_video as $adv): 
                                    
$type    = ($adv['position'] == '0') ? 'pre-roll' 'mid-roll';
                                    
$type    = ($adv['position'] == '-1') ? 'post-roll' $type;
                                    
?>
                                    <option value="<?php echo $adv['adv_id']; ?>"<?php if (isset($this->sponsor['adv_video'][$adv['adv_id']])): echo ' selected="selected"'; endif; ?>><?php echo e($adv['adv_name']),' (',$type,')'?></option>
                                    <?php endforeach; ?>
                                </select>
                            </div>                            
                        </fieldset>
                    </fieldset>
                    <div class="submit">
                        <input name="submit-edit" type="submit" id="submit-edit" class="button butDef" value=" Update " />
                    </div>
                </form>
                <?php else: ?>
                <div class="none">Invalid sponsor id! Are you sure this sponsor exists!?</div>
                <?php endif; ?>
            </div>
        </div>
    </div>
Онлайн: 1
Реклама