rendered paste body<?php
defined( '_VALID_MOS' ) or die( 'Restricted access' );
// needed to seperate the ISO number from the language file constant _ISO
$iso = explode( '=', _ISO );
// xml prolog
echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php mosShowHead(); ?><?php
if ( $my->id ) {
initEditor();
}
$collspan_offset = ( mosCountModules( 'right' ) + mosCountModules( 'user2' ) ) ? 2 : 1;
//script to determine which div setup for layout to use based on module configuration
$user1 = 0;
$user2 = 0;
$colspan = 0;
$right = 0;
// banner combos
//user1 combos
if ( mosCountModules( 'user1' ) + mosCountModules( 'user2' ) == 2) {
$user1 = 2;
$user2 = 2;
$colspan = 3;
} elseif ( mosCountModules( 'user1' ) == 1 ) {
$user1 = 1;
$colspan = 1;
} elseif ( mosCountModules( 'user2' ) == 1 ) {
$user2 = 1;
$colspan = 1;
}
//right based combos
if ( mosCountModules( 'right' ) and ( empty( $_REQUEST['task'] ) || $_REQUEST['task'] != 'edit' ) ) {
$right = 1;
}
?>
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-2" />
<link href="<?php echo $mosConfig_live_site;?>/templates/pmpgroup_newsletter/css/template_css.css" type="text/css" rel="stylesheet" />
</head>
<body>
<div class="strona_outer">
<div class="strona_inner">
<div class="zamkniecie">
<!-- START // TOP STRONY // LOGO + MENU + MENU POMOCNICZE + OPIS FIRMY -->
<div class="logo_outer">
<div class="logo_left">
<div class="logo_left_top">
<a href="index.php" title="HOME"><img src="<?php echo $mosConfig_live_site;?>/templates/pmpgroup_newsletter/images/template/top_logo.gif" alt="HOME" /></a>
</div>
<div class="logo_left_bottom">
<ul class="logo_menu">
<li class="logo_menu_1"><a title="News" href="index.php?option=com_content&task=blogcategory&id=17&Itemid=32">News</a></li>
<li class="logo_menu_2"><a title="About us" href="index.php?option=com_content&task=blogcategory&id=19&Itemid=35">About us</a></li>
<li class="logo_menu_3"><a title="Divisions" href="index.php?option=com_content&task=blogcategory&id=27&Itemid=36">Divisions</a></li>
<li class="logo_menu_4"><a title="Press releses" href="index.php?option=com_content&task=blogcategory&id=18&Itemid=33">Press releses</a></li>
<li class="logo_menu_5"><a title="Contact us" href="index.php?option=com_content&task=blogcategory&id=0&Itemid=34">Contact us</a></li>
</ul>
</div>
</div>
<div class="logo_right">
<div class="logo_right_top">
<?php mosLoadModules ( 'mini_menu', -1 ); ?></div>
<div class="logo_right_bottom">
<div class="logo_right_bottom_bg">
<div class="logo_right_bottom_inner">
PMP is the flexible partner who supplies and cooperates with the pulp & paper, machine- building and heavy industries.We look forward to working with you!
</div>
</div>
</div>
</div>
</div>
<!-- KONIEC // TOP STRONY // LOGO + MENU + MENU POMOCNICZE + OPIS FIRMY -->
<!-- START // ZASADNICZA CZESC STRONY -->
<div class="content_outer">
<div class="content_left_outer">
<div class="pathway">
<!-- PATHWAY // SCIEZKA AKTUALNIE ZNAJDUJACEGO SIE PODMIOTU -->
<?php mosPathWay(); ?>
</div>
<div class="content_inner">
<?php
// sprawdzamy, czy zmienna $submit jest pusta
if (empty($_POST['submit'])) {
// wyświetlamy formularz
echo "<table border=\"0\"><form method=\"post\">
<tr>
<td>Name and Surname</td>
<td><input type=\"text\" name=\"name\" style=\"width: 250px\"></textarea></td>
</tr>
<tr>
<td>Company</td>
<td><input type=\"text\" name=\"company\" style=\"width: 250px\"></td>
</tr>
<tr>
<td>Place</td>
<td><input type=\"text\" name=\"place\" style=\"width: 250px\"></td>
</tr>
<tr>
<td>E-mail</td>
<td><input type=\"text\" name=\"email\" style=\"width: 250px\"></td>
</tr>
<tr>
<td> </td>
<td><input type=\"submit\" name=\"submit\" value=\"SEND\">
<input type=\"reset\" value=\"RESET\"></td></form>
</tr>
</table>";
}
// sprawdzamy, czy zmienne przesłane z formularza nie są puste
elseif (!empty($_POST['name']) && !empty($_POST['company']) && !empty($_POST['place']) && !empty($_POST['email'])) {
// jeżeli powyższy warunek jest spełniony tworzona jest wiadomość
// zmienna $message zawiera treść wiadomości
$message = "PROŚBA O DODANIE DO NEWSLETTERA\nWysłał: $_POST[name]\nFirma: $_POST[company]\nStanowisko: $_POST[place]\nAdres e-mail:$_POST[email]";
// zmienna $header zawiera przede wszystkim adres zwrotny
$header = "From: $_POST[name] <$_POST[email]>";
// funkcja mail() za pomocą której wiadomość zostanie wysłana
@mail("patryk.szczepanski@pmpgroup.com","PROSBA O DOPISANIE DO NEWSLETTERA","$message","$header")
or die('Sorry, the massage could not be delivered. Please try gain later or send an e-mail to Maja Mejsner at maja.mejsner@pmpgroup.com');
// wyświetlenie komunikatu w przypadku powodzenia
echo "<div align=\"center\"><strong>The massage has been send sucesfull!</strong></div>";
}
// lub w przypadku nie wypełnienia formularza do końca
else echo "<span style=\"color: #FF0000; text-align: center;\">Please... uzupelnij dane ...</span>";
?>
</div>
</div>
<div class="content_right_outer">
<!-- BUTTONS // TISSUE LINE + PAPER LINE -->
<div class="buttons_business">
<a href="http://www.pmpoland.pl/www/index.php?option=com_content&task=blogcategory&id=21&Itemid=44" title="Tissue Business"><img src="<?php echo $mosConfig_live_site;?>/templates/pmpgroup_newsletter/images/template/button_tissue.gif" alt="Tissue Business" /></a><br />
<a href="http://www.pmpoland.pl/www/index.php?option=com_content&task=blogcategory&id=20&Itemid=47" title="Paper Business"><img src="<?php echo $mosConfig_live_site;?>/templates/pmpgroup_newsletter/images/template/button_paper.gif" alt="Paper Business" /></a>
</div>
<div class="right_outer">
<div class="right_inner">
<?php mosLoadModules ( 'right', -1 ); ?>
</div>
</div>
<div class="divisions">
<div><img src="<?php echo $mosConfig_live_site;?>/templates/pmpgroup_newsletter/images/template/divisions.gif" alt="Divisions" /></div>
<div class="divisions_logo">
<table align="center">
<tr>
<td><a href="http://www.pmpoland.pl/" target="_blank" title="PMPoland S.A."><img src="<?php echo $mosConfig_live_site;?>/templates/pmpgroup_newsletter/images/template/divisions_1.gif" alt="PMPoland" /></a></td>
<td><a href="http://www.fast-service.pl/" target="_blank" title="PMP Fast-Service"><img src="<?php echo $mosConfig_live_site;?>/templates/pmpgroup_newsletter/images/template/divisions_2.gif" alt="PMP Fast Service" /></td>
<td><a href="http://www.pmpgroup.com/www/index.php?option=com_content&task=blogcategory&id=30&Itemid=61" target="_blank" title="PMP Konmet"><img src="<?php echo $mosConfig_live_site;?>/templates/pmpgroup_newsletter/images/template/divisions_3.gif" alt="PMP Konmet" /></td>
<td><a href="http://www.pmpamericas.com/" target="_blank" title="PMP Americas"><img src="<?php echo $mosConfig_live_site;?>/templates/pmpgroup_newsletter/images/template/divisions_4.gif" alt="PMP Americas" /></td>
<td><a href="http://www.xi-be.com" target="_blank" title="PMP Xibe"><img src="<?php echo $mosConfig_live_site;?>/templates/pmpgroup_newsletter/images/template/divisions_5.gif" alt="PMP Xibe" /></td>
<td><a href="http://www.spencer-johnston.de/" target="_blank" title="Spencer Johnson"><img src="<?php echo $mosConfig_live_site;?>/templates/pmpgroup_newsletter/images/template/divisions_6.gif" alt="Spencer Johnson" /></td>
</tr>
</table>
</div>
</div>
<div class="divisions">
<div>
<?php mosLoadModules ( 'right_bottom', -1 ); ?>
</div>
</div>
</div>
<div class="clr"></div>
</div>
<!-- KONIEC // ZASADNICZA CZESC STRONY -->
<!-- START // STOPKA -->
<div class="footer_outer">
Copyright 2003-<?PHP echo date('Y');?> <a href="http://www.pmpgroup.com/" title="PMP Group">PMP Group</a><br />
Engine & design by <a href="http://www.szczepanski.info/" title="SZCZEPANSKI CONSULTING // Tworzenie profesjonalnych stron www, kampanie e-marketingowe...">SZCZEPAŃSKI Consulting</a><br />
All rights reserved
</div>
<!-- KONIEC // STOPKA -->
</div>
</div>
</div>
</body>
</html>