Extension ext-admins improved:
authorRoland Häder <roland@mxchange.org>
Wed, 10 Aug 2011 19:38:10 +0000 (19:38 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 10 Aug 2011 19:38:10 +0000 (19:38 +0000)
- The menu point what-admins_contct does now provide a shiny new selection box
  fully made of templates
- Fixed admin contact link (still there are a lot copies around in the script)
- TODOs.txt updated

14 files changed:
.gitattributes
DOCS/TODOs.txt
inc/language/admins_de.php
inc/language/de.php
inc/libs/admins_functions.php
inc/modules/admin/admin-inc.php
inc/modules/admin/what-admins_contct.php
inc/modules/guest/what-rallyes.php
inc/modules/member/what-rallyes.php
inc/template-functions.php
templates/de/html/admin/admin_admins_contct_default.tpl
templates/de/html/admin/admin_admins_contct_form.tpl
templates/de/html/select/select_admins_box.tpl [new file with mode: 0644]
templates/de/html/select/select_admins_option.tpl [new file with mode: 0644]

index 6f67363f55429663b1a917a042e2706758f2ab75..22227754c175a869aaf0b590e8b675b9f3154e2d 100644 (file)
@@ -1885,6 +1885,8 @@ templates/de/html/removeip_level.tpl svneol=native#text/plain
 templates/de/html/runtime_fatal_row.tpl svneol=native#text/plain
 templates/de/html/runtime_fatal_table.tpl svneol=native#text/plain
 templates/de/html/select/.htaccess svneol=native#text/plain
+templates/de/html/select/select_admins_box.tpl svneol=native#text/plain
+templates/de/html/select/select_admins_option.tpl svneol=native#text/plain
 templates/de/html/select/select_forced_ads_type_box.tpl svneol=native#text/plain
 templates/de/html/select/select_forced_ads_type_option.tpl svneol=native#text/plain
 templates/de/html/select/select_network_box.tpl svneol=native#text/plain
index 738b121c417cf9c1f2c28dae0df9d7e62bc14399..6bd635e7b7f798bdd94f4910079b00f2f66ef8fa 100644 (file)
 ./inc/functions.php:2236:      // @TODO Rename column data_type to e.g. mail_status
 ./inc/gen_sql_patches.php:95:// @TODO Rewrite this to a filter
 ./inc/install-functions.php:57:        // @TODO DEACTIVATED: changeDataInLocalConfigurationFile('OUTPUT-MODE', "setConfigEntry('OUTPUT_MODE', '", "');", postRequestElement('omode'), 0);
-./inc/language/de.php:1071:    // @TODO Rewrite these two constants
-./inc/language/de.php:1087:    // @TODO Rewrite these three constants
-./inc/language/de.php:757:// @TODO Are these constants longer used?
+./inc/language/de.php:1072:    // @TODO Rewrite these two constants
+./inc/language/de.php:1088:    // @TODO Rewrite these three constants
+./inc/language/de.php:758:// @TODO Are these constants longer used?
 ./inc/language-functions.php:255:      // @TODO These are all valid languages, again hard-coded
 ./inc/language-functions.php:44:// @TODO Rewrite all language constants to this function.
 ./inc/language/newsletter_de.php:13: * @TODO This language file is completely out-dated, please do no       *
 ./inc/language/rallye_de.php:13: * @TODO Naming convention not applied for language strings             *
 ./inc/language/refback_de.php:53:      // @TODO Rewrite these constants to one
 ./inc/language/sponsor_de.php:117:// @TODO Rewrite these four constants to one and use sprintf()
-./inc/libs/admins_functions.php:505:           // @TODO This can be, somehow, rewritten
+./inc/libs/admins_functions.php:508:           // @TODO This can be, somehow, rewritten
 ./inc/libs/bonus_functions.php:194:            // @TODO Move this HTML to a template
 ./inc/libs/doubler_functions.php:44:// @TODO Lame description
 ./inc/libs/doubler_functions.php:93:                   // @TODO Can't this be moved into EL?
 ./inc/mails/doubler_mails.php:53:// @TODO Can this be rewritten to a filter?
 ./inc/module-functions.php:267:                        // @TODO Nothing helped???
 ./inc/module-functions.php:308:                        // @TODO Rewrite this to a filter
-./inc/modules/admin/admin-inc.php:1379:                                // @TODO If we can rewrite the EL sub-system to support more than one parameter, this call_user_func_array() can be avoided
+./inc/modules/admin/admin-inc.php:1420:                                // @TODO If we can rewrite the EL sub-system to support more than one parameter, this call_user_func_array() can be avoided
 ./inc/modules/admin/admin-inc.php:171:         // @TODO This and the next getCurrentAdminId() call might be moved into the templates?
 ./inc/modules/admin/admin-inc.php:242:         // @TODO This can be rewritten into a filter
 ./inc/modules/admin/admin-inc.php:274:         // @TODO Rewrite this to $content = SQL_FETCHARRAY()
 ./inc/modules/admin/admin-inc.php:340:                                 // @TODO Rewrite this to $content = SQL_FETCHARRAY()
-./inc/modules/admin/admin-inc.php:444:// @TODO Try to rewrite this to adminAddMenuSelectionBox()
+./inc/modules/admin/admin-inc.php:485:// @TODO Try to rewrite this to adminAddMenuSelectionBox()
 ./inc/modules/admin/overview-inc.php:162:                              // @TODO Rewrite this to a filter
 ./inc/modules/admin/overview-inc.php:275:                              // @TODO Rewrite this to something with include files and/or filter
 ./inc/modules/admin/overview-inc.php:309:                                              // @TODO This may also be rewritten to include files
 ./inc/modules/guest/what-login.php:125:        // @TODO Move this HTML code into a template
 ./inc/modules/guest/what-mediadata.php:182:// @TODO Rewrite all these if-blocks to filters
 ./inc/modules/guest/what-mediadata.php:67:     // @TODO Find a better formular than this one
-./inc/modules/guest/what-rallyes.php:89:       // @TODO Reactivate this: $content['admin'] = '<a href="{%url=modules.php?module=index&amp;what=impressum&amp;admin=' . $adminId . '%}">' . $login . '</a>';
+./inc/modules/guest/what-rallyes.php:89:       // @TODO Reactivate this: $content['admin'] = '<a href="{%url=modules.php?module=index&amp;what=impressum&amp;id=' . $adminId . '%}">' . $login . '</a>';
 ./inc/modules/guest/what-sponsor_reg.php:289:                  // @TODO Maybe a default referal id?
 ./inc/modules/guest/what-stats.php:108:                // @TODO This can be somehow rewritten
 ./inc/modules/guest/what-stats.php:82:// @TODO This can be rewritten in a dynamic include
 ./inc/modules/member/what-order.php:82:                // @TODO Rewrite this to SQL_FETCHARRAY()
 ./inc/modules/member/what-payout.php:194:                                      // @TODO Rewrite this to a filter
 ./inc/modules/member/what-points.php:55:// @TODO Should we rewrite this to a filter?
-./inc/modules/member/what-rallyes.php:89:      // @TODO Reactivate this: $content['admin'] = '<a href="{%url=modules.php?module=index&amp;what=impressum&amp;admin=' . $content['admin_id'] . '%}">' . $content['login'] . '</a>';
+./inc/modules/member/what-rallyes.php:89:      // @TODO Reactivate this: $content['admin'] = '<a href="{%url=modules.php?module=index&amp;what=impressum&amp;id=' . $content['admin_id'] . '%}">' . $content['login'] . '</a>';
 ./inc/modules/member/what-reflinks.php:52:// @TODO Move this into a filter
 ./inc/modules/member/what-transfer.php:128:                            // @TODO Rewrite this to a filter
 ./inc/modules/member/what-unconfirmed.php:162: // @TODO Try to rewrite this to $content = SQL_FETCHARRAY()
 ./inc/mysql-manager.php:44:// @TODO Can we cache this?
 ./inc/purge/purge-inact.php:55:        // @TODO Rewrite these if() blocks to a filter
 ./inc/revision-functions.php:169:// @TODO This function does also set and get in 'cache_array'
-./inc/template-functions.php:1068:                     // @TODO Deprecate this thing
-./inc/template-functions.php:1079:                     // @TODO Deprecate this thing
-./inc/template-functions.php:1169:     // @TODO This can be easily moved out after the merge from EL branch to this is complete
-./inc/template-functions.php:1202:             // @TODO Add a little more infos here
-./inc/template-functions.php:1531:// @TODO Lame description for this function
-./inc/template-functions.php:1553:                     // @TODO Move this in a filter
+./inc/template-functions.php:1070:                     // @TODO Deprecate this thing
+./inc/template-functions.php:1081:                     // @TODO Deprecate this thing
+./inc/template-functions.php:1171:     // @TODO This can be easily moved out after the merge from EL branch to this is complete
+./inc/template-functions.php:1204:             // @TODO Add a little more infos here
+./inc/template-functions.php:1533:// @TODO Lame description for this function
+./inc/template-functions.php:1555:                     // @TODO Move this in a filter
 ./inc/template-functions.php:184:       * @TODO On some pages this is buggy
 ./inc/template-functions.php:273:              // @TODO Remove this sanity-check if all is fine
-./inc/template-functions.php:596:// @TODO $simple/$constants are deprecated
+./inc/template-functions.php:598:// @TODO $simple/$constants are deprecated
 ./inc/wrapper-functions.php:512:// @TODO Do some more sanity check here
 ./inc/xml-functions.php:189:   // @TODO Handle characters
 ./mailid.php:139:                                      // @TODO Rewrite this to a filter
 ./network-check.php:54:// @TODO Add processing of request here
 ./view.php:68:         // @TODO No banner found, output some default banner
 ./templates/de/html/admin/admin_add_country.tpl:23:                    <!-- @TODO Rewrite this selection box to our generic functions //-->
-./templates/de/html/admin/admin_admins_contct_form.tpl:4:      <!-- @TODO Shouldn't we add a title here? //-->
 ./templates/de/html/admin/admin_config_other.tpl:79:                   <!-- @TODO Rewrite this selection to one of our functions //-->
 ./templates/de/html/admin/admin_config_rewrite.tpl:4:  <!-- @TODO No title here? //-->
 ./templates/de/html/admin/admin_edit_admin_menu.tpl:4:<!-- @TODO Shouldn't we add a title here? //-->
 ./inc/loader/load_cache-revision.php:2:// @DEPRECATED
 ./inc/loader/load_cache-them.php:2:// @DEPRECATED
 ./inc/loader/load-extensions.php:2:// @DEPRECATED
-./inc/modules/admin/admin-inc.php:445:// @DEPRECATED
+./inc/modules/admin/admin-inc.php:486:// @DEPRECATED
 ./inc/modules/admin/what-chk_regs.php:2:// @DEPRECATED
 ./inc/modules/admin/what-config_admins.php:2:// @DEPRECATED
 ./inc/modules/admin/what-config_email.php:2:// @DEPRECATED
index 0fd5d59c520db7cf983629a05b6244d522d09f3b..7cf9887791d2e97edac38789299e21a7f89db205 100644 (file)
@@ -59,8 +59,9 @@ addMessages(array(
        'ADMIN_ADMINS_CANNOT_DELETE_LAST' => "Das letzte Admin-Account kann nicht gel&ouml;scht werden.",
        'ADMIN_ADMINS_SELECT_ADMIN' => "Bitte w&auml;hlen Sie einen Administrator aus dem Men&uuml;punkt <em>Admin-Account &auml;ndern</em> aus.",
        'ADMIN_ADMINS_ADMIN_ID' => "Admin-Id",
+       'ADMIN_CONTACT_ADMINS_TITLE' => "Administrator <span class=\"data\">%s</span> kontaktieren:",
        'ADMIN_ADMINS_CONTACT_SUBMIT' => "Admin kontaktieren",
-       'ADMIN_ADMINS_ENTER_CONTACT_TEXT' => "Kontaktgrund eingeben",
+       'ADMIN_ADMINS_ENTER_CONTACT_TEXT' => "Nachricht an Administrator eingeben:",
        'ADMIN_ADMINS_SELECT_CONTACT_TYPE' => "Nachricht &uuml;bertragen als",
        'ADMIN_ADMINS_CONTACT_TYPE_MAIL' => "Mail",
        'ADMIN_ADMINS_CONTACT_TYPE_MSG' => "Nachricht",
@@ -99,8 +100,9 @@ addMessages(array(
        'ADMIN_ADMINS_ADD_MORE_ADMINS' => "Weiteren Admin hinzuf&uuml;gen",
        'ADMIN_ACCOUNT_SAVED' => "Admin-Account gespeichert.",
        'ADMIN_ADMINS_ERROR_PASS_MISMATCH' => "Die beiden Passw&ouml;rter stimmen nicht &uuml;berein.",
+       'ADMIN_ADMINS_SELECTION_BOX_TITLE' => "Administrator-Account ausw&auml;hlen:",
 
-// Logical area constants
+       // Logical area constants
        'ADMIN_ADMINS_LA_MODE_GLOBAL' => "Globale Einst.",
        'ADMIN_ADMINS_LA_MODE_OLD' => "Altes Men&uuml;",
        'ADMIN_ADMINS_LA_MODE_NEW' => "Neues Men&uuml;",
index 9af233f00b8cf211bfbcb24e1341e9bd7fb8d386..5ba4dcc5d496ebca9077ec19ebb89f08bf1dc064 100644 (file)
@@ -754,6 +754,7 @@ addMessages(array(
        'ADMIN_NO_ADDITIONAL_SQLS' => "Keine weiteren SQL-Anweisungen zum Ausf&uuml;hren.",
        'ADMIN_SQLS_EXECUTED_ON_UPDATE' => "Beim Aktualisieren ausgef&uuml;hrte SQL-Anweisungen",
        'ADMIN_SQLS_EXECUTED_ON_REGISTER' => "SQL-Anweisungen, die beim Installieren/Updaten ausgef&uuml;hrt werden",
+       'ADMIN_SELECT_ADMIN' => "Administrator ausw&auml;hlen:",
 // @TODO Are these constants longer used?
        'ADMIN_UNKNOWN_FIELD_TYPE_1' => "Unbekannter Datentyp <strong>",
        'ADMIN_UNKNOWN_FIELD_TYPE_2' => "</strong> erkannt.",
index 27c0a104912ee3a3a3b4da0d0711f0014e1daddb..407308222aa1bd1ef4551b88dd9f13fe86f263a8 100644 (file)
@@ -153,15 +153,18 @@ LIMIT 1",
                        // Load userid
                        list($adminId) = SQL_FETCHROW($result);
 
-                       // Rewrite email address to contact link
-                       $email = '{%url=modules.php?module=' . $mod . '&amp;what=admins_contct&amp;admin=' . bigintval($adminId) . '%}';
+                       // Call this function again
+                       $email = generateAdminEmailLink($adminId, $mod);
                } // END - if
 
                // Free memory
                SQL_FREERESULT($result);
-       } elseif ((is_int($email)) && ($email > 0)) {
+       } elseif (isValidUserId($email)) {
                // Direct id given
-               $email = '{%url=modules.php?module=' . $mod . '&amp;what=admins_contct&amp;admin=' . bigintval($email) . '%}';
+               $email = '{%url=modules.php?module=' . $mod . '&amp;what=admins_contct&amp;id=' . bigintval($email) . '%}';
+       } else {
+               // This is strange and needs fixing
+               debug_report_bug(__FUNCTION__, __LINE__, 'email[' . gettype($email) . ']=' . $email . ',mod=' . $mod . ' - This should not happen.');
        }
 
        // Return rewritten (?) email address
index 14d65d059e27bea41ac2d2d196f45f970dcaa4f8..a3f48e84807e750c7f283eb3606d99ae961abf23 100644 (file)
@@ -389,7 +389,7 @@ ORDER BY
                // Free memory
                SQL_FREERESULT($result_main);
                $OUT .= '</ul>';
-       }
+       } // END - if
 
        // Is there a cache instance again?
        // Return or output content?
@@ -400,24 +400,65 @@ ORDER BY
        }
 }
 
-// Create an admin selection box
-function generateAdminSelectionBox ($adminId = NULL) {
-       // Return content
-       return $OUT;
+// Create an admin selection box form
+function addAdminSelectionBox ($adminId = NULL, $special = '') {
+       // Default is email as "special column"
+       $ADD = ',`email` AS `special`';
+
+       // Is a special column given?
+       if (!empty($special)) {
+               // Additional column for SQL query
+               $ADD = ',`' . $special . '` AS `special`';
+       } // END - if
+
+       // Query all entries
+       $result = SQL_QUERY('SELECT
+       `id`,`login`' . $ADD . '
+FROM
+       `{?_MYSQL_PREFIX?}_admins`
+ORDER BY
+       `login` ASC', __FUNCTION__, __LINE__);
+
+       // Init output
+       $OUT = '';
+
+       // Load all entries
+       while ($content = SQL_FETCHARRAY($result)) {
+               // Add the entry
+               $OUT .= loadTemplate('select_admins_option', true, $content);
+       } // END - if
+
+       // Free memory
+       SQL_FREERESULT($result);
+
+       // Add form to content
+       $content['form_selection'] = $OUT;
+
+       // Output form
+       loadTemplate('select_admins_box', false, $content);
 }
 
 // Create a member selection box
 function addMemberSelectionBox ($userid = NULL, $add_all = false, $return = false, $none = false, $field = 'userid') {
        // Output selection form with all confirmed user accounts listed
-       $result = SQL_QUERY('SELECT `userid`,`surname`,`family` FROM `{?_MYSQL_PREFIX?}_user_data` ORDER BY `userid` ASC', __FUNCTION__, __LINE__);
+       $result = SQL_QUERY('SELECT
+       `userid`,`surname`,`family`
+FROM
+       `{?_MYSQL_PREFIX?}_user_data`
+ORDER BY
+       `userid` ASC', __FUNCTION__, __LINE__);
 
        // Default output
        $OUT = '';
 
        // USe this only for adding points (e.g. adding refs really makes no sence ;-) )
-       if ($add_all === true)   $OUT = '      <option value="all">{--ALL_MEMBERS--}</option>';
-        elseif ($none === true) $OUT = '      <option value="0">{--SELECT_NONE--}</option>';
+       if ($add_all === true) {
+               $OUT = '      <option value="all">{--ALL_MEMBERS--}</option>';
+       } elseif ($none === true) {
+               $OUT = '      <option value="0">{--SELECT_NONE--}</option>';
+       }
 
+       // Load all entries
        while ($content = SQL_FETCHARRAY($result)) {
                $OUT .= '<option value="' . bigintval($content['userid']) . '"';
                if ($userid == $content['userid']) $OUT .= ' selected="selected"';
index a1b31d1fc9b1be2515341aab67bf33f2b3f15425..07393bc2012eef7c7cece53f8f1225d8f9732cbf 100644 (file)
@@ -43,10 +43,10 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 // Add description as navigation point
 addYouAreHereLink('admin', __FILE__);
 
-if ((isFormSent()) && (isGetRequestElementSet('admin'))) {
+if ((isFormSent()) && (isGetRequestElementSet('id'))) {
        // Send mail or message
        // Load admin's email address
-       $email = getAdminEmail(bigintval(getRequestElement('admin')));
+       $email = getAdminEmail(bigintval(getRequestElement('id')));
 
        // Load email template and send the mail to the admin
        $message = loadEmailTemplate('admins_mail_contct_admin', postRequestElement('text'), 0);
@@ -54,15 +54,15 @@ if ((isFormSent()) && (isGetRequestElementSet('admin'))) {
 
        // Mail / message dropped
        displayMessage('{--ADMIN_ADMINS_ADMIN_CONTACTED--}');
-} elseif (isGetRequestElementSet('admin')) {
+} elseif (isGetRequestElementSet('id')) {
        // Load contact form template
-       $content['admin'] = getRequestElement('admin');
+       $content['id'] = getRequestElement('id');
 
        // Load main form
        loadTemplate('admin_admins_contct_form', false, $content);
 } else {
        // Please select an admin!
-       displayMessage('{--ADMIN_ADMINS_SELECT_ADMIN--}');
+       addAdminSelectionBox();
 }
 
 // [EOF]
index 125cc3a903856bd11c5a581f58b6999867685f72..bbaec5f4718c45857b82c2def5a9382c2786052e 100644 (file)
@@ -86,7 +86,7 @@ if (SQL_NUMROWS($result) == 1) {
        }
 
        // Set admin line (currently set to impressum, later to contact form)
-       // @TODO Reactivate this: $content['admin'] = '<a href="{%url=modules.php?module=index&amp;what=impressum&amp;admin=' . $adminId . '%}">' . $login . '</a>';
+       // @TODO Reactivate this: $content['admin'] = '<a href="{%url=modules.php?module=index&amp;what=impressum&amp;id=' . $adminId . '%}">' . $login . '</a>';
 
        // Set title
        $content['title'] = $title;
index 53c9d301fbd3e641431a589b4ccc00428db4de1f..3bc862d204324e17f7eeff7cd683523c347ca852 100644 (file)
@@ -86,7 +86,7 @@ if (SQL_NUMROWS($result) == 1) {
        }
 
        // Set admin line (currently set to impressum, later to contact form)
-       // @TODO Reactivate this: $content['admin'] = '<a href="{%url=modules.php?module=index&amp;what=impressum&amp;admin=' . $content['admin_id'] . '%}">' . $content['login'] . '</a>';
+       // @TODO Reactivate this: $content['admin'] = '<a href="{%url=modules.php?module=index&amp;what=impressum&amp;id=' . $content['admin_id'] . '%}">' . $content['login'] . '</a>';
 
        // Handle description...
        if ((empty($content['descr'])) && (!empty($content['template']))) {
index 3025bff9389b17c779dd76468800e65707632eda..62fecd0386f86a5c54187892e77648dfd6a00e7a 100644 (file)
@@ -547,7 +547,9 @@ function getMenuCssClasses ($data) {
        $content = explode('|', $data);
 
        // Non-existent index 2 will happen in menu blocks
-       if (!isset($content[2])) $content[2] = '';
+       if (!isset($content[2])) {
+               $content[2] = '';
+       } // END - if
 
        // Re-construct the array: 0=visible,1=locked,2=prefix
        $content['visible'] = $content[0];
index fc479bd3ada35b2de2faeeb93dceae61a3ac69d7..60ca4a48a45dfa1050efa490ef0e4a49b656b655 100644 (file)
@@ -1,5 +1,6 @@
 <tr>
        <td colspan="3" align="center" class="table_header bottom" height="28">
-       {--ADMIN_ADMINS_CONTACT_DEFAULT_MAIL--} <input type="hidden" name="type"
-               value="mail"></td>
+               {--ADMIN_ADMINS_CONTACT_DEFAULT_MAIL--}
+               <input type="hidden" name="type" value="mail" />
+       </td>
 </tr>
index 18493eca11662f5e6e00a09644ef5bbf2a86894e..bbd2a542169b710d019a7eb9279ab498d0de15a1 100644 (file)
@@ -1,24 +1,17 @@
 <div align="center">
-<form accept-charset="UTF-8" action="{%url=modules.php?module=admin&amp;what=admins_contct&amp;admin=$content[admin]%}" method="post">
-<table border="0" cellspacing="0" cellpadding="0" class="table dashed">
-       <!-- @TODO Shouldn't we add a title here? //-->
-       <tr>
-               <td class="header_column bottom" align="right" height="28"><strong>{--ADMIN_ADMINS_ADMIN_ID--}:</strong></td>
-               <td class="header_column bottom" align="left"><strong>$content[admin]</strong></td>
-       </tr>
-       <tr>
-               <td class="bottom" colspan="2" align="center">
-                       {--ADMIN_ADMINS_ENTER_CONTACT_TEXT--}:<br />
-                       <textarea class="form_field" name="text" rows="5" cols="40"></textarea>
-               </td>
-       </tr>
-       $content[message_selection]
-       <tr>
-               <td class="table_footer" align="center" colspan="2">
-                       <input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
-                       <input type="submit" class="form_submit" name="ok" value="{--ADMIN_ADMINS_CONTACT_SUBMIT--}" />
-               </td>
-       </tr>
-</table>
+<form accept-charset="UTF-8" action="{%url=modules.php?module=admin&amp;what=admins_contct&amp;id=$content[id]%}" method="post">
+<div class="table dashed">
+       <div class="table_header bottom">
+               <strong>{%message,ADMIN_CONTACT_ADMINS_TITLE=$content[id]%}</strong>
+       </div>
+       <div class="bottom" align="center">
+               {--ADMIN_ADMINS_ENTER_CONTACT_TEXT--}<br />
+               <textarea class="form_field" name="text" rows="5" cols="40"></textarea>
+       </div>
+       <div class="table_footer" align="center" colspan="2">
+               <input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
+               <input type="submit" class="form_submit" name="ok" value="{--ADMIN_ADMINS_CONTACT_SUBMIT--}" />
+       </div>
+</div>
 </form>
 </div>
diff --git a/templates/de/html/select/select_admins_box.tpl b/templates/de/html/select/select_admins_box.tpl
new file mode 100644 (file)
index 0000000..bb5e35b
--- /dev/null
@@ -0,0 +1,21 @@
+<div align="center">
+<form accept-charset="UTF-8" action="{?URL?}/modules.php" method="get">
+<input type="hidden" name="module" value="admin" />
+<input type="hidden" name="what" value="{%pipe,getWhat%}" />
+<div class="table dashed">
+       <div class="table_header bottom">
+               <strong>{--ADMIN_ADMINS_SELECTION_BOX_TITLE--}</strong>
+       </div>
+       <div align="center" class="bottom">
+               {--ADMIN_SELECT_ADMIN--}
+               <select name="id" size="1" class="form_select">
+                       $content[form_selection]
+               </select>
+       </div>
+       <div align="center" class="table_footer">
+               <input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
+               <input type="submit" class="form_submit" value="{--ADMIN_DO_ACTION--}" />
+       </div>
+</div>
+</form>
+</div>
diff --git a/templates/de/html/select/select_admins_option.tpl b/templates/de/html/select/select_admins_option.tpl
new file mode 100644 (file)
index 0000000..5cf4325
--- /dev/null
@@ -0,0 +1,3 @@
+<option value="$content[id]">
+       $content[login] ($content[special])
+</option>