<!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 content="en-us" http-equiv="Content-Language" />
<meta content="text/html; charset=utf8" http-equiv="Content-Type" />
<link href="radif.css" rel="stylesheet" type="text/css" />
<title>AdmiN PaneL</title>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
var result =0;
function ajax(str)
{
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
result =xmlhttp.responseText;
}
}
xmlhttp.open("GET","ajax.php?id="+str,true);
xmlhttp.send();
}
function ch(obj)
{
if(obj.value==1)
{
var w = confirm("are you sure?");
if(w)
{
var a = $(obj).attr('id');
ajax(a);
$('tr#'+a).fadeOut('slow', function() {
$('tr#'+a).css('display','none');
});
}
else
{
obj[0].selected=true;
}
}
}
$(document).ready(function() {
$('#logout').bind("mousemove",function(event){
$(this).css("color","gray");});
$('#logout').bind("mouseout",function(event){
$(this).css("color","silver");});
});
</script>
<style type="text/css">
.panel{
border:1px silver solid;
height:21px;
color:gray;
vertical-align:top;
margin-left:3px;
text-align:left;
}
.panel a{
font-family:Tahoma;
font-size:8pt;
color:gray;
vertical-align:middle;
text-decoration:none;
margin-left:5px;
}
.panel a:hover{
text-decoration:underline;
}
.space{
margin-top:25px;
}
.style1 {
font-family: Tahoma;
font-size: 8pt;
color:green;
vertical-align: middle;
}
.st1{
background-color:aqua;
}
</style>
</head>
<body>
<div class="panel">
<a href="#">تماس با ما</a>
|
<a href="#" id="update" >بروز رسانی</a>
|
<a href="#" style="color:silver;" id="logout" title="LogOut">خروج</a>
|
<a href="#"><span class="style1">AdmiN1</span></a>
</div>
<div class="space"></div>
<div style="border:1px silver solid;color:gray;">
<form name="userfrm" action="user-sabt.php" method="post" id="userfrm">
<table align="center" class="datatable">
<caption dir="rtl">ليست اعضا تایید نشده</caption>
<tr id="title">
<td style="background-color:silver;width:60px;height:10px;text-align:center;" scope="col">نام</td>
<td style="background-color:silver;width:80pt;text-align:center;" scope="col">نام خانوادگی</td>
<td style="background-color:silver;width:60px;text-align:center;" scope="col">نام پدر</td>
<td style="background-color:silver;width:auto;text-align:center;" scope="col">جنسیت</td>
<td style="background-color:silver;width:65px;text-align:center;" scope="col">ش.شناسنامه</td>
<td style="background-color:silver;width:65px;text-align:center;" scope="col">ش.ملی</td>
<td style="background-color:silver;width:auto;text-align:center;" scope="col">ت.تولد</td>
<td style="background-color:silver;width:100px;text-align:center;" scope="col">رشته تحصیلی</td>
<td style="background-color:silver;width:auto;text-align:center;" scope="col">مقطع تحصیلی</td>
<td style="background-color:silver;width:auto;text-align:center;" scope="col">پست الکترونیک</td>
<td style="background-color:silver;width:auto;color:red;text-align:center;" scope="col">ش.دانشجویی</td>
<td style="background-color:silver;width:70px;color:red;text-align:center;" scope="col">ش.فیش</td>
<td style="background-color:silver;width:auto;text-align:center;" scope="col">تغییرات</td>
</tr>
<?php
$link = mysql_connect("localhost","csa_admin","admin");
if(!$link)
{
die('not connect'.mysql_error());
}
if(!mysql_select_db('admin_csauserinfo',$link))
echo "db selector error";
mysql_query("SET NAMES 'utf8'",$link);
$result = mysql_query("select * from information where accept='0'");
$num = mysql_num_rows($result);
while($rows=mysql_fetch_array($result))
{
echo "<tr bgcolor='#FFCC66' id='$rows[username]'>";
echo "<td>".$rows['fname']."</td>";
echo "<td>".$rows['lname']."</td>";
echo "<td>".$rows['father_name']."</td>";
echo "<td>".$rows['sex']."</td>";
echo "<td>".$rows['id_num']."</td>";
echo "<td>".$rows['id_melli']."</td>";
echo "<td>".$rows['date_birth']."</td>";
echo "<td>".$rows['reshteh_name']."</td>";
echo "<td>".$rows['degree']."</td>";
echo "<td>".$rows['email']."</td>";
echo "<td>".$rows['username']."</td>";
echo "<td>";
echo "<select name='fish' id='fish'>";
echo "<option value=''></option>";
mysql_query("SET NAMES 'utf8'",$link);
$result2 = mysql_query("select * from fish where username='$rows[username]'");
while($rows2=mysql_fetch_array($result2))
{
echo "<option value=''>$rows2['fishnum']</option>";
}
echo "</select";
echo "</td>";
echo "<td>";
echo "<select name='change' id='$rows[username]' onclick='ch(this);' style='font-family:Tahoma;font-size:8pt;direction:rtl;text-align:center;'>";
echo "<option> </option>";
echo "<option value='1'>فعال کردن</option>";
echo "<option value='2'>نامعتبر بودن</option>";
echo "</select>";
echo "</td>";
echo "</tr>";
}
?>
<tr id="foter">
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
</form>
</div>
</body>
</html>
این مشکلش کجاست ؟