<?php

/************************************************************************/
/* DOCEBO CORE - Framework												*/
/* ============================================							*/
/*																		*/
/* Copyright (c) 2004													*/
/* http://www.docebo.com												*/
/*																		*/
/* This program is free software. You can redistribute it and/or modify	*/
/* it under the terms of the GNU General Public License as published by	*/
/* the Free Software Foundation; either version 2 of the License.		*/
/************************************************************************/

/**
 * @package admin-core
 * @subpackage user
 * @version 	$Id: lib.userselection.php 113 2006-03-08 18:08:42Z ema $
 */

class userSelection {


	function userSelection( $title = '' ) {
		if($title != '') echo '<div class="title">'.$title.'</div>';
	}
	
	function leftColum( $title, $element ) {
		//EFFECTS : construct the left colum with the array passed
		
		echo '<div class="user-colum-50">'."\n"
			.( ($title != '' ? $title : '' ) )."\n"
			.'<div class="user-selection-colum">'."\n";
		if(is_array($element)){
			$i = 0;
			foreach( $element as $key => $val ) {
				echo '<div class="color-line'.( !($i++%2) ? '' : '-alt').'">'.$val.'</div>'."\n";
			}
		}
		echo '</div>'."\n"
			.'</div>'."\n";
	}
	
	function rightColum( $title, $element ) {
		//EFFECTS : construct the right colum with the array passed
		
		echo '<div class="user-colum-50">'."\n"
			.( ($title != '' ? $title : '' ) )."\n"
			.'<div class="user-selection-colum">'."\n";
		if(is_array($element)){
			$i = 0;
			foreach( $element as $key => $val ) {
				echo '<div class="color-line'.( ($i++%2) ? '' : '-alt').'">'.$val.'</div>'."\n";
			}
		}
		echo '</div>'."\n"
			.'</div>'."\n";
	}
	
	function noFloat() {
		echo '<div class="no_float"></div>'."\n";
	}
}

?>
