| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331 |
- <?php // BEGIN PHP
- $websitekey=basename(__DIR__); if (empty($websitepagefile)) $websitepagefile=__FILE__;
- if (! defined('USEDOLIBARRSERVER') && ! defined('USEDOLIBARREDITOR')) {
- $pathdepth = count(explode('/', $_SERVER['SCRIPT_NAME'])) - 2;
- require_once $pathdepth ? str_repeat('../', $pathdepth) : './'.'master.inc.php';
- } // Not already loaded
- require_once DOL_DOCUMENT_ROOT.'/core/lib/website.lib.php';
- require_once DOL_DOCUMENT_ROOT.'/core/website.inc.php';
- ob_start();
- // END PHP ?>
- <html lang="en">
- <head>
- <title>index</title>
- <meta charset="utf-8">
- <meta http-equiv="content-type" content="text/html; charset=utf-8" />
- <meta name="robots" content="index, follow" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="keywords" content="" />
- <meta name="title" content="index" />
- <meta name="description" content="" />
- <meta name="generator" content="Dolibarr 17.0.0-alpha (https://www.dolibarr.org)" />
- <meta name="dolibarr:pageid" content="80" />
- <?php if ($website->use_manifest) { print '<link rel="manifest" href="/manifest.json.php" />'."\n"; } ?>
- <!-- Include link to CSS file -->
- <link rel="stylesheet" href="/styles.css.php?website=<?php echo $websitekey; ?>" type="text/css" />
- <!-- Include link to JS file -->
- <script async src="/javascript.js.php"></script>
- <!-- Include HTML header from common file -->
- <?php if (file_exists(DOL_DATA_ROOT."/website/".$websitekey."/htmlheader.html")) include DOL_DATA_ROOT."/website/".$websitekey."/htmlheader.html"; ?>
- <!-- Include HTML header from page header block -->
- <head>
- <meta charset="UTF-8" />
- <meta http-equiv="X-UA-Compatible" content="IE=edge" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <!-- Font Awesome -->
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
- <link href="https://fonts.googleapis.com/css2?family=Hurricane&display=swap" rel="stylesheet">
- <script
- src="https://kit.fontawesome.com/14273d579a.js"
- crossorigin="anonymous"
- ></script>
- <title>Template</title>
- </head>
- </head>
- <!-- File generated by Dolibarr website module editor -->
- <body id="bodywebsite" class="bodywebsite bodywebpage-index">
- <!-- Enter here your HTML content. Add a section with an id tag and tag contenteditable="true" if you want to use the inline editor for the content -->
- <?php
- if (GETPOST('action') == 'sendmail') {
- include_once DOL_DOCUMENT_ROOT.'/core/class/CMailFile.class.php';
- $from = GETPOST('email', 'alpha');
- $to = $mysoc->email;
- $message = GETPOST('message', 'alpha');
- $cmail = new CMailFile('Contact from website', $to, $from, $message);
- if ($cmail->sendfile()) {
- ?>
- <script>
- alert("Message sent successfully !");
- </script>
- <?php
- } else {
- echo $langs->trans("ErrorFailedToSendMail", $from, $to).'. '.$cmail->error;
- }
- }
- ?>
- <section id="mysection1" contenteditable="true">
- <div class="container">
- <nav class="navbar navbar-expand-lg navbar-dark position-fixed px-3">
- <a href="#home" class="navbar-brand text-center">
- <h1>Brand Name</h1>
- </a>
- <button
- class="navbar-toggler"
- type="button"
- data-bs-toggle="collapse"
- data-bs-target="#navbarNav"
- aria-controls="navbarNav"
- aria-expanded="false"
- aria-label="Toggle navigation"
- >
- <span class="navbar-toggler-icon"></span>
- </button>
- <div
- class="collapse navbar-collapse justify-content-end"
- id="navbarNav"
- >
- <ul class="navbar-nav">
- <li class="nav-item fs-5">
- <a href="#products" class="nav-link"
- >Products</a
- >
- </li>
- <li class="nav-item fs-5">
- <a href="#contact" class="nav-link">
- Contact
- </a>
- </li>
- </ul>
-
- </div>
- </nav>
- </div>
- <section id="home" class="">
- <div class=" container full-height pt-5">
- <div class="row pt-5">
- <div class="col text-center desc">
- <h1 class="py-5 fw-bold" id="title">
- <span class="color">Brand</span>
- Name
- </h1>
- <p class="h3">
- Hello fellows, here is a description of the
- brand
- </p>
- <a href="#products">
- <button class="mt-5 btn btn-color"
- <i class="fas fa-shopping-cart"></i>
- Learn More
- </button>
- </a>
- </div>
- </div>
- </div>
- </section>
-
- <section id="products" class="py-5">
- <div class="container text-dark my-5 py-5 full-height">
- <div class="row gy-5 p-3">
- <div class="col text-center">
- <h1 class="pt-2 pb-5 fw-bold">Products</h1>
- </div>
- </div>
- <div class="row">
- <div class="col-md-4">
- <div class="card">
-
- <div class="card-body">
- <h2 class="card-title">Product 1</h2>
- <p class="card-text">
- Some quick example text to build on the
- card title and make up the bulk of the
- card's content.
- </p>
- <a href="#">
- <button class="btn btn-color">
- Learn More
- </button>
- </a>
- </div>
- </div>
- </div>
- <div class="col-md-4">
- <div class="card">
-
- <div class="card-body">
- <h2 class="card-title">Product 2</h2>
- <p class="card-text">
- Some quick example text to build on the
- card title and make up the bulk of the
- card's content.
- </p>
- <a href="#">
- <button class="btn btn-color">
- Learn More
- </button>
- </a>
- </div>
- </div>
- </div>
- <div class="col-md-4">
- <div class="card">
-
- <div class="card-body">
- <h2 class="card-title">Product 3</h2>
- <p class="card-text">
- Some quick example text to build on the
- card title and make up the bulk of the
- card's content.
- </p>
- <a href="#">
- <button class="btn btn-color">
- Learn More
- </button>
- </a>
- </div>
- </div>
- </div>
- <div class="col-md-4">
- <div class="card">
-
- <div class="card-body">
- <h2 class="card-title">Product 4</h2>
- <p class="card-text">
- Some quick example text to build on the
- card title and make up the bulk of the
- card's content.
- </p>
- <a href="#">
- <button class="btn btn-color">
- Learn More
- </button>
- </a>
- </div>
- </div>
- </div>
- <div class="col-md-4">
- <div class="card">
-
- <div class="card-body">
- <h2 class="card-title">Product 5</h2>
- <p class="card-text">
- Some quick example text to build on the
- card title and make up the bulk of the
- card's content.
- </p>
- <a href="#">
- <button class="btn btn-color">
- Learn More
- </button>
- </a>
- </div>
- </div>
- </div>
- <div class="col-md-4">
- <div class="card">
-
- <div class="card-body">
- <h2 class="card-title">Product 6</h2>
- <p class="card-text">
- Some quick example text to build on the
- card title and make up the bulk of the
- card's content.
- </p>
- <a href="#">
- <button class="btn btn-color">
- Learn More
- </button>
- </a>
- </div>
- </div>
- </div>
- </div>
- </div>
- </section>
- <section id="contact" class="py-5">
- <div class="container py-5 my-5 full-height">
- <div class="row text-center">
- <div class="col text-center"><h1>Contact us</h1></div>
- <p class="fw-bold h5">
- <span class="color">Email</span>: <?php echo $mysoc->email ?>
- </p>
- <p class="fw-bold h5">
- <span class="color">Phone-number</span>: <?php echo $mysoc->phone ?>
- </p>
- </div>
- <div class="row">
- <p class="text-center fw-bold h5 my-5">
- Or complete the form
- </p>
- </div>
- <form action="index.php" method="POST">
- <input type="hidden" name="token" value="<?php echo newToken(); ?>" />
- <input type="hidden" name="action" value="sendmail">
- <div class="row gy-3">
- <div class="col-12 col-md-6">
- <div class="form-group">
- <label>Email</label>
- <input
- name="email"
- type="email"
- class="form-control"
- placeholder="Email"
- />
- </div>
- <div class="form-group">
- <label>Name</label>
- <input
- name="name"
- type="text"
- class="form-control"
- placeholder="Name"
- />
- </div>
- <div class="form-group">
- <label>Phone</label>
- <input
- name="phone"
- type="text"
- class="form-control"
- placeholder="Phone"
- />
- </div>
- </div>
- <div class="col-12 col-md-6">
- <div class="form-group">
- <label>Message</label>
- <textarea
- name="message"
- class="form-control"
- rows="6"
- placeholder="Your message"
- ></textarea>
- </div>
- </div>
- <div class="col-12 mt-3">
- <div class="text-center form-group">
- <input
- type="submit"
- class="mt-5 btn btn-color-filled text-center text-white fw-bold"
- value="Send message"
- />
- </div>
- </div>
- </div>
- </form>
- </div>
- </section>
- </section>
- </body>
- </html>
- <?php // BEGIN PHP
- $tmp = ob_get_contents(); ob_end_clean(); dolWebsiteOutput($tmp, "html", 80);
- // END PHP ?>
|