Location: PHPKode > projects > Php simple acces data mysql > phpsimpledb_v2/manage/projets/index.php
<?php
	include_once( '../../includes/prepend.php' );

	//recherche la liste des projets
	$oAllProjects = $oFramework->oProjets->getAllProjectList();
	
	$sTableProjects = '';
	if( count( $oAllProjects ) > 0 ){
		$sTableProjects = '<table border="0" width="100%" class="table_list">';
		$sTableProjects .= '<tr><th>'.strtoupper( $oLang[ 'nom' ] ).'</th>'.
			'<th>'.strtoupper( $oLang[ 'serveur' ] ).'</th>'.
			'<th>'.strtoupper( $oLang[ 'bdd' ] ).'</th>'.
			'<th colspan="2">'.strtoupper( $oLang[ 'modfier_le' ] ).'</th></tr>';
		$iClass = 1;
		for( $i = 0; $i < count( $oAllProjects ); $i++ ){
			$sTableProjects .= '<tr class="table_list_tr'.$iClass.'">'.
				'<td width="150"><a href="detail/index.php?tag='.$oAllProjects[ $i ]->tag.'" class="btn_modifier">'.$oAllProjects[ $i ]->name.'</a></td>'.
				'<td>'.$oAllProjects[ $i ]->bddServer.'</td>'.
				'<td width="200">'.$oAllProjects[ $i ]->bddBdd.'</td>'.
				'<td align="center" width="100px">'.( $oAllProjects[ $i ]->datem == '' ? $oAllProjects[ $i ]->datec : $oAllProjects[ $i ]->datem ).'</td>'.
				'<td width="16"><img src="'.AUTO_URL_BASE.'templates/'.TEMPLATE_NAME.'/images/btn_delete.png" style="border:none;cursor:pointer;" onclick="if( confirm( \''.$oLang[ 'confirm_del_projet' ].'\' ) ){ window.location.href = \'delete/index.php?act=delete&tag='.$oAllProjects[ $i ]->tag.'\'; }"/></td>'.
			'</tr>';
			$iClass++;
			if( $iClass > 2 ){ $iClass = 1; }
		}
		$sTableProjects .= '</table>';
	}
	$sTableProjects .= '<br/><a href="nouveau/index.php" class="btn_ajouter">'.strtoupper( $oLang[ 'nouveau_projet' ] ).'</a>';
	
	$oTemplate->assign( 'body', '<h1>'.ucfirst( $oLang[ 'liste_des_projets' ] ).' :</h1>'.$sTableProjects );
	$oTemplate->clear_cache('index.html');
	$oTemplate->display('index.html');
?>
Return current item: Php simple acces data mysql