Advertisement
Guest User

Untitled

a guest
Jul 13th, 2016
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. $today = date("m/d/Y");
  2.  
  3. <div id="myDiv" class="col-md-6">
  4. <div class="alert alert-info" role="alert"><span class="glyphicon glyphicon-book" aria-hidden="true"></span>&nbsp;&nbsp;Passport <?php echo "<strong><a href=\"view_latest_passport.php?id=$id\"> $passport</a> /&nbsp; Passport Expiration Date:</strong> $passport_expiration"; ?></div>
  5. </div>
  6. <script type="text/javascript">
  7. if ($today == $passport_expiration)
  8. {
  9. document.getElementById("myDiv").Element.style.backgroundColor="green" ;
  10. }
  11. else
  12. {
  13. document.getElementById("myDiv").Element.style.backgroundColor="red";
  14. }
  15. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement