Blame Identity/Webenv/Themes/Default/Puntal/themes/punbb/__prepend.php

f2e824
f2e824
/***********************************************************************
f2e824

f2e824
  Copyright (C) 2005-2007 Vincent Garnier and contributors. All rights
f2e824
  reserved.
f2e824
  
f2e824
  This file is part of Puntal 2.
f2e824

f2e824
  Puntal 2 is free software; you can redistribute it and/or modify it
f2e824
  under the terms of the GNU General Public License as published
f2e824
  by the Free Software Foundation; either version 2 of the License,
f2e824
  or (at your option) any later version.
f2e824

f2e824
  Puntal 2 is distributed in the hope that it will be useful, but
f2e824
  WITHOUT ANY WARRANTY; without even the implied warranty of
f2e824
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
f2e824
  GNU General Public License for more details.
f2e824

f2e824
  You should have received a copy of the GNU General Public License
f2e824
  along with this program; if not, write to the Free Software
f2e824
  Foundation, Inc., 59 Temple Place, Suite 330, Boston,
f2e824
  MA  02111-1307  USA
f2e824

f2e824
************************************************************************/
f2e824

f2e824
/**
f2e824
@function startBloc
f2e824

f2e824
Affiche le HTML du début d'un bloc.
f2e824

f2e824
@param	string	title		Le titre du bloc ('')
f2e824
@param	string	id			L'identifiant du bloc ('')
f2e824
*/
f2e824
function startBloc($title='',$id='')
f2e824
{
f2e824
	// un compteur si jamais il y a pas d'identifiant de spécifié	
f2e824
	static $i;
f2e824
	
f2e824
	$id = $id != '' ? $id : $i;
f2e824
	
f2e824
	$res = '';
f2e824
	$res .= "\t".'
'."\n";
f2e824
	
f2e824
	if ($title!='')
f2e824
		$res .= "\t".'

'.$title.'

'."\n";
f2e824
	
f2e824
	$res .= 
f2e824
	"\t\t".'
'."\n".
f2e824
	"\t\t\t".'
'."\n";
f2e824
	
f2e824
	echo $res;
f2e824
	$i++;
f2e824
}
f2e824

f2e824

f2e824
/**
f2e824
@function endBloc
f2e824

f2e824
Affiche le HTML de la fin d'un bloc.
f2e824
*/
f2e824
function endBloc()
f2e824
{
f2e824
	echo 
f2e824
	"\t\t\t".''."\n".
f2e824
	"\t\t".''."\n".
f2e824
	"\t".'';
f2e824
}
f2e824

f2e824

f2e824
/**
f2e824
@function headJsIe
f2e824

f2e824
Affiche le javascript pour IE.
f2e824
*/
f2e824
function headJsIe()
f2e824
{
f2e824
	$user_agent = isset($_SERVER['HTTP_USER_AGENT']) ? strtolower($_SERVER['HTTP_USER_AGENT']) : '';
f2e824
	if (strpos($user_agent, 'msie') !== false && strpos($user_agent, 'windows') !== false && strpos($user_agent, 'opera') === false)
f2e824
		echo '<script type="text/javascript" src="'.pt_forum_url.'style/imports/minmax.js"></script>';
f2e824
}
f2e824

f2e824
/**
f2e824
@function startBlocStatic
f2e824

f2e824
Affiche le HTML du début d'un bloc.
f2e824

f2e824
@param	string	title		Le titre du bloc ('')
f2e824
@param	string	id			L'identifiant du bloc ('')
f2e824
*/
f2e824
function startBlocStatic($title='',$id='')
f2e824
{
f2e824
	// un compteur si jamais il y a pas d'identifiant de spécifié	
f2e824
	static $i;
f2e824
	
f2e824
	$id = $id != '' ? $id : $i;
f2e824
	
f2e824
	$res = '';
f2e824
	$res .= "\t".'
'."\n";
f2e824
	
f2e824
	if ($title!='')
f2e824
		$res .= "\t".'

'.$title.'

'."\n";
f2e824
	
f2e824
	$res .= 
f2e824
	"\t\t".'
'."\n".
f2e824
	"\t\t\t".'
'."\n";
f2e824
	
f2e824
	return $res;
f2e824
	$i++;
f2e824
}
f2e824
/**
f2e824
@function endBlocStatic
f2e824

f2e824
Affiche le HTML de la fin d'un bloc.
f2e824
*/
f2e824
function endBlocStatic()
f2e824
{
f2e824
	return
f2e824
	"\t\t\t".''."\n".
f2e824
	"\t\t".''."\n".
f2e824
	"\t".'';
f2e824
}
f2e824

f2e824
?>