Viewing file: b1d5d40552f846dc7e42314c3baa39d64c9e700c.file.global.tpl.php (17.82 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php /* Smarty version Smarty3-RC3, created on 2012-02-15 20:28:29 compiled from "user/templates/options/global.tpl" */ ?> <?php /*%%SmartyHeaderCode:13030820484f3bf94d1f4965-91772393%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed'); $_smarty_tpl->decodeProperties(array ( 'file_dependency' => array ( 'b1d5d40552f846dc7e42314c3baa39d64c9e700c' => array ( 0 => 'user/templates/options/global.tpl', 1 => 1328738842, ), ), 'nocache_hash' => '13030820484f3bf94d1f4965-91772393', 'function' => array ( ), 'has_nocache_code' => false, )); /*/%%SmartyHeaderCode%%*/?> <?php if (!is_callable('smarty_function_html_checkboxes')) include 'modules-alien/smarty/libs/plugins/function.html_checkboxes.php'; ?><form class="editorform" method="post"> <table class="editor-table"> <tr align="center"> <td> <table width="980" border="0" align="center"> <?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');} if (count($_from) > 0){ foreach ($_from as $_smarty_tpl->tpl_vars['lang']->key => $_smarty_tpl->tpl_vars['lang']->value){ ?> <tr> <td align="right"> <?php echo $_smarty_tpl->getVariable('ALANG')->value['OptionsSiteName'];?> (<img src="/admin/images/<?php echo $_smarty_tpl->tpl_vars['lang']->value;?> 30x20.gif" align="absmiddle" height="10" />): </td> <td><input name="Params[SiteName][<?php echo $_smarty_tpl->tpl_vars['lang']->value;?> ]" type="text" value="<?php echo htmlspecialchars(GetParam("SiteName",($_smarty_tpl->tpl_vars['lang']->value)));?> " size="100" /> </td> </tr> <?php }} ?> <tr><td colspan="2"><hr /></td></tr> <?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');} if (count($_from) > 0){ foreach ($_from as $_smarty_tpl->tpl_vars['lang']->key => $_smarty_tpl->tpl_vars['lang']->value){ ?> <tr> <td align="right"> <?php echo $_smarty_tpl->getVariable('ALANG')->value['OptionsMetaTagsKeywords'];?> (<img src="/admin/images/<?php echo $_smarty_tpl->tpl_vars['lang']->value;?> 30x20.gif" align="absmiddle" height="10" />): </td> <td><input name="Params[MetaTagsKeywords][<?php echo $_smarty_tpl->tpl_vars['lang']->value;?> ]" type="text" value="<?php echo htmlspecialchars(GetParam("MetaTagsKeywords",($_smarty_tpl->tpl_vars['lang']->value)));?> " size="100" /> </td> </tr> <?php }} ?> <tr><td colspan="2"><hr /></td></tr> <?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');} if (count($_from) > 0){ foreach ($_from as $_smarty_tpl->tpl_vars['lang']->key => $_smarty_tpl->tpl_vars['lang']->value){ ?> <tr> <td align="right"> <?php echo $_smarty_tpl->getVariable('ALANG')->value['OptionsMetaTagsDescription'];?> (<img src="/admin/images/<?php echo $_smarty_tpl->tpl_vars['lang']->value;?> 30x20.gif" align="absmiddle" height="10" />): </td> <td><input name="Params[MetaTagsDescription][<?php echo $_smarty_tpl->tpl_vars['lang']->value;?> ]" type="text" value="<?php echo htmlspecialchars(GetParam("MetaTagsDescription",($_smarty_tpl->tpl_vars['lang']->value)));?> " size="100" /> </td> </tr> <?php }} ?> <tr><td colspan="2"><hr /></td></tr> <?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');} if (count($_from) > 0){ foreach ($_from as $_smarty_tpl->tpl_vars['lang']->key => $_smarty_tpl->tpl_vars['lang']->value){ ?> <tr> <td align="right"> <?php echo $_smarty_tpl->getVariable('ALANG')->value['OptionsMainMarquee'];?> (<img src="/admin/images/<?php echo $_smarty_tpl->tpl_vars['lang']->value;?> 30x20.gif" align="absmiddle" height="10" />): </td> <td><input name="Params[MainMarquee][<?php echo $_smarty_tpl->tpl_vars['lang']->value;?> ]" type="text" value="<?php echo htmlspecialchars(GetParam("MainMarquee",($_smarty_tpl->tpl_vars['lang']->value)));?> " size="100" /> </td> </tr> <?php }} ?> <tr><td colspan="2"><hr /></td></tr> <?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');} if (count($_from) > 0){ foreach ($_from as $_smarty_tpl->tpl_vars['lang']->key => $_smarty_tpl->tpl_vars['lang']->value){ ?> <tr> <td align="right"> <?php echo $_smarty_tpl->getVariable('ALANG')->value['OptionsAdminHeaderTitle'];?> (<img src="/admin/images/<?php echo $_smarty_tpl->tpl_vars['lang']->value;?> 30x20.gif" align="absmiddle" height="10" />): </td> <td><input name="Params[AdminHeaderTitle][<?php echo $_smarty_tpl->tpl_vars['lang']->value;?> ]" type="text" value="<?php echo htmlspecialchars(GetParam("AdminHeaderTitle",($_smarty_tpl->tpl_vars['lang']->value)));?> " size="100" /> </td> </tr> <?php }} ?> <!-- <tr><td colspan="2"><hr /></td></tr> <?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');} if (count($_from) > 0){ foreach ($_from as $_smarty_tpl->tpl_vars['lang']->key => $_smarty_tpl->tpl_vars['lang']->value){ ?> <tr> <td align="right"> <?php echo $_smarty_tpl->getVariable('ALANG')->value['OptionsAddress'];?> (<img src="/admin/images/<?php echo $_smarty_tpl->tpl_vars['lang']->value;?> 30x20.gif" align="absmiddle" height="10" />): </td> <td><input name="Params[Address][<?php echo $_smarty_tpl->tpl_vars['lang']->value;?> ]" type="text" value="<?php echo htmlspecialchars(GetParam("Address",($_smarty_tpl->tpl_vars['lang']->value)));?> " size="100" /> </td> </tr> <?php }} ?>--> <tr><td colspan="2"><hr /></td></tr> <tr> <td align="right"> <?php echo $_smarty_tpl->getVariable('ALANG')->value['OptionsCityPhone'];?> : </td> <td><input name="Params[CityPhone][all]" type="text" value="<?php echo htmlspecialchars(GetParam("CityPhone","all"));?> " size="100" /> </td> </tr> <tr> <td align="right"> <?php echo $_smarty_tpl->getVariable('ALANG')->value['OptionsMobilePhone'];?> : </td> <td><input name="Params[MobilePhone][all]" type="text" value="<?php echo htmlspecialchars(GetParam("MobilePhone","all"));?> " size="100" /> </td> </tr> <tr> <td align="right"> <?php echo $_smarty_tpl->getVariable('ALANG')->value['OptionsContactEmail'];?> : </td> <td><input name="Params[ContactEmail][all]" type="text" value="<?php echo htmlspecialchars(GetParam("ContactEmail","all"));?> " size="100" /> </td> </tr> <tr><td colspan="2"><hr /></td></tr> <tr> <td align="right"> <?php echo $_smarty_tpl->getVariable('ALANG')->value['OptionsStartYear'];?> : </td> <td><input name="Params[StartYear][all]" type="text" value="<?php echo htmlspecialchars(GetParam("StartYear","all"));?> " size="7" /> </td> </tr> <tr> <td align="right"> <?php echo $_smarty_tpl->getVariable('ALANG')->value['OptionsDefaultLanguage'];?> : </td> <td> <select name="Params[DefaultLanguage][all]"> <?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');} if (count($_from) > 0){ foreach ($_from as $_smarty_tpl->tpl_vars['lang']->key => $_smarty_tpl->tpl_vars['lang']->value){ ?> <option value="<?php echo $_smarty_tpl->tpl_vars['lang']->value;?> " <?php if (GetParam("DefaultLanguage","all")==$_smarty_tpl->tpl_vars['lang']->value){?> selected="selected" <?php }?>><?php echo $_smarty_tpl->tpl_vars['lang']->value;?> </option> <?php }} ?> </select> </td> </tr> <tr> <td align="right"> <?php echo $_smarty_tpl->getVariable('ALANG')->value['OptionsMainPagePanels'];?> : </td> <td> <select name="Params[MainPagePanels][all]"> <?php $_smarty_tpl->tpl_vars['lang'] = new Smarty_Variable; $_from = array(1,2); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} if (count($_from) > 0){ foreach ($_from as $_smarty_tpl->tpl_vars['lang']->key => $_smarty_tpl->tpl_vars['lang']->value){ ?> <option value="<?php echo $_smarty_tpl->tpl_vars['lang']->value;?> " <?php if (GetParam("MainPagePanels","all")==$_smarty_tpl->tpl_vars['lang']->value){?> selected="selected" <?php }?>><?php echo $_smarty_tpl->tpl_vars['lang']->value;?> </option> <?php }} ?> </select> </td> </tr> <tr><td colspan="2"><hr /></td></tr> <tr valign="top"> <td align="right"><?php echo $_smarty_tpl->getVariable('ALANG')->value['OptionsSnow'];?> :</td> <td><label> <input type="radio" name="Params[Snow][all]" value="on" <?php if (GetParam("Snow","all")=='on'){?> checked="checked"<?php }?> /> <?php echo $_smarty_tpl->getVariable('ALANG')->value['OptionsSnowEnabled'];?>
</label> <br /> <label> <input type="radio" name="Params[Snow][all]" value="off" <?php if (GetParam("Snow","all")=='off'){?> checked="checked"<?php }?> /> <?php echo $_smarty_tpl->getVariable('ALANG')->value['OptionsSnowDisabled'];?>
</label> </td> </tr> <tr> <td align="right"><?php echo $_smarty_tpl->getVariable('ALANG')->value['OptionsSnowImage'];?> :</td> <td nowrap="nowrap"> <input type="hidden" name="Params[SnowType][all]" id="SnowType" value="<?php echo GetParam("SnowType","all");?> " /> <div style="background-color: #000; text-align:center; padding:4px;" id="snow-block"> <?php $_smarty_tpl->tpl_vars['num'] = new Smarty_Variable; $_from = array(1,2,3,4,5,6,7,8,9,10,11,12); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} if (count($_from) > 0){ foreach ($_from as $_smarty_tpl->tpl_vars['num']->key => $_smarty_tpl->tpl_vars['num']->value){ ?> <img src="/user/snow/snow<?php echo $_smarty_tpl->tpl_vars['num']->value;?> .gif" num="<?php echo $_smarty_tpl->tpl_vars['num']->value;?> " /> <?php }} ?> </div> </td> </tr> <tr> <td align="right"><?php echo $_smarty_tpl->getVariable('ALANG')->value['OptionsSnowCount'];?> :</td> <td nowrap="nowrap"><input type="text" name="Params[SnowCount][all]" value="<?php echo GetParam("SnowCount","all");?> " /></td> </tr> <tr><td colspan="2"><hr /></td></tr> <tr> <td align="right" valign="top"> <?php echo $_smarty_tpl->getVariable('ALANG')->value['OptionsMainPage'];?> : </td> <td> <select name="Params[MainPageType][all]"> <option value="panels"<?php if (GetParam("MainPageType","all")=='panels'){?> selected="selected"<?php }?>> <?php echo $_smarty_tpl->getVariable('ALANG')->value['OptionsMainPageTypePanels'];?>
</option> <option value="page" <?php if (GetParam("MainPageType","all")=='page'){?> selected="selected"<?php }?>> <?php echo $_smarty_tpl->getVariable('ALANG')->value['OptionsMainPageTypePage'];?> </option> </select> <div id="MainPageSelector"> <?php echo $_smarty_tpl->getVariable('ALANG')->value['Pages_chapter_title'];?> : <select name="chapter_id" id="chapters-select"><br /> <option value="0"> </option> </select><br />
<?php echo $_smarty_tpl->getVariable('ALANG')->value['Pages_page_title'];?> : <select name="page_id" id="pages-select"> </select> <input name="Params[MainPageValue][all]" value="<?php echo GetParam('MainPageValue','all');?> " size="20" id="item_link" style="display:none;" /> </div> </td> </tr> <tr><td colspan="2"><hr /></td></tr> <tr> <td align="right" valign="top"><?php echo $_smarty_tpl->getVariable('ALANG')->value['OptionsLanguages'];?> :</td> <td> <?php echo smarty_function_html_checkboxes(array('name'=>"Params[Languages][all]",'values'=>array('ukr','rus','eng'),'output'=>array($_smarty_tpl->getVariable('ALANG')->value['CoreLanguageUkr'],$_smarty_tpl->getVariable('ALANG')->value['CoreLanguageRus'],$_smarty_tpl->getVariable('ALANG')->value['CoreLanguageEng']),'selected'=>unserialize(GetParam("Languages")),'separator'=>"<br />"),$_smarty_tpl->smarty,$_smarty_tpl);?>
</td> </tr> <tr><td colspan="2"><hr /></td></tr> </table> </td> </tr> <tr> <td> <div align="center"> <input value="<?php echo $_smarty_tpl->getVariable('ALANG')->value['CoreSave'];?> " type="submit" name="submit" id="submit" /></div> <input type="hidden" name="<?php echo $_smarty_tpl->getVariable('oper')->value;?> " value="yes" /> </td> </tr> </table> </form> <script type="text/javascript"> $(document).ready(function() { $("#snow-block img").css({ "cursor" : "pointer" }); $("#snow-block img").click( function() { $("input[name='Params[SnowType][all]']").attr('value', ($(this).attr("num"))); $("#snow-block img").each( function(data) { $(this).css({ "background-color" : "black" }); if ($(this).attr('num') == $("input[name='Params[SnowType][all]']").val()) $(this).css({ "background-color" : "blue" }); }); }); $("#snow-block img").each( function(data) { $(this).css({ "background-color" : "black" }); if ($(this).attr('num') == $("input[name='Params[SnowType][all]']").val()) $(this).css({ "background-color" : "blue" }); }); }); function update_link() { $.post("/admin-asynch.php?mod=Pages&link&create",{ "page_id" : $('#pages-select').val(), "chapter_id" : $("#chapters-select").val() }, function(data) { if (data.page_id != null) $("#item_link").val(data.page_id); }, 'json'); } function MainPageTypeChange() { type = $("select[name='Params[MainPageType][all]']").val(); if (type == 'page') { $("#MainPageSelector").show(0); } else $("#MainPageSelector").hide(0); } $(document).ready(function() { MainPageTypeChange(); $("select[name='Params[MainPageType][all]']").change(MainPageTypeChange); addr = '/pages/p'+$("#item_link").val(); $.post("admin-asynch.php?mod=Pages&link&parse", { "link" : addr }, function(data1) { if (data1.mod == 'Pages') { $.post("/admin-asynch.php?mod=Pages&get&chapters",{ }, function(data2) { var options = ''; var selected = ''; $(data2).each(function() { selected = ''; if ($(this).attr('id') == data1.chapter_id) selected = 'selected = "selected"'; options += '<option value="' + $(this).attr('id') + '"' + selected + '>' + $(this).attr('title') + '</option>'; }); $('#chapters-select').html(options); $.post("/admin-asynch.php?mod=Pages&get&pages",{ "chapter_id" : data1.chapter_id}, function(data3) { var options = ''; var selected = ''; $(data3).each(function() { selected = ''; if ($(this).attr('id') == data1.page_id) selected = 'selected = "selected"'; if ($(this).attr('id') > 0) options += '<option value="' + $(this).attr('id') + '"' + selected + '>' + $(this).attr('title') + '</option>'; }); $('#pages-select').html(options); update_link(); $('#chapters-select, #pages-select').change(function() { update_link(); }); $('#chapters-select').change(function() { $.post("admin-asynch.php?mod=Pages&get&pages",{ "chapter_id" : $('#chapters-select').val() }, function(data3) { var options = ''; var selected = ''; $(data3).each(function() { selected = ''; if ($(this).attr('id') == data1.page_id) selected = 'selected = "selected"'; if ($(this).attr('id') > 0) options += '<option value="' + $(this).attr('id') + '"' + selected + '>' + $(this).attr('title') + '</option>'; }); $('#pages-select').html(options); update_link(); }, 'json'); }); }, 'json'); }, 'json'); } }, 'json'); }); </script>
|