<?php
/**
 * @version		1.2 feedback $
 * @package		feedback
 * @copyright	Copyright © 2010 Mertonium. All rights reserved.
 * @license		GNU/GPL
 * @author		Mertonium
 * @author mail	john@mertonium.com
 * @website		http://mertonium.com
 *
 *
 * @MVC architecture generated by MVC generator tool at http://www.alphaplug.com
 */

// no direct access
defined('_JEXEC') or die('Restricted access');

?>
<script type="text/javascript">
<!--	
	function validateForm( frm ) {
		var valid = document.formvalidator.isValid(frm);
		if (valid == false) {
			// do field validation
			// your custom code here
			return false;
		} else {
			frm.submit();
		}
	}
	
	var jmvnt = (window.webkit) ? 'load' : 'domready';
	window.addEvent(jmvnt, function() {		
	
	});
// -->
</script>
<?php
if ( $this->params->def( 'show_page_title', 1 ) && $this->params->get('page_title') ) {
?>
<div class="contentheading<?php echo $this->params->get( 'pageclass_sfx' ); ?>">
	<?php
	$page_title = ($this->params->get('page_title'))? $this->escape($this->params->get('page_title')) : '' ;
	echo $page_title;
	?>
</div>
<?php
}
?>
<form action="<?php echo JRoute::_( 'index.php' );?>" method="post" name="adminForm" id="adminForm" class="form-validate">
<div class="col100">
    <fieldset class="adminform">
        <legend><?php echo JText::_( 'Feedback Details' ); ?></legend>
        <div id="img_preview" class="img-prev-div"></div>
		<table class="admintable">
        <tr>
            <td width="100" align="right" class="key">
                <?php echo JText::_( 'Submitted label' ); ?>
            </td>
            <td>
				<?php echo date("j M Y @ H:i:s",strtotime($this->feedbackentry->submitted_ts));?>
            </td>
        </tr>
		<tr>
            <td width="100" align="right" class="key">
                <?php echo JText::_( 'Name label' ); ?>
            </td>
            <td>
				<?php echo $this->feedbackentry->submitter_name;?>
            </td>
        </tr>
		
		<tr>
            <td width="100" align="right" class="key">
                <?php echo JText::_( 'Email label' ); ?>
            </td>
            <td>
				<?php echo $this->feedbackentry->submitter_email;?>
            </td>
        </tr>			
		<tr>
            <td width="100" align="right" class="key">
                <?php echo JText::_( 'Url label' ); ?>
            </td>
            <td>
				<a href="<?php echo $this->feedbackentry->url;?>" target="_blank"><?php echo $this->feedbackentry->url;?></a>
            </td>
        </tr>	
		<tr>
            <td width="100" align="right" class="key">
                <?php echo JText::_( 'Feedback label' ); ?>
            </td>
            <td>
				<?php echo $this->feedbackentry->feedback;?>
            </td>
        </tr>
		<tr>
            <td width="100" align="right" class="key">
                <?php echo JText::_( 'Browser version label' ); ?>
            </td>
            <td>
				<?php echo $this->feedbackentry->browser . ' ' . $this->feedbackentry->browser_version;?>
            </td>
        </tr>		
		<tr>
            <td width="100" align="right" class="key">
                <?php echo JText::_( 'Operating System label' ); ?>
            </td>
            <td>
				<?php echo $this->feedbackentry->operating_system;?>
            </td>
        </tr>
		<tr>
            <td width="100" align="right" class="key">
                <?php echo JText::_( 'Screen Resolution label' ); ?>
            </td>
            <td>
				<?php echo $this->feedbackentry->screen_resolution;?>
            </td>
        </tr>
		<tr>
            <td width="100" align="right" class="key">
                <?php echo JText::_( 'Script name label' ); ?>
            </td>
            <td>
				<?php echo $this->feedbackentry->script_name;?>
            </td>
		<tr>
            <td width="100" align="right" class="key">
                <?php echo JText::_( 'Referer label' ); ?>
            </td>
            <td>
				<?php echo $this->feedbackentry->referer;?>
            </td>
        </tr>
		<tr>
            <td width="100" align="right" class="key">
                <?php echo JText::_( 'Time to fill out form label' ); ?>
            </td>
            <td>
				<?php echo $this->feedbackentry->time_split;?>
            </td>
        </tr>
		<tr>
            <td width="100" align="right" class="key">
                <?php echo JText::_( 'User IP address label' ); ?>
            </td>
            <td>
				<?php echo $this->feedbackentry->user_ip;?>
            </td>
        </tr>
		<tr>
            <td width="100" align="right" class="key">
                <?php echo JText::_( 'User Agent label' ); ?>
            </td>
            <td>
				<?php echo $this->feedbackentry->user_agent;?>
            </td>
        </tr>
    </table>
    </fieldset>
</div>
 
<div class="clr"></div>

<input type="hidden" name="option" value="com_feedback" />
<input type="hidden" name="id" value="<?php echo $this->feedbackentry->id; ?>" />
<input type="hidden" name="task" value="submit" />
<input type="hidden" name="limitstart" value="<?php echo JRequest::getVar('limitstart') ?>" />
<?php echo JHTML::_( 'form.token' ); ?>
</form>