\n"; echo "
| \n"; echo " | \n"; print_button_padding(); if (!is_valid_action("messages_read","messages_new")) { echo "\n"; } if (is_valid_action("messages_read")) { echo "\n"; echo "\n"; } echo "\n"; echo " | |
| \n"; echo " | " . _("To") . " | \n";
echo ""; // Collect all customers down the pyramid $row_customers = db_search_customers(); // When contact person => Add customer above (when available!) if (is_array(db_fetch_contact_user($_SESSION[$_PAGE_INFO['id']]['login']['user']['id']))) { $cust_ids = array(); if (is_array($row_customers)) { foreach ($row_customers as $item) { array_push($cust_ids, $item['id']); } } // Collect all customers up the pyramid $row_customers_up = db_search_customers("", "up"); if (is_array($row_customers_up)) { foreach ($row_customers_up as $item) { if (!in_array($item['id'], $cust_ids)) { array_push($row_customers, $item); } } } } // Default value $_SESSION[$_PAGE_INFO['id']]['messages_info']['klant'] = (isset($_SESSION[$_PAGE_INFO['id']]['messages_info']['klant'])) ? $_SESSION[$_PAGE_INFO['id']]['messages_info']['klant'] : $_SESSION[$_PAGE_INFO['id']]['login']['customer']['id']; echo "\n"; echo " | \n"; echo "
| \n"; echo " | \n"; echo " | \n"; if ((isset($_SESSION[$_PAGE_INFO['id']]['messages_info']['klant'])) && (strlen($_SESSION[$_PAGE_INFO['id']]['messages_info']['klant']))) { $row_users = db_fetch_users($_SESSION[$_PAGE_INFO['id']]['messages_info']['klant']); } else { $row_users = db_search_users(); } echo "\n"; $info = ""; // Required for new/change message if (isset($_SESSION[$_PAGE_INFO['id']]['messages_info'])) { // Check if the correct recall function was set if (is_valid_recall("but_ok")) { if (!strlen($_SESSION[$_PAGE_INFO['id']]['messages_info']['naar'])) { $info = "Required field!"; } else { $info = "*"; } } else if (is_valid_recall()) { // Different recall => restore old value $info = $_SESSION[$_PAGE_INFO['id']]['messages_info']['naar_info']; } else { $info = "*"; } } else { $info = "*"; } // Print info message print_info("naar", $info); echo " | \n"; echo "
| \n"; echo " | \n"; print_button_padding(); echo "\n"; echo "\n"; echo "\n"; echo " |