27 require_once NOALYSS_INCLUDE.
'/lib/function_javascript.php';
28 require_once NOALYSS_INCLUDE.
'/lib/class_html_input.php';
37 $this->attribute=array();
43 $js=sprintf(
'$("%s'.
'_border").style.width="%s";',
45 $this->parameter.=
$js;
50 $js=sprintf(
'$("%s'.
'_border").style.height="%s";',
52 $this->parameter.=
$js;
62 $this->blocking=$p_block;
67 $js=sprintf(
'$("%s'.
'_border").style.zIndex=%d;',
69 $js=sprintf(
'$("%s'.
'_content").style.zIndex=%d;',
71 $this->parameter.=
$js;
84 $this->attribute[]=array($p_name,$p_val);
92 $this->title=$p_title;
93 $s=sprintf(
'$("%s_"+"title")="%s"',
94 $this->
name,$this->title);
102 $r.=sprintf(
'<div id="%s_fond" class="popup_back">',$this->
name);
109 if ( isset($this->title) &&
trim($this->title) !=
"" )
111 $r.=sprintf(
'<div id="%s_border" id="%s_border" class="popup_border_title">',
114 $r.=sprintf(
'<span id="%s_">%s</span>',$this->
name,$this->title);
118 $r.=sprintf(
'<div id ="%s_border" id="%s_border" class="popup_border_notitle">',
122 $r.=
'<div style="position:absolute;top:0px;right:10px;font-weight:normal;font-size:9px;color:black;text-align:right">';
123 $r.=sprintf(
'<a style="background-color:blue;color:white;text-decoration:none" href="%s">⨉</a></div>',
126 $r.=sprintf(
'<div id ="%s_content" id="%s_content" class="inner_box"> %s </div></div>',
133 $attr=$this->parameter;
134 for ($i=0;$i< count($this->attribute);$i++)
137 $tmp1=sprintf(
"$('%s').%s='%s';",
144 if ($this->drag==
true)
147 $draggable=sprintf(
" new Draggable('%s_border',{starteffect:function(){
148 new Effect.Highlight('%s_border',{scroll:window,queue:'end'}); } });"
160 require_once NOALYSS_INCLUDE.
'/lib/class_iselect.php';
162 $select->value=array(array (
'value'=>0,
'label'=>
'Première valeur'),
163 array (
'value'=>0,
'label'=>
'Première valeur'),
164 array (
'value'=>0,
'label'=>
'Première valeur'));
168 if (
$e%10 == 0 ) echo
'<hr>';
174 $a->value.=
"<p>Il etait une fois dans un pays vraiment lointain où même plus loin que ça</p>";
178 <input type="button" onclick="hide(\'pop1\');hide(\'pop1_border\')" value="cacher">
179 <input type="button" onclick="showIPopup(\'pop1\')" value="montrer">
183 $a->title=
"Retrouvez une saucisse";
186 <input type="button" onclick="hide(\'pop2\');hide(\'pop2_border\')" value="cacher">
187 <input type="button" onclick="showIPopup(\'pop2\')" value="montrer">
function trim(s)
remove trailing and heading space
create_script($p_string)
create the HTML for adding the script tags around of the script