Вход Регистрация
Файл: adultscript-2.0.3-pro/files/admin/templates/default/pornstar_add_xml.tpl.php
Строк: 50
<?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 current = $(this).val();
            $("div[id^='method-']").hide();
            $("#method-" + current).show();
        });
    });
    </script>
    <div id="container" class="clearfix">
        <div id="page">
            <?php echo $this->fetch('pornstar_menu'); ?>
            <div class="content clearfix">
                <form id="pornstar-add-xml-form" method="post" enctype="multipart/form-data" action="<?php echo ADMIN_URL?>/index.php?q=pornstar/add/xml">
                    <fieldset>
                        <legend>Import Options</legend>
                        <div class="required">
                            <label for="method">Method: </label>
                            <select name="method" id="method">
                                <option value="text"<?php if ($this->method == 'text'): echo ' selected="selected"'; endif; ?>>Text</option>
                                <option value="file"<?php if ($this->method == 'file'): echo ' selected="selected"'; endif; ?>>File</option>
                            </select>
                        </div>
                        <div class="required">
                            <label for="force">Force Photo: </label>
                            <input name="force" type="checkbox" value="on"<?php if ($this->force): echo ' checked="checked"'; endif; ?> />
                        </div>
                        <div id="method-text" class="required"<?php if ($this->method == 'file'): echo ' style="display: none;"'; endif; ?>>
                            <label for="xml">XML Text: </label>
                            <textarea name="xml" id="xml" style="width: 700px; height: 300px;"></textarea>
                        </div>
                        <div id="method-file" class="required"<?php if ($this->method == 'text'): echo ' style="display: none;"'; endif; ?>>
                            <label for="file">XML File: </label>
                            <input name="file" type="file" id="file" />
                        </div>
                    </fieldset>
                    <div class="submit">
                        <input name="submit-add-xml" type="submit" id="submit-add-xml" class="button butDef" value=" Add from XML " />
                    </div>
                </form>
            </div>
        </div>
    </div>
Онлайн: 0
Реклама