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

	<div class="bigCaption">Manage Languages</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><strong>Languges List</strong></div>
		<div>
			<?= form_open('admin/langs') ?>		
			<div class="clearBoth"></div>
			<? foreach ($data['ItemList'] as $aItem): ?>
				<div>
					<div style="float:left;">
						<input type="checkbox" name="Del[]" value="<?=$aItem['BaseName']?>" />
					</div>
					<div style="float:left;margin-left:5px;width:150px;border:1px solid #F1F1F1;">
						<?=$aItem['BaseName']?>
					</div>
					<div style="float:left;width:150px;margin-left:5px;border:1px solid #F1F1F1;">
						<?=$aItem['Title']?>
					</div>
					<div style="float:left;width:20px;margin-left:5px;border:1px solid #F1F1F1;">
						<input type="radio" name="SetDef" <?=(1==$aItem['Def']?'checked="checked"':'')?> value="<?=$aItem['BaseName']?>" />
					</div>
				</div>
			<div class="clearBoth"></div>				
			<? endforeach; ?>
			<div style="">
				<strong>delete</strong>
				<br />
				<input type="submit" name="Go" value="Go" />
			</div>
			<?= form_close() ?>
		</div>
	</div>

	<div style="border:1px solid #C0C0C0;margin:10px;padding:5px;">
				<div><strong>Add New</strong></div>
		<div>
			<div class="clearBoth"></div>
			<?= form_open('admin/langs') ?>
				<div style="float:left;">
					BaseName
					<br />
					<input type="text" name="BaseName" value="" />
				</div>
				<div style="float:left;margin-left:5px;">
					Title
					<br />
					<input type="text" name="Title" value="" />
				</div>
				<div style="float:left;margin-left:5px;">
					Default
					<br />
					<input type="checkbox" name="Def" value="1" />
				</div>
				<div style="float:left;margin-left:5px;height:40px;line-height:40px;vertical-align:middle;">
					<input type="submit" name="Go" value="Go" />
				</div>
			<?= form_close() ?>
			<div class="clearBoth"></div>			
		</div>
	</div>

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