BB=new Array(); var Count=0;var Boo='false';Count_table=0; var Var_system='false'; var Id_system=''; function GetItemById(id){ return document.getElementById(id); } function On_Click(id){ // them Rand1="&rand="+Math.random(); console.log(Rand1); obj=eval('document.forms[0].Rand'); obj.value=Rand1; //=========== var father_ = id; var id_system=GetItemById(Id_system); if ((id_system!=id) & (Id_system!="")) id_system.style.color='black'; Var_system='true'; father_.style.color="blue"; //hungpn bo sung icon check if(document.getElementById("vbden")!=null) { document.getElementById("vbden").className=""; } var arrId = father_.id.split("_"); if(document.getElementById("lblCss_" + arrId[1]) !=null) document.getElementById("lblCss_" + arrId[1]).className=""; for(k=0; k<=Count; k++) { if(k==arrId[1]) { document.getElementById("lblCss_" + arrId[1]).className="fa fa-chevron-right"; } else { if(document.getElementById("lblCss_" + k)!=null) document.getElementById("lblCss_" + k).className=""; } } //end of hungpn } function Out_Mouse(id){ var father_ = id; var id_system=GetItemById(Id_system); if (id_system!=id) Var_system=='true' if ((Var_system=='false')||(id_system!=id)) father_.style.color='black'; } function Move_Mouse(id){ var father_ = id; var id_system=GetItemById(Id_system); if (id_system!=id) Var_system=='true' if ((Var_system=='false')||(id_system!=id)){ father_.style.color='red'; } } /* function Menu_father(id,_giatri){ var father_ = document.getElementById(id); for (var i=0;i<=Count;i++){ var _tid = 'table_'+i; if (id != _tid) { //var id_=eval(); var id_ = document.getElementById(_tid); if(id_ !=null) { id_.style.display='none'; } arrId_ = _tid.split("_"); if(document.getElementById("lblCss_" + arrId_[1])!=null) { document.getElementById("lblCss_" + arrId_[1]).className=''; } if(document.getElementById("id_" + arrId_[1])!=null) { document.getElementById("id_" + arrId_[1]).style.color='black'; } } } if(father_!=null) { father_.style.display='inline-table'; } alert(father_); var arrId = father_.id.split("_"); if(_giatri=='1') { if(document.getElementById("vbden")==null) { if(document.getElementById("lblCss_" + arrId[1]) !=null) { document.getElementById("lblCss_" + arrId[1]).className="fa fa-chevron-right"; } } } //hungpn bo sung if(_giatri=='0') { if(document.getElementById("vbden")!=null) document.getElementById("vbden").className=""; for(k=0; k<=Count; k++) { if(document.getElementById("lblCss_" + k)!=null) document.getElementById("lblCss_" + k).className=""; } var id_system=GetItemById(Id_system); if ((id_system!=id) & (Id_system!="")) id_system.style.color='black'; if(father_!=null) { row = father_.rows[0].cells.item(0).innerHTML; _id = row.substring(row.indexOf("id_"),row.indexOf('onmouseover')); _arrId =_id.split('\"'); arrId= _arrId[0].split("_"); if(document.getElementById("lblCss_" + arrId[1])!=null) { document.getElementById("lblCss_" + arrId[1]).className="fa fa-chevron-right"; } } } //end of hungpn } */ //hungpn lay danh sach id table dang duoc chon o ngoai trang chu Index /* function lay_tableindex() { var indexTable=''; for (var i=1;i<=Count_table;i++) { var _tid = 'table_'+ i + ' tr td i'; var children = document.querySelectorAll("#" + _tid ); for(var j=0; j"); document.write("CHỨC NĂNG"); while ((Count "+BB[Count][0]+""); Count++; } else{Boo='true';} } while ((Count  "+BB[Count][0]+""); document.write(""); } else{ if (BB[Count][1]=='1'){ document.write(""); }else{ document.write(""); } if (Count+1>=BB.length){ document.write("
  "+BB[Count][0]+"
 "+BB[Count][0]+"
"); } else{ if (BB[Count+1][1]==''){ Count_table++; document.write(""); document.write("  "+BB[Count+1][0]+""); document.write(""); Count++; } } } Count++; } //hungpn bo sung default onload /* if(lay_tableindex() !=undefined ) { window.onload=Menu_father(lay_tableindex(),1); } */ //end of hungpn bo sung }