Advertisement
Guest User

Untitled

a guest
May 22nd, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.96 KB | None | 0 0
  1. <?php
  2. class form {
  3.     public function button($string, $submitBtn = 0) {
  4.         $button .= '<a href="#"><div style="float: left; width: 16px; height: 25px; background: url(images/button-left.png);"></div>';
  5.         if ( $submitBtn == 1 )
  6.             $button .= '<button style="float: left; height: 25px; background: url(images/button-middle.png) repeat; color: #fff;" onmouseover="this.style.color = \'#2f2f2f\'" onmouseout="this.style.color = \'#fff\'""><div style="padding-top: 5px;">'.$string.'</div></button>';
  7.         else
  8.             $button .= '<a style="display: block; float: left; height: 25px; background: url(images/button-middle.png) repeat; color: #fff;" onmouseover="this.style.color = \'#2f2f2f\'" onmouseout="this.style.color = \'#fff\'""><div style="padding-top: 5px;">'.$string.'</div></a>';
  9.         $button .= '<div style="float: left; width: 18px; height: 25px; background: url(images/button-right.png);"></div>';
  10.         $button .= '<div style="clear: both;"></div></a>';
  11.         return $button;
  12.     }
  13. }
  14. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement