Blame Identity/Models/Html/Puntal/themes/punbb/__prepend.php

d6e8d8
d6e8d8
/***********************************************************************
d6e8d8

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

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

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

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

d6e8d8
************************************************************************/
d6e8d8

d6e8d8
/**
d6e8d8
@function startBloc
d6e8d8

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

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

'.$title.'

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

d6e8d8

d6e8d8
/**
d6e8d8
@function endBloc
d6e8d8

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

d6e8d8

d6e8d8
/**
d6e8d8
@function headJsIe
d6e8d8

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

d6e8d8
/**
d6e8d8
@function startBlocStatic
d6e8d8

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

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

'.$title.'

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

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

d6e8d8
?>