<commit_before><?php
/**
 * @var $this ContactController
 * @var $model SupportMails
 *
 * @author <NAME> <<EMAIL>>
 * @copyright Copyright (c) 2014 Ommu Platform (ommu.co)
 * @link http://company.ommu.co
 * @contact (+62)856-299-4114
 *
 */
 
	$this->breadcrumbs=array(
		'Support Mails'=>array('manage'),
		'Create',
	);
?>

<p>Silahkan mengisi fasilitas buku tamu kami. Mohon masukan dan pertanyaan disampaikan secara bijak dengan kata-kata yang baik. Komentar yang berupa spam, kata-kata kotor, link tidak bermanfaat akan segera kami hapus. <br/><br/>
Untuk komentar yang bersifat keluhan atau pertanyaan dan memerlukan jawaban, akan segera kami tanggapi, kecuali keluhan/pertanyaan yang memerlukan koordinasi dengan instansi yang berwenang.</p>

<div class="sep-form">
<?php if(!isset($_GET['email'])) {
	$form=$this->beginWidget('application.components.system.OActiveForm', array(
		'id'=>'support-contacts-form',
		'enableAjaxValidation'=>true,
		'htmlOptions' => array(
			'class' => 'form',
			'enctype' => 'multipart/form-data',
		),
	)); ?>

	<fieldset>
		<?php if(!Yii::app()->user->isGuest && $user != null) {
			$model->user_id = $user->user_id;
			$model->email = $user->email;
			$model->displayname = $user->displayname;
			echo $form->hiddenField($model,'email');
			echo $form->hiddenField($model,'displayname');
		} else {
			$model->user_id = 0;
		}
		echo $form->hiddenField($model,'user_id');
		?>
		
		<?php if(Yii::app()->user->isGuest) {?>	
			<div class="clearfix">
				<?php echo $form->textField($model,'displayname',array('maxlength'=>32, 'class'=>'span-6', 'placeholder'=>$model->getAttributeLabel('displayname'))); ?>
				<?php echo $form->error($model,'displayname'); ?>
			</div>
			
			<div class="clearfix">
				<?php echo $form->textField($model,'email',array('maxlength'=>32, 'class'=>'span-6', 'placeholder'=>$model->getAttributeLabel('email'))); ?>
				<?php echo $form->error($model,'email'); ?>
			</div>
		<?php } else {
			if($user->photo_id == 0) {
				$images = Utility::getTimThumb(Yii::app()->request->baseUrl.'/public/users/default.png', 60, 60, 1);
			} else {
				$images = Utility::getTimThumb(Yii::app()->request->baseUrl.'/public/users/'.$user->user_id.'/'.$user->photo->photo, 60, 60, 1);
			}?>
			<div class="user-info clearfix">
				<img src="<?php echo $images;?>" alt="<?php echo $user->photo_id != 0 ? $user->displayname: 'Ommu Platform';?>"/>
				<div>
					<h3><?php echo $user->displayname;?></h3>
					<?php echo $user->email;?>
				</div>
			</div>
		<?php }?>
		
		<div class="clearfix">
			<?php echo $form->textField($model,'subject',array('maxlength'=>64, 'class'=>'span-6', 'placeholder'=>$model->getAttributeLabel('subject'))); ?>
			<?php echo $form->error($model,'subject'); ?>
		</div>

		<div class="clearfix">
			<?php echo $form->textArea($model,'message',array('rows'=>6, 'cols'=>50, 'class'=>'span-9 medium', 'placeholder'=>$model->getAttributeLabel('message'))); ?>
			<?php echo $form->error($model,'message'); ?>
		</div>

		<div class="submit clearfix">
			<?php echo CHtml::submitButton($model->isNewRecord ? Phrase::trans(328,0) : Phrase::trans(328,0), array('onclick' => 'setEnableSave()')); ?>
		</div>

	</fieldset>
	<?php $this->endWidget(); 
} else {?>
	<div class="message success"><?php echo $this->pageDescription;?></div>
<?php }?>
</div><commit_msg>commit<commit_after><?php
/**
 * @var $this ContactController
 * @var $model SupportMails
 *
 * @author <NAME> <<EMAIL>>
 * @copyright Copyright (c) 2014 Ommu Platform (ommu.co)
 * @link http://company.ommu.co
 * @contact (+62)856-299-4114
 *
 */
 
	$this->breadcrumbs=array(
		'Support Mails'=>array('manage'),
		'Create',
	);
?>

<p>Silahkan mengisi fasilitas buku tamu kami. Mohon masukan dan pertanyaan disampaikan secara bijak dengan kata-kata yang baik. Komentar yang berupa spam, kata-kata kotor tidak akan kami jawab.</p>

<div class="sep-form">
<?php if(!isset($_GET['email'])) {
	$form=$this->beginWidget('application.components.system.OActiveForm', array(
		'id'=>'support-contacts-form',
		'enableAjaxValidation'=>true,
		'htmlOptions' => array(
			'class' => 'form',
			'enctype' => 'multipart/form-data',
		),
	)); ?>

	<fieldset>
		<?php if(!Yii::app()->user->isGuest && $user != null) {
			$model->user_id = $user->user_id;
			$model->email = $user->email;
			$model->displayname = $user->displayname;
			echo $form->hiddenField($model,'email');
			echo $form->hiddenField($model,'displayname');
		} else {
			$model->user_id = 0;
		}
		echo $form->hiddenField($model,'user_id');
		?>
		
		<?php if(Yii::app()->user->isGuest) {?>	
			<div class="clearfix">
				<?php echo $form->textField($model,'displayname',array('maxlength'=>32, 'class'=>'span-6', 'placeholder'=>$model->getAttributeLabel('displayname'))); ?>
				<?php echo $form->error($model,'displayname'); ?>
			</div>
			
			<div class="clearfix">
				<?php echo $form->textField($model,'email',array('maxlength'=>32, 'class'=>'span-6', 'placeholder'=>$model->getAttributeLabel('email'))); ?>
				<?php echo $form->error($model,'email'); ?>
			</div>
		<?php } else {
			if($user->photo_id == 0) {
				$images = Utility::getTimThumb(Yii::app()->request->baseUrl.'/public/users/default.png', 60, 60, 1);
			} else {
				$images = Utility::getTimThumb(Yii::app()->request->baseUrl.'/public/users/'.$user->user_id.'/'.$user->photo->photo, 60, 60, 1);
			}?>
			<div class="user-info clearfix">
				<img src="<?php echo $images;?>" alt="<?php echo $user->photo_id != 0 ? $user->displayname: 'Ommu Platform';?>"/>
				<div>
					<h3><?php echo $user->displayname;?></h3>
					<?php echo $user->email;?>
				</div>
			</div>
		<?php }?>
		
		<div class="clearfix">
			<?php echo $form->textField($model,'subject',array('maxlength'=>64, 'class'=>'span-6', 'placeholder'=>$model->getAttributeLabel('subject'))); ?>
			<?php echo $form->error($model,'subject'); ?>
		</div>

		<div class="clearfix">
			<?php echo $form->textArea($model,'message',array('rows'=>6, 'cols'=>50, 'class'=>'span-9 medium', 'placeholder'=>$model->getAttributeLabel('message'))); ?>
			<?php echo $form->error($model,'message'); ?>
		</div>

		<div class="submit clearfix">
			<?php echo CHtml::submitButton($model->isNewRecord ? Phrase::trans(328,0) : Phrase::trans(328,0), array('onclick' => 'setEnableSave()')); ?>
		</div>

	</fieldset>
	<?php $this->endWidget(); 
} else {?>
	<div class="message success"><?php echo $this->pageDescription;?></div>
<?php }?>
</div>
{'fraction_non_alphanumeric': 0.23211520594611335, 'fraction_numerical': 0.01610405698358625, 'mean_word_length': 4.8399638336347195, 'pattern_counts': {'":': 0, '<': 105, '<?xml version=': 0, '>': 231, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3137112', 'n_tokens_mistral': 2567, 'n_tokens_neox': 2279, 'n_words': 416}