diff --git a/html/css/style-classic7.css b/html/css/style-classic7.css index 3b7abb2cb..5d3947528 100644 --- a/html/css/style-classic7.css +++ b/html/css/style-classic7.css @@ -54,7 +54,11 @@ input:focus { color:orangered; font-style: italic; background-color:transparent; - + font-size: 115%; + font-weight: 0; + padding: 5px; + margin: 5px; + font-family: sans-serif; } a.mtitle span.notice { text-decoration: underline; diff --git a/include/lib/ac_common.php b/include/lib/ac_common.php index dde53df18..87c11f5b0 100644 --- a/include/lib/ac_common.php +++ b/include/lib/ac_common.php @@ -39,7 +39,10 @@ function h($p_string) { return htmlspecialchars($p_string,ENT_QUOTES|ENT_HTML5,'UTF-8',true); } - +function p($p_string) +{ + return '
'.$p_string."
"; +} function span($p_string, $p_extra='') { return '' . $p_string . ''; @@ -1571,4 +1574,4 @@ function add_http_link($text) return $ret; -} \ No newline at end of file +} diff --git a/include/lib/html_input.class.php b/include/lib/html_input.class.php index 63433cdee..de5372919 100755 --- a/include/lib/html_input.class.php +++ b/include/lib/html_input.class.php @@ -238,7 +238,7 @@ class HtmlInput */ static function button_anchor($p_label, $p_value, $p_name="", - $p_javascript="", $p_class="button") + $p_javascript="", $p_class="smallbutton") { $href=""; if ($p_value!="") diff --git a/include/lib/icon_action.class.php b/include/lib/icon_action.class.php index ddf9df9d6..8ba3468db 100644 --- a/include/lib/icon_action.class.php +++ b/include/lib/icon_action.class.php @@ -211,7 +211,20 @@ class Icon_Action static function hide($action, $javascript) { $r=''; - $r.=''.$action.''; + $r.=''.$action.''; + return $r; + } + /** + * Return a html string with an anchor to hide a div, put it in the right corner + * @param $action action action to perform (message) + * @param $javascript javascript + * @note not protected against html + * @see Acc_Ledger::display_search_form + */ + static function hide_icon( $p_id,$javascript) + { + $r=''; + $r.=''."".''; return $r; } /** @@ -219,9 +232,9 @@ class Icon_Action * @param type $javascript * @return string */ - static function notvisible($javascript) { + static function show_icon($p_id,$javascript) { $r=''; - $r.=''; + $r.=''; return $r; } @@ -281,7 +294,14 @@ class Icon_Action } static function more($p_id,$p_javascript) { - $r=sprintf('↠', + $r=sprintf('', + $p_id, + $p_javascript); + return $r; + } + static function less($p_id,$p_javascript) + { + $r=sprintf('', $p_id, $p_javascript); return $r; diff --git a/include/lib/inplace_edit.class.php b/include/lib/inplace_edit.class.php index 1868061b2..5b224a311 100644 --- a/include/lib/inplace_edit.class.php +++ b/include/lib/inplace_edit.class.php @@ -78,8 +78,8 @@ class Inplace_Edit if ($this->input instanceof ITextarea) { echo 'warnbulle
++ hide - +
++ + hide_icon +
++ show_icon +
trash
@@ -62,12 +71,13 @@ include_once NOALYSS_INCLUDE."/lib/icon_action.class.php";validate
-- detail -
+more
++ less +
Lock