Subversion-Projekte lars-tiefland.ci

Revision

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

<script>
        $(function(){
                $('.result').button().click(showResult);
                $('.content').button().click(showContent);
                $('#content_dlg').dialog({
                        autoOpen:false,
                        modal:true,
                        resizable:false,
                        height:400,
                        width:600
                })
                $('#filter_typ').change(filterTyp)
                $('#filter_status').change(filterStatus)
        })
        function filterTyp()
        {
                $('#filterForm').submit();
        } 
        function filterStatus()
        {
                $('#filterStatusForm').submit();
        } 
        function showResult()
        {
                //alert(this.id);
                fIdArr=this.id.split("_");
                fId=fIdArr[1];
                url="/toolbox/readFeed.php?field=result&id="+fId
                $('#content_title').html("Ergebnis des Feeds "+fId);
                $('#content_dlg').load(url,function(){
                        $('#content_dlg').dialog("open");
                });
        }
        function showContent()
        {
                //alert(this.id);
                fIdArr=this.id.split("_");
                fId=fIdArr[1];
                url="/toolbox/readFeed.php?field=content&id="+fId
                $('#content_title').html("Inhalt des Feeds "+fId);
                $('#content_dlg').load(url,function(){
                        $('#content_dlg').dialog("open");
                });
        }
</script>
{include file="pagination.tpl"}
<table class="keinRand" style="width:100%">
        <tr>
                <td>&nbsp;</td>
                <td>
                        <form id="filterForm">
                                <select name="typ" id="filter_typ">
                                        <option value="" label="alle">alle</option>
                                        {html_options options=$typen selected=$filter.typ}
                                </select>
                        </form>
                </td>
                <td colspan="3">&nbsp;</td>
                <td colspan="1">
                        <form id="filterStatusForm">
                                <select name="status" id="filter_status">
                                        <option value="" label="alle">alle</option>
                                        {html_options options=$status selected=$filter.status}
                                </select>
                        </form>
                </td>
                <td colspan="6">&nbsp;</td>
        </tr>
        <tr>
                <td>Feed-Id</td>
                <td>Feed-Typ</td>
                <td>Datum</td>
                <td>Start-Datum</td>
                <td>Ende-Datum</td>
                <td>Status</td>
                <td>Inhalt</td>
                <td>Ergebnis</td>
                <td>erstellt am</td>
                <td>Ersteller</td>
                <td>geändert am</td>
                <td>letzter Bearbeiter</td>
        </tr>
        {foreach $feeds as $feed}
        <tr>
                <td>{$feed.feed_id}</td>
                <td>{$feed.typ}</td>
                <td>{$feed.submit_date|date_format:"%x %X"}</td>
                <td>{$feed.start_date|date_format:"%x %X"}</td>
                <td>{$feed.end_date|date_format:"%x %X"}</td>
                <td>{$feed.status}</td>
                <td><a id="content_{$feed.feed_id}" class="content">Inhalt</a></td>
                <td><a id="result_{$feed.feed_id}" class="result">Ergebnis</a></td>
                <td>{$feed.erstellt_am|date_format:"%x %X"}</td>
                <td>{$feed.erstellt_von}</td>
                <td>{$feed.geaendert_am|date_format:"%x %X"}</td>
                <td>{$feed.geaendert_von}</td>
        </tr>
        {/foreach}
</table>
{include file="pagination.tpl"}

<div id="content_dlg" title="<span id='content_title'></span>"></div>