Anleitung Zweite Buttonzeile für Artikelbearbeitung

Thema wurde von HolgerNils (xycons.de), 19. April 2013 erstellt.

  1. HolgerNils (xycons.de)

    HolgerNils (xycons.de) G-WARD 2013/2014

    Registriert seit:
    29. Oktober 2011
    Beiträge:
    1.982
    Danke erhalten:
    467
    Danke vergeben:
    369
    Aus gegebenem Anlass, weil jüngst requested, hier eine Möglichkeit dem Artikelscreen eine zweite Buttonzeile am oberen Ende hinzuzufügen.

    buttons_oben.PNG

    Man suche in /admin/includes/modules/new_product.php folgenden Bereich (OriginalDatei 2.0.12.2: Zeile 519)
    Code:
    ...
    <table width="100%"  border="0">
      <tr>
        <td>
            <?php
            if (($_GET['pID'])) {
                 echo "<a class='button' href='" .   xtc_href_link('properties_combis.php', 'products_id=' . $_GET['pID'] .   '&cPath=' . $_GET['cPath'] . '&action=edit_category') . "'>"  .  BUTTON_PROPERTIES . "</a>";
                echo "<br />";
            }
    ...
            ?>
    
    und packe folgendes dahin:
    Code:
    ...
    <table width="100%"  border="0">
      <tr>
    <!-- Mo'ButtonsPlz (Start) -->
            <td class="main" align="right">
            <?php
            if (($_GET['pID'])) {
                echo '';
    //            echo "<a class='button' href='" .  xtc_href_link('properties_combis.php', 'products_id=' . $_GET['pID'] .  '&cPath=' . $_GET['cPath'] . '&action=edit_category') . "'>" .  BUTTON_PROPERTIES . "</a>";
                echo "<a class='button' style='float:left' href='" .  xtc_href_link('properties_combis.php', 'products_id=' . $_GET['pID'] .  '&cPath=' . $_GET['cPath'] . '&action=edit_category') . "'>" .  BUTTON_PROPERTIES . "</a>";            
                echo '<input type="submit" class="button float_right"  name="save" value="'.BUTTON_SAVE.'" onClick="return  confirm('.SAVE_ENTRY.')">';
                echo '<input type="submit" class="button float_right"  name="gm_update" value="'.BUTTON_UPDATE.'" onClick="return  confirm('.SAVE_ENTRY.')">';
                echo '<a class="button float_right" href="'  .xtc_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' .  $_GET['pID']) . '">' . BUTTON_CANCEL . '</a>';
                echo '</td>';
    // Mo'ButtonsPlz (Ende)            
            }
            ?>
    ...
    
    ...und die Scrollerei hat ein sicheres Ende!