Ejemplo n.º 1
0
            if (count($meps_hidden)==1)
                $text .= 'one or two MEPs';
            else
                $text .= 'one MEP';
            $text .= ' dealing with constituent correspondence per area, so we only show ';
            if (count($meps_hidden)==1)
                $text .= 'them';
            else
                $text .= 'that MEP';
            $text .= ' above; you can contact the ';
            if (count($meps_hidden)==1)
                $text .= 'other';
            else
                $text .= 'others';
            $text .= ' here:</small></p>';
            $text .= display_reps($va_type, $meps_hidden, $va_info, array('small' => true));
        }
        global $va_council_child_types;
        if (in_array($va_type, $va_council_child_types) && cobrand_display_councillor_correction_link($cobrand)) {
            $text .= '<p style="font-size: 80%"><a href="corrections?id='.$va_specificid.'">Have you spotted a mistake in the above list?</a></p>';
        }
    }

    if ($disabled) {
        if ($status == "boundary_changes" || $parent_status == "boundary_changes") {
            $text = "<p>There have been boundary changes at the last election that
            means we can't yet say who your representative is. We hope to get our
            boundary database updated as soon as we can.</p>";
        } elseif ($status == "recent_election" || $parent_status == "recent_election") {
            $text = "<p>Due to the recent election, we don't yet have details for this
                representative.  We'll be adding them as soon as we can.</p>";
Ejemplo n.º 2
0
function hidden_meps_list($meps_hidden, $va_type, $va_area)
{
    # XXX Specific to what euro_check currently does!
    $text = '<p style="margin-top:2em"><small>Some MEPs
for your region have informed us that they have divided it into areas, with ';
    if (count($meps_hidden) == 1) {
        $text .= 'one or two MEPs';
    } else {
        $text .= 'one MEP';
    }
    $text .= ' dealing with constituent correspondence per area, so we only show ';
    if (count($meps_hidden) == 1) {
        $text .= 'them';
    } else {
        $text .= 'that MEP';
    }
    $text .= ' above; you can contact the ';
    if (count($meps_hidden) == 1) {
        $text .= 'other';
    } else {
        $text .= 'others';
    }
    $text .= ' here:</small></p>';
    $text .= display_reps($va_type, $meps_hidden, $va_area, array('small' => true));
    return $text;
}