Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloud.com.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJos Poortvliet <jospoortvliet@gmail.com>2021-05-06 20:39:51 +0300
committerJos Poortvliet <jospoortvliet@gmail.com>2021-05-28 18:50:49 +0300
commit9cce059aecc7066df6e6922fe60d5b1d0d128576 (patch)
treefcdf3e520dea4ecd5a7845c97bbab9215224e399 /page-trialsubmit.php
parent3f45e7aeac503154ad96b3c4b85425d2ee10c997 (diff)
trial form
Signed-off-by: Jos Poortvliet <jospoortvliet@gmail.com>
Diffstat (limited to 'page-trialsubmit.php')
-rw-r--r--page-trialsubmit.php78
1 files changed, 42 insertions, 36 deletions
diff --git a/page-trialsubmit.php b/page-trialsubmit.php
index bb85cb98..579383f7 100644
--- a/page-trialsubmit.php
+++ b/page-trialsubmit.php
@@ -4,19 +4,43 @@
require(["pages/enterprise"])
});
</script>
-<link href="<?php echo get_template_directory_uri(); ?>/assets/css/pages/enterprise.css" rel="stylesheet">
+<link href="<?php echo get_template_directory_uri(); ?>/assets/css/pages/form.css?v=1" rel="stylesheet">
</head>
-<section class="enterprise-hero-section second-menu">
- <div class="container-fluid background">
- <div class="container">
- <div class="col-md-6 topheader">
- <h1><?php echo $l->t('Nextcloud Enterprise');?></h1>
- <h2><?php echo $l->t('The enterprise-ready Content Collaboration Platform');?></h2>
- </div>
+<section class="background generic-background second-menu">
+ <div class="container">
+ <div class="row">
+ <div class="col-md-6 topheader">
+ <h1><?php echo $l->t('Nextcloud Enterprise Trial');?></h1>
+ </div>
+ </div>
+ </div>
+ <div class="container-fluid menu" id="menuAnchor">
+ <div class="container buttons">
+ <a class="button button--blue" href="<?php echo home_url('faq') ?>"><?php echo $l->t('FAQ');?></a>
+ <a class="button button--blue" href="<?php echo home_url('enterprise/order') ?>"><?php echo $l->t('Order online');?></a>
+ <a class="button button--blue" href="<?php echo home_url('buy') ?>"><?php echo $l->t('get a quote');?></a>
+ <a class="button button--blue" href="<?php echo home_url('pricing') ?>"><?php echo $l->t('pricing plans');?></a>
+ <a class="button button--blue" href="<?php echo home_url('enterprise') ?>"><?php echo $l->t('enterprise offering');?></a>
</div>
</div>
</section>
+<section class="section--links">
+ <div class="container">
+ <div class="row">
+ <div class="col-md-12">
+ <div class="text-center">
+ <a class="button button--white button--small" href="<?php echo home_url('faq') ?>"><?php echo $l->t('FAQ');?></a>
+ <a class="button button--white button--small" href="<?php echo home_url('enterprise/order') ?>"><?php echo $l->t('Order online');?></a>
+ <a class="button button--white button--small" href="<?php echo home_url('buy') ?>"><?php echo $l->t('get a quote');?></a>
+ <a class="button button--white button--small" href="<?php echo home_url('pricing') ?>"><?php echo $l->t('pricing plans');?></a>
+ <a class="button button--white button--small" href="<?php echo home_url('enterprise') ?>"><?php echo $l->t('enterprise offering');?></a>
+ </div>
+ </div>
+ </div>
+ </div>
+</section>
+
<?php
require_once realpath(dirname(__FILE__)) . '/lib/ratelimiter.php';
@@ -46,26 +70,15 @@ if(isset($_POST['email'])) {
// validation expected data exists
if(!isset($_POST['yourname']) ||
!isset($_POST['email']) ||
- !isset($_POST['organization']) ||
!isset($_POST['users'])) {
died('We are sorry, but there appears to be a problem with the form you submitted - did you fill in all mandatory fields?'); }
$yourname = $_POST['yourname']; // required
- $organization= $_POST['organization']; // required
- $country= $_POST['country']; // required
$orgsize= $_POST['orgsize']; // required
- $partnertype= $_POST['partnertype']; // required
$phone = $_POST['phone']; // required
$email_from = $_POST['email']; // required
$users = $_POST['users']; // required
- $role = $_POST['role'];
$comments = $_POST['comments'];
- $needsetuphelp = $_POST['need-setup-help'];
$hostedoronprem = $_POST['hosted-or-onprem'];
- $clustering = $_POST['clustering'];
- $collabora = $_POST['collabora'];
- $webconferencing = $_POST['webconferencing'];
- $outlook = $_POST['outlook'];
- $partner = $_POST['partner'];
$gdprcheck = $_POST['gdprcheck'];
$error_message = "";
$email_exp = '/^[A-Za-z0-9._%-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,10}$/';
@@ -95,26 +108,15 @@ if(isset($_POST['email'])) {
return htmlspecialchars($string);
}
// the app review mailing list address
-// $email_to = "sales@nextcloud.com";
$email_message = "Trial request form details below.\n\n";
- $email_to = "sales@nextcloud.com";
+// $email_to = "sales@nextcloud.com";
+ $email_to = "jos@nextcloud.com";
$email_subject = "Nextcloud Enterprise Trial: ".clean_string($organization);
$email_message .= "Name: ".clean_string($yourname)."\n";
$email_message .= "Email: ".clean_string($email_from)."\n";
$email_message .= "Phone number: ".clean_string($phone)."\n";
- $email_message .= "Organization: ".clean_string($organization)."\n";
- $email_message .= "Country: ".clean_string($country)."\n";
- $email_message .= "Organization size: ".clean_string($orgsize)."\n";
- $email_message .= "Role: ".clean_string($role)."\n";
- $email_message .= "How many users do you expect in 12 months? ".clean_string($users)."\n";
- $email_message .= "Would you require assistance to set up the service or to design/review the architecture? ".clean_string($needsetuphelp)."\n";
+ $email_message .= "How big do you expect your installation to grow to one day? ".clean_string($users)."\n";
$email_message .= "Do you need a hosted or on-premises trial? ".clean_string($hostedoronprem)."\n";
- $email_message .= "Once in production, would you prefer hosted, on-prem but self-managed or managed on-prem? ".clean_string($partnertype)."\n";
- $email_message .= "Are you using any sort of clustering for the application, database or storage? ".clean_string($clustering)."\n";
- $email_message .= "Would you be interested in editing office documents online? ".clean_string($collabora)."\n";
- $email_message .= "Would you be interested in secure webconferencing and audio and video calls? ".clean_string($webconferencing)."\n";
- $email_message .= "Would you be interested in our Secure Sharing add-in for Outlook? ".clean_string($outlook)."\n";
- $email_message .= "Can we hand over your data to a partner? ".clean_string($partner)."\n";
$email_message .= "Comments: ".clean_string($comments)."\n";
// create email headers
@@ -140,9 +142,13 @@ if(isset($_POST['email'])) {
<!-- success html here -->
<section class="section--whitepaper">
<div class="container text-center">
- <h3>Thank you for contacting us</h3>
- <p>We received your message and will contact you on <?php echo($email_from); ?>,</p>
- <p>check your inbox for a reply in the next 2-3 working days.</p>
+ <div class="row">
+ <div class="col-md-8">
+ <h3 class="text-center">Thank you for contacting us</h3>
+ <p class="text-center">We received your message and will contact you on <?php echo($email_from); ?>,</p>
+ <p class="text-center">check your inbox for a reply in the next 2-3 working days.</p>
+ </div>
+ </div>
</div>
</section>
<?php