Subversion-Projekte lars-tiefland.content-management

Revision

Blame | Letzte Änderung | Log anzeigen | RSS feed

<html>
    <head>
        <title>Content-Management-System - Webagentur Niewerth</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="../../styles/styles.php">
        <style type="text/css">
            /* Anpassung Markus Niewerth */
            /* Druckbarer Bereich */
            @media print 
            {
                #noprint                        
                {
                    display:none;
                }
                .lightgray              
                {
                    color: #000000; 
                    background-color: #EEEEEE; 
                    text-decoration:underline;
                }
                .darkgray               
                {
                    color: #000000; 
                    background-color: #CCCCCC; 
                    text-decoration:underline;
                }
                .status_off             
                {
                    color: #000000; 
                    text-decoration : none;
                }
                .status_red             
                {
                    color: #FFFFFF; 
                    background-color: #FF0000; 
                    text-decoration:underline;
                }
                .status_yellow          
                {
                    color: #000000; 
                    background-color: #FFFF00; 
                    text-decoration:underline;
                }
                .status_blue            
                {
                    color: #FFFFFF; 
                    background-color: #0000FF; 
                    text-decoration:underline;
                }
                .status_green           
                {
                    color: #000000; 
                    background-color: #00FF00; 
                    text-decoration:underline;
                }
                .status_white           
                {
                    color: #000000;
                    background-color: #FFFFFF;
                    text-decoration:underline;
                }
            }
            
            /* Sichtbarer Bereich */
            @media screen {
                .lightgray              
                {
                    color: #000000; 
                    background-color: 
                    #EEEEEE; text-decoration:none;
                }
                .darkgray               
                {
                   color: #000000; 
                   background-color: #CCCCCC; 
                   text-decoration:none;
                }
                .status_off             
                {
                   color: #000000; 
                   text-decoration : none;
                }
                .status_red             
                {
                    color: #FFFFFF; 
                    background-color: #FF0000; 
                    text-decoration:none;
                }
                .status_yellow          
                {
                    color: #000000; 
                    background-color: #FFFF00; 
                    text-decoration:none;
                }
                .status_blue            
                {
                    color: #FFFFFF; 
                    background-color: #0000FF; 
                    text-decoration:none;
                }
                .status_green           
                {
                    color: #000000; 
                    background-color: #00FF00; 
                    text-decoration:none;
                }
                .status_white           
                {
                    color: #000000; 
                    background-color: #FFFFFF; 
                    text-decoration:none;
                }
            }
        </style>
        <script type="text/javascript" language="javascript" src="/js/jquery-1.4.4.min.js"></script>  
        {if isset($web_rechte["Warenwirtschaft"]["bestellung"]["html_emails"]) && $vorlage}
<!-- Einbindung TinyMCE -->
<script type="text/javascript" src="../../tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
tinyMCE.init({
    // General options
    apply_source_formatting : false,
    mode : "exact",
    elements: "body",
    theme : "simple",
    language: "de",

    // Theme options
    theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull",
    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",
    theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,ltr,rtl,|,fullscreen",
    theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,spellchecker,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,blockquote,pagebreak,|,insertfile,insertimage",
    theme_simple_toolbar_location : "top",
    theme_advanced_toolbar_location : "top",
    theme_advanced_toolbar_align : "left",
    theme_advanced_statusbar_location : "bottom",
    theme_advanced_resizing : true,

    // Example content CSS (should be your site CSS)
    content_css : "css/example.css",

    // Drop lists for link/image/media/template dialogs
    template_external_list_url : "js/template_list.js",
    external_link_list_url : "js/link_list.js",
    external_image_list_url : "js/image_list.js",
    media_external_list_url : "js/media_list.js",

    // Replace values for the template plugin
    template_replace_values : {
        username : "Some User",
        staffid : "991234"
    }
});
</script>
{/if}
        <script language="javascript" src="../../Farb_Assistent.js"></script>
        <script language="JavaScript">
            function add_document(doc, path)
            {
                var dokumente = document.getElementById('dokumente');
                var letzteReihe = dokumente.rows.length;
                var iteration = letzteReihe;
                var reihe = dokumente.insertRow(letzteReihe);
                
                var zelle1 = reihe.insertCell(0);
                var zelle2 = reihe.insertCell(1);
                var zelle3 = reihe.insertCell(2);
            
                var dokument = document.createElement('input');
                dokument.setAttribute('type', 'hidden');
                dokument.setAttribute('name', 'document[]');
                dokument.setAttribute('value', path+'/'+doc);
            
                var doc_name = document.createElement('input');
                doc_name.setAttribute('type', 'text');
                doc_name.setAttribute('value', path+'/'+doc);
                doc_name.setAttribute('readonly', 'readonly');
                doc_name.setAttribute('disabled', 'disabled');
                doc_name.setAttribute('size', 100);
            
                var loeschen = document.createElement('input');
                loeschen.setAttribute('type', 'image');
                loeschen.setAttribute('src', '/dokumente/gfx/delete_record.gif');
                loeschen.onclick = new Function ("del_document(this,'"+doc+"')");
                
                zelle1.setAttribute('id', iteration);
                zelle1.appendChild(dokument);
                
                zelle2.setAttribute('id', iteration);
                zelle2.appendChild(doc_name);    
            
                zelle3.setAttribute('id', iteration);
                zelle3.appendChild(loeschen);    

                document.getElementById(doc).style.display='none';            
            }
            function del_document(x, doc)
            {
                while (x.tagName.toLowerCase() !='tr') 
                { 
                    if(x.parentElement)
                    {
                        x=x.parentElement;    
                    }  
                    else if(x.parentNode)
                    {
                        x=x.parentNode;
                    } 
                    else
                    {
                        return;
                    }
                } 
                var rowNum=x.rowIndex; 
                while (x.tagName.toLowerCase() !='table') 
                { 
                    if(x.parentElement)
                    {
                        x=x.parentElement;    
                    }  
                    else if(x.parentNode)
                    {
                        x=x.parentNode;
                    } 
                    else
                    {
                        return;
                    }
                } 
                x.deleteRow(rowNum);  
                document.getElementById(doc).style.display='block';            
            }
            
            function MM_swapImgRestore() 
            { //v3.0
                var i,x,a=document.MM_sr; 
                for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++)
                {
                    x.src=x.oSrc;
                    document.getElementById(doc).style.display='block';            
                }
            }
            
            function MM_preloadImages() 
            { //v3.0
                var d=document; 
                if(d.images)
                {
                    if(!d.MM_p) 
                    {
                        d.MM_p=new Array();    
                    }
                    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; 
                    for(i=0; i<a.length; i++)
                    {
                        if (a[i].indexOf("#")!=0)
                        {
                            d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];
                        }        
                    }
                }
            }
            
            function MM_swapImage() 
            { //v3.0
                var i,j=0,x,a=MM_swapImage.arguments; 
                document.MM_sr=new Array; 
                for(i=0;i<(a.length-2);i+=3)
                {
                    if ((x=MM_findObj(a[i]))!=null)
                    {
                        document.MM_sr[j++]=x; 
                        if(!x.oSrc) 
                        {
                            x.oSrc=x.src; x.src=a[i+2];    
                        }
                    }
                }
            }
            
            function MM_findObj(n, d) 
            { //v4.01
                var p,i,x;
                if(!d) 
                {
                    d=document;    
                }
                if((p=n.indexOf("?"))>0&&parent.frames.length) 
                {
                    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);
                }
                if(!(x=d[n])&&d.all) 
                {
                    x=d.all[n];    
                }
                for (i=0;!x&&i<d.forms.length;i++) 
                {
                    x=d.forms[i][n];    
                }
                for(i=0;!x&&d.layers&&i<d.layers.length;i++) 
                {
                    x=MM_findObj(n,d.layers[i].document);    
                }
                if(!x && d.getElementById)
                {
                    x=d.getElementById(n);    
                } 
                return x;
            }
            
            function inTextfeld(Inhalt)
            {
                // update[list]
                opener.formname.Bemerkung.value += (Inhalt);
                {if isset( $web_rechte["Warenwirtschaft"]["bestellung"]["neu"])}
                opener.formname.action = "bestellungen_neu.php?update[current]";
                {else}
                opener.formname.action = "bestellungen.php?update[current]";
                {/if}
                opener.formname.submit();
                {if ( isset($user_rechte.Warenwirtschaft.bestellung.weiter_uebersicht) )}
                {if isset( $web_rechte["Warenwirtschaft"]["bestellung"]["neu"])}
                opener.location.href = "../bestellungen_neu.php";
                {else}
                opener.location.href = "../bestellungen.php";
                {/if}
                {/if}
                self.close();
            }
            {if ( $smarty.post.update && $smarty.get.send )}
                inTextfeld('{$smarty.post.inTextField}');
                {if ( !$noconfirm )}
                   alert("{$smarty.get.message}");
                {/if}
             {elseif ( $smarty.post.update && !$smarty.get.send )}
                alert("{$smarty.get.message}");
             {/if}
        </script>
        <script language="JavaScript" src="../kundenauftrag_drucken.js.php"></script>
        
        <style type="text/css">
            .Stil1 
            {
                color: #$webs.font_color_links;
            }
        </style>
    </head>
    <body bgcolor="#{$webs.font_color_links}" style="margin-left:20px;margin-top=10px;color:#000096">
    {if ( isset($web_rechte.Warenwirtschaft.bestellung.mail_client) )}
        <form method="post" action="" name="formname" enctype="multipart/form-data">
        {if ( $smarty.get.action == "preview" || empty($smarty.get.action) )}
            <input type="hidden" name="adminMail" value="{$adminMail}">
            <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;">
                <label for="mailto">
                    <div id="mailEdit" style="width:800; height:20; border-bottom: 1px solid #{$webs.bgcolor_links};">
                    <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>
                    <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}">
                    <br>
                    <br>
                    {if ( !$nocopy )}BCC: {$adminMail}{/if}
                    </div>
                </label>
                <div id="subjectEdit" style="width:800; height:20; border-bottom: 1px solid #{$webs.bgcolor_links}">
                    <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>
                    <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}">
                </div>
                <div id="textEdit" style="width:800; height:300px; border-bottom: 1px solid #{$webs.bgcolor_links};">
                    <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>
                {if isset($web_rechte["Warenwirtschaft"]["bestellung"]["html_emails"]) && $vorlage}
                    <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>
                {else}
                    <textarea name="body" style="width:800; height: 300px; font-family: 'Courier New'">{$smarty.session.mailData[$smarty.get.Bestellung][$smarty.get.id].body|urldecode}</textarea>
                {/if}
                </div>
                <div id="mailSubmitTitle" style="width:800; height:20; padding-top: 10px;;">
                    <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>
                    <input name="inTextField" type="hidden" value="{$smarty.session.mailData[$smarty.get.Bestellung][$smarty.get.id].inTextField}" >
                    <input type="hidden" name="Bestellung" value="{$smarty.get.Bestellung}">
                    <input type="hidden" name="shops_ID" value="{$smarty.get.shop}">
                    <input type="hidden" name="button" value="{$smarty.get.button};">
                    <input type="submit" name="update[list]" value="Mail abschicken!">
                </div>
                {if ( isset($web_rechte.Warenwirtschaft.bestellung.html_emails) )}
                <br>
                <br>
                <div>
                    <table id="dokumente">
                    </table>
                </div>
                <br>
                <br>
                <table>
                    <tr>
                        <th>Dokument</th>
                        <th>Hinzuf&uuml;gen</th>
                    </tr>
                    {section loop=$dateien name=d_ind}    
                    <tr>
                        <td>{$dateien[d_ind].name}</td>
                        <td>
                            <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}">
                        </td>
                    </tr>
                    {/section}
                </table>
                {/if}
            </div>
        </form>
        {/if}
    {/if}
</body>