<? $this->load->view( $this->aSystemVar['template_viewer_root'] . 'admin/_header') ?>

	<div class="bigCaption">Translate to <?=$data['LocLang']['Title']?></div>

	<? if (!empty($data['Msg'])) : ?>
	<div style="border:1px solid #C0C0C0;margin:10px;padding:5px;">
		<strong><?=$data['Msg']?></strong>
	</div>
	<? endif; ?>
	
	<div style="border:1px solid #C0C0C0;margin:10px;padding:5px;">
		<div>
			<? if ( 0 < count($data['CompItem']) ) : ?>
				<div><strong>Post:</strong></div>
				<div>Title</div>
				<div style="padding:2px;width:70%;border:1px solid #C0C0C0;"><?=$data['CompItem']['Title']?></div>
				<div>Body</div>
				<div style="padding:2px;width:70%;border:1px solid #C0C0C0;"><?=$data['CompItem']['Body']?></div>
				<div>Keywords</div>
				<div style="padding:2px;width:70%;border:1px solid #C0C0C0;"><?=$data['CompItem']['Keywords']?></div>
			<? endif; ?>
			<?= form_open('admin/post_trans') ?>
				<div style="margin-top:20px;"><strong>Translation:</strong></div>
				<input type="hidden" name="ItemLang" value="<?=$data['LocLang']['BaseName']?>" />
				<input type="hidden" name="ItemId" value="<?=$data['Item']['Id']?>" />
				<div>Title</div>
				<div>
					<input type="text" name="ItemTitle" value="<?=@$data['LocItem']['Title']?>" style="width:70%;" />
				</div>
				<div>Body</div>
				<div><textarea name="ItemBody" style="width:70%;height:200px;"><?=@$data['LocItem']['Body']?></textarea></div>
				<div>Keywords</div>
				<div>
					<input type="text" name="ItemKey" value="<?=@$data['LocItem']['Keywords']?>" style="width:70%;" />
				</div>
				<div style="padding:5px;">
					<input type="submit" name="Go" value="Go" />
				</div>
			</div>
			<?= form_close() ?>
		</div>
	</div>

<? $this->load->view( $this->aSystemVar['template_viewer_root'] . 'admin/_footer') ?>