public function myteamAction()
 {
     $id = Zend_Registry::get('uid');
     $this->view->userid = $id;
     $gals = new Model_DbTable_Gal();
     $this->view->gal = $gals->fetchAll($gals->select()->where('ezen_id =' . $id));
     $bukhs = new Model_DbTable_Bukh();
     $this->view->bukh = $bukhs->fetchAll($bukhs->select());
     $barildaans = new Model_DbTable_Barildaan();
     $this->view->barildaan = $barildaans->fetchAll($barildaans->select());
 }
 public function ajaxbukhvs100Action()
 {
     $b1_id = $this->_request->getParam('bukh1');
     $b2_id = $this->_request->getParam('bukh2');
     $this->view->b1_id = $b1_id;
     $this->view->b2_id = $b2_id;
     $bukhvs = new Model_DbTable_Onoolt();
     $this->view->bukhvs = $bukhvs->fetchAll($bukhvs->select());
     $barildaans = new Model_DbTable_Barildaan();
     $this->view->barildaan = $barildaans->fetchAll($barildaans->select());
 }
 public function ajaxnextdavaaAction()
 {
     $barildaan = $this->_request->getParam('id');
     $onoolts = new Model_DbTable_Barildaan();
     $onoolt = $onoolts->fetchAll($onoolts->select()->where('id = ' . $barildaan));
     foreach ($onoolt as $key => $value) {
         $cnt = $value['davaa_id'];
     }
     $cnt++;
     $ans = 0;
     $onoolts->update(array('davaa_id' => $cnt, 'davaa_active' => $ans), 'id = ' . $barildaan);
     $ret = array();
     echo Zend_Json::encode($ret);
 }