Tuesday, 15 February 2011

javascript - Give row color after onClick row and make request other page and stay color changed -


I need to provide line color after the onClick line and make other pages as requested and change colors Notes: CurrentAlline color And change the disabled color changed after the refresh page

   
  & lt ;? Php $ resualt = mssql_query ("Select * Address From"); Echo "& lt; table range = '1' class = 'imaginative' id = 'imagetable' width = '50% '& gt; \ n"; Echo '& lt; Tr & gt; '; Echo '& lt; Th & gt; Id & lt; / Th & gt; ' '& Lt; Th & gt; User ID & lt; / Th & gt; ' '& Lt; Th & gt; Street & lt; / Th & gt; ' '& Lt; Th & gt; Quarter & lt; / Th & gt; '& Lt; Th & gt; Mobile number & lt; / Th & gt; ' '& Lt; Th & gt; Email & lt; / Th & gt; & Lt; Th & gt; From & lt; / Th & gt; To '& Lt; Th & gt; To & lt; / Th & gt; ' '& Lt; Th & gt; Notes & lt; / Th & gt; '; Echo & lt; / Tr & gt; '; While ($ row = mssql_fetch_assoc ($ resualt)) {echo "& lt; tr onClick = 'myPopup ($ line [id])' & gt; \ n" & Lt; td & gt; {$ row ['id']} & lt; / td & gt; \ n "." & Lt; td & gt; {$ row ['user_id']} & lt; / Td & gt; \ n "." & Lt; td & gt; {$ row ['road']} & lt; / td & gt; & lt;.;;;; TD & gt; {$ line ['Quarter']} & lt; / td & gt; \ n & lt;.;;; TD & gt; {$ line ['PHONE_NUMBER']} & lt; / td & gt; \ n " & Lt; Td> {$ Row ['email']} & lt; / Td> \ N "." & Lt; TD & gt; {$ Row ['from_date']} & lt; / Td> \ N "." & Lt; TD & gt; {$ Line ['TO_DATE']} & lt; / TD & gt; \ N For & lt; "."; TD & gt; {$ Line ['other_info']} & lt; / TD & gt; \ N ". '& Lt; / tr & gt; . "\ N";} Echo "& lt; / Table & gt; Any Help?   

P> The checks given in your PHP match the ID id loop. When it matches, add a style parameter or CSS class depending on your situation.

Example:

  // until your code goes to the loop .. while ($ line = mssql_fetch_assoc ($ resualt)) {echo " {$ row ['id']} & lt; / td & gt; \ n". // The rest of the code in your loop is going on here ...  

This is not the most beautiful or secure code, but it's already you think that code is appropriate.


No comments:

Post a Comment