<?php
/*************************
  Coppermine Photo Gallery
  ************************
  Copyright (c) 2003-2006 Coppermine Dev Team
  v1.1 originally written by Gregory DEMAR

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.

/*********************************************
  Plugin Coded by Frantz Based on Gizmo MOD
  
  Fixing contact button positioning & Added CAPTCHA confirmation
  by B.Mossavari (Sami)
**********************************************/
define('IN_COPPERMINE', TRUE);
define("_BBCLONE_DIR", "bbclone/");  
define("COUNTER", _BBCLONE_DIR."mark_page.php");  
if (is_readable(COUNTER)) include_once(COUNTER);  
require('include/init.inc.php');
require ('plugins/contact/include/init.inc.php');
pageheader($lang_plugin_contact['name']);
starttable("100%", $lang_plugin_contact['name'], 2);

?>

<tr>
	<td colspan="2"  class="tableb" valign="top" align="left"><i><b><?php echo"<font color=red>". "* ".$lang_plugin_contact['required']."</font color>"; ?></b></i></td>
</tr>

<form method="post" action="index.php?file=contact/fcf_parse" name="contactform">

<tr>
	<td class="tableb" valign="top" align="right" ><?php echo $lang_plugin_contact['your_name'];?> *: </td>
       	<td align="left"><input name="Name" type="text" title="required" value="<?php if(isset($_SESSION['cnt_name'])) echo $_SESSION['cnt_name']; ?>" size="35"/></td>
</tr>

<tr>
	<td class="tableb" valign="top" align="right"> <?php echo $lang_plugin_contact['your_mail'];?> *:</td>
      	<td align="left"><input type="text" name="Email" size="35" title="required" value="<?php if(isset($_SESSION['cnt_email'])) echo $_SESSION['cnt_email']; ?>"/></td>
</tr>

<tr>
	<td class="tableb" valign="top" align="right"> <?php echo $lang_plugin_contact['subject'];?> *:</td>
    <td align="left"><input type="text" name="Subject" size="35" title="required" value="<?php if(isset($_SESSION['cnt_subject'])) echo $_SESSION['cnt_subject']; ?>"/></td>
</tr>
 
<tr>
	<td colspan="2" class="tableb" valign="top" align="center"> <?php echo $lang_plugin_contact['text'];?> *:</td>
</tr>

<tr>
	<td colspan="2"align="center"><textarea rows="10" cols="60" name="Comments" title="required"><?php if(isset($_SESSION['cnt_comments'])) echo $_SESSION['cnt_comments']; ?></textarea></td>
</tr>
  
<tr>
	<td colspan="2" class="tableb" valign="top" align="center"> <?php echo $lang_plugin_contact['spam_question'];?></td>
</tr> 

<tr>
	<td class="tableb" valign="top" align="right"><?php echo $question;?></td>
        <td align="left"><img src="plugins/contact/captcha.php" align="absmiddle" />&nbsp;
        <input type="text" name="confirmCode" id="confirmCode" size="5" class="textinput" style="width:50px; height:20px; font-size:12pt;">
        *</td>
</tr>
<tr><td colspan="2" class="tableb" valign="top" align="center">        
        <input type="hidden" value="captcha_check" id="contact_captcha" name="contact_captcha" />
        <input name="submit" type="submit" class="cfcSub" id="submit" value="<?php echo $lang_plugin_contact['submit'];?>" /></td>
</tr>

    </form>
    
    <?php
endtable();
pagefooter();
ob_end_flush();
?>