Subversion-Projekte lars-tiefland.ci

Revision

Revision 866 | Revision 1292 | Zur aktuellen Revision | Details | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

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