{% extends "polls_base.html" %} {%block addnew%} {%endblock addnew%} {% block message %} {%if message.error!= ""%}
{{ message.error}}
{% else %} {%if message.success != "" %}
{{ message.success}}
{% endif %} {% endif%} {%endblock message %} {%block content%}
{% if poll_details %}
{{__( "Order By" )}}
 |  
{%set i=0%} {% for question_detail in questions_details%} {%set i=i+1%}

{{ __("Question") }}: {{ question.poll_order }} {{ esc_html( stripslashes( question_detail.name) )}}

{% for answerr in question_detail.answers%} {%endfor%}
{{ __ ("Answer") }} {{ __ ("Votes") }} {{ __ ("Percent") }}
{{answerr.answer}} {{answerr.votes}} {{answerr.status}} %

{{__( "Poll Other Answers")}}:

{%set index=0%} {% for answer in question_detail.answers%} {% if answer.type == 'other' %} {%set index=1 %} {%endif%} {%endfor%} {% if index==0 %} {%endif%}
{{__( "Value" )}} {{__( "Votes" )}}
{{ esc_html( stripslashes( answer.answer ) )}} {{ esc_html( stripslashes( answer.votes ) )}}
{{__( 'No other answers defined!')}}

{{__( "Custom Fields")}}:

{{ wp_nonce_field( 'yop-poll-custom-fields', 'yop-poll-custom-fields', false, false ) | raw }}    {{ count( question_detail.custom_fields_logs_details)}} / {{question_detail.total_custom_fields_logs}} {{__( "items")}} {{question_detail.cf_pagination | raw}}
{% for custom_field in question_detail.custom_fields %} {%endfor%} {%set index=0%} {%for custom_field_detail in question_detail.custom_fields_logs_details%} {%set index=index+1%} {%for id in custom_field_detail.column_custom_fields_ids%} {%set value=custom_field_detail.custom_fields_value%} {%endfor%} {% else %} {%endfor%}
{{__( '#' )}}{{ ucfirst( custom_field.custom_field )}}{{__( "Vote ID")}} {{__( "Tracking ID" )}} {{__( "Vote Date")}}
{{index}}{{custom_field_detail.custom_fields_value[id]}}{{custom_field_detail.vote_id}} {{custom_field_detail.tr_id}} {{custom_field_detail.vote_date}}
{{ __("No Custom Field Defined") }}
{% endfor %}
{{ wp_nonce_field( 'yop-poll-results_vote','yop-poll-results_votes', false, false ) | raw }}
 | 
   
   {{count( results )}} / {{total_results}} {{ __("results")}} {{pagination | raw}}

{%set index=1%} {% if count( results ) > 0 %} {% for result in results %} {%endif%} {%set index=index+1%} {%endfor%} {%endif%}
{{__( "User Type")}} {{( "Tracking ID")}} {{__( "Ip" )}} {{__( "Vote Date")}}
{{__( "User Type")}} {{( "Tracking ID")}} {{__( "Ip" )}} {{__( "Vote Date")}}
{{esc_html( stripslashes(result.user_type ))}} {{esc_html( stripslashes( result.tr_id ))}} {{esc_html( stripslashes( result.ip ))}} {{esc_html( stripslashes( result.vote_date ))}}
{{count( results )}} / {{total_results}} {{__("results")}} {{pagination | raw}}
{%else %}

{{__( "Your poll doesn`t exist!" )}}

{%endif%}
{%endblock content%}