home *** CD-ROM | disk | FTP | other *** search
- <?php
- function button($title, $link, $target, $color, $arrow)
- {
- $lenght = strlen($title);
- $start = 0;
-
- echo "<a href=$link $target>";
- echo "<img src='images_easyphp/button_left.gif' width='8' height='18' border='0' style='background:" . $color . ";' alt='[' />";
- if ($arrow == 1)
- {
- echo "<img src='images_easyphp/button_arrow.gif' width='7' height='10' border='0' style='padding:4px 1px 4px 1px;background:" . $color . ";' alt='*' />";
- }
- while($start < $lenght){
- $car = substr($title, $start, 1);
- echo "<img src='images_easyphp/lettre_".$car.".gif' border='0' style='padding:4px 1px 4px 1px;background:" . $color . ";' alt='" . $car . "' />";
- $start++;
- }
- echo "<img src='images_easyphp/button_right.gif' width='8' height='18' border='0' style='margin:0px 2px 0px 0px;background:" . $color . ";' alt=']' />";
- echo "</a>";
- }
-
-
-
- function version($num)
- {
- $lenght = strlen($num);
- $start = 0;
- while($start < $lenght){
- $chiffre=substr($num,$start,1);
- print("<img src='images_easyphp/chiffre_".$chiffre.".gif' alt='".$chiffre."' border='0' />");
- $start++;
- }
- }
-
- function i18n_string($string)
- {
- $string = htmlspecialchars($string);
- return $string;
-
-
- }
- ?>