Class IPopup can create no-blocking box
This commit is contained in:
parent
1c2bacd005
commit
3bf6ffe8a8
2 changed files with 14 additions and 3 deletions
|
|
@ -37,6 +37,7 @@ class IPopup extends HtmlInput
|
|||
$this->parameter='';
|
||||
$this->attribute=array();
|
||||
$this->drag=false;
|
||||
$this->blocking=true;
|
||||
}
|
||||
function set_width($p_val) {
|
||||
$js=sprintf('$("%s'.'_border").style.width="%s";',
|
||||
|
|
@ -50,6 +51,14 @@ class IPopup extends HtmlInput
|
|||
$this->parameter.=$js;
|
||||
|
||||
}
|
||||
/**
|
||||
*@brief set or not a blocking fond
|
||||
*@param $p_block if true if you want to avoid access to background,
|
||||
*accept true or false
|
||||
*/
|
||||
function set_block($p_block) {
|
||||
$this->blocking=$p_block;
|
||||
}
|
||||
|
||||
function set_zindex($p_val) {
|
||||
$js=sprintf('$("%s'.'_border").style.zIndex=%d;',
|
||||
|
|
@ -81,8 +90,10 @@ class IPopup extends HtmlInput
|
|||
}
|
||||
function input() {
|
||||
$r="";
|
||||
$r=sprintf('<div id="%s_fond" name="fond" class="popup_back">',$this->name);
|
||||
$r.="</div>";
|
||||
if ($this->blocking) {
|
||||
$r.=sprintf('<div id="%s_fond" name="fond" class="popup_back">',$this->name);
|
||||
$r.="</div>";
|
||||
}
|
||||
if ( isset($this->title) && trim($this->title) != "" ) {
|
||||
$r.=sprintf('<div name ="%s_border" id="%s_border" class="popup_border_title">',
|
||||
$this->name,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue