Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Laužta eilutė be <br/>

Parašė Narysx· 2008 Bir. 17 23:06:28
#11

Tai ten taip ir yra. Va visas kodas:

echo "<table align='center' cellpadding='0' cellspacing='1' width='400' class='tbl-border'>
<tr>
<td width='1%' class='tbl1' style='white-space:nowrap'><b>Įspėjimai:</b></td>

<td class='tbl1'>"; if ($data['user_level'] == 101) {
echo "<img src='".IMAGES."warns/$warns.gif' alt='".$locale['warns_04']." $warns ".$locale['warns_05']."' title='".$locale['warns_04']." $warns ".$locale['warns_05']."' border='0' style='padding-bottom:5px;'><br>";
}
echo "</td>

</tr>
<tr>
<td width='1%' class='tbl2' style='white-space:nowrap'><b>Vartotojų įvertinimas:</b></td>
<td class='tbl2'>"; $v = 0;
   $result = dbquery("SELECT * FROM ".$db_prefix."user_ratings WHERE rate_subject = '$lookup'");
   while ($datax = dbarray($result)) $v = $v+$datax['rate_opt'];
   $res = $v;
   $vert = (dbrows($result) != 0 ? round($res/dbrows($result),2) : "");
   $rdata = dbarray(dbquery("SELECT * FROM ".$db_prefix."user_ratings WHERE rate_subject = '$lookup' ORDER BY rate_date DESC LIMIT 1"));
   echo "$vert.";
   if (iMEMBER) {
      if (!dbcount("(*)","user_ratings","rate_user = '".$userdata['user_id']."' AND rate_subject = '$lookup'")) {
         echo " <form method='post' action='".FUSION_SELF."?lookup=$lookup'><select name='rating' class='textbox'>";
         for ($i = 1; $i < 11; $i++) echo "<option value='$i'>$i</option>";
         echo "</select> <input name='rate' type='submit' value='Vertinti' class='textbox'></form>";
}
   }
echo "</td>
</tr>
</table>\n";



Redagavo Narysx· 2008 Bir. 17 23:06:40