Example #1
0
						<table:table-cell office:value-type="string" table:style-name="table_header"><text:p>Imp. liquidato</text:p></table:table-cell>
						<table:table-cell office:value-type="string" table:style-name="table_header"><text:p>Inizio</text:p></table:table-cell>
						<table:table-cell office:value-type="string" table:style-name="table_header"><text:p>Fine</text:p></table:table-cell>
						<table:table-cell office:value-type="string" table:style-name="table_header"><text:p>Cod. scelta contraente</text:p></table:table-cell>
						<table:table-cell office:value-type="string" table:style-name="table_header"><text:p>Partecipanti</text:p></table:table-cell>
						<table:table-cell office:value-type="string" table:style-name="table_header"><text:p>Aggiudicatari</text:p></table:table-cell>
					</table:table-row>');
    // content.xml - righe
    foreach ($document->data->lotto as $lotto) {
        fwrite($tmpcontentxml, "<table:table-row>\n");
        fwrite($tmpcontentxml, '<table:table-cell office:value-type="string"><text:p><![CDATA[' . $lotto->cig . ']]></text:p></table:table-cell>');
        fwrite($tmpcontentxml, '<table:table-cell office:value-type="string"><text:p><![CDATA[' . $lotto->oggetto . ']]></text:p></table:table-cell>');
        fwrite($tmpcontentxml, '<table:table-cell office:value-type="string"><text:p><![CDATA[€ ' . $lotto->importoAggiudicazione . ']]></text:p></table:table-cell>');
        fwrite($tmpcontentxml, '<table:table-cell office:value-type="string"><text:p><![CDATA[€ ' . $lotto->importoSommeLiquidate . ']]></text:p></table:table-cell>');
        fwrite($tmpcontentxml, '<table:table-cell office:value-type="string"><text:p><![CDATA[' . dataIta($lotto->tempiCompletamento->dataInizio) . ']]></text:p></table:table-cell>');
        fwrite($tmpcontentxml, '<table:table-cell office:value-type="string"><text:p><![CDATA[' . dataIta($lotto->tempiCompletamento->dataUltimazione) . ']]></text:p></table:table-cell>');
        fwrite($tmpcontentxml, '<table:table-cell office:value-type="string"><text:p><![CDATA[' . $lotto->sceltaContraente . ']]></text:p></table:table-cell>');
        fwrite($tmpcontentxml, '<table:table-cell office:value-type="string"><text:p><![CDATA[');
        foreach ($lotto->partecipanti->raggruppamento as $partRagg) {
            fwrite($tmpcontentxml, "Raggruppamento: ( ");
            $i = 0;
            foreach ($partRagg->membro as $part) {
                fwrite($tmpcontentxml, ($i++ ? " / " : "") . "{$part->ragioneSociale} - CF: {$part->codiceFiscale}");
            }
            fwrite($tmpcontentxml, " ) ");
        }
        $i = 0;
        foreach ($lotto->partecipanti->partecipante as $part) {
            fwrite($tmpcontentxml, ($i++ ? " / " : "") . "{$part->ragioneSociale} - CF: {$part->codiceFiscale}");
        }
        fwrite($tmpcontentxml, ']]></text:p></table:table-cell>');
?>
 <br /> <strong>Scelta
				contraente: </strong> <?php 
echo stripslashes($sceltaContraente);
?>
<br />
			<strong>Numero atto: </strong> <?php 
echo stripslashes($numAtto);
?>
<br />
			<strong>Inizio: </strong> <?php 
echo stripslashes(dataIta($dataInizio));
?>
&nbsp;-&nbsp;
			<strong>Fine: </strong> <?php 
echo stripslashes(dataIta($dataUltimazione));
?>
<br />
			<strong>Somme aggiudicate: </strong> <?php 
echo stripslashes($importoAggiudicazione);
?>
&nbsp;-&nbsp;
			<strong>Somme liquidate: </strong> <?php 
echo stripslashes($importoSommeLiquidate);
?>
		</p>
		<p>
<?php 
if (array_key_exists($anno, $bloccati)) {
    ?>
		  <a class="btn btn-large disabled" href="#"><i class="icon-pencil"></i>&nbsp;Modifica</a>&nbsp;