Subversion-Projekte lars-tiefland.content-management

Revision

Blame | Letzte Änderung | Log anzeigen | RSS feed

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
        <title>{$webs.kunde_bezeichnung}: Redaktionssystem</title>
        <script language="javascript" type="text/javascript">
                function check_form()
                {
                        var mode=document.desc_form.mode.value;
                        var desc=document.desc_form.beschreibung.value;
                        var word=document.desc_form.begriff.value;
                        if(mode=="update")
                        {
                                if(desc=="")
                                {
                                        alert("Bitte eine Beschreibung eingeben!");
                                        return false;
                                }
                        }
                        else
                        {
                                if(mode=="save")
                                {
                                        if(desc=="")
                                {
                                        alert("Bitte eine Beschreibung eingeben!");
                                                return false;
                                        }
                                        if(word=="")
                                        {
                                                alert("Bitte einen Begriff eingeben!");
                            return false;
                                        }
                                 }
                          }
                   }
        
                   function ask()
                   {
                       var conf=confirm("Datensatz wirklich löschen? ACHTUNG: Es werden ALLE Begriffe gelöscht, die mit dieser Beschreibung verknüpft sind!");
                   return conf;
                }
            </script>
            <style type="text/css">
                .submit 
                {
                    cursor:pointer;
                }
                body 
                {
                    font-family: Arial, Helvetica, sans-serif; 
                    font-size: 10pt;
                    {if $webs.font_color_seite}
                        color:                          #{$webs.font_color_seite};
                    {/if}
                    {if $webs.bgcolor_seite}
                        background-color:       #{$webs.bgcolor_seite};
                    {/if}
                    {if $webs.hintergrundbild}
                        background-image: url(../images/hintergrundbild/{$webs.hintergrundbild};
                    {/if}
                }
                th, .links
                {
                    font-size: 10pt;
                    {if $webs.font_color_links}
                        color:                          #{$webs.font_color_links};
                    {/if}
                    {if $webs.bgcolor_links}
                        background-color:       #{$webs.bgcolor_links};
                    {/if}
                }
                .td1, .rechts
                {
                    font-size: 10pt;
                    {if $webs.font_color_rechts}
                        color:                          #{$webs.font_color_rechts};
                    {/if}
                    {if $webs.bgcolor_rechts}
                        background-color:       #{$webs.bgcolor_rechts};
                    {/if}
                }
                .td0
                {
                    font-size: 10pt;
                    {if $webs.font_color_rechts}
                        background-color:                               #{$webs.font_color_rechts};
                    {/if}
                    {if $webs.bgcolor_rechts}
                        color:  #{$webs.bgcolor_rechts};
                    {/if}
                }
                A:link 
                {
                    font-family: Arial, Helvetica, sans-serif; 
                    font-size: 10pt; 
                    color: #{$webs.font_color_rechts};
                }
                A:visited 
                {
                    font-family: Arial, Helvetica, sans-serif; 
                    font-size: 10pt; 
                    color: #{$webs.font_color_rechts};
                }
                A:active 
                {
                    font-family: Arial, Helvetica, sans-serif; 
                    font-size: 10pt; 
                    color: #{$webs.font_color_rechts};
                }
                A:hover 
                {
                    font-family: Arial, Helvetica, sans-serif; 
                    font-size: 10pt; 
                    color: #{$webs.font_color_rechts};
                }
                table.input
                {
                    border-width: 2px 1px 1px 2px;
                    border-top-color    : #CCCCCC;
                    border-left-color   : #CCCCCC;
                    border-bottom-color : #AAAAAA;
                    border-right-color  : #AAAAAA;
                    border-style                :inset;
                    background-color    : #FFFFFF;
                }       
                form 
                {
                    display:inline;
                }
            </style>
    </head>
    <body>
        <form name="desc_form" method="post" action="" onSubmit="return check_form();">
                <table>
                        <tr>
                                <th colspan="2">{$head}</th>
                        </tr>
                        <tr>
                                <td colspan="2" class="rechts" align="center">
                                        <input type="button" value="zur&uuml;ck zum Index" onClick="location.href='acronyms.php'" class="submit">
                                </td>
                        </tr>
                        <tr>
                                <td class="links">Beschreibung:</td>
                                <td class="rechts">
                                        <textarea name="beschreibung" cols="45" rows="5">{$a_desc|stripslashes}</textarea>
                                        <a href="#" onClick="if (ask()) { location.href='acronyms.php?mode=del_desc&ID=<?=$id;?>'};">X</a>
                                </td>
                        </tr>
                        <tr>
                                <td class="links">Zugeordnete Begriffe<br>zu dieser Beschreibung:</td>
                                <td class="rechts">{$words}</td>
                        </tr>
                        <tr>
                                <td class="links">Neuer Begriff:</td>
                                <td class="rechts">
                                        <input type="text" name="begriff">
                                        <input type="hidden" name="mode" value="{$new_mode}">
                                        <input type="hidden" name="ID" value="{$id}">
                                         <input type="submit" value="Anlegen" class="submit">
                                </td>
                        </tr>
                        <tr>
                                <td class="links">erstellt:</td>
                                <td class="rechts">
                      {$erstellt_am|date_format:"d.m.Y"} &nbsp;&nbsp;um: 
                      {$erstellt_am|date_format:"H:i"} &nbsp;&nbsp;von: 
                      {$erstellt_von}
                                </td>
                        </tr>
                        <tr>
                                <td class="links">letzte &Auml;nderung:</td>
                                <td class="rechts">
                      {$letzte_Aenderung_am|date_format:"d.m.Y"} &nbsp;&nbsp;um: 
                      {$letzte_Aenderung_am|date_format:"H:i"} &nbsp;&nbsp;von: 
                      {$letzte_Aenderung_von}
                                </td>
                        </tr>
                        <tr>
                                <td colspan="2" class="rechts" align="center">
                                        <input type="button" value="zur&uuml;ck zum Index" onClick="location.href='acronyms.php'" class="submit">
                                </td>
                        </tr>
                </table>
        </form>
    </body>
</html>