summaryrefslogtreecommitdiff
path: root/root/email
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2009-04-05 13:30:27 +0200
committerfranck cuny <franck@lumberjaph.net>2009-04-05 13:30:27 +0200
commit9bb42b768ff2369af0a066a538e96ae4e3b5c380 (patch)
tree939fce46770f034f9cebfa162607a712be50c99b /root/email
parentupdate scripts (diff)
downloadintention-cloud-9bb42b768ff2369af0a066a538e96ae4e3b5c380.tar.gz
add root files
Diffstat (limited to '')
-rw-r--r--root/email/cloud_by_mail.tt43
-rw-r--r--root/email/email.tt36
-rw-r--r--root/email/resultmail.tt15
3 files changed, 94 insertions, 0 deletions
diff --git a/root/email/cloud_by_mail.tt b/root/email/cloud_by_mail.tt
new file mode 100644
index 0000000..7c03f3c
--- /dev/null
+++ b/root/email/cloud_by_mail.tt
@@ -0,0 +1,43 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
+
+<html>
+
+<head>
+ <title>Intention Cloud</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+</head>
+
+<div id="page_container" style="width: 950px;text-align: left;margin: 0px auto;top: 0px;background-color: #DEFBFF;">
+
+ <div id="page_margegauche" style="float: left;width: 200px;">
+
+ <div id="ic_logo" style="float: left;width: 200px;height: 34px;">
+ </div>
+
+ </div>
+
+ <div id="page_contenudroite" style="float: left;width: 750px;">
+
+ <div id="contenudroite_cloudtitle" style="width: 730px;padding-left: 10px;padding-right: 10px;font-size: 32px;color: #6AB701;">
+ this cloud has been sent to you by [% email_from %]<br />
+ "[% email_txt %]"<br />
+ "[% email_txt %]"
+ </div>
+ [% cloud %]
+
+ <div id="contenudroite_cloudfooter" style="width: 750px;height: 210px;">
+ </div>
+
+ </div>
+&nbsp;
+
+</div>
+
+
+<div id="page_footer" style="clear: left;width: 943px;padding-top: 5px;padding-bottom: 2px;padding-left: 5px;padding-right: 2px;text-align: right;margin: 0px auto;top: 0px;background-color: #8ACC03;font-size: 10px;color: #166800;">
+(c) breizhdev 2006 blablablablabla <a href="http://www.bwoup.com" target="_blank"><img src="[% base %]static/images/p_bwoup.gif" border="0" width="12" height="12" alt="design : bwoup.com" align="absbottom"></a>
+</div>
+
+</body>
+
+</html> \ No newline at end of file
diff --git a/root/email/email.tt b/root/email/email.tt
new file mode 100644
index 0000000..e676ef1
--- /dev/null
+++ b/root/email/email.tt
@@ -0,0 +1,36 @@
+[% INCLUDE 'header.tt' %]
+
+[% urlemail = base _ 'email/submitmail' %]
+
+
+ <div id="page_contenudroite">
+
+ <div id="contenudroite_cloudheader"></div>
+ <div id="contenudroite_cloudtitle">[% c.localize('showbyemail') %] :</div>
+
+ [% c.prototype.form_remote_tag( {
+ url => urlemail,
+ update => 'resultmail',
+ })%]
+ <div id="contenudroite_cloudinput">
+ [% c.localize('hisemail') %] :<br>
+ <input type="text" name="email_adr" id="email_adr" class="cloudinput" size="25"><br><br>
+ [% c.localize('yourname') %] :<br>
+ <input type="text" name="email_from" id="email_from" class="cloudinput" size="25"><br><br>
+ [% c.localize('add_txt') %] ?<br>
+ <textarea name="email_txt" id="email_txt" cols="40" rows="8" class="cloudinput"></textarea><br>
+ <input type="submit" name="Submit" value="[% c.localize('emailsend') %]" class="seebutton">
+
+ </div>
+ </form>
+
+
+ <div id="resultmail"></div>
+
+ <div id="contenudroite_cloudfooter"></div>
+
+ </div>
+ &nbsp;
+</div>
+
+[% INCLUDE 'footer.tt' %] \ No newline at end of file
diff --git a/root/email/resultmail.tt b/root/email/resultmail.tt
new file mode 100644
index 0000000..facf4e2
--- /dev/null
+++ b/root/email/resultmail.tt
@@ -0,0 +1,15 @@
+[% IF c.form.has_error %]
+ <p>[% c.localize('input_error') %]</p>
+ <ul>
+ [% IF c.form.missing('email_from') %]
+ <li>[% c.localize('name_error') %]</li>
+ [% END %]
+ [% IF c.form.invalid('email_adr') %]
+ <li>[% c.localize('email_error') %]</li>
+ [% END %]
+ </ul>
+[% ELSIF error %]
+ [% error %]
+[% ELSE %]
+ [% c.localize('mail_gone') %]
+[% END %]