<?php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: 			*/
// +----------------------------------------------------------------------+
// | PHP version 4/5                                                      |
// +----------------------------------------------------------------------+
// | Copyright (c) 2004-2010 ARMIA INC                                    |
// +----------------------------------------------------------------------+
// | This source file is a part of iScripts VistaCart                     |
// +----------------------------------------------------------------------+
// | Authors: Jipson<jipson.thomas@armiasystems.com>             		  |
// +----------------------------------------------------------------------+
?>
<script language="javascript" type="text/javascript">
function chk(){
    
        if (document.getElementById("FeedbackComment").value == "") { 
            alert("Please Enter Feedback");
            document.getElementById("FeedbackComment").focus();
            return false;
        }
        else{
		return true;;
	}
} 
</script>
<style>
    #inner_rightcontent { width: 60% !important; }
</style>
           
			<div align="center">
				<h2 class="title text-center mainhd">Post Feedback</h2>
			</div>

            <br />
            <div align="left" id="item_details_admin">
              <!--items display area start -->
              <div align="center" id="items_display_area_admin">
                <div align="left" class="inner_content_area_admin">
				<?php if($session->check('Message.flash')) { ?><div id="okbox"><font color="#446423"><?php $session->flash(); ?></font></div><?php } ?>
				<?php echo $form->create('Feedback', array('name' =>'Feedback','action' =>'add/'.$pid,'onsubmit' => 'return chk();'));?>
				   <div id="admin_heading">Enter Feedback on <?php echo $pname;?></div>
				  <div id="grid_admin">
                    <div align="right" id="inner_leftcontent">
                      <p class="maintext_inner">Feedback Type<span class="required_field">*</span></p>
                    </div>
                    <div align="left" id="inner_rightcontent">
                     <span class="toplinks">
						<?php echo $form->input('type', array('options' => $opt,'label' => ' ', 'class' => 'box2_admin')); ?>
                     
                        </span>
                    </div>
                    <div align="left" class="float_clear1"><?php echo $html->image('/img/clear.gif');?></div>
                  </div>
                  <div align="left" class="float_clear1"><?php echo $html->image('/img/clear.gif');?></div>
                  <div id="grid_admin">
                    <div align="right" id="inner_leftcontent">
                      <p class="maintext_inner">Enter Feedback<span class="required_field">*</span></p>
                    </div>
                    <div align="left" id="inner_rightcontent">
                      <span class="toplinks">
						<p class="maintext_inner"><?php echo $form->input('comment',array('rows' => '3','label' => '', 'class' => 'box2_admin', 'size' => 27));?></p>
                        </span>
                    </div>
                    <div align="left" class="float_clear1"><?php echo $html->image('/img/clear.gif');?></div>
                  </div>
                  <div align="left" class="float_clear1"><?php echo $html->image('/img/clear.gif');?></div>
                  
                 <div id="admin_bottom">
				<div align="left" id="inner_leftcontent">
				  <p class="maintext_inner">&nbsp;</p>
				</div>
				<div align="right" id="inner_rightcontent">
					<span class="toplinks">		
					
					<input type="button" value="Cancel" onClick="javascript:history.go(-1);" class="buttn_admin">
                                        <input type="submit" value="Save"  class="buttn_admin"><?php //onClick="return chk();" ?>
                                        
					</span>
				</div>
				<div align="left" class="float_clear1"><?php echo $html->image('/img/clear.gif', array('width' => 1, 'height' => 1));?></div>
			</div>
                </div>
				<?php echo $form->end(); ?>
                <!--form area end -->
</div>
              <div align="left" class="float_clear1"></div>
            </div>
            <div align="left" class="float_clear1"><?php echo $html->image('/img/clear.gif');?></div>
			