Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 18.06.2007, 19:43   #26
katso
Архивный участник
 
Join Date: Mar 2006
Posts: 70
Default

Quote:
Originally Posted by kepler001 View Post
http://peru.sytes.net:8000/ssq/status.php
very thanks Its perfect DDDDD
Thanks friends
Yes, 100% agree, thanks, very thanks.
katso is offline  
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  
Old 19.06.2007, 05:09   #28
tpuNIsher
Архивный участник
 
Join Date: Mar 2006
Posts: 685
Default

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>
And copy the contents of img_eng to main images dir.
tpuNIsher is offline  
Old 20.08.2007, 23:44   #29
rodier
Архивный участник
 
Join Date: May 2005
Posts: 979
Default

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)
rodier is offline  
Old 21.08.2007, 09:29   #30
Phantom2005
Архивный участник
 
Join Date: Aug 2005
Posts: 394
Default

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 байт
Phantom2005 is offline  
Old 21.08.2007, 09:43   #31
emanuel
Архивный участник
 
Join Date: May 2007
Posts: 86
Default

Quote:
Originally Posted by Phantom2005 View Post
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.

<tbody> tag is genereted when you save a web page with Firefox, IE, Opera...
emanuel is offline  
 


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 17:20.