cvs: pear /Search_Mnogosearch/Mnogosearch/docs PHPLICENSE.txt README examples.php search-example.php sigma-example.php style.css
/Search_Mnogosearch/Mnogosearch/docs/renderers/templates bygroup.html noresult.html result.html search.html searchform.html /Search_Mnogosearch/docs
PHPLICENSE.txt README examples.php search-example.php sigma-example.php style.css /Search_Mnogosearch/docs/renderers/templates bygroup.html
noresult.html result.html search.html searchform.html

From: Date: Fri, 05 Nov 2004 10:14:33 +0000
Subject: cvs: pear /Search_Mnogosearch/Mnogosearch/docs PHPLICENSE.txt README examples.php search-example.php sigma-example.php style.css
/Search_Mnogosearch/Mnogosearch/docs/renderers/templates bygroup.html noresult.html result.html search.html searchform.html /Search_Mnogosearch/docs
PHPLICENSE.txt README examples.php search-example.php sigma-example.php style.css /Search_Mnogosearch/docs/renderers/templates bygroup.html
noresult.html result.html search.html searchform.html
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-25702@lists.php.net to get a copy of this message
goetsch Fri Nov 5 05:14:33 2004 EDT Added files: /pear/Search_Mnogosearch/docs style.css README search-example.php examples.php PHPLICENSE.txt sigma-example.php /pear/Search_Mnogosearch/docs/renderers/templates noresult.html bygroup.html searchform.html search.html result.html Removed files: /pear/Search_Mnogosearch/Mnogosearch/docs/renderers/templates searchform.html search.html noresult.html bygroup.html result.html /pear/Search_Mnogosearch/Mnogosearch/docs examples.php sigma-example.php style.css search-example.php README PHPLICENSE.txt Log: moved docs in the right folder

http://cvs.php.net/co.php/pear/Search_Mnogosearch/docs/style.css?r=1.1&p=1 Index: pear/Search_Mnogosearch/docs/style.css +++ pear/Search_Mnogosearch/docs/style.css body { margin: 1cm; font-family: arial; } td.form{ padding-left: 10px; margin-left: 10px; width: 100%; text-align: left; vertical-align: bottom; } input.form{ width:200px; }..arrow { vertical-align: top; padding: 3px; }..header{ padding: 1px 10px 1px 10px; background-color:#339900; color:white; font-weight:bold; width: 60% }..time{ text-align:right; font-size:10px; color:#c0c0c0; }..source { border: 1px dashed #000; background-color:#EEEEEE; padding: 4px; }..results { border: 1px dashed #bbb; background-color:#EEEEEE; padding: 4px; }..results2 { border: 1px solid #339900; background-color:#FFFFFF; padding: 0px; border-collapse: collapse; } ..bg1{ background-color:#DDD; padding-bottom: 2px; padding-left:5px; } ..bg2{ background-color:#EEE; padding-bottom: 10px; padding-left:15px; font-size:11px; border: 1px dashed #339900; } a { color:#006600; text-decoration:underline; } a:hover{ color:#003300; text-decoration:underline; } a.pager{ font-weight:bold; }..pagerCurrentLink{ color: #666666; } p { font-size:13px; } http://cvs.php.net/co.php/pear/Search_Mnogosearch/docs/search-example.php?r=1.1&p=1 Index: pear/Search_Mnogosearch/docs/search-example.php +++ pear/Search_Mnogosearch/docs/search-example.php <?php /** * Example usage for Pear class Search_Mnogosearch * * @author Gerrit Goetsch <goetsch@cross-solution.de> * * $Id: search-example.php,v 1.1 2004/11/05 10:14:33 goetsch Exp $ */ require_once 'Search/Mnogosearch.php'; // define the DNS to mnogosearch // define('DSN_MNOGOSEARCH', 'mysql://user:password@localhost/database'); include 'config.php'; // some parameters $params = array (); $params['excerptsize'] = "400"; $params['excerptpadding'] = "64"; $params['detectclones'] = 1; // enabled $params['cachemode'] = 0; // disabled $params['crosswords'] = 1; // disabled $params['minwordlength'] = 2; $params['charset'] = "iso-8859-1"; $params['dateformat'] = "%d-%m-%y"; $params['hlbeg'] = '<font color="#003300"><b>'; $params['hlend'] = '</b></font>'; $search = Search_Mnogosearch::connect(DSN_MNOGOSEARCH."/?dbmode=multi"); // set the parameters $search->setParameters($params); // set the http parameters if you want. $search->setHttpParameters(array ('page' => 'page', 'group' => 'group', 'query' => 'words')); $search->addLogicOperators(array('and' => array('und','Und','UND'), 'or' => array('oder','Oder','ODER'), 'not' => array('nicht','Nicht','NICHT'),)); print $search->toHtml(); ?> http://cvs.php.net/co.php/pear/Search_Mnogosearch/docs/examples.php?r=1.1&p=1 Index: pear/Search_Mnogosearch/docs/examples.php +++ pear/Search_Mnogosearch/docs/examples.php <?php session_start(); print " <HTML> <HEAD> <META NAME=\"Content-Type\" Content=\"text/html; charset=iso-8859-1\"> <TITLE>Search_Mnogosearch Examples</TITLE> <link rel=\"stylesheet\" href=\"style.css\"> </head> <body bgcolor=\"#ffffff\">"; print "<a href=\"".$_SERVER['SCRIPT_NAME']."?demo=1\">Example with default Renderer</a><br/>\n"; print "<a href=\"".$_SERVER['SCRIPT_NAME']."?demo=2\">Example with Sigma Renderer</a><br/>\n"; print "<a href=\"http://jobs.open-hr.org\">german Jobsearch Engine</a><br/>\n"; if (isset($_GET['demo'])) { $demo = $_GET['demo']; $_SESSION['demo'] = $demo; } elseif (isset($_SESSION['demo'])) { $demo = $_SESSION['demo']; } /** */ if ($demo==1) { include_once('search-example.php'); if (!isset($_GET['show'])) { print "<a href=\"".$_SERVER['SCRIPT_NAME']."?demo=1&amp;show=1\">show source</a><br/>\n"; } else { print "<br><b>Source of search-example.php</b><table width=\"100%\" class=\"source\"><tr><td width=\"100%\" valign=\"top\">"; highlight_file('search-example.php'); print "</td></tr></table>"; } } if ($demo==2) { include_once('sigma-example.php'); if (!isset($_GET['show'])) { print "<a href=\"".$_SERVER['SCRIPT_NAME']."?demo=2&amp;show=1\">show source</a><br/>\n"; } else { print "<br><b>Source of sigma-example.php</b><table width=\"100%\" class=\"source\"><tr><td width=\"100%\" valign=\"top\">"; highlight_file('sigma-example.php'); print "</td></tr></table>"; } } print "</body></html>"; ?> http://cvs.php.net/co.php/pear/Search_Mnogosearch/docs/PHPLICENSE.txt?r=1.1&p=1 Index: pear/Search_Mnogosearch/docs/PHPLICENSE.txt +++ pear/Search_Mnogosearch/docs/PHPLICENSE.txt -------------------------------------------------------------------- The PHP License, version 2.02 Copyright (c) 1999 - 2002 The PHP Group. All rights reserved. -------------------------------------------------------------------- Redistribution and use in source and binary forms, with or without modification, is permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. The name "PHP" must not be used to endorse or promote products derived from this software without prior permission from the PHP Group. This does not apply to add-on libraries or tools that work in conjunction with PHP. In such a case the PHP name may be used to indicate that the product supports PHP. 4. The PHP Group may publish revised and/or new versions of the license from time to time. Each version will be given a distinguishing version number. Once covered code has been published under a particular version of the license, you may always continue to use it under the terms of that version. You may also choose to use such covered code under the terms of any subsequent version of the license published by the PHP Group. No one other than the PHP Group has the right to modify the terms applicable to covered code created under this License. 5. Redistributions of any form whatsoever must retain the following acknowledgment: "This product includes PHP, freely available from http://www.php.net/". 6. The software incorporates the Zend Engine, a product of Zend Technologies, Ltd. ("Zend"). The Zend Engine is licensed to the PHP Association (pursuant to a grant from Zend that can be found at http://www.php.net/license/ZendGrant/) for distribution to you under this license agreement, only as a part of PHP. In the event that you separate the Zend Engine (or any portion thereof) from the rest of the software, or modify the Zend Engine, or any portion thereof, your use of the separated or modified Zend Engine software shall not be governed by this license, and instead shall be governed by the license set forth at http://www.zend.com/license/ZendLicense/. THIS SOFTWARE IS PROVIDED BY THE PHP DEVELOPMENT TEAM ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE PHP DEVELOPMENT TEAM OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -------------------------------------------------------------------- This software consists of voluntary contributions made by many individuals on behalf of the PHP Group. The PHP Group can be contacted via Email at group@php.net. For more information on the PHP Group and the PHP project, please see <http://www.php.net>. http://cvs.php.net/co.php/pear/Search_Mnogosearch/docs/sigma-example.php?r=1.1&p=1 Index: pear/Search_Mnogosearch/docs/sigma-example.php +++ pear/Search_Mnogosearch/docs/sigma-example.php <?php /** * Example usage for Search_Mnogosearch renderer * with Sigma Templates and Pager. * * @author Gerrit Goetsch <goetsch@cross-solution.de> * * $Id: sigma-example.php,v 1.1 2004/11/05 10:14:33 goetsch Exp $ */ require_once 'Search/Mnogosearch.php'; require_once 'Search/Mnogosearch/Renderer/Sigma.php'; require_once 'HTML/QuickForm.php'; require_once 'HTML/QuickForm/Renderer/ITStatic.php'; require_once 'HTML/Template/Sigma.php'; require_once 'Pager/Pager.php'; // define the DNS to mnogosearch // define('DSN_MNOGOSEARCH', 'mysql://user:password@localhost/database'); include 'config.php'; $tpl = & new HTML_Template_Sigma(dirname(__FILE__).'/renderers/templates/'); $tpl->loadTemplateFile('search.html', false, true); $tpl->setVariable("subject", "Search_Mnogosearch renderer example for the sigma renderer"); $perPage = 10; // some parameters $params = array (); $params['excerptsize'] = "400"; $params['excerptpadding'] = "64"; $params['pagesize'] = $perPage; $params['mode'] = 'UDM_MODE_ALL'; $params['sortorder'] = 'DRP'; $params['detectclones'] = 1; $params['cachemode'] = 0; $params['crosswords'] = 0; $params['minwordlength'] = 2; $params['charset'] = "iso-8859-1"; $params['dateformat'] = "%d-%m-%y"; // Limits $limits = array (); // create a new Search_Mnogosearch Object $search = Search_Mnogosearch::connect(DSN_MNOGOSEARCH."/?dbmode=multi"); // set the http parameters if you want. $search->setHttpParameters(array ('page' => 'page', 'group' => 'group', 'query' => 'words')); // set the parameters $search->setParameters($params); $search->setLimits($limits); $sigma = new Search_Mnogosearch_Renderer_Sigma($tpl); $sigma->setVariableNames(array ('contentmain' => 'contentmain', 'query' => 'query', 'date' => 'date')); // set the template to use $sigma->setTemplates(array ('groupbysite' => 'bygroup.html', 'single' => 'result.html', 'noresult' => 'noresult.html')); // set the pager options $sigma->setPagerOptions(array ('firstPageText' => '<< ', 'lastPageText' => ' >>', 'nextImg' => ' >', 'prevImg' => '< ')); $sigma->setHighlightTags(array('begin' => '<font color="#003300"><b>', 'end' => '</b></font>')); $search->accept($sigma); $search->disconnect(); print $tpl->get(); ?> http://cvs.php.net/co.php/pear/Search_Mnogosearch/docs/renderers/templates/noresult.html?r=1.1&p=1 Index: pear/Search_Mnogosearch/docs/renderers/templates/noresult.html +++ pear/Search_Mnogosearch/docs/renderers/templates/noresult.html <table width="100%" valign="top"> <tr> <td class="header"> No hits. Sorry! </td> </tr> </table> <p> Your search at <b><span class="emph">{query}</span></b> has no results. </p> <p> </p> <table width="100%" valign="top"> <tr> <td class="header">&nbsp;</TD> </tr> </table> <p class="time">realized by <a href="http://cross-solution.de" target="_blank">cross</a></p> http://cvs.php.net/co.php/pear/Search_Mnogosearch/docs/renderers/templates/bygroup.html?r=1.1&p=1 Index: pear/Search_Mnogosearch/docs/renderers/templates/bygroup.html +++ pear/Search_Mnogosearch/docs/renderers/templates/bygroup.html <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="18%"> <table width="17%" border="0" cellspacing="0" cellpadding="1"> <tr> <td bgcolor="#339900"> <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF"> <tr> <td>&nbsp;<font size="2" face="Arial, Helvetica, sans-serif"><b>Query:</b></font>&nbsp;</td> </tr> </table> </td> <td bgcolor="#339900" nowrap>&nbsp;<font face="Arial, Helvetica, sans-serif" size="2"> <b><font color="#FFFFFF">{query}</font></b> </font>&nbsp;</td> </tr> </table> </td> </tr> </table> <br> <table width="100%" class="results2"> <tr class="header"> <td colspan="2"> <font size="2"><b><font color="#FFFFFF" face="Arial, Helvetica, sans-serif">Results: {from}-{to}<font size="1"> [of {totalItems}]</font></font></b></font></td> </tr> <!-- BEGIN added_block --> <tr class="bg2"> <td> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td class="arrow"><b>&gt;&gt;</b></td> <td> <a href="{link}" TARGET="_blank">{title}<br></a> <span class="small"> Site: {site}<a href="{morelinks}" class="small"><br>more links</a> </span> </td> </tr> </table> </td> <td width="20">{numOfPages}</td> </tr> <!-- END added_block --> </table> <table width="100%" border="0" cellspacing="0" cellpadding="3"> <tr bgcolor="#EEEEEE"> <td width="10%"><font size="2" face="Arial, Helvetica, sans-serif">Pages:</font><br> </td> <td><table cellspacing="0"><tr><td><nobr>{pages}</nobr></td></tr></table></td> </tr> <tr bgcolor="#EEEEEE"> <td colspan="3" bgcolor="#339900"></td> <td width="73%"></td> </tr> </table> <p class="time">Search time was <b>{searchtime}</b> seconds | realized by <a href="http://cross-solution.de" target="_blank">cross</a></p> http://cvs.php.net/co.php/pear/Search_Mnogosearch/docs/renderers/templates/searchform.html?r=1.1&p=1 Index: pear/Search_Mnogosearch/docs/renderers/templates/searchform.html +++ pear/Search_Mnogosearch/docs/renderers/templates/searchform.html <form {search_attributes}> <table border="0"> <tr> <td valign="middle">{search_words_html}{search_button_html}</td> </tr> <tr> <td><font color="#666666" face="Arial, Helvetica, Verdana, sans-serif" size="1"> EXAMPLE: Jobs and Germany and (Frankfurt or "Rhein Main") </font>&nbsp; </td> </tr> <tr><td class="small">{search_group_html}</td></tr> </table> </form> http://cvs.php.net/co.php/pear/Search_Mnogosearch/docs/renderers/templates/search.html?r=1.1&p=1 Index: pear/Search_Mnogosearch/docs/renderers/templates/search.html +++ pear/Search_Mnogosearch/docs/renderers/templates/search.html <table width="100%"> <tbody> <tr> <td> <center> {contenttop} </center> </td> </tr> </tbody> </table> <table width="100%" class="results"> <tr> <td width="100%" valign="top"> {contentmain} </td> </tr> </table> http://cvs.php.net/co.php/pear/Search_Mnogosearch/docs/renderers/templates/result.html?r=1.1&p=1 Index: pear/Search_Mnogosearch/docs/renderers/templates/result.html +++ pear/Search_Mnogosearch/docs/renderers/templates/result.html <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="18%"> <table width="17%" border="0" cellspacing="0" cellpadding="1"> <tr> <td bgcolor="#339900"> <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF"> <tr> <td>&nbsp;<font size="2" face="Arial, Helvetica, sans-serif"><b>Query:</b></font>&nbsp;</td> </tr> </table> </td> <td bgcolor="#339900" nowrap>&nbsp;<font face="Arial, Helvetica, sans-serif" size="2"> <b><font color="#FFFFFF">{query}</font></b></font>&nbsp;</td> </tr> </table> </td> </tr> </table> <br> <table width="100%" valign="top" class="results2"> <tr class="header"> <td colspan="3"> <table cellspacing="0" cellpadding="0" width="100%"> <tr> <td width="50%"> <font size="2"><b><font color="#FFFFFF" face="Arial, Helvetica, sans-serif">Results: {from}-{to}<font size="1"> [of {totalItems}]</font></font></b></font></td> <td align="right" width="50%"><b><font color="#FFFFFF" face="Arial, Helvetica, sans-serif"></font></b> </td> </tr> </table> </td> </tr> <!-- BEGIN added_block --> <tr> <td colspan="3" class="bg1"> <table cellspacing="0" cellpadding="0" width="100%"> <tr> <td width="100%"> <a href="{link}" TARGET="_blank">{title}</a></td> <td valign="top" nowrap=""><font size="2">{date}</font></td> </tr> </table> </td> </tr> <tr> <td colspan="3" class="bg2"> {description}... </td> </tr> <!-- END added_block --> </table> <table width="100%" border="0" cellspacing="0" cellpadding="3"> <tr bgcolor="#EEEEEE"> <td width="10%"><font size="2" face="Arial, Helvetica, sans-serif">Pages:</font><br> </td> <td><table cellspacing="0"><tr><td><nobr>{pages}</nobr></td></tr></table></td> </tr> <tr bgcolor="#EEEEEE"> <td colspan="3" bgcolor="#339900"></td> <td width="73%"></td> </tr> </table> <p class="time">Search time was <b>{searchtime}</b> seconds | realized by <a href="http://cross-solution.de" target="_blank">cross</a></p>
« previous php.pear.cvs (#25702) next »