Viewing file: 1149304969bd2b58794648b2d84cfb4f6f7ed728.file.publication.tpl.php (6.31 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php /* Smarty version Smarty3-RC3, created on 2012-08-07 07:42:00 compiled from "modules/publications/templates/publication.tpl" */ ?> <?php /*%%SmartyHeaderCode:90858697250209c98345e76-44601051%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed'); $_smarty_tpl->decodeProperties(array ( 'file_dependency' => array ( '1149304969bd2b58794648b2d84cfb4f6f7ed728' => array ( 0 => 'modules/publications/templates/publication.tpl', 1 => 1344314517, ), ), 'nocache_hash' => '90858697250209c98345e76-44601051', 'function' => array ( ), 'has_nocache_code' => false, )); /*/%%SmartyHeaderCode%%*/?> <form method="post" enctype="multipart/form-data">
<table class="editor-table">
<tr>
<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['Banners_banner_group_id'];?> :</td>
</tr>
<tr>
<td>
<select name="group_id" id="one">
<?php $_smarty_tpl->tpl_vars['group'] = new Smarty_Variable; $_from = $_smarty_tpl->getVariable('groups')->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['group']->key => $_smarty_tpl->tpl_vars['group']->value){ $_smarty_tpl->tpl_vars['smarty']->value['foreach']['loop']['iteration']++; ?>
<option value="<?php echo $_smarty_tpl->tpl_vars['group']->value['group_id'];?> " <?php if ($_smarty_tpl->tpl_vars['group']->value['group_id']==$_smarty_tpl->getVariable('group_id')->value){?> selected="selected" <?php }?>}><?php echo $_smarty_tpl->tpl_vars['group']->value["group_name_".($_smarty_tpl->getVariable('ulang')->value)];?> </option>
<?php }} ?>
</select>
</td>
</tr>
<tr>
<td>Розділ:</td>
</tr>
<tr>
<td><select name="sgroup_id" id="two">
<option value="0">НЕ КЛАСИФІКОВАНО</option>
<?php $_smarty_tpl->tpl_vars['sgroup'] = new Smarty_Variable; $_from = $_smarty_tpl->getVariable('sgroups')->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['sgroup']->key => $_smarty_tpl->tpl_vars['sgroup']->value){ $_smarty_tpl->tpl_vars['smarty']->value['foreach']['loop']['iteration']++; ?>
<option value="<?php echo $_smarty_tpl->tpl_vars['sgroup']->value['sgroup_id'];?> " <?php if ($_smarty_tpl->tpl_vars['sgroup']->value['sgroup_id']==$_smarty_tpl->getVariable('sgroup_id')->value){?> selected="selected" <?php }?>}><?php echo $_smarty_tpl->tpl_vars['sgroup']->value["sgroup_name_".($_smarty_tpl->getVariable('ulang')->value)];?> </option>
<?php }} ?>
</select></td>
</tr>
<tr>
<td>
<div class="ukr">
Назва документу (<img src="/admin/images/ukr30x20.gif" align="absmiddle" height="10" />):<br />
<textarea rows="3" cols="80" name="publication_name_ukr" id="publication_name_ukr"><?php echo $_smarty_tpl->getVariable('publication_name_ukr')->value;?> </textarea>
</div>
<div class="rus">
Назва документу (<img src="/admin/images/rus30x20.gif" align="absmiddle" height="10" />):<br />
<textarea rows="3" cols="80" name="publication_name_rus" id="publication_name_rus"><?php echo $_smarty_tpl->getVariable('publication_name_rus')->value;?> </textarea>
</div>
<div class="eng">
Назва документу (<img src="/admin/images/eng30x20.gif" align="absmiddle" height="10" />):<br />
<textarea rows="3" cols="80" name="publication_name_eng" id="publication_name_eng"><?php echo $_smarty_tpl->getVariable('publication_name_eng')->value;?> </textarea>
</div>
</td>
</tr>
<tr>
<td>
<?php if (is_file("data/publications/".($_smarty_tpl->getVariable('publication_filename')->value))){?>
Завантажений документ: <a href="/data/publications/<?php echo $_smarty_tpl->getVariable('publication_filename')->value;?> " target="_blank"><?php echo $_smarty_tpl->getVariable('publication_filename')->value;?> </a>
<?php }?><br /><br />
Шлях до файла документа: <input type="file" name="publication_filename" size="60" id="banner_filename_ukr" /><br /><br />
</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>
<script type="text/javascript">
$(document).ready(function(e) {
$("#one").change(function()
{
var group_id = $("#one").val();
$.post("/user-asynch.php?mod=Publications", "get=sgroups&group_id="+group_id, function(data)
{
$("#two").html(data);
}, 'text');
});
});
</script>
|