protected function post($aArgs) { require_once 'builder/builderInterface.php'; usbuilder()->init($this, $aArgs); $oGet = new modelGet(); /*set the user setting*/ $aData = $oGet->getRow(3, "idx = " . $aArgs['get_idx']); return $aData; }
protected function post($aArgs) { require_once 'builder/builderInterface.php'; usbuilder()->init($this, $aArgs); //database $oModel = new modelExec(); $oGet = new modelGet(); /*set the user setting*/ $aData['delete'] = $oModel->execDeleteData(3, " idx IN (" . $aArgs['get_idx'] . ")"); $aData['data'] = $oGet->getTbAllData(3, " WHERE seq = " . $aArgs['get_seq'], null); return $aData; }
protected function post($aArgs) { require_once 'builder/builderInterface.php'; usbuilder()->init($this, $aArgs); $oExec = new modelExec(); $oGet = new modelGet(); #data to insert $aData = array('idx' => '', 'position' => $aArgs['get_position'], 'title' => $aArgs['get_title'], 'size' => $aArgs['get_size'], 'count' => $aArgs['get_count'], 'target' => $aArgs['get_target'], 'icons' => json_encode($aArgs['get_icon'])); $aCheckRow = $oGet->getRow(2, null); $aResult = empty($aCheckRow) ? $oExec->insertData(2, $aData) : $oExec->updateData(2, $aData, "idx = '" . $aCheckRow['idx'] . "'"); return $aResult; }
protected function post($aArgs) { require_once 'builder/builderInterface.php'; usbuilder()->init($this, $aArgs); $oGet = new modelGet(); /*set the user setting*/ $aUserSetting = $oGet->getRow(2, "seq =" . $aArgs['get_seq']); /*set the users*/ $aData['image_type'] = $aUserSetting['image_type']; $aData['status'] = $this->getDisplay($aUserSetting['username'], false, false); $aData['username'] = $aUserSetting['username']; return $aData; }
protected function post($aArgs) { require_once 'builder/builderInterface.php'; usbuilder()->init($this, $aArgs); $oExec = new modelExec(); $oGet = new modelGet(); $iSeq = $aArgs['get_seq']; #data to insert $aData = array('seq' => $iSeq, 'title' => $aArgs['get_title']); $bSeqExist = $oGet->getRow(2, "seq =" . $iSeq); if (empty($bSeqExist)) { $aResult = $oExec->insertData(2, $aData); } else { $dDeleted = $oExec->deleteData(2, "seq =" . $iSeq); if ($dDeleted === true) { $aData['idx'] = $bSeqExist['idx']; $aResult = $oExec->insertData(2, $aData); } else { $aResult = "false"; } } return $aResult; }
protected function post($aArgs) { require_once 'builder/builderInterface.php'; usbuilder()->init($this, $aArgs); #sequence $iSeq = $aArgs['get_seq']; $oExec = new modelExec(); $oGet = new modelGet(); #data to insert get_slideshow_opt: slideshow_opt $aData = array('idx' => '', 'seq' => $iSeq, 'agree_flag' => $aArgs['get_agree_flag'], 'type' => $aArgs['get_type'], 'size' => $aArgs['get_size'], 'map_type' => $aArgs['get_map_type'], 'zoom' => $aArgs['get_zoom'], 'state' => $aArgs['get_state'], 'city' => json_encode($aArgs['get_city']), 'slideshow_option' => json_encode($aArgs['get_slideshow_opt'])); $bSeqExist = $oGet->getRow(2, "seq =" . $iSeq); if (empty($bSeqExist)) { $aResult = $oExec->insertData(2, $aData); } else { $dDeleted = $oExec->deleteData(2, "seq =" . $iSeq); if ($dDeleted === true) { $aData['idx'] = $bSeqExist['idx']; $aResult = $oExec->insertData(2, $aData); } else { $aResult = "false"; } } return $aResult; }
protected function post($aArgs) { require_once 'builder/builderInterface.php'; usbuilder()->init($this, $aArgs); /*sequence*/ $iSeq = $aArgs['get_seq']; $oExec = new modelExec(); $oGet = new modelGet(); #data to insert $aData = array('pmq_idx' => '', 'seq' => $iSeq, 'pmq_size' => $aArgs['get_pmq_size'], 'pmq_static_map' => $aArgs['get_pmq_static_map'], 'pmq_locations' => str_replace(" ", "", $aArgs['get_pmq_locations'])); $bSeqExist = $oGet->getRow(2, "seq =" . $iSeq); if (empty($bSeqExist)) { $aResult = $oExec->insertData(2, $aData); } else { $dDeleted = $oExec->deleteData(2, "seq =" . $iSeq); if ($dDeleted === true) { $aData['pmq_idx'] = $bSeqExist['pmq_idx']; $aResult = $oExec->insertData(2, $aData); } else { $aResult = "false"; } } return $aResult; }
protected function post($aArgs) { require_once 'builder/builderInterface.php'; usbuilder()->init($this, $aArgs); /*sequence*/ $iSeq = $aArgs['get_seq']; $oExec = new modelExec(); $oGet = new modelGet(); #data to insert $aData = array('idx' => '', 'seq' => $iSeq, 'zoom_level' => $aArgs['get_zoom_level'], 'map_type' => $aArgs['get_map_type'], 'locations' => json_encode($aArgs['get_locations']), 'display_options' => json_encode($aArgs['get_display_options'])); $bSeqExist = $oGet->getRow(2, "seq =" . $iSeq); if (empty($bSeqExist)) { $aResult = $oExec->insertData(2, $aData); } else { $dDeleted = $oExec->deleteData(2, "seq =" . $iSeq); if ($dDeleted === true) { $aData['idx'] = $bSeqExist['idx']; $aResult = $oExec->insertData(2, $aData); } else { $aResult = "false"; } } return $aResult; }