在 Scriptcase上應用 Bootstrap:
GRID:
1. 在 Events 的 onScriptInit 裡,加上 Bootstrap 的引入連結,可以在Bootstrap 官網上,複製過來即可:
<!-- CSS only -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-gH2yIJqKdNHPEq0n4Mqa/HGKIhSkIHeL5AyhkYV8i59U5AR6csBvApHHNl/vI1Bx" crossorigin="anonymous">
2. 在要顯示的欄位定義裡,套用Badges 的定義即可。
// Check for record $check_sql = "SELECT count(*) " . " FROM orders" . " WHERE employeeid = " . {employeeid}; sc_lookup(rs, $check_sql); if (isset({rs[0][0]})) { //found $v_orders_count = {rs[0][0]}; } else { $v_orders_count = 0; } if ( $v_orders_count > 100 ) { {ordcount} = "" . $v_orders_count . ""; } else { {ordcount} = "" . $v_orders_count . ""; }
沒有留言:
張貼留言