当前位置: 首页>>代码示例>>PHP>>正文


PHP printSearchForm函数代码示例

本文整理汇总了PHP中printSearchForm函数的典型用法代码示例。如果您正苦于以下问题:PHP printSearchForm函数的具体用法?PHP printSearchForm怎么用?PHP printSearchForm使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了printSearchForm函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: printSearchForm

    }
    if (!empty($conf->product->enabled) && $user->rights->produit->lire || !empty($conf->service->enabled) && $user->rights->service->lire) {
        $langs->load("products");
        $searchform .= printSearchForm(DOL_URL_ROOT . '/product/list.php', DOL_URL_ROOT . '/product/list.php', $langs->trans("Products") . "/" . $langs->trans("Services"), 'products', 'sall', 'P', 'searchleftp', img_object('', 'product'));
    }
    if (!empty($conf->projet->enabled) && $user->rights->projet->lire) {
        $langs->load("projects");
        $searchform .= printSearchForm(DOL_URL_ROOT . '/projet/list.php', DOL_URL_ROOT . '/projet/list.php', $langs->trans("Projects"), 'project', 'search_all', 'Q', 'searchleftproj', img_object('', 'projectpub'));
    }
    if (!empty($conf->adherent->enabled) && $user->rights->adherent->lire) {
        $langs->load("members");
        $searchform .= printSearchForm(DOL_URL_ROOT . '/adherents/list.php', DOL_URL_ROOT . '/adherents/list.php', $langs->trans("Members"), 'member', 'sall', 'M', 'searchleftm', img_object('', 'user'));
    }
    if (!empty($conf->user->enabled) && $user->rights->user->user->lire) {
        $langs->load("users");
        $searchform .= printSearchForm(DOL_URL_ROOT . '/user/list.php', DOL_URL_ROOT . '/user/list.php', $langs->trans("Users"), 'user', 'sall', 'M', 'searchleftuser', img_object('', 'user'));
    }
}
// Execute hook printSearchForm
$parameters = array('searchform' => $searchform);
$reshook = $hookmanager->executeHooks('printSearchForm', $parameters);
// Note that $action and $object may have been modified by some hooks
if (empty($reshook)) {
    $searchform .= $hookmanager->resPrint;
} else {
    $searchform = $hookmanager->resPrint;
}
print "\n";
print "<!-- Begin SearchForm -->\n";
print '<div class="center" data-role="page" align="center"><div align="center" style="padding: 6px;">';
print '<style>.menu_titre { padding-top: 7px; }</style>';
开发者ID:Albertopf,项目名称:prueba,代码行数:31,代码来源:search_page.php

示例2: zp_apply_filter

	<body onload="blurAnchors()">
		<?php 
zp_apply_filter('theme_body_open');
?>

		<!-- Wrap Header -->
		<div id="header">

			<!-- Logo -->
			<div id="gallerytitle">
				<div id="logo">
					<?php 
if (getOption('Allow_search')) {
    $album_list = array('albums' => '1', 'pages' => '0', 'news' => '0');
    printSearchForm(NULL, 'search', $_zp_themeroot . '/images/search.png', gettext('Search albums'), NULL, NULL, $album_list);
}
printLogo();
?>
				</div>
			</div> <!-- gallerytitle -->

			<!-- Crumb Trail Navigation -->
			<div id="wrapnav">
				<div id="navbar">
					<span><?php 
printHomeLink('', ' | ');
printGalleryIndexURL(' | ');
?>
</span>
				</div>
开发者ID:rauldobrota,项目名称:zenphoto,代码行数:30,代码来源:gallery.php

示例3: array

}
if ($total == 0) {
    $_zp_current_search->clearSearchWords();
}
if (getOption('Allow_search')) {
    $categorylist = $_zp_current_search->getCategoryList();
    if (is_array($categorylist)) {
        $catlist = array('news' => $categorylist, 'albums' => '0', 'images' => '0', 'pages' => '0');
        printSearchForm(NULL, 'search', NULL, gettext('Search category'), NULL, NULL, $catlist);
    } else {
        $albumlist = $_zp_current_search->getAlbumList();
        if (is_array($albumlist)) {
            $album_list = array('albums' => $albumlist, 'pages' => '0', 'news' => '0');
            printSearchForm(NULL, 'search', NULL, gettext('Search album'), NULL, NULL, $album_list);
        } else {
            printSearchForm("", "search", "", gettext("Search gallery"));
        }
    }
}
?>
			</div>

			<div id="breadcrumb">
				<h2><?php 
printGalleryIndexURL(' » ');
printSearchBreadcrumb(" » ");
?>
				</h2>
			</div>

			<div id="content">
开发者ID:jmruas,项目名称:zenphoto,代码行数:31,代码来源:search.php

示例4: strip_tags

echo strip_tags(getMainSiteName() . ' / ' . getGalleryTitle());
?>
</title>
	</head>
	<body id="gallery-index" class="<?php 
echo 'page-' . getCurrentPage();
?>
">
	<?php 
zp_apply_filter('theme_body_open');
?>
		<div id="wrapper">
			<div id="header">
				<?php 
if (getOption('Allow_search')) {
    printSearchForm('');
}
?>
				<ul class="path c">
					<?php 
if (getMainSiteURL()) {
    ?>
						<li><h1><a href="<?php 
    echo getMainSiteURL();
    ?>
"><?php 
    echo getMainSiteName();
    ?>
</a></h1></li>
					<?php 
}
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:31,代码来源:index.php

示例5: printSearchForm

		</div> <!-- /container -->

		<div class="navbar bottom">
			<div class="navbar-inner">
				<div class="row">
					<?php 
if (getOption('allow_search')) {
    ?>
					<div class="span6 pull-right">
						<?php 
    printSearchForm();
    ?>
					</div>
					<?php 
}
?>
					<div class="span6 pull-left">
						<div id="copyright">
							<?php 
echo getMainSiteName();
if (getOption('zpB_show_archive')) {
    printCustomPageURL(gettext('Archive View'), 'archive', '', ' | ');
}
if (!zp_loggedin() && extensionEnabled('register_user')) {
    printRegisterURL(gettext('Register'), ' | ');
}
if (extensionEnabled('user_login-out')) {
    printUserLogin_out(' | ', '', 1);
    ?>
								<script type="text/javascript">
									$('.passwordform').before('| <a href="#zpB_login_passwordform" data-toggle="modal" class="zpB_logonlink" title="<?php 
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:31,代码来源:inc_footer.php

示例6: printGalleryTitle

<div id="main">

	<div id="header">
			<h1><?php 
printGalleryTitle();
?>
</h1>
			<?php 
if (getOption('Allow_search')) {
    if (is_NewsCategory()) {
        $catlist = array('news' => array($_zp_current_category->getTitlelink()), 'albums' => '0', 'images' => '0', 'pages' => '0');
        printSearchForm(NULL, 'search', NULL, gettext('Search category'), NULL, NULL, $catlist);
    } else {
        $catlist = array('news' => '1', 'albums' => '0', 'images' => '0', 'pages' => '0');
        printSearchForm(NULL, "search", "", gettext("Search news"), NULL, NULL, $catlist);
    }
}
?>

<<!-- cl integration des selecteurs de langues-->
                        <div id="position_flag_b"><?php 
if (function_exists('printLanguageSelector')) {
    printLanguageSelector("langselector");
}
?>
 </div>
		</div>

<div id="content">
开发者ID:nataliakuruch,项目名称:negpos,代码行数:29,代码来源:news.php

示例7: zp_apply_filter

zp_apply_filter('theme_body_open');
?>
	<!-- Wrap Header -->
	<div id="header">
		<div id="gallerytitle">

		<!-- Logo -->
			<div id="logo">
				<?php 
if (getOption('Allow_search')) {
    if (is_NewsCategory()) {
        $catlist = array('news' => array($_zp_current_category->getTitlelink()), 'albums' => '0', 'images' => '0', 'pages' => '0');
        printSearchForm(NULL, 'search', $_zp_themeroot . '/images/search.png', gettext('Search within category'), NULL, NULL, $catlist);
    } else {
        $catlist = array('news' => '1', 'albums' => '0', 'images' => '0', 'pages' => '0');
        printSearchForm(NULL, 'search', $_zp_themeroot . '/images/search.png', gettext('Search news'), NULL, NULL, $catlist);
    }
}
printLogo();
?>
			</div>
		</div> <!-- gallerytitle -->

		<!-- Crumb Trail Navigation -->
		<div id="wrapnav">
			<div id="navbar">
				<span><?php 
printHomeLink('', ' | ');
?>
				<?php 
if (getOption('custom_index_page') === 'gallery') {
开发者ID:hatone,项目名称:zenphoto-1.4.1.4,代码行数:31,代码来源:news.php

示例8: left_menu

/**
 *  Show left menu bar
 *
 *  @param  array	$menu_array_before 	       	Table of menu entries to show before entries of menu handler. This param is deprectaed and must be provided to ''.
 *  @param  string	$helppagename    	       	Name of wiki page for help ('' by default).
 * 				     		                   	Syntax is: For a wiki page: EN:EnglishPage|FR:FrenchPage|ES:SpanishPage
 * 									         		       For other external page: http://server/url
 *  @param  string	$notused             		Deprecated. Used in past to add content into left menu. Hooks can be used now.
 *  @param  array	$menu_array_after           Table of menu entries to show after entries of menu handler
 *  @param  int		$leftmenuwithoutmainarea    Must be set to 1. 0 by default for backward compatibility with old modules.
 *  @param  string	$title                      Title of web page
 *  @param  string  $acceptdelayedhtml          1 if caller request to have html delayed content not returned but saved into global $delayedhtmlcontent (so caller can show it at end of page to avoid flash FOUC effect)
 *  @return	void
 */
function left_menu($menu_array_before, $helppagename='', $notused='', $menu_array_after='', $leftmenuwithoutmainarea=0, $title='', $acceptdelayedhtml=0)
{
    global $user, $conf, $langs, $db, $form;
    global $hookmanager, $menumanager;

    $searchform='';
    $bookmarks='';

    if (! empty($menu_array_before)) dol_syslog("Deprecated parameter menu_array_before was used when calling main::left_menu function. Menu entries of module should now be defined into module descriptor and not provided when calling left_menu.", LOG_WARNING); 
        
    if (empty($conf->dol_hide_leftmenu))
    {
	    // Instantiate hooks of thirdparty module
	    $hookmanager->initHooks(array('searchform','leftblock'));

    	if (empty($conf->dol_use_jmobile) && ! empty($conf->use_javascript_ajax) && ! empty($conf->global->MAIN_MENU_USE_JQUERY_LAYOUT)) print "\n".'<!-- Begin left layout -->'."\n".'<div class="ui-layout-west">'."\n";
		else print "\n".'<!-- Begin id-left -->'."\n".'<div class="side-nav"><div id="id-left">'."\n";

	    print "\n";

	    if ($conf->use_javascript_ajax && $conf->browser->layout != 'phone')
	    {
    	    if (! is_object($form)) $form=new Form($db);
    	    $selected=-1;
            $searchform.=$form->selectArrayAjax('searchselectcombo', DOL_URL_ROOT.'/core/ajax/selectsearchbox.php', $selected, '', '', 0, 1, 'vmenusearchselectcombo', 1, $langs->trans("Search"), 1);
	    }
	    else
	    {
    	    // Define $searchform
    	    if ((( ! empty($conf->societe->enabled) && (empty($conf->global->SOCIETE_DISABLE_PROSPECTS) || empty($conf->global->SOCIETE_DISABLE_CUSTOMERS))) || ! empty($conf->fournisseur->enabled)) && $user->rights->societe->lire)
    	    {
    	        $langs->load("companies");
    	        $searchform.=printSearchForm(DOL_URL_ROOT.'/societe/list.php', DOL_URL_ROOT.'/societe/list.php', $langs->trans("ThirdParties"), 'soc', 'sall', 'T', 'searchleftt', img_object('','company'));
    	    }
    
    	    if (! empty($conf->societe->enabled) && $user->rights->societe->lire)
    	    {
    	        $langs->load("companies");
    	        $searchform.=printSearchForm(DOL_URL_ROOT.'/contact/list.php', DOL_URL_ROOT.'/contact/list.php', $langs->trans("Contacts"), 'contact', 'sall', 'A', 'searchleftc', img_object('','contact'));
    	    }
    
    	    if (((! empty($conf->product->enabled) && $user->rights->produit->lire) || (! empty($conf->service->enabled) && $user->rights->service->lire))
    	    )
    	    {
    	        $langs->load("products");
    	        $searchform.=printSearchForm(DOL_URL_ROOT.'/product/list.php', DOL_URL_ROOT.'/product/list.php', $langs->trans("Products")."/".$langs->trans("Services"), 'products', 'sall', 'P', 'searchleftp', img_object('','product'));
    	    }
    
            if (! empty($conf->projet->enabled) && $user->rights->projet->lire)
    	    {
    	        $langs->load("projects");
    	        $searchform.=printSearchForm(DOL_URL_ROOT.'/projet/list.php', DOL_URL_ROOT.'/projet/list.php', $langs->trans("Projects"), 'project', 'search_all', 'Q', 'searchleftproj', img_object('','projectpub'));
    	    }
    
    	    if (! empty($conf->adherent->enabled) && $user->rights->adherent->lire)
    	    {
    	        $langs->load("members");
    	        $searchform.=printSearchForm(DOL_URL_ROOT.'/adherents/list.php', DOL_URL_ROOT.'/adherents/list.php', $langs->trans("Members"), 'member', 'sall', 'M', 'searchleftm', img_object('','user'));
    	    }
    
    		if (! empty($conf->user->enabled) && $user->rights->user->user->lire)
    	    {
    	        $langs->load("users");
    	        $searchform.=printSearchForm(DOL_URL_ROOT.'/user/list.php', DOL_URL_ROOT.'/user/list.php', $langs->trans("Users"), 'user', 'sall', 'M', 'searchleftuser', img_object('','user'));
    	    }
	    }
        
	    // Execute hook printSearchForm
	    $parameters=array('searchform'=>$searchform);
	    $reshook=$hookmanager->executeHooks('printSearchForm',$parameters);    // Note that $action and $object may have been modified by some hooks
		if (empty($reshook))
		{
			$searchform.=$hookmanager->resPrint;
		}
		else $searchform=$hookmanager->resPrint;

		if ($conf->use_javascript_ajax && $conf->browser->layout == 'phone')
	    {
	        $searchform='<div class="blockvmenuimpair blockvmenusearchphone"><div id="divsearchforms1"><a href="#" alt="'.dol_escape_htmltag($langs->trans("ShowSearchFields")).'">'.$langs->trans("Search").'...</a></div><div id="divsearchforms2" style="display: none">'.$searchform.'</div>';
	        $searchform.='<script type="text/javascript">
            	jQuery(document).ready(function () {
            		jQuery("#divsearchforms1").click(function(){
	                   jQuery("#divsearchforms2").toggle();
	               });
            	});
                </script>' . "\n";
//.........这里部分代码省略.........
开发者ID:NoisyBoy86,项目名称:Dolibarr_test,代码行数:101,代码来源:main.inc.php

示例9: array

                $albumlist = $_zp_current_search->getAlbumList();
                if (is_array($albumlist)) {
                    $list = array('albums' => $albumlist, 'pages' => '0', 'news' => '0');
                    $text = gettext('Search within album');
                } else {
                    $list = NULL;
                    $text = gettext('Search gallery');
                }
            }
            break;
        default:
            $list = NULL;
            $text = gettext('Search gallery');
            break;
    }
    printSearchForm(NULL, 'search', $_zp_themeroot . '/images/search.png', $text, NULL, NULL, $list);
    ?>
	<br class="clearall" />
	<?php 
}
if (function_exists('printCustomMenu') && extensionEnabled('zenpage') && ($menu = getOption('garland_menu'))) {
    ?>
	<!-- custom menu -->
	<div class="menu">
		<?php 
    printCustomMenu($menu, 'list', '', "menu-active", "submenu", "menu-active", 2);
    ?>
	</div>
	<?php 
} else {
    //	"standard zenpage sidebar menus
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:31,代码来源:sidebar.php

示例10: gettext

        }
    } else {
        echo '<br /><p class="pad">' . gettext('Sorry, no statistical page to show...') . '</p>';
    }
    ?>
					</div>
					
					<?php 
} else {
    echo '<br /><p class="pad">' . gettext('Sorry, no statistical page to show...') . '</p>';
}
?>
				
				</div>

				<div class="gallery-sidebar pad">
					<?php 
printSearchForm('', 'search', $_zp_themeroot . '/images/magnifying_glass_16x16.png', gettext('Search gallery'), $_zp_themeroot . '/images/list_12x11.png');
?>
	
					<hr />
					<?php 
include 'inc-archive-stats-menu.php';
?>
 	
				</div>
			</div>
		</div>
		
<?php 
include 'inc-footer.php';
开发者ID:ckfreeman,项目名称:libratus,代码行数:31,代码来源:archive-stats.php

示例11: printSearchForm

<?php

// force UTF-8 Ø
if (getOption('Allow_search')) {
    printSearchForm(NULL, 'search', $_zp_themeroot . '/images/search.png');
    ?>
	<br class="clearall" />
	<?php 
}
if (function_exists('printCustomMenu') && getThemeOption('custom_index_page', NULL, 'garland') === 'gallery' && ($menu = getThemeOption('garland_menu'))) {
    ?>
	<!-- custom menu -->
	<div class="menu">
		<?php 
    printCustomMenu($menu, 'list', '', "menu-active", "submenu", "menu-active", 2);
    ?>
	</div>
	<?php 
} else {
    //	"standard zenpage sidebar menus
    ?>
	<!-- standard menu -->	<?php 
    if (extensionEnabled('zenpage') && ZP_NEWS_ENABLED) {
        if (getNumNews(true)) {
            ?>
			<div class="menu">
				<h3><?php 
            echo gettext("News articles");
            ?>
</h3>
				<?php 
开发者ID:rb26,项目名称:zenphoto,代码行数:31,代码来源:sidebar.php

示例12: printSearchForm

					<?php 
printSearchForm(null, 'searchform', null, gettext('Search'), "{$_zp_themeroot}/images/list_12x11.png", null, null, null);
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:2,代码来源:inc-search.php

示例13: zp_apply_filter

	</head>
	<body>
		<?php 
zp_apply_filter('theme_body_open');
?>
		<div id="header">
			<?php 
include "inc-menu.php";
?>
	
			<div id="header-inner">		
				<?php 
if ($zpmas_css == 'dark') {
    printSearchForm('', 'searchform', '', gettext('Search'), "{$_zp_themeroot}/images/media-eject-inv.png", null, null, null);
} else {
    printSearchForm('', 'searchform', '', gettext('Search'), "{$_zp_themeroot}/images/media-eject.png", null, null, null);
}
?>
				<h1 id="logo"<?php 
if (strlen($zpmas_logo) > 0) {
    echo ' class="image-logo"';
}
?>
><a href="<?php 
echo $zpmas_homelink;
?>
" title="<?php 
echo gettext("Gallery Index");
?>
"><?php 
echo getGalleryTitle();
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:31,代码来源:inc-header.php

示例14: printFollowingPage

function printFollowingPage($dbh, $user)
{
    printPageTop('Following');
    print <<<EOT
\t<div class="blog-masthead">
       \t<div class="container">
         \t\t<nav class="blog-nav">
           \t\t\t<ul class="nav navbar-nav">
             \t\t\t\t<li><a class="blog-nav-item" href="blog-ex-comment-user.php">Blog</a></li>
             \t\t\t\t<li><a class="blog-nav-item" href = "postPage.php?type=">Post</a></li>
             \t\t\t\t<li><a class="blog-nav-item" href="followersPage.php">Followers</a></li>
             \t\t\t\t<li><a class="blog-nav-item active" href="#">Following</a></li>
             \t\t\t\t<li><a class="blog-nav-item" href ="myprofile.php">Profile</a></li>
             \t\t\t\t<li><a class="blog-nav-item" href = "toHomePage.php">Home</a></li>
             \t\t\t\t<li><a class="blog-nav-item" href = "logoutPage.php">Logout</a></li>
           \t\t\t</ul>
EOT;
    printSearchForm();
    print <<<EOT
        \t\t</nav>
      \t\t</div>
    </div>

EOT;
    print <<<EOT
    \t<div class="container">
      \t\t<div class="blog-header">
        \t\t<h1 class="blog-title">{$user}</h1>
        \t\t<p class="lead blog-description">Here are the users that you are following.</p>
      \t\t</div>

      \t\t<div class="row">
\t\t\t<div class="col-sm-8 blog-main">
EOT;
    // Get a list of users that you are currently following and display on page
    $getFollowing = "SELECT following FROM follows where user = ?";
    $followingResults = prepared_query($dbh, $getFollowing, $user);
    while ($row = $followingResults->fetchRow(MDB2_FETCHMODE_ASSOC)) {
        $following = $row['following'];
        print <<<EOT
        
          \t<div class="blog-post">
            \t\t<p class="blog-post-meta"><a href="toBlog.php?user={$following}">{$following}</a></p>
            \t\t<hr>
\t\t</div>    
EOT;
    }
    print <<<EOT
\t\t</div><!-- /.blog-main -->  
    \t\t</div><!-- /.container -->
EOT;
    printBlogFooter();
}
开发者ID:slee14,项目名称:blog-project,代码行数:53,代码来源:blog-functions.php

示例15: htmlspecialchars

" /></a></div>
				<?php 
} else {
    ?>
				<h1 id="logo"><a href="<?php 
    echo htmlspecialchars(getGalleryIndexURL());
    ?>
"><?php 
    echo getGalleryTitle();
    ?>
</a></h1>
				<?php 
}
?>
				<?php 
if ($zpmin_social) {
    ?>
				<div id="social">
					<?php 
    printAddThis();
    ?>
				</div>
				<?php 
}
?>
				<?php 
if ($showsearch) {
    printSearchForm('', 'searchform', '', gettext('Search'), "{$_zp_themeroot}/images/drop.gif", null, null, "{$_zp_themeroot}/images/reset.gif");
}
?>
				
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:30,代码来源:inc-header.php


注:本文中的printSearchForm函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。