Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 19.06.2007, 04:51   #27
tpuNIsher
Архивный участник
 
Join Date: Mar 2006
Posts: 685
Default

English version & check for if ssq is at preparation stage ( i think that's the code ):
Code:
if($status == "0"){
$ss_status = "Preparation";
$day_effect = mssql_result($result_date, 0, 0);
$day_event = mssql_result(mssql_query("SELECT TOP 1 DATEDIFF(dd,(DATEADD(s, $day_effect, '19700101')) , getdate()) FROM [ssq_data]"), 0, 0); //День
$day = $day_event;
}

if($status == "1"){
$ss_status = "Competition";
$day_effect = mssql_result($result_date, 0, 0);
$day_event = mssql_result(mssql_query("SELECT TOP 1 DATEDIFF(dd,(DATEADD(s, $day_effect, '19700101')) , getdate()) FROM [ssq_data]"), 0, 0); //День
$day = $day_event+1;
}

if($status == "2"){
$ss_status = "Calculation";
$day_effect = mssql_result($result_date, 0, 0);
$day_event = mssql_result(mssql_query("SELECT TOP 1 DATEDIFF(dd,(DATEADD(s, $day_effect, '19700101')) , getdate()) FROM [ssq_data]"), 0, 0); //День
$day = $day_event;
}

if($status == "3"){
$ss_status = "Seal Effect";
$day_effect = mssql_result($result_date, 0, 1);
$day_event = mssql_result(mssql_query("SELECT TOP 1 DATEDIFF(dd,(DATEADD(s, $day_effect, '19700101')) , getdate()) FROM [ssq_data]"), 0, 0); //День
$day = $day_event +7;
}
$CONFIG['lang_day'] = "Day ";

Also, i think better change from caps to small letters :P blows away xhtml validity :P

Edit: i'll do it and paste in a bit.
tpuNIsher is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 19:20.