![]() |
|
|
#26 | |
|
Архивный участник
Join Date: Mar 2006
Posts: 70
|
Quote:
|
|
|
|
|
|
#27 |
|
Архивный участник
Join Date: Mar 2006
Posts: 685
|
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. |
|
|
|
|
#28 |
|
Архивный участник
Join Date: Mar 2006
Posts: 685
|
AS promised :P
Also, moved from <?= to a echo, won't work for some otherwise. (Didn't for me.) Code:
<html> <head> <title><?php echo($CONFIG['title']); ?></title> <meta http-equiv="content-Type" content="text/html; charset=windows-1251"> <link rel="stylesheet" href="images/style.css" type="text/css"> </head> <body topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> <div align="center"> <table border="0" cellpadding="0" cellspacing="0" class="Style_10"> <tbody> <tr valign="top"> <td class=style_11 height="225"> <table> <tbody> <tr valign="top"> <td> <table class="Style_1" cellspacing="0" cellpadding="0" border="0" width="141"> <tbody> <tr align="middle" height="26"> <td class="Style_2"> <b><font color="#E10000"><?php echo($CONFIG['lang_day']); ?><?php echo($day); ?></font> <?php echo($ss_status); ?></b> </td> </tr> </tbody> </table> <table class="Style_3" cellspacing="0" cellpadding="0" width="141" border="0"> <tbody> <tr> <td></td> <td><img height="16" src="images/timeBox1.jpg" width="140" border="0"></td> <td></td> </tr> <tr> <td valign="bottom" rowspan="2"><img height="125" src="images/timeBox2.jpg" width="45" border="0"></td> <td><img src="images/image_eng/time<?php echo($day); ?>.jpg" width="140" height="139" border="0"></td> <td valign="bottom" rowspan="2"><img height="125" src="images/timeBox3.jpg" width="66" border="0"></td> </tr> <tr> <td><img height="12" src="images/timeBox4.jpg" width="140" border="0"></td> </tr> </tbody> </table> </td> <td> <table class="Style_4" cellspacing="0" cellpadding="0" width="200" border="0"> <tbody> <tr align="middle" bgcolor="#606d6f" height="17"> <td align="center" class="Style_12"><?php echo($time); ?></td> </tr> </tbody> </table> <table class="Style_5" cellspacing="0" cellpadding="0" border="0"> <tbody> <tr> <td class="Style_6"><img height="1" src="images/dot.gif" width="1" border="0">Dawn </td> <td class="Style_6"><img src="images/ssqbar2.gif" width="<?php echo($dawn_bar); ?>" height="9" border="0"> <?php echo($dawn_points); ?></td> </tr> <tr> <td colspan="2" height="7"></td> </tr> <tr> <td class="Style_6"><img STYLE="Style_7" height="1" src="images/dot.gif" width="1" border="0" />Dusk </td> <td class="Style_6"><img src="images/ssqbar1.gif" width="<?php echo($dusk_bar); ?>" height="9" border="0"> <?php echo($dusk_points); ?></td> </tr> </tbody> </table> <table cellspacing="0" class="Style_8" cellpadding="0" border="0" align="center"> <tbody> <tr> <td><img src="images/<?php echo($bongin1_img); ?>" width="85" height="86" border="0"></td> <td><img src="images/<?php echo($bongin2_img); ?>" width="85" height="86" border="0"></td> <td><img src="images/<?php echo($bongin3_img); ?>" width="85" height="86" border="0"></td> </tr> <tr> <td colspan="3"><div align="center" class="Style_9"><img height="16" src="images/bonginName.gif" width="258" border="0" ></div></td> </tr> </tbody> </table> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> </div> <!-- Powered By KIRALEX --> </body> </html> |
|
|
|
|
#29 |
|
Архивный участник
Join Date: May 2005
Posts: 979
|
its not working for me.. look
http://acc.elmoreden.net/7s/status.php instead of images there are http://acc.elmoreden.net/7s/images/image_%3C?=$CONFIG['lang']?>/time<?=$day?>.jpg maybe problem with php? edit: fixed. problem with php .. short_open_tag = On (must be - thx to GREENGHOST) |
|
|
|
|
#30 |
|
Архивный участник
Join Date: Aug 2005
Posts: 394
|
or just change <? to <?php which i prefer in any way since i like clean and optimized php codes in xhtml like tpuNIsher does as well prolly :-p
Also im anti <tbody> Anyway this is my whole script it was based to work with L2CP based sites but it shouldn't be hard to make it have a mind of it's own Enjoy. Вложения из исходного сообщения (сами файлы в копии отсутствуют): ssq_php_script.rar — 762842 байт |
|
|
|
|
#31 | |
|
Архивный участник
Join Date: May 2007
Posts: 86
|
Quote:
<tbody> tag is genereted when you save a web page with Firefox, IE, Opera... |
|
|
|
|
|