noalyss Version-9
NOALYSS : serveur de comptabilité et ERP (2002)
Loading...
Searching...
No Matches
Icon_Action Class Reference

Utility , library of icon with javascript. More...

+ Collaboration diagram for Icon_Action:

Static Public Member Functions

static button_magnifier ($id, $p_javascript, $p_style="")
 Display a icon with a magnify glass.
 
static cancel ($p_id, $p_javascript)
 Display the icon to modify a idem.
 
static card ($p_js)
 
static checkbox ($p_id, $p_javascript="", $p_value=0, $p_classrange="")
 
static checked ($p_id, $p_javascript="", $p_classrange="")
 
static clean_zone ($id, $p_javascript, $p_style="")
 
static close ($p_div)
 Return a html string with an anchor which close the inside popup.
 
static comment ($p_comment)
 Display a info in a bubble, text is given as parameter.
 
static detail ($p_id, $p_javascript)
 
static detail_anchor ($p_id, $url)
 
static draggable ($p_div)
 Display a icon for fix or move a div.
 
static duplicate ($p_js)
 
static full_size ($p_div)
 
static hide ($action, $javascript)
 Return a html string with an anchor to hide a div, put it in the right corner.
 
static hide_icon ( $p_id, $javascript)
 Return a html string with an anchor to hide a div, put it in the right corner.
 
static icon_add ($id, $p_javascript, $p_style="")
 
static icon_magnifier ($id, $p_javascript, $p_style="")
 Display a icon with a magnify glass.
 
static icon_onoff ($p_id, $p_javascript, $p_style, $p_value)
 Display a icon ON is $p_value == 1 otherwise OFF.
 
static icon_remove ($id, $p_javascript, $p_style="")
 
static iconoff ($p_id, $p_javascript, $p_style="")
 Display a icon OFF.
 
static iconon ($p_id, $p_javascript, $p_style="")
 Display a icon ON.
 
static infobulle ($p_comment)
 Display a info in a bubble, text is in message_javascript.
 
static less ($p_id, $p_javascript)
 
static lock ($p_id, $p_javascript)
 Display the icon of a padlock to lock or unlock element.
 
static longer ($p_domid, $p_size)
 Increase size of input_text (p_domid) with p_domid.
 
static menu_click ($p_id, $p_javascript)
 When a mouse is over this or if you click on it , it will trigger the javascript.
 
static modify ($p_id, $p_javascript)
 Display the icon to modify a idem.
 
static more ($p_id, $p_javascript)
 
static option ($p_js)
 
static show_icon ($p_id, $javascript)
 Return a html string with an eye.
 
static show_note ($p_domid)
 Increase size of input_text (p_domid) with p_domid.
 
static slider ($p_id, $p_javascript)
 Display the icon of a slider.
 
static tips ($p_comment)
 Display a info in a bubble, text is given as parameter.
 
static toggle_hide ($p_id, $p_id_to_hide)
 hide or display an element, to be used for an accordon
 
static trash ($p_id, $p_javascript)
 Display the icon of a trashbin.
 
static unchecked ($p_id, $p_javascript="", $p_classrange="")
 
static unlock ($p_id, $p_javascript)
 Display the icon of a trashbin.
 
static validate ($p_id, $p_javascript)
 Display the icon to modify a idem.
 
static warnbulle ($p_comment)
 Display a warning in a bubble, text is in message_javascript.
 
static zoom ($p_div, $p_javascript)
 Display a icon for zooming.
 

Detailed Description

Utility , library of icon with javascript.

Definition at line 30 of file icon_action.class.php.

Member Function Documentation

◆ button_magnifier()

static Icon_Action::button_magnifier ( $id,
$p_javascript,
$p_style = "" )
static

Display a icon with a magnify glass.

Parameters
string$idid of element
string$p_javascript
string$p_styleoptionnal HTML code
Returns
type

Definition at line 54 of file icon_action.class.php.

55 {
56 $r="";
57 $r.=sprintf('<input type="button" id="%s" class=" smallbutton icon" style="%s" onclick="%s" value="%s">',
58 $id, $p_style, $p_javascript,ICON_SEARCH);
59 return $r;
60 }
catch(Exception $exc) if(! $g_user->can_write_action($ag_id)) $r
const ICON_SEARCH
Definition constant.php:103

References $id, $r, and ICON_SEARCH.

Referenced by ICard\search().

◆ cancel()

static Icon_Action::cancel ( $p_id,
$p_javascript )
static

Display the icon to modify a idem.

Parameters
type$p_id
type$p_javascript
Returns
string

Definition at line 308 of file icon_action.class.php.

309 {
310 $r='<span id="'.$p_id.'" onclick="'.$p_javascript.'" style="background-color:lightgrey; border:1px solid blue;padding:2px;margin:0px 1px 0px 1px" class="smallicon icon" >&#xe845;</span>';
311
312 return $r;
313 }

References $p_id, and $r.

Referenced by Inplace_Edit\ajax_input(), and INum\change().

◆ card()

static Icon_Action::card ( $p_js)
static

Definition at line 463 of file icon_action.class.php.

463 {
464 $r=sprintf('<span id="%s" onclick="%s" class="icon smallbutton">%s</span>',
465 uniqid(),$p_js,"&#xe843;");
466 return $r;
467 }

References $r.

◆ checkbox()

static Icon_Action::checkbox ( $p_id,
$p_javascript = "",
$p_value = 0,
$p_classrange = "" )
static

Definition at line 447 of file icon_action.class.php.

447 {
448 if ( $p_value == 0 ) { return \Icon_Action::checked($p_id, $p_javascript,$p_classrange); }
449 if ( $p_value == 1 ) { return \Icon_Action::unchecked($p_id, $p_javascript,$p_classrange);}
450 }

References $p_id.

◆ checked()

static Icon_Action::checked ( $p_id,
$p_javascript = "",
$p_classrange = "" )
static

Definition at line 428 of file icon_action.class.php.

428 {
429 $lock_cur="&#xe741;";
430 $r=sprintf( '<span id="%s" onclick="%s" class="icon smallicon %s" >%s</span>',
431 $p_id,
432 $p_javascript,
433 $p_classrange,
434 $lock_cur);
435 return $r;
436 }

References $p_id, and $r.

Referenced by InputCheckBox\display(), and InputCheckBox\input().

◆ clean_zone()

static Icon_Action::clean_zone ( $id,
$p_javascript,
$p_style = "" )
static
Parameters
string$id
string$p_javascript
stringopt $p_style
Returns
html string

Definition at line 95 of file icon_action.class.php.

96 {
97 $r=sprintf('<input class="smallbutton " onclick="%s" id="%s" value="%s" %s type="button" style="">',
98 $p_javascript, $id, ICON_CLEAN,$p_style
99 );
100 return $r;
101 }
const ICON_CLEAN
Definition constant.php:104

References $id, $r, and ICON_CLEAN.

Referenced by ICard\input().

◆ close()

static Icon_Action::close ( $p_div)
static

Return a html string with an anchor which close the inside popup.

(top-right corner)

Parameters
nameof the DIV to close

Definition at line 182 of file icon_action.class.php.

183 {
184 $r='';
185 $r.=sprintf('<A class="icon text-danger" onclick="removeDiv(\'%s\')">&#xe816;</A>',
186 $p_div);
187 return $r;
188 }

References $r.

Referenced by HtmlInput\title_box().

◆ comment()

static Icon_Action::comment ( $p_comment)
static

Display a info in a bubble, text is given as parameter.

Parameters
string$p_comment
Returns
html string

Definition at line 138 of file icon_action.class.php.

139 {
140 $p_comment=noalyss_str_replace("'",' ',$p_comment);
141 $js=sprintf("displayBulle('%s')",$p_comment);
142
143 $r=sprintf('<span tabindex="-1" class="icon" style="cursor:pointer;display:inline;text-decoration:none;" onmouseover="%s" onclick="%s" onmouseout="hideBulle(0)">',
144 $js,$js);
145 $r.="&#xf0e5;";
146 $r.='</span>';
147
148 return $r;
149 }
noalyss_str_replace($search, $replace, $string)

References display.

◆ detail()

static Icon_Action::detail ( $p_id,
$p_javascript )
static

Definition at line 314 of file icon_action.class.php.

315 {
316 $r=sprintf('<span id="%s" onclick="%s" class="smallicon icon" style="margin-left:5px">&#xe803;</span>',
317 $p_id,
318 $p_javascript);
319 return $r;
320 }

References $p_id, and $r.

◆ detail_anchor()

static Icon_Action::detail_anchor ( $p_id,
$url )
static

Definition at line 322 of file icon_action.class.php.

323 {
324 $r=sprintf('
325 <A HREF="%s">
326 <span id="%s" class="smallicon icon" style="margin-left:5px">&#xe803;</span></A>',
327 $url
328 ,$p_id);
329
330 return $r;
331 }

References $p_id, $r, and $url.

◆ draggable()

static Icon_Action::draggable ( $p_div)
static

Display a icon for fix or move a div.

Parameters
string$p_divid of the div to fix/move
string$p_javascript
Returns
html string

Definition at line 196 of file icon_action.class.php.

197 {
198 $drag=sprintf('<span id="pin_%s" style="" class="icon " onclick="pin(\'%s\')" >'.UNPINDG.'</span>',
199 $p_div, $p_div);
200 return $drag;
201 }
const UNPINDG
Definition constant.php:350

References UNPINDG.

Referenced by HtmlInput\title_box().

◆ duplicate()

static Icon_Action::duplicate ( $p_js)
static

Definition at line 458 of file icon_action.class.php.

458 {
459 $r=sprintf('<span id="%s" onclick="%s" class="icon smallicon">%s</span>',
460 uniqid(),$p_js,"&#xf0c5;");
461 return $r;
462 }

References $r.

◆ full_size()

static Icon_Action::full_size ( $p_div)
static

Definition at line 451 of file icon_action.class.php.

451 {
452 $js=sprintf("full_size('%s')",$p_div);
453 $icon="&#xe80a;";
454 $r=sprintf('<span id="size_%s" onclick="%s" class="icon smallicon">%s</span>',
455 $p_div,$js,$icon);
456 return $r;
457 }

References $js, and $r.

Referenced by HtmlInput\title_box().

◆ hide()

static Icon_Action::hide ( $action,
$javascript )
static

Return a html string with an anchor to hide a div, put it in the right corner.

Parameters
$actionaction action to perform (message)
$javascriptjavascript
Note
not protected against html
See also
Acc_Ledger::display_search_form

Definition at line 237 of file icon_action.class.php.

238 {
239 $r='';
240 $r.='<span id="hide" style="" class="icon text-danger" onclick="'.$javascript.'">'.$action.'</span>';
241 return $r;
242 }

References $action, and $r.

Referenced by HtmlInput\title_box().

◆ hide_icon()

static Icon_Action::hide_icon ( $p_id,
$javascript )
static

Return a html string with an anchor to hide a div, put it in the right corner.

Parameters
$actionaction action to perform (message)
$javascriptjavascript
Note
not protected against html
See also
Acc_Ledger::display_search_form

Definition at line 250 of file icon_action.class.php.

251 {
252 $r='';
253 $r.='<span id="'.$p_id.'" class="icon" onclick="'.$javascript.'">'."&#xe83b;".'</span>';
254 return $r;
255 }

References $p_id, and $r.

◆ icon_add()

static Icon_Action::icon_add ( $id,
$p_javascript,
$p_style = "" )
static
Parameters
type$id
type$p_javascript
type$p_style
Returns
type

Definition at line 69 of file icon_action.class.php.

70 {
71 $r=sprintf('<input class="smallbutton icon" onclick="%s" id="%s" type="button" %s value="&#xe828;">',
72 $p_javascript, $id, $p_style);
73 return $r;
74 }

References $id, and $r.

Referenced by Acc_Ledger\add_card(), and Template_Card_Category\input().

◆ icon_magnifier()

static Icon_Action::icon_magnifier ( $id,
$p_javascript,
$p_style = "" )
static

Display a icon with a magnify glass.

Parameters
string$idid of element
string$p_javascript
string$p_styleoptionnal HTML code
Returns
type

Definition at line 40 of file icon_action.class.php.

41 {
42 $r="";
43 $r.=sprintf('<span id="%s" class=" smallbutton icon" style="%s" onclick="%s">%s</span>',
44 $id, $p_style, $p_javascript,ICON_SEARCH);
45 return $r;
46 }

References $id, $r, and ICON_SEARCH.

Referenced by Anc_Balance_Double\display_form(), Anc_Print\display_form(), IPoste\dsp_button(), and IConcerned\input().

◆ icon_onoff()

static Icon_Action::icon_onoff ( $p_id,
$p_javascript,
$p_style,
$p_value )
static

Display a icon ON is $p_value == 1 otherwise OFF.

Parameters
string$p_divid of element
string$p_javascript
string$p_styleoptionnal HTML code
integer0 or 1 , 0 means OFF and 1 means ON
Returns
html string

Definition at line 422 of file icon_action.class.php.

423 {
424 if ( $p_value == 1 ) { return \Icon_Action::iconon($p_id, $p_javascript,$p_style);}
425 if ( $p_value == 0 ) { return \Icon_Action::iconoff($p_id, $p_javascript,$p_style);}
426 }

References $p_id.

◆ icon_remove()

static Icon_Action::icon_remove ( $id,
$p_javascript,
$p_style = "" )
static
Parameters
type$id
type$p_javascript
type$p_style
Returns
type

Definition at line 82 of file icon_action.class.php.

83 {
84 $r=sprintf('<input class="smallbutton icon" onclick="%s" id="%s" type="button" %s value="&#xe828;">',
85 $p_javascript, $id, $p_style);
86 return $r;
87 }

References $id, and $r.

◆ iconoff()

static Icon_Action::iconoff ( $p_id,
$p_javascript,
$p_style = "" )
static

Display a icon OFF.

Parameters
string$p_divid of element
string$p_javascript
string$p_styleoptionnal HTML code
Returns
html string

Definition at line 171 of file icon_action.class.php.

172 {
173 $r=sprintf('<span style="color:red;cursor:pointer" id="%s" class="icon" style="%s" onclick="%s">&#xf204;</span>',
174 $p_id, $p_style, $p_javascript);
175 return $r;
176 }

References color.

Referenced by Inplace_Switch\__construct(), InputSwitch\display(), Periode_Ledger_Table\display_row(), Periode\display_row_global(), and InputSwitch\input().

◆ iconon()

static Icon_Action::iconon ( $p_id,
$p_javascript,
$p_style = "" )
static

Display a icon ON.

Parameters
string$p_divid of element
string$p_javascript
string$p_styleoptionnal HTML code
Returns
html string

Definition at line 157 of file icon_action.class.php.

158 {
159 $r=sprintf('<span style="color:green;cursor:pointer" id="%s" class="icon" style="%s" onclick="%s">&#xf205;</span>',
160 $p_id, $p_style, $p_javascript);
161 return $r;
162 }

References color.

Referenced by Inplace_Switch\__construct(), InputSwitch\display(), Periode_Ledger_Table\display_row(), Periode\display_row_global(), and InputSwitch\input().

◆ infobulle()

static Icon_Action::infobulle ( $p_comment)
static

Display a info in a bubble, text is in message_javascript.

Parameters
integer$p_comment
See also
message_javascript.php
Returns
html string

Definition at line 109 of file icon_action.class.php.

110 {
111 $r='<span tabindex="-1" class="icon" style="cursor:pointer;display:inline;text-decoration:none;" onmouseover="showBulle(\''.$p_comment.'\')" onclick="showBulle(\''.$p_comment.'\')" onmouseout="hideBulle(0)">';
112 $r.="&#xf086;";
113 $r.='</span>';
114
115 return $r;
116 }

References $r.

Referenced by Card_Property\build_input(), Acc_Ledger_Purchase\confirm(), Acc_Ledger_Sale\confirm(), Pre_Op_Advanced\display(), Anc_Print\display_form(), Acc_Ledger\input(), Acc_Ledger_Fin\input(), Acc_Ledger_Purchase\input(), Acc_Ledger_Sale\input(), Manage_Table_SQL\input(), Tva_Rate_MTable\input(), and Card_Property\print().

◆ less()

static Icon_Action::less ( $p_id,
$p_javascript )
static

Definition at line 339 of file icon_action.class.php.

340 {
341 $r=sprintf('<span id="%s" onclick="%s" class="smallicon icon" style="margin-left:5px">&#xe827;</span>',
342 $p_id,
343 $p_javascript);
344 return $r;
345 }

References $p_id, and $r.

Referenced by Anticipation\input_category().

◆ lock()

static Icon_Action::lock ( $p_id,
$p_javascript )
static

Display the icon of a padlock to lock or unlock element.

Parameters
string$p_idDOMid
string$p_javascript
Returns
htmlString

Definition at line 366 of file icon_action.class.php.

367 {
368 $lock_cur="&#xe831;";
369 $lock_next="&#xe832;";
370
371 $r=sprintf( '<span id="%s" is_locked="1" onclick="toggle_lock(\'%s\');%s" class="icon smallicon">%s</span>',
372 $p_id,
373 $p_id,
374 $p_javascript,
375 $lock_cur);
376 return $r;
377 }

References $p_id, and $r.

◆ longer()

static Icon_Action::longer ( $p_domid,
$p_size )
static

Increase size of input_text (p_domid) with p_domid.

Parameters
$p_domiddomid of the input "text" element
$p_sizesize of the element
Returns
string HTML string

Definition at line 480 of file icon_action.class.php.

480 {
481 $r=sprintf('<span id="%s_longer" '.
482 ' onclick="enlarge_text(\'%s\',\'%s\') "'.
483 ' class="icon smallicon">%s</span>',
484 $p_domid,$p_domid,$p_size,"&#xf138");
485 return $r;
486 }

References $p_domid, and $r.

Referenced by Acc_Ledger\input().

◆ menu_click()

static Icon_Action::menu_click ( $p_id,
$p_javascript )
static

When a mouse is over this or if you click on it , it will trigger the javascript.

Parameters
domid$p_id
string$p_javascript
Returns
html string

Definition at line 352 of file icon_action.class.php.

353 {
354
355 $r=sprintf('<input type="button" id="%s" onclick="%s" class="smallbutton icon" value="&#xf142;" style="font-weigth:bolder">',
356 $p_id,
357 $p_javascript);
358 return $r;
359 }

References $p_id, and $r.

◆ modify()

static Icon_Action::modify ( $p_id,
$p_javascript )
static

Display the icon to modify a idem.

Parameters
type$p_id
type$p_javascript
Returns
string

Definition at line 284 of file icon_action.class.php.

285 {
286 $r='<span id="'.$p_id.'" onclick="'.$p_javascript.'" class="smallicon icon" style="margin-left:5px">&#xe80d;</span>';
287
288 return $r;
289 }

References $p_id, and $r.

Referenced by INum\change(), Manage_Table_SQL\display_icon_mod(), Forecast_Item_MTable\display_row(), Operation_Exercice\display_row(), Periode\display_row_global(), Anc_Operation\html_table(), and Document_Modele\myList().

◆ more()

static Icon_Action::more ( $p_id,
$p_javascript )
static

Definition at line 332 of file icon_action.class.php.

333 {
334 $r=sprintf('<span id="%s" onclick="%s" class="smallicon icon" style="margin-left:5px">&#xe824;</span>',
335 $p_id,
336 $p_javascript);
337 return $r;
338 }

References $p_id, and $r.

Referenced by Acc_Plan_MTable\display_row().

◆ option()

static Icon_Action::option ( $p_js)
static

Definition at line 468 of file icon_action.class.php.

468 {
469 $r=sprintf('<span id="%s" onclick="%s" class="icon smallicon">%s</span>',
470 uniqid(),$p_js,"&#xf142;");
471 return $r;
472 }

References $r.

◆ show_icon()

static Icon_Action::show_icon ( $p_id,
$javascript )
static

Return a html string with an eye.

Parameters
type$javascript
Returns
string

Definition at line 261 of file icon_action.class.php.

261 {
262 $r='';
263 $r.='<span id="'.$p_id.'" class="icon" onclick="'.$javascript.'">&#xe803;</span>';
264 return $r;
265
266 }

References $p_id, and $r.

◆ show_note()

static Icon_Action::show_note ( $p_domid)
static

Increase size of input_text (p_domid) with p_domid.

Parameters
$p_domiddomid of the input "text" element
$p_sizesize of the element
Returns
string HTML string

Definition at line 493 of file icon_action.class.php.

493 {
494 $r='<span id="'.uniqid().'" class="smallicon icon" style="background-color:yellow" onclick="document.getElementById(\''.$p_domid.'\').show()">&#xf0f6;</span>';
495 return $r;
496 }

References $p_domid, and $r.

Referenced by Acc_Ledger\input().

◆ slider()

static Icon_Action::slider ( $p_id,
$p_javascript )
static

Display the icon of a slider.

Parameters
string$p_idDOMid
string$p_javascript
Returns
htmlString

Definition at line 402 of file icon_action.class.php.

403 {
404
405 $lock_cur="&#xf1de;";
406
407 $r=sprintf( '<span id="%s" onclick="%s" class="icon smallicon">%s</span>',
408 $p_id,
409 $p_javascript,
410 $lock_cur);
411 return $r;
412 }

References $p_id, and $r.

◆ tips()

static Icon_Action::tips ( $p_comment)
static

Display a info in a bubble, text is given as parameter.

Parameters
string$p_comment
Returns
html string

Definition at line 123 of file icon_action.class.php.

124 {
125 $p_comment=noalyss_str_replace("'",' ',$p_comment);
126 $r='<span tabindex="-1" class="icon" style="cursor:pointer;display:inline;text-decoration:none;" onmouseover="displayBulle(\''.$p_comment.'\')" onclick="displayBulle(\''.$p_comment.'\')" onmouseout="hideBulle(0)">';
127 $r.="&#xf086;";
128 $r.='</span>';
129
130 return $r;
131 }

References span(), and style.

+ Here is the call graph for this function:

◆ toggle_hide()

static Icon_Action::toggle_hide ( $p_id,
$p_id_to_hide )
static

hide or display an element, to be used for an accordon

Parameters
$p_idip of the icon
$p_id_to_hideelement to hide or show
Returns
HTML string

Definition at line 504 of file icon_action.class.php.

505 {
506 $javascript=sprintf("toggleHideShow('%s','%s',true)",$p_id_to_hide,$p_id);
507 $r=sprintf('<i id="%s" onclick="%s" class="smallicon icon icon-down-open-2" style="margin-left:5px"></i>',
508 $p_id,$javascript
509 );
510 return $r;
511 }

References left.

Referenced by Output_Html_Tab\build_js().

◆ trash()

static Icon_Action::trash ( $p_id,
$p_javascript )
static

Display the icon of a trashbin.

Parameters
string$p_idDOMid
string$p_javascript
Returns
htmlString

Definition at line 273 of file icon_action.class.php.

274 {
275 $r='<span id="'.$p_id.'" onclick="'.$p_javascript.'" class="smallicon icon">&#xe80f;</span>';
276 return $r;
277 }

References $p_id, and $r.

Referenced by Follow_Up\display_children(), Manage_Table_SQL\display_icon_del(), Follow_Up\display_parent(), Follow_Up_Other_Concerned\display_row(), Forecast_Item_MTable\display_row(), Periode\display_row_global(), Template_Card_Category\input(), Tag_Group_MTable\input_tag(), Profile_Menu\sub_menu(), and Follow_Up\tag_cell().

◆ unchecked()

static Icon_Action::unchecked ( $p_id,
$p_javascript = "",
$p_classrange = "" )
static

Definition at line 437 of file icon_action.class.php.

437 {
438 $lock_cur="&#xf096";
439
440 $r=sprintf( '<span id="%s" onclick="%s" class="icon smallicon %s" >%s</span>',
441 $p_id,
442 $p_javascript,
443 $p_classrange,
444 $lock_cur);
445 return $r;
446 }

References $p_id, and $r.

Referenced by InputCheckBox\display(), and InputCheckBox\input().

◆ unlock()

static Icon_Action::unlock ( $p_id,
$p_javascript )
static

Display the icon of a trashbin.

Parameters
string$p_idDOMid
string$p_javascript
Returns
htmlString

Definition at line 384 of file icon_action.class.php.

385 {
386
387 $lock_cur="&#xe832;";
388
389 $r=sprintf( '<span id="%s" is_locked="0" onclick="toggle_lock(\'%s\');%s" class="icon smallicon">%s</span>',
390 $p_id,
391 $p_id,
392 $p_javascript,
393 $lock_cur);
394 return $r;
395 }

References $p_id, and $r.

◆ validate()

static Icon_Action::validate ( $p_id,
$p_javascript )
static

Display the icon to modify a idem.

Parameters
type$p_id
type$p_javascript
Returns
string

Definition at line 296 of file icon_action.class.php.

297 {
298 $r='<span id="'.$p_id.'" onclick="'.$p_javascript.'" class="smallicon icon" style="background-color:lightgrey; border:1px solid blue;padding:2px;margin:0px 1px 0px 1px" >&#xe844;</span>';
299
300 return $r;
301 }

References $p_id, and $r.

Referenced by Inplace_Edit\ajax_input(), and INum\change().

◆ warnbulle()

static Icon_Action::warnbulle ( $p_comment)
static

Display a warning in a bubble, text is in message_javascript.

Parameters
integer$p_comment
See also
message_javascript.php
Returns
html string

Definition at line 222 of file icon_action.class.php.

223 {
224 $r=sprintf('<span tabindex="-1" onmouseover="showBulle(\'%s\')" onclick="showBulle(\'%s\')" onmouseout="hideBulle(0)" style="color:red" class="icon">&#xe80e;</span>',
225 $p_comment, $p_comment);
226
227 return $r;
228 }

References $r.

Referenced by Card_Property\build_input(), mailTo(), and Card_Property\print().

◆ zoom()

static Icon_Action::zoom ( $p_div,
$p_javascript )
static

Display a icon for zooming.

Parameters
string$p_divid of the div to zoom
string$p_javascript
Returns
html string

Definition at line 209 of file icon_action.class.php.

210 {
211 $r=sprintf('<span id="span_%s" class="icon" onclick="%s">
212 &#xf08e;</span>', $p_div, $p_javascript);
213 return $r;
214 }

References $r.

Referenced by Noalyss\Widget\Widget\button_zoom(), and HtmlInput\title_box().


The documentation for this class was generated from the following file: