Viewing file: 8119b3dc31f78f172fd9fce1f5d4e7d7d377e80d.file.admin.tpl.php (7.98 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php /* Smarty version Smarty3-RC3, created on 2011-05-11 01:57:42 compiled from "modules/admins/templates/admin.tpl" */ ?> <?php /*%%SmartyHeaderCode:3082771824dc9c2e67c1e13-54504011%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed'); $_smarty_tpl->decodeProperties(array ( 'file_dependency' => array ( '8119b3dc31f78f172fd9fce1f5d4e7d7d377e80d' => array ( 0 => 'modules/admins/templates/admin.tpl', 1 => 1305061701, ), ), 'nocache_hash' => '3082771824dc9c2e67c1e13-54504011', 'function' => array ( ), 'has_nocache_code' => false, )); /*/%%SmartyHeaderCode%%*/?> <?php if (!is_callable('smarty_function_html_options')) include 'modules-alien/smarty/libs/plugins/function.html_options.php'; if (!is_callable('smarty_function_html_radios')) include 'modules-alien/smarty/libs/plugins/function.html_radios.php'; ?><script language="javascript">
function test()
{
if (document.forms[0].admin_login.value.length < 3)
{
alert('<?php echo $_smarty_tpl->getVariable('ALANG')->value['admin_login_error'];?> ');
return false;
}
if (document.forms[0].admin_password.value != document.forms[0].admin_password2.value)
{
alert('<?php echo $_smarty_tpl->getVariable('ALANG')->value['admin_password_error'];?> ');
return false;
}
return true;
}
</script>
<form class="editorform" method="post">
<table align="center" class="editor-table">
<tr valign="middle">
<th><div id="current-language">
<?php $_smarty_tpl->tpl_vars['lang'] = new Smarty_Variable; $_from = $_smarty_tpl->getVariable('languages')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} $_smarty_tpl->tpl_vars['smarty']->value['foreach']['loop']['iteration']=0; if (count($_from) > 0){ foreach ($_from as $_smarty_tpl->tpl_vars['lang']->key => $_smarty_tpl->tpl_vars['lang']->value){ $_smarty_tpl->tpl_vars['smarty']->value['foreach']['loop']['iteration']++; ?>
<input type="radio" <?php if ($_smarty_tpl->tpl_vars['lang']->value==$_smarty_tpl->getVariable('alang')->value){?> checked="checked" <?php }?> id="current-language<?php echo $_smarty_tpl->getVariable('smarty')->value['foreach']['loop']['iteration'];?> " name="current-language" value="<?php echo $_smarty_tpl->tpl_vars['lang']->value;?> " /><label for="current-language<?php echo $_smarty_tpl->getVariable('smarty')->value['foreach']['loop']['iteration'];?> "><img src="/admin/images/<?php echo $_smarty_tpl->tpl_vars['lang']->value;?> 30x20.gif" /></label>
<?php }} ?>
</div>
</th>
</tr>
<tr>
<td>
<?php echo $_smarty_tpl->getVariable('ALANG')->value['Admins_admin_login'];?> :<br />
<input name="admin_login" type="text" id="admin_login" size="30" value="<?php echo $_smarty_tpl->getVariable('admin_login')->value;?> "/>
</td>
</tr>
<tr>
<td>
<?php echo $_smarty_tpl->getVariable('ALANG')->value['Admins_admin_password'];?> :<br />
<input name="admin_password" type="password" id="admin_password" value="<?php echo $_smarty_tpl->getVariable('admin_password')->value;?> " size="30"/>
</td>
</tr>
<tr>
<td> <?php echo $_smarty_tpl->getVariable('ALANG')->value['Admins_admin_password2'];?> :<br />
<input name="admin_password2" type="password" id="admin_password2" value="<?php echo $_smarty_tpl->getVariable('admin_password')->value;?> " size="30"/></td>
</tr>
<tr>
<td>
<div class="ukr">
<?php echo $_smarty_tpl->getVariable('ALANG')->value['Admins_admin_name'];?> (<img src="/admin/images/ukr30x20.gif" align="absmiddle" height="10" />):<br />
<input name="admin_name_ukr" type="text" id="admin_name_ukr" size="50" value="<?php echo $_smarty_tpl->getVariable('admin_name_ukr')->value;?> " />
</div>
<div class="rus">
<?php echo $_smarty_tpl->getVariable('ALANG')->value['Admins_admin_name'];?> (<img src="/admin/images/rus30x20.gif" align="absmiddle" height="10" />):<br />
<input name="admin_name_rus" type="text" id="admin_name_rus" size="50" value="<?php echo $_smarty_tpl->getVariable('admin_name_rus')->value;?> " />
</div>
<div class="eng">
<?php echo $_smarty_tpl->getVariable('ALANG')->value['Admins_admin_name'];?> (<img src="/admin/images/eng30x20.gif" align="absmiddle" height="10" />):<br />
<input name="admin_name_eng" type="text" id="admin_name_eng" size="50" value="<?php echo $_smarty_tpl->getVariable('admin_name_eng')->value;?> " />
</div>
</td>
</tr>
<tr>
<td>
<?php echo $_smarty_tpl->getVariable('ALANG')->value['Admins_admin_work'];?> :<br />
<input name="admin_work" type="text" id="admin_work" size="50" value="<?php echo $_smarty_tpl->getVariable('admin_work')->value;?> " />
</td>
</tr> <tr>
<td><?php echo $_smarty_tpl->getVariable('ALANG')->value['Admins_admin_language'];?> :<br />
<select name="admin_language" id="admin_language">
<?php ob_start();?><?php echo $_smarty_tpl->getVariable('ALANG')->value['CoreLanguageRus'];?> <?php $_tmp1=ob_get_clean();?><?php ob_start();?><?php echo $_smarty_tpl->getVariable('ALANG')->value['CoreLanguageUkr'];?> <?php $_tmp2=ob_get_clean();?><?php echo smarty_function_html_options(array('values'=>array('rus','ukr'),'output'=>array($_tmp1,$_tmp2),'selected'=>($_smarty_tpl->getVariable('admin_language')->value)),$_smarty_tpl->smarty,$_smarty_tpl);?>
</select>
</td>
</tr>
<tr>
<td><?php echo $_smarty_tpl->getVariable('ALANG')->value['Admins_admin_access'];?> :<br />
<b><big>
<?php ob_start();?><?php echo $_smarty_tpl->getVariable('ALANG')->value['AdminsAccessRoot'];?> <?php $_tmp3=ob_get_clean();?><?php ob_start();?><?php echo $_smarty_tpl->getVariable('ALANG')->value['AdminsAccessModule'];?> <?php $_tmp4=ob_get_clean();?><?php echo smarty_function_html_radios(array('name'=>'admin_type','values'=>array('root','mod'),'output'=>array($_tmp3,$_tmp4),'selected'=>$_smarty_tpl->getVariable('admin_type')->value,'separator'=>'<br />'),$_smarty_tpl->smarty,$_smarty_tpl);?>
</big>
</b>
<hr />
<?php $_smarty_tpl->tpl_vars['mod'] = new Smarty_Variable; $_from = $_smarty_tpl->getVariable('Modules')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} $_smarty_tpl->tpl_vars['smarty']->value['foreach']['loop']['iteration']=0; if (count($_from) > 0){ foreach ($_from as $_smarty_tpl->tpl_vars['mod']->key => $_smarty_tpl->tpl_vars['mod']->value){ $_smarty_tpl->tpl_vars['smarty']->value['foreach']['loop']['iteration']++; ?>
<?php if ($_smarty_tpl->getVariable('mod')->value->AdminMode==true){?>
<label><input type="checkbox" name="admin_modules[]" <?php if (in_array(($_smarty_tpl->getVariable('mod')->value->ClassName),($_smarty_tpl->getVariable('admin_access')->value['modules']))==true){?> checked="checked"<?php }?> value="<?php echo $_smarty_tpl->getVariable('mod')->value->ClassName;?> " />
<?php echo GetParam("Module".($_smarty_tpl->getVariable('mod')->value->ClassName),$_smarty_tpl->getVariable('alang')->value);?>
</label>
<?php if ($_smarty_tpl->getVariable('mod')->value->ClassName=='Pages'){?>
<?php echo $_smarty_tpl->getVariable('mod')->value->GetAdminAcessParams($_smarty_tpl->getVariable('admin_access')->value);?>
<?php }?>
<?php if ($_smarty_tpl->getVariable('mod')->value->ClassName=='Laws'){?>
<?php echo $_smarty_tpl->getVariable('mod')->value->GetAdminAcessParams($_smarty_tpl->getVariable('admin_access')->value);?>
<?php }?>
<hr>
<?php }?>
<?php }} ?>
</td>
</tr>
<tr>
<td>
<input value="<?php echo $_smarty_tpl->getVariable('ALANG')->value['CoreSave'];?> " type="submit" name="submit" id="submit" class="ui-state-default ui-widget ui-corner-all"/></td>
</tr>
</table>
<input type="hidden" name="<?php echo $_smarty_tpl->getVariable('oper')->value;?> " value="yes" />
</form>
|