Advertisement
Guest User

StackOverflow

a guest
Nov 10th, 2013
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.08 KB | None | 0 0
  1. Hello,
  2. i have a website, on which i uploaded an <a href="http://www.destiny-craft.com/index.html> index.html </a> which is completely made of html code (no php)
  3. i coppied this code over to an PHP file (index.php) , and made 1 seperate php file for my Header
  4. When i Cleared the new index.php file, and used
  5.  
  6. <? include("TopNote.php"); ?>
  7. Which is my Header php file
  8. So the difference between index.html and index.php is that the html code is directly in the index.html and in the php, it is included from a seperate php file.
  9.  
  10. Now does the index.php file give a strange button, where the index.html displays it all the way i want it to display.
  11.  
  12. What is the difference, and how do i solve it.
  13.  
  14. Index html:
  15.  
  16. <!doctype html>
  17. <html lang="us">
  18. <head>
  19. <meta charset="utf-8">
  20. <title>Destiny-Craft</title>
  21. <link rel="stylesheet" type="text/css" href="web/style.css">
  22. <link href="css/smoothness/jquery-ui-1.10.3.custom.css" rel="stylesheet">
  23. <style>
  24. .ui-menu { position: absolute; width: 100px; }
  25. </style>
  26. <script src="js/jquery-1.9.1.js"></script>
  27. <script src="js/jquery-ui-1.10.3.custom.js"></script>
  28. <script>
  29. $(function() {
  30.  
  31. $( "#menu" ).buttonset();
  32.  
  33. $( "#regdialog" ).dialog({
  34. autoOpen: false,
  35. closeOnEscape: false,
  36. show: {
  37. effect: "blind",
  38. duration: 1000
  39. },
  40. hide: {
  41. effect: "blind",
  42. duration: 1000
  43. }
  44. });
  45.  
  46. $( "#buttonregister" ).click(function() {
  47. $( "#regdialog" ).dialog( "open" );
  48. });
  49. });
  50. $(function() {
  51. $( "#StaffLogin" )
  52. .button()
  53. .click(function() {
  54. alert( "Here Staff Could Login, If That Would Work :)" );
  55. })
  56. .next()
  57. .button({
  58. text: false,
  59. icons: {
  60. primary: "ui-icon-triangle-1-s"
  61. }
  62. })
  63. .click(function() {
  64. var menu = $( this ).parent().next().show().position({
  65. my: "left top",
  66. at: "left bottom",
  67. of: this
  68. });
  69. $( document ).one( "click", function() {
  70. menu.hide();
  71. });
  72. return false;
  73. })
  74. .parent()
  75. .buttonset()
  76. .next()
  77. .hide()
  78. .menu();
  79. });
  80. </script>
  81.  
  82. <!-- Start of the headers for CoffeeCup Web Form Builder -->
  83. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  84. <link rel="stylesheet" href="http://destiny-craft.coffeecup.com/forms/ApplyForm/colorbox/colorbox.css" />
  85. <script src="http://destiny-craft.coffeecup.com/forms/ApplyForm/common/libs_js/jquery-1.4.4.min.js"></script>
  86. <script src="http://destiny-craft.coffeecup.com/forms/ApplyForm/colorbox/jquery.colorbox.js"></script>
  87. <script>
  88. var $fb_pop = jQuery.noConflict();
  89.  
  90. $fb_pop(document).ready(function(){
  91. // Fallback for Safari browser
  92. if (navigator.userAgent.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Chrome') == -1 ) {
  93. $fb_pop('.fb_iframe').click( function(){
  94. var temp_window = window.open('http://destiny-craft.coffeecup.com/forms/ApplyForm/','ApplyForm','width=0,height=0');
  95. window.focus();
  96. setTimeout(function() {temp_window.close();},1000);
  97. } );
  98. }
  99. $fb_pop(".fb_iframe").colorbox({iframe:true, innerWidth:"788px", height:"80%", maxHeight:"1157px", fixed:true });
  100. });
  101. </script>
  102. <!-- End of the headers for CoffeeCup Web Form Builder -->
  103. </head>
  104. <body bgcolor="#aaaaaa">
  105. <img src="http://destiny-craft.com/img/Logo_Resized.png" alt="" style="padding-left:20px" />
  106. <div align="right" style="padding-right:20px">
  107. <div>
  108. <button id="StaffLogin">Staff Login</button>
  109.  
  110. <button id="select">Select an action</button>
  111. </div>
  112. <ul>
  113. <li><a href="#">Log Out</a></li>
  114. <li id="buttonregister"><a href="#">Register</a></li>
  115. </ul>
  116. </div>
  117. <form style="margin-top: 1em;">
  118. <div id="menu" align="center">
  119. <input type="radio" id="buttonhome" name="radio" checked="checked"><label for="buttonhome">Home</label>
  120. <input type="radio" id="buttonforums" name="radio"><label for="buttonforums"><a href="http://forums.destiny-craft.com">Forums</a></label>
  121. <input type="radio" id="buttonapply" name="radio"><label for="buttonapply"><a class='fb_iframe' href="http://destiny-craft.coffeecup.com/forms/ApplyForm/">Apply</a></label>
  122. <input type="radio" id="buttonabout" name="radio"><label for="buttonabout">About Us</label>
  123. <input type="radio" id="select" name="radio">
  124. </div>
  125. </form>
  126.  
  127.  
  128.  
  129. <br />
  130. <div class="ui-widget">
  131. <div class="ui-state-error ui-corner-all" style="padding: 0 .7em;">
  132. <p><span class="ui-icon ui-icon-alert" style="float: left; margin-right: .3em;"></span>
  133. <strong>Alert:</strong> The Site Is No Where Near Completed, Please go to our <a href="http://forums.destiny-craft.com/">Forums</a></p>
  134. </div>
  135. </div>
  136.  
  137.  
  138.  
  139.  
  140.  
  141.  
  142. <!-- POP UP -->
  143. <div id="regdialog" title="Register">
  144. <form action="#" method="post">
  145. <div class="ui-widget">
  146. <div class="ui-state-error ui-corner-all" style="padding: 0 .7em;">
  147. <p><span class="ui-icon ui-icon-alert" style="float: left; margin-right: .3em;"></span
  148.  
  149. >
  150. Registrations are not working!</p>
  151. </div>
  152. </div>
  153. <h5>Username:</h5>
  154. <input type="text" name="reg_name">
  155. <h5>Password:</h5>
  156. <input type="password" name="reg_pass">
  157. <h5>Confirm Password:</h5>
  158. <input type="password" name="reg_pass_conf">
  159. <input type="submit">
  160. </form>
  161. </div>
  162. </body>
  163. </html>
  164.  
  165.  
  166.  
  167. index php:
  168.  
  169. <!doctype html>
  170. <html lang="us">
  171. <head>
  172. <meta charset="utf-8">
  173. <title>Destiny-Craft</title>
  174. <link rel="stylesheet" type="text/css" href="web/style.css">
  175. <link href="css/smoothness/jquery-ui-1.10.3.custom.css" rel="stylesheet">
  176. <script src="js/jquery-1.9.1.js"></script>
  177. <script src="js/jquery-ui-1.10.3.custom.js"></script>
  178.  
  179. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  180. </head>
  181. <body bgcolor="#aaaaaa">
  182. <? include("TopNote.php"); ?>
  183. </body>
  184. </html>
  185.  
  186. TopNote
  187.  
  188. <!doctype html>
  189. <html lang="us">
  190. <head>
  191. <meta charset="utf-8">
  192. <title>Destiny-Craft</title>
  193. <link rel="stylesheet" type="text/css" href="web/style.css">
  194. <link href="css/smoothness/jquery-ui-1.10.3.custom.css" rel="stylesheet">
  195. <style>
  196. .ui-menu { position: absolute; width: 100px; }
  197. </style>
  198. <script src="js/jquery-1.9.1.js"></script>
  199. <script src="js/jquery-ui-1.10.3.custom.js"></script>
  200. <script>
  201. $(function() {
  202. $( "#menu" ).buttonset();
  203.  
  204. $( "#regdialog" ).dialog({
  205. autoOpen: false,
  206. closeOnEscape: false,
  207. show: {
  208. effect: "blind",
  209. duration: 1000
  210. },
  211. hide: {
  212. effect: "blind",
  213. duration: 1000
  214. }
  215. });
  216.  
  217. $( "#buttonregister" ).click(function() {
  218. $( "#regdialog" ).dialog( "open" );
  219. });
  220. });
  221. $(function() {
  222. $( "#StaffLogin" )
  223. .button()
  224. .click(function() {
  225. alert( "Here Staff Could Login, If That Would Work :)" );
  226. })
  227. .next()
  228. .button({
  229. text: false,
  230. icons: {
  231. primary: "ui-icon-triangle-1-s"
  232. }
  233. })
  234. .click(function() {
  235. var menu = $( this ).parent().next().show().position({
  236. my: "left top",
  237. at: "left bottom",
  238. of: this
  239. });
  240. $( document ).one( "click", function() {
  241. menu.hide();
  242. });
  243. return false;
  244. })
  245. .parent()
  246. .buttonset()
  247. .next()
  248. .hide()
  249. .menu();
  250. });
  251. </script>
  252.  
  253. <!-- Start of the headers for CoffeeCup Web Form Builder -->
  254. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  255. <link rel="stylesheet" href="http://destiny-craft.coffeecup.com/forms/ApplyForm/colorbox/colorbox.css" />
  256. <script src="http://destiny-craft.coffeecup.com/forms/ApplyForm/common/libs_js/jquery-1.4.4.min.js"></script>
  257. <script src="http://destiny-craft.coffeecup.com/forms/ApplyForm/colorbox/jquery.colorbox.js"></script>
  258. <script>
  259. var $fb_pop = jQuery.noConflict();
  260.  
  261. $fb_pop(document).ready(function(){
  262. // Fallback for Safari browser
  263. if (navigator.userAgent.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Chrome') == -1 ) {
  264. $fb_pop('.fb_iframe').click( function(){
  265. var temp_window = window.open('http://destiny-craft.coffeecup.com/forms/ApplyForm/','ApplyForm','width=0,height=0');
  266. window.focus();
  267. setTimeout(function() {temp_window.close();},1000);
  268. } );
  269. }
  270. $fb_pop(".fb_iframe").colorbox({iframe:true, innerWidth:"788px", height:"80%", maxHeight:"1157px", fixed:true });
  271. });
  272. </script>
  273. <!-- End of the headers for CoffeeCup Web Form Builder -->
  274. </head>
  275. <body bgcolor="#aaaaaa">
  276. <img src="http://destiny-craft.com/img/Logo_Resized.png" alt="" style="padding-left:20px" />
  277. <div align="right" style="padding-right:20px">
  278. <div>
  279. <button id="StaffLogin">Staff Login</button>
  280.  
  281. <button id="select">Select an action</button>
  282. </div>
  283. <ul>
  284. <li><a href="#">Log Out</a></li>
  285. <li id="buttonregister"><a href="#">Register</a></li>
  286. </ul>
  287. </div>
  288. <form style="margin-top: 1em;">
  289. <div id="menu" align="center">
  290. <input type="radio" id="buttonhome" name="radio" checked="checked"><label for="buttonhome">Home</label>
  291. <input type="radio" id="buttonforums" name="radio"><label for="buttonforums"><a href="http://forums.destiny-craft.com">Forums</a></label>
  292. <input type="radio" id="buttonapply" name="radio"><label for="buttonapply"><a class='fb_iframe' href="http://destiny-craft.coffeecup.com/forms/ApplyForm/">Apply</a></label>
  293. <input type="radio" id="buttonabout" name="radio"><label for="buttonabout">About Us</label>
  294. <input type="radio" id="select" name="radio">
  295. </div>
  296. </form>
  297.  
  298.  
  299.  
  300. <br />
  301. <div class="ui-widget">
  302. <div class="ui-state-error ui-corner-all" style="padding: 0 .7em;">
  303. <p><span class="ui-icon ui-icon-alert" style="float: left; margin-right: .3em;"></span>
  304. <strong>Alert:</strong> The Site Is No Where Near Completed, Please go to our <a href="http://forums.destiny-craft.com/">Forums</a></p>
  305. </div>
  306. </div>
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313. <!-- POP UP -->
  314. <div id="regdialog" title="Register">
  315. <form action="#" method="post">
  316. <div class="ui-widget">
  317. <div class="ui-state-error ui-corner-all" style="padding: 0 .7em;">
  318. <p><span class="ui-icon ui-icon-alert" style="float: left; margin-right: .3em;"></span>
  319. Registrations are not working!</p>
  320. </div>
  321. </div>
  322. <h5>Username:</h5>
  323. <input type="text" name="reg_name">
  324. <h5>Password:</h5>
  325. <input type="password" name="reg_pass">
  326. <h5>Confirm Password:</h5>
  327. <input type="password" name="reg_pass_conf">
  328. <input type="submit">
  329. </form>
  330. </div>
  331. </body>
  332. </html>
  333.  
  334. All these files are uploaded at http://www.destiny-craft.com
  335. <destiny-craf.com/index.php>
  336. <destiny-craft.com/index.html>
  337. <destiny-craft.com/TopNote.php>
  338.  
  339. Thanks for helping!
  340.  
  341. Milo Cesar
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement