Beispiel #1
0
 public function checkTiLe($kind)
 {
     $m_phantram = new Default_Model_Phantram();
     $arr_temp = $m_phantram->getWhereName($kind);
     $string = "";
     foreach ($arr_temp as $key => $value) {
         $string .= $value['kieudo'] . " => " . $value['tile'] . " | ";
     }
     $string = substr($string, 0, strlen($string) - 3);
     return $string;
 }
Beispiel #2
0
 public function phanTramDeleteAction()
 {
     $pk = $this->_request->getParam('pk', NULL);
     if ($pk != "") {
         $m_datve = new Default_Model_Phantram();
         if ($m_datve->deleteData($pk)) {
             echo "<script>\n                    alert('Xoá thành công');";
         } else {
             echo "<script>\n                    alert('Xoá thất bại');";
         }
         echo "location.href ='" . HOST_PATH_PUBLIC . "/khachhang/phan-tram';</script>";
     }
 }