Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class form {
- public function button($string, $submitBtn = 0) {
- $button .= '<a href="#"><div style="float: left; width: 16px; height: 25px; background: url(images/button-left.png);"></div>';
- if ( $submitBtn == 1 )
- $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>';
- else
- $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>';
- $button .= '<div style="float: left; width: 18px; height: 25px; background: url(images/button-right.png);"></div>';
- $button .= '<div style="clear: both;"></div></a>';
- return $button;
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement