示例#1
0
    }
    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>';
示例#2
0
	<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>
示例#3
0
}
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">
示例#4
0
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 
}
示例#5
0
		</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 
示例#6
0
<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">
示例#7
0
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') {
示例#8
0
/**
 *  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";
	        $searchform.='</div>';
	    }
		
	    // Define $bookmarks
	    if (! empty($conf->bookmark->enabled) && $user->rights->bookmark->lire)
	    {
	        include_once (DOL_DOCUMENT_ROOT.'/bookmarks/bookmarks.lib.php');
	        $langs->load("bookmarks");

	        $bookmarks=printBookmarksList($db, $langs);
	    }

	    // Left column
	    print '<!-- Begin left menu -->'."\n";

	    print '<div class="vmenu">'."\n\n";

    	// Show left menu with other forms
	    $menumanager->menu_array = $menu_array_before;
    	$menumanager->menu_array_after = $menu_array_after;
	    $menumanager->showmenu('left', array('searchform'=>$searchform, 'bookmarks'=>$bookmarks)); // output menu_array and menu found in database

        // Dolibarr version + help + bug report link
		print "\n";
	    print "<!-- Begin Help Block-->\n";
        print '<div id="blockvmenuhelp" class="blockvmenuhelp">'."\n";

        // Version
        $doliurl='http://www.dolibarr.org';
		//local communities
		if (preg_match('/fr/i',$langs->defaultlang)) $doliurl='http://www.dolibarr.fr';
		if (preg_match('/es/i',$langs->defaultlang)) $doliurl='http://www.dolibarr.es';
		if (preg_match('/de/i',$langs->defaultlang)) $doliurl='http://www.dolibarr.de';
		if (preg_match('/it/i',$langs->defaultlang)) $doliurl='http://www.dolibarr.it';
		if (preg_match('/gr/i',$langs->defaultlang)) $doliurl='http://www.dolibarr.gr';

        $appli=constant('DOL_APPLICATION_TITLE');
	    if (! empty($conf->global->MAIN_APPLICATION_TITLE))
	    {
	    	$appli=$conf->global->MAIN_APPLICATION_TITLE; $doliurl='';
	    	if (preg_match('/\d\.\d/', $appli))
	    	{
				if (! preg_match('/'.preg_quote(DOL_VERSION).'/', $appli)) $appli.=" (".DOL_VERSION.")";	// If new title contains a version that is different than core
	    	}
	    	else $appli.=" ".DOL_VERSION;
	    }
	    else $appli.=" ".DOL_VERSION;
	    print '<div id="blockvmenuhelpapp" class="blockvmenuhelp">';
	    if ($doliurl) print '<a class="help" target="_blank" href="'.$doliurl.'">';
	    print $appli;
	    if ($doliurl) print '</a>';
	    print '</div>'."\n";

		// Link to bugtrack
		if (! empty($conf->global->MAIN_BUGTRACK_ENABLELINK))
		{
			require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';

			$bugbaseurl = 'https://github.com/Dolibarr/dolibarr/issues/new';
			$bugbaseurl.= '?title=';
			$bugbaseurl.= urlencode("Bug: ");
			$bugbaseurl.= '&body=';
			$bugbaseurl.= urlencode("# Environment\n");
			$bugbaseurl.= urlencode("- **Version**: " . DOL_VERSION . "\n");
			$bugbaseurl.= urlencode("- **OS**: " . php_uname('s') . "\n");
			$bugbaseurl.= urlencode("- **Web server**: " . $_SERVER["SERVER_SOFTWARE"] . "\n");
			$bugbaseurl.= urlencode("- **PHP**: " . php_sapi_name() . ' ' . phpversion() . "\n");
			$bugbaseurl.= urlencode("- **Database**: " . $db::LABEL . ' ' . $db->getVersion() . "\n");
			$bugbaseurl.= urlencode("- **URL**: " . $_SERVER["REQUEST_URI"] . "\n");
			$bugbaseurl.= urlencode("\n");
			$bugbaseurl.= urlencode("# Report\n");
			print '<div id="blockvmenuhelpbugreport" class="blockvmenuhelp">';
			print '<a class="help" target="_blank" href="'.$bugbaseurl.'">'.$langs->trans("FindBug").'</a>';
			print '</div>';
		}

        print "</div>\n";
        print "<!-- End Help Block-->\n";
        print "\n";

        print "</div>\n";
        print "<!-- End left menu -->\n";
        print "\n";

	    // Execute hook printLeftBlock
	    $parameters=array();
	    $reshook=$hookmanager->executeHooks('printLeftBlock',$parameters);    // Note that $action and $object may have been modified by some hooks
	    print $hookmanager->resPrint;

	    if (empty($conf->dol_use_jmobile) && ! empty($conf->use_javascript_ajax) && ! empty($conf->global->MAIN_MENU_USE_JQUERY_LAYOUT)) print '</div> <!-- End left layout -->'."\n";
	    else print '</div></div> <!-- end id-left -->';	// End div id="id-left"
    }

    print "\n";
    print '<!-- Begin right area -->'."\n";

    if (empty($leftmenuwithoutmainarea)) main_area($title);
}
示例#9
0
                $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
示例#10
0
        }
    } 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';
示例#11
0
文件: sidebar.php 项目: rb26/zenphoto
<?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 
示例#12
0
					<?php 
printSearchForm(null, 'searchform', null, gettext('Search'), "{$_zp_themeroot}/images/list_12x11.png", null, null, null);
示例#13
0
	</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();
示例#14
0
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();
}
示例#15
0
" /></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");
}
?>
				
示例#16
0
<?php

include_once "header.php";
?>

<?php 
$numEntries = getIndexNum();
if (!$_GET['pagenum']) {
    $pagenum = 1;
} else {
    $pagenum = $_GET['pagenum'];
}
if (!$_GET['search']) {
    printSearchForm($numEntries, $pagenum);
} else {
    $search = $_GET['search'];
    showSearchResults($numEntries, $pagenum, $search);
    $pagenum++;
    echo "<a href=\"" . $_SERVER['PHP_SELF'] . "?pagenum=" . $pagenum . "&search=" . $search . "\" class=\"box\">next &#187;</a>";
}
?>

<?php 
include_once "footer.php";
?>

示例#17
0
		</head>
		<body>
			<?php 
    zp_apply_filter('theme_body_open');
    ?>

			<div id="main">

				<div id="header">
					<h1><?php 
    printGalleryTitle();
    ?>
</h1>
					<?php 
    if (getOption('Allow_search')) {
        printSearchForm(NULL, 'search', NULL, gettext('Search gallery'));
    }
    ?>
				</div>

				<div id="content">

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

					<div id="content-left">
示例#18
0
<div id="header">
    <h3 style="float:left; padding-left: 32px;">
        <a href="<?php 
echo getGalleryIndexURL();
?>
"><img src="<?php 
echo $_zp_themeroot;
?>
/images/banner.png"/></a>
    </h3>
    <h3 style="float:right; padding-top: 22px;">
        <?php 
if (getOption('Allow_search')) {
    printSearchForm(NULL, 'search', NULL, gettext('Search'), $_zp_themeroot . '/images/filter.png');
}
?>
    </h2>
</div>
示例#19
0
文件: news.php 项目: rb26/zenphoto
		<body>
			<?php 
    zp_apply_filter('theme_body_open');
    ?>

			<div id="main">

				<div id="header">
					<h1><?php 
    printGalleryTitle();
    ?>
</h1>
					<?php 
    if (getOption('Allow_search')) {
        printSearchForm("", "search", "", gettext("Search"));
    }
    ?>
				</div>

				<div id="content">

					<div id="breadcrumb">
						<h2>
							<?php 
    printGalleryIndexURL(' » ');
    printNewsIndexURL(NULL, ' ');
    ?>
<strong><?php 
    printZenpageItemsBreadcrumb(' » ', '');
    printCurrentNewsCategory(" » ");
示例#20
0
<body>
<?php 
zp_apply_filter('theme_body_open');
?>

<div id="main">

		<div id="header">
		<h1><?php 
echo getGalleryTitle();
?>
</h1>
			<?php 
if (getOption('Allow_search')) {
    $album_list = array('albums' => array($_zp_current_album->name), 'pages' => '0', 'news' => '0');
    printSearchForm(NULL, 'search', NULL, gettext('Search album'), NULL, NULL, $album_list);
}
?>
		</div>

<div id="content">

	<div id="breadcrumb">
<h2><a href="<?php 
echo html_encode(getGalleryIndexURL(false));
?>
" title="<?php 
echo gettext('Index');
?>
"><?php 
echo gettext("Index");
示例#21
0
文件: header.php 项目: bgenere/negpos
?>
</h1> -->
<div class="col-sm-4 panel-group">
	<div class="panel panel-default">
		<div class="panel-header">
		<?php 
if (function_exists('printLanguageSelector')) {
    printLanguageSelector("langselector");
    // flags
    //printLanguageSelector(''); // combo text
}
?>
 
		</div>
	</div>
	<div class="panel panel-default">
		<div class="panel-content">  
		<?php 
if (getOption('Allow_search')) {
    //-- need to be generated manually not compliant
    printSearchForm("", "form-group", "", "");
}
?>
		</div>
	</div>
</div>
<div class="col-sm-8">
	 <img src="http://negpos.fr/negposphoto/uploaded/images/header.gif" class="img-responsive" alt="NegPos"> 
</div>
<!-- header - end -->
示例#22
0
				<?php 
if ($zpfocus_show_archive) {
    ?>
				<li><?php 
    printCustomPageURL(gettext('Archive'), "archive");
    ?>
				<?php 
}
?>
			</ul>
			<?php 
if ($zpfocus_allow_search) {
    ?>
			<div>
				<?php 
    printSearchForm('', 'searchform', '', gettext('SEARCH'), "{$_zp_themeroot}/images/search-drop.jpg", null, null, null);
    ?>
			</div>
			<?php 
}
?>
			<?php 
if ($zpfocus_menutype == 'jump') {
    ?>
			<div id="jumpmenu">
				<?php 
    printAlbumMenu('jump');
    ?>
			</div>
			<?php 
}
示例#23
0
</div>		<!-- END #CONTAINER -->

<div id="footer">
	<?php 
if (getOption('allow_search') || extensionEnabled('print_album_menu')) {
    ?>
		<div id="jump-search" class="clearfix">
			<?php 
    if (extensionEnabled('print_album_menu')) {
        printAlbumMenu('jump', NULL, '', '', '', '', gettext('Gallery Index'));
    }
    if (getOption('allow_search')) {
        printSearchForm('', 'search', '', gettext('Search'), "{$_zp_themeroot}/images/search-drop.png", NULL, NULL, "{$_zp_themeroot}/images/reset.gif");
    }
    ?>
		</div>
	<?php 
}
?>

	<div id="foot-left">
		<?php 
if (extensionEnabled('rss') && (getOption('RSS_album_image') || $_zenpage_enabled && getOption('RSS_articles'))) {
    ?>
			<div id="rsslinks">
				<?php 
    $rss = false;
    if (getOption('RSS_album_image')) {
        printRSSLink('Gallery', '', gettext('Latest images'), '', false, 'rss');
        $rss = true;
    }
示例#24
0
/**
 *  Show left menu bar
 *
 *  @param  array	$menu_array_before 	       	Table of menu entries to show before entries of menu handler
 *  @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	$moresearchform             Search Form Permanent Supplemental
 *  @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
 *  @return	void
 */
function left_menu($menu_array_before, $helppagename = '', $moresearchform = '', $menu_array_after = '', $leftmenuwithoutmainarea = 0, $title = '') {
    global $user, $conf, $langs, $db;
    global $hookmanager;

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

    // Instantiate hooks of thirdparty module
    if (!is_object($hookmanager)) {
        include_once(DOL_DOCUMENT_ROOT . '/core/class/hookmanager.class.php');
        $hookmanager = new HookManager($db);
    }
    $hookmanager->initHooks(array('searchform', 'leftblock'));

    print "\n";

    // Define $searchform
    if ($conf->societe->enabled && $conf->global->MAIN_SEARCHFORM_SOCIETE && $user->rights->societe->lire) {
        $langs->load("companies");
        $searchform.=printSearchForm(DOL_URL_ROOT . '/societe/societe.php', DOL_URL_ROOT . '/societe/societe.php', img_object('', 'company') . ' ' . $langs->trans("ThirdParties"), 'soc', 'socname');
    }

    if ($conf->societe->enabled && $conf->global->MAIN_SEARCHFORM_CONTACT && $user->rights->societe->lire) {
        $langs->load("companies");
        $searchform.=printSearchForm(DOL_URL_ROOT . '/contact/list.php', DOL_URL_ROOT . '/contact/list.php', img_object('', 'contact') . ' ' . $langs->trans("Contacts"), 'contact', 'contactname');
    }

    if ((($conf->product->enabled && $user->rights->produit->lire) || ($conf->service->enabled && $user->rights->service->lire))
            && $conf->global->MAIN_SEARCHFORM_PRODUITSERVICE) {
        $langs->load("products");
        $searchform.=printSearchForm(DOL_URL_ROOT . '/product/liste.php', DOL_URL_ROOT . '/product/liste.php', img_object('', 'product') . ' ' . $langs->trans("Products") . "/" . $langs->trans("Services"), 'products', 'sall');
    }

    if ($conf->adherent->enabled && $conf->global->MAIN_SEARCHFORM_ADHERENT && $user->rights->adherent->lire) {
        $langs->load("members");
        $searchform.=printSearchForm(DOL_URL_ROOT . '/adherents/liste.php', DOL_URL_ROOT . '/adherents/liste.php', img_object('', 'user') . ' ' . $langs->trans("Members"), 'member', 'sall');
    }

    // Execute hook printSearchForm
    $parameters = array();
    $searchform.=$hookmanager->executeHooks('printSearchForm', $parameters); // Note that $action and $object may have been modified by some hooks
    // Define $bookmarks
    if ($conf->bookmark->enabled && $user->rights->bookmark->lire) {
        include_once (DOL_DOCUMENT_ROOT . '/bookmarks/bookmarks.lib.php');
        $langs->load("bookmarks");

        $bookmarks = printBookmarksList($db, $langs);
    }

// Load the top menu manager (only if not already done)
    if (!class_exists('MenuLeft')) {
        $menufound = 0;
        $dirmenus = array_merge(array("/core/menus/"), $conf->menus_modules);
        foreach ($dirmenus as $dirmenu) {
            $menufound = dol_include_once($dirmenu . "standard/" . $left_menu);
            if ($menufound)
                break;
        }
        if (!$menufound) { // If failed to include, we try with standard
            $top_menu = 'eldy_backoffice.php';
            include_once(DOL_DOCUMENT_ROOT . "/core/menus/standard/" . $top_menu);
        }
    }

    /*
      // Left column
      print '<!--Begin left area - menu '.$left_menu.'-->'."\n";

      print '<div class = "row">'."\n";
      print '<div class = "three columns hide-on-phones">'."\n";

      //$menuleft=new MenuLeft($db,$menu_array_before,$menu_array_after);
      //$menuleft->showmenu(); // output menu_array and menu found in database


      // Show other forms
      if ($searchform)
      {
      print "\n";
      print "<!-- Begin SearchForm -->\n";
      print '<div id = "blockvmenusearch" class = "blockvmenusearch">'."\n";
      print $searchform;
      print '</div>'."\n";
      print "<!-- End SearchForm -->\n";
      }

      // More search form
      if ($moresearchform)
      {
      print $moresearchform;
      }

      // Bookmarks
      if ($bookmarks)
      {
      print "\n";
      print "<!-- Begin Bookmarks -->\n";
      print '<div id = "blockvmenubookmarks" class = "blockvmenubookmarks">'."\n";
      print $bookmarks;
      print '</div>'."\n";
      print "<!-- End Bookmarks -->\n";
      }

      // Link to Speedealing wiki pages
      if ($helppagename && empty($conf->global->MAIN_HELP_DISABLELINK))
      {
      $langs->load("help");

      $helpbaseurl='';
      $helppage='';
      $mode='';

      // Get helpbaseurl, helppage and mode from helppagename and langs
      $arrayres=getHelpParamFor($helppagename,$langs);
      $helpbaseurl=$arrayres['helpbaseurl'];
      $helppage=$arrayres['helppage'];
      $mode=$arrayres['mode'];

      // Link to help pages
      if ($helpbaseurl && $helppage)
      {
      print '<div id = "blockvmenuhelp" class = "blockvmenuhelp">';
      print '<a class = "help" target = "_blank" title = "'.$langs->trans($mode == 'wiki' ? 'GoToWikiHelpPage': 'GoToHelpPage');
      if ($mode == 'wiki') print ' - '.$langs->trans("PageWiki").' &quot;'.dol_escape_htmltag(strtr($helppage,'_',' ')).'&quot;';
      print '" href = "';
      print sprintf($helpbaseurl,urlencode(html_entity_decode($helppage)));
      print '">';
      print img_picto('', 'helpdoc').' ';
      print $langs->trans($mode == 'wiki' ? 'OnlineHelp': 'Help');
      //if ($mode == 'wiki') print ' ('.dol_trunc(strtr($helppage,'_',' '),8).')';
      print '</a>';
      print '</div>';
      }
      }

      // Link to bugtrack
      if (! empty($conf->global->MAIN_SHOW_BUGTRACK_LINK))
      {
      $bugbaseurl='http://savannah.nongnu.org/bugs/?';
      $bugbaseurl.='func=additem&group=dolibarr&privacy=1&';
      $bugbaseurl.="&details=";
      $bugbaseurl.=urlencode("\n\n\n\n\n-------------\n");
      $bugbaseurl.=urlencode($langs->trans("Version") . ": " . DOL_VERSION . "\n");
      $bugbaseurl.=urlencode($langs->trans("Server") . ": " . $_SERVER["SERVER_SOFTWARE"] . "\n");
      $bugbaseurl.=urlencode($langs->trans("Url") . ": " . $_SERVER["REQUEST_URI"] . "\n");
      print '<div class="help"><a class="help" target="_blank" href="' . $bugbaseurl . '">' . $langs->trans("FindBug") . '</a></div>';
      }
      print "\n";

      print "</div>\n";
      print "<!-- End left vertical menu -->\n";

      print "\n";

      // Execute hook printLeftBlock
      $parameters = array();
      $leftblock = $hookmanager->executeHooks('printLeftBlock', $parameters);	// Note that $action and $object may have been modified by some hooks
      print $leftblock;

      //print '</td>';

      print "\n";
      print '<!-- End of left area -->' . "\n";
      print "\n";
      print '<!-- Begin right area -->'."\n";
     */

    if (empty($leftmenuwithoutmainarea))
        main_area($title);
}
示例#25
0
    $searchform .= printSearchForm(DOL_URL_ROOT . '/contact/list.php', DOL_URL_ROOT . '/contact/list.php', img_object('', 'contact') . ' ' . $langs->trans("Contacts"), 'contact', 'contactname');
    $nbofsearch++;
}
if ((!empty($conf->product->enabled) && $user->rights->produit->lire || !empty($conf->service->enabled) && $user->rights->service->lire) && !empty($conf->global->MAIN_SEARCHFORM_PRODUITSERVICE)) {
    $langs->load("products");
    $searchform .= printSearchForm(DOL_URL_ROOT . '/product/list.php', DOL_URL_ROOT . '/product/list.php', img_object('', 'product') . ' ' . $langs->trans("Products") . "/" . $langs->trans("Services"), 'products', 'sall', '', 'sall' . rand(0, 10));
    $nbofsearch++;
}
if ((!empty($conf->product->enabled) && $user->rights->produit->lire || !empty($conf->service->enabled) && $user->rights->service->lire) && !empty($conf->global->MAIN_SEARCHFORM_PRODUITSERVICE)) {
    $langs->load("products");
    $searchform .= printSearchForm(DOL_URL_ROOT . '/fourn/product/list.php', DOL_URL_ROOT . '/fourn/product/list.php', img_object('', 'product') . ' ' . $langs->trans("SupplierRef"), 'products', 'srefsupplier');
    $nbofsearch++;
}
if (!empty($conf->adherent->enabled) && !empty($conf->global->MAIN_SEARCHFORM_ADHERENT) && $user->rights->adherent->lire) {
    $langs->load("members");
    $searchform .= printSearchForm(DOL_URL_ROOT . '/adherents/list.php', DOL_URL_ROOT . '/adherents/list.php', img_object('', 'user') . ' ' . $langs->trans("Members"), 'member', 'sall', 'sall' . rand(0, 10));
    $nbofsearch++;
}
// Execute hook printSearchForm
$parameters = array();
$reshook = $hookmanager->executeHooks('printSearchForm', $parameters);
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>';
//print '<div id="distance"></div><div id="container" class="center">';
示例#26
0
/**
 *  Show left menu bar
 *
 *  @param  array	$menu_array_before 	       	Table of menu entries to show before entries of menu handler
 *  @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	$moresearchform             Search Form Permanent Supplemental
 *  @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
 *  @return	void
 */
function left_menu($menu_array_before, $helppagename = '', $moresearchform = '', $menu_array_after = '', $leftmenuwithoutmainarea = 0, $title = '')
{
    global $user, $conf, $langs, $db;
    global $hookmanager, $menumanager;
    $searchform = '';
    $bookmarks = '';
    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";
        // Define $searchform
        if ((!empty($conf->societe->enabled) && (empty($conf->global->SOCIETE_DISABLE_PROSPECTS) || empty($conf->global->SOCIETE_DISABLE_CUSTOMERS)) || !empty($conf->fournisseur->enabled)) && !empty($conf->global->MAIN_SEARCHFORM_SOCIETE) && $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', 'socname', 'T', 'searchleftt', img_object('', 'company'));
        }
        if (!empty($conf->societe->enabled) && !empty($conf->global->MAIN_SEARCHFORM_CONTACT) && $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', 'contactname', '', 'searchleftc', img_object('', 'contact'));
        }
        if ((!empty($conf->product->enabled) && $user->rights->produit->lire || !empty($conf->service->enabled) && $user->rights->service->lire) && !empty($conf->global->MAIN_SEARCHFORM_PRODUITSERVICE)) {
            $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->product->enabled) && $user->rights->produit->lire || !empty($conf->service->enabled) && $user->rights->service->lire) && !empty($conf->fournisseur->enabled) && !empty($conf->global->MAIN_SEARCHFORM_PRODUITSERVICE_SUPPLIER)) {
            $langs->load("products");
            $searchform .= printSearchForm(DOL_URL_ROOT . '/fourn/product/list.php', DOL_URL_ROOT . '/fourn/product/list.php', $langs->trans("SupplierRef"), 'products', 'srefsupplier', '', 'searchlefts', img_object('', 'product'));
        }
        if (!empty($conf->adherent->enabled) && !empty($conf->global->MAIN_SEARCHFORM_ADHERENT) && $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->projet->enabled) && !empty($conf->global->MAIN_SEARCHFORM_PROJECT) && $user->rights->projet->lire) {
            $langs->load("members");
            $searchform .= printSearchForm(DOL_URL_ROOT . '/projet/list.php', DOL_URL_ROOT . '/projet/list.php', $langs->trans("Projects"), 'project', 'search_all', 'M', 'searchleftproj', img_object('', 'projectpub'));
        }
        // Execute hook printSearchForm
        $parameters = array();
        $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;
        }
        // Define $bookmarks
        if (!empty($conf->bookmark->enabled) && $user->rights->bookmark->lire) {
            include_once DOL_DOCUMENT_ROOT . '/bookmarks/bookmarks.lib.php';
            $langs->load("bookmarks");
            $bookmarks = printBookmarksList($db, $langs);
        }
        // Left column
        print '<!-- Begin left menu -->' . "\n";
        print '<div class="vmenu">' . "\n\n";
        $menumanager->menu_array = $menu_array_before;
        $menumanager->menu_array_after = $menu_array_after;
        $menumanager->showmenu('left');
        // output menu_array and menu found in database
        // Show other forms
        if ($searchform) {
            print "\n";
            print "<!-- Begin SearchForm -->\n";
            print '<div id="blockvmenusearch" class="blockvmenusearch">' . "\n";
            print $searchform;
            print '</div>' . "\n";
            print "<!-- End SearchForm -->\n";
        }
        // More search form
        if ($moresearchform) {
            print $moresearchform;
        }
        // Bookmarks
        if ($bookmarks) {
            print "\n";
            print "<!-- Begin Bookmarks -->\n";
            print '<div id="blockvmenubookmarks" class="blockvmenubookmarks">' . "\n";
            print $bookmarks;
            print '</div>' . "\n";
            print "<!-- End Bookmarks -->\n";
        }
        print "\n";
        print "<!-- Begin Help Block-->\n";
        print '<div id="blockvmenuhelp" class="blockvmenuhelp">' . "\n";
        //Dolibarr version
        $doliurl = 'http://www.dolibarr.org';
        //local communities
        if (preg_match('/fr/i', $langs->defaultlang)) {
            $doliurl = 'http://www.dolibarr.fr';
        }
        if (preg_match('/es/i', $langs->defaultlang)) {
            $doliurl = 'http://www.dolibarr.es';
        }
        if (preg_match('/de/i', $langs->defaultlang)) {
            $doliurl = 'http://www.dolibarr.de';
        }
        if (preg_match('/it/i', $langs->defaultlang)) {
            $doliurl = 'http://www.dolibarr.it';
        }
        if (preg_match('/gr/i', $langs->defaultlang)) {
            $doliurl = 'http://www.dolibarr.gr';
        }
        $appli = 'Dolibarr';
        if (!empty($conf->global->MAIN_APPLICATION_TITLE)) {
            $appli = $conf->global->MAIN_APPLICATION_TITLE;
            $doliurl = '';
            if (preg_match('/\\d\\.\\d/', $appli)) {
                if (!preg_match('/' . preg_quote(DOL_VERSION) . '/', $appli)) {
                    $appli .= " (" . DOL_VERSION . ")";
                }
                // If new title contains a version that is different than core
            } else {
                $appli .= " " . DOL_VERSION;
            }
        } else {
            $appli .= " " . DOL_VERSION;
        }
        print '<div id="blockvmenuhelpapp" class="blockvmenuhelp">';
        if ($doliurl) {
            print '<a class="help" target="_blank" href="' . $doliurl . '">';
        }
        print $appli;
        if ($doliurl) {
            print '</a>';
        }
        print '</div>' . "\n";
        // Link to Dolibarr wiki pages
        if ($helppagename && empty($conf->global->MAIN_HELP_DISABLELINK)) {
            $langs->load("help");
            $helpbaseurl = '';
            $helppage = '';
            $mode = '';
            // Get helpbaseurl, helppage and mode from helppagename and langs
            $arrayres = getHelpParamFor($helppagename, $langs);
            $helpbaseurl = $arrayres['helpbaseurl'];
            $helppage = $arrayres['helppage'];
            $mode = $arrayres['mode'];
            // Link to help pages
            if ($helpbaseurl && $helppage) {
                print '<div id="blockvmenuhelpwiki" class="blockvmenuhelp">';
                print '<a class="help" target="_blank" title="' . $langs->trans($mode == 'wiki' ? 'GoToWikiHelpPage' : 'GoToHelpPage');
                if ($mode == 'wiki') {
                    print ' - ' . $langs->trans("PageWiki") . ' &quot;' . dol_escape_htmltag(strtr($helppage, '_', ' ')) . '&quot;';
                }
                print '" href="';
                if ($mode == 'wiki') {
                    print sprintf($helpbaseurl, urlencode(html_entity_decode($helppage)));
                } else {
                    print sprintf($helpbaseurl, $helppage);
                }
                print '">';
                print img_picto('', 'helpdoc') . ' ';
                print $langs->trans($mode == 'wiki' ? 'OnlineHelp' : 'Help');
                //if ($mode == 'wiki') print ' ('.dol_trunc(strtr($helppage,'_',' '),8).')';
                print '</a>';
                print '</div>' . "\n";
            }
        }
        // Link to bugtrack
        if (!empty($conf->global->MAIN_BUGTRACK_ENABLELINK)) {
            require_once DOL_DOCUMENT_ROOT . '/core/lib/functions2.lib.php';
            $bugbaseurl = 'https://github.com/Dolibarr/dolibarr/issues/new';
            $bugbaseurl .= '?title=';
            $bugbaseurl .= urlencode("Bug: ");
            $bugbaseurl .= '&body=';
            $bugbaseurl .= urlencode("# Environment\n");
            $bugbaseurl .= urlencode("- **Version**: " . DOL_VERSION . "\n");
            $bugbaseurl .= urlencode("- **OS**: " . php_uname('s') . "\n");
            $bugbaseurl .= urlencode("- **Web server**: " . $_SERVER["SERVER_SOFTWARE"] . "\n");
            $bugbaseurl .= urlencode("- **PHP**: " . php_sapi_name() . ' ' . phpversion() . "\n");
            $bugbaseurl .= urlencode("- **Database**: " . $db::LABEL . ' ' . $db->getVersion() . "\n");
            $bugbaseurl .= urlencode("- **URL**: " . $_SERVER["REQUEST_URI"] . "\n");
            $bugbaseurl .= urlencode("\n");
            $bugbaseurl .= urlencode("# Report\n");
            print '<p id="blockvmenuhelpbugreport" class="blockvmenuhelp">';
            print '<a class="help" target="_blank" href="' . $bugbaseurl . '">' . $langs->trans("FindBug") . '</a>';
            print '</p>';
        }
        print "</div>\n";
        print "<!-- End Help Block-->\n";
        print "\n";
        print "</div>\n";
        print "<!-- End left menu -->\n";
        print "\n";
        // Execute hook printLeftBlock
        $parameters = array();
        $reshook = $hookmanager->executeHooks('printLeftBlock', $parameters);
        // Note that $action and $object may have been modified by some hooks
        print $hookmanager->resPrint;
        if (empty($conf->dol_use_jmobile) && !empty($conf->use_javascript_ajax) && !empty($conf->global->MAIN_MENU_USE_JQUERY_LAYOUT)) {
            print '</div> <!-- End left layout -->' . "\n";
        } else {
            print '</div></div> <!-- end id-left -->';
        }
        // End div id="id-left"
    }
    print "\n";
    print '<!-- Begin right area -->' . "\n";
    if (empty($leftmenuwithoutmainarea)) {
        main_area($title);
    }
}
示例#27
0
	</head>

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

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

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

			<!-- Crumb Trail Navigation -->
			<div id="wrapnav">
				<div id="navbar">
					<span><?php 
if ($_zp_gallery->getWebsiteURL()) {
    printHomeLink('', ' | ');
}
printGalleryTitle();
?>
示例#28
0
文件: album.php 项目: jmruas/zenphoto
	<body>
		<?php 
zp_apply_filter('theme_body_open');
?>

		<div id="main">

			<div id="header">
				<h1><?php 
printGalleryTitle();
?>
</h1>
				<?php 
if (getOption('Allow_search')) {
    $album_list = array('albums' => array($_zp_current_album->name), 'pages' => '0', 'news' => '0');
    printSearchForm(NULL, 'search', gettext('Search within album'), gettext('Search'), NULL, NULL, $album_list);
}
?>
			</div>

			<div id="content">

				<div id="breadcrumb">
					<h2><?php 
printGalleryIndexURL(' » ');
printParentBreadcrumb("", " » ", " » ");
?>
<strong><?php 
printAlbumTitle();
?>
</strong></h2>
<?php

// This script php implements
// find all artists listened by a user’s friend but not the user, order them by the
// number of friends listening to them, recommend the top 5
// Include library of functions
include "functions.php";
// connection to neo4j
require 'vendor/autoload.php';
$client = new Everyman\Neo4j\Client('localhost', 7474);
printHeader();
printSearchForm($uid);
echo "<b>User: {$uid} - All Artist Listened by my friends</b><br><br>";
$queryString = "MATCH (u:user {id:{$uid}})-[:ADD_FRIEND_TO]-(:user)-[listen: WEIGHT]-(a:artist)\r\nWHERE NOT (u)-[:WEIGHT]-(a)\r\nWITH a, count(u) as count\r\nRETURN a\r\nORDER BY count desc LIMIT 5";
$query = new Everyman\Neo4j\Cypher\Query($client, $queryString);
$result = $query->getResultSet();
foreach ($result as $row) {
    $artist = $client->getNode($row['x']->getId());
    $artistId = $artist->getProperty('id');
    $artistName = $artist->getProperty('name');
    echo "Artist Name: " . $artistName . "</br>";
    printArtistInfo($artistId);
    ?>
	<form action="listen.php" method="post">
	<input type="hidden" name="action" value="addlisten">
	<input type="hidden" name="userId" value="<?php 
    echo $uid;
    ?>
">
	<input type="hidden" name="artistId" value="<?php 
    echo $artistId;
示例#30
0
/**
 *  Show left menu bar
 *  @param      menu_array_before 	       Table of menu entries to show before entries of menu handler
 *  @param      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      moresearchform             Search Form Permanent Supplemental
 *  @param      menu_array_after           Table of menu entries to show after entries of menu handler
 *  @param      leftmenuwithoutmainarea    Must be set to 1. 0 by default for backward compatibility with old modules.
 *  @param      title                      Title of web page
 */
function left_menu($menu_array_before, $helppagename = '', $moresearchform = '', $menu_array_after = '', $leftmenuwithoutmainarea = 0, $title = '')
{
    global $user, $conf, $langs, $db;
    $searchform = '';
    $bookmarks = '';
    if ($conf->use_javascript_ajax && $conf->global->MAIN_MENU_USE_JQUERY_LAYOUT) {
        print "\n" . '<div class="ui-layout-west"> <!-- Begin left layout -->' . "\n";
    } else {
        print '<td class="vmenu" valign="top">';
    }
    print "\n";
    // Instantiate hooks of thirdparty module
    if (is_array($conf->hooks_modules) && !empty($conf->hooks_modules)) {
        require_once DOL_DOCUMENT_ROOT . '/core/class/commonobject.class.php';
        $object = new CommonObject($db);
        $object->callHooks(array('searchform', 'leftblock'));
    }
    // Define $searchform
    if ($conf->societe->enabled && $conf->global->MAIN_SEARCHFORM_SOCIETE && $user->rights->societe->lire) {
        $langs->load("companies");
        $searchform .= printSearchForm(DOL_URL_ROOT . '/societe/societe.php', DOL_URL_ROOT . '/societe/societe.php', img_object('', 'company') . ' ' . $langs->trans("ThirdParties"), 'soc', 'socname');
    }
    if ($conf->societe->enabled && $conf->global->MAIN_SEARCHFORM_CONTACT && $user->rights->societe->lire) {
        $langs->load("companies");
        $searchform .= printSearchForm(DOL_URL_ROOT . '/contact/index.php', DOL_URL_ROOT . '/contact/index.php', img_object('', 'contact') . ' ' . $langs->trans("Contacts"), 'contact', 'contactname');
    }
    if (($conf->product->enabled && $user->rights->produit->lire || $conf->service->enabled && $user->rights->service->lire) && $conf->global->MAIN_SEARCHFORM_PRODUITSERVICE) {
        $langs->load("products");
        $searchform .= printSearchForm(DOL_URL_ROOT . '/product/liste.php', DOL_URL_ROOT . '/product/liste.php', img_object('', 'product') . ' ' . $langs->trans("Products") . "/" . $langs->trans("Services"), 'products', 'sall');
    }
    if ($conf->adherent->enabled && $conf->global->MAIN_SEARCHFORM_ADHERENT && $user->rights->adherent->lire) {
        $langs->load("members");
        $searchform .= printSearchForm(DOL_URL_ROOT . '/adherents/liste.php', DOL_URL_ROOT . '/adherents/liste.php', img_object('', 'user') . ' ' . $langs->trans("Members"), 'member', 'sall');
    }
    // Search form hook for external modules
    if (!empty($object->hooks)) {
        $searchform .= '<!-- Begin search form hook area -->' . "\n";
        foreach ($object->hooks as $hook) {
            if ($hook['type'] == 'searchform' && !empty($hook['modules'])) {
                foreach ($hook['modules'] as $module) {
                    if (method_exists($module, 'printSearchForm')) {
                        $searchform .= $module->printSearchForm();
                    }
                }
            }
        }
        $searchform .= "\n" . '<!-- End of search form hook area -->' . "\n";
    }
    // Define $bookmarks
    if ($conf->bookmark->enabled && $user->rights->bookmark->lire) {
        include_once DOL_DOCUMENT_ROOT . '/bookmarks/bookmarks.lib.php';
        $langs->load("bookmarks");
        $bookmarks = printBookmarksList($db, $langs);
    }
    $left_menu = isset($conf->browser->phone) ? $conf->smart_menu : $conf->top_menu;
    if (GETPOST('menu')) {
        $left_menu = GETPOST('menu');
    }
    // menu=eldy_backoffice.php
    // Load the left menu manager
    $result = dol_include_once("/includes/menus/standard/" . $left_menu);
    if (!$result) {
        $left_menu = 'eldy_backoffice.php';
        include_once DOL_DOCUMENT_ROOT . "/includes/menus/standard/" . $left_menu;
    }
    // Left column
    print '<!-- Begin left area - menu ' . $left_menu . ' -->' . "\n";
    print '<div class="vmenu">' . "\n";
    $menuleft = new MenuLeft($db, $menu_array_before, $menu_array_after);
    $menuleft->showmenu();
    // output menu_array and menu found in database
    // Show other forms
    if ($searchform) {
        print "\n";
        print "<!-- Begin SearchForm -->\n";
        print '<div id="blockvmenusearch" class="blockvmenusearch">' . "\n";
        print $searchform;
        print '</div>' . "\n";
        print "<!-- End SearchForm -->\n";
    }
    // More search form
    if ($moresearchform) {
        print $moresearchform;
    }
    // Bookmarks
    if ($bookmarks) {
        print "\n";
        print "<!-- Begin Bookmarks -->\n";
        print '<div id="blockvmenubookmarks" class="blockvmenubookmarks">' . "\n";
        print $bookmarks;
        print '</div>' . "\n";
        print "<!-- End Bookmarks -->\n";
    }
    // Link to Dolibarr wiki pages
    if ($helppagename && empty($conf->global->MAIN_HELP_DISABLELINK)) {
        $langs->load("help");
        $helpbaseurl = '';
        $helppage = '';
        $mode = '';
        // Get helpbaseurl, helppage and mode from helppagename and langs
        $arrayres = getHelpParamFor($helppagename, $langs);
        $helpbaseurl = $arrayres['helpbaseurl'];
        $helppage = $arrayres['helppage'];
        $mode = $arrayres['mode'];
        // Link to help pages
        if ($helpbaseurl && $helppage) {
            print '<div id="blockvmenuhelp" class="blockvmenuhelp">';
            print '<a class="help" target="_blank" title="' . $langs->trans($mode == 'wiki' ? 'GoToWikiHelpPage' : 'GoToHelpPage');
            if ($mode == 'wiki') {
                print ' - ' . $langs->trans("PageWiki") . ' &quot;' . dol_escape_htmltag(strtr($helppage, '_', ' ')) . '&quot;';
            }
            print '" href="';
            print sprintf($helpbaseurl, urlencode(html_entity_decode($helppage)));
            print '">';
            print img_picto('', DOL_URL_ROOT . '/theme/common/helpdoc.png', '', 1) . ' ';
            print $langs->trans($mode == 'wiki' ? 'OnlineHelp' : 'Help');
            //if ($mode == 'wiki') print ' ('.dol_trunc(strtr($helppage,'_',' '),8).')';
            print '</a>';
            print '</div>';
        }
    }
    // Link to bugtrack
    if (!empty($conf->global->MAIN_SHOW_BUGTRACK_LINK)) {
        $bugbaseurl = 'http://savannah.nongnu.org/bugs/?';
        $bugbaseurl .= 'func=additem&group=dolibarr&privacy=1&';
        $bugbaseurl .= "&details=";
        $bugbaseurl .= urlencode("\n\n\n\n\n-------------\n");
        $bugbaseurl .= urlencode($langs->trans("Version") . ": " . DOL_VERSION . "\n");
        $bugbaseurl .= urlencode($langs->trans("Server") . ": " . $_SERVER["SERVER_SOFTWARE"] . "\n");
        $bugbaseurl .= urlencode($langs->trans("Url") . ": " . $_SERVER["REQUEST_URI"] . "\n");
        print '<div class="help"><a class="help" target="_blank" href="' . $bugbaseurl . '">' . $langs->trans("FindBug") . '</a></div>';
    }
    print "\n";
    print "</div>\n";
    print "<!-- End left vertical menu -->\n";
    print "\n";
    // Left block hook for external modules
    if (!empty($object->hooks)) {
        print '<!-- Begin left block hook area -->' . "\n";
        foreach ($object->hooks as $hook) {
            if ($hook['type'] == 'leftblock' && !empty($hook['modules'])) {
                foreach ($hook['modules'] as $module) {
                    if (method_exists($module, 'printLeftBlock')) {
                        $module->printLeftBlock();
                    }
                }
            }
        }
        print "\n" . '<!-- End of left block hook area -->' . "\n";
    }
    if ($conf->use_javascript_ajax && $conf->global->MAIN_MENU_USE_JQUERY_LAYOUT) {
        print '</div> <!-- End left layout -->' . "\n";
    } else {
        print '</td>';
    }
    print "\n";
    print '<!-- End of left area -->' . "\n";
    print "\n";
    print '<!-- Begin right area -->' . "\n";
    if (empty($leftmenuwithoutmainarea)) {
        main_area($title);
    }
}