        <?=$this->tinyMce?>
<center><h3><?=$title?></h3></center>
      <? if ($this-> session-> flashdata('message')): ?>
    <div class='warning'>
      <?=$this-> session-> flashdata('message');?>
    </div>
    <? endif; ?>
    
<? if ($content) { ?>
    <table cellspacing="0" cellpadding="0" border="1" class="full">
      <thead>
        <tr>
          <th colspan="100%" scope="col">Current Content</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <th scope="col">Τίτλος</th>
          <th scope="col">Κείμενο</th>
          <th scope="col">Keywords</th>
          <th scope="col">Γλώσσα</th>
          <th scope="col">Ενέργειες</th>
        </tr>
        <? foreach($content as $cont=>$content){ ?>
        <? if (($edit==true) && ($content['id']==$edit_id)) { ?>
            <? $attributes = array('class' => 'nform'); ?>
		    <?=form_open('admin/categories/update_home_page/'.$content['id'],$attributes); ?>
        <tr>
          <td>
        <?  echo "<p><label for='title'></label>";
		$data = array('name'=>'title','id'=>'title','size'=>15, 'value' => $content['title']);
echo form_input($data) ."</p>"; ?>
		</td>
          <td>
        <?  echo "<p><label for='content'></label>";
$data = array('name'=>'content','id'=>'content','rows'=>'15', 'cols'=>'50', 'value' => $content['content']);
echo form_textarea($data) ."</p>"; ?>
		</td>
          <td>
        <?  echo "<p><label for='keywords'></label>";
$data = array('name'=>'keywords','id'=>'keywords','rows'=>'15', 'cols'=>'50', 'value' => $content['keywords']);
echo form_input($data) ."</p>"; ?>
		</td>
         <? if ($content['lang_id']==1) { ?>
          <td>Greek</td>
          <? } else { ?>
          <td>English</td>
         <? } ?>
        <td><? echo form_submit('submit','update page')?><br /><?=anchor("admin/categories/home_page", 'Ακύρωση')?></td>
       </tr>
       <? echo form_close(); ?>
       <? } else { ?>
        <tr>
          <td><?=$content['title']?></td>
          <td><?=$content['content']?></td>
          <td><?=$content['keywords']?></td>
         <? if ($content['lang_id']==1) { ?>
          <td>Greek</td>
          <? } else { ?>
          <td>English</td>
         <? } ?>
          <td><?=anchor("admin/categories/edit_home_page/".$content['id'], 'Επεξεργασία εγγραφής')?></td>
       </tr>
       <? }
	   } ?>
      </tbody>
    </table>
<?    } ?>