Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
- <head>
- <title>tree_tops template</title>
- <meta name="description" content="website description">
- <meta name="keywords" content="website keywords, website keywords">
- <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
- <link rel="stylesheet" href="secret location :O" type="text/css">
- </head>
- <body>
- <div id="main">
- <div id="links"></div>
- <div id="header">
- <div id="logo">
- <div id="logo_text"><!-- class="yellow", allows you to change the colour of the text - other classes are: "blue", "orange", "red", "purple" and "green" -->
- <h1>tree<span class="alternate_colour">_tops</span></h1>
- </div>
- </div>
- <div id="menubar">
- <ul id="menu">
- <!-- put class="tab_selected" in the li tag for the selected page - to highlight which page you're on -->
- <li><a href="index.html">Home</a></li>
- <li><a href="our_services.html">Our Services</a></li>
- <li><a href="about_us.html">About Us</a></li>
- <li><a href="styles.html">Styles</a></li>
- <li class="tab_selected"><a href="contact.html">Contact
- Us</a></li>
- </ul>
- </div>
- </div>
- <div id="site_content">
- <div id="panel"><?php <?php
- $fileatt = ""; // Path to the file
- $fileatt_type = "application/octet-stream"; // File Type
- $fileatt_name = ""; // Filename that will be used for the file as the attachment
- $email_from = ""; // Who the email is from
- $email_subject = ""; // The Subject of the email
- $email_txt = ""; // Message that the email has in it
- $email_to = ""; // Who the email is too
- $headers = "From: ".$email_from;
- $file = fopen($fileatt,'rb');
- $data = fread($file,filesize($fileatt));
- fclose($file);
- $semi_rand = md5(time());
- $mime_boundary = "==Multipart_Boundary_x{$semi_rand}x";
- $headers .= "\nMIME-Version: 1.0\n" .
- "Content-Type: multipart/mixed;\n" .
- " boundary=\"{$mime_boundary}\"";
- $email_message .= "This is a multi-part message in MIME format.\n\n" .
- "--{$mime_boundary}\n" .
- "Content-Type:text/html; charset=\"iso-8859-1\"\n" .
- "Content-Transfer-Encoding: 7bit\n\n" .
- $email_message . "\n\n";
- $data = chunk_split(base64_encode($data));
- $email_message .= "--{$mime_boundary}\n" .
- "Content-Type: {$fileatt_type};\n" .
- " name=\"{$fileatt_name}\"\n" .
- //"Content-Disposition: attachment;\n" .
- //" filename=\"{$fileatt_name}\"\n" .
- "Content-Transfer-Encoding: base64\n\n" .
- $data . "\n\n" .
- "--{$mime_boundary}--\n";
- $ok = @mail($email_to, $email_subject, $email_message, $headers);
- if($ok) {
- echo "<font face=verdana size=2>The file was successfully sent!</font>";
- } else {
- die("Sorry but the email could not be sent. Please go back and try again!");
- }
- ?>
- ?><img src="style/panel.jpg" alt="tree tops"></div>
- <div class="sidebar"><!-- insert your sidebar items here -->
- <h1>Latest News</h1>
- <h2>New Website Launched</h2>
- <h3>January 1st, 2010</h3>
- <p>2010 sees the redesign of our website. Take a look around and
- let us know what you think.<br>
- <a href="#">Read more</a></p>
- <h1>Useful Links</h1>
- <ul>
- <li><a href="#">link 1</a></li>
- <li><a href="#">link 2</a></li>
- <li><a href="#">link 3</a></li>
- <li><a href="#">link 4</a></li>
- </ul>
- <h1>Useful Info</h1>
- <p>You can put anything you like in the sidebar. Latest news,
- useful links, images, contact information. Anything you think the
- visitor will find useful.</p>
- </div>
- <div id="content"><!-- insert the page content here -->
- <h1>Contact Us</h1>
- <p>Below is an example of how a contact form might look with this
- template:</p>
- <form method="post" action="mailto:mijngeheimeemail:O">
- <div class="form_settings">
- <p><span>Name</span><input class="contact" name="your_name" value="" type="text"></p>
- <p><span>Email Address</span><input class="contact" name="your_email" value="" type="text"></p>
- <p><span>Message</span><textarea class="contact textarea" rows="8" cols="50" name="your_enquiry"></textarea></p>
- <p style="padding-top: 15px;"><span> </span><input class="submit" name="contact_submitted" value="submit" type="submit"></p>
- </div>
- </form>
- <p><br>
- <br>
- NOTE: A contact form such as this would require some way of emailing
- the input to an email address.</p>
- </div>
- <div id="site_content_bottom"></div>
- </div>
- <div id="footer">Copyright © Company Name. All
- Rights Reserved. | <a href="http://www.squidfingers.com">pattern
- from squidfingers</a> | <a href="http://validator.w3.org/check?uri=referer">XHTML</a>
- | <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a>
- | <a href="http://www.dcarter.co.uk">design by dcarter</a></div>
- </div>
- </body>
- </html>
Add Comment
Please, Sign In to add comment