Вход Регистрация
Файл: gamele.ru/inc/mpr/6.php
Строк: 74
<?php
$sql 
mysql_query("SELECT * FROM `presents` WHERE `uid`='".$player['id']."' ORDER by `id` ASC");
echo
"<center><table class='infoblock2' cellspacing=0 cellpadding=0 border=0><tr><td class='left_top'></div></td><td class='center_top'></td><td class='right_top'></td></tr><tr><td class='left_middle'></td><td class='center_middle' style='width: 800px;'>";
echo
'<FIELDSET>
<LEGEND align=center><B><font color=gray>&nbsp;Подарки&nbsp;</font></B></LEGEND>
<table cellpadding="5" cellspacing="0" border="0" width="100%">
    <tr>
      <td><table cellpadding="0" cellspacing="4" border="0" width="100%">
        <tr>
         <td '
.((mysql_num_rows($sql)>0)?'align="center"':'').'><font class="freetxt">';
          if(
mysql_num_rows($sql)>0){
            
$i=0;
            echo
'<table cellpadding="2" cellspacing="0" border="0" width="100%">';
              while(
$row mysql_fetch_assoc($sql)) {
                  
$i++;
                  echo
'<td align="center"><img src="http://image.gamele.ru/presents/'.$row['present'].'.gif" width="100" height="100" onmouseover="tooltip(this,''.(($row['anonimus'])?'':'От <b>'.$row['from'].'</b>. ').$row['text'].'')" onmouseout="hide_info(this)" />';
                  if(
$row['open']==1)
                  {
                      echo
'<form method="post">
                      <input type="submit" class="invbut" value="Открыть">
                      <input type="hidden" name="post_id" value="54" />
                      <input type="hidden" name="fid" value="'
.$row['id'].'" />
                      <input type="hidden" name="vcode" value="'
.scode().'" />
                      </form>'
;
                    echo
'<form method="post">
                    <input type="hidden" name="vcode" value="2c98b40c44bc2be3113e2e3f38f627b6" />
                    <input type="button" class="invbut" value="Выкинуть" onclick="if (confirm ('
Вы действительно хотите выкинуть подарок?')) { form.submit(); }" />
                    </form>'
;
                  }
//                  echo'<br><input type="checkbox" name="510033" value="1" /></td>';
                  
if($i==6){
                      echo
'</tr>';
                      
$i=0;
                  }
              }
                 echo
'</table>';
          }else{
              echo
'<center>Подарков не найдено.</center>';
          }
          echo
'</font></td>
        </tr>
      </table></td>
    </tr>
  </table>
</fieldset>'
;
echo
"</div></td><td class='right_middle'></td></tr><tr><td class='left_bot'></td><td class='center_bot'></td><td class='right_bot'></td></tr>";
?>
<script>
CheckImage = function(id){
    var a = document.getElementById("present_"+id).style.borderColor;
    if(document.getElementById("present_"+id).style.borderColor == '#FFFFFF'){
        document.getElementById("present_"+id).style.borderColor = '#FF0000';
    }else{
        document.getElementById("present_"+id).style.borderColor = '#FFFFFF';
    }
}
</script>
Онлайн: 0
Реклама