Subversion-Projekte lars-tiefland.content-management

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<html>
2
    <head>
3
        <title>Content-Management-System - Webagentur Niewerth</title>
4
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
        <link rel="stylesheet" type="text/css" href="../../styles/styles.php">
6
        <style type="text/css">
7
            /* Anpassung Markus Niewerth */
8
            /* Druckbarer Bereich */
9
            @media print
10
            {
11
                #noprint
12
                {
13
                    display:none;
14
                }
15
            	.lightgray
16
                {
17
                    color: #000000;
18
                    background-color: #EEEEEE;
19
                    text-decoration:underline;
20
                }
21
            	.darkgray
22
                {
23
                    color: #000000;
24
                    background-color: #CCCCCC;
25
                    text-decoration:underline;
26
                }
27
            	.status_off
28
                {
29
                    color: #000000;
30
                    text-decoration : none;
31
                }
32
            	.status_red
33
                {
34
                    color: #FFFFFF;
35
                    background-color: #FF0000;
36
                    text-decoration:underline;
37
                }
38
            	.status_yellow
39
                {
40
                    color: #000000;
41
                    background-color: #FFFF00;
42
                    text-decoration:underline;
43
                }
44
            	.status_blue
45
                {
46
                    color: #FFFFFF;
47
                    background-color: #0000FF;
48
                    text-decoration:underline;
49
                }
50
            	.status_green
51
                {
52
                    color: #000000;
53
                    background-color: #00FF00;
54
                    text-decoration:underline;
55
                }
56
            	.status_white
57
                {
58
                    color: #000000;
59
                    background-color: #FFFFFF;
60
                    text-decoration:underline;
61
                }
62
            }
63
 
64
            /* Sichtbarer Bereich */
65
            @media screen {
66
            	.lightgray
67
                {
68
                    color: #000000;
69
                    background-color:
70
                    #EEEEEE; text-decoration:none;
71
                }
72
            	.darkgray
73
                {
74
            	   color: #000000;
75
                   background-color: #CCCCCC;
76
                   text-decoration:none;
77
                }
78
            	.status_off
79
                {
80
            	   color: #000000;
81
                   text-decoration : none;
82
                }
83
            	.status_red
84
                {
85
                    color: #FFFFFF;
86
                    background-color: #FF0000;
87
                    text-decoration:none;
88
                }
89
            	.status_yellow
90
                {
91
                    color: #000000;
92
                    background-color: #FFFF00;
93
                    text-decoration:none;
94
                }
95
            	.status_blue
96
                {
97
                    color: #FFFFFF;
98
                    background-color: #0000FF;
99
                    text-decoration:none;
100
                }
101
            	.status_green
102
                {
103
                    color: #000000;
104
                    background-color: #00FF00;
105
                    text-decoration:none;
106
                }
107
            	.status_white
108
                {
109
                    color: #000000;
110
                    background-color: #FFFFFF;
111
                    text-decoration:none;
112
                }
113
            }
114
        </style>
115
        <script type="text/javascript" language="javascript" src="/js/jquery-1.4.4.min.js"></script>
116
        {if isset($web_rechte["Warenwirtschaft"]["bestellung"]["html_emails"]) && $vorlage}
117
<!-- Einbindung TinyMCE -->
118
<script type="text/javascript" src="../../tiny_mce/tiny_mce.js"></script>
119
<script type="text/javascript">
120
tinyMCE.init({
121
    // General options
122
    apply_source_formatting : false,
123
    mode : "exact",
124
    elements: "body",
125
    theme : "simple",
126
    language: "de",
127
 
128
    // Theme options
129
    theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull",
130
    theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,preview,|,forecolor,backcolor",
131
    theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,ltr,rtl,|,fullscreen",
132
    theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,spellchecker,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,blockquote,pagebreak,|,insertfile,insertimage",
133
    theme_simple_toolbar_location : "top",
134
    theme_advanced_toolbar_location : "top",
135
    theme_advanced_toolbar_align : "left",
136
    theme_advanced_statusbar_location : "bottom",
137
    theme_advanced_resizing : true,
138
 
139
    // Example content CSS (should be your site CSS)
140
    content_css : "css/example.css",
141
 
142
    // Drop lists for link/image/media/template dialogs
143
    template_external_list_url : "js/template_list.js",
144
    external_link_list_url : "js/link_list.js",
145
    external_image_list_url : "js/image_list.js",
146
    media_external_list_url : "js/media_list.js",
147
 
148
    // Replace values for the template plugin
149
    template_replace_values : {
150
        username : "Some User",
151
        staffid : "991234"
152
    }
153
});
154
</script>
155
{/if}
156
        <script language="javascript" src="../../Farb_Assistent.js"></script>
157
        <script language="JavaScript">
158
            function add_document(doc, path)
159
            {
160
                var dokumente = document.getElementById('dokumente');
161
                var letzteReihe = dokumente.rows.length;
162
                var iteration = letzteReihe;
163
                var reihe = dokumente.insertRow(letzteReihe);
164
 
165
                var zelle1 = reihe.insertCell(0);
166
                var zelle2 = reihe.insertCell(1);
167
                var zelle3 = reihe.insertCell(2);
168
 
169
                var dokument = document.createElement('input');
170
                dokument.setAttribute('type', 'hidden');
171
                dokument.setAttribute('name', 'document[]');
172
                dokument.setAttribute('value', path+'/'+doc);
173
 
174
                var doc_name = document.createElement('input');
175
                doc_name.setAttribute('type', 'text');
176
                doc_name.setAttribute('value', path+'/'+doc);
177
                doc_name.setAttribute('readonly', 'readonly');
178
                doc_name.setAttribute('disabled', 'disabled');
179
                doc_name.setAttribute('size', 100);
180
 
181
                var loeschen = document.createElement('input');
182
                loeschen.setAttribute('type', 'image');
183
                loeschen.setAttribute('src', '/dokumente/gfx/delete_record.gif');
184
                loeschen.onclick = new Function ("del_document(this,'"+doc+"')");
185
 
186
                zelle1.setAttribute('id', iteration);
187
                zelle1.appendChild(dokument);
188
 
189
                zelle2.setAttribute('id', iteration);
190
                zelle2.appendChild(doc_name);
191
 
192
                zelle3.setAttribute('id', iteration);
193
                zelle3.appendChild(loeschen);
194
 
195
                document.getElementById(doc).style.display='none';
196
            }
197
            function del_document(x, doc)
198
            {
199
                while (x.tagName.toLowerCase() !='tr')
200
                {
201
                    if(x.parentElement)
202
                    {
203
                        x=x.parentElement;
204
                    }
205
                    else if(x.parentNode)
206
                    {
207
                        x=x.parentNode;
208
                    }
209
                    else
210
                    {
211
                        return;
212
                    }
213
                }
214
                var rowNum=x.rowIndex;
215
                while (x.tagName.toLowerCase() !='table')
216
                {
217
                    if(x.parentElement)
218
                    {
219
                        x=x.parentElement;
220
                    }
221
                    else if(x.parentNode)
222
                    {
223
                        x=x.parentNode;
224
                    }
225
                    else
226
                    {
227
                        return;
228
                    }
229
                }
230
                x.deleteRow(rowNum);
231
                document.getElementById(doc).style.display='block';
232
            }
233
 
234
            function MM_swapImgRestore()
235
            { //v3.0
236
                var i,x,a=document.MM_sr;
237
                for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++)
238
                {
239
                    x.src=x.oSrc;
240
                    document.getElementById(doc).style.display='block';
241
                }
242
            }
243
 
244
            function MM_preloadImages()
245
            { //v3.0
246
                var d=document;
247
                if(d.images)
248
                {
249
                    if(!d.MM_p)
250
                    {
251
                        d.MM_p=new Array();
252
                    }
253
                    var i,j=d.MM_p.length,a=MM_preloadImages.arguments;
254
                    for(i=0; i<a.length; i++)
255
                    {
256
                        if (a[i].indexOf("#")!=0)
257
                        {
258
                            d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];
259
                        }
260
                    }
261
                }
262
            }
263
 
264
            function MM_swapImage()
265
            { //v3.0
266
                var i,j=0,x,a=MM_swapImage.arguments;
267
                document.MM_sr=new Array;
268
                for(i=0;i<(a.length-2);i+=3)
269
                {
270
                    if ((x=MM_findObj(a[i]))!=null)
271
                    {
272
                        document.MM_sr[j++]=x;
273
                        if(!x.oSrc)
274
                        {
275
                            x.oSrc=x.src; x.src=a[i+2];
276
                        }
277
                    }
278
                }
279
            }
280
 
281
            function MM_findObj(n, d)
282
            { //v4.01
283
                var p,i,x;
284
                if(!d)
285
                {
286
                    d=document;
287
                }
288
                if((p=n.indexOf("?"))>0&&parent.frames.length)
289
                {
290
                    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);
291
                }
292
                if(!(x=d[n])&&d.all)
293
                {
294
                    x=d.all[n];
295
                }
296
                for (i=0;!x&&i<d.forms.length;i++)
297
                {
298
                    x=d.forms[i][n];
299
                }
300
                for(i=0;!x&&d.layers&&i<d.layers.length;i++)
301
                {
302
                    x=MM_findObj(n,d.layers[i].document);
303
                }
304
                if(!x && d.getElementById)
305
                {
306
                    x=d.getElementById(n);
307
                }
308
                return x;
309
            }
310
 
311
            function inTextfeld(Inhalt)
312
            {
313
            	// update[list]
314
            	opener.formname.Bemerkung.value += (Inhalt);
315
                {if isset( $web_rechte["Warenwirtschaft"]["bestellung"]["neu"])}
316
            	opener.formname.action = "bestellungen_neu.php?update[current]";
317
                {else}
318
            	opener.formname.action = "bestellungen.php?update[current]";
319
                {/if}
320
            	opener.formname.submit();
321
                {if ( isset($user_rechte.Warenwirtschaft.bestellung.weiter_uebersicht) )}
322
                {if isset( $web_rechte["Warenwirtschaft"]["bestellung"]["neu"])}
323
            	opener.location.href = "../bestellungen_neu.php";
324
                {else}
325
            	opener.location.href = "../bestellungen.php";
326
                {/if}
327
                {/if}
328
                self.close();
329
            }
330
            {if ( $smarty.post.update && $smarty.get.send )}
331
            	inTextfeld('{$smarty.post.inTextField}');
332
                {if ( !$noconfirm )}
333
            	   alert("{$smarty.get.message}");
334
                {/if}
335
             {elseif ( $smarty.post.update && !$smarty.get.send )}
336
            	alert("{$smarty.get.message}");
337
             {/if}
338
        </script>
339
        <script language="JavaScript" src="../kundenauftrag_drucken.js.php"></script>
340
 
341
        <style type="text/css">
342
            .Stil1
343
            {
344
                color: #$webs.font_color_links;
345
            }
346
        </style>
347
    </head>
348
    <body bgcolor="#{$webs.font_color_links}" style="margin-left:20px;margin-top=10px;color:#000096">
349
    {if ( isset($web_rechte.Warenwirtschaft.bestellung.mail_client) )}
350
        <form method="post" action="" name="formname" enctype="multipart/form-data">
351
        {if ( $smarty.get.action == "preview" || empty($smarty.get.action) )}
352
            <input type="hidden" name="adminMail" value="{$adminMail}">
353
            <div id="mainTable" style="width:800; height:500; border: 1px solid #{$webs.bgcolor_links}; top: 10px; left: 10px; margin-right: 10px; font-family: Verdana, Arial; font-size: 12px;">
354
                <label for="mailto">
355
                    <div id="mailEdit" style="width:800; height:20; border-bottom: 1px solid #{$webs.bgcolor_links};">
356
                    <div id="mailEditTitle" style="margin: 1px; font-weight: bold; width:800; height:10;  background-color:#{$webs.bgcolor_links}; color: #{$webs.font_color_links}; border-right: 1px solid #000000; border-bottom: 1px solid #000000">EMail</div>
357
                    <input type="text" name="mailto" style="width:800; height: 20px; font-family: 'Courier New'" value="{$smarty.session.mailData[$smarty.get.Bestellung][$smarty.get.id].mailto}">
358
                    <br>
359
                    <br>
360
                    {if ( !$nocopy )}BCC: {$adminMail}{/if}
361
                    </div>
362
                </label>
363
                <div id="subjectEdit" style="width:800; height:20; border-bottom: 1px solid #{$webs.bgcolor_links}">
364
                    <div id="subjectEditTitle" style="margin: 1px; font-weight: bold;width:800; height:10;  background-color:#{$webs.bgcolor_links}; color: #{$webs.font_color_links}; border-right: 1px solid #000000; border-bottom: 1px solid #000000">Subject</div>
365
                    <input type="text" name="subject" style="width:800; height: 20px; font-family: 'Courier New'" value="{$smarty.session.mailData[$smarty.get.Bestellung][$smarty.get.id].subject|urldecode}">
366
                </div>
367
                <div id="textEdit" style="width:800; height:300px; border-bottom: 1px solid #{$webs.bgcolor_links};">
368
                    <div id="textEditTitle" style="margin: 1px; font-weight: bold;width:800; height:10;  background-color:#{$webs.bgcolor_links}; color: {$webs.font_color_links}; border-right: 1px solid #000000; border-bottom: 1px solid #000000">Text</div>
369
                {if isset($web_rechte["Warenwirtschaft"]["bestellung"]["html_emails"]) && $vorlage}
370
                    <textarea name="body" style="width:800; height: 300px; font-family: 'Courier New'">{$smarty.session.mailData[$smarty.get.Bestellung][$smarty.get.id].body|urldecode|nl2br}</textarea>
371
                {else}
372
                    <textarea name="body" style="width:800; height: 300px; font-family: 'Courier New'">{$smarty.session.mailData[$smarty.get.Bestellung][$smarty.get.id].body|urldecode}</textarea>
373
                {/if}
374
                </div>
375
                <div id="mailSubmitTitle" style="width:800; height:20; padding-top: 10px;;">
376
                    <div id="mailSubmit" style="margin: 1px; font-weight: bold;width:800; height:10; background-color:#{$webs.bgcolor_links}; color: {$webs.font_color_links}; border-right: 1px solid #000000; border-bottom: 1px solid #000000;border-top: 1px solid #000000">Best&auml;tigen</div>
377
                    <input name="inTextField" type="hidden" value="{$smarty.session.mailData[$smarty.get.Bestellung][$smarty.get.id].inTextField}" >
378
                    <input type="hidden" name="Bestellung" value="{$smarty.get.Bestellung}">
379
                    <input type="hidden" name="shops_ID" value="{$smarty.get.shop}">
380
                    <input type="hidden" name="button" value="{$smarty.get.button};">
381
                    <input type="submit" name="update[list]" value="Mail abschicken!">
382
                </div>
383
                {if ( isset($web_rechte.Warenwirtschaft.bestellung.html_emails) )}
384
                <br>
385
                <br>
386
                <div>
387
                    <table id="dokumente">
388
                    </table>
389
                </div>
390
                <br>
391
                <br>
392
                <table>
393
                    <tr>
394
                        <th>Dokument</th>
395
                        <th>Hinzuf&uuml;gen</th>
396
                    </tr>
397
                    {section loop=$dateien name=d_ind}
398
                    <tr>
399
                        <td>{$dateien[d_ind].name}</td>
400
                        <td>
401
                            <input type="image" src="/dokumente/gfx/add.gif" onClick="add_document('{$dateien[d_ind].name}','{$webs.verzeichnis}/{$dateien[d_ind].url}/');return false;" id="{$dateien[d_ind].name}">
402
                        </td>
403
                    </tr>
404
                    {/section}
405
                </table>
406
                {/if}
407
            </div>
408
        </form>
409
        {/if}
410
    {/if}
411
</body>