由於大部分是延用的extjs已有的程式,所以直接貼上頁面**,之後再做進一步功能上的完善
首先是看下效果圖
檔案管理
使用者管理
******.js
* */getmodules: function() ,
// config for the start menu
getstartconfig: function() , '-', ]};}
});layout: 'fit',
items:
new ext.grid.gridpanel(, [,,
,]),
data: ext.grid.dummydata
}),cm: new ext.grid.columnmodel([
new ext.grid.rownumberer(),,,
,]),
viewconfig: ,
//autoexpandcolumn:'company',
tbar: [, '-', , '-', ]
})});
}win.show();
}});
layout: 'fit',
items:
new ext.tabpanel(, , , ]
})});
}win.show();
}});
// array data for the grid
ext.grid.dummydata = [
['3m co', 71.72, 0.02, 0.03, '9/1 12:00am'],
['alcoa inc', 29.01, 0.42, 1.47, '9/1 12:00am'],
['american express company', 52.55, 0.01, 0.02, '9/1 12:00am'],
['american international group, inc.', 64.13, 0.31, 0.49, '9/1 12:00am'],
['at&t inc.', 31.61, -0.48, -1.54, '9/1 12:00am'],
['caterpillar inc.', 67.27, 0.92, 1.39, '9/1 12:00am'],
['citigroup, inc.', 49.37, 0.02, 0.04, '9/1 12:00am'],
['exxon mobil corp', 68.1, -0.43, -0.64, '9/1 12:00am'],
['general electric company', 34.14, -0.08, -0.23, '9/1 12:00am'],
['general motors corporation', 30.27, 1.09, 3.74, '9/1 12:00am'],
['hewlett-packard co.', 36.53, -0.03, -0.08, '9/1 12:00am'],
['honeywell intl inc', 38.77, 0.05, 0.13, '9/1 12:00am'],
['intel corporation', 19.88, 0.31, 1.58, '9/1 12:00am'],
['johnson & johnson', 64.72, 0.06, 0.09, '9/1 12:00am'],
['merck & co., inc.', 40.96, 0.41, 1.01, '9/1 12:00am'],
['microsoft corporation', 25.84, 0.14, 0.54, '9/1 12:00am'],
['the coca-cola company', 45.07, 0.26, 0.58, '9/1 12:00am'],
['the procter & gamble company', 61.91, 0.01, 0.02, '9/1 12:00am'],
['wal-mart stores, inc.', 45.45, 0.73, 1.63, '9/1 12:00am'],
['walt disney company (the) (holding company)', 29.89, 0.24, 0.81, '9/1 12:00am']
];
ExtJs教程 帶核取方塊的選單
先來張效果圖 如下 需要注意的是 1 需要先定義treestore,再定義menutesttree,最後定義menutestwithcheckbox 2 在選單子項前面出現核取方塊的關鍵是後台返回的json資料流的每條資料中 包含了 checked 屬性 定義獲取選單資料的store var men...
ExtJs3帶條件的分頁查詢的實現
使用extjs的同志們一定知道gridpanel哈 神器一般,非常方便的顯示 型別的資料,例如神馬使用者列表 產品列表 銷售單列表 x列表等。從資料庫中查詢所需的資料,以列表的形式顯示出來,我們理應想到對這種資料實現搜尋。搜尋最簡單的方法就是reload那個與gridpanel關聯的store,將搜...
ExtJs3帶條件的分頁查詢的實現
使用extjs的同志們一定知道gridpanel哈 神器一般,非常方便的顯示 型別的資料,例如神馬使用者列表 產品列表 銷售單列表 x列表等。從資料庫中查詢所需的資料,以列表的形式顯示出來,我們理應想到對這種資料實現搜尋。搜尋最簡單的方法就是reload那個與gridpanel關聯的store,將搜...