This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% if param.postAllRaw() %} | |
{% set cart = session.get.cart|default({}) %} | |
{% set postdata = { | |
code : param.postAllRaw().code|s, | |
title : param.postAllRaw().title, | |
count : param.postAllRaw().count|default(1)|i | |
} %} | |
{% if cart[param.postAllRaw().code] %} | |
{% set postdata = postdata|merge({ count : ( postdata.count + cart[param.postAllRaw().code].count|i ) }) %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% do api.IO_staticFile("ruby/post.txt").set(param.post|print_r) %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aTableExt.oSort["string-nbr-asc"] = function(x,y) {return ((parseFloat(x.replace('.',"").replace(',','.')) < parseFloat(y.replace('.',"").replace(',','.'))) ? -1 : ((parseFloat(x.replace('.',"").replace(',','.')) > parseFloat(y.replace('.',"").replace(',','.'))) ? 1 : 0));}; | |
jQuery.fn.dataTableExt.oSort["string-nbr-desc"] = function(x,y) {return ((parseFloat(x.replace('.',"").replace(',','.')) < parseFloat(y.replace('.',"").replace(',','.'))) ? 1 : ((parseFloat(x.replace('.',"").replace(',','.')) > parseFloat(y.replace('.',"").replace(',','.'))) ? -1 : 0));}; | |
var $dataTableOptions = { | |
'iDisplayLength' : 1000, | |
'lengthMenu' : [ 500,1000,2000 ], | |
'aoColumns' : [ | |
null, | |
null, | |
null, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1>Formulier</h1> | |
<p>Hele mooie resultaten</p> | |
<b>Naam:</b> {{ naam }} <br /> | |
<b>Adres:</b> {{ adres }} <br /> | |
<b>Plaats:</b> {{ plaats }} <br /> | |
<b>Telefoon:</b> {{ telefoon }} <br /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[simplicate] | |
; De API Key en Secret kun je verkrijgen binnen Simplicate, bij Instellingen - Algemeen - API | |
key = "xxxxxxxxxxxxx1w7KSMtzwp06PjLG" | |
secret = "xxxxxxxxxxL2l80V89r9wG0sl93SY" | |
env = "nodum.simplicate.nl" | |
[notification] | |
; De Slack URL is er een van het type Webhook, maak deze op: | |
; https://www.slack.com/apps/new/A0F7XDUAZ-incoming-webhooks | |
slackurl = "https://hooks.slack.com/services/T03trRCBD6GND/MT5ZWGAJLMW/a9pGlguwNB037T5GlU" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% do sabre.post('https://hooks.slack.com/services/xx/yy/zz', { | |
text: "Nieuwe lead :tada: Bezoek het lead-panel voor meer informatie of om de lead toe te kennen.\n*Details:*\n", | |
username: "nodum", | |
icon_url: "https://nodumapp.io/static/apple-touch-icon-180x180.png", | |
channel: "@ipub_wietse", | |
attachments : [ | |
{ | |
color : "#4C6ADF", | |
fallback: "Lead: " ~ param.post.company, | |
text: param.post.desc.short, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery-form-validator/2.3.26/jquery.form-validator.min.js"></script> | |
<script> | |
$.validate({ | |
modules : 'date' | |
}); | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1>Websrvices</h1> | |
{% set ws = | |
api | |
.WebService_Connect('http://www.swanandmokashi.com/Homepage/Webservices/QuoteOfTheDay.asmx?WSDL') | |
.addHeader('http://swanandmokashi.com/GetQuote', 'QuoteofTheDayHttpPost', ''|date('YmdHis') ) | |
%} | |
{{ ws.getFunctions | pre }} | |
{{ ws.getQuote | pre }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1>SMS versturen</h1> | |
<p>Vul het onderstaande formulier in om een SMS te verzenden</p> | |
{% if param.postAll() %} | |
{% set sms = api.Clockwork_sms(param.postRaw('from'),param.postRaw('to'),param.postRaw('message')) %} | |
{% if sms.sent %} | |
<p class="alert alert-groen"> | |
Verzonden! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% trim %} | |
{% do twig.noTemplate().addHeader('Content-type: image/png') %} | |
{% set image = api.IO_staticFile('1.png').get() %} | |
{#{{ api.Image_Resize(image, 100, 'center').data|raw }}#} | |
{#{{ api.Image_Resize(image, 100).data|raw }}#} | |
{#{{ api.Image_Resize(image, 100,125).data|raw }}#} | |
{{ api.Image_Resize(image, rest.get.size|default(100),'center').data|raw }} | |
{% endtrim %} |