35require_once NOALYSS_INCLUDE.
'/lib/function_javascript.php';
44 $this->attribute=array();
50 $js=sprintf(
'$("%s'.
'_border").style.width="%s";',
52 $this->parameter.=
$js;
57 $js=sprintf(
'$("%s'.
'_border").style.height="%s";',
59 $this->parameter.=
$js;
69 $this->blocking=$p_block;
74 $js=sprintf(
'$("%s'.
'_border").style.zIndex=%d;',
76 $js=sprintf(
'$("%s'.
'_content").style.zIndex=%d;',
78 $this->parameter.=
$js;
91 $this->attribute[]=array($p_name,$p_val);
99 $this->
title=$p_title;
100 $s=sprintf(
'$("%s_"+"title")="%s"',
109 $r.=sprintf(
'<div id="%s_fond" class="popup_back">',$this->
name);
116 if ( isset($this->
title) && trim($this->
title) !=
"" )
118 $r.=sprintf(
'<div id="%s_border" id="%s_border" class="popup_border_title">',
121 $r.=sprintf(
'<span id="%s_">%s</span>',$this->
name,$this->
title);
125 $r.=sprintf(
'<div id ="%s_border" id="%s_border" class="popup_border_notitle">',
129 $r.=
'<div style="position:absolute;top:0px;right:10px;font-weight:normal;font-size:9px;color:black;text-align:right">';
130 $r.=sprintf(
'<a style="background-color:blue;color:white;text-decoration:none" href="%s">⨉</a></div>',
133 $r.=sprintf(
'<div id ="%s_content" id="%s_content" class="inner_box"> %s </div></div>',
140 $attr=$this->parameter;
141 for (
$i=0;
$i< count($this->attribute);
$i++)
144 $tmp1=sprintf(
"$('%s').%s='%s';",
151 if ($this->drag==
true)
154 $draggable=sprintf(
" new Draggable('%s_border',{starteffect:function(){
155 new Effect.Highlight('%s_border',{scroll:window,queue:'end'}); } });"
168 $select->value=array(array (
'value'=>0,
'label'=>
'Première valeur'),
169 array (
'value'=>0,
'label'=>
'Première valeur'),
170 array (
'value'=>0,
'label'=>
'Première valeur'));
174 if (
$e%10 == 0 ) echo
'<hr>';
180 $a->value.=
"<p>Il etait une fois dans un pays vraiment lointain où même plus loin que ça</p>";
184 <input type="button" onclick="hide(\'pop1\');hide(\'pop1_border\')" value="cacher">
185 <input type="button" onclick="showIPopup(\'pop1\')" value="montrer">
189 $a->title=
"Retrouvez une saucisse";
192 <input type="button" onclick="hide(\'pop2\');hide(\'pop2_border\')" value="cacher">
193 <input type="button" onclick="showIPopup(\'pop2\')" value="montrer">
catch(Exception $exc) if(! $g_user->can_write_action($ag_id)) $r
Html Input , create a tag <SELECT> ... </SELECT> if readonly == true then display the label correspon...
create_script($p_string)
create the HTML for adding the script tags around of the script