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

	<div class="bigCaption">Static pages translations</div>

	<?= form_open('admin/stat_lang', array( 'id' => 'stat_form') ); ?>
		<!-- <div class="tableSubmit"><input type="submit" value="submit" class="admSubmit" /></div> -->
		<div><input type="hidden" id="action" name="action" value="" /></div>
		<table cellpadding="0" cellspacing="1" width="100%" class="contentList">

				<tr class="head">
					<td class="id">id</td>
					<td class="checkbox"><input type="checkbox" /></td>
					<td class="title">title</td>
					<? foreach ( $this->aSystemVar['lang_list'] as $aItem ) : ?>
						<td class="textCenter">
							<strong><?=$aItem['Title']?></strong>
						</td>
					<? endforeach; ?>
				</tr>
				<?
				$i = 0;
				foreach( $Item['ItemList'] as $aStat ):

					if( ($i%2) == 0 )
					{
						$sClassName = 'odd';
					}
					else
					{
						$sClassName = 'even';
					}
				 ?>
				<tr class="<?= $sClassName ?>">
					<td class="id textCenter">
						<?= $aStat['Id'] ?>
					</td>
					<td><input type="checkbox" name="CategoryId[]" value="<?= $aStat['Id'] ?>" id="s<?= $aStat['Id'] ?>" /></td>
					<td>
						<span class="active"><?= anchor('info/'.$aStat['BaseName'], ($aStat['Title']?$aStat['Title']:$aStat['BaseName']));?></span>
					</td>
					<? foreach ( $this->aSystemVar['lang_list'] as $aItem ) : ?>
						<td class="view textCenter" style="font-weight:bold;">
							<? 
								if ( @$Item['LangList'][$aStat['Id']][$aItem['BaseName']] )
								{
									echo anchor('page/edit/'.$aStat['BaseName'].'/lang-'.$aItem['BaseName'], 'ok');
								}
								else
								{
									echo anchor('page/edit/'.$aStat['BaseName'].'/lang-'.$aItem['BaseName'], 'no', array('style'=>'color:#ff0000;'));
								}
							?>
						</td>
					<? endforeach; ?>
				</tr>
				<? $i++;

				endforeach; ?>
				
		</table>
		<!-- <div class="tableSubmit"><input type="submit" value="submit" class="admSubmit" /></div> -->
	<?= form_close(); ?>
	
<? $this->load->view( $this->aSystemVar['template_viewer_root'] . 'admin/_footer') ?>