rechtstexte für onlineshop
Neuigkeiten
  • Die modified eCommerce Shopsoftware ist kostenlos, aber nicht umsonst.
    Spenden
  • Damit wir die modified eCommerce Shopsoftware auch zukünftig kostenlos anbieten können:
    Spenden
  • Thema: Geburtstagsliste "verschieben"???

    angeldust1979

    • Neu im Forum
    • Beiträge: 3
    Geburtstagsliste "verschieben"???
    am: 19. April 2014, 17:55:46
    Ich wusste nicht genau, wohin mit meiner Frage. Die Suche brachte mir nicht wirklich etwas...oder ich bin zu blöd zum Suchen  :oops:

    Ich habe erst heute entdeckt, dass sich ja ganz unten eine Geburtstagsliste im Adminbereich befindet!  :-O
    Für meine Bedürfnisse ist die an dieser Stelle aber sehr ungünstig. Ich hätte diese gerne im oberen Bereich, so dass ich gleich beim Einloggen sehen kann, welche Kunden Geburtstag haben. Da unten vergisst man das ja schnell wieder.

    Kann mir jemand sagen, wie ich das Teil nach oben bekommen kann und welche Dateien ich hierfür halt wie umändern muss?

    Danke schonmal für die Antwort und schöne Feiertage!  :-)

    Linkback: https://www.modified-shop.org/forum/index.php?topic=29997.0

    Gradler

    • Viel Schreiber
    • Beiträge: 2.083
    • Geschlecht:
    Re: Geburtstagsliste "verschieben"???
    Antwort #1 am: 19. April 2014, 18:28:34
    Da öffnest Du die Datei admin/start.php und schneidest Zeile 439 bis 480 aus:
    Code: PHP  [Auswählen]
    <!--  BOF START INFOS GEBURTSTAGSLISTE -->
              <table cellpadding="5" cellspacing="0" width="100%" id="table1" class="contentTable">
            <tr>
                    <td class="infoBoxHeading"><span style="margin-left: 3px"></span><font face="Verdana"><strong><?php echo TABLE_CAPTION_BIRTHDAYS; ?></strong></font></span></td>
            </tr>
    </table>
    <table cellpadding="5" cellspacing="0" style="font-family:Verdana; font-size:11px; border: 1px solid #b40076; border-top:0px;" width="100%" id="AutoNumber1">
            <tr>
                    <td width="100%" colspan="2" bgcolor="#F1F1F1" style="border-bottom: 1px solid #CCCCCC"><strong><?php echo TABLE_CELL_BIRTHDAYS_TODAY; ?>:</strong></td>
            </tr>
    <?php
    $ergebnis = xtc_db_query("select
                              concat(customers_firstname, ' ', customers_lastname) name,
                              customers_dob dob,
                              if(day(customers_dob) = day(current_date), true, false) today
                              from "
    . TABLE_CUSTOMERS . "
                              where month(customers_dob) = month(current_date) and
                              day(customers_dob) >= day(current_date)
                              order by customers_dob"
    );

    $this_month = array();
    while($row = xtc_db_fetch_array($ergebnis))
    {
       if ($row['today'] == 1) {
         echo '<tr><td width="68%" bgcolor="#F9F0F1">' . $row['name'] . '</td>';
         echo '<td width="32%" bgcolor="#F9F0F1">' . xtc_date_long($row['dob']) . '</td></tr>';
      }
      else
        $this_month[] = array('name' => $row['name'], 'dob' => $row['dob']);
    }
    ?>
      <tr>
         <td width="100%" colspan="2" style="border-top: 1px solid #CCCCCC; border-bottom: 1px solid #CCCCCC" bgcolor="#F1F1F1"><strong><?php echo TABLE_CELL_BIRTHDAYS_THIS_MONTH; ?>:</strong></td>
      </tr>
    <?php
    foreach($this_month as $row) {
      echo '<tr><td width="68%" bgcolor="#F9F0F1">' . $row['name'] . '</td>';
      echo '<td width="32%" bgcolor="#F9F0F1">' . xtc_date_long($row['dob']) . '</td></tr>';
    }
    ?>
    </table>
    <!--  EOF START INFOS GEBURTSTAGSLISTE -->
     

    und fügst sie vor Zeile 166 ein
    Code: PHP  [Auswählen]
                               <!--  BOF START INFOS STATISTIK -->
     

    angeldust1979

    • Neu im Forum
    • Beiträge: 3
    Re: Geburtstagsliste "verschieben"???
    Antwort #2 am: 19. April 2014, 19:41:54
     :thx: Das werd ich dann mal morgen ausprobieren!  :-)
    43 Antworten
    27672 Aufrufe
    22. Dezember 2009, 21:51:08 von guensi
    5 Antworten
    4650 Aufrufe
    20. September 2011, 20:24:52 von Tomcraft
               
    anything