PDA

View Full Version : سوال: تغییر در یک صفحه php



ehssan_it
پنج شنبه 05 مرداد 1391, 18:43 عصر
من کد صفحه php دارم که در فایر فاکس و ie به طور یکسان نمایش داده نمیشه

همچنین در فایر فاکس یک کادر اضافه به دور خودش ایجاد میکنه

( از ایم کدهاست که به صحه اضافه میشه تا یک سری اطلاعات در گوشه سایت نمایش بده )


<?php
require_once('../wp-load.php');
?>

<style>
table {direction: rtl; float: right; font-family: tahoma; font-size: 12px; }
.ttr {
height:20px; text-align:right;
background: rgba(230,217,17,.8);
}
.ttt {
height:20px; padding:0 10px 0 0;
}
.ttd {
height:20px; padding:0px; text-align:right;
}
.ttab {
background: rgba(255,255,255,.7); border-bottom-right-radius: 20px; border-bottom-left-radius: 20px; -moz-border-bottom-right-radius: 20px; -moz-border-bottom-left-radius: 20px; -webkit-border-bottom-right-radius: 20px; -webkit-border-bottom-left-radius: 20px; border: 1px solid rgba(0,0,0,.3);
}
</style>

<div>
<table class="ttab">
<tr><td colspan="4"><a href="http://jovein.com/oghat/" title="اوقات شرعي بر اساس محاسبات مركز تقويم كشور (موسسه ژئوفيزيك دانشگاه تهران) در سايت قرار داده شده است">اوقات شرعي امروز</a> ، <?php echo jdate ('l, j F , Y') ; ?>
</td></tr>
<tr class="ttr"><td>اذان به وقت &darr;</td><td>صبح</td><td>ظهر</td><td>مغرب</td></tr>
<?php
$month2 = jdate ('n') ;
$day2 = jdate ('j') ;
$result = mysql_query("SELECT * FROM neghab91 where month='".$month2."' and day='".$day2."'")//انتخاب از جدول
or die(mysql_error());
$row = mysql_fetch_array($result);
?>
<tr><td class="ttt"><strong>نقاب</strong></td><td class="ttd"><?php echo jdate($row['azan1']); ?></td><td class="ttd"><?php echo jdate($row['azan2']); ?></td><td class="ttd"><?php echo jdate($row['azan3']); ?></td></tr>
</tr>
<?php
$month2 = jdate ('n') ;
$day2 = jdate ('j') ;
$result = mysql_query("SELECT * FROM hokmabad91 where month='".$month2."' and day='".$day2."'")//انتخاب از جدول
or die(mysql_error());
$row = mysql_fetch_array($result);
?>
<tr><td class="ttt"><strong>حكم آباد</strong></td><td class="ttd"><?php echo jdate($row['azan1']); ?></td><td class="ttd"><?php echo jdate($row['azan2']); ?></td><td class="ttd"><?php echo jdate($row['azan3']); ?></td></tr>
</tr>
<?php
$month2 = jdate ('n') ;
$day2 = jdate ('j') ;
$result = mysql_query("SELECT * FROM barghamad91 where month='".$month2."' and day='".$day2."'")//انتخاب از جدول
or die(mysql_error());
$row = mysql_fetch_array($result);
?>
<tr><td class="ttt"><strong>برغمد</strong></td><td class="ttd"><?php echo jdate($row['azan1']); ?></td><td class="ttd"><?php echo jdate($row['azan2']); ?></td><td class="ttd"><?php echo jdate($row['azan3']); ?></td></tr></tr>
<?php
$month2 = jdate ('n') ;
$day2 = jdate ('j') ;
$result = mysql_query("SELECT * FROM bodaghabad91 where month='".$month2."' and day='".$day2."'")//انتخاب از جدول
or die(mysql_error());
$row = mysql_fetch_array($result);
?>
<tr><td class="ttt"><strong>بداغ آباد</strong></td><td class="ttd"><?php echo jdate($row['azan1']); ?></td><td class="ttd"><?php echo jdate($row['azan2']); ?></td><td class="ttd"><?php echo jdate($row['azan3']); ?></td></tr>
</table></div>

wallfa
پنج شنبه 05 مرداد 1391, 22:32 عصر
ربطی به پی اچ پی نداره در تالار اچ تی ام ال این موضوع نقد کنید .