Location: PHPKode > scripts > Prioritexter > Image.php
<?php
class Image {

  function image($file_name, $alt="", $hspace=0, $vspace=0,
		 $width="", $height="") {
    $s = "<img src=\"images/". $file_name ."\" border=0 "
       . "hspace=$hspace vspace=$vspace alt=\"$alt\" "
       . "title=\"$alt\"";
    if ($width)
      $s .= " width=$width";
    if ($height)
      $s .= " height=$height";
    $s .=">";
    return $s;
  }

  function sub_arr() {
    return Image::image("sub_arrow.gif","","",10,12);
  }

  function icon($type, $alt="", $hspace=2, $vspace=0) {
    return Image::image($type .".gif", $alt, $hspace, $vspace, 12, 12);
  }

  function diamond($alt="", $hspace=0, $vspace=0) {
    return Image::image("smallaquadiamond.gif", $alt, $hspace, $vspace,7,8);
  }

  function editSymbol($alt="", $hspace=0, $vspace=0) {
    return Image::image("editbutton.gif",$alt, $hspace,$vspace,46,12);
  }

  function goArrow($alt="", $hspace=0, $vspace=0) {
    return Image::image("gradientarrowgo.gif",$alt, $hspace,$vspace,25,13);
  }

  function spacer($width=1,$height=1) {
    return Image::image("spacer.gif","",0,0,$width,$height);
  }

  function checkIcon($alt="", $hspace=2, $vspace=0) {
    return Image::image("checkmark.gif", $alt, $hspace, $vspace, 11, 10);
  }

  function alarmIcon($alt="", $hspace=2, $vspace=0) {
    return Image::image("alarm.gif", $alt, $hspace, $vspace, 10, 10);
  }

  function deleteIcon($alt="", $hspace=2, $vspace=0) {
    return Image::image("delete.gif", $alt, $hspace, $vspace, 10, 13);
  }

  function editIcon($alt="", $hspace=2, $vspace=0) {
    return Image::image("edit.gif", $alt, $hspace, $vspace, 12, 15);
  }
}
?>
Return current item: Prioritexter