Beispiel #1
0
 /**
  *  Cria um campo texto
  *
  * @param  string $id
  * @param  string $value
  * @param  array  $params jQuery Widget Parameters
  * @param  array  $attribs HTML Element Attributes
  * @return string
  */
 public function printer($id, $value = null, array $attribs = array())
 {
     $_printer = new ZendT_View_Printer($id);
     $_printer->setServerPrinters($attribs['serverPrinters']);
     unset($attribs['serverPrinters']);
     $_printer->setFilter($attribs['filter']);
     unset($attribs['filter']);
     foreach ($attribs as $name => $value) {
         $_printer->setAttr($name, $value);
     }
     return $_printer->render();
 }
Beispiel #2
0
 /**
  * 
  * @param string $id
  * @param int $idFilial
  * @param string $filter
  * @return string
  */
 public function getComboboxPrinters($id = 'qz_printer', $idFilial = '', $filter = '')
 {
     if (!$idFilial) {
         $idFilial = $_SESSION['logon']['filial']['id'];
     }
     $printers = $this->getPrintersByFilial($idFilial);
     $selectPrinter = new ZendT_View_Printer($id);
     $selectPrinter->setServerPrinters($printers);
     return $selectPrinter->render();
 }