Eine Liste öffnet eine Liste?

Dieses Thema im Forum "Webentwicklung" wurde erstellt von Gimli_q, 19. März 2007 .

Schlagworte:
  1. 19. März 2007
    Wieder eine Weitere Frage:

    Wenn ich eine Liste habe z.B.

    Code:
    <select name="blub" id="blub">
     <option>Bitte ausw&auml;hlen...</option>
     <option value="1">test</option>
     <option value="2">blub</option>
     <option value="3">joa</option>
     <option value="4">blob</option>
     </select>
    und nun z.B. "blob" auswähle. Wie könnte ich es so machen das sich dann direkt nach der auswahl im gleichen content und fenster eine 2. Liste mit anderen optionen öffnet?
     
  2. 19. März 2007
    Zuletzt von einem Moderator bearbeitet: 15. April 2017
    aW: Eine Liste öffnet eine Liste?

    kugg dir mal mein 1. post hier an.
     
  3. 19. März 2007
    AW: Eine Liste öffnet eine Liste?

    ok ich habs nun soweit hinbekommen, jedoch ein problem. ich habe nicht nur eine auswahl sondern 5 und wenn ich eine der 5 auswahlen auswähle öffnet sich nun eine neue Liste mit anderen auswahlen.

    So und nun die Frage,

    Ich wähle praktisch eins aus und wie verschickt es das nun per Email? Hier ist mal der Code. Das was ich hinzugefügt habe geht nicht =(

    PHP:
    <? php

    function  replace ( $text , $vars )
      {
      
    $new = $text ;
       if(
    is_array ( $vars ))
         {
           foreach(
    $vars  as  $K => $var )
            {
             
    $new = eregi_replace ( $K , $var , $new );
            }
         }
     if(
    $new != "" )
       {
        return 
    $new ;
       }
     else
       {
        return 
    false ;
       }
     }
    eval (
    "\$title_ticket = \"" . gettemplate ( "title_ticket" ). "\";" );
    echo 
    $title_ticket ;

    if(
    $_POST [ "action" ] ==  "send" ) {
      
    $vorname  trim ( stripslashes ( $_POST [ 'vorname' ]));
      
    $nachname  trim ( stripslashes ( $_POST [ 'nachname' ]));
      
    $mail  trim ( stripslashes ( $_POST [ 'mail' ]));
      
    $port  trim ( stripslashes ( $_POST [ 'port' ]));
      
    $porta  trim ( stripslashes ( $_POST [ 'porta' ]));
      
    $portb  trim ( stripslashes ( $_POST [ 'portb' ]));
      
    $portc  trim ( stripslashes ( $_POST [ 'portc' ]));
      
    $portd  trim ( stripslashes ( $_POST [ 'portd' ]));
      
    $porte  trim ( stripslashes ( $_POST [ 'porte' ]));
      
    $betreff  trim ( stripslashes ( $_POST [ 'betreff' ]));
      
    $nachricht  trim ( stripslashes ( $_POST [ 'nachricht' ]));
      if(!
    $vorname $fehler [] =  "Bitte gebe Deinen Vornamen an!" ;
      if(!
    $nachname $fehler [] =  "Bitte gebe Deinen Nachnamen an!" ;
      if(!
    $nachricht $fehler [] =  "Bitte gebe Deine Nachricht/Deine Frage ein!" ;
      if(!
    $port $fehler [] =  "Bitte gebe Deinen Portbereich an!" ;
      if(!
    $mail $fehler [] =  "Bitte gebe Deine korrekte E-Mail Adresse an!" ;
      if(!
    count ( $fehler )) {
          
    $header = "From: $mail \n" ;
          
    $header  .=  "Reply-To:  $mail \n" ;
          
    $header .= "Content-Type: text/html" ;

    $text = 'Supportticket gestellt von %vorname%

    %vorname% hat vor kurzem ein Supportticket folgend gestellt: (Gesendet von: %ip%)

     - Vorname:         %vorname%
     - Nachname:         %nachname%
     
     - Email-Adresse:     %email%
     - Betreff:         %betreff%
     
     - Serverport:        %portabcde%
     - Nachricht:         %nachricht%'
    ;
      
    $vars =array( "%ip%" => $ip ,
                  
    "%vorname%" => $vorname ,
                  
    "%nachname%" => $nachname ,
                  
    "%email%" => $mail ,
                  
    "%betreff%" => $betreff ,
                  
    "%nachricht%" => $nachricht ,
                  
    "%portabcde%" => $porta $portb $portc $portd $porte ,
                  );
      
    $neutext = replace ( $text , $vars );
     
    //mail($admin_email, $betreff, 'Teamspeak2 Server beantragung  von ('.$name.'): '.$hpurl.'<br><br>'.clearfromtags ($servername).'<br><br>'.clearfromtags($wcmessage).'<br><br>'.clearfromtags($serverstatus).'<br><br>'.clearfromtags($slots).'<br><br>'.clearfromtags($loginname).'<br><br>'.clearfromtags($loginpw).'<br><br>'.clearfromtags($vorname).'<br><br>'.clearfromtags($nachname).'<br><br>'.clearfromtags($homepage) ,$header);
    switch( $_POST [ 'port' ]) {
        case 
    "1" :
            
    mail ( "mail1@mail.com" $betreff $neutext  , $header );
            break;
        case 
    "2" :
            
    mail ( "mail2@mail.com" $betreff $neutext  , $header );
            break;
        case 
    "3" :
            
    mail ( "mail3@mail.com" $betreff $neutext  , $header );
            break;
        case 
    "4" :
            
    mail ( "mail4@mail.com" $betreff $neutext  , $header );
            break;
        case 
    "5" :
            
    mail ( "mail5@mail.com" $betreff $neutext  , $header );
            break;
        default:
            
    mail ( $admin_email $betreff $neutext  , $header );
            break;
    }
        
    redirect ( 'index.php?site=ticket' , 'Supportticket wurde erfolgreich versand, wir werden uns in Kürze bei Dir melden.' );
        unset(
    $name );
        unset(
    $mail );
        unset(
    $nachricht );
        unset(
    $betreff );
      } else {
        echo 
    '<table width="100%" border="0" cellspacing="1" cellpadding="2" bgcolor="' . $border . '">
         <tr bgcolor="'
    . $bghead . '">
          <td class="title">&nbsp; • Support-Ticketsystem</td>
         </tr>
         <tr><td bgcolor="'
    . $pagebg . '"></td></tr>
         <tr bgcolor="'
    . $bg1 . '">
          <td><table width="100%" border="0" cellspacing="0" cellpadding="2">
           <tr>
            <td><b>Probleme sind aufgetreten</b><br><br>
            <ul><li>'
    . implode ( '<li>' , $fehler ). '</ul><br>
            <center>[ <b><a href="javascript:history.back()">zurück zum Formular</a></b> ]</center><br></td>
           </tr>
          </table></td>
         </tr>
        </table>'
    ;
      }
    } else{

    $bg1  BG_1 ;

    eval (
    "\$ticket = \"" . gettemplate ( "ticket" ). "\";" );
    echo 
    $ticket ;
    }
    ?>
    und hier die html (template) datei:

    HTML:
    <style type="text/css">
     select#a, select#b, select#c, select#d, select#e {
     display: none;
     }
    </style>
    
    <script language="JavaScript">
     function select_change(value) {
     var obj = document.getElementById(value);
     var a = document.getElementById("a");
     var b = document.getElementById("b");
     var c = document.getElementById("c");
     var d = document.getElementById("d");
     var e = document.getElementById("e");
     if(obj) {
     if(value=="a") {
     a.style.display = "block";
     b.style.display = "none";
     c.style.display = "none";
     d.style.display = "none";
     e.style.display = "none";
     } else if(value=="b") {
     a.style.display = "none";
     b.style.display = "block";
     c.style.display = "none";
     d.style.display = "none";
     e.style.display = "none";
     } else if(value=="c") {
     a.style.display = "none";
     b.style.display = "none";
     c.style.display = "block";
     d.style.display = "none";
     e.style.display = "none";
     } else if(value=="d") {
     a.style.display = "none";
     b.style.display = "none";
     c.style.display = "none";
     d.style.display = "block";
     e.style.display = "none";
     } else if(value=="e") {
     a.style.display = "none";
     b.style.display = "none";
     c.style.display = "none";
     d.style.display = "none";
     e.style.display = "block";
     }
     } 
     } 
    </script>
    <fieldset style="width=100%">
    <legend><strong>Support-Ticket</strong></legend>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
     <tr></tr>
     <tr>
     <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="2">
     <tr>
     <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
     </table>
     <center>
     <form action="index.php?site=hosting_supportticket" method="post">
     <input type="hidden" name="action" value="send" />
     <table width="100%">
     <tr>
     <td width="29%">Dein <font class="text">Vorname:</font></td>
     <td colspan="2"><input name="vorname" class="form_off" id="vorname" style="width:100%;" onfocus="this.className='form_on'" onblur="this.className='form_off'" size="40" /></td>
     </tr>
     <tr>
     <td><font class="text">Dein Nachname:</font></td>
     <td colspan="2"><input name="nachname" class="form_off" id="nachname" style="width:100%;" onfocus="this.className='form_on'" onblur="this.className='form_off'" size="40" /></td>
     </tr>
     <tr>
     <td><font class="text">Deine E-Mail Adresse:</font></td>
     <td colspan="2"><input name="mail" class="form_off" id="mail" style="width:100%;" onfocus="this.className='form_on'" onblur="this.className='form_off'" size="40" /></td>
     </tr>
     <tr>
     <td>Portbereich ausw&auml;hlen: </td>
     <td width="14%">
     <select name="port" id="port" onchange="select_change(this.value);">
     <option>Bitte ausw&auml;hlen...</option>
     <option value="a">portbereich a</option>
     <option value="b">portbereich b</option>
     <option value="c">portbereich c</option>
     <option value="d">portbereich d</option>
     <option value="e">portbereich e</option>
     </select>
     </td>
     <td align="left" valign="top">
     <select name="porta" id="a" size="1">
     <option>1111</option>
     </select>
     <select name="portb" id="b" size="1">
     <option>2222</option>
     </select>
     <select name="portc" id="c" size="1">
     <option>3333</option>
     </select>
     <select name="portd" id="d" size="1">
     <option>4444</option>
     </select>
     <select name="porte" id="e" size="1">
     <option>5555</option>
     </select></td>
    
     </tr>
     <tr>
     <td><font class="text">Betreff:</font></td>
     <td colspan="2"><label for="select"></label>
     <select name="betreff" id="betreff">
     <option>Bitte ausw&auml;hlen...</option>
     <option>Allgemein</option>
     <option>Problem</option>
     <option>&Auml;nderung</option>
     <option>Slotanzahl</option>
     <option>Server abmelden</option>
     </select> </td>
    
     </tr>
     <tr>
     <td><font class="text">Nachricht:</font></td>
     <td colspan="2"><textarea name="nachricht" cols="50" rows="6" class="form_off" id="nachricht" style="width:100%;" onfocus="this.className='form_on'" onblur="this.className='form_off'"></textarea></td>
     </tr>
     <tr>
     <td>&nbsp;</td>
     <td colspan="2"><center>
     <input name="submit" type="submit" value="Abschicken" />
     <input name="reset" type="reset" value="Zur&uuml;cksetzen" />
     </center></td>
     </tr>
     </table>
     </form>
     </center></td>
     </tr>
     </table></td>
     </tr>
    </table>
    </fieldset> 
     
  4. Video Script

    Videos zum Themenbereich

    * gefundene Videos auf YouTube, anhand der Überschrift.