[ PHPXref.com ] [ Generated: Sun Jul 20 18:58:10 2008 ] [ Netious 0.4 ]
[ Index ]     [ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/ -> contact.php (source)

   1  <?
   2  
   3  /* **************************************************************

   4  Inclusion of the 'include' file containing the functions' definitions

   5  and the db file which stores the DB parameters. Afterwards: 

   6  Call of the DBInfo function which makes the DB pars accessible

   7  for the script and connection to the DB.

   8  ************************************************************** */
   9  
  10  require ("include.php");
  11  require("db.php");
  12  
  13  DBInfo();
  14  
  15  mysql_connect("$DBHost","$DBUser","$DBPass");
  16  mysql_select_db("$DBName");
  17  
  18  include ("session.php");
  19  
  20  $from=$_SERVER['REQUEST_URI'];
  21  
  22  if (!isset($email)) $email="";
  23  if (!isset($name)) $name="";
  24  if (!isset($message)) $message="";
  25  if (!isset($action)) $action="0";
  26  
  27  
  28  
  29  /* Create the page */

  30  
  31  
  32  commonheader($pageid,$title,$keywords,$description,$forcedid);
  33  bodybegin($width, $bodyposition);
  34  logobar($logoname,$textlogo);
  35  authbar($pageid,$secured,$from);
  36  
  37  
  38  if ($model!="vv") {mainmenu($pageid,$model,$secured);
  39  
  40  $contwidth="100%"; 
  41  $side="no";} else {$contwidth="80%";
  42              $side="yes";}
  43  
  44  
  45  
  46  
  47  
  48  echo "
  49  <table width=\"100%\">
  50      <tr>";
  51      
  52  if ($side=="yes")
  53      {echo "
  54          <td width=\"20%\" align=\"center\" valign=\"top\">";
  55          if ($model=="vv") mainmenu($pageid,$model,$secured);
  56          echo "<br />";
  57          echo"
  58          </td>";
  59      }
  60      
  61  
  62  echo " 
  63          <td width=\"$contwidth\" align=\"center\" valign=\"top\">
  64          <table width=\"90%\">
  65              <tr>
  66                  <td valign=\"top\" align=\"center\">
  67                  <br/>
  68  
  69  
  70                  <h1 align=\"center\">Contact us</h1>";
  71  
  72  if ($action=="1") echo "<b>Write your name</b>";
  73  if ($action=="2") echo "<b>What is your e-mail address?</b>";
  74  if ($action=="3") echo "<b>Invalid e-mail</b>";
  75  if ($action=="4") echo "<b>The message is empty!</b>";
  76  
  77      echo "
  78      <form action=\"mail.php\" method=\"post\">
  79      <table width=\"70%\" cellspacing=\"5\" cellpadding=\"5\">
  80      <tr>
  81      <td align=\"left\" style=\"border:solid 1px #cccccc\" width=\"100px\">
  82      Your name:
  83      </td>
  84      <td align=\"left\" style=\"border:solid 1px #cccccc\">
  85      <input type=\"text\" name=\"name\" value=\"$name\" size=\"40\" />
  86      </td>
  87      </tr>
  88      <tr>
  89      <td align=\"left\" style=\"border:solid 1px #cccccc\">
  90      Your e-mail:
  91      </td>
  92      <td align=\"left\" style=\"border:solid 1px #cccccc\">
  93      <input type=\"text\" name=\"email\" value=\"$email\" size=\"40\" />
  94      </td>
  95      </tr>
  96      <tr>
  97      <td align=\"left\" style=\"border:solid 1px #cccccc\">
  98      Message text:
  99      </td>
 100      <td align=\"left\" style=\"border:solid 1px #cccccc\">
 101      <textarea cols=\"40\" rows=\"8\" name=\"message\">$message</textarea>
 102      </td>
 103      </tr>
 104      <tr>
 105      <td colspan=\"2\" align=\"center\">
 106      <input type=\"submit\" value=\"Send\" />
 107      </td>
 108      </tr>
 109      </table>
 110      </form>
 111  
 112  
 113  
 114                  <br /><br />
 115                  </td>
 116              </tr>
 117          </table>
 118          </td>
 119      </tr>
 120  </table>
 121  ";
 122  
 123  
 124  
 125  
 126  bodyend($thisurl);
 127  commonfooter();
 128  
 129  
 130  
 131  ?>


[ Powered by PHPXref - Served by Debian GNU/Linux ]