echo varlang('persons-1'); ?> </a></li> <li><a href="#pgroups" role="tab" data-toggle="tab"><?php echo varlang('person-groups'); ?> </a></li> <li><a href="#audience" role="tab" data-toggle="tab"><?php echo varlang('audience'); ?> </a></li> </ul> <div class="tab-content"> <div class="tab-pane active" id="plist"> <?php echo Template::moduleView($module, 'views.tab-person-list'); ?> </div> <div class="tab-pane" id="pgroups"> <?php echo Template::moduleView($module, 'views.tab-group-list'); ?> </div> <div class="tab-pane" id="audience"> <?php echo Template::moduleView($module, 'views.tab-audience-list'); ?> </div> </div>
<?php if ($voted || $poll->active == 0) { echo Template::moduleView('poll', 'views.pollResults', array('poll' => $poll, 'total_votes' => PollVotesModel::where('poll_id', $poll->id)->count())); } else { echo Template::moduleView('poll', 'views.pollItem', array('poll' => $poll)); } ?> <?php if ($polls) { ?> <div class="hr_grey"></div> <p class="e_sond"><?php echo varlang('alte-sondaje'); ?> </p> <ul class="a_n"> <?php foreach ($polls as $item) { ?> <li> <a href="<?php echo $page_url; ?> ?item=<?php echo $item->id; ?> "> <span> <?php echo date('d-m-Y', strtotime($item->date_created));
} ?> <?php if ($person) { ?> <div class="tab-pane" id="dynamic"> <?php echo Template::moduleView($module, 'views.tab-dynamic', array('person' => $person)); ?> </div> <?php } ?> <div class="tab-pane" id="events"> <?php echo Template::moduleView($module, 'views.tab-events', array('person' => $person)); ?> </div> </div> <form action="<?php echo url('person/delete'); ?> " method="post"> <input type="hidden" name="id" value="<?php echo $person->id; ?> " /> <button type="submit" class="btn btn-danger pull-right" onclick="return confirm('<?php echo varlang('confirm-person-delete');
<div class="tab-content"> <div class="tab-pane active" id="general"> <?php echo Template::moduleView($module, 'views.tab-general', array('poll' => $poll)); ?> <br> <h3><?php echo varlang('answers'); ?> </h3> <?php echo Template::moduleView($module, 'views.tab-answers', array('poll' => $poll)); ?> </div> <?php foreach (Language::getList() as $lang) { ?> <div class="tab-pane" id="lang<?php echo $lang->id; ?> "> <?php echo Template::moduleView($module, 'views.tab-lang', array('poll_question' => isset($poll_question[$lang->id]) ? $poll_question[$lang->id] : array(), 'poll' => $poll, 'lang' => $lang)); ?> </div> <?php } ?> </div>