Lines Matching refs:form

639 	private function getCountItems($form)
642 if ($form['typ'] === 'Tx') {
643 if (isset($this->array_form_text_js[$form['T']])) {
644 if (isset($this->array_form_text_js[$form['T']]['F'])) {
647 if (isset($this->array_form_text_js[$form['T']]['K'])) {
650 if (isset($this->array_form_text_js[$form['T']]['V'])) {
653 if (isset($this->array_form_text_js[$form['T']]['C'])) {
659 if ($form['typ'] === 'Bt') {
660 if (isset($this->array_form_button_js[$form['T']])) {
663 if (isset($this->form_button_icon[$form['T']])) {
665 if ($this->form_button_icon[$form['T']]['Indexed']) {
669 if ($form['subtype'] === 'radio') {
671 } elseif ($form['subtype'] === 'checkbox') {
678 if ($form['typ'] === 'Ch') {
679 if (isset($this->array_form_choice_js[$form['T']])) {
689 foreach ($this->forms as $form) {
690 if ($form['page'] == $n) {
691 $totaladdnum += $this->getCountItems($form);
699 foreach ($this->forms as $form) {
700 if ($form['page'] == $n) {
702 $annotid += $this->getCountItems($form);
1368 function _putform_bt($form, $hPt)
1376 if ($form['subtype'] !== 'radio') {
1380 $this->forms[$form['n']]['obj'] = $n;
1384 $this->writer->write('/NM ' . $this->writer->string(sprintf('%04u-%04u', $n, 7000 + $form['n'])));
1386 $this->writer->write('/Rect [ ' . $this->_form_rect($form['x'], $form['y'], $form['w'], $form['h'], $hPt) . ' ]');
1388 $form['noprint'] ? $this->writer->write('/F 0 ') : $this->writer->write('/F 4 ');
1393 if ($form['subtype'] !== 'radio') { // mPDF 5.3.23
1394 $this->writer->write('/T ' . $this->writer->string($form['T']));
1397 $this->writer->write('/TU ' . $this->writer->string($form['TU']));
1399 if (isset($this->form_button_icon[$form['T']])) {
1400 $form['BS_W'] = 0;
1403 if ($form['BS_W'] == 0) {
1404 $form['BC_C'] = $form['BG_C'];
1408 $bstemp .= '/W ' . $form['BS_W'] . ' ';
1409 $bstemp .= '/S /' . $form['BS_S'] . ' ';
1411 $temp .= '/BC [ ' . $form['BC_C'] . ' ] ';
1412 $temp .= '/BG [ ' . $form['BG_C'] . ' ] ';
1414 if ($form['subtype'] === 'checkbox') {
1416 if ($form['disabled']) {
1429 $this->writer->write('/Ff ' . $this->_setflag($form['FF']));
1431 if ($form['activ']) {
1432 $this->writer->write('/V /' . $this->writer->escape($form['V']) . ' ');
1433 $this->writer->write('/DV /' . $this->writer->escape($form['V']) . ' ');
1434 $this->writer->write('/AS /' . $this->writer->escape($form['V']) . ' ');
1441 $this->writer->write('/AP << /N << /' . $this->writer->escape($form['V']) . ' ' . ($this->mpdf->n + 1) . ' 0 R /Off /Off >> >>');
1444 $this->writer->write('/AP << /N << /' . $this->writer->escape($form['V']) . ' ' . ($this->mpdf->n + 1) . ' 0 R /Off ' . ($this->mpdf->n + 2) . ' 0 R >> >>');
1447 $this->writer->write('/Opt [ ' . $this->writer->string($form['OPT']) . ' ' . $this->writer->string($form['OPT']) . ' ]');
1450 if ($form['subtype'] === 'radio') {
1452 if ((isset($form['disabled']) && $form['disabled']) || (isset($this->form_radio_groups[$form['T']]['disabled']) && $this->form_radio_groups[$form['T']]['disabled'])) {
1460 $this->writer->write('/Parent ' . $this->form_radio_groups[$form['T']]['obj_id'] . ' 0 R ');
1469 $form['FF'][] = self::FLAG_NOTOGGLEOFF;
1470 $form['FF'][] = self::FLAG_RADIO; // must be same as radio button group setting?
1471 $this->writer->write('/Ff ' . $this->_setflag($form['FF']));
1479 $this->writer->write('/AP << /N << /' . $this->writer->escape($form['V']) . ' ' . ($this->mpdf->n + 1) . ' 0 R /Off ' . ($this->mpdf->n + 2) . ' 0 R >> >>');
1481 if ($form['activ']) {
1482 $this->writer->write('/V /' . $this->writer->escape($form['V']) . ' ');
1483 $this->writer->write('/DV /' . $this->writer->escape($form['V']) . ' ');
1484 $this->writer->write('/AS /' . $this->writer->escape($form['V']) . ' ');
1488 $this->writer->write('/AP << /N << /' . $this->writer->escape($form['V']) . ' ' . ($this->mpdf->n + 1) . ' 0 R /Off ' . ($this->mpdf->n + 2) . ' 0 R >> >>');
1489 // $this->writer->write('/Opt [ '.$this->writer->string($form['OPT']).' '.$this->writer->string($form['OPT']).' ]');
1492 if ($form['subtype'] === 'reset') {
1493 $temp .= $form['CA'] ? '/CA ' . $this->writer->string($form['CA']) . ' ' : '/CA ' . $this->writer->string($form['T']) . ' ';
1494 $temp .= $form['RC'] ? '/RC ' . $this->writer->string($form['RC']) . ' ' : '/RC ' . $this->writer->string($form['T']) . ' ';
1495 $temp .= $form['AC'] ? '/AC ' . $this->writer->string($form['AC']) . ' ' : '/AC ' . $this->writer->string($form['T']) . ' ';
1498 $this->writer->write('/DA (/F' . $this->mpdf->fonts[$form['style']['font']]['i'] . ' ' . $form['style']['fontsize'] . ' Tf ' . $form['style']['fontcolor'] . ')');
1500 $form['FF'][] = 17;
1501 $this->writer->write('/Ff ' . $this->_setflag($form['FF']));
1504 if ($form['subtype'] === 'submit') {
1506 $temp .= $form['CA'] ? '/CA ' . $this->writer->string($form['CA']) . ' ' : '/CA ' . $this->writer->string($form['T']) . ' ';
1507 $temp .= $form['RC'] ? '/RC ' . $this->writer->string($form['RC']) . ' ' : '/RC ' . $this->writer->string($form['T']) . ' ';
1508 $temp .= $form['AC'] ? '/AC ' . $this->writer->string($form['AC']) . ' ' : '/AC ' . $this->writer->string($form['T']) . ' ';
1511 $this->writer->write('/DA (/F' . $this->mpdf->fonts[$form['style']['font']]['i'] . ' ' . $form['style']['fontsize'] . ' Tf ' . $form['style']['fontcolor'] . ')');
1515 // Bit 6 (32) = XFDF export format (form of XML in UTF-8)
1516 if ($form['exporttype'] === 'xfdf') {
1518 } elseif ($form['method'] === 'GET') { // 'xfdf' or 'html'
1529 $this->writer->write('/AA << /D << /S /SubmitForm /F (' . $form['URL'] . ') /Flags ' . $flag . ' >> >>');
1530 $form['FF'][] = 17;
1531 $this->writer->write('/Ff ' . $this->_setflag($form['FF']));
1534 if ($form['subtype'] === 'js_button') {
1536 if (isset($this->form_button_icon[$form['T']])) {
1538 $temp .= '/TP ' . $this->form_button_icon[$form['T']]['pos'] . ' ';
1543 if ($this->form_button_icon[$form['T']]['Indexed']) {
1548 $temp .= $form['CA'] ? '/CA ' . $this->writer->string($form['CA']) . ' ' : '/CA ' . $this->writer->string($form['T']) . ' ';
1549 $temp .= $form['RC'] ? '/RC ' . $this->writer->string($form['RC']) . ' ' : '/RC ' . $this->writer->string($form['T']) . ' ';
1550 $temp .= $form['AC'] ? '/AC ' . $this->writer->string($form['AC']) . ' ' : '/AC ' . $this->writer->string($form['T']) . ' ';
1553 $this->writer->write('/DA (/F' . $this->mpdf->fonts[$form['style']['font']]['i'] . ' ' . $form['style']['fontsize'] . ' Tf ' . $form['style']['fontcolor'] . ')');
1554 $form['FF'][] = 17;
1555 $this->writer->write('/Ff ' . $this->_setflag($form['FF']));
1557 if (isset($this->array_form_button_js[$form['T']])) {
1570 $this->_put_button_icon($this->form_button_icon[$form['T']], $form['w'], $form['h']);
1575 $this->mpdf->_set_object_javascript($this->array_form_button_js[$form['T']]['js']);
1576 unset($this->array_form_button_js[$form['T']]);
1582 if ($form['subtype'] === 'radio') {
1585 $fs = sprintf('%.3F', $form['style']['fontsize'] * 1.25);
1590 $matrix = sprintf('%.3F 0 0 %.3F 0 %.3F', $form['style']['fontsize'] * 1.33 / 10, $form['style']['fontsize'] * 1.25 / 10, $form['style']['fontsize']);
1612 if ($form['subtype'] === 'checkbox') {
1615 $fs = sprintf('%.3F', $form['style']['fontsize'] * 1.25);
1620 $matrix = sprintf('%.3F 0 0 %.3F 0 %.3F', $form['style']['fontsize'] * 1.33 / 10, $form['style']['fontsize'] * 1.25 / 10, $form['style']['fontsize']);
1645 function _putform_ch($form, $hPt)
1651 $this->forms[$form['n']]['obj'] = $n;
1656 $this->writer->write('/Rect [ ' . $this->_form_rect($form['x'], $form['y'], $form['w'], $form['h'], $hPt) . ' ]');
1659 if ($form['Q']) {
1660 $this->writer->write('/Q ' . $form['Q'] . '');
1663 $temp .= '/W ' . $form['BS_W'] . ' ';
1664 $temp .= '/S /' . $form['BS_S'] . ' ';
1668 $temp .= '/BC [ ' . $form['BC_C'] . ' ] ';
1669 $temp .= '/BG [ ' . $form['BG_C'] . ' ] ';
1672 $this->writer->write('/NM ' . $this->writer->string(sprintf('%04u-%04u', $n, 6000 + $form['n'])));
1675 $this->writer->write('/T ' . $this->writer->string($form['T']));
1676 $this->writer->write('/DA (/F' . $this->mpdf->fonts[$form['style']['font']]['i'] . ' ' . $form['style']['fontsize'] . ' Tf ' . $form['style']['fontcolor'] . ')');
1679 $count = count($form['OPT']['VAL']);
1681 $opt .= '[ ' . $this->writer->string($form['OPT']['VAL'][$i]) . ' ' . $this->writer->string($form['OPT']['OPT'][$i]) . ' ] ';
1688 foreach ($form['OPT']['SEL'] as $selectKey => $selectVal) {
1689 $selectName = $this->writer->string($form['OPT']['VAL'][$selectVal]);
1694 if (count($form['OPT']['SEL']) < 2) {
1704 if (is_array($form['FF']) && count($form['FF']) > 0) {
1705 $this->writer->write('/Ff ' . $this->_setflag($form['FF']) . ' ');
1709 if (isset($this->array_form_choice_js[$form['T']])) {
1719 $this->mpdf->_set_object_javascript($this->array_form_choice_js[$form['T']]['js']);
1720 unset($this->array_form_choice_js[$form['T']]);
1727 function _putform_tx($form, $hPt)
1733 $this->forms[$form['n']]['obj'] = $n;
1739 $this->writer->write('/Rect [ ' . $this->_form_rect($form['x'], $form['y'], $form['w'], $form['h'], $hPt) . ' ] ');
1740 $form['hidden'] ? $this->writer->write('/F 2 ') : $this->writer->write('/F 4 ');
1746 if (is_array($form['FF']) && count($form['FF']) > 0) {
1747 $this->writer->write('/Ff ' . $this->_setflag($form['FF']) . ' ');
1749 if (isset($form['maxlen']) && $form['maxlen'] > 0) {
1750 $this->writer->write('/MaxLen ' . $form['maxlen']);
1754 $temp .= '/W ' . $form['BS_W'] . ' ';
1755 $temp .= '/S /' . $form['BS_S'] . ' ';
1759 $temp .= '/BC [ ' . $form['BC_C'] . ' ] ';
1760 $temp .= '/BG [ ' . $form['BG_C'] . ' ] ';
1763 $this->writer->write('/T ' . $this->writer->string($form['T']));
1764 $this->writer->write('/TU ' . $this->writer->string($form['TU']));
1765 if ($form['V'] || $form['V'] === '0') {
1766 $this->writer->write('/V ' . $this->writer->string($form['V']));
1768 $this->writer->write('/DV ' . $this->writer->string($form['DV']));
1769 $this->writer->write('/DA (/F' . $this->mpdf->fonts[$form['style']['font']]['i'] . ' ' . $form['style']['fontsize'] . ' Tf ' . $form['style']['fontcolor'] . ')');
1770 if ($form['Q']) {
1771 $this->writer->write('/Q ' . $form['Q'] . '');
1774 $this->writer->write('/NM ' . $this->writer->string(sprintf('%04u-%04u', $n, 5000 + $form['n'])));
1778 if (isset($this->array_form_text_js[$form['T']])) {
1783 if (isset($this->array_form_text_js[$form['T']]['F'])) {
1787 if (isset($this->array_form_text_js[$form['T']]['K'])) {
1791 if (isset($this->array_form_text_js[$form['T']]['V'])) {
1795 if (isset($this->array_form_text_js[$form['T']]['C'])) {
1807 if (isset($this->array_form_text_js[$form['T']]['F'])) {
1808 $this->mpdf->_set_object_javascript($this->array_form_text_js[$form['T']]['F']['js']);
1809 unset($this->array_form_text_js[$form['T']]['F']);
1811 if (isset($this->array_form_text_js[$form['T']]['K'])) {
1812 $this->mpdf->_set_object_javascript($this->array_form_text_js[$form['T']]['K']['js']);
1813 unset($this->array_form_text_js[$form['T']]['K']);
1815 if (isset($this->array_form_text_js[$form['T']]['V'])) {
1816 $this->mpdf->_set_object_javascript($this->array_form_text_js[$form['T']]['V']['js']);
1817 unset($this->array_form_text_js[$form['T']]['V']);
1819 if (isset($this->array_form_text_js[$form['T']]['C'])) {
1820 $this->mpdf->_set_object_javascript($this->array_form_text_js[$form['T']]['C']['js']);
1821 unset($this->array_form_text_js[$form['T']]['C']);