if ($appendid == $k) {
                echo "<option value='" . $k . "' selected>" . $v . "</option>";
            } else {
                echo "<option value='" . $k . "'>" . $v . "</option>";
            }
        }
        echo "</select></td></tr>";
        // Line
        echo "</table></td></tr><tr><td height='10' colspan='3'>&nbsp;</td></tr>";
        echo "<tr height='1'><td colspan='3' bgcolor='#888888'><img src='images/break-l.gif' height='1' width='100%'></td></tr>";
        echo "<tr><td height='10' colspan='3'>&nbsp;</td></tr>";
        // It shouldn't be necessary to load zone attributes from db
        $extra = array('what' => '', 'delivery' => $appenddelivery, 'zoneadvanced' => true);
        // Set codetype
        $codetype = $appenddelivery == 'popup' ? 'popup' : 'adlayer';
        phpAds_placeInvocationForm($extra, true);
        echo "</td></tr>";
    } else {
        echo "<tr><td width='30'>&nbsp;</td><td width='200' valign='top'>" . $strZoneAppend . "</td><td>";
        echo "<input type='hidden' name='appendsave' value='1'>";
        echo "<textarea name='append' rows='6' cols='55' style='width: 100%;' tabindex='" . $tabindex++ . "'>" . htmlspecialchars($zone['append']) . "</textarea>";
        echo "</td></tr>";
    }
    echo "<tr><td height='10' colspan='3'>&nbsp;</td></tr>";
    echo "<tr height='1'><td colspan='3' bgcolor='#888888'><img src='images/break.gif' height='1' width='100%'></td></tr>";
    echo "</table>";
} elseif ($zone['delivery'] == phpAds_ZoneText) {
    echo "<br><br><br>";
    echo "<table border='0' width='100%' cellpadding='0' cellspacing='0'>";
    echo "<tr><td height='25' colspan='3'><b>" . $strAppendSettings . "</b></td></tr>";
    echo "<tr height='1'><td colspan='3' bgcolor='#888888'><img src='images/break.gif' height='1' width='100%'></td></tr>";
/* phpAdsNew 2                                                          */
/* ===========                                                          */
/*                                                                      */
/* Copyright (c) 2000-2002 by the phpAdsNew developers                  */
/* For more information visit: http://www.phpadsnew.com                 */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/
// Include required files
require "config.php";
require "lib-statistics.inc.php";
require "lib-invocation.inc.php";
require "lib-zones.inc.php";
// Security check
phpAds_checkAccess(phpAds_Admin + phpAds_Agency);
/*********************************************************/
/* HTML framework                                        */
/*********************************************************/
phpAds_PageHeader("4.3");
phpAds_ShowSections(array("4.1", "4.2", "4.3"));
/*********************************************************/
/* Main code                                             */
/*********************************************************/
$tabindex = 1;
phpAds_placeInvocationForm();
/*********************************************************/
/* HTML framework                                        */
/*********************************************************/
phpAds_PageFooter();