correction

This commit is contained in:
Damien LASSERRE 2012-04-13 14:49:08 +00:00
parent 42710f7528
commit 51cab1e5d2
5 changed files with 22 additions and 15 deletions

View File

@ -218,6 +218,9 @@ class EnrichissementController extends Zend_Controller_Action
public function downloadAction()
{
$this->_helper->layout()->disableLayout();
$this->_helper->viewRenderer->setNoRender(true);
$id = $this->getRequest()->getParam('id');
$table = new Table_EnrichissementIdentifiants();
$sql = $table->select()
@ -245,7 +248,6 @@ class EnrichissementController extends Zend_Controller_Action
} else {
echo 'Impossible de charger le fichier.';
}
exit;
}
}

View File

@ -13,14 +13,18 @@
</tr>
<?php
$i=0;
foreach($this->liste as $societe) {
echo '<tr '.((($i%2) == 0)?'class="color"':'').'>';
echo '<td>'.$societe['siren'].$societe['nic'].'</td>';
echo '<td>'.$societe['raisonSociale'].'</td>';
echo '<td>'.$societe['adr_cp'].'</td>';
echo '<td>'.$societe['adr_ville'].'</td>';
echo '</tr>';
$i++;
if(count($this->liste) > 0) {
foreach($this->liste as $societe) {
echo '<tr '.((($i%2) == 0)?'class="color"':'').'>';
echo '<td>'.$societe['siren'].$societe['nic'].'</td>';
echo '<td>'.$societe['raisonSociale'].'</td>';
echo '<td>'.$societe['adr_cp'].'</td>';
echo '<td>'.$societe['adr_ville'].'</td>';
echo '</tr>';
$i++;
}
} else {
echo '<tr><td>Vous n\'avez selectionné aucuns critères</td></tr>';
}
?>
</table>

View File

@ -1,11 +1,6 @@
<div id="geographique">
<ul id="fieldsblock">
<li><?php echo $this->Field('adr_com', $this->fields->get('adr_com'));?></li>
<li style="height:50px;background-image:none">
Exclure DOM-TOM <input style="float:right" value="1" type="checkbox" class="ex_prede" name="ex_domtom" /><br />
Exclure Etranger <input style="float:right" value="1" type="checkbox" class="ex_prede" name="ex_entr" /><br />
Exclure Corse <input style="float:right" value="1" type="checkbox" class="ex_prede" name="ex_corse" /><br />
</li>
<li>
<p style="float:left;"><b>Selection manuelle</b></p>
<a class="manuel" ref="localisation" style="margin-right:10px;color:blue;font-size:10px;">
@ -31,6 +26,11 @@
Recherche régions : <input type="text" name="" id="textarea_adr_reg" /><br />
Valeurs exclusions : <input value="1" type="checkbox" class="checkbox_ex" name="adr_dept" />
</li>
<li style="height:50px;background-image:none">
Exclure DOM-TOM <input style="float:right" value="1" type="checkbox" class="ex_prede" name="ex_domtom" /><br />
Exclure Etranger <input style="float:right" value="1" type="checkbox" class="ex_prede" name="ex_entr" /><br />
Exclure Corse <input style="float:right" value="1" type="checkbox" class="ex_prede" name="ex_corse" /><br />
</li>
<li><?php echo $this->Field('zus', $this->fields->get('zus'), 'select');?></li>
<li><?php echo $this->Field('zru', $this->fields->get('zru'), 'select');?></li>
<li><?php echo $this->Field('zfu', $this->fields->get('zfu'), 'select');?></li>

View File

@ -21,7 +21,7 @@
<a href="<?=$this->url(array('controller'=> 'gestion','action'=>'extract', 'id'=>$comptage['idDefinition']))?>">Extraire les sirets</a>
<a href="">Supprimer</a>
</td>
</tr>
</tr>
<?php endforeach; ?>
</table>
</div>

View File

@ -85,6 +85,7 @@ Class Ciblage
}
public function execute($need = false, $limitD = false)
{
//echo $this->alpha;exit;
if($need) {
$return = array();
$limit = 0;