public function executeGetPolImage()
 {
     $key = $this->getRequestParameter('key');
     $id = $this->getRequestParameter('id');
     $is_valid_key = deppApiKeysPeer::isValidKey($key);
     $resp_node = new SimpleXMLElement('<opkw xmlns="' . $this->opkw_ns . '" ' . ' xmlns:op="' . $this->op_ns . '" ' . ' xmlns:xlink="' . $this->xlink_ns . '" >' . '</opkw>');
     if ($is_valid_key) {
         $picture_url = OppPoliticoPeer::getPictureUrl($id);
         $thumb_url = OppPoliticoPeer::getThumbUrl($id);
         $content_node = $resp_node->addChild('op:content', null, $this->op_ns);
         $picture_node = $content_node->addChild('picture', $picture_url, $this->opkw_ns);
         $thumb_node = $content_node->addChild('thumb', $thumb_url, $this->opkw_ns);
     } else {
         $resp_node->addChild('op:error', 'Chiave di accesso non valida', $this->op_ns);
     }
     $xmlContent = $resp_node->asXML();
     $this->_send_output($xmlContent);
     return sfView::NONE;
 }
        echo link_to('la sua pagina su ' . image_tag('/images/logo-senato.png', array('alt' => 'vai al sito del senato')), $url, array('class' => 'jump-to-camera'));
        ?>
   
                           <?php 
    }
    ?>
                <?php 
}
?>
 
             
              </div>
              <div class="W73_100 float-left" style="width:75%">
                <div class="float-container">
                      <?php 
echo image_tag(OppPoliticoPeer::getPictureUrl($parlamentare->getId()), array('class' => 'portrait-91x126 float-left', 'alt' => $parlamentare->getNome() . ' ' . $parlamentare->getCognome(), 'width' => '91', 'height' => '126'));
?>
    
      
                    <div class="politician-more-info">
                        <?php 
if ($carica) {
    ?>
    
                            <p><label>
                                <?php 
    echo $carica->getTipoCaricaId() != 5 ? "" : "come Senatore a vita: ";
    ?>
in carica dal <?php 
    echo $carica->getDataInizio('d/m/Y');
    ?>