1 | <?php |
---|
2 | // Update configuration settings in database |
---|
3 | |
---|
4 | // +-----------------------------------------------------------------------+ |
---|
5 | //// TOOLTIP |
---|
6 | // +-----------------------------------------------------------------------+ |
---|
7 | if ( isset($_POST['save']) or isset($_POST['preview'])) |
---|
8 | { $param_llgbo_tooltip = array( |
---|
9 | 'TT-width' => empty($_POST['llgbo_tooltip_width']) ? $default_tooltip['TT-width'] : $_POST['llgbo_tooltip_width'], |
---|
10 | 'TT-size' => empty($_POST['llgbo_tooltip_size']) ? $default_tooltip['TT-size'] : $_POST['llgbo_tooltip_size'] , |
---|
11 | 'TT-bordercolor' => empty($_POST['llgbo_tooltip_bordercolor']) ? $default_tooltip['TT-bordercolor'] : $_POST['llgbo_tooltip_bordercolor'], |
---|
12 | 'TT-bgcolor' => empty($_POST['llgbo_tooltip_bgcolor']) ? $default_tooltip['TT-bgcolor'] : $_POST['llgbo_tooltip_bgcolor'], |
---|
13 | 'TT-titlecolor' => empty($_POST['llgbo_tooltip_titlecolor']) ? $default_tooltip['TT-titlecolor'] : $_POST['llgbo_tooltip_titlecolor'], |
---|
14 | 'TT-textcolor' => empty($_POST['llgbo_tooltip_textcolor']) ? $default_tooltip['TT-textcolor'] : $_POST['llgbo_tooltip_textcolor']); |
---|
15 | |
---|
16 | if ( isset($_POST['save']) ) |
---|
17 | { $conf['LLGBO2'] = update_llgboconf($conf['LLGBO2'],$param_llgbo_tooltip); |
---|
18 | //$conf['LLGBO2'] = array_replace($conf['LLGBO2'], $param_llgbo_tooltip); |
---|
19 | conf_update_param('LLGBO2_settings',$conf['LLGBO2']); |
---|
20 | array_push($page['infos'], l10n('Information data registered in database')); } |
---|
21 | } |
---|
22 | |
---|
23 | if ( isset($_POST['preview']) ) |
---|
24 | { $conf['LLGBO2'] = update_llgboconf($conf['LLGBO2'],$param_llgbo_tooltip); |
---|
25 | // $conf['LLGBO2'] = array_replace($conf['LLGBO2'], $param_llgbo_tooltip); |
---|
26 | } |
---|
27 | |
---|
28 | if ( isset($_POST['reset']) ) |
---|
29 | { $conf['LLGBO2'] = update_llgboconf($conf['LLGBO2'], $default_tooltip); |
---|
30 | // $conf['LLGBO2'] = array_replace($conf['LLGBO2'], $default_tooltip); |
---|
31 | } |
---|
32 | |
---|
33 | // Reload settings for correct display after update |
---|
34 | $template->assign('LLGBO_SETTINGS' , array( |
---|
35 | 'tooltip_width' => $conf['LLGBO2']['TT-width'], |
---|
36 | 'tooltip_size' => $conf['LLGBO2']['TT-size'], |
---|
37 | 'tooltip_bordercolor' => $conf['LLGBO2']['TT-bordercolor'], |
---|
38 | 'tooltip_bgcolor' => $conf['LLGBO2']['TT-bgcolor'], |
---|
39 | 'tooltip_titlecolor' => $conf['LLGBO2']['TT-titlecolor'], |
---|
40 | 'tooltip_textcolor' => $conf['LLGBO2']['TT-textcolor']), |
---|
41 | true); |
---|
42 | |
---|
43 | |
---|
44 | $template ->assign ('LLGBO_DISPLAY_THIS_TOOLTIP',' |
---|
45 | <! --- LLGBO tooltip css--> |
---|
46 | <style type="text/css"> |
---|
47 | div#toolTip {background:'. $conf['LLGBO2']['TT-bgcolor'].';color:'. $conf['LLGBO2']['TT-textcolor'].';border:'. $conf['LLGBO2']['TT-size'].'px solid '. $conf['LLGBO2']['TT-bordercolor'].';padding:8px;min-height:1em; |
---|
48 | -moz-border-radius:20px;border-radius:20px;-moz-box-shadow: 0px 0px 35px '. $conf['LLGBO2']['TT-bordercolor'].' inset ;-webkit-box-shadow:0px 0px 35px '. $conf['LLGBO2']['TT-bordercolor'].' inset } |
---|
49 | div#toolTip p {margin:0;padding:0;color:'. $conf['LLGBO2']['TT-textcolor'].';font-size:0.8em;font-family:Verdana,Arial,Helvetica,sans-serif;text-align:left} |
---|
50 | div#toolTip p em {display:block;margin-top:3px;font-style:normal;font-weight:bold;text-align:left} |
---|
51 | div#toolTip p.title {color:'. $conf['LLGBO2']['TT-titlecolor'].';text-align:center;padding:0 0 3px 0;} |
---|
52 | </style>'); |
---|
53 | |
---|
54 | // +-----------------------------------------------------------------------+ |
---|
55 | //// END TOOLTIP |
---|
56 | // +-----------------------------------------------------------------------+ |
---|
57 | ?> |
---|