@@ 281-293 (lines=13) @@ | ||
278 | * |
|
279 | * @return bool |
|
280 | */ |
|
281 | public function addConfigError($value = '') |
|
282 | { |
|
283 | $path = XOOPS_URL . '/Frameworks/moduleclasses/icons/16/'; |
|
284 | $line = ""; |
|
285 | $line .= "<span style='color : red; font-weight : bold;'>"; |
|
286 | $line .= "<img src='" . $path . "0.png' >"; |
|
287 | $line .= $value; |
|
288 | $line .= "</span>"; |
|
289 | $value = $line; |
|
290 | $type = 'default'; |
|
291 | ||
292 | return static::$ModuleAdmin->addConfigBoxLine($value, $type); |
|
293 | } |
|
294 | ||
295 | /** |
|
296 | * Add accept (OK) message to config box |
|
@@ 302-314 (lines=13) @@ | ||
299 | * |
|
300 | * @return bool |
|
301 | */ |
|
302 | public function addConfigAccept($value = '') |
|
303 | { |
|
304 | $path = XOOPS_URL . '/Frameworks/moduleclasses/icons/16/'; |
|
305 | $line = ""; |
|
306 | $line .= "<span style='color : green;'>"; |
|
307 | $line .= "<img src='" . $path . "1.png' >"; |
|
308 | $line .= $value; |
|
309 | $line .= "</span>"; |
|
310 | $value = $line; |
|
311 | $type = 'default'; |
|
312 | ||
313 | return static::$ModuleAdmin->addConfigBoxLine($value, $type); |
|
314 | } |
|
315 | ||
316 | /** |
|
317 | * Add warning to config box |
|
@@ 323-335 (lines=13) @@ | ||
320 | * |
|
321 | * @return bool |
|
322 | */ |
|
323 | public function addConfigWarning($value = '') |
|
324 | { |
|
325 | $path = XOOPS_URL . '/Frameworks/moduleclasses/icons/16/'; |
|
326 | $line = ""; |
|
327 | $line .= "<span style='color : orange; font-weight : bold;'>"; |
|
328 | $line .= "<img src='" . $path . "warning.png' >"; |
|
329 | $line .= $value; |
|
330 | $line .= "</span>"; |
|
331 | $value = $line; |
|
332 | $type = 'default'; |
|
333 | ||
334 | return static::$ModuleAdmin->addConfigBoxLine($value, $type); |
|
335 | } |
|
336 | ||
337 | ||
338 | /** |