inc/icons.php
da0e59cc
 <?php
c208bd90
 /*
 This file belongs to the Webinterface of schokokeks.org Hosting
 
cf54502a
 Written 2008-2018 by schokokeks.org Hosting, namely
c208bd90
   Bernd Wurst <bernd@schokokeks.org>
   Hanno Böck <hanno@schokokeks.org>
 
 To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.
 
2626dd47
 You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see
c208bd90
 http://creativecommons.org/publicdomain/zero/1.0/
 
 Nevertheless, in case you use a significant part of this code, we ask (but not require, see the license) that you keep the authors' names in place and return your changes to the public. We would be especially happy if you tell us what you're going to do with this code.
 */
da0e59cc
 
 require_once('inc/base.php');
 
 function icon_warning($title = '')
 {
2626dd47
     global $prefix;
     return "<img src=\"{$prefix}images/warning.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
da0e59cc
 }
 
b4c3e67f
 function icon_enabled_phpxx($title = '', $major, $minor)
359af7b0
 {
2626dd47
     global $prefix;
     return "<img src=\"{$prefix}images/ok-php$major$minor.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
359af7b0
 }
 
51a77d5e
 function icon_enabled_warning($title = '')
aeb0e580
 {
2626dd47
     global $prefix;
     return "<img src=\"{$prefix}images/ok-warning.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
aeb0e580
 }
 
da0e59cc
 function icon_enabled($title = '')
 {
2626dd47
     global $prefix;
     return "<img src=\"{$prefix}images/ok.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
da0e59cc
 }
 
 
 function icon_disabled($title = '')
 {
2626dd47
     global $prefix;
     //return "";
     return "<img src=\"{$prefix}images/disabled.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
da0e59cc
 }
 
 
 function icon_ok($title = '')
 {
2626dd47
     global $prefix;
     return "<img src=\"{$prefix}images/ok.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
da0e59cc
 }
 
 
 
 function icon_error($title = '')
 {
2626dd47
     global $prefix;
     return "<img src=\"{$prefix}images/error.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
da0e59cc
 }
 
92f133ee
 function icon_edit($title = '')
 {
2626dd47
     global $prefix;
     return "<img src=\"{$prefix}images/edit.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
92f133ee
 }
 
da0e59cc
 function icon_pwchange($title = '')
 {
2626dd47
     global $prefix;
     return "<img src=\"{$prefix}images/pwchange.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
da0e59cc
 }
 
 
 function icon_add($title = '')
 {
2626dd47
     global $prefix;
     return "<img src=\"{$prefix}images/add.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
da0e59cc
 }
 
 
 
 function icon_delete($title = '')
 {
2626dd47
     global $prefix;
     return "<img src=\"{$prefix}images/delete.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
da0e59cc
 }
 
 
 
56c4c2ac
 function other_icon($filename, $title = '')
 {
2626dd47
     global $prefix;
     return "<img src=\"{$prefix}images/{$filename}\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
56c4c2ac
 }