$v) { // echo "k = ".$k."---- v = ".$v."
"; } $tContactEmail = "info@armenianarchitecture.am"; if($language == 1) { $tArajTitle = "Առաջարկներ"; $tArajark = "Առաջարկում ենք Ձեզ մասնակցելու հայկական պատմական հուշարձանների շտեմարանը համալրելու գործին։ Եթե Ձեր գտնվելու վայրում կան հայկական հուշարձաններ, որոնք տեղ չեն գտել մեր շտեմարանում, կարող եք ուղարկել դրա լուսանկարները և նկարագրությունը, ինչպես նաև տվյալներ Ձեր մասին։"; $tTvyal = "ՁԵՐ ՏՎՅԱԼՆԵՐԸ"; $tName = "ԱՆՈՒՆ"; $tSurName = "ԱԶԳԱՆՈՒՆ"; $tParName = "ՀԱՅՐԱՆՈՒՆ"; $tMail = "ԷԼ. ՓՈՍՏ"; $tPhone = "ՀԵՌԱԽՈՍ"; $tAddress = "ՀԱՍՑԵ"; $tMonumentInfo = "ՏԵՂԵԿՈՒԹՅՈՒՆՆԵՐ ՀՈՒՇԱՐՁԱՆԻ ՄԱՍԻՆ"; $tMonumentPhoto = "Լուսանկարներ (կարող եք ուղարկել *.jpg,*.gif,*.png ֆորմատի նկարներ)"; $tSend = "ՈՒՂԱՐԿԵԼ"; $tNewSend = "ՈՒՂԱՐԿԵԼ ՆՈՐԸ"; $tThanksText = "Ձեր հաղորդագրությունը ուղարկվեց։ Շնորհակալություն։"; $tAuthor = "ՀԵՂԻՆԱԿ"; $tDate = "ԹՎԱԿԱՆ"; $noteText = "* դաշտերը պարտադիր են։"; $text = "Խնդրում ենք մուտքագրեք բոլոր պահանջվող դաշտերը։"; $mailText = "Խնդրում ենք մուտքագրեք ճիշտ էլ. փոստի հասցե։"; } if($language == 2) { $tArajTitle = "Your Input"; $tArajark = "You are invited to participate in the accomplishment of the database of Armenian historical monuments. If our database misses any monument located in your place of residence you can send us its photos and description together with your personal information. Please, fill in the fields of the photographer and date of the photo opposite each image."; $tTvyal = "PERSONAL INFORMATION"; $tName = "FIRST NAME"; $tSurName = "LAST NAME"; $tParName = "MIDDLE NAME"; $tMail = "E-MAIL"; $tPhone = "PHONE"; $tAddress = "ADDRESS"; $tMonumentInfo = "MONUMENT INFORMATION"; $tMonumentPhoto = "PHOTOS(You can send files in *.jpg,*.gif,*.png extensions)"; $tSend = "Send"; $tNewSend = "New Message"; $tThanksText = "Your message has been sent. Thank You!"; $tAuthor = "PHOTO BY"; $tDate = "DATE"; $noteText = "* fields are mandatory."; $text = "Please specify all mandatory fields."; $mailText = "Please write a valid E-mail address."; } echo""; // echo"
"; echo "

$tArajTitle

$tArajark


"; $hdSubmit = $_POST["hdSubmit"]; if(!$hdSubmit || $hdSubmit == 0) { echo"

$tTvyal

$tName* $tSurName $tParName
$tMail* $tPhone  
$tAddress
$noteText

$tMonumentInfo *

$tMonumentPhoto

$tAuthor $tDate 
$tAuthor $tDate 
$tAuthor $tDate 
$tAuthor $tDate 
$tAuthor $tDate 

"; } if($hdSubmit == 1) { if(!empty($_FILES['btnImage1']['name'])) { if(is_file($_FILES['btnImage1']['tmp_name'])) { $imgName1 = $_FILES['btnImage1']['name']; move_uploaded_file($_FILES['btnImage1']['tmp_name'],"../attachfile/".$_FILES['btnImage1']['name']); } } if(!empty($_FILES['btnImage2']['name'])) { if(is_file($_FILES['btnImage2']['tmp_name'])) { $imgName2 = $_FILES['btnImage2']['name']; move_uploaded_file($_FILES['btnImage2']['tmp_name'],"../attachfile/".$_FILES['btnImage2']['name']); } } if(!empty($_FILES['btnImage3']['name'])) { if(is_file($_FILES['btnImage3']['tmp_name'])) { $imgName3 = $_FILES['btnImage3']['name']; move_uploaded_file($_FILES['btnImage3']['tmp_name'],"../attachfile/".$_FILES['btnImage3']['name']); } } if(!empty($_FILES['btnImage4']['name'])) { if(is_file($_FILES['btnImage4']['tmp_name'])) { $imgName4 = $_FILES['btnImage4']['name']; move_uploaded_file($_FILES['btnImage4']['tmp_name'],"../attachfile/".$_FILES['btnImage4']['name']); } } if(!empty($_FILES['btnImage5']['name'])) { if(is_file($_FILES['btnImage5']['tmp_name'])) { $imgName5 = $_FILES['btnImage5']['name']; move_uploaded_file($_FILES['btnImage5']['tmp_name'],"../attachfile/".$_FILES['btnImage5']['name']); } } $messageBody = $txtName." ".$txtParName." ".$txtSurName."\r\n"; $messageBody .= $tMail.": ".$txtMail."\r\n"; $messageBody .= $tPhone.": ".$txtPhone."\r\n"; $messageBody .= $txtAddress."\r\n"; $messageBody .= "\r\n\r\n"; $messageBody .= $txtMonumentInfo; $messageBody .= "\r\n\r\n"; for ($i=1; $i<6; $i++) { $author = "txtAuthor".$i; $date = "txtDate".$i; $img = "imgName".$i; if ($$img && !empty($$img)) { if ($$author && !empty($$author)) { $messageBody .= $$img." նկարի հեղինակն է ".$$author; if ($$date && !empty($$date)) { $messageBody .= ", ".$$date; } $messageBody .= "\r\n"; } } } $attaches = array(); $j = 0; for ($i=1; $i<6; $i++) { $btImg = "btnImage".$i; $path = "../attachfile/".$_FILES[$btImg]['name']; if (is_file($path)) { $attaches[$j] = $path; $j++; } } if (Send($tContactEmail, $txtMail, $txtMail, "New monument info", $messageBody, $attaches)) { echo "
$tThanksText


"; // Sends autoreply message to the sender $AutoreplySubject = "Autoreply from www.armenianarchitecture.am"; $AutoreplyMessage = "Dear $txtName $txtSurName,\r\n\r\nThanks for your input and participation in accomplishment of the database of Armenian historical monuments.\r\nWe will process the information you has sent and inform you about the results.\r\n\r\nBest wishes,\r\nRAA Organization"; Send($txtMail, $tContactEmail, $tContactEmail, $AutoreplySubject, $AutoreplyMessage, NULL); } for ($i=0; $i
"; if (!$hdSubmit || $hdSubmit == 0) { ?>
"; // echo ""; require "footer.php"; ?>