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

View File

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

View File

@ -1,11 +1,6 @@
<div id="geographique"> <div id="geographique">
<ul id="fieldsblock"> <ul id="fieldsblock">
<li><?php echo $this->Field('adr_com', $this->fields->get('adr_com'));?></li> <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> <li>
<p style="float:left;"><b>Selection manuelle</b></p> <p style="float:left;"><b>Selection manuelle</b></p>
<a class="manuel" ref="localisation" style="margin-right:10px;color:blue;font-size:10px;"> <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 /> 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" /> Valeurs exclusions : <input value="1" type="checkbox" class="checkbox_ex" name="adr_dept" />
</li> </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('zus', $this->fields->get('zus'), 'select');?></li>
<li><?php echo $this->Field('zru', $this->fields->get('zru'), '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> <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="<?=$this->url(array('controller'=> 'gestion','action'=>'extract', 'id'=>$comptage['idDefinition']))?>">Extraire les sirets</a>
<a href="">Supprimer</a> <a href="">Supprimer</a>
</td> </td>
</tr> </tr>
<?php endforeach; ?> <?php endforeach; ?>
</table> </table>
</div> </div>

View File

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