$this->view->cat_id = $cat_id;
     }
 }
 public function savecategorypoiIndoAction()
 {
     $cat_id = $this->_getParam('catid');
     $poi_id = $this->_getParam('poi');
     $input = array('category_id' => $cat_id, 'poi_id' => $poi_id);
     $table_category = new Model_DbTable_CategoryToPoi();
     if ($table_category->checkPoiCatId($poi_id, $cat_id)) {
         $this->view->double_check = FALSE;
     } else {
         $this->view->double_check = TRUE;
         $cat_name = $table_category->insertCategoryToPoi($input);
         $this->loggingaction('destination', 'edit', $poi_id);
         $this->view->cat_name = $cat_name;
         $this->view->poi_id = $poi_id;
         $this->view->cat_id = $cat_id;
     }
 }
 /**
  * IS:
  * FS:
  * Desc:
  */
 public function deletecategorypoiAction()
 {
     $cat_id = $this->_getParam('catid');
     $poi_id = $this->_getParam('poi');
     $table_category = new Model_DbTable_CategoryToPoi();
     $table_category->deleteCategoryToPoi($cat_id, $poi_id);
     $this->loggingaction('destination', 'edit', $poi_id);
 }
 /**
  * IS:
  * FS:
  * Desc:
  */
 public function childareaselectAction()
 {
     //get param
     $area_id = $_POST['areaid'];
     $area_level = $_POST['arealevel'];
     if (isset($_POST['langid'])) {
         $lang_id = $_POST['langid'];
     } else {
         $lang_id = 1;
     }
     $coverage_area = $this->_getParam('coveragearea');
     //set data for select options
     $tablearea = new Model_DbTable_Area();
     $data = $tablearea->setChildAreaForSelectElement($area_id, $lang_id);
     if (sizeof($data) > 0) {
         if (isset($coverage_area)) {
             if ($area_level == 0) {