Rapport et cache

This commit is contained in:
Michael RICOIS 2013-10-18 09:57:31 +00:00
parent 94cf63e5a3
commit a7e494b6d8
5 changed files with 27 additions and 96 deletions

View File

@ -159,12 +159,7 @@ class Scores_Partner_Report
require_once 'Scores/Annonces.php'; require_once 'Scores/Annonces.php';
$objAnnonces = new Annonces($infos->Annonces->result->item); $objAnnonces = new Annonces($infos->Annonces->result->item);
$typeAnnonces = array( $typeAnnonces = array('Bodacc');
'Bodacc',
'Balo',
'Bomp',
'Asso',
);
foreach ($typeAnnonces as $type) foreach ($typeAnnonces as $type)
{ {
$classType = 'annonces'.$type; $classType = 'annonces'.$type;

View File

@ -12,7 +12,29 @@
Néant Néant
<?php } else {?> <?php } else {?>
<table class="data"> <table class="data">
<?=$this->partialLoop('juridique/annonces-resume.phtml', $this->annoncesBodacc)?> <?php foreach ($this->annoncesBodacc as $k => $annonce) {?>
<?php
$class = '';
if ($annonce['deleted']!='') {
$class = ' class="deleted"';
}
?>
<tr<?=$class?>>
<td width="140" class="StyleInfoLib">
<span id="annoncesDate">Le <?=$annonce['date']?></span>
</td>
<td>
<span id="annoncesImg">
<?php if (!empty($annonce['logo'])) {?>
<img src="/themes/default/images/annonces/<?=$annonce['logo']?>" title="<?=$annonce['title']?>" />
<?php }?>
</span>
</td>
<td width="450" colspan="2" class="StyleInfoData">
<?=$annonce['lib']?>
</td>
</tr>
<?php }?>
</table> </table>
<?php }?> <?php }?>
</div> </div>

View File

@ -1,31 +0,0 @@
<?php
$class = '';
if ($this->deleted!='') {
$class = ' class="deleted"';
}
?>
<tr<?=$class?>>
<td width="140" class="StyleInfoLib">
<span id="annoncesDate">Le <?=$this->date?></span>
</td>
<td>
<span id="annoncesImg">
<?php if (!empty($this->logo)) {?>
<img src="/themes/default/images/annonces/<?=$this->logo?>" title="<?=$this->title?>" />
<?php }?>
</span>
</td>
<td width="450" colspan="2" class="StyleInfoData">
<a class="tiptxt" href="<?=$this->partialLoop()->view->url(array(
'controller' => 'juridique',
'action' => 'annonces',
'siret' => $this->partialLoop()->view->siret,
'id' => $this->partialLoop()->view->id,
'idAnn' => $this->idAnn,
'vue' => $this->type,
))?>">
<?=$this->lib?>
</a>
<span style="display:none;"><?=$this->RemplaceSiren($this->texte)?></span>
</td>
</tr>

View File

@ -31,13 +31,13 @@ class WsScores
* Enable/Disable using of cache * Enable/Disable using of cache
* @var unknown * @var unknown
*/ */
protected $cacheEnable = true; protected $cacheEnable = false;
/** /**
* Enbale/Disable cache writing * Enbale/Disable cache writing
* @var boolean * @var boolean
*/ */
protected $cacheWrite = true; protected $cacheWrite = false;
/** /**
* Load WebService config * Load WebService config

View File

@ -1,65 +1,10 @@
body {
padding-top: 20px;
}
.footer { .footer {
border-top: 1px solid #EEEEEE; border-top: 1px solid #EEEEEE;
margin-top: 40px; margin-top: 40px;
padding-bottom: 40px; padding-bottom: 40px;
padding-top: 40px; padding-top: 40px;
} }
.jumbotron {
background-color: rgba(0, 0, 0, 0);
text-align: center;
}
.jumbotron .btn {
font-size: 21px;
padding: 14px 24px;
}
.nav-justified {
background-color: #EEEEEE;
border: 1px solid #CCCCCC;
border-radius: 5px 5px 5px 5px;
}
.nav-justified > li > a {
background-color: #E5E5E5;
background-image: -moz-linear-gradient(center top , #F5F5F5 0%, #E5E5E5 100%);
background-repeat: repeat-x;
border-bottom: 1px solid #D5D5D5;
color: #777777;
font-weight: bold;
padding-bottom: 15px;
padding-top: 15px;
text-align: center;
}
.nav-justified > .active > a, .nav-justified > .active > a:hover, .nav-justified > .active > a:focus {
background-color: #DDDDDD;
background-image: none;
box-shadow: 0 3px 7px rgba(0, 0, 0, 0.15) inset;
}
.nav-justified > li:first-child > a {
border-radius: 5px 5px 0 0;
}
.nav-justified > li:last-child > a {
border-bottom: 0 none;
border-radius: 0 0 5px 5px;
}
@media (min-width: 768px) {
.nav-justified {
max-height: 52px;
}
.nav-justified > li > a {
border-left: 1px solid #FFFFFF;
border-right: 1px solid #D5D5D5;
}
.nav-justified > li:first-child > a {
border-left: 0 none;
border-radius: 5px 0 0 5px;
}
.nav-justified > li:last-child > a {
border-radius: 0 5px 5px 0;
border-right: 0 none;
}
}
@media screen and (min-width: 768px) { @media screen and (min-width: 768px) {
.masthead, .marketing, .footer { .masthead, .marketing, .footer {
padding-left: 0; padding-left: 0;