#WITH_ERROR(#FormError AND NOT #DEFINED(#FormErrors.Form.CSVImport))
#BLOCK("Pager", #Addressees)
#IF(#INPUT.Page) #ENDIF#IF(#INPUT.PageSize) #ENDIF #IF(#INPUT.OrderDesc) #ENDIF #IF(#FormError AND NOT #DEFINED(#FormErrors.Form.CSVImport))

{InputError}

#IF(#FormErrors.Reason.DoubleEMailInAddresseeList) {DoubleEMail} #ENDIF #IF(#FormErrors.Reason.NoEMail) {NoEMail}: #LOOP(#FormErrors.Reason.NoEMail.Errors) #IF(#Reason EQ "NoEMail") #CustomerName[html](#CustomerNo) #IF(#ItemNo+1 < #FormErrors.Reason.NoEMail.ErrorCount), #ENDIF #ENDIF #ENDLOOP #ENDIF #IF(#FormErrors.Reason.InsertNotSuccessful) {InsertNotSuccessful}: #LOOP(#FormErrors.Reason.InsertNotSuccessful.Errors) #IF(#Reason EQ "InsertNotSuccessful") #CustomerName[html](#CustomerNo) #IF(#ItemNo+1 < #FormErrors.Reason.InsertNotSuccessful.ErrorCount), #ENDIF #ENDIF #ENDLOOP #ENDIF #IF(#FormErrors.Reason.EMailFromTrayInAddresseeList) {DoubleEMailFromTray}: #LOOP(#FormErrors.Reason.EMailFromTrayInAddresseeList.Errors) #IF(#Reason EQ "EMailFromTrayInAddresseeList") #EMail #IF(#ItemNo+1 < #FormErrors.Reason.EMailFromTrayInAddresseeList.ErrorCount), #ENDIF #ENDIF #ENDLOOP #ENDIF #IF(NOT (#FormErrors.Reason.EMailFromTrayInAddresseeList OR #FormErrors.Reason.DoubleEMailInAddresseeList OR #FormErrors.Reason.NoEMail OR #FormErrors.Reason.InsertNotSuccessful) ) {PleaseCorrectErrors} #ENDIF
#ENDIF #IF(#DELETE)

{Warning}

{AcceptAction}
#LOOP(#DeleteObjects)#ENDLOOP #ENDIF #IF(#DELETE) #ELSE #IF(#INPUT.OrderBy NE "Name") #ELSIF(#INPUT.OrderDesc) #ELSE #ENDIF #IF(#INPUT.OrderBy NE "EMail") #ELSIF(#INPUT.OrderDesc) #ELSE #ENDIF #IF(#INPUT.OrderBy NE "Unsubscribed") #ELSIF(#INPUT.OrderDesc) #ELSE #ENDIF #ENDIF #IF(#DELETE) #LOOP(#DeleteObjects) #IF(#ID == #ObjectID) #ENDIF #ENDLOOP #ELSE #IF(#COUNT(#Addressees)) #LOOP(#Pager.Items) #ENDLOOP #ENDIF #ENDIF #IF(NOT #DELETE) #ENDIF
{Name} {EMail} {Status}{Name}{Name}{Name}{EMail}{EMail}{EMail}{Status}{Status}{Status}
#IF(NOT #DELETE)#INCLUDE("Pager")#ENDIF
#IF(#Unsubscribed) #ELSE #ENDIF #NameOrAlias #EMail #IF(#Unsubscribed) {Unsubscribed} #ELSE {Subscribed} #ENDIF
#IF(#Unsubscribed) #ELSE #ENDIF #NameOrAlias #EMail #IF(#Unsubscribed) {Unsubscribed} #ELSE {Subscribed} #ENDIF
#IF(#DELETE) #ELSE #IF(#COUNT(#Addressees)) #ENDIF #ENDIF
#ENDBLOCK
#ENDWITH_ERROR