This commit is contained in:
parent
604daa6afd
commit
893c79a2ca
@ -14,20 +14,16 @@ Class Zend_View_Helper_Interval extends Zend_View_Helper_Abstract
|
||||
{
|
||||
$session = new Zend_Session_Namespace('ciblage');
|
||||
|
||||
$champ = '<div id="'.$name.'" style="margin-top:2px;padding:5px;'.((empty($session->ciblage[$name]))?'display:none':null).';">';
|
||||
$champ = '<div class="ui-state-default" id="'.$name.'" style="margin-top:5px;padding:5px;'/*.((empty($session->ciblage[$name]))?'display:none':null)*/.';">';
|
||||
$champ .= '<li>';
|
||||
$champ .= '<div style="margin-top:3px;float:left;text-align:left;">
|
||||
<label>'.$libelle.'</label>
|
||||
<label for="amount">'.$libelle .': </label>
|
||||
</div>';
|
||||
$champ .= '<div style="text-align:right;">
|
||||
<input style="margin-right:5px;border:1px inset silver;" type="text" name="'.$name.'1" '.
|
||||
(($date == 'date')?'class="datepicker"':null)
|
||||
.' value="'.$session->ciblage[$name][0].'" /> <b>à</b>
|
||||
<input style="margin-right:5px;border:1px inset silver;" value="'.$session->ciblage[$name][1].'" type="text" name="'.$name.'2" '.
|
||||
(($date == 'date')?'class="datepicker"':null)
|
||||
.' /> <a class="interval" id="'.$name.'" href="">
|
||||
<img src="/themes/default/images/valide.png" /></a>
|
||||
<img valign="top" src="/themes/default/images/cross.png" />
|
||||
$champ .= '<div style="text-align:right;height:17px;">
|
||||
<input class="range" type="text" id="Value'.$name.'" style="margin-left:10px;margin-top:3px;float:left;border:0; color:black; font-weight:bold;" />
|
||||
<div min="0" max="1000" input="'.$name.'" class="slider-range"></div>
|
||||
</div>';
|
||||
$champ .= '</li>';
|
||||
$champ .= '</div>';
|
||||
|
||||
return ($champ);
|
||||
|
@ -12,8 +12,9 @@ Class Zend_View_Helper_Select extends Zend_View_Helper_Abstract
|
||||
foreach($liste as $item => $value) {
|
||||
$select .= '<option '.(($compar != 't' and $compar == $value)?'selected="selected"':null).' value="'.$value.'">'.$item.'</option>';
|
||||
}
|
||||
$champ = '<li class="ui-state-default" style="display:block;">';
|
||||
$champ .= '<div id="'.$name.'" style="cursor:move;'.((!is_string($session->ciblage[$name]) or $session->ciblage[$name] == 'tous')?null:'background-color:#CCF8D2;').'padding:5px;">';
|
||||
|
||||
$champ .= '<div class="'.$name.' ui-state-default" style="cursor:move;'.((!is_string($session->ciblage[$name]) or $session->ciblage[$name] == 'tous')?null:'background-color:#CCF8D2;').'padding:5px;">';
|
||||
$champ .= '<li>';
|
||||
$champ .= '<div style="float:left;text-align:left;">
|
||||
<label>'.$libelle.'</label>
|
||||
</div>';
|
||||
@ -22,8 +23,9 @@ Class Zend_View_Helper_Select extends Zend_View_Helper_Abstract
|
||||
'.$select.'
|
||||
</select>
|
||||
</div>';
|
||||
$champ .= '</div>';
|
||||
$champ .= '</li>';
|
||||
$champ .= '</div>';
|
||||
|
||||
|
||||
return ($champ);
|
||||
}
|
||||
|
@ -3,6 +3,15 @@ ul {list-style-type: none;}
|
||||
.ui-state-default {
|
||||
margin-top:5px;
|
||||
}
|
||||
.slider-range
|
||||
{
|
||||
width:150px;
|
||||
float:right;
|
||||
}
|
||||
|
||||
.range {
|
||||
background-color:transparent;
|
||||
}
|
||||
</style>
|
||||
<div>
|
||||
<ul id="sortable">
|
||||
|
@ -1,4 +1,9 @@
|
||||
<div id="tabs" class="portlet">
|
||||
<div id="result">
|
||||
<div id="accordion">
|
||||
<?php echo $this->action('criteres', 'index');?>
|
||||
</div>
|
||||
</div>
|
||||
<div id="tabs">
|
||||
<ul>
|
||||
<li><a href="#tabs-1">Critères Entreprise</a></li>
|
||||
<li><a href="<?=$this->url(array('controller'=>'criteres', 'action'=>'economique'))?>">Situation économique</a></li>
|
||||
@ -11,11 +16,6 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="result" class="portlet">
|
||||
<div id="accordion">
|
||||
<?php echo $this->action('criteres', 'index');?>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$(function() {
|
||||
var icons = {
|
||||
|
@ -36,14 +36,14 @@ $(document).ready(function(){
|
||||
|
||||
$('.printCritere').click(function(){
|
||||
var name = $(this).attr('name');
|
||||
var block = $('#'+$(this).attr('name')).css('display');
|
||||
var block = $('.'+$(this).attr('name')).css('display');
|
||||
if(block == 'block') {
|
||||
$(this).css('background-image', 'url(/themes/default/images/ajouter.png)');
|
||||
$('#'+name).hide('slide');
|
||||
$('.'+name).hide('slide');
|
||||
}
|
||||
else {
|
||||
$(this).css('background-image', 'url(/themes/default/images/moins.png)');
|
||||
$('#'+name).show('slide');
|
||||
$('.'+name).show('slide');
|
||||
}
|
||||
})
|
||||
|
||||
@ -61,6 +61,23 @@ $(document).ready(function(){
|
||||
$( "#sortable" ).disableSelection();
|
||||
});
|
||||
|
||||
$(function() {
|
||||
|
||||
$( ".slider-range" ).slider({
|
||||
slide: function( event, ui ) {
|
||||
var name = $(this).attr('input');
|
||||
|
||||
$( "#Value"+name ).val( ui.values[ 0 ] + " , " + ui.values[ 1 ] );
|
||||
},
|
||||
range: true,
|
||||
min: $(this).attr('min'),
|
||||
max: $(this).attr('max'),
|
||||
values: [ 0, 1000 ]
|
||||
});
|
||||
$( "#"+name ).val( "$" + $( ".slider-range" ).slider( "values", 0 ) +
|
||||
" - $" + $( ".slider-range" ).slider( "values", 10 ) );
|
||||
});
|
||||
|
||||
$(function() {
|
||||
$( ".column" ).sortable({
|
||||
connectWith: ".column"
|
||||
|
Loading…
Reference in New Issue
Block a user