<?php
//include_once("c_esmo_gateway_upload.php");
include_once("c_ot.php");
//include_once(_DIR_TO_ENGINE.'/admin/i_admin_system.php') ;
class c_page_cab_ot_set extends c_page_cab_ot
{
 public $h1='Задание ВПФ' ;
 public $objPHPExcel ;
 public $aSheet ;
 public $csv_headers ;
 public $db_headers ;
 public $setting ;
 public $table_name ;
 public $setting_name ;


 function block_main()
 { $this->page_title() ;

   $list_vpf[1]=execSQL('select * from list_vpf order by pkey>=256 and pkey<=423') ;
   $list_vpf[2]=execSQL('select * from list_vpf order by pkey>=424 and pkey<=433') ;
   $list_vpf[3]=execSQL('select * from list_vpf order by pkey>=434 and pkey<=455') ;
   $list_vpf[4]=execSQL('select * from list_vpf order by pkey>=455 and pkey<=464') ;
   ?><table class="basic fz_small">
     <tr>
         <th>Наименование ПВФ</th>
         <th>Выбор</th>
     </tr>
   <?
   if (_sizeof($list_vpf[$this->filter['vpf_type']])) foreach($list_vpf[$this->filter['vpf_type']] as $rec_vpf)
   {   ?><tr>
           <td class="left"><?echo $rec_vpf['number'].' '.$rec_vpf['obj_name']?></td>
           <td><?if ($rec_vpf['obj_name']) {?><input type="checkbox" class=v2 cmd="ot/set_vpf_link" name=vpf_set org_id="<?echo $this->filter['org_id']?>" otdel_id="<?echo $this->filter['otdel_id']?>" work_id="<?echo $this->filter['work_id']?>" vpf_id="<?echo $rec_vpf['pkey']?>"> <?}?></td>
         </tr><?

   }

   ?></table><?

     //print_2x_arr($list_vpf[$this->filter['vpf_type']]) ;

 }

}



?>



?>
