Ankündigung

Einklappen
Keine Ankündigung bisher.

Brauche hilfe will $_POST['wmsg'] zu bootstrap modal ändern

Einklappen

Neue Werbung 2019

Einklappen
X
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • Brauche hilfe will $_POST['wmsg'] zu bootstrap modal ändern

    Hey Leute brauche hilfe möchte $_POST['wmsg'] zu bootstrap modal ändern habe schon par sachen probiert klappt aber nicht hoffe ihr könnt mir helfen

    PHP-Code:
    if(isset($_POST['wmsg']) OR isset($_POST['wmsg_x'])  OR isset($_POST['wmsg_y'])){
        if(LoadAccessStatus($mysqli, 'adminMembersMSG', 'a2', '') != true){ echo $GLOBALS['NoAccess']; exit(); }

        $CM = mysqli_fetch_array(mysqli_query($mysqli, "SELECT * FROM ".$GLOBALS['prefix']."member_messages WHERE id = '".mysqli_real_escape_string($mysqli, $_POST['wmsg'])."'")); ?>

        <div id="reply" class="popupoverlay">
            <div class="mypopup" style="width:50%">
                <h5 class="pcolor">
                    <i class='glyphicons glyphicons-option-vertical content_box_header_i2'></i>
                    <?php echo LoadLang('#MESSAGE#'); ?>
                </h5>

                <a class="close" href="">&times;</a>

                <div class="popupcontent">

                    <div style="text-align:center;">

                        <div class="width-12">
                            <div class="content_box11 b10"><?php echo LoadLang('#STATUS#'); ?></div>
                            <div class="content_box12">
                                <select name="active" class="myformstyle"/>
                                    <option value="1" <?php if(isset($CM['active']) AND $CM['active'] == '1'){ echo'selected="selected"'; } ?>/> <?php echo LoadLang('#ENABLED#'); ?></option>
                                    <option value="0" <?php if(isset($CM['active']) AND $CM['active'] == '0'){ echo'selected="selected"'; } ?>/> <?php echo LoadLang('#DISABLED#'); ?></option>
                                </select>
                            </div>
                        </div>

                        <div class="width-12">
                            <div class="content_box11 b10"><?php echo LoadLang('#VISIBLE#'); ?></div>
                            <div class="content_box12">
                                <select name="visible" class="myformstyle"/>
                                    <option value="0" <?php if(isset($CM['visible']) AND $CM['visible'] == '0'){ echo'selected="selected"'; } ?>/> <?php echo LoadLang('#ALLCUSTOMER#'); ?></option>
                                    <option value="1" <?php if(isset($CM['visible']) AND $CM['visible'] == '1'){ echo'selected="selected"'; } ?>/> <?php echo LoadLang('#CTCUSTOMER#'); ?></option>
                                    <option value="2" <?php if(isset($CM['visible']) AND $CM['visible'] == '2'){ echo'selected="selected"'; } ?>/> <?php echo LoadLang('#PPCUSTOMER#'); ?></option>
                                </select>
                            </div>
                        </div>

                        <div class="width-12">
                            <div class="content_box11 b10"><?php echo LoadLang('#ACCESS#'); ?></div>
                            <div class="content_box12">
                                <select name="access" class="myformstyle"/>
                                    <option value="0" <?php if(isset($CM['access']) AND $CM['access'] == '0'){ echo'selected="selected"'; } ?>/> <?php echo LoadLang('#STARTPAGE#'); ?></option>
                                    <option value="1" <?php if(isset($CM['access']) AND $CM['access'] == '1'){ echo'selected="selected"'; } ?>/> <?php echo "".LoadLang('#STARTPAGE#')." & ".LoadLang('#SUBPAGES#').""?></option>
                                    <option value="2" <?php if(isset($CM['access']) AND $CM['access'] == '2'){ echo'selected="selected"'; } ?>/> <?php echo "".LoadLang('#SUPPORT#')." ".LoadLang('#OVERVIEW#').""?></option>
                                    <option value="3" <?php if(isset($CM['access']) AND $CM['access'] == '3'){ echo'selected="selected"'; } ?>/> <?php echo "".LoadLang('#SUPPORT#')." & ".LoadLang('#SUBPAGES#').""?></option>
                                </select>
                            </div>
                        </div>

                        <div class="width-12 boxpadding0">
                            <div class="content_box11 b10"><?php echo LoadLang('#POS#'); ?></div>
                            <div class="content_box12">
                                <input type='text' name='pos' value='<?php if(isset($CM['pos']) AND $CM['pos'] >= '0'){ echo $CM['pos']; }else{ echo "1"; } ?>' class='myformstyle'/>
                            </div>
                        </div>

                        <div class="width-12">
                            <div class="content_box11 b10"><?php echo LoadLang('#COLOR#'); ?></div>
                            <div class="content_box12">
                                <select name="color" class="myformstyle"/>
                                    <option value="1" <?php if(isset($CM['color']) AND $CM['color'] == '1'){ echo'selected="selected"'; } ?>/> <?php echo LoadLang('#GREEN#'); ?></option>
                                    <option value="2" <?php if(isset($CM['color']) AND $CM['color'] == '2'){ echo'selected="selected"'; } ?>/> <?php echo LoadLang('#ORANGE#'); ?></option>
                                    <option value="3" <?php if(isset($CM['color']) AND $CM['color'] == '3'){ echo'selected="selected"'; } ?>/> <?php echo LoadLang('#RED#'); ?></option>
                                    <option value="4" <?php if(isset($CM['color']) AND $CM['color'] == '4'){ echo'selected="selected"'; } ?>/> <?php echo LoadLang('#BLUE#'); ?></option>
                                </select>
                            </div>
                        </div>

                        <div class="width-12">
                            <div class="content_box0">
                                <textarea name='message' rows='10' style='height:400px; width: 100% ;' id='editor1'><?php if(isset($_SESSION['newmessage'])){ echo $_SESSION['newmessage']; }else{ echo $CM['message']; } ?></textarea><br>
                            </div>
                        </div>

                        <div style="float:left; width:100%; padding-top:5px;">
                            <button name="msg" value="<?php echo $_POST['wmsg']; ?>" class="btn btn-success" style="width:100%"> <?php echo LoadLang('#SAVE#'); ?> </button>
                        </div>


                        <br><br>
                    </div>
                </div>
            </div>   
        </div>  

        <script language="javascript">document.location="#reply";</script>

        <?php

    }
    Bitte um Hilfe


  • #2
    Und wie wäre es damit, mal in die Doku zu schauen https://getbootstrap.com/docs/4.0/components/modal/ und zu versuchen das HTML wie dort beschrieben zu generieren?
    Wenn es dann nicht läuft, kannst du gerne mal deinen Versuch im richtigen Unter-Forum posten.

    Kommentar


    • #3
      habe ich versucht wenn ich auf dem button klicke wird die seite neue geladen aber wird nicht angezeigt

      <button type="submit" data-target="#wmsg" data-toggle="modal" class="btn btn-icon pli-pen-5 icon-lg add-tooltip" name="wmsg" value="'.$id.'" data-original-title="'.LoadLang('#EDIT#').'" data-container="body"</button>



      PHP-Code:
          $CM = mysqli_fetch_array(mysqli_query($mysqli, "SELECT * FROM ".$GLOBALS['prefix']."member_messages WHERE id = '".mysqli_real_escape_string($mysqli, $_POST['wmsg'])."'")); ?>

          <!--Bootstrap Modal without Animation-->
          <!--===================================================-->
          <div class="modal" id="wmsg" role="dialog" >
              <div class="modal-dialog" style="width: 1200px;">
                  <div class="modal-content">

                      <!--Modal header-->
                      <div class="modal-header">
                          <button type="button" class="close" data-dismiss="modal"><i class="pci-cross pci-circle"></i></button>
                          <h4 class="modal-title"><?php echo LoadLang('#MESSAGE#'); ?></h4>
                      </div>
                      <!--Modal body-->
                      <div class="modal-body">



                          <div class="row">
                              <div class="col-xs-12">
                                  <div class="col-xs-6">
                                      <div class="row">
                                          <div class="col-xs-3">
                                              <div class="form-group">
                                                  <label for="demo-oi-sccinput" class="control-label text-semibold"><?php echo LoadLang('#STATUS#'); ?></label>
                                                  <input type="hidden" name="active" value="0" />
                                                  <input type="checkbox" <?php if(isset($CM['active']) AND $CM['active'] == '1'){echo "checked='checked'";} ?> data-toggle="toggle" data-style="android" data-on="<?php echo LoadLang('#ENABLED#'); ?>" data-off="<?php echo LoadLang('#DISABLED#'); ?> " data-onstyle="success" data-offstyle="danger" data-width="100%" data-height="32.5167px" name="active"  value="1">
                                              </div>
                                          </div>
                                      </div>
                                      <div class="row">
                                          <div class="col-xs-12">
                                              <div class="form-group">
                                                  <label for="demo-oi-sccinput" class="control-label text-semibold"><?php echo LoadLang('#ACCESS#'); ?></label>
                                                  <select name="access" class="selectpicker" data-width="100%"/>
                                                      <option value="0" <?php if(isset($CM['access']) AND $CM['access'] == '0'){ echo'selected="selected"'; } ?>/> <?php echo LoadLang('#STARTPAGE#'); ?></option>
                                                      <option value="1" <?php if(isset($CM['access']) AND $CM['access'] == '1'){ echo'selected="selected"'; } ?>/> <?php echo "".LoadLang('#STARTPAGE#')." & ".LoadLang('#SUBPAGES#').""?></option>
                                                      <option value="2" <?php if(isset($CM['access']) AND $CM['access'] == '2'){ echo'selected="selected"'; } ?>/> <?php echo "".LoadLang('#SUPPORT#')." ".LoadLang('#OVERVIEW#').""?></option>
                                                      <option value="3" <?php if(isset($CM['access']) AND $CM['access'] == '3'){ echo'selected="selected"'; } ?>/> <?php echo "".LoadLang('#SUPPORT#')." & ".LoadLang('#SUBPAGES#').""?></option>
                                                  </select>                                        
                                              </div>
                                          </div>
                                      </div>
                                      <div class="row">
                                          <div class="col-xs-12">
                                              <div class="form-group">
                                                  <label for="demo-oi-sccinput" class="control-label text-semibold"><?php echo LoadLang('#POS#'); ?></label>
                                                  <input type='text' name='pos' value='<?php if(isset($CM['pos']) AND $CM['pos'] >= '0'){ echo $CM['pos']; }else{ echo "1"; } ?>' class='form-control'/>                                
                                              </div>
                                          </div>
                                      </div>
                                  </div>



                                  <div class="col-xs-6">
                                      <div class="row">
                                          <div class="col-xs-12">
                                              <div class="form-group">
                                                  <label for="demo-oi-sccinput" class="control-label text-semibold"><?php echo LoadLang('#VISIBLE#'); ?></label>
                                                  <select name="visible" class="selectpicker" data-width="100%"/>
                                                      <option value="0" <?php if(isset($CM['visible']) AND $CM['visible'] == '0'){ echo'selected="selected"'; } ?>/> <?php echo LoadLang('#ALLCUSTOMER#'); ?></option>
                                                      <option value="1" <?php if(isset($CM['visible']) AND $CM['visible'] == '1'){ echo'selected="selected"'; } ?>/> <?php echo LoadLang('#CTCUSTOMER#'); ?></option>
                                                      <option value="2" <?php if(isset($CM['visible']) AND $CM['visible'] == '2'){ echo'selected="selected"'; } ?>/> <?php echo LoadLang('#PPCUSTOMER#'); ?></option>
                                                  </select>                                        
                                              </div>
                                          </div>
                                      </div>

                                      <div class="row">
                                          <div class="col-xs-12">
                                              <div class="form-group">
                                                  <label for="demo-oi-sccinput" class="control-label text-semibold"><?php echo LoadLang('#COLOR#'); ?></label>
                                                  <select name="color" class="selectpicker" data-width="100%"/>
                                                      <option value="1" <?php if(isset($CM['color']) AND $CM['color'] == '1'){ echo'selected="selected"'; } ?>/> <?php echo LoadLang('#GREEN#'); ?></option>
                                                      <option value="2" <?php if(isset($CM['color']) AND $CM['color'] == '2'){ echo'selected="selected"'; } ?>/> <?php echo LoadLang('#ORANGE#'); ?></option>
                                                      <option value="3" <?php if(isset($CM['color']) AND $CM['color'] == '3'){ echo'selected="selected"'; } ?>/> <?php echo LoadLang('#RED#'); ?></option>
                                                      <option value="4" <?php if(isset($CM['color']) AND $CM['color'] == '4'){ echo'selected="selected"'; } ?>/> <?php echo LoadLang('#BLUE#'); ?></option>
                                                  </select>                                    
                                              </div>
                                          </div>
                                      </div>

                                  </div>
                                  <div class="col-xs-12">
                                  <textarea name='message' rows='10' style='height:400px; width: 100% ;' id='editor1'><?php if(isset($_SESSION['newmessage'])){ echo $_SESSION['newmessage']; }else{ echo $CM['message']; } ?></textarea><br>
                                  </div>
                              </div>
                          </div>    
                      </div>


                      <!--Modal footer-->
                      <div class="modal-footer">
                          <button data-dismiss="modal" class="btn btn-default" type="button">Close</button>
                          <button name="msg" value="<?php echo $_POST['wmsg']; ?>" class="btn btn-success"><?php echo LoadLang('#SAVE#'); ?></button>
                      </div>
                  </div>
              </div>
          </div>
      geht nicht

      Kommentar


      • #4
        Aus der Doku. Finde den Unterschied:

        HTML-Code:
          <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModal">   Launch demo modal </button>

        Kommentar


        • #5
          das problem ist das

          PHP-Code:
          if(isset($_POST['wmsg']) OR isset($_POST['wmsg_x'])  OR isset($_POST['wmsg_y'])){ 
          weiß nicht warum wenn ich den weg mache funktioniert garnix mehr

          Kommentar


          • #6
            habe ich versucht wenn ich auf dem button klicke wird die seite neue geladen aber wird nicht angezeigt
            HTML-Code:
            <button type="submit">
            Was ist falsch?

            Kommentar


            • #7
              luiluiboy014 Wenn es um HTML, CSS geht, bitte lasse jeglichen PHP Code weg. Der ist uninteressant. Es geht hier nur um das fertig im Browser generierte HTML, CSS. Von PHP bekommt der Browser nichts mit.

              MOD: Verschoben von PHP-Einsteiger
              Debugging: Finde DEINE Fehler selbst! | Gegen Probleme beim E-Mail-Versand | Sicheres Passwort-Hashing | Includes niemals ohne __DIR__
              PHP.de Wissenssammlung | Kein Support per PN

              Kommentar


              • #8
                bei
                <button type="submit"> geht der auf und geht wieder weg

                Kommentar


                • #9
                  Was logisch ist. Deshalb hats in #4 ein Beispiel aus der Doku wie es richitg aussehen sollte.

                  Kommentar


                  • #10
                    brauche noch hilfe komme nicht klar

                    Kommentar

                    Lädt...
                    X