Skip to content

Commit 96da7a5

Browse files
committed
prepare for release 4.0.0
1 parent db52996 commit 96da7a5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

site/views/search/tmpl/form.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php/** * Copyright (c) 2006-2024 LogicalDOC * WebSites: www.logicaldoc.com * * No bytes were intentionally harmed during the development of this application. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */defined('_JEXEC') or die;?><script type="text/javascript"> $(document).ready(function() { $('#searchAdvanced').button().click(function() { if ($('#formSearchAdvanced').validationEngine('validate')) { document.formSearchAdvanced.task.value = 'searchAdvanced'; document.formSearchAdvanced.submit(); } return false; }); $('*').keypress(function(e) { //funciona cuando se preciona la tecla enter if (e.keyCode == 13) { var contenido = $('#contenido').val(); if (contenido != '') { document.formSearchAdvanced.task.value = 'searchAdvanced'; document.formSearchAdvanced.submit(); } else { $('#contenido').validationEngine('showPrompt', '<?= JText::_('COM_LOGICALDOC_SOME_OF_THESE_FIELDS_ARE_REQUIRED')?>', 'error', true); return false; } } }); $("#searchReturn").button().click(function() { document.formSearchAdvanced.task.value = 'returnDesktop'; document.formSearchAdvanced.submit(); }); $("#tab").tabs(); $('#formSearchAdvanced').validationEngine(); });</script><form action= "" method="post" name="formSearchAdvanced" id="formSearchAdvanced" enctype="multipart/form-data"> <div id="tab"> <ul> <li><a href="#dato"><?= JText::_('COM_LOGICALDOC_ADVANCED_SEARCH') ?></a></li> </ul> <div id="dato"> <table id="datoTable" align="center"> <tr> <td style="text-align: right"><?= JText::_('COM_LOGICALDOC_CONTENT') ?>:</td> <td> <input type="text" name="contenido" id="contenido" value="<?= $this->sessionSearch->get('contenido') ?>" class="validate[required] text-input" /> </td> </tr> <tr> <td style="text-align: right">Search Fields:</td> <?php if (isset($_POST['sfields']) && is_array($_POST['sfields'])) { if (in_array('content', $_POST['sfields'])) $contentChecked = TRUE; if (in_array('title', $_POST['sfields'])) $titleChecked = TRUE; if (in_array('tags', $_POST['sfields'])) $tagsChecked = TRUE; } ?> <td> <input type="checkbox" name="sfields[]" id="sfieldsc" value="content" <?php if (isset($contentChecked)) echo 'checked="checked"'; ?> />Content <input type="checkbox" name="sfields[]" id="sfieldst" value="title" <?php if (isset($titleChecked)) echo 'checked="checked"'; ?> />Name <input type="checkbox" name="sfields[]" id="sfieldsk" value="tags" <?php if (isset($tagsChecked)) echo 'checked="checked"'; ?> />Tags </td> </tr> <tr> <td><?= JText::_('COM_LOGICALDOC_DOCUMENT_TYPE') ?>:</td> <td> <select id="tipoDocumento" name="tipoDocumento"> <option value=""></option> <option value="xls,xlsx" <?php if ($this->sessionSearch->get('tipoDocumento') == 'xls,xlsx') echo "selected='selected'"; ?>>MS Excel</option> <option value="ppt,pptx" <?php if ($this->sessionSearch->get('tipoDocumento') == 'ppt,pptx') echo "selected='selected'"; ?>>MS PowerPoint</option> <option value="doc,docx" <?php if ($this->sessionSearch->get('tipoDocumento') == 'doc,docx') echo "selected='selected'"; ?>>MS Word</option> <option value="odp" <?php if ($this->sessionSearch->get('tipoDocumento') == 'odp') echo "selected='selected'"; ?>>ODF Presentation</option> <option value="ods" <?php if ($this->sessionSearch->get('tipoDocumento') == 'ods') echo "selected='selected'"; ?>>ODF Spreadsheet</option> <option value="odt" <?php if ($this->sessionSearch->get('tipoDocumento') == 'odt') echo "selected='selected'"; ?>>ODF Text Document</option> <option value="pdf" <?php if ($this->sessionSearch->get('tipoDocumento') == 'pdf') echo "selected='selected'"; ?>>PDF</option> <option value="rtf" <?php if ($this->sessionSearch->get('tipoDocumento') == 'rtf') echo "selected='selected'"; ?>>RTF</option> <option value="txt" <?php if ($this->sessionSearch->get('tipoDocumento') == 'txt') echo "selected='selected'"; ?>>TXT</option> <option value="html,htm" <?php if ($this->sessionSearch->get('tipoDocumento') == 'html,htm') echo "selected='selected'"; ?>>HTML</option> <option value="xml" <?php if ($this->sessionSearch->get('tipoDocumento') == 'xml') echo "selected='selected'"; ?>>XML</option> </select> </td> </tr> </table> </div> <table width="100%" id="buttonTable"> <tr> <td align="right" colspan="2"> <button id="searchReturn"> <?= JText::_('COM_LOGICALDOC_GO_BACK') ?> </button> <button id="searchAdvanced"> <?= Jtext::_('COM_LOGICALDOC_SEARCH') ?> </button> </td> </tr> </table> <input type="hidden" name="option" value="com_logicaldoc" /> <input type="hidden" name="view" value="search"/> <input type="hidden" name="task" value="" /> <input type="hidden" name="id" value="<?= $this->rowConfiguration->idConfiguration ?>"/> <input type="hidden" name="documento" id="documento" value="1" /> </div><!--fin del tabs--></form>
1+
<?php/** * Copyright (c) 2006-2024 LogicalDOC * WebSites: www.logicaldoc.com * * No bytes were intentionally harmed during the development of this application. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */defined('_JEXEC') or die;use Joomla\CMS\Factory;?><script type="text/javascript"> $(document).ready(function() { $('#searchAdvanced').button().click(function() { if ($('#formSearchAdvanced').validationEngine('validate')) { document.formSearchAdvanced.task.value = 'searchAdvanced'; document.formSearchAdvanced.submit(); } return false; }); $('*').keypress(function(e) { //funciona cuando se preciona la tecla enter if (e.keyCode == 13) { var contenido = $('#contenido').val(); if (contenido != '') { document.formSearchAdvanced.task.value = 'searchAdvanced'; document.formSearchAdvanced.submit(); } else { $('#contenido').validationEngine('showPrompt', '<?= JText::_('COM_LOGICALDOC_SOME_OF_THESE_FIELDS_ARE_REQUIRED')?>', 'error', true); return false; } } }); $("#searchReturn").button().click(function() { document.formSearchAdvanced.task.value = 'returnDesktop'; document.formSearchAdvanced.submit(); }); $("#tab").tabs(); $('#formSearchAdvanced').validationEngine(); });</script><form action= "" method="post" name="formSearchAdvanced" id="formSearchAdvanced" enctype="multipart/form-data"> <div id="tab"> <ul> <li><a href="#dato"><?= JText::_('COM_LOGICALDOC_ADVANCED_SEARCH') ?></a></li> </ul> <div id="dato"> <table id="datoTable" align="center"> <tr> <td style="text-align: right"><?= JText::_('COM_LOGICALDOC_CONTENT') ?>:</td> <td> <input type="text" name="contenido" id="contenido" value="<?= $this->sessionSearch->get('contenido') ?>" class="validate[required] text-input" /> </td> </tr> <tr> <td style="text-align: right">Search Fields:</td> <?php $input = Factory::getApplication()->input; $val = $input->get('sfields', array(), 'array'); if (in_array('content', $val)) $contentChecked = 'checked'; else $contentChecked = ''; if (in_array('title', $val)) $titleChecked = 'checked'; else $titleChecked = ''; if (in_array('tags', $val)) $tagsChecked = 'checked'; else $tagsChecked = ''; ?> <td> <input type="checkbox" name="sfields[]" id="sfieldsc" value="content" <?= $contentChecked ?> />Content <input type="checkbox" name="sfields[]" id="sfieldst" value="title" <?= $titleChecked ?> />Name <input type="checkbox" name="sfields[]" id="sfieldsk" value="tags" <?= $tagsChecked ?> />Tags </td> </tr> <tr> <td><?= JText::_('COM_LOGICALDOC_DOCUMENT_TYPE') ?>:</td> <td> <select id="tipoDocumento" name="tipoDocumento"> <option value=""></option> <option value="xls,xlsx" <?php if ($this->sessionSearch->get('tipoDocumento') == 'xls,xlsx') echo "selected='selected'"; ?>>MS Excel</option> <option value="ppt,pptx" <?php if ($this->sessionSearch->get('tipoDocumento') == 'ppt,pptx') echo "selected='selected'"; ?>>MS PowerPoint</option> <option value="doc,docx" <?php if ($this->sessionSearch->get('tipoDocumento') == 'doc,docx') echo "selected='selected'"; ?>>MS Word</option> <option value="odp" <?php if ($this->sessionSearch->get('tipoDocumento') == 'odp') echo "selected='selected'"; ?>>ODF Presentation</option> <option value="ods" <?php if ($this->sessionSearch->get('tipoDocumento') == 'ods') echo "selected='selected'"; ?>>ODF Spreadsheet</option> <option value="odt" <?php if ($this->sessionSearch->get('tipoDocumento') == 'odt') echo "selected='selected'"; ?>>ODF Text Document</option> <option value="pdf" <?php if ($this->sessionSearch->get('tipoDocumento') == 'pdf') echo "selected='selected'"; ?>>PDF</option> <option value="rtf" <?php if ($this->sessionSearch->get('tipoDocumento') == 'rtf') echo "selected='selected'"; ?>>RTF</option> <option value="txt" <?php if ($this->sessionSearch->get('tipoDocumento') == 'txt') echo "selected='selected'"; ?>>TXT</option> <option value="html,htm" <?php if ($this->sessionSearch->get('tipoDocumento') == 'html,htm') echo "selected='selected'"; ?>>HTML</option> <option value="xml" <?php if ($this->sessionSearch->get('tipoDocumento') == 'xml') echo "selected='selected'"; ?>>XML</option> </select> </td> </tr> </table> </div> <table width="100%" id="buttonTable"> <tr> <td align="right" colspan="2"> <button id="searchReturn"> <?= JText::_('COM_LOGICALDOC_GO_BACK') ?> </button> <button id="searchAdvanced"> <?= Jtext::_('COM_LOGICALDOC_SEARCH') ?> </button> </td> </tr> </table> <input type="hidden" name="option" value="com_logicaldoc" /> <input type="hidden" name="view" value="search"/> <input type="hidden" name="task" value="" /> <input type="hidden" name="id" value="<?= $this->rowConfiguration->idConfiguration ?>"/> <input type="hidden" name="documento" id="documento" value="1" /> </div><!--fin del tabs--></form>

0 commit comments

Comments
 (0)