public static function dropdown($fieldname, $selected = array())
 {
     $template = new Template();
     $template->assignParam('fieldname', $fieldname);
     $template->assignParam('selected', $selected);
     $template->assignParam('objetos', Servico::listar());
     return $template->render("servico/dropdown.phtml", true);
 }
Exemple #2
0
 public function getServicos()
 {
     $objetos = Servico::listar(" WHERE servico_id in(SELECT servico_id FROM contratoservico WHERE contratoservico.evento_id = '{$this->getEvento_id()}')");
     return $objetos;
 }