Viewing file: b650276250fe002a60951ad61c0107c806bc5450.file.album-edit.tpl.php (9.3 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php /* Smarty version Smarty3-RC3, created on 2012-04-12 16:23:23 compiled from "user/templates/photochapter/album-edit.tpl" */ ?> <?php /*%%SmartyHeaderCode:14790874514f86d74b5f0885-95426638%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed'); $_smarty_tpl->decodeProperties(array ( 'file_dependency' => array ( 'b650276250fe002a60951ad61c0107c806bc5450' => array ( 0 => 'user/templates/photochapter/album-edit.tpl', 1 => 1333008115, ), ), 'nocache_hash' => '14790874514f86d74b5f0885-95426638', 'function' => array ( ), 'has_nocache_code' => false, )); /*/%%SmartyHeaderCode%%*/?> <form method="post" action=""> <div class="photochapter"> <div class="album-new"> <div class="title"><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_photochapter']['NameOfTheAlbumInRussian'];?> (<img src="/admin/images/rus30x20.gif" align="absmiddle" height="10" style="border:1px solid gray" />):</div> <div><input type="text" name="album_title_rus" value="<?php echo $_smarty_tpl->getVariable('album')->value['album_title_rus'];?> " /></div> <div class="title"><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_photochapter']['NameOfTheAlbumInUkrainian'];?> (<img src="/admin/images/ukr30x20.gif" align="absmiddle" height="10" style="border:1px solid gray" />):</div> <div><input type="text" name="album_title_ukr" value="<?php echo $_smarty_tpl->getVariable('album')->value['album_title_ukr'];?> " /></div> <div class="title"><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_photochapter']['AlbumDescriptionInRussion'];?> (<img src="/admin/images/rus30x20.gif" align="absmiddle" height="10" style="border:1px solid gray" />):</div> <div><textarea name="album_description_rus"><?php echo $_smarty_tpl->getVariable('album')->value['album_description_rus'];?> </textarea></div> <div class="title"><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_photochapter']['AlbumDescriptionInUkrainian'];?> (<img src="/admin/images/ukr30x20.gif" align="absmiddle" height="10" style="border:1px solid gray" />):</div> <div><textarea name="album_description_ukr" style="margin:0 0 5px 0;"><?php echo $_smarty_tpl->getVariable('album')->value['album_description_ukr'];?> </textarea></div> <div><input type="hidden" name="album_closed" value="N" /><label><input type="checkbox" name="album_closed" value="Y" <?php if ($_smarty_tpl->getVariable('album')->value['album_closed']=='Y'){?> checked="checked"<?php }?>/> Закрыть альбом (запретить добавление фотографий)</label><br /> <input type="hidden" name="album_disable_comments" value="N" /> <label><input type="checkbox" name="album_disable_comments" value="Y" <?php if ($_smarty_tpl->getVariable('album')->value['album_disable_comments']=='Y'){?> checked="checked"<?php }?> /> Запретить комментирование</label><br /><br />
</div> <button style="position: relative; top:-6px; left: -4px;"><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_photochapter']['Save'];?> </button> <button style="position: relative; top:-6px; left: -4px;" onclick="history.back();" type="button"><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_photochapter']['Cancel'];?> </button> <div style="float:right;"> <button style="position: relative; top:-6px; right: 50px;" onclick="location.href='/photochapter/<?php echo $_GET['edit'];?> /delete'" type="button"><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_photochapter']['AlbumDelete'];?> </button></div> </div> </div> <hr />
<div class="forum"> <div class="header"> <table style="width:100%"> <tr> <td> <div class="counter"> <?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_photochapter']['InAlbum'];?> <?php echo count($_smarty_tpl->getVariable('rows')->value);?> <?php echo AssumeNumber(count($_smarty_tpl->getVariable('rows')->value),$_smarty_tpl->getVariable('ULANG')->value['AMCMS_photochapter']['photos']);?> . </div> </td> <td align="center"> <div class="search-panel"> <form method="post"> <input name="text" type="text" class="search" value="<?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_photochapter']['SearchPhotoDefaultText'];?> " style="color:gray;" size="16" /> <input type="image" src="/user/icons/search-icon.gif" align="absmiddle" /> </form> </div> </td> <td align="right"> <div class="manage-panel"> <ul> <li style="position: relative;"><a href="javascript: return false;" class="sort"><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_photochapter']['SelectAll'];?> </a> <ul class="submenu"> <li><a href="#" class="fotos-all-delete"><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_photochapter']['SelectAllForDelete'];?> </a></li> <li><a href="#" class="fotos-all-cancel"><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_photochapter']['SelectAllCancel'];?> </a></li> </ul> </li> <li class="delimiter">|</li> <li><a href="/photochapter/"><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_photochapter']['GoToAlbums'];?> </a></li> </ul> </div>
</td> </tr> </table> </div> <hr class="dashed" /> </div> <div> <ul style="list-style-type:none; margin:0;padding:0;"> <?php $_smarty_tpl->tpl_vars['row'] = new Smarty_Variable; $_from = $_smarty_tpl->getVariable('rows')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} if (count($_from) > 0){ foreach ($_from as $_smarty_tpl->tpl_vars['row']->key => $_smarty_tpl->tpl_vars['row']->value){ ?> <li id="<?php echo $_smarty_tpl->tpl_vars['row']->value['photo_id'];?> "> <table style="margin:0 auto;"><tr> <td width="150" align="center" valign="middle"> <a class="fancybox" rel="group" val="<?php echo $_smarty_tpl->tpl_vars['row']->value['photo_id'];?> " href="/data/photochapter/<?php echo $_smarty_tpl->tpl_vars['row']->value['photo_big'];?> "> <img src="/data/photochapter/<?php echo $_smarty_tpl->tpl_vars['row']->value['photo_small'];?> " /> </a> </td> <td> <label><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_photochapter']['Sender'];?> </label> <a href="/id<?php echo $_smarty_tpl->tpl_vars['row']->value['user_id'];?> " target="_blank"><?php echo $_smarty_tpl->tpl_vars['row']->value['user_name'];?> <?php echo $_smarty_tpl->tpl_vars['row']->value['user_surname'];?> </a> <br /> <label><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_photochapter']['PhotoDescription'];?> </label><br /><input type="hidden" name="photo_id[]" value="<?php echo $_smarty_tpl->tpl_vars['row']->value['photo_id'];?> " /> <input type="hidden" name="photo_status[]" value="<?php echo $_smarty_tpl->tpl_vars['row']->value['photo_status'];?> " /> <textarea style="width:400px; height:50px;" name="photo_description[<?php echo $_smarty_tpl->tpl_vars['row']->value['album_id'];?> ]"><?php echo $_smarty_tpl->tpl_vars['row']->value["photo_description"];?> </textarea><br /> <div style="height:4px;"></div> <?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_photochapter']['Album'];?> <select name="photo_album_id[<?php echo $_smarty_tpl->tpl_vars['row']->value['album_id'];?> ]"> <!--<option style="color:#CCC;"><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_photochapter']['SelectAlbum'];?> </option>--> <?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable; $_from = $_smarty_tpl->getVariable('albums')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} if (count($_from) > 0){ foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){ ?> <option value="<?php echo $_smarty_tpl->tpl_vars['item']->value['album_id'];?> " <?php if ($_smarty_tpl->tpl_vars['row']->value["photo_album_id"]==$_smarty_tpl->tpl_vars['item']->value['album_id']){?>selected="selected"<?php }?>><?php echo $_smarty_tpl->tpl_vars['item']->value["album_title_".($_smarty_tpl->getVariable('ulang')->value)];?> </option> <?php }} ?> </select> <br /> <div style="height:4px;"></div> <a href="#" class="foto-album-thumb"><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_photochapter']['SetToThumb'];?> </a> | <a href="#" class="foto-delete"><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_photochapter']['SelectToDelete'];?> </a> <span class="cancel-block2"> | <a href="#" class="foto-cancel2"><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_photochapter']['SelectCancel'];?> </a></span> </td> </tr></table> <hr class="dashed" /> </li> <?php }} ?> </ul> <div style="text-align: center;"> <button><?php echo $_smarty_tpl->getVariable('ULANG')->value['AMCMS_photochapter']['DoAll'];?> </button> </div> </div> <input type="hidden" name="album_thumb" value="" /> </form>
|