| 1 |
lars |
1 |
<html>
|
|
|
2 |
<head>
|
|
|
3 |
<title>{$kunde}: Redaktionssystem</title>
|
|
|
4 |
<meta http-equiv="Content-Type" content="text/html; charset={$charset}">
|
|
|
5 |
<meta name="description" content="Redaktionssystem">
|
|
|
6 |
<meta name="author" content="Webagentur Niewerth">
|
|
|
7 |
<meta name="robots" content="noindex">
|
|
|
8 |
{if file_exists("../css/$site/jquery-ui.custom.css")}
|
|
|
9 |
<link rel="stylesheet" type="text/css" href="/css/{$site}/jquery-ui.custom.css">
|
|
|
10 |
{else}
|
|
|
11 |
<link rel="stylesheet" type="text/css" href="/css/ui-darkness/jquery-ui.custom.css">
|
|
|
12 |
{/if}
|
|
|
13 |
<link rel="stylesheet" type="text/css" href="redaktion.css">
|
|
|
14 |
<style>
|
|
|
15 |
body
|
|
|
16 |
{
|
|
|
17 |
font-family: Arial, Helvetica, sans-serif;
|
|
|
18 |
font-size: 10pt;
|
|
|
19 |
}
|
|
|
20 |
</style>
|
|
|
21 |
</head>
|
|
|
22 |
<body>
|
|
|
23 |
{for $i=1;$i<=$preis_anz;$i++}
|
|
|
24 |
{include file="preisstaffel/preisstaffel.tpl"}
|
|
|
25 |
{/for}
|
|
|
26 |
<script src="/js/common.js"></script>
|
|
|
27 |
<script src="/js/jquery-1.4.2.min.js"></script>
|
|
|
28 |
<script src="/js/jquery-ui-1.8.1.custom.min.js"></script>
|
|
|
29 |
<script>
|
|
|
30 |
$(function()
|
|
|
31 |
{
|
|
|
32 |
{for $i=1;$i<=$preis_anz;$i++}
|
|
|
33 |
$('#reiter'+{$i}).tabs();
|
|
|
34 |
$('#new_staffel_'+{$i}).click(add_staffel);
|
|
|
35 |
$('.delete').click(del_staffel);
|
|
|
36 |
{/for}
|
|
|
37 |
});
|
|
|
38 |
function add_staffel()
|
|
|
39 |
{
|
|
|
40 |
arr=this.id.split('_');
|
|
|
41 |
nr=arr[2];
|
|
|
42 |
elems=$('.tr_staffel_'+nr).length;
|
|
|
43 |
next_id=Math.abs(elems+1);
|
|
|
44 |
arr[0]="table";
|
|
|
45 |
table_id=arr.join('_');
|
|
|
46 |
del_id='del_staffel_'+nr+'_'+next_id;
|
|
|
47 |
r_html='<tr id="tr_staffel_'+nr+'_'+next_id+'" class="tr_staffel_'+nr+'"><td>ab: <input type="text" name="staffel['+nr+'][menge][]" value=""></td><td>Preis: <input type="text" name="staffel['+nr+'][preis][]" value="" onkeyup="killkomma_neu(this);" onblur="this.value=killkomma(this.value);"></td><td><img src="../dokumente/gfx/delete_record.gif" style="cursor:pointer" id="'+del_id+'" class="delete"></td></tr>';
|
|
|
48 |
$('#'+table_id).append(r_html);
|
|
|
49 |
$('#'+del_id).click(del_staffel);
|
|
|
50 |
}
|
|
|
51 |
|
|
|
52 |
function del_staffel()
|
|
|
53 |
{
|
|
|
54 |
arr=this.id.split('_');
|
|
|
55 |
arr[0]="tr";
|
|
|
56 |
tr_id=arr.join('_');
|
|
|
57 |
$('#'+tr_id).remove();
|
|
|
58 |
}
|
|
|
59 |
</script>
|
|
|
60 |
</body>
|
|
|
61 |
</html>
|