Advertisement
gridphp

Untitled

Mar 6th, 2014
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.27 KB | None | 0 0
  1. $col["on_data_display"] = array("display_keyword","");
  2.  
  3. function display_keyword($data)
  4. {
  5.     $code = "<input type='button' value='button1'>";
  6.    
  7.     // your condition, for e.g.
  8.     if ($data["field"] == 10)
  9.         $code .= "<input type='button' value='button2'>";
  10.    
  11.     return $code;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement