Adding of network advert types partly finished, hard-coded table type fixed to dynamic
authorRoland Häder <roland@mxchange.org>
Mon, 23 Nov 2009 20:01:21 +0000 (20:01 +0000)
committerRoland Häder <roland@mxchange.org>
Mon, 23 Nov 2009 20:01:21 +0000 (20:01 +0000)
.gitattributes
inc/db/lib-mysql3.php
inc/extensions/ext-doubler.php
inc/extensions/ext-network.php
inc/extensions/ext-order.php
inc/language/network_de.php
inc/libs/network_functions.php
inc/modules/admin/what-list_network_types.php
inc/modules/admin/what-list_networks.php
templates/de/html/admin/admin_add_network.tpl
templates/de/html/admin/admin_add_network_type.tpl [new file with mode: 0644]

index 771eb88..35d50cd 100644 (file)
@@ -873,6 +873,7 @@ templates/de/html/admin/admin_add_cat.tpl -text
 templates/de/html/admin/admin_add_country.tpl -text
 templates/de/html/admin/admin_add_max.tpl -text
 templates/de/html/admin/admin_add_network.tpl -text
+templates/de/html/admin/admin_add_network_type.tpl -text
 templates/de/html/admin/admin_add_payment.tpl -text
 templates/de/html/admin/admin_add_points.tpl -text
 templates/de/html/admin/admin_add_points_all.tpl -text
index 14a4b6f..ab53b70 100644 (file)
@@ -74,8 +74,9 @@ function SQL_QUERY ($sqlString, $F, $L) {
        // Replace {PER}
        $sqlString = str_replace('{PER}', '%', $sqlString);
 
-       // Compile config out
-       $sqlString = FILTER_COMPILE_CONFIG($sqlString, true);
+       // Compile config entries out
+       $eval = "\$sqlString = \"".FILTER_COMPILE_CONFIG(escapeQuotes($sqlString))."\";";
+       eval($eval);
 
        // Starting time
        $querytimeBefore = microtime(true);
index 2559665..5e2416b 100644 (file)
@@ -52,18 +52,18 @@ switch (getExtensionMode()) {
                // Doubler table
                addExtensionSql("DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_doubler`");
                addExtensionSql("CREATE TABLE `{?_MYSQL_PREFIX?}_doubler` (
-id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
-userid BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
-refid BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
-points FLOAT(20,5) UNSIGNED NOT NULL DEFAULT 0.00000,
-remote_ip VARCHAR(15) NOT NULL DEFAULT '0.0.0.0',
-timemark VARCHAR(10) NOT NULL DEFAULT '',
-completed ENUM('Y','N') NOT NULL DEFAULT 'N',
-is_ref ENUM('Y','N') NOT NULL DEFAULT 'N',
-KEY (refid),
-KEY (userid),
-PRIMARY KEY (id)
-)TYPE=MYISAM");
+`id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
+`userid` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+`refid` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+`points` FLOAT(20,5) UNSIGNED NOT NULL DEFAULT 0.00000,
+`remote_ip` VARCHAR(15) NOT NULL DEFAULT '0.0.0.0',
+`timemark` VARCHAR(10) NOT NULL DEFAULT '',
+`completed` ENUM('Y','N') NOT NULL DEFAULT 'N',
+`is_ref` ENUM('Y','N') NOT NULL DEFAULT 'N',
+KEY (`refid`),
+KEY (`userid`),
+PRIMARY KEY (`id`)
+)TYPE={?_TABLE_TYPE?}");
 
                //
                // --- SETTINGS ---
index 2eabe99..c03a1ce 100644 (file)
@@ -68,17 +68,16 @@ PRIMARY KEY (`network_id`)
 ) TYPE={?_TABLE_TYPE?} COMMENT='Network data'");
 
                // Types the network provider is supporting (e.g. Forced-Banner and so on)
-               // @TODO network_type_name is an internal name and needs documentation
+               // @TODO network_type_handle is an internal name and needs documentation
                addExtensionSql('DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_network_types`');
                addExtensionSql("CREATE TABLE `{?_MYSQL_PREFIX?}_network_types` (
 `network_type_id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
 `network_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
-`network_type_name` VARCHAR(255) NOT NULL DEFAULT '',
-`network_type_title` VARCHAR(255) NOT NULL DEFAULT '',
+`network_type_handle` VARCHAR(255) NOT NULL DEFAULT '',
 `network_type_request_url` VARCHAR(255) NOT NULL DEFAULT '',
 `network_type_click_url` VARCHAR(255) NOT NULL DEFAULT '',
 `network_type_banner_url` VARCHAR(255) NOT NULL DEFAULT '',
-UNIQUE `provider_type` (`network_id`,`network_type_name`),
+UNIQUE `provider_type` (`network_id`,`network_type_handle`),
 PRIMARY KEY (`network_type_id`)
 ) TYPE={?_TABLE_TYPE?} COMMENT='Types provideable by networks. ONLY FILL OUT WITH PROPER idEA!'");
 
index 8c5b888..99e87fd 100644 (file)
@@ -307,7 +307,7 @@ nicht die vom Mitglied eingegebene. Resultat: Das Script beschwerte sich, der Us
 `timestamp` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
 PRIMARY KEY (`id`),
 INDEX (`pool_id`)
-) TYPE=MYISAM COMMENT='URL blacklist'");
+) TYPE={?_TABLE_TYPE?} COMMENT='URL blacklist'");
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Tabelle f&uuml;r URL-Sperrliste angelegt.");
index e360e4d..c8001e8 100644 (file)
@@ -50,11 +50,13 @@ addMessages(array(
        'ADMIN_NETWORK_NOTHING_FOUND' => "Es wurden keine Daten zum Editieren oder L&ouml;schen gefunden.",
        'ADMIN_NETWORK_NOTHING_CHANGED' => "Es wurden keine &Auml;nderungen an den allgemeinen Daten ausgef&uuml;hrt.",
        'ADMIN_NETWORK_NOTHING_REMOVED' => "Es wurden keine allgemeinen Daten gel&ouml;scht.",
+       'ADMIN_NETWORK_TYPES_404' => "Es wurden keine Werbearten zum Werbenetzwerk <span class=\"data\">%s</span> gefunden.",
        // - Form titles
        'ADMIN_NETWORK_ADD_TITLE' => "Neues Werbenetzwerk hinzuf&uuml;gen - Allgemeine Daten",
        'ADMIN_NETWORK_EDIT_TITLE' => "Werbenetzwerk editieren - Allgemeine Daten",
        'ADMIN_NETWORK_DELETE_TITLE' => "Werbenetzwerk l&ouml;schen - Allgemeine Daten",
        'ADMIN_NETWORK_SELECT_TITLE' => "Werbenetzwerk ausw&auml;hlen",
+       'ADMIN_NETWORK_TYPE_ADD_TITLE' => "Werbenetzwerk verwalten - Neue Werbeart hinzuf&uuml;gen",
        // - Link titles
        'ADMIN_NETWORK_LIST_TYPES_LINK_TITLE' => "Weiter zu den Werbearten",
        'ADMIN_NETWORK_LIST_PARAMS_LINK_TITLE' => "Weiter zu den Abfrageparametern",
@@ -67,9 +69,35 @@ addMessages(array(
        'ADMIN_NETWORK_DELETE' => "L&ouml;schen",
        'ADMIN_NETWORK_REMOVE' => "Daten entfernen",
        'ADMIN_NETWORK_CHOOSE' => "Werbenetzwerk ausw&auml;hlen",
+       'ADMIN_NETWORK_TYPE_ADD' => "Werbeart hinzuf&uuml;gen",
        // - Success nots
        'ADMIN_NETWORK_UPDATED' => "Es wurden <span class=\"data\">%s</span> Eintr&auml;ge in den allgemeinen Daten aktualisiert.",
        'ADMIN_NETWORK_REMOVED' => "Es wurden <span class=\"data\">%s</span> Eintr&auml;ge aus den allgemeinen Dateen gel&ouml;scht.",
+       // - Form notes
+       'ADMIN_NETWORK_ADD_NOTE' => "Mehr Datenschutz bei POST-Abfragen bedeutet, dass die von den Internetanbietern betriebenen Caches (Proxy) die POST-Daten nicht mitloggen (so eine Art Kodex). Der Zeichensatz ist meistens ISO-8859-1 oder WINDOWS-1252.",
+       'ADMIN_NETWORK_LIST_NOTE' => "Seien Sie mit dem L&ouml;schen und Editieren von Allgemeine Daten sehr vorsichtig. Sie sollten hierzu R&uuml;cksprache <a href=\"http://forum.mxchange.org/forum-43.html\" target=\"_blank\" title=\"Direktlink zum Forum\">im Forum</a> halten.",
+       'ADMIN_NETWORK_TYPE_ADD_NOTE' => "F&uuml;gen Sie hier weitere Werbearten dem ausgw&auml;hlten Werbenetzwerk hinzu. Die Abfrage-, Klick- und Banner-URL m&uuml;ssen dabei Platzhalter enthalten, die Sie der Dokumentation und <a href=\"http://forum.mxchange.org/forum-43.html\" rel=\"external\" title=\"Direkt-Link zur Forumkategorie Werbenetzwerke\" target=\"_blank\">dem Forum</a> entnehmen k&ouml;nnen.",
+       // - Advertise types
+       'ADMIN_NETWORK_TYPE_BANNERCLICK' => "Banner-Klick",
+       'ADMIN_NETWORK_TYPE_BANNERVIEW' => "Banner-View",
+       'ADMIN_NETWORK_TYPE_BANNERCLICK_VIEW' => "Banner-Klick/-View",
+       'ADMIN_NETWORK_TYPE_SURFBARCLICK' => "Surfbar-Klick",
+       'ADMIN_NETWORK_TYPE_SURFBARVIEW' => "Surfbar-View",
+       'ADMIN_NETWORK_TYPE_SURFBARCLICK_VIEW' => "Surfbar-Klick/-View",
+       'ADMIN_NETWORK_TYPE_FORCEDBANNER' => "Forced-Banner",
+       'ADMIN_NETWORK_TYPE_TEXTLINKCLICK' => "Textlink-Klick",
+       'ADMIN_NETWORK_TYPE_TEXTLINKVIEW' => "Textlink-View",
+       'ADMIN_NETWORK_TYPE_TEXTLINKCLICK_VIEW' => "Textlink-Klick/-View",
+       'ADMIN_NETWORK_TYPE_LAYERCLICK' => "Layer-Klick",
+       'ADMIN_NETWORK_TYPE_LAYERVIEW' => "Layer-View",
+       'ADMIN_NETWORK_TYPE_LAYERCLICK_VIEW' => "Layer-Klick/-View",
+       'ADMIN_NETWORK_TYPE_POPUP' => "PopUp",
+       'ADMIN_NETWORK_TYPE_POPDOWN' => "PopDown",
+       'ADMIN_NETWORK_TYPE_TEXTMAIL' => "Textmail",
+       'ADMIN_NETWORK_TYPE_HTMLMAIL' => "HTML-Mail",
+       'ADMIN_NETWORK_TYPE_LEAD' => "Lead",
+       'ADMIN_NETWORK_TYPE_SALE' => "Sale",
+       'ADMIN_NETWORK_TYPE_PAYPERACTIVE' => "PayPerAktiv",
        // - Sponsor networks
        'ADMIN_NETWORK_NONE_SUPPORTED' => "Es sind noch keine Werbenetzwerke eingerichtet.",
        'ADMIN_NETWORK_SHORT_NAME' => "Kurzname",
@@ -81,14 +109,17 @@ addMessages(array(
        'ADMIN_NETWORK_REQUEST_TYPE_GET' => "GET (meistens richtig)",
        'ADMIN_NETWORK_REQUEST_TYPE_POST' => "POST (mehr Datenschutz)",
        'ADMIN_NETWORK_CHARSET' => "Zeichensatz",
-       'ADMIN_NETWORK_ADD_NOTE' => "Mehr Datenschutz bei POST-Abfragen bedeutet, dass die von den Internetanbietern betriebenen Caches (Proxy) die POST-Daten nicht mitloggen (so eine Art Kodex). Der Zeichensatz ist meistens ISO-8859-1 oder WINDOWS-1252.",
-       'ADMIN_NETWORK_LIST_NOTE' => "Seien Sie mit dem L&ouml;schen und Editieren von Allgemeine Daten sehr vorsichtig. Sie sollten hierzu R&uuml;cksprache <a href=\"http://forum.mxchange.org/forum-43.html\" target=\"_blank\" title=\"Direktlink zum Forum\">im Forum</a> halten.",
        'ADMIN_NETWORK_ALREADY_ADDED' => "Ein Werbenetzwerk mit dem Kurznamen <span class=\"data\">%s</span> existiert bereits.",
        'ADMIN_NETWORK_DATA_NOT_ADDED' => "Das Werbenetzwerk mit dem Kurznamen <span class=\"data\">%s</span> wurde nicht hinzugef&uuml;gt.",
        'ADMIN_NETWORK_ADDED_TITLE' => "Allgemeine Daten hinzugef&uuml;gt.",
        'ADMIN_NETWORK_SEPERATOR' => "Trennzeichen",
        'ADMIN_NETWORK_DATA_SEPERATOR2' => "Daten",
        'ADMIN_NETWORK_ROW_SEPERATOR2' => "Zeilen",
+       // - Advertise type
+       'ADMIN_NETWORK_TYPE_HANDLE' => "Werbeart-Typ",
+       'ADMIN_NETWORK_TYPE_REQUEST_URL' => "Basisabfrage-URL der Werbeart",
+       'ADMIN_NETWORK_TYPE_CLICK_URL' => "Klick-URL der Werbeart",
+       'ADMIN_NETWORK_TYPE_BANNER_URL' => "Banner-URL der Werbeart",
 ));
 
 // [EOF]
index dfa1511..4953a1d 100644 (file)
@@ -41,6 +41,21 @@ if (!defined('__SECURITY')) {
        die();
 } // END - if
 
+// Handle a (maybe) sent form here
+function doNetworkHandleForm () {
+       // Was the form sent?
+       if ((isFormSent()) || (isPostRequestElementSet('edit')) || (isPostRequestElementSet('del')) || (isPostRequestElementSet('change')) || (isPostRequestElementSet('remove'))) {
+               // Do we have a 'do'?
+               if (isGetRequestElementSet('do')) {
+                       // Process the request
+                       doAdminNetworkProcessForm();
+               } else {
+                       // No 'do' found
+                       loadTemplate('admin_settings_saved', false, getMessage('ADMIN_NETWORK_DO_404'));
+               }
+       } // END - if
+}
+
 // Processes an admin form
 function doAdminNetworkProcessForm () {
        // Form really sent?
@@ -60,7 +75,7 @@ function doAdminNetworkProcessForm () {
        // Is the function valid?
        if (!function_exists($functionName)) {
                // Invalid function name
-               debug_report_bug('Invalid do ' . getRequestElement('do') . ', function ' . $functionName .' does not exist.');
+               debug_report_bug('Invalid do ' . getRequestElement('do') . ', function ' . $functionName .' does not exist.', false);
        } // END - if
 
        // Call-back the method handling our request
index 4e856c6..41daad9 100644 (file)
@@ -44,11 +44,50 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 // Add description as navigation point
 addMenuDescription('admin', __FILE__);
 
+// Handle form here
+doNetworkHandleForm();
+
 // Do we have a network selected?
 if (isGetRequestElementSet('network')) {
        // Get its data for template
        $networkData = getNetworkDataById(getRequestElement('network'));
-       print('<pre>'.print_r($networkData, true).'</pre>');
+
+       // Load all advert types for given network
+       $result = SQL_QUERY_ESC("SELECT
+       `network_type_id`, `network_type_handle`, `network_type_request_url`, `network_type_click_url`, `network_type_banner_url`
+FROM
+       `{?_MYSQL_PREFIX?}_network_types`
+WHERE
+       `network_id`=%s
+ORDER BY
+       `network_type_id` ASC",
+               array(getRequestElement('network')), __FILE__, __LINE__);
+
+       // Do we have entries?
+       if (SQL_NUMROWS($result) > 0) {
+               // List all entries
+               $OUT = ''; $SW = 2;
+               while ($row = SQL_FETCHARRAY($result)) {
+                       // Add/translate some data
+                       $row['sw'] = $SW;
+
+                       // Add row template and switch color
+                       $OUT .= loadTemplate('admin_list_network_types_row', true, $row);
+                       $SW = 3 - $SW;
+               } // END - while
+
+               // Load main template
+               loadTemplate('admin_list_network_types', false, $OUT);
+       } else {
+               // No entries found
+               loadTemplate('admin_settings_saved', false, sprintf(getMessage('ADMIN_NETWORK_TYPES_404'), $networkData['network_title']));
+       }
+
+       // Free result
+       SQL_FREERESULT($result);
+
+       // Add form for adding new types
+       loadTemplate('admin_add_network_type', false, $networkData);
 } else {
        // Generate network list for this script
        outputHtml(generateAdminNetworkList());
index 6b33104..83f30c8 100644 (file)
@@ -47,17 +47,8 @@ addMenuDescription('admin', __FILE__);
 // By default we should display list/add new forms
 $GLOBALS['network_display'] = true;
 
-// Was the form sent?
-if ((isFormSent()) || (isPostRequestElementSet('edit')) || (isPostRequestElementSet('del')) || (isPostRequestElementSet('change')) || (isPostRequestElementSet('remove'))) {
-       // Do we have a 'do'?
-       if (isGetRequestElementSet('do')) {
-               // Process the request
-               doAdminNetworkProcessForm();
-       } else {
-               // No 'do' found
-               loadTemplate('admin_settings_saved', false, getMessage('ADMIN_NETWORK_DO_404'));
-       }
-} // END - if
+// Handle form here
+doNetworkHandleForm();
 
 // Display forms?
 if ($GLOBALS['network_display'] === false) {
index 7229fe8..fcb53e0 100644 (file)
@@ -7,54 +7,36 @@
                </td>
        </tr>
        <tr>
-               <td class="seperator" colspan="2" height="7">&nbsp;</td>
-       </tr>
-       <tr>
                <td align="right" width="200">{--ADMIN_NETWORK_SHORT_NAME--}:</td>
                <td>
                        <input type="text" name="network_short_name" class="admin_normal" size="10" maxlength="50" />
                </td>
        </tr>
        <tr>
-               <td class="seperator" colspan="2" height="7">&nbsp;</td>
-       </tr>
-       <tr>
                <td align="right" width="200">{--ADMIN_NETWORK_TITLE--}:</td>
                <td>
                        <input type="text" name="network_title" class="admin_normal" size="20" maxlength="255" />
                </td>
        </tr>
        <tr>
-               <td class="seperator" colspan="2" height="7">&nbsp;</td>
-       </tr>
-       <tr>
                <td align="right" width="200">{--ADMIN_NETWORK_REFLINK--}:</td>
                <td>
                        <input type="text" name="network_reflink" class="admin_normal" size="30" maxlength="255" />
                </td>
        </tr>
        <tr>
-               <td class="seperator" colspan="2" height="7">&nbsp;</td>
-       </tr>
-       <tr>
                <td align="right" width="200">{--ADMIN_NETWORK_DATA_SEPERATOR--}:</td>
                <td>
                        <input type="text" name="network_data_seperator" class="admin_normal" size="4" maxlength="4" />
                </td>
        </tr>
        <tr>
-               <td class="seperator" colspan="2" height="7">&nbsp;</td>
-       </tr>
-       <tr>
                <td align="right" width="200">{--ADMIN_NETWORK_ROW_SEPERATOR--}:</td>
                <td>
                        <input type="text" name="network_row_seperator" class="admin_normal" size="4" maxlength="4" />
                </td>
        </tr>
        <tr>
-               <td class="seperator" colspan="2" height="7">&nbsp;</td>
-       </tr>
-       <tr>
                <td align="right" width="200">{--ADMIN_NETWORK_REQUEST_TYPE--}:</td>
                <td>
                        <select class="admin_select" name="network_request_type" size="1">
                </td>
        </tr>
        <tr>
-               <td class="seperator" colspan="2" height="7">&nbsp;</td>
-       </tr>
-       <tr>
-               <td align="right" width="200">{--ADMIN_NETWORK_CHARSET--}:</td>
-               <td>
+               <td class="bottom" align="right" width="200">{--ADMIN_NETWORK_CHARSET--}:</td>
+               <td class="bottom">
                        <input type="text" name="network_charset" class="admin_normal" size="15" maxlength="20" />
                </td>
        </tr>
        <tr>
-               <td class="seperator bottom" colspan="2" height="7">&nbsp;</td>
-       </tr>
-       <tr>
                <td class="admin_footer" colspan="2" align="center">
                        <input type="reset" class="admin_reset" value="{--CLEAR_FORM--}" />
                        <input type="submit" name="ok" class="admin_submit" value="{--ADMIN_NETWORK_ADD--}" />
diff --git a/templates/de/html/admin/admin_add_network_type.tpl b/templates/de/html/admin/admin_add_network_type.tpl
new file mode 100644 (file)
index 0000000..ec946ff
--- /dev/null
@@ -0,0 +1,61 @@
+<div align="center">
+<form accept-charset="utf-8" action="{%url=modules.php?module=admin&amp;what=list_network_types&amp;do=addnetworktype&amp;network=$content[network_id]%}" method="post">
+<table border="0" cellspacing="0" cellpadding="0" class="admin_table dashed">
+       <tr>
+               <td class="admin_title bottom" colspan="2" align="center">
+                       <strong>{--ADMIN_NETWORK_TYPE_ADD_TITLE--}</strong>
+                       <div class="note">
+                               (<a href="$content[network_reflink]" title="$content[network_title]" target="_blank">$content[network_title]</a>)
+                       </div>
+               </td>
+       </tr>
+       <tr>
+               <td align="right" width="250">{--ADMIN_NETWORK_TYPE_HANDLE--}:</td>
+               <td>
+                       <select name="network_type_handle" class="admin_select" size="1">
+                               <option value="banner">{--ADMIN_NETWORK_TYPE_BANNERCLICK_VIEW--}</option>
+                               <option value="surfbar">{--ADMIN_NETWORK_TYPE_SURFBARCLICK_VIEW--}</option>
+                               <option value="foredbanner">{--ADMIN_NETWORK_TYPE_FORCEDBANNER--}</option>
+                               <option value="textlink">{--ADMIN_NETWORK_TYPE_TEXTLINKCLICK_VIEW--}</option>
+                               <option value="layer">{--ADMIN_NETWORK_TYPE_LAYERCLICK_VIEW--}</option>
+                               <option value="popup">{--ADMIN_NETWORK_TYPE_POPUP--}</option>
+                               <option value="popdown">{--ADMIN_NETWORK_TYPE_POPDOWN--}</option>
+                               <option value="textmail">{--ADMIN_NETWORK_TYPE_TEXTMAIL--}</option>
+                               <option value="htmlmail">{--ADMIN_NETWORK_TYPE_HTMLMAIL--}</option>
+                               <option value="lead">{--ADMIN_NETWORK_TYPE_LEAD--}</option>
+                               <option value="sale">{--ADMIN_NETWORK_TYPE_SALE--}</option>
+                               <option value="payperactive">{--ADMIN_NETWORK_TYPE_PAYPERACTIVE--}</option>
+                       </select>
+               </td>
+       </tr>
+       <tr>
+               <td align="right" width="250">{--ADMIN_NETWORK_TYPE_REQUEST_URL--}:</td>
+               <td>
+                       <input type="text" name="network_type_request_url" class="admin_normal" size="30" maxlength="255" />
+               </td>
+       </tr>
+       <tr>
+               <td align="right" width="250">{--ADMIN_NETWORK_TYPE_CLICK_URL--}:</td>
+               <td>
+                       <input type="text" name="network_type_click_url" class="admin_normal" size="20" maxlength="255" />
+               </td>
+       </tr>
+       <tr>
+               <td class="bottom" align="right" width="250">{--ADMIN_NETWORK_TYPE_BANNER_URL--}:</td>
+               <td class="bottom">
+                       <input type="text" name="network_type_banner_url" class="admin_normal" size="20" maxlength="255" />
+               </td>
+       </tr>
+       <tr>
+               <td class="admin_footer" colspan="2" align="center">
+                       <input type="reset" class="admin_reset" value="{--CLEAR_FORM--}" />
+                       <input type="submit" name="ok" class="admin_submit" value="{--ADMIN_NETWORK_TYPE_ADD--}" />
+               </td>
+       </tr>
+</table>
+</form>
+</div>
+
+<div class="admin_note">
+       {--ADMIN_NETWORK_TYPE_ADD_NOTE--}
+</div>