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

ef5584
ef5584
/***********************************************************************
ef5584

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

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

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

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

ef5584
************************************************************************/
ef5584

ef5584
/**
ef5584
@function startBloc
ef5584

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

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

'.$title.'

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

ef5584

ef5584
/**
ef5584
@function endBloc
ef5584

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

ef5584

ef5584
/**
ef5584
@function headJsIe
ef5584

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

ef5584
/**
ef5584
@function startBlocStatic
ef5584

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

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

'.$title.'

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

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

ef5584
?>