fetchRecords( 'ISService' , "SELECT id,title FROM is_service ORDER BY cardinality" );
## image rotation code
$img_path = 'bin/home/';
$dir = $_SERVER['DOCUMENT_ROOT'].'/'.$img_path;
$n=0;
$list='';
$first_file = '';
if ( is_dir($dir) ) {
if ($dh = opendir($dir) ) {
while (($file = readdir($dh)) !== false) {
// only files, no directories or dot files
if( substr($file,0,1)!='.' && !is_dir($dir.$file) ) {
$first_file = (empty($first_file)?$file:$first_file);
$list .= "\n\t\t";
$list .= 'if (n=='.$n.') img.src="'.$img_path.$file.'";';
++$n;
}
}
closedir($dh);
}
}
$list .= "\n";
include("header.inc.php5");
?>
 |
|
';
$content = new ISContent( 'services main' );
echo( $content->contentForWeb() );
?>
|
|
|
contentForWeb() );
?>
|