Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. <?php
  2. $bg=array('#ffb53e', '#f70ab9', '#f9243f', '#8ad919', '#8700ff');
  3. $i=rand (0, count($bg)-1);
  4. $s=rand (0, count($bg)-1);
  5. $a=rand (0, count($bg)-1);
  6. $p=rand (0, count($bg)-1);
  7. $latarbg="$bg[$i]";
  8. $latarbg2="$bg[$a]";
  9. $latarbg3="$bg[$s]";
  10. $latarbg4="$bg[$p]";
  11. ?>
  12.  
  13. <ul class="nav menu">
  14.  
  15. <li <?php if($_SERVER['SCRIPT_NAME'] == '/blog/home.php'){ ?>class="active" <?php } ?>style="border-left:4px solid <?php echo $latarbg2; ?>"><a href="home.php"><svg class="glyph stroked dashboard-dial"><use xlink:href="#stroked-dashboard-dial"></use></svg> Dashboard</a></li>
  16. <li <?php if($_SERVER['SCRIPT_NAME'] == '/blog/form.php'){ ?>class="active" <?php } ?>style="border-left:4px solid <?php echo $latarbg; ?>"><a href="form.php"><svg class="glyph stroked app window with content"><use xlink:href="#stroked-app-window-with-content"/></svg> JSON Table</a></li>
  17. <li <?php if($_SERVER['SCRIPT_NAME'] == '/blog/live.php'){ ?>class="active" <?php } ?>style="border-left:4px solid <?php echo $latarbg3; ?>"><a href="live.php"><svg class="glyph stroked app window with content"><use xlink:href="#stroked-app-window-with-content"/></svg> Live CRUD</a></li>
  18. <li <?php if($_SERVER['SCRIPT_NAME'] == '/blog/ajaxcombo.php'){ ?>class="active" <?php } ?>style="border-left:4px solid <?php echo $latarbg4; ?>"><a href="ajaxcombo.php"><svg class="glyph stroked app window with content"><use xlink:href="#stroked-app-window-with-content"/></svg> Dynamic Combo</a></li>
  19. <li class="parent ">
  20. <a href="#sub-item-1" data-toggle="collapse">
  21. <span data-toggle="collapse" href="#sub-item-1"><svg class="glyph stroked chevron-down"><use xlink:href="#stroked-chevron-down"></use></svg></span> Dropdown
  22. </a>
  23. <ul class="children collapse" id="sub-item-1">
  24. <li>
  25. <a class="" href="#">
  26. <svg class="glyph stroked chevron-right"><use xlink:href="#stroked-chevron-right"></use></svg> Sub Item 1
  27. </a>
  28. </li>
  29. <li>
  30. <a class="" href="#">
  31. <svg class="glyph stroked chevron-right"><use xlink:href="#stroked-chevron-right"></use></svg> Sub Item 2
  32. </a>
  33. </li>
  34. <li>
  35. <a class="" href="#">
  36. <svg class="glyph stroked chevron-right"><use xlink:href="#stroked-chevron-right"></use></svg> Sub Item 3
  37. </a>
  38. </li>
  39. </ul>
  40. </li>
  41. <li role="presentation" class="divider"></li>
  42.  
  43. </ul>