]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/order_functions.php
Removed
[mailer.git] / inc / libs / order_functions.php
index c9068036760038c8450c4ecd43b8ebd7e99ceb58..e839164e538f3412de31a32ebe5fa322936923bf 100644 (file)
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  : Funktionen fuer den Newsletter an die Gaeste     *
  * -------------------------------------------------------------------- *
- * $Revision:: 856                                                    $ *
- * $Date:: 2009-03-06 20:24:32 +0100 (Fr, 06. Mär 2009)              $ *
+ * $Revision::                                                        $ *
+ * $Date::                                                            $ *
  * $Tag:: 0.2.1-FINAL                                                 $ *
- * $Author:: stelzi                                                   $ *
+ * $Author::                                                          $ *
  * Needs to be in all Files and every File needs "svn propset           *
  * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
 
 // Some security stuff...
 if (!defined('__SECURITY')) {
-       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
+       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
        require($INC);
 }
 
-function ORDER_SELECT_OPTION_LIST($default) {
+function ORDER_SELECT_OPTION_LIST ($default) {
        // Currenty the list is hardcoded...
-       $LIST = array("userid", "zip", "country", "email", "birth_year", "last_online", "ref_clicks", "total_logins", "mail_orders");
-       $OUT = "";
+       $LIST = array('userid', 'zip', 'country', 'email', 'birth_year', 'last_online', 'ref_clicks', 'total_logins', 'mail_orders');
+       $OUT = '';
        foreach ($LIST as $item) {
-               $selected = "";
-               if ($item == $default) $selected = " selected=\"selected\"";
-               $OUT .= "<option value=\"".$item."\"".$selected.">{--ORDER_SELECT_COLUMN_".strtoupper($item)."--}</option>\n";
-       }
+               $selected = '';
+               if ($item == $default) $selected = ' selected="selected"';
+               $OUT .= '<option value="' . $item . '"' . $selected . '>{--ORDER_SELECT_COLUMN_' . strtoupper($item) . '--}</option>';
+       } // END - foreach
 
        // Return the output
        return $OUT;