Вход Регистрация
Файл: adultscript-2.0.3-pro/files/admin/templates/default/nuevo_language.tpl.php
Строк: 88
<style>
.lab {font-size:11px;color:#999 !important;}
.inp {width:400px;margin-bottom:10px;}
.rem {padding-left:15px;}
</style>
<script type="text/javascript">
function subm() {
   document.getElementById("frm1").submit();
}
function remove() {
   var r=confirm("Are you sure you want to delete this language file?");
   if (r==true) {
     document.getElementById("rem").value='rem';
     document.getElementById("frm1").submit();
   } else {
     return false;
   }
}
</script>
<?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('nuevo_menu'); ?>
            <div class="content clearfix">
            <?php echo $this->fetch('nuevo_language_menu'); ?>
        
                

                <div class="tabContent clearfix">
                
                <center><div class="tab1" style="display:table;text-align:left;">
                <br /><br />
                   <form id="frm1" method="POST" action="<?php echo ADMIN_URL?>/index.php?q=nuevo/language">
                    <div class="required">
                        <label for="skin">Select Language</label>
                        <select name="language" onchange="javascript:subm()">
                        <?php foreach ($this->languages as $lng): ?>
                            <option value="<?php echo $lng?>"<?php if($this->currlang==$lng) echo ' selected="selected"'?>><?php echo $lng?></option>
                        <?php endforeach; ?>
                        </select>
                        <?php if($this->currlang!='en_US') { ?>
                        <input type="hidden" name="rem" id="rem" value="">
                        <a class="rem" href="javascript:void()" onclick="javascript:remove()">Remove language file</a>
                        <?php ?>
                    </div>
                    </form>
                    <br /><br />
                    <form method="POST" action="<?php echo ADMIN_URL?>/index.php?q=nuevo/language">
                    <?php foreach ($this->datalang as $ln):?>
                    
                    <span class="lab"><?php echo $ln['def'];?></span><br />
                    <input class="inp" type="text" name="<?php echo $ln['key']; ?>" value="<?php echo $ln['val'];?>" /><br />

                    <?php endforeach; ?>

                    <div class="submit">
                        <input type="hidden" name="currlang" value="<?php echo $this->currlang?>">
                        <input name="update_language" type="submit" class="button butDef" value=" Update Language " />
                    </div>
                    </form>
                
                </div></center>


                </div>
            </div>
        </div>
    </div>
Онлайн: 2
Реклама