This commit is contained in:
Aram HARUTYUNYAN 2013-04-18 10:58:35 +00:00
parent 8e660edcbc
commit 71ecb298b9
2 changed files with 7 additions and 8 deletions

View File

@ -954,8 +954,12 @@ class FinanceController extends Zend_Controller_Action
*/
public function bourseAction()
{
require_once 'Scores/Logo.php';
$siren = substr($this->siret, 0, 9);
$urlImg = new Logo($siren);
$sessionEntreprise = new SessionEntreprise($this->siret, $this->id);
$ws = new WsScores();
@ -978,6 +982,7 @@ class FinanceController extends Zend_Controller_Action
$this->view->assign('raisonSociale', $sessionEntreprise->getRaisonSociale());
$this->view->assign('siren', $siren);
$this->view->assign('exportObjet', $infos);
$this->view->assign('urlImg', $urlImg->affiche());
}
/**

View File

@ -107,18 +107,12 @@ switch (trim(strtoupper($this->InfosBourse->EligiblePEA)))
<td width="350" class="StyleInfoData"><?=$srd?> / <?=$pea?></td>
</tr>
<?php
if ($urlImg!='')
{
$tabTmp=@getimagesize($locImg.$ext);
$w=$tabTmp[0];
$h=$tabTmp[1];
if ($w>350) $strSize=@redimage($locImg.$ext,350,150);
else $strSize='';
if ($this->urlImg!='') {
?>
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib">Logo</td>
<td width="350" class="StyleInfoData"><img src="<?=$urlImg?>" <?=$strSize?>/></td>
<td width="350" class="StyleInfoData"><?php echo $this->urlImg; ?></td>
</tr>
<?php } ?>
</table>