This commit is contained in:
Damien LASSERRE 2011-12-20 15:31:31 +00:00
parent 0a4bbdb986
commit ac99182df0
7 changed files with 6 additions and 10 deletions

View File

@ -11,7 +11,7 @@ Class Zend_View_Helper_Select extends Zend_View_Helper_Abstract
foreach($liste as $item => $value) { foreach($liste as $item => $value) {
$select .= '<option '.(($compar != 't' and $compar == $value)?'selected="selected"':null).' value="'.$value.'">'.$item.'</option>'; $select .= '<option '.(($compar != 't' and $compar == $value)?'selected="selected"':null).' value="'.$value.'">'.$item.'</option>';
} }
$champ = '<div id="'.$name.'" style="cursor:move;'.((empty($session->ciblage[$name]) or $session->ciblage[$name] == 'tous')?null:'background-color:#CCF8D2').';padding:5px;">'; $champ = '<div style="cursor:move;'.((empty($session->ciblage[$name]) or $session->ciblage[$name] == 'tous')?null:'background-color:#CCF8D2').';padding:5px;">';
$champ .= '<div style="float:left;text-align:left;"> $champ .= '<div style="float:left;text-align:left;">
<label>'.$libelle.'</label> <label>'.$libelle.'</label>
</div>'; </div>';

View File

@ -10,7 +10,7 @@ ul {list-style-type: none;}
$valeur = explode(':', $champ['type']); $valeur = explode(':', $champ['type']);
switch ($valeur[0]) { switch ($valeur[0]) {
case 'select': case 'select':
echo '<li class="ui-state-default" style="display:block;">'; echo '<li id="'.$champ['name'].'" class="ui-state-default" style="display:block;">';
echo $this->Select($champ['name'], $champ['libelle'], $champ['parametres']); echo $this->Select($champ['name'], $champ['libelle'], $champ['parametres']);
echo '</li>'; echo '</li>';
$i++; $i++;

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 289 B

View File

@ -39,11 +39,13 @@ $(document).ready(function(){
var block = $('#'+$(this).attr('name')).css('display'); var block = $('#'+$(this).attr('name')).css('display');
if(block == 'block') { if(block == 'block') {
$(this).css('background-image', 'url(/themes/default/images/ajouter.png)'); $(this).css('background-image', 'url(/themes/default/images/ajouter.png)');
$('#'+name).css('display', 'none'); /*$('#'+name).css('display', 'none');*/
$('#'+name).hide('slide');
} }
else { else {
$(this).css('background-image', 'url(/themes/default/images/moins.png)'); $(this).css('background-image', 'url(/themes/default/images/moins.png)');
$('#'+name).css('display', 'block'); /*$('#'+name).css('display', 'block');*/
$('#'+name).show('slide');
} }
}) })

View File

@ -60,11 +60,6 @@ ul, ul li {
cursor:move; cursor:move;
} }
.portlet
{
background-color:none;
}
.ui-state-highlight {margin-top:5px; height: 2.5em; line-height: 1.2em; } .ui-state-highlight {margin-top:5px; height: 2.5em; line-height: 1.2em; }
.liHover:hover { .liHover:hover {
background-color: #E2E6E5; background-color: #E2E6E5;
@ -216,7 +211,6 @@ h3 {
float:left; float:left;
width:250px; width:250px;
margin:2px; margin:2px;
padding:2px;
} }
.clearfix:after { .clearfix:after {