]> git.mxchange.org Git - mailer.git/commitdiff
Listing of network type handlers finished
authorRoland Häder <roland@mxchange.org>
Thu, 26 Nov 2009 17:42:54 +0000 (17:42 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 26 Nov 2009 17:42:54 +0000 (17:42 +0000)
.gitattributes
inc/language/network_de.php
inc/modules/admin/what-list_network_types.php
templates/de/html/admin/admin_add_network_type.tpl
templates/de/html/admin/admin_list_network_types.tpl [new file with mode: 0644]
templates/de/html/admin/admin_list_network_types_row.tpl [new file with mode: 0644]

index 0e1c2fdb81da8bf284cd93b760ea95c8a7ebd42d..064b372f13f62e9d7f40a287b5b7351d8965039c 100644 (file)
@@ -1076,6 +1076,8 @@ templates/de/html/admin/admin_list_links_problem.tpl -text
 templates/de/html/admin/admin_list_links_row.tpl -text
 templates/de/html/admin/admin_list_mods.tpl -text
 templates/de/html/admin/admin_list_mods_row.tpl -text
+templates/de/html/admin/admin_list_network_types.tpl -text
+templates/de/html/admin/admin_list_network_types_row.tpl -text
 templates/de/html/admin/admin_list_networks.tpl -text
 templates/de/html/admin/admin_list_networks_row.tpl -text
 templates/de/html/admin/admin_list_notify_emails.tpl -text
index 1891b50a2b8b2b8ba1c7ed97765784470ec38391..00572c1b4426ff2a62dd6e5c0e901a8c27f7c648 100644 (file)
@@ -68,6 +68,7 @@ addMessages(array(
        'ADMIN_NETWORK_LIST_CODES_LINK_TITLE' => "Weiter zu den Fehlercodes",
        'ADMIN_NETWORK_ADDED_TITLE' => "Allgemeine Werbenetzwerkdaten hinzugef&uuml;gt.",
        'ADMIN_NETWORK_TYPE_ADDED_TITLE' => "Werbeart-Handler hinzugef&uuml;gt.",
+       'ADMIN_NETWORK_TYPE_LIST_TITLE' => "Werbeart-Handler auflisten und verwalten",
        // - Buttons
        'ADMIN_NETWORK_ADD' => "Allgemeine Daten anlegen",
        'ADMIN_NETWORK_EDIT' => "Editieren",
@@ -76,6 +77,8 @@ addMessages(array(
        'ADMIN_NETWORK_REMOVE' => "Daten entfernen",
        'ADMIN_NETWORK_CHOOSE' => "Werbenetzwerk ausw&auml;hlen",
        'ADMIN_NETWORK_TYPE_ADD' => "Werbeart hinzuf&uuml;gen",
+       'ADMIN_NETWORK_TYPE_EDIT' => "Editieren",
+       'ADMIN_NETWORK_TYPE_DELETE' => "L&ouml;schen",
        // - 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.",
@@ -83,6 +86,7 @@ addMessages(array(
        '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.",
+       'ADMIN_NETWORK_TYPE_LIST_NOTE' => "Seien Sie mit dem L&ouml;schen und Editieren von Werbeart-Handlern 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. Dokumentation zu den Platzhaltern (&#37;FOO&#37;, &#37;BAR&#37; usw.) finden Sie in der Dokumentation DOCs/de/network/README.txt.",
        // - Advertise types
        'ADMIN_NETWORK_TYPE_BANNERCLICK' => "Banner-Klick",
        'ADMIN_NETWORK_TYPE_BANNERVIEW' => "Banner-View",
index 1ac9a764aaaac87d0a94be7227680e70f1633107..14b05c6c6d90833a23801d25bbf03c4da7f90d44 100644 (file)
@@ -76,14 +76,23 @@ ORDER BY
                while ($row = SQL_FETCHARRAY($result)) {
                        // Add/translate some data
                        $row['sw'] = $SW;
+                       if (trim($row['network_type_banner_url']) == '') $row['network_type_banner_url'] = '---';
 
                        // Add row template and switch color
                        $OUT .= loadTemplate('admin_list_network_types_row', true, $row);
                        $SW = 3 - $SW;
                } // END - while
 
+               // Prepare data for template
+               $content = array(
+                       'rows'            => $OUT,
+                       'network_id'      => getRequestElement('network_id'),
+                       'network_title'   => $networkData['network_title'],
+                       'network_reflink' => $networkData['network_reflink'],
+               );
+
                // Load main template
-               loadTemplate('admin_list_network_types', false, $OUT);
+               loadTemplate('admin_list_network_types', false, $content);
        } else {
                // No entries found
                loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_NETWORK_TYPES_404', $networkData['network_title']));
index 8d6d54be1a29ac669d03cf01af3924c70288eae6..17606203c07c0256441752f4b9f0ef7c755cc178 100644 (file)
@@ -4,7 +4,7 @@
        <tr>
                <td class="admin_title bottom" colspan="2" align="center">
                        <strong>{--ADMIN_NETWORK_TYPE_ADD_TITLE--}</strong>
-                       <div class="note">
+                       <div class="tiny">
                                (<a href="$content[network_reflink]" title="$content[network_title]" target="_blank">$content[network_title]</a>)
                        </div>
                </td>
diff --git a/templates/de/html/admin/admin_list_network_types.tpl b/templates/de/html/admin/admin_list_network_types.tpl
new file mode 100644 (file)
index 0000000..410fb23
--- /dev/null
@@ -0,0 +1,35 @@
+<div align="center">
+<form accept-charset="utf-8" action="{%url=modules.php?module=admin&amp;what=list_network_types&amp;&amp;network=$content[network_id]&amp;do=handlenetworktype%}" method="post">
+<table border="0" cellspacing="0" cellpadding="0" class="admin_table dashed">
+       <tr>
+               <td colspan="5" align="center" class="admin_title bottom">
+                       <div>
+                               <strong>{--ADMIN_NETWORK_TYPE_LIST_TITLE--}</strong>
+                       </div>
+                       <div class="tiny">
+                               (<a href="$content[network_reflink]" title="$content[network_title]" target="_blank">$content[network_title]</a>)
+                       </div>
+               </td>
+       </tr>
+       <tr>
+               <td align="center" class="header_column bottom right" height="25"><strong>{--ID_SELECT--}</strong></td>
+               <td align="center" class="header_column bottom right"><strong>{--ADMIN_NETWORK_TYPE_HANDLE--}</strong></td>
+               <td align="center" class="header_column bottom right"><strong>{--ADMIN_NETWORK_TYPE_API_URL--}</strong></td>
+               <td align="center" class="header_column bottom right"><strong>{--ADMIN_NETWORK_TYPE_CLICK_URL--}</strong></td>
+               <td align="center" class="header_column bottom"><strong>{--ADMIN_NETWORK_TYPE_BANNER_URL--}</strong></td>
+       </tr>
+       $content[rows]
+       <tr>
+               <td colspan="5" class="admin_footer">
+                       <input type="reset" class="admin_reset" value="{--UNDO_SELECTIONS--}" />
+                       <input type="submit" name="edit" class="admin_submit" value="{--ADMIN_NETWORK_TYPE_EDIT--}" />
+                       <input type="submit" name="del" class="admin_delete" value="{--ADMIN_NETWORK_TYPE_DELETE--}" />
+               </td>
+       </tr>
+</table>
+</form>
+
+<div class="admin_note">
+       {--ADMIN_NETWORK_TYPE_LIST_NOTE--}
+</div>
+</div>
diff --git a/templates/de/html/admin/admin_list_network_types_row.tpl b/templates/de/html/admin/admin_list_network_types_row.tpl
new file mode 100644 (file)
index 0000000..6228b21
--- /dev/null
@@ -0,0 +1,17 @@
+<tr>
+       <td class="switch_sw$content[sw] bottom right" align="center">
+               <input type="checkbox" title="{--ID_SELECT--} $content[network_type_id]" class="admin_normal" name="sel[$content[network_type_id]]" value="1" />
+       </td>
+       <td class="switch_sw$content[sw] bottom right" align="center">
+               $content[network_type_handle]
+       </td>
+       <td class="switch_sw$content[sw] bottom right" align="center">
+               $content[network_type_api_url]
+       </td>
+       <td class="switch_sw$content[sw] bottom right" align="center">
+               $content[network_type_click_url]
+       </td>
+       <td class="switch_sw$content[sw] bottom" align="center">
+               $content[network_type_banner_url]
+       </td>
+</tr>