Task #1221 - Bouton Fermer dans les boîtes de dialogues
#1221 : add hide / close button
This commit is contained in:
parent
f01674f28a
commit
8fc8123cea
8 changed files with 54 additions and 2 deletions
|
|
@ -29,6 +29,11 @@ if ( $in == "") {
|
|||
}
|
||||
$cal->set_periode($in);
|
||||
echo $cal->zoom($distype,$notitle);
|
||||
if ( $notitle== 0 ) {
|
||||
echo '<p style="text-align:center">';
|
||||
echo HtmlInput::button_close("calendar_zoom_div");
|
||||
echo '</p>';
|
||||
}
|
||||
$response= ob_get_clean();
|
||||
|
||||
$html=escape_xml($response);
|
||||
|
|
|
|||
|
|
@ -91,7 +91,11 @@ class Calendar
|
|||
{
|
||||
$this->action_div[$day].='<li>'.HtmlInput::detail_action($aAction[$i], $this->title[$day][$i]).'</li>';
|
||||
}
|
||||
$this->action_div[$day].='</ol></div>';
|
||||
$this->action_div[$day].='</ol>';
|
||||
$this->action_div[$day].=' <p style="text-align: center">';
|
||||
$this->action_div[$day].=HtmlInput::button_hide('tsk'.$day);
|
||||
$this->action_div[$day].='</p>';
|
||||
$this->action_div[$day].='</div>';
|
||||
}
|
||||
}
|
||||
else if ( $p_style == "long")
|
||||
|
|
|
|||
|
|
@ -251,6 +251,9 @@ class Pre_operation_detail
|
|||
$r.=$hid->input("action","use_opd");
|
||||
$r.=$hid->input("jrn_type",$this->get("ledger_type"));
|
||||
$r.= $this->show_button($p_url);
|
||||
$r.=' <p style="text-align: center">'.
|
||||
HtmlInput::button_hide('modele_op_div').
|
||||
'</p>';
|
||||
$r.='</div>';
|
||||
return $r;
|
||||
|
||||
|
|
|
|||
|
|
@ -1182,6 +1182,9 @@ function display_dashboard_operation($p_array,$p_title,$p_div)
|
|||
endfor;
|
||||
?>
|
||||
</table>
|
||||
<p style="text-align: center">
|
||||
<?php echo HtmlInput::button_hide($p_div)?>
|
||||
</p>
|
||||
<?php else: ?>
|
||||
<h2 class="notice"><?php echo _('Aucune donnée')?></h2>
|
||||
<?php
|
||||
|
|
|
|||
|
|
@ -423,6 +423,21 @@ class HtmlInput
|
|||
|
||||
return $html;
|
||||
|
||||
}
|
||||
/**
|
||||
* @brief Hide the HTML popup
|
||||
* @param type $div_name
|
||||
* @return type
|
||||
*/
|
||||
static function button_hide($div_name)
|
||||
{
|
||||
$a=new IButton('Fermer');
|
||||
$a->label=_("Fermer");
|
||||
$a->javascript="$('".$div_name."').hide()";
|
||||
$html=$a->input();
|
||||
|
||||
return $html;
|
||||
|
||||
}
|
||||
/**
|
||||
* Return a html string with an anchor which close the inside popup. (top-right corner)
|
||||
|
|
|
|||
|
|
@ -119,6 +119,15 @@ echo HtmlInput::hidden('gDossier',Dossier::id());
|
|||
echo HtmlInput::hidden('op','action_save');
|
||||
?>
|
||||
<p style="text-align: center">
|
||||
<ol style="list-style: none">
|
||||
<li style="display:inline">
|
||||
<?php echo HtmlInput::submit("action_add_submit", _('Valider'));?>
|
||||
</li>
|
||||
<li style="display:inline">
|
||||
<?php echo HtmlInput::button_close("action_add_div")?>
|
||||
</li>
|
||||
|
||||
</ol>
|
||||
|
||||
</p>
|
||||
</form>
|
||||
|
|
|
|||
|
|
@ -219,6 +219,9 @@ endif;
|
|||
<?php else : ?>
|
||||
<h2 class='notice'><?php echo _("Aucune action en retard")?></h2>
|
||||
<?php endif; ?>
|
||||
<p style="text-align: center">
|
||||
<?php echo HtmlInput::button_hide("action_late_div")?>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="action_now_div" class="inner_box" style="display:none;margin-left:25%;width: 50%;top:25%;min-height:50%;overflow: auto;">
|
||||
|
|
@ -247,6 +250,9 @@ endif;
|
|||
</li>
|
||||
<?php endfor;?>
|
||||
</ol>
|
||||
<p style="text-align: center">
|
||||
<?php echo HtmlInput::button_hide("action_now_div")?>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php display_dashboard_operation($supplier_now,_("Fournisseurs à payer aujourd'hui"),'supplier_now_div'); ?>
|
||||
|
|
|
|||
|
|
@ -100,7 +100,14 @@ echo HtmlInput::title_box("Note","todo_list_div".$this->tl_id,'close',$close_sha
|
|||
<?php echo HtmlInput::hidden('id',$this->tl_id) ?>
|
||||
<?php if ($this->use_login == $_SESSION['g_user']) : ?>
|
||||
<p style='text-align: center'>
|
||||
<input type="submit" class="smallbutton" value="<?php echo _('Sauve');?>" onclick="todo_list_save(<?php echo $this->tl_id?>);return false">
|
||||
<ol style="list-style: none;">
|
||||
<li style="display:inline">
|
||||
<input type="submit" class="smallbutton" value="<?php echo _('Sauve');?>" onclick="todo_list_save(<?php echo $this->tl_id?>);return false">
|
||||
</li>
|
||||
<li style="display:inline">
|
||||
<?php echo HtmlInput::button_close("todo_list_div".$this->tl_id);?>
|
||||
</li>
|
||||
</ol>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
</form>
|
||||
Loading…
Add table
Add a link
Reference in a new issue