Guest User

Plaise html

a guest
Feb 21st, 2011
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 4.76 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  3. <head>
  4.   <title>tree_tops template</title>
  5.  
  6.  
  7.   <meta name="description" content="website description">
  8.  
  9.   <meta name="keywords" content="website keywords, website keywords">
  10.  
  11.   <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
  12.  
  13.   <link rel="stylesheet" href="secret location :O" type="text/css">
  14.  
  15. </head>
  16.  
  17.  
  18.  
  19. <body>
  20.  
  21. <div id="main">
  22. <div id="links"></div>
  23.  
  24. <div id="header">
  25. <div id="logo">
  26. <div id="logo_text"><!-- class="yellow", allows you to change the colour of the text - other classes are: "blue", "orange", "red", "purple" and "green" -->
  27. <h1>tree<span class="alternate_colour">_tops</span></h1>
  28.  
  29. </div>
  30.  
  31. </div>
  32.  
  33. <div id="menubar">
  34. <ul id="menu">
  35.  
  36. <!-- put class="tab_selected" in the li tag for the selected page - to highlight which page you're on -->
  37.   <li><a href="index.html">Home</a></li>
  38.  
  39.   <li><a href="our_services.html">Our Services</a></li>
  40.  
  41.   <li><a href="about_us.html">About Us</a></li>
  42.  
  43.   <li><a href="styles.html">Styles</a></li>
  44.  
  45.   <li class="tab_selected"><a href="contact.html">Contact
  46. Us</a></li>
  47.  
  48. </ul>
  49.  
  50. </div>
  51.  
  52. </div>
  53.  
  54. <div id="site_content">
  55. <div id="panel"><?php <?php
  56. $fileatt = ""; // Path to the file
  57. $fileatt_type = "application/octet-stream"; // File Type
  58. $fileatt_name = ""; // Filename that will be used for the file as the attachment
  59.  
  60. $email_from = ""; // Who the email is from
  61. $email_subject = ""; // The Subject of the email
  62. $email_txt = ""; // Message that the email has in it
  63.  
  64. $email_to = ""; // Who the email is too
  65.  
  66. $headers = "From: ".$email_from;
  67.  
  68. $file = fopen($fileatt,'rb');
  69. $data = fread($file,filesize($fileatt));
  70. fclose($file);
  71.  
  72. $semi_rand = md5(time());
  73. $mime_boundary = "==Multipart_Boundary_x{$semi_rand}x";
  74.  
  75. $headers .= "\nMIME-Version: 1.0\n" .
  76. "Content-Type: multipart/mixed;\n" .
  77. " boundary=\"{$mime_boundary}\"";
  78.  
  79. $email_message .= "This is a multi-part message in MIME format.\n\n" .
  80. "--{$mime_boundary}\n" .
  81. "Content-Type:text/html; charset=\"iso-8859-1\"\n" .
  82. "Content-Transfer-Encoding: 7bit\n\n" .
  83. $email_message . "\n\n";
  84.  
  85. $data = chunk_split(base64_encode($data));
  86.  
  87. $email_message .= "--{$mime_boundary}\n" .
  88. "Content-Type: {$fileatt_type};\n" .
  89. " name=\"{$fileatt_name}\"\n" .
  90. //"Content-Disposition: attachment;\n" .
  91. //" filename=\"{$fileatt_name}\"\n" .
  92. "Content-Transfer-Encoding: base64\n\n" .
  93. $data . "\n\n" .
  94. "--{$mime_boundary}--\n";
  95.  
  96. $ok = @mail($email_to, $email_subject, $email_message, $headers);
  97.  
  98. if($ok) {
  99. echo "<font face=verdana size=2>The file was successfully sent!</font>";
  100. } else {
  101. die("Sorry but the email could not be sent. Please go back and try again!");
  102. }
  103. ?>
  104. ?><img src="style/panel.jpg" alt="tree tops"></div>
  105.  
  106. <div class="sidebar"><!-- insert your sidebar items here -->
  107. <h1>Latest News</h1>
  108.  
  109. <h2>New Website Launched</h2>
  110.  
  111. <h3>January 1st, 2010</h3>
  112.  
  113. <p>2010 sees the redesign of our website. Take a look around and
  114. let us know what you think.<br>
  115.  
  116. <a href="#">Read more</a></p>
  117.  
  118. <h1>Useful Links</h1>
  119.  
  120. <ul>
  121.  
  122.   <li><a href="#">link 1</a></li>
  123.  
  124.   <li><a href="#">link 2</a></li>
  125.  
  126.   <li><a href="#">link 3</a></li>
  127.  
  128.   <li><a href="#">link 4</a></li>
  129.  
  130. </ul>
  131.  
  132. <h1>Useful Info</h1>
  133.  
  134. <p>You can put anything you like in the sidebar. Latest news,
  135. useful links, images, contact information. Anything you think the
  136. visitor will find useful.</p>
  137.  
  138. </div>
  139.  
  140. <div id="content"><!-- insert the page content here -->
  141. <h1>Contact Us</h1>
  142.  
  143. <p>Below is an example of how a contact form might look with this
  144. template:</p>
  145.  
  146. <form method="post" action="mailto:mijngeheimeemail:O">
  147.   <div class="form_settings">
  148.   <p><span>Name</span><input class="contact" name="your_name" value="" type="text"></p>
  149.  
  150.   <p><span>Email Address</span><input class="contact" name="your_email" value="" type="text"></p>
  151.  
  152.   <p><span>Message</span><textarea class="contact textarea" rows="8" cols="50" name="your_enquiry"></textarea></p>
  153.  
  154.   <p style="padding-top: 15px;"><span>&nbsp;</span><input class="submit" name="contact_submitted" value="submit" type="submit"></p>
  155.  
  156.   </div>
  157.  
  158. </form>
  159.  
  160. <p><br>
  161.  
  162. <br>
  163.  
  164. NOTE: A contact form such as this would require some way of emailing
  165. the input to an email address.</p>
  166.  
  167. </div>
  168.  
  169. <div id="site_content_bottom"></div>
  170.  
  171. </div>
  172.  
  173. <div id="footer">Copyright &copy; Company Name. All
  174. Rights Reserved. | <a href="http://www.squidfingers.com">pattern
  175. from squidfingers</a> | <a href="http://validator.w3.org/check?uri=referer">XHTML</a>
  176. | <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a>
  177. | <a href="http://www.dcarter.co.uk">design by dcarter</a></div>
  178.  
  179. </div>
  180.  
  181. </body>
  182. </html>
Add Comment
Please, Sign In to add comment