<?php 
/*
##################################################################
#                       PHP 4&5 MySQL 4&5                        #
##################################################################
#           Copyright (c) 2004-2008 Armia Systems Inc            #
##################################################################
#               This file is part of Cybermatch site             #
##################################################################
#    Developed By: simi (simi@armia.com)                         #

##################################################################
#               Developed On:   03-04-2008                       #
##################################################################
#               Modified By:                                     #
##################################################################
#               Modified On:                                     #
##################################################################
# This script may not be distributed, sold, given away for free  #
# to third party, or used as a part of any internet services 	 #
# such as webdesign etc.                                         #
##################################################################
*/

require_once ("config.inc.php");
require_once ("includes/userlogincheck.inc.php");
require_once ("includes/mysql.inc.php");
require_once ("includes/arrays.inc.php");
require_once ("classes/settings.class.php");
require_once ("classes/userside.class.php");
require_once ("classes/misc.class.php");

$objC		= new check();
if (!$objDB) {
	$message	= "Unable to Locate Database Server.";
} else {
	$objU			= new userside($objDB);
	$objS			= new settings($objDB);
	$objM			= new misc($objDB);
	$objS->set_variables();
	
	if (isset($_POST['CON1'])) {
		$objU->set_values($_POST);
		$message	= $objU->register_step_six($_SESSION['user_id']);
		if ($message == "")
			$message	.= "Your outlook value(s) saved.<br>";
	} else {
		$array	= $objU->select($_SESSION['user_id']);
		$objU->set_values($array);
	}
	
	$script		= $objM->get_script($message);
	$message	= $objM->remove_script($message);
}
include_once ("title.inc.php");
include_once ("tophtml.inc.php");
?>
<script type="text/javascript"  src="js/googlefix.js"></script>
<script language="javascript" type="text/javascript">
function changeCSS(obj, type)
{
	if (type == 'text') {
		obj.className = 'textbox';
	} else if (type == 'textarea') {
		obj.className = 'textbox_textarea';
	} else if (type == 'select') {
		obj.className = 'textbox';
	} else {
		obj.className = 'textbox';
	}
}
</script>
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td valign="top"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="72%" valign="top"><div class="search-rslts"><table width="100%"  border="0" cellspacing="0" cellpadding="5">
          <tr>
            <td>              <table width="100%"  border="0" cellspacing="0" cellpadding="5">
              <tr>
                   <td class="inenr-hd"><h2>My Outlook</h2></td>
                
              </tr>
            </table>
				<table width="100%"  border="0" cellspacing="0" cellpadding="10">
                <tr>
                  <td><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td class="headings2">Outlook</td>
                    </tr>
                  </table>
                    <table width="100%"  border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td><img src="images/spacer.gif" width="1" height="10"></td>
                      </tr>
                    </table>
					<form name="frmStep6" method="post" action="<?php echo $_SERVER['PHP_SELF']?>">
                    <table width="100%"  border="0" cellspacing="0" cellpadding="5">
					<?php if(isset($message) && trim($message)!='')
					      {
					?>
                    <tr align="center">
                      <td colspan="2" class="maintext1 warning"><?php echo $message;?></td>
                      </tr>
					<?php }//end if?>
                    <tr>
                      <td colspan="2" class="maintext1"><strong>Did someone say &quot;Politics?&quot; </strong></td>
                      </tr>
                    <tr>
                      <td colspan="2" class="maintext1">( Where do you stand? )</td>
                      </tr>
                    <tr>
                      <td colspan="2" class="maintext1"><textarea name="tmy_politics" cols="60" rows="5" class="textbox_textarea"><?php echo $objU->tmy_politics?>
                      </textarea></td>
                      </tr>
                    <tr>
                      <td colspan="2" class="maintext1"><strong>Of the major issues in the world, which one are you the most passionate about? </strong></td>
                      </tr>
                    <tr>
                      <td colspan="2" class="maintext1"><textarea name="tmy_major_world_issue" cols="60" rows="5" class="textbox_textarea" onKeyDown="changeCSS(this, 'textarea');"><?php echo $objU->tmy_major_world_issue?>
                      </textarea></td>
                      </tr>
                    <tr>
                      <td colspan="2" class="maintext1"><strong>What are you doing about it? </strong></td>
                      </tr>
                    <tr>
                      <td colspan="2" class="maintext1"><textarea name="tmy_doings_on_major_world_issue" cols="60" rows="5" class="textbox_textarea"><?php echo $objU->tmy_doings_on_major_world_issue?>
                      </textarea></td>
                      </tr>
                    <tr>
                      <td colspan="2" class="maintext1"><strong>The 9:30 Club is featuring one of your old favs like Emmet Swimming or one of your new favs like Joss Stone; however your boss just offered you free tix to the National Symphony Orchestra at the Kennedy Center.</strong>
                              <input type="hidden" name="tmy_scenario_question_one" value="The 9:30 Club is featuring one of your old favs like Emmet Swimming or one of your new favs like Joss Stone; however your boss just offered you free tix to the National Symphony Orchestra at the Kennedy Center">                              </td>
                      </tr>
                    <tr>
                      <td width="4%" class="maintext1">&nbsp;</td>
                      <td width="96%" class="maintext1"><strong>Do you ... </strong></td>
                    </tr>
                    <tr>
                      <td class="maintext1">&nbsp;</td>
                      <td class="maintext1"><input name="tmy_scenario_answer_one" type="radio" value="Put on a tie and a grab a date" <?php echo $objU->tmy_scenario_answer_one == "Put on a tie and a grab a date"? "checked" : ""?>> Put on a tie and a grab a date</td>
                    </tr>
                    <tr>
                      <td class="maintext1">&nbsp;</td>
                      <td class="maintext1"><strong>Or ... </strong></td>
                    </tr>
                    <tr>
                      <td class="maintext1">&nbsp;</td>
                      <td class="maintext1"><input name="tmy_scenario_answer_one" type="radio" value="Tie one on and stay up late" <?php echo $objU->tmy_scenario_answer_one == "Tie one on and stay up late"? "checked" : ""?>>
      Tie one on and stay up late</td>
                    </tr>
                    <tr>
                      <td colspan="2" class="maintext1"><strong>A gorgeous girl/guy walks up to you at a Martini bar, with that look in her/his eye. What do you do?</strong>
                                            <input type="hidden" name="tmy_scenario_question_two" value="A gorgeous girl/guy walks up to you at a Martini bar, with that look in her/his eye. What do you do?">
                                    </td>
                      </tr>
                    <tr>
                      <td class="maintext1">&nbsp;</td>
                      <td class="maintext1"><strong>Do you ... </strong></td>
                    </tr>
                    <tr>
                      <td class="maintext1">&nbsp;</td>
                      <td class="maintext1"><input name="tmy_scenario_answer_two" type="radio" value="Play it cool and look away" <?php echo $objU->tmy_scenario_answer_two == "Play it cool and look away"? "checked" : ""?>> Play it cool and look away.</td>
                    </tr>
                    <tr>
                      <td class="maintext1">&nbsp;</td>
                      <td class="maintext1"><strong>Or ... </strong></td>
                    </tr>
                    <tr>
                      <td class="maintext1">&nbsp;</td>
                      <td class="maintext1"><input name="tmy_scenario_answer_two" type="radio" value="Grab their hand, kiss it gently, and introduce yourself as their density...I mean destiny" <?php echo $objU->tmy_scenario_answer_two == "Grab their hand, kiss it gently, and introduce yourself as their density...I mean destiny"? "checked" : ""?>> Grab their hand, kiss it gently, and introduce yourself as their density...I mean destiny.</td>
                      </tr>
                    <tr>
                      <td>&nbsp;</td>
                      <td>&nbsp;</td>
                      </tr>
                    <tr>
                      <td colspan="2"><input name="CON1" type="submit" class="loginbutton" value="Save">                        <input type="hidden" name="step" value="7"></td>
                      </tr>
                  </table>
					</form>
                    </td>
                </tr>
              </table>
              <div id="hide"><?php echo $script?></div>
			</td>
          </tr>
        </table></div></td>
        <td width="28%" valign="top"><?php include_once ("left.inc.php");?></td>
      </tr>
    </table>      
      </td>
  </tr>
</table>
<?php include_once('bottomhtml.inc.php');?>
