$form->populate($param);
         echo $form;
         echo "<div class='message'>";
         foreach ($check->messages as $item) {
             echo $item . "<br/>";
         }
         echo "</div>";
     }
 } else {
     echo "<pre>";
     print_r($param);
     echo "</pre>";
     $data = new My_Data();
     $valid = $data->isValidCaymoc($param);
     $change = false;
     $malo = $caymoc->getMaxMaLo() + 1;
     if (!is_array($valid)) {
         echo "nhập đúng";
     } else {
         echo "<div class='message'> ";
         echo $valid[0];
         echo "</div>";
     }
     //             if($valid=='123')
     //             foreach ($param as $key=>$item)
     //             {
     //                 if($item!=null&& $key!='them' && $key !='mavai' && $key !='sotan')
     //                 {
     //                     $change = true;
     //                     $data = array(
     //                         "MaMoc"=>null,