Вход Регистрация
Файл: adultscript-2.0.3-pro/files/admin/templates/default/module_edit.tpl.php
Строк: 84
<?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('main_menu'); ?>
            <div class="content clearfix">
                <?php echo $this->fetch('module_menu'); ?>
                <?php if ($this->module): ?>
                <form id="module-edit-form" method="post" action="<?php echo CURRENT_URL?>">
                    <fieldset>
                        <legend>Module Information</legend>
                        <div class="required">
                            <label for="name">Name</label>
                            <input name="name" type="text" id="name" class="medium" value="<?php echo $this->module['name']; ?>" />
                        </div>
                        <div class="required">
                            <label for="slugs">SLUGs</label>
                            <input name="slugs" type="text" id="slugs" class="medium" value="<?php echo $this->module['slugs']; ?>" />
                            <span class="help-info">Comma separated slugs for access this module!</span>
                        </div>
                        <div class="required">
                            <label for="description">Description</label>
                            <input name="description" type="text" id="description" class="extra" value="<?php echo e($this->module['description']); ?>" />
                        </div>
                        <div class="required">
                            <label for="type">Type</label>
                            <select name="type" id="type">
                                <option value="core"<?php if ($this->module['type'] == 'core'): echo ' selected="selected"'; endif; ?> >Core</option>
                                <option value="extension"<?php if ($this->module['type'] == 'extension'): echo ' selected="selected"'; endif; ?>>Extension</option>
                            </select>
                        </div>
                        <div class="required">
                            <label for="version">Version</label>
                            <input name="version" type="text" id="version" class="small" value="<?php echo e($this->module['version']); ?>" />
                        </div>
                        <div class="required">
                            <label for="provider">Provider</label>
                            <select name="provider" id="provider">
                                <option value="unknown">Unknown</option>
                                <?php foreach ($this->providers as $key => $values): ?>
                                <option value="<?php echo e($key); ?>"<?php if ($this->module['provider'] == $key): echo ' selected="selected"'; endif; ?> /><?php echo e($values['name']); ?></option>
                                <?php endforeach; ?>
                            </select>
                        </div>
                        <div class="required">
                            <label for="status">Status</label>
                            <input name="status" type="radio" id="status" class="radio" value="1"<?php if ($this->module['status'] == '1'): echo ' checked="checked"'; endif; ?> /> Enabled &nbsp;
                            <input name="status" type="radio" class="radio" value="0"<?php if ($this->module['status'] == '0'): echo ' checked="checked"'; endif; ?> /> Disabled
                        </div>
                    </fieldset>
                      <div class="submit">
                        <input name="submit-edit" type="submit" id="submit-edit" class="button butDef" value=" Update Module " />
                      </div>
                </form>
                <?php else: ?>
                <div class="none">Invalid module id! Are you sure this module is installed!?</div>
                <?php endif; ?>
            </div>
        </div>
    </div>
Онлайн: 2
Реклама