@@ 317-333 (lines=17) @@ | ||
314 | * |
|
315 | * @return bool |
|
316 | */ |
|
317 | public static function addConfigError($value = '') |
|
318 | { |
|
319 | if (self::is26()) { |
|
320 | $type='error'; |
|
321 | } else { |
|
322 | $path=\XoopsBaseConfig::get('url').'/Frameworks/moduleclasses/icons/16/'; |
|
323 | $line = ""; |
|
324 | $line .= "<span style='color : red; font-weight : bold;'>"; |
|
325 | $line .= "<img src='" . $path . "off.png' >"; |
|
326 | $line .= $value; |
|
327 | $line .= "</span>"; |
|
328 | $value=$line; |
|
329 | $type = 'default'; |
|
330 | } |
|
331 | ||
332 | return self::$ModuleAdmin->addConfigBoxLine($value, $type); |
|
333 | } |
|
334 | ||
335 | /** |
|
336 | * Add accept (OK) message to config box |
|
@@ 342-358 (lines=17) @@ | ||
339 | * |
|
340 | * @return bool |
|
341 | */ |
|
342 | public static function addConfigAccept($value = '') |
|
343 | { |
|
344 | if (self::is26()) { |
|
345 | $type='accept'; |
|
346 | } else { |
|
347 | $path=\XoopsBaseConfig::get('url').'/Frameworks/moduleclasses/icons/16/'; |
|
348 | $line = ""; |
|
349 | $line .= "<span style='color : green;'>"; |
|
350 | $line .= "<img src='" . $path . "on.png' >"; |
|
351 | $line .= $value; |
|
352 | $line .= "</span>"; |
|
353 | $value=$line; |
|
354 | $type = 'default'; |
|
355 | } |
|
356 | ||
357 | return self::$ModuleAdmin->addConfigBoxLine($value, $type); |
|
358 | } |
|
359 | ||
360 | /** |
|
361 | * Add warning to config box |
|
@@ 367-383 (lines=17) @@ | ||
364 | * |
|
365 | * @return bool |
|
366 | */ |
|
367 | public static function addConfigWarning($value = '') |
|
368 | { |
|
369 | if (self::is26()) { |
|
370 | $type='warning'; |
|
371 | } else { |
|
372 | $path=XOOPS_URL.'/Frameworks/moduleclasses/icons/16/'; |
|
373 | $line = ""; |
|
374 | $line .= "<span style='color : orange; font-weight : bold;'>"; |
|
375 | $line .= "<img src='" . $path . "warning.png' >"; |
|
376 | $line .= $value; |
|
377 | $line .= "</span>"; |
|
378 | $value=$line; |
|
379 | $type = 'default'; |
|
380 | } |
|
381 | ||
382 | return self::$ModuleAdmin->addConfigBoxLine($value, $type); |
|
383 | } |
|
384 | ||
385 | /** |
|
386 | * Get an appropriate URL for system provided icons. |