Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [HTML][PHP]echo i html
DJ_CARO
post 16.06.2010, 21:34:47
Post #1





Grupa: Zarejestrowani
Postów: 12
Pomógł: 0
Dołączył: 13.06.2010

Ostrzeżenie: (0%)
-----


Witam mam taki problem
http://img23.imageshack.us/img23/3053/34175922.jpg
  1. <?php
  2. ?>
  3.  
  4. <?php
  5. if($_SESSION['id'])
  6. {
  7. echo "<strong>Welcome ",$_SESSION['username'],"</strong>";
  8. echo "<html>";
  9. echo "<head>";
  10. echo '<meta http-equiv="content-type" content="text/html; windows-1250" />';
  11. echo '<meta name="keywords" content=" UK, />';
  12. echo '<meta name="description" content="UK" />';
  13. echo '<meta name="robots" content="index, follow" />';
  14. echo '<meta name="distribution" content="global" />';
  15. echo '<meta name="copyright" content="UK" />';
  16. echo '<meta name="category" content="general" />';
  17. echo '<meta name="resource-type" content="document" />';
  18. echo '<link rel="shortcut icon" href="" />';
  19. echo '<link href="default.css" rel="stylesheet" type="text/css" />';
  20. echo '<!-- skrypt generujacy strone czarno-biala -->';
  21. echo '<script language="JavaScript" type="text/javascript">';
  22. echo "document.body.style.filter='gray';</script>";
  23. echo '<link type="text/css" href="css/ui-darkness/jquery-ui-1.8.2.custom.css" rel="stylesheet" />';
  24. echo ' <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>';
  25. echo ' <script type="text/javascript" src="js/jquery-ui-1.8.2.custom.min.js"></script>';
  26. echo ' <script type="text/javascript">
  27. $(function(){
  28.  
  29. ';
  30. echo "// Dialog
  31. $('#dialog').dialog({
  32. autoOpen: false,
  33. width: 600,
  34. buttons: { ";
  35. echo ' "Ok": function() {
  36. $(this).dialog("close");
  37. },
  38. "Cancel": function() {
  39. $(this).dialog("close");
  40. }
  41. }
  42. });';
  43.  
  44. echo " // Dialog Link
  45. $('#dialog_link').click(function(){
  46. $('#dialog').dialog('open');
  47. return false;
  48. });
  49.  
  50. //hover states on the static widgets
  51. $('#dialog_link, ul#icons li').hover(
  52. function() { $(this).addClass('ui-state-hover'); },
  53. function() { $(this).removeClass('ui-state-hover'); }
  54. );
  55.  
  56. });
  57. </script>";
  58. echo '<style type="text/css">
  59. /*demo page css*/
  60. body{ font: 62.5% "Trebuchet MS", sans-serif; margin: 50px;}
  61. .demoHeaders { margin-top: 2em; }
  62. #dialog_link {padding: .4em 1em .4em 20px;text-decoration: none;position: relative;}
  63. #dialog_link span.ui-icon {margin: 0 5px 0 0;position: absolute;left: .2em;top: 50%;margin-top: -8px;}
  64. echo " ul#icons {margin: 0; padding: 0;}";
  65. ul#icons li {margin: 2px; position: relative; padding: 4px 0; cursor: pointer; float: left; list-style: none;}
  66. ul#icons span.ui-icon {float: left; margin: 0 4px;}
  67. echo " </style>";
  68.  
  69. echo " </head>";
  70.  
  71.  
  72. echo " <body>";
  73.  
  74. <?php
  75. session_start();
  76. ?>";
  77. echo "<div id="header">";
  78. <a href="admin.php" accesskey="2" title="">ADMIN</a>
  79. <h1><a href="#"></a></h1>
  80. <h2><a href="#"></a></h2>
  81.  
  82. </div>
  83. <div id="menu">
  84. <ul>
  85.  
  86. echo "<li><a href="#" accesskey="2" title="">Home</a></li>";
  87. <li><a href="#" accesskey="2" title="">Forum</a></li>
  88. <li><a href="#" accesskey="3" title="">Pomoc</a></li>
  89. <li><a href="#" accesskey="4" title="">Kontakt</a></li>
  90. <li><a href="#" accesskey="5" title="">Reklama</a></li>
  91. <li><a href="logout.php" accesskey="5" title="">Wyloguj</a></li>
  92. </div>
  93. <div id="content">
  94. <div id="colOne">
  95. <a href="#"<img src="img/shout.jpg" alt="ShoutBox" border="0"</a>
  96.  
  97. <h2></h2>
  98. <center>
  99. echo "<a href="#"></a>";
  100.  
  101.  
  102. <h2></h2>
  103.  
  104.  
  105. </div>
  106.  
  107.  
  108.  
  109. <div id="colTwo">
  110. <center> ';
  111.  
  112. echo "<?php
  113. include ('cms/functions/le-format.php');
  114. echo 'include ('cms/functions/convert-characters.php')';
  115.  
  116. echo '$filename ='cms/textfiles/index.txt'';
  117. if (file_exists($filename)) {
  118. // Get the contents
  119. $file_contents = file_get_contents($filename);
  120. $file_contents = autop($file_contents, 0);
  121. $file_contents = convert_chars($file_contents, 0);
  122. $output = $file_contents;
  123. // Print the contents
  124. echo $output;
  125. } else {;'
  126. echo '<p>No content. The associated text file could not be found.</p>';
  127. echo '}
  128.  
  129. ?>
  130. </center>';
  131.  
  132.  
  133. echo '</div>
  134. <div id='colthree'>
  135. <?php
  136. echo '<strong>Witamy ",$_SESSION['username'],"</strong>';
  137. echo '<br/><a href=\'profilecp.php\'>Edytuj profil</a>';
  138.  
  139. ?>
  140. </div>';
  141.  
  142.  
  143.  
  144.  
  145. echo '<div style='clear: both;'>&nbsp;</div>';
  146. echo '</div>';
  147. echo '<div id='STOPKA'><!--STOPKA-->CopyRight DJ_CARO 2010<!--/STOPKA--></div>
  148.  
  149. </div>
  150. </div>';
  151. }
  152. else
  153. {
  154. echo 'You don't belong here!";
  155. }
  156. ?>
  157. </body>
  158. </html>

może ktoś napisać jak mogę usunąć te echo co są na obrazku?? jak usuwam echo z kodu to mam błąd "Parse error: syntax error, unexpected '<' in D:\Program Files\WebServ\httpd\bmax\index2.php on line 8"
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 19.07.2025 - 16:17