1) { $archief_files = "{$txt["newsletter"]["text"]["multiple files"]["0"]} $countFiles {$txt["newsletter"]["text"]["newsletters"]["0"]}"; } else { $archief_files = "{$txt["newsletter"]["text"]["one file"]["0"]} $countFiles {$txt["newsletter"]["text"]["newsletter"]["0"]}"; } $content =" "; for ($i = 0; $i < $countFiles; $i++) { $file = $directoryArray[$i][1]; $file_date = date("d-m-Y",filemtime("$pathDirectory/$file")); $file_time = date("H:i:s",filemtime("$pathDirectory/$file")); $file_size = round(filesize("$pathDirectory/$file") / 1024, 2); if($file == "$last_file") { $class = "error"; } else { $class = "color"; } $content .=" "; } $content .="
{$txt["newsletter"]["text"]["archive head"]["0"]} $archief_files
{$txt["newsletter"]["text"]["file"]["0"]} {$txt["newsletter"]["text"]["size"]["0"]} {$txt["newsletter"]["text"]["date"]["0"]} {$txt["newsletter"]["text"]["time"]["0"]}  
$file $file_size KB $file_date $file_time {$txt["newsletter"]["text"]["download"]["0"]} {$txt["newsletter"]["text"]["send"]["0"]} {$txt["newsletter"]["text"]["delete"]["0"]}
"; } ######################### # Form - Thanks # ######################### else if($action == "form_thanks") { if(!empty($succes)){ $text ="$succes"; } else { $text ="{$info_txt["thanks text"]["0"]}"; } $content ="
{$info_txt["thanks head"]["0"]}
$text
"; } ######################### # Forms # ######################### else { $count = 0; foreach ($txt["$action"]["form"] as $content => $form_item) { $array_all_fields[] = "$form_item[0]"; $array_field_name[] = "$form_item[1]"; $array_req_fields[] = "$form_item[2]"; $array_form_width[] = "$form_item[3]"; $array_form_type[] = "$form_item[4]"; $form_values_field[] = "$form_item[5]"; $form_related_field[] = "$form_item[6]"; $form_info_field[] = "$form_item[7]"; $count++; } ######################### # Form - Start Form # ######################### $content = ""; for($j = 0; $j < $count; $j++) { if(!empty($fieldName_req)) { $fieldName = "$array_field_name[$j]"; } else { $fieldName = "$array_field_name[$j]_$array_req_fields[$j]"; } $fieldValues = $$fieldName; $fieldName = str_replace(" ", "", $fieldName); $field_name = $array_all_fields[$j]; $form_width = $array_form_width[$j]; $form_type = $array_form_type[$j]; $form_values = $form_values_field[$j]; $form_related = $form_related_field[$j]; $form_info = $form_info_field[$j]; ######################### # Form - Info # ######################### if(!empty($form_info)) { $form_info = form_info("$field_name","$form_info_field[$j]"); } else { $form_info = ""; } ######################### # Form - Header # ######################### if($form_type =="header") { $form_subject = "$field_name"; } ######################### # Form - Selectbox # ######################### else if($form_type =="selectbox") { $categorie_id = $fieldName; $categorie_id = $$categorie_id; $categorie_id1 = str_replace (" ", "", "$fieldName 1"); $categorie_id1 = $$categorie_id1; if(!empty($form_values)) { $form_item = form_selectbox_array($fieldName,"$form_related","$form_values","$fieldValues"); } } ######################### # Form - Checkbox # ######################### else if($form_type =="checkbox") { $form_item = form_checkbox("$fieldName","$table $fieldName","$fieldValues"); } ######################### # Form - Date Field # ######################### else if($form_type =="date") { if($fieldType =="date") { $count_date++; } $row[$fieldName] = preg_replace("/(\d+)-(\d+)-(\d+)/","\\3-\\2-\\1",$row[$fieldName]); $script_name = str_replace (" ", "", "exampleCallback_ISO $count_date"); $calender_name = str_replace (" ", "", "calendar $count_date"); $form_item = "
 
"; } ######################### # Form - Image Field # ######################### else if($form_type =="image") { $form_item = ""; } ######################### # Form - Textarea # ######################### else if($form_type =="longtext") { $row[$fieldName] = eregi_replace('

',"",$row[$fieldName]); $row[$fieldName] = eregi_replace('

',"",$row[$fieldName]); $row[$fieldName] = eregi_replace('
',"",$row[$fieldName]); $row[$fieldName] = eregi_replace('
'," ",$row[$fieldName]); $form_item = " "; } ######################### # Form - Text Editor # ######################### else if($form_type =="editor") { $WYSIWYG_body = Create_WYSIWYG_editor("$fieldName","$row[$fieldName]"); $form_title = "false"; $form_item = "$WYSIWYG_body"; } ######################### # Form - Text # ######################### else { $form_item = ""; } ######################### # End - FormFields # ######################### if($form_type =="header") { $form_rows .= ""; } else if($form_type =="editor") { $form_rows .= " $form_item $form_info"; } else { $form_rows .= " $field_name$form_item $form_info"; } } $info_text = "{$txt["$form_name"]["text"]["text"]["0"]}"; $content .="
$form_subject
"; if(!empty($info_text)) { $content .="$info_text

"; } if(!empty($error)) { $content .="$error

"; } if(!empty($succes)) { $content .="$succes

"; } $content .= " $form_rows
 
"; } ######################### # Print Content # ######################### //var_dump($email_admin);exit; print " $content"; include "footer.php"; ?>