<?php
if($this->IsAdmin()) {
   // security init
   $this->secAdminedittable = true;
   $this->secAdminviewtable = true;
   // init adminviewtable
   $tname='themeblocksad';
   $header='Имя блока:Приоритет';
   $fields='blockname:priority';
   include('actions/adminviewtable.php');

   echo "<br />";
   // init adminedittable
   /*
   $fields='Имя блока:blockname:text: ::Приоритет:priority:select : ::Текст:blocktext:'.($text==1?'textarea':'spawhtml').':';
   */
   $notparse = '1';
   $fieldar = array ( array ('Имя блока','blockname','text', ''),
                      array ('Приоритет','priority','select list="2:1:0"', '1'),
                      array ('Текст','blocktext',($text==1?'textarea':'spawhtml'), ''),
              );

   include('actions/adminedittable.php');
   //security finalization
   $this->secAdminedittable = false;
   $this->secAdminviewtable = false;
}
?>
