Subversion-Projekte lars-tiefland.ci

Revision

Revision 855 | Revision 868 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 855 Revision 866
Zeile 1... Zeile 1...
1
<script>
1
<script>
2
    $(function(){
2
	$(function(){
3
        $('.result').button().click(showResult);
3
		$('.result').button().click(showResult);
4
        $('.content').button().click(showContent);
4
		$('.content').button().click(showContent);
5
        $('#content_dlg').dialog({
5
		$('#content_dlg').dialog({
6
            autoOpen:false,
6
			autoOpen:false,
7
            modal:true,
7
			modal:true,
8
            resizable:false,
8
			resizable:false,
9
            height:400,
9
			height:400,
10
            width:600
10
			width:600
11
        })
11
		})
12
        $('#filter_typ').change(filterTyp)
12
		$('#filter_typ').change(filterTyp)
13
        $('#filter_status').change(filterStatus)
13
		$('#filter_status').change(filterStatus)
14
    })
14
	})
15
    function filterTyp()
15
	function filterTyp()
16
    {
16
	{
17
        $('#filterForm').submit();
17
		$('#filterForm').submit();
18
    } 
18
	} 
19
    function filterStatus()
19
	function filterStatus()
20
    {
20
	{
21
        $('#filterStatusForm').submit();
21
		$('#filterStatusForm').submit();
22
    } 
22
	} 
23
    function showResult()
23
	function showResult()
24
    {
24
	{
25
        //alert(this.id);
25
		//alert(this.id);
26
        fIdArr=this.id.split("_");
26
		fIdArr=this.id.split("_");
27
        fId=fIdArr[1];
27
		fId=fIdArr[1];
28
        url="/toolbox/readFeed.php?field=result&id="+fId
28
		url="/toolbox/readFeed.php?field=result&id="+fId
29
        $('#content_title').html("Ergebnis des Feeds "+fId);
29
		$('#content_title').html("Ergebnis des Feeds "+fId);
30
        $('#content_dlg').load(url,function(){
30
		$('#content_dlg').load(url,function(){
31
            $('#content_dlg').dialog("open");
31
			$('#content_dlg').dialog("open");
32
        });
32
		});
33
    }
33
	}
34
    function showContent()
34
	function showContent()
35
    {
35
	{
36
        //alert(this.id);
36
		//alert(this.id);
37
        fIdArr=this.id.split("_");
37
		fIdArr=this.id.split("_");
38
        fId=fIdArr[1];
38
		fId=fIdArr[1];
39
        url="/toolbox/readFeed.php?field=content&id="+fId
39
		url="/toolbox/readFeed.php?field=content&id="+fId
40
        $('#content_title').html("Inhalt des Feeds "+fId);
40
		$('#content_title').html("Inhalt des Feeds "+fId);
41
        $('#content_dlg').load(url,function(){
41
		$('#content_dlg').load(url,function(){
42
            $('#content_dlg').dialog("open");
42
			$('#content_dlg').dialog("open");
43
        });
43
		});
44
    }
44
	}
45
</script>
45
</script>
46
{include file="common/pagination.tpl"}
46
{include file="common/pagination.tpl"}
47
<table class="keinRand" style="width:100%">
47
<table class="keinRand" style="width:100%">
48
    <tr>
48
	<tr>
49
        <td>&nbsp;</td>
49
		<td>&nbsp;</td>
50
        <td>
50
		<td>
51
            <form id="filterForm">
51
			<form id="filterForm">
52
                <select name="typ" id="filter_typ">
52
				<select name="typ" id="filter_typ">
53
                    <option value="" label="alle">alle</option>
53
					<option value="" label="alle">alle</option>
54
                    {html_options options=$typen selected=$filter.typ}
54
					{html_options options=$typen selected=$filter.typ}
55
                </select>
55
				</select>
56
            </form>
56
			</form>
57
        </td>
57
		</td>
58
        <td colspan="3">&nbsp;</td>
58
		<td colspan="3">&nbsp;</td>
59
        <td colspan="1">
59
		<td colspan="1">
60
            <form id="filterStatusForm">
60
			<form id="filterStatusForm">
61
                <select name="status" id="filter_status">
61
				<select name="status" id="filter_status">
62
                    <option value="" label="alle">alle</option>
62
					<option value="" label="alle">alle</option>
63
                    {html_options options=$status selected=$filter.status}
63
					{html_options options=$status selected=$filter.status}
64
                </select>
64
				</select>
65
            </form>
65
			</form>
66
        </td>
66
		</td>
67
        <td colspan="6">&nbsp;</td>
67
		<td colspan="6">&nbsp;</td>
68
    </tr>
68
	</tr>
69
    <tr>
69
	<tr>
70
        <td>Feed-Id</td>
70
		<td>Feed-Id</td>
71
        <td>Feed-Typ</td>
71
		<td>Feed-Typ</td>
72
        <td>Datum</td>
72
		<td>Datum</td>
73
        <td>Start-Datum</td>
73
		<td>Start-Datum</td>
74
        <td>Ende-Datum</td>
74
		<td>Ende-Datum</td>
75
        <td>Status</td>
75
		<td>Status</td>
76
        <td>Inhalt</td>
76
		<td>Inhalt</td>
77
        <td>Ergebnis</td>
77
		<td>Ergebnis</td>
78
        <td>erstellt am</td>
78
		<td>erstellt am</td>
79
        <td>Ersteller</td>
79
		<td>Ersteller</td>
80
        <td>ge&auml;ndert am</td>
80
		<td>ge&auml;ndert am</td>
81
        <td>letzter Bearbeiter</td>
81
		<td>letzter Bearbeiter</td>
82
    </tr>
82
	</tr>
83
    {foreach $feeds as $feed}
83
	{foreach $feeds as $feed}
84
    <tr>
84
	<tr>
85
        <td>{$feed.feed_id}</td>
85
		<td>{$feed.feed_id}</td>
86
        <td>{$feed.typ}</td>
86
		<td>{$feed.typ}</td>
87
        <td>{$feed.submit_date|date_format:"%x %X"}</td>
87
		<td>{$feed.submit_date|date_format:"%x %X"}</td>
88
        <td>{$feed.start_date|date_format:"%x %X"}</td>
88
		<td>{$feed.start_date|date_format:"%x %X"}</td>
89
        <td>{$feed.end_date|date_format:"%x %X"}</td>
89
		<td>{$feed.end_date|date_format:"%x %X"}</td>
90
        <td>{$feed.status}</td>
90
		<td>{$feed.status}</td>
91
        <td><a id="content_{$feed.feed_id}" class="content">Inhalt</a></td>
91
		<td><a id="content_{$feed.feed_id}" class="content">Inhalt</a></td>
92
        <td><a id="result_{$feed.feed_id}" class="result">Ergebnis</a></td>
92
		<td><a id="result_{$feed.feed_id}" class="result">Ergebnis</a></td>
93
        <td>{$feed.erstellt_am|date_format:"%x %X"}</td>
93
		<td>{$feed.erstellt_am|date_format:"%x %X"}</td>
94
        <td>{$feed.erstellt_von}</td>
94
		<td>{$feed.erstellt_von}</td>
95
        <td>{$feed.geaendert_am|date_format:"%x %X"}</td>
95
		<td>{$feed.geaendert_am|date_format:"%x %X"}</td>
96
        <td>{$feed.geaendert_von}</td>
96
		<td>{$feed.geaendert_von}</td>
97
    </tr>
97
	</tr>
98
    {/foreach}
98
	{/foreach}
99
</table>
99
</table>
100
{include file="common/pagination.tpl"}
100
{include file="common/pagination.tpl"}
Zeile 101... Zeile 101...
101
 
101
 
102
<div id="content_dlg" title="<span id='content_title'></span>"></div>
102
<div id="content_dlg" title="<span id='content_title'></span>"></div>