Subversion-Projekte lars-tiefland.ci

Revision

Revision 2093 | Blame | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

{include file="header.tpl"}
                <!-- $Id: medienverwaltung.tpl 2415 2020-06-01 10:28:43Z lars $ BEGIN -->
                <script src="/backend/js/bildverwaltung.js"></script>
                <script>
                        $(function(){
                                $('.search').button({
                                        icons:{
                                                primary:"ui-icon-search"
                                        }
                                })
                                $('.edit_desc').button({
                                        icons:{
                                                primary:"ui-icon-pencil"
                                        }
                                }).css("cursor","pointer").click(edit_medium_desc);
                                $('.edit_type').button({
                                        icons:{
                                                primary:"ui-icon-pencil"
                                        }
                                }).css("cursor","pointer").click(edit_medium_type);
                                $('#edit_desc_dlg').dialog({
                                        autoOpen:false,
                                        modal:true,
                                        resizable:false,
                                        buttons:{
                                                "speichern": function()
                                                {
                                                        url="/toolbox/editMedimDesc.php";
                                                        $.get(url,$('#edit_desc_form').serialize(),function(html){
                                                                $('#desc_'+$('#hidden_id').val()).html(html);
                                                        })
                                                        $('#edit_desc_dlg').dialog("close");
                                                },
                                                "abbrechen": function()
                                                {
                                                        $('#edit_desc_dlg').dialog("close");
                                                }
                                        }
                                });
                                $('#edit_type_dlg').dialog({
                                        autoOpen:false,
                                        modal:true,
                                        resizable:false,
                                        buttons:{
                                                "speichern": function()
                                                {
                                                        url="/toolbox/editMedimType.php";
                                                        $.get(url,$('#edit_type_form').serialize(),function(html){
                                                                $('#type_'+$('#hidden_id_type').val()).html(html);
                                                        })
                                                        $('#edit_type_dlg').dialog("close");
                                                },
                                                "abbrechen": function()
                                                {
                                                        $('#edit_type_dlg').dialog("close");
                                                }
                                        }
                                });
                        });
                </script>
                {if isset($user_rechte.admin.toolbox.bildverwaltung)}
                        <table>
                                <tr>
                                        <td>
                                                <button class="add_image" title="Bilder verwalten"></button>
                                                <button class="add_folder" title="Neues Verzeichnis anlegen"></button>
                                        </td>
                                        <td>
                                                <form id="search_media">
                                                        <input type="text" placeholder="Suche" value="{$search}" name="search" />
                                                        <input type="hidden" name="folder" value="{$folder|urlencode}" />
                                                        <button class="search" title="Medien durchsuchen">&nbsp;</button>
                                                </form>
                                        </td>
                                </tr>
                        </table>
                        <div class="break">&nbsp;</div>
                        <div class="pos">
                                <span class="aktuell">Position:</span> 
                                {if $folder}
                                        <a class="nav" href="/backend/bildverwaltung/index/">TOP</a>
                                {else}
                                        <span class="aktuell">TOP</span>
                                {/if}
                                {foreach $pos as $dir}
                                        {if $dir@first} > {/if}
                                        {if !$dir@last} 
                                                <a class="nav" href="/backend/bildverwaltung/index/?folder={$dir.fullName}">{$dir.name}</a> >
                                        {else}
                                                <span class="aktuell">
                                                        {$dir.name} 
                                                </span>
                                        {/if}
                                {/foreach}
                        </div>
                        {foreach $folders as $f_id => $f_name}
                                {if $f_name@first}
                                        <div class="break">&nbsp;</div>
                                {/if}
                                <img src="/backend/images/Online-Shop/directory/ordner.gif" style="float:left;margin-right:10px;" />
                                <a href="/backend/bildverwaltung/index/?folder={$f_name|urlencode}" class="nav">{$f_name}</a>
                        {/foreach}
                        <div class="break">&nbsp;</div>
                        {include file="pagination.tpl"}
                        <table cellpadding="0" cellpadding="0" border="1" width="100%">
                                <tr class="links">
                                        <td>
                                                <a href="/backend/bildverwaltung/index/?sort=document&dir={$sort.document.dir}">ID</a>
                                        </td>
                                        <td>
                                                <a href="/backend/bildverwaltung/index/?sort=document&dir={$sort.document.dir}">Name</a>
                                        </td>
                                        <td>Beschreibung</td>
                                        <td>
                                                <a href="/backend/bildverwaltung/index/?sort=typ&dir={$sort.document.dir}">Typ des Mediums</a>
                                        </td>
                                        <td>
                                                <a href="/backend/bildverwaltung/index/?sort=erstellt_am&dir={$sort.erstellt_am.dir}">Datum</a>
                                        </td>
                                        <td>
                                                <a href="/backend/bildverwaltung/index/?sort=erstellt_am&dir={$sort.erstellt_am.dir}">Zeit</a>
                                        </td>
                                        <td>
                                                <a href="/backend/bildverwaltung/index/?sort=erstellt_von&dir={$sort.erstellt_von.dir}">Ersteller</a>
                                        </td>
                                        <td>Anzahl Verknüpfungen</td>
                                </tr>
                                {foreach $medien as $id => $medium}
                                <tr class="rechts">
                                        <td>{$medium.id}</td>
                                        <td>{$medium.name}</td>
                                        <td style="width:200px;">
                                                <div>
                                                        <div style="float:left;">
                                                                <button id="edit_desc__{$medium.id}" class="edit_desc tb_bv_button" title="Beschreibung ändern"></button>
                                                        </div>
                                                        <div style="float:left;" id="desc_{$medium.id}">{$medium.beschreibung|default:"&nbsp;"}</div>
                                                </div>
                                        </td>
                                        <td>
                                                <div>
                                                        <div style="float:left;">
                                                                <button id="edit_type__{$medium.id}" class="edit_type tb_bv_button" title="Medientyp ändern"></button>
                                                        </div>
                                                        <div style="float:left;" id="type_{$medium.id}">{$medium.typ}</div>
                                                </div>
                                        </td>
                                        <td>{$medium.erstellt_am|date_format:"%x"}</td>
                                        <td>{$medium.erstellt_am|date_format:"%X"}</td>
                                        <td>{$medium.erstellt_von}</td>
                                        <td>{$medium.anz.artikel} Artikel<br>{$medium.anz.directory} Kategorien</td>
                                </tr>
                                {/foreach}
                        </table>
                        {include file="pagination.tpl"}
                
                {include file="upload.tpl"}
                
                {else}
                        <div class="error">Sie haben nicht das Recht dieses Tool zu benutzen!</div>
                {/if}
                
                <div title="Beschreibung des Mediums anpassen" id="edit_desc_dlg">
                        <form id="edit_desc_form">
                                <input type="hidden" name="id" value="" id="hidden_id" />
                                Beschreibung:
                                <input type="text" name="beschreibung" value="" id="input_desc" />
                        </form>
                </div>
                <div title="Type des Mediums anpassen" id="edit_type_dlg">
                        <form id="edit_type_form">
                                <input type="hidden" name="id" value="" id="hidden_id_type" />
                                Typ:
                                {html_options options=$typen name="typ"}
                        </form>
                </div>
                <!-- $Id: medienverwaltung.tpl 2415 2020-06-01 10:28:43Z lars $ END -->
{include file="footer.tpl"}