Mah
چهارشنبه 25 آذر 1388, 19:25 عصر
سلام .
من يك صفحه دارم كه در FF به هم مي ريزه .
اگر صفحه را با Crtl+F5 رفرش كنم . مشكل حل ميشه .
در IE هم مشكلي ندارم .
چكار كنم تا صفحه از ابتدا درست نمايش داده شود .؟؟؟؟
لطفا كمك كنيد .
afshin9032
چهارشنبه 25 آذر 1388, 22:01 عصر
كد بزار با تصوير كه نمي شه :افسرده:
Mah
پنج شنبه 26 آذر 1388, 08:04 صبح
من در داك تايپ XHTML v 1.0 را استفاده كردم .
شايد بايد از 1.1 استفاده مي كردم .
ولي من كه مورد خاصي در كدم نمي بينم .
روي IE هم درست جواب مي ده !
البته : هميشه كسي كه كد مي نويسه خيلي از معايب را نمبينه .
به نظر شما چرا با رفرش مشكل حل مي شه .؟
اين هم كد صفحه :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ليست درخواستهاي بيمه شخص ثالث - بيمه ICT</title>
<link href="../style.css" rel="stylesheet" type="text/css" />
</head>
<body dir="rtl" onload="init();MM_preloadImages('../img/bt_rev2.jpg')" >
<table border="1" dir="rtl" align="center" width="1000" style="background:url(../img/BottomVector.jpg) bottom left no-repeat;width:900px;height:500px;border:inset #003366;" >
<tr>
<td style="background:url(../img/topVector2.jpg) top right no-repeat;">
<table width="992" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="height:70px;width:130px"><div align="right">
<a href="account.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image5','','../img/bt_rev2.jpg',1)"><img src="../img/bt_rev.jpg" alt="بازگشت" name="Image5" border="0" id="Image5" />
<br />
بازگشت</a></div></td>
<td style="height:70px;"> </td>
</tr>
<tr>
<td align="right" width="130" style="width:130px;height:60px;">
<span dir="rtl" style="font-family:'Traditional Arabic';font-size:18px;color:#003399;font-weight:700;">نرم افزار بيمه ICT</span><br />
<font color="#000000" size="1">نسخه آزمايشي 1.0</font><br />
مجري : مصطفي احمدي<br />
به سفارش <strong>شرکت بيمه نوين</strong> (شعبه استان سمنان) </td>
<td align="right"> </td>
</tr>
<tr>
<td > </td>
<td class="Headder2"><div align="right">درخواستهاي جديد </div></td>
</tr>
<tr>
<td class="Header1">بيمه شخص ثالث : </td>
<td>
<table width="100%" border="1" cellspacing="0" cellpadding="0" id="tbReq">
<!--
<tr class="TbHead">
<td>عمليات</td>
<td>شماره</td>
<td>تاريخ درخواست</td>
<td>نام متقاضي</td>
<td>شغل</td>
<td>کد ملي</td>
<td>شماره شناسنامه</td>
<td>صادره</td>
<td>سال تولد</td>
<td>تلفن</td>
<td colspan="6" >آدرس</td>
</tr>
-->
<?php
require('../readfile.php');
$conn=mysql_connect($ServerName,$UserName,$Passwor d) or die(" Server Connection Failed .");
mysql_select_db($DbName,$conn) or die("Data base Connection Failed .");
$result=mysql_query("SET CHARACTER SET utf8", $conn);
$result=mysql_query("SET NAMES utf8_persian_ci", $conn);
//$q1='SELECT NameReq, Job, NumMeli, Sh_Sh, YearBirth, Address, Telphone, DateReq, IDSalesReq, Sadere FROM tbsalesreq ';
$q1="Select * FROM tbsalesreq where readReq !=-1;";
$result=mysql_query($q1, $conn);
$row="";
while( $row=mysql_fetch_assoc($result) )
{
$id=$row['IDSalesReq'];
?>
<tr class="TbHead">
<td style="width:58px;height:40px;">عمليات</td>
<td style="width:58px;height:40px;">کاربر</td>
<td style="width:58px;height:40px;">شماره</td>
<td style="width:58px;height:40px;">تاريخ درخواست</td>
<td style="width:58px;height:40px;">نام متقاضي</td>
<td style="width:58px;height:40px;">شغل</td>
<td style="width:58px;height:40px;">کد ملي</td>
<td style="width:58px;height:40px;">شماره شناسنامه</td>
<td style="width:58px;height:40px;">صادره</td>
<td style="width:58px;height:40px;">سال تولد</td>
<td style="width:58px;height:40px;">تلفن</td>
<td style="width:240px;height:40px;" colspan="9" >آدرس</td>
<td style="width:58px;height:40px;">وضعیت</td>
</tr>
<tr id="tr<?php print($id);?>" class='TR<?php print($id%2);?>' >
<td style="width:58px;height:40px;"><!--<input type="button" value="خواندن" onclick="" class='TR<?php print(($id+1)%2); ?>'><br /><br />--><a href="javascript:showFull(<?php print($id); ?>)">مشاهده و ثبت</a></td>
<td style="width:58px;height:40px;"><?php print($row['NameUser']); ?></td>
<td style="width:58px;height:40px;"><?php print($row['IDSalesReq']); ?></td>
<td style="width:58px;height:40px;"><?php print($row['DateReq']); ?></td>
<td style="width:58px;height:40px;"><?php print($row['NameReq']); ?></td>
<td style="width:58px;height:40px;"><?php print($row['Job']); ?></td>
<td style="width:58px;height:40px;"><?php print($row['NumMeli']); ?></td>
<td style="width:58px;height:40px;"><?php print($row['Sh_Sh']); ?></td>
<td style="width:58px;height:40px;"><?php print($row['Sadere']); ?></td>
<td style="width:58px;height:40px;"><?php print($row['YearBirth']); ?></td>
<td style="width:58px;height:40px;"><?php print($row['Telphone']); ?></td>
<td style="width:240px;height:40px;" colspan="9" ><?php print($row['Address']); ?></td>
<td style="width:58px;height:40px;" ><?php if($row['readReq']==0) echo "بررسی نشده ."; else echo $row['readReq']." بار بررسی شده . "; ?></td>
</tr>
<?php
// }
?>
<tr class="TbHead" >
<td style="width:44px;height:40px;">نوع خودرو</td>
<td style="width:44px;height:40px;">سيستم</td>
<td style="width:44px;height:40px;">ظرفيت</td>
<td style="width:25px;height:40px;">سيلندر</td>
<td style="width:44px;height:40px;">پلاک</td>
<td style="width:44px;height:40px;">سريال پلاک</td>
<td style="width:44px;height:40px;">شماره موتور</td>
<td style="width:44px;height:40px;">شماره شاسي</td>
<td style="width:44px;height:40px;">رنگ</td>
<td style="width:44px;height:40px;">مورد استفاده</td>
<td style="width:44px;height:40px;">سال ساخت</td>
<td style="width:44px;height:40px;">يدک</td>
<td style="width:44px;height:40px;">شماره بيمه نامه قبلي</td>
<td style="width:44px;height:40px;">تاريخ انقضاء بيمه نامه</td>
<td style="width:44px;height:40px;">دفعه خسارت</td>
<td style="width:44px;height:40px;">جاني</td>
<td style="width:44px;height:40px;">مالي</td>
<td style="width:44px;height:40px;">درمان پزشکي</td>
<td style="width:44px;height:40px;">نقص عضو</td>
<td style="width:44px;height:40px;">Email</td>
<td style="width:44px;height:40px;">هزينه کلي</td>
</tr>
<tr id="tr2<?php print($id); ?>" class='TR<?php print($id%2);?>'>
<td style="width:44px;height:40px;"><?php print($row['NoeKhodro']); ?></td>
<td style="width:44px;height:40px;"><?php print($row['System']); ?></td>
<td style="width:44px;height:40px;"><?php print($row['Zarfiat']); ?></td>
<td style="width:25px;height:40px;"><?php print($row['Sylandr']); ?></td>
<td style="width:44px;height:40px;"><?php print($row['Pelak']); ?></td>
<td style="width:44px;height:40px;"><?php print($row['PelakSerial']); ?></td>
<td style="width:44px;height:40px;"><?php print($row['NumMotor']); ?></td>
<td style="width:44px;height:40px;"> <?php print($row['Shasi']); ?></td>
<td style="width:44px;height:40px;"><?php print($row['Color']); ?></td>
<td style="width:44px;height:40px;"><?php print($row['Estefade']); ?></td>
<td style="width:44px;height:40px;"><?php print($row['YearSakht']); ?></td>
<td style="width:44px;height:40px;"><?php if($row['Yadak']==1) print('دارد'); else print('ندارد'); ?></td>
<td style="width:44px;height:40px;"><?php print($row['NumBimeName']); ?></td>
<td style="width:44px;height:40px;"><?php print($row['DateExp']); ?></td>
<td style="width:44px;height:40px;"><?php print($row['NumKhesarat']); ?></td>
<td style="width:44px;height:40px;"><?php print($row['Jani']); ?></td>
<td style="width:44px;height:40px;"><?php print($row['Mali']); ?></td>
<td style="width:44px;height:40px;"><?php print($row['Pezeshki']); ?></td>
<td style="width:44px;height:40px;"><?php print($row['NaghsOzv']); ?></td>
<td style="width:44px;height:40px;"><?php print($row['EMail']); ?></td>
<td style="width:44px;height:40px;"><?php print($row['Hazine']); ?></td>
</tr>
<?php
}
/*
}
mysql_close($conn);
*/
?>
</table> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td class="Headder2">کل درخواستها: </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><label for="imgAzCal">از تاريخ :
<input name="txtAzDate" type="text" id="txtAzDate" dir="ltr" readonly="readonly" /></label>
<img src="../img/cal.png" name="imgAzCal" width="22" height="22" id="imgAzCal" />
<script type="text/javascript">
Calendar.setup({
inputField : "txtAzDate", // id of the input field
button : "imgAzCal", // trigger for the calendar (button ID)
ifFormat : "%Y/%m/%d", // format of the input field
dateType : 'jalali',
weekNumbers : false
});
</script> </td>
<td><label for="imgTaCal">تا تاريخ :
<input name="txtTaDate" type="text" id="txtTaDate" dir="ltr" readonly="readonly" /></label>
<img src="../img/cal.png" name="imgTaCal" width="22" height="22" id="imgTaCal" />
<script type="text/javascript">
Calendar.setup({
inputField : "txtTaDate", // id of the input field
button : "imgTaCal", // trigger for the calendar (button ID)
ifFormat : "%Y/%m/%d", // format of the input field
dateType : 'jalali',
weekNumbers : false
});
</script> </td>
<td><label for="txtRahCode">کد رهگيري:</label>
<input name="txtRahCode" dir="ltr" style="color:#cdcdcd;" type="text" id="txtRahCode" onfocus="if(this.value=='کد رهگيري') {this.value=''; this.style.color='#000000';} else this.style.color='#CDCDCD';" onblur="if(this.value==''){ this.value='کد رهگيري';this.style.color='#CDCDCD';}else this.style.color='#000000';" value="کد رهگيري" /> </td>
<td><label for="chnewWin">نتيجه در پنجره جديد نمايش داده شود .</label><input name="chnewWin" type="checkbox" id="chnewWin" value="newWin" /></td>
<td><input name="btnLsSales" type="button" class="Btn" id="btnLsSales" value="بگرد" onclick="FindSales();" /></td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2"><div id="lListAll"></div></td>
</tr>
<tr>
<td colspan="2" align="right">
<div align="right">
<a href="account.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('img5','','../img/bt_rev2.jpg',1)"><img src="../img/bt_rev.jpg" alt="بازگشت" name="img5" border="0" id="img5" />
<br />
بازگشت</a></div> </td>
</tr>
<tr>
<td></td>
<td align="left" dir="ltr"><div align="left" >CopyRight©<strong>MahGroup</strong> Ltd Co.<br />
<a href="mailto:#">Mail to Me</a><br />
Requirment : <strong>PHP</strong> 4.0,<strong>MySQL</strong> 4.0 .<br />
with <strong>Ajax</strong> Technology .<br />
This online <strong>Hispeed</strong> web software.</div></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
vBulletin® v4.2.5, Copyright ©2000-1404, Jelsoft Enterprises Ltd.