<?php
/* Smarty version 3.1.29, created on 2016-07-23 13:01:38
  from "/var/www/user179/data/www/evolutionmu.ru/views/templates/default/admin/general/langen.tpl" */

if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
  'has_nocache_code' => false,
  'version' => '3.1.29',
  'unifunc' => 'content_57935ca2135755_03441642',
  'file_dependency' => 
  array (
    '78431e27c166f73c8871f407836b97930e843dcc' => 
    array (
      0 => '/var/www/user179/data/www/evolutionmu.ru/views/templates/default/admin/general/langen.tpl',
      1 => 1469275259,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_57935ca2135755_03441642 ($_smarty_tpl) {
echo '<script'; ?>
 type="text/javascript" src="/web/templates/default/admin/ckeditor/ckeditor.js"><?php echo '</script'; ?>
>
<link rel="stylesheet" type="text/css" href="//cdn.datatables.net/1.10.12/css/jquery.dataTables.css">

<?php echo '<script'; ?>
 type="text/javascript" charset="utf8" src="//cdn.datatables.net/1.10.12/js/jquery.dataTables.js"><?php echo '</script'; ?>
>

<h1>Edit English Lang Config</h1>

<form action="/admin/general/lang/en" method="post">
        <table width="100%"><tr><td>

            <table id="params" class="display">
                <thead>
                <tr>
                    <th>Param</th>
                    <th>Value</th>
                    <th>Action</th>
                </tr>
                </thead>
                <tbody>
                <?php
$_from = $_smarty_tpl->tpl_vars['LangEn']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_value_0_saved_item = isset($_smarty_tpl->tpl_vars['value']) ? $_smarty_tpl->tpl_vars['value'] : false;
$__foreach_value_0_saved_key = isset($_smarty_tpl->tpl_vars['param']) ? $_smarty_tpl->tpl_vars['param'] : false;
$_smarty_tpl->tpl_vars['value'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['param'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['value']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['param']->value => $_smarty_tpl->tpl_vars['value']->value) {
$_smarty_tpl->tpl_vars['value']->_loop = true;
$__foreach_value_0_saved_local_item = $_smarty_tpl->tpl_vars['value'];
?>
                    <?php if ($_smarty_tpl->tpl_vars['param']->value != 'Messages') {?>
                        <tr>
                            <td><?php echo $_smarty_tpl->tpl_vars['param']->value;?>
</td>
                            <td><input type="text" value='<?php echo $_smarty_tpl->tpl_vars['value']->value;?>
' style=" color: #000;" readonly="readonly"></td>
                            <td><button value="<?php echo $_smarty_tpl->tpl_vars['param']->value;?>
" name="update_value">Update</button></td>
                        </tr>
                    <?php }?>
                <?php
$_smarty_tpl->tpl_vars['value'] = $__foreach_value_0_saved_local_item;
}
if ($__foreach_value_0_saved_item) {
$_smarty_tpl->tpl_vars['value'] = $__foreach_value_0_saved_item;
}
if ($__foreach_value_0_saved_key) {
$_smarty_tpl->tpl_vars['param'] = $__foreach_value_0_saved_key;
}
?>
                </tbody>
            </table>
        </td></tr></table>
</form>

<h3>Add/Edit Parametr</h3>

<div>
    <form action="/admin/general/lang/en" method="post">
        <table width="100%">

            <tr>
                <th colspan="2">Enter again to replace</th>
            </tr>
            <tr>
                <th>Param</th>
                <th>Value</th>
            </tr>
            <tr>
                <td><input type="text" name="param" value="<?php echo $_smarty_tpl->tpl_vars['UpdateValue']->value['Key'];?>
"></td>
                <td><input type="text" id="text_input" value="<?php echo $_smarty_tpl->tpl_vars['UpdateValue']->value['Value'];?>
" name="value"><a class="expand"> Expand</a></td>
            </tr>

            <tr id="tr_extend_area">
                <td colspan="2"><textarea name="extend_area" id="extend_area"></textarea></td>
            </tr>
            <tr>
                <td colspan="2"><button class="button_send"  name="lang_en_btn" value="">Save</button></td>
            </tr>
        </table>
    </form>
</div>

<br><br><br><br>
<h1>Messages Language Config</h1>


<table width="100%"><tr><td>
            <table id="messages" class="display">
                <thead>
                <tr>
                    <th>Param</th>
                    <th>Value</th>
                </tr>
                </thead>
                <tbody>
                <?php
$_from = $_smarty_tpl->tpl_vars['LangEn']->value['Messages'];
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_value_1_saved_item = isset($_smarty_tpl->tpl_vars['value']) ? $_smarty_tpl->tpl_vars['value'] : false;
$__foreach_value_1_saved_key = isset($_smarty_tpl->tpl_vars['param']) ? $_smarty_tpl->tpl_vars['param'] : false;
$_smarty_tpl->tpl_vars['value'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['param'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['value']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['param']->value => $_smarty_tpl->tpl_vars['value']->value) {
$_smarty_tpl->tpl_vars['value']->_loop = true;
$__foreach_value_1_saved_local_item = $_smarty_tpl->tpl_vars['value'];
?>
                    <tr>
                        <td><?php echo $_smarty_tpl->tpl_vars['param']->value;?>
</td>
                        <td><input type="text" value='<?php echo $_smarty_tpl->tpl_vars['value']->value;?>
' style="width: 100%; color: #000;" readonly="readonly"></td>
                    </tr>
                <?php
$_smarty_tpl->tpl_vars['value'] = $__foreach_value_1_saved_local_item;
}
if ($__foreach_value_1_saved_item) {
$_smarty_tpl->tpl_vars['value'] = $__foreach_value_1_saved_item;
}
if ($__foreach_value_1_saved_key) {
$_smarty_tpl->tpl_vars['param'] = $__foreach_value_1_saved_key;
}
?>
                </tbody>
            </table>
        </td></tr></table>


<h3>Add/Edit Parametr</h3>

<div>
    <form action="/admin/general/lang/en" method="post">
        <table width="100%">

            <tr>
                <th colspan="2">Enter again to replace</th>
            </tr>
            <tr>
                <th>Param</th>
                <th>Value</th>
            </tr>
            <tr>
                <td><input type="text" name="param" ></td>
                <td><input type="text" name="value" ></td>
            </tr>
            <tr>
                <td colspan="2"><button class="button_send"  name="messages_lang_en_btn" value="">Save</button></td>
            </tr>
        </table>
    </form>
    <br><br><br><br>
</div>

<?php echo '<script'; ?>
 type="text/javascript">
    $(document).ready(function(){
        $('#tr_extend_area').hide();
        $('#params').DataTable();
        $('#messages').DataTable();
        CKEDITOR.replace("extend_area");
        var ExpandOnClick = true;
        $('.expand').click(function() {
            if (ExpandOnClick) {
                $('#tr_extend_area').show();
                CKEDITOR.instances['extend_area'].setData($('#text_input').val());
               // $('#cke_extend_area #document').html($('#text_input').html());
                ExpandOnClick = false;
            } else {
                $('#tr_extend_area').hide();
              //  $('#cke_extend_area #document').html('');
               CKEDITOR.instances['extend_area'].setData('');
                ExpandOnClick = true;
            }
        });
    });
<?php echo '</script'; ?>
>
<?php }
}
