Просмотр файла pages/calklove.php

Размер файла: 2.37Kb
<?php
require_once "../includes/start.php";
require_once "../includes/functions.php";
require_once "../includes/header.php";
include_once "../themes/".$config['themes']."/index.php";
if (isset($_GET['start'])){$start = (int)$_GET['start'];} else {$start = 0;}
$action=$_GET['action'];
show_title('partners.gif', 'Калькулятор любви');
if ($action==''){
echo '<form action="?action=love&amp;'.SID.'" method="post">
<p align="center"><font color="#FF9900">
<img border="0" src="../images/img/women.png" width="22" height="22"><input value="" name="women" size="30" style="background-color: #FF0000"> </font></p>
<p align="center"><font color="#FF9900">+</font></p>
<p align="center"><font color="#FF9900">&nbsp;<img border="0" src="../images/img/security.png" width="22" height="22"><input value="" name="men" size="30" style="background-color: #00FF00"></font></p>
<p align="center"><font color="#FF9900">
<b></font></b>
<input type="submit" value="Проверить на совместимость">
</p></form>';}
if ($action == 'love'){
$text=rand(50,100);
$women = trim($_POST['women']);
$men = trim($_POST['men']);
echo '<form action="?action=love&amp;'.SID.'" method="post">
<p align="center"><font color="#FF9900">
<img border="0" src="../images/img/women.png" width="22" height="22"><input value="'.$women.'" name="women" size="30" style="background-color: #FF0000"> </font></p>
<p align="center"><font color="#FF9900">+</font></p>
<p align="center"><font color="#FF9900">&nbsp;<img border="0" src="../images/img/security.png" width="22" height="22"><input value="'.$men.'" name="men" size="30" style="background-color: #00FF00"></font></p>
<p align="center"><font color="#FF9900">&nbsp;=</font></p>
<p align="center"><font color="#FF9900">Вы совместимы на <img border="0" src="../images/img/info.gif" width="24" height="24">'.$text.'%</font></p>
<p align="center"><font color="#FF9900">
&nbsp;<font color="#0000FF"> Желаю Вам счастья и всего самого наилучшего !!!</font>
</font><b><font color="#0000FF"><br></font></b><br>
<input type="submit" value="Проверить на совместимость">
</p></form>';}
echo '<br /><img src="'.BASEDIR.'images/img/act_home.gif" alt="image" /> <a href="'.BASEDIR.'index.php?'.SID.'">На главную</a>';
include_once "../themes/".$config['themes']."/foot.php";
?>