<?php echo $this->render('module/header.phtml'); ?>

<script type="text/javascript" language="javascript">

	$(document).ready(function () {
	
	
		$("[name='add_opinion']").click(function(){
		
			var err = 0;
			
			if( !$('[name="opinion_type"]').is(':checked') ){	
				err++;
				alert('<?php echo @Lib_Lang::translate(front_account_addopinion_opinion_type_checked); ?>');
			}
			
			if( !$('[name="opinion_contents"]').val() ){	
				err++;
				alert('<?php echo @Lib_Lang::translate(front_account_addopinion_opinion_contents_val); ?>');
			}
			
			if( !$('[name="opinion_signature"]').val() ){	
				err++;
				alert('<?php echo @Lib_Lang::translate(front_account_addopinion_opinion_signature_val); ?>');
			}
			
			if( !$('[name="opinion_reg"]').is(':checked') ){	
				err++;
				alert('<?php echo @Lib_Lang::translate(required_status); ?>');
			}
		
			if( err == 0 ) return true;
			else return false;
		});
	
	
	});

</script>

<style>
	.opinionType{
		border: 1px solid #ccc;
		padding: 7px 20px 7px;
		width: 150px;
		font-size: 16px;
		border-radius: 5px;
		margin-right: 10px;
	}
</style>


<div class="conBox">
<div class="container widthDiv" style="padding-top:15px;">
	<div class="row">
		<div class="col-xs-12 categoryBox" style="padding-bottom:15px;">
		
		
		<div class="col-xs-8">
		<h1 style="margin:0;font-size:26px;"><?php echo @Lib_Lang::translate(front_account_addopinion); ?></h1>	
		</div>
		<div class="col-xs-4">
			<a href="<?php echo @$this->url(array('controller' => 'account', 'action' => 'info'), 'default', true); ?>" class="form-control" style="text-align:center;"><?php echo @Lib_Lang::translate(front_account_youraccount_top); ?></a>
		</div>	

	
		<br /><br />
		
		<form id="formReg" method="post">

		<div class="row vcenter">
			<div class="col-xs-2"></div>
			<div class="col-xs-2 text-right vcenter"><?php echo @Lib_Lang::translate(front_account_addopinion_type); ?></div>
			<div class="col-xs-6">
				<label class="opinionType" style="color: #478a00;"><input name="opinion_type" value="0" type="radio" > <?php echo @Lib_Lang::translate(front_account_addopinion_type0); ?></label>
				<label class="opinionType" style="color: #0c528e;"><input name="opinion_type" value="1" type="radio"> <?php echo @Lib_Lang::translate(front_account_addopinion_type1); ?></label>
				<label class="opinionType" style="color: #df0000;"><input name="opinion_type" value="2" type="radio"> <?php echo @Lib_Lang::translate(front_account_addopinion_type2); ?></label>
			</div>
			<div class="col-xs-2"></div>
		</div>

		<div class="row vcenter">
			<div class="col-xs-2"></div>
			<div class="col-xs-2 text-right vcenter"><?php echo @Lib_Lang::translate(front_account_addopinion_contents); ?></div>
			<div class="col-xs-6">
				<textarea name="opinion_contents" value="" class="form-control" rows="5"></textarea>
			</div>
			<div class="col-xs-2"></div>
		</div>

		<div class="row vcenter">
			<div class="col-xs-2"></div>
			<div class="col-xs-2 text-right vcenter"><?php echo @Lib_Lang::translate(front_account_addopinion_signature); ?></div>
			<div class="col-xs-6">
				<input name="opinion_signature" value="" class="form-control" />
			</div>
			<div class="col-xs-2"></div>
		</div>

		<div class="row vcenter">
			<div class="col-xs-2"></div>
			<div class="col-xs-2 text-right vcenter"></div>
			<div class="col-xs-6">
				<label><input name="opinion_reg" value="1" type="checkbox"> <?php echo @Lib_Lang::translate(front_account_addopinion_reg); ?></label>
			</div>
			<div class="col-xs-2"></div>
		</div>
			
			
		<div class="row vcenter">
			<div class="col-xs-2"></div>
			<div class="col-xs-2 text-right vcenter"></div>
			<div class="col-xs-8">
				<?php echo @Lib_Lang::consta(content_description_.$this->rowContent['content_id']); ?>
			</div>
		</div>
		
		<div class="row vcenter">
			<div class="col-xs-2"></div>
			<div class="col-xs-2 text-right vcenter"></div>
			<div class="col-xs-6"><input name="add_opinion" class="form-control" type="submit" value="<?php echo @Lib_Lang::translate(front_account_addopinion_submit); ?>" /></div>
			<div class="col-xs-2"></div>
		</div>

		</form>
		
		
		
		
		
		
		
		
		
		
		
		
		</div>
	</div>
</div>
</div>

<?php echo $this->render('module/footer.phtml'); ?>

