Phpgrid語法

出自TSK WIKI
於 2015年10月17日 (六) 17:17 由 Root​(留言 | 貢獻) 所做的修訂 (→變更phpgrid header顏色)
跳至導覽 跳至搜尋

<php> $sg1 -> set_col_property("TA003",

                       array("formatter"=>"string",
                           "sorttype"=>"date"))->enable_advanced_search(true);

</php>

變更Column Color

<php> <?php ... $dg->set_col_property('orderNumber', array('classes'=>'comppk')); $dg->set_col_property('productCode', array('classes'=>'comppk')); ... ?> </php> <css> <style>

   .comppk{background-color: greenyellow !important;}

</style> </css>

變更phpgrid header顏色

<css> <style type="text/css"> .ui-jqgrid .ui-widget-header { border: 1px solid #0b3e6f; background: #0b3e6f url(ui-bg_diagonals-thick_15_0b3e6f_40x40.png) 50% 50% repeat-x; color: #f6f6f6; } </style> </css>