#!/usr/bin/perl BEGIN { open(STDERR, '>> error.log'); } print "Content-type: text/html\n\n"; use DBI; $dbh = DBI->connect("DBI:mysql:database=alvigo:host=localhost", "alvigo", "8432ujre"); my $sth = $dbh->table_info; $sth->execute(); while (my @row = $sth->fetchrow_array ) { if ($row[2] eq "News") {$table_ok = 1} } if (!$table_ok) { print "creating db\n"; $dbh->do(< |; $dbh->disconnect; sub fdate { my ($ftime) = shift; my (undef, undef, undef, $wday, $wmonth, $wyear) = localtime($ftime); return sprintf "%02i.%02i.%04i", $wday, $wmonth+1, $wyear+1900; }
|; $allservs = $dbh->prepare("SELECT News_ID, Time, IP, Administrator, Message FROM News WHERE Lang=1 ORDER BY Time DESC LIMIT 5"); $allservs->execute; while(@st = $allservs->fetchrow_array) { $row_date=&fdate($st[1]); #if (length($st[4]) > 5) { $short_msg = substr($st[4], 5, length($st[4])-5) . " ..."; } if (length($st[4]) > 64) { $short_msg = substr($st[4], 0, 64) . " ..."; } else { $short_msg = $st[4]; } @b=split(//, $short_msg); foreach $a (@b) { #print $_; if ($a eq '*' && $wasb == 1) { $wasb=0; $a=''; } elsif ($a eq '*' && $wasb == 0) { $wasb=1; $a=''; } } # print @b; $short_msg=join('', @b); print qq|[$row_date]
$short_msg


|; } print qq|
 
About Company Activities R & D News Partners Contacts   English Version Russian Version Home Mail
Company
Company Management
Alvigo Ltd.
Alvigo-M
NIAP
Alvigo KS
PO Adamas
Alvigo Ukraine
Alvigo Uzbekistan
COMPANY IN BRIEF    

ALVIGO is a group of scientific and production companies, which are registered on the territory of the former Soviet Union - Russia, Ukraine, Uzbekistan and Estonia.

The main areas of the company's activities are:

  • Catalysts production.
  • Modernizing old technologies in the current chemical industry and developing new ones.
  • Cleaning of technological equipment from schlamms, containing the platinum group metals.
  • Jewelry production.

ALVIGO's strategic goal is to provide customers with high quality catalysts, scientific and technological services and new technologies.
Presently ALVIGO is the leader among catalysts producers in the CIS. Currently the company employs more than 1300 people, including highly skilled specialists in the field of catalysis and chemical technologies. We are proud of our accomplishments and of our employees who take every effort to contribute to success and development of the company.

© 2004 «ALVIGO» All rights reserved. Home Search Mail Site Map