public static function button($base_images_path, $alt_text, $button_id, $link) { fg_check_start_with_slash($base_images_path); $img_selected = $base_images_path . "_selected.png"; $img_not_selected = $base_images_path . "_not_selected.png"; $img_mouse_over = $base_images_path . "_mouse_over.png"; ?> <a href="<?php echo $link; ?> "> <img style="border-width:0px" id="<?php echo $button_id; ?> " onmousedown="this.src ='<?php echo $img_selected; ?> ' " onmouseover="this.src ='<?php echo $img_mouse_over; ?> ' " onmouseout="this.src ='<?php echo $img_not_selected; ?> ' " src="<?php echo $img_not_selected; ?> " alt="<?php echo $alt_text; ?> "> </a> <?php }
public static function button($base_images_path, $button_id, $alt_text, $action) { fg_check_start_with_slash($base_images_path); $img_selected = $base_images_path . "_selected.png"; $img_not_selected = $base_images_path . "_not_selected.png"; $img_mouse_over = $base_images_path . "_mouse_over.png"; ?> <input onclick="fg_update_azione_form('<?php echo self::$current_form; ?> ','<?php echo $action; ?> ')" type="image" id="<?php echo $button_id; ?> " onmousedown="this.src='<?php echo $img_selected; ?> '" onmouseout="this.src='<?php echo $img_not_selected; ?> '" onmouseover="this.src='<?php echo $img_mouse_over; ?> '" src="<?php echo $img_not_selected; ?> " > <?php }
function fg_write_image_menu_item($icon_name, $title, $link) { $linkIndex = fg_get("linkIndex"); fg_set("linkIndex", $linkIndex + 1); $linkId = "link_" . $linkIndex; fg_check_not_start_with_slash($icon_name); fg_check_start_with_slash($link); $full_image_path = "/immagini/grafica/icone/" . $icon_name; echo "<table><tbody><tr>"; echo "<td><a href=\"{$link}\"><img style=\"border-width:0px\" src=\"{$full_image_path}\" width=\"35\" height=\"35\" alt=\"{$title}\"></a></td>"; echo "<td align=\"middle\"><a id='" . $linkId . "' class=\"link_not_selected\" onmouseover=\"fg_js_update_class('" . $linkId . "','link_mouse_over')\" onmouseout=\"fg_js_update_class('" . $linkId . "','link_not_selected')\" href=\"{$link}\">{$title}</a></td>"; echo "</tr></tbody></table>"; }