function getMhsTabs(getid){ var hide; if (getid == true){ hide = true; } else { hide = false; } var mhsTabs = { //new Ext.TabPanel({ //{ //Ext.widget('tabpanel', { //for Extjs-4 xtype: 'tabpanel', id: 'tabpanel-mhs', //deferredRender:false, //width: 800, //height: 500, // 475 kalo pake ToolBar-Menu //frame: true, defaults :{ bodyPadding: 10, autoScroll: true, frame: true }, activeTab: 0, items: [{ title: 'Data Pribadi', id: 'tab.personal', //forceLayout: true, //INI MAKSA LAYOUT, YG HBOX JADI INVISIBLE items: [getMhsPersonal()] //[fPersonal] },{ title: 'Orangtua/Wali', id: 'tab.ortu', //disabled:true, //to disable for selecting a tab items: [getMhsOrtu()] //[fOrtu] },{ title: 'Pendaftaran', id: 'tab.daftar', items: [getMhsDaftar()] //[fDaftar] },{ title: 'Asal SLTA', id: 'tab.slta', items: [getMhsSlta()] //[fSlta] },{ title: 'Asal P.T./Pindahan', id: 'tab.asalpt', items: [getMhsAsalPT()] //[fAsalpt] },{ title: 'Pekerjaan Mahasiswa', id: 'tab.pekerjaan', items: [getMhsJob()] //[fPekerjaan] },{ title: 'TA / Skripsi', id: 'tab.skripsi', items: [getMhsSkripsi()] //[fPekerjaan] },{ title: 'Kelengkapan Syarat Sidang', id: 'tab.syaratsidang', items: [getMhsSyaratSidang()] //[fPekerjaan] },{ title: 'Kelengkapan Syarat Wisuda', id: 'tab.syaratwisuda', items: [getMhsSyaratWisuda()] //[fPekerjaan] },{ title: 'Alumni', id: 'tab.alumni', items: [getMhsAlumni()] //[fAlumni] },{ title: 'Lain-lain', id: 'tab.datalain', items: [getMhsLain()] //[fDatalain] },{ title: 'Nilai', id: 'tab.nilai', items: [getMhsNilai()] //[fDatalain] },{ title: 'DPK/DPP', id: 'tab.dpkdpp', items: [getMhsDPKDPP()] //[fDatalain] },{ title: 'Absensi', id: 'tab.absen', items: [getMhsAbsen()] //[fDatalain] }] };//); return mhsTabs; }