<?/*
Copyright (C) 2003 Media Net Link, Inc. Danville, CA 94526 USA

This file is part of AthenaRMS.

AthenaRMS 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.

AthenaRMS is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/?>
<?PHP

require_once 'person.php';
#require_once 'athena.conf';

$person = new Person();
$prec = $person->Info_by_Person_ID($REMOTE_USER);
$email = $prec->Get('email');
$fname = $prec->Get('first_name');
$lname= $prec->Get('last_name');

?>
<HTML>
<HEAD>
<TITLE></TITLE>
<LINK REL="stylesheet" HREF="<?= $web_root ?>/includes/css/global.css" TYPE="text/css">

<script language="JavaScript" type="text/javascript">
<!--

function mark(face,field_color,text_color) {
  if (document.documentElement) {  //if browser is IE5+ or NS6+
    face.style.backgroundColor=field_color;
    face.style.color=text_color;
  }
}

function sendback() {
  location.href = '<?= $web_root ?>/help/detail.php?page_id=<?= $_REQUEST['page_id'] ?>&help_id=<?= $_REQUEST['help_id'] ?>';
  return false;
}

function sendbackbody() {
  location.href = '<?= $web_root ?>/help/body.php?page_id=<?= $_REQUEST['page_id'] ?>';
  return false;
}

//-->
</script>

</HEAD>
<BODY BGCOLOR="#eeeeee" LEFTMARGIN="0" TOPMARGIN="0" MARGINWIDTH="0"  MARGINHEIGHT="0">

<BR>
<CENTER>
<TABLE width="100%" CELLPADDING="4" CELLSPACING="0" BORDER="0" CLASS="helptable">
<FORM NAME="email_form" ACTION="http://athenahelp.mnl.com/feedback/submit" METHOD="post">
<!--<FORM NAME="email_form" ACTION="robtest.php" METHOD="post">-->
<input type="hidden" name="atts[341][option_id][]" value="700">
<input type="hidden" name="atts[341][ai][]" value="<?= $_REQUEST['page_id'] ?>">
<input type="hidden" name="first_name" value="<?= htmlentities($fname) ?>">
<input type="hidden" name="last_name" value="<?= htmlentities($lname) ?>">
<input type="hidden" name="subject" value="help question">
<TR>
<TD colspan='2' ALIGN="CENTER"><INPUT onFocus="mark(this,'white','black')" onBlur="mark(this,'white','black')" TYPE="TEXT" CLASS="helpfrom" NAME="email" VALUE="<?= htmlentities($email) ?>">
</TD>
</TR>
<TR>
<TD colspan='2' ALIGN="CENTER">
<SELECT onFocus="mark(this,'#EBF3F7','black')" onBlur="mark(this,'white','black')" NAME="atts[341][option_id][]" CLASS="helpchoose">
<OPTION VALUE="708">Specify your request type</OPTION>
<OPTION VALUE="707">&#149; Application Assistance</OPTION>
<OPTION VALUE="702">&#149; I can't find...</OPTION>
<OPTION VALUE="705">&#149; Enhancement Request</OPTION>
<OPTION VALUE="704">&#149; Report a bug</OPTION>
<OPTION VALUE="703">&#149; Other</OPTION>
</SELECT></TD>
</TR>
<TR>
<TD colspan="2" ALIGN="CENTER"><TEXTAREA NAME="comments" COLS="40" ROWS="7" CLASS="helptype" WRAP="soft" ONFOCUS="if(this.value=='Type your question or request') {this.value='';}; mark(this,'#EBF3F7','black')" ONBLUR="if(this.value=='') {this.value='Type your question or request';}; mark(this,'white','black')">Type your question or request</TEXTAREA></TD>
</TR>
<TR>
<?PHP
if (empty($_REQUEST['help_id'])) {
?>
<TD VALIGN="middle" ALIGN="left">
<INPUT TYPE="submit" NAME="action" ONCLICK="return(sendbackbody());" CLASS="bl-btn-off" VALUE="Cancel">
</TD>
<?PHP
}
else {
?>

<TD VALIGN="middle" ALIGN="left">
<INPUT TYPE="submit" NAME="action" ONCLICK="return(sendback());" CLASS="bl-btn-off" VALUE="Cancel">
</TD>
<?PHP
}
?>

<TD VALIGN="middle" ALIGN="right">
<INPUT TYPE="submit" NAME="action" CLASS="bl-btn-on" VALUE="Send">
</TD>
</TR>
</FORM>
</TABLE></CENTER></BODY>
</HTML>
