24 lines
626 B
PHP
Raw Normal View History

2016-02-23 11:23:41 +01:00
<?php
2016-02-23 13:25:19 +01:00
require_once(dirname(__FILE__).'/../../config/config.inc.php');
require_once(dirname(__FILE__).'/../../init.php');
2016-02-23 17:33:08 +01:00
$controller->preProcess();
2016-02-23 13:25:19 +01:00
include_once(dirname(__FILE__).'/contactform.php');
include_once(dirname(__FILE__).'/Process.php');
include(dirname(__FILE__).'/../../header.php');
2016-02-24 10:35:05 +01:00
$result = null;
2016-02-25 10:42:49 +01:00
if (Tools::isSubmit('provider_form')) {
2016-02-23 13:25:19 +01:00
$Process = new Process();
$result = $Process->addProvider($_POST);
}
2016-02-24 10:35:05 +01:00
$smarty->assign('result', $result);
$smarty->assign('_POST', $_POST);
2016-02-23 13:25:19 +01:00
echo Module::display(dirname(__FILE__).'/contactform.php', 'provider.tpl');
include(dirname(__FILE__).'/../../footer.php');