function ajax_getmoney()
 {
     $id = abs((int) $_GET['id']);
     if ($id > 0) {
         $model = new fpp_district_Model();
         $orm = $model->db2cls($id);
         Basic::currency($orm->sendprice_district);
         echo $orm->sendprice_district;
     }
 }
Esempio n. 2
0
 public function delivery()
 {
     $model = new fpp_district_Model();
     $orm = $model->db2cls();
     $droporigin = array("-- SELECCIONE --");
     $dropdown = $orm->select_list('name_district', 'name_district');
     $dropdown = $droporigin + $dropdown;
     $dropdown = form::dropdown("distrito", $dropdown, @$_POST['district']);
     $this->content = View::factory("main/pages_delivery")->set("title", "Delivery")->set("select_district", $dropdown)->set("msg", null)->set("content", null);
     $_SESSION['conf']['mailer'] = array('nombre' => true, 'email' => true, 'telefono' => true, 'comentarios' => true);
     $_SESSION['conf']['concat_mailer'] = array(0 => 'cantidad', 'cantidad' => true, 'producto' => true);
 }