Jump to content
MakeWebGames

cirilobr

Members
  • Posts

    7
  • Joined

  • Last visited

Everything posted by cirilobr

  1. solved ;P thx echo "<table class='plainTable'>"; $result = $db->Execute("select crime_id,name,description,condition_code,success_rate,stat_cost,jail_time,crime_pic from crimes order by crime_id"); $i = 1; $numofcols = 2; foreach ($result as $row) { if( $i % $numofcols == 1 ){ echo "<tr valign='top'>"; } $res = true; if ($row[3] != null && $row[3] != "") $res = NWEval("return {$row[3]};"); if ($row[5] > $userStats[GetConfigValue("CrimeStatCost", "crime")]->value) $res = false; echo "<td width='1%'>"; echo "<img src='$row[7]'/>"; echo "</td>"; $perc = 100; if ($row[4] != null && $row[4] != "") $perc = round(NWEval("return {$row[4]};") * 100.0, 0); if ($perc > 100) $perc = 100; echo "<td><b>" . Translate($row[1]) . ":</b><br>" . Translate($row[2]) . "<br>"; echo Translate("Success rate") . ": $perc%<br>" . Translate("Cost") . ": {$row[5]}"; LinkButton("Do it", "index.php?p=crime&id={$row[0]}", null, null, false, $res); echo "</td>"; if( $i % $numofcols == 0) { echo '</tr>'; //Close Row. } $i = $i + 1; } if( ($i % $numofcols) > 0){ echo '</tr>'; } $result->Close(); echo "</table>";
  2. maybe i can resolve this with div float:left?
  3. i am "trying" to do... ;ppp i want show the crimes side by side and i added image to the crimes...
  4. sorry dude, i am newbie on this, if you can explain better to me... I wore mccodes for much time, but with nw engine i am not understanding too much and sorry for my english, i am from br .-.
  5. Hi, i'm trying to show the crimes side by side in two column like: Crime1 Crime2 in the engine show: Crime1 Crime2 the code is:   TableHeader("Crimes"); echo "<table class='plainTable'>"; $result = $db->Execute("select crime_id,name,description,condition_code,success_rate,stat_cost,jail_time,crime_pic from crimes order by crime_id"); foreach ($result as $row) { echo "<tr valign='top'>"; $res = true; if ($row[3] != null && $row[3] != "") $res = NWEval("return {$row[3]};"); if ($row[5] > $userStats[GetConfigValue("CrimeStatCost", "crime")]->value) $res = false; echo "<td width='1%'>"; echo "<img src='$row[7]'/>"; echo "</td>"; $perc = 100; if ($row[4] != null && $row[4] != "") $perc = round(NWEval("return {$row[4]};") * 100.0, 0); if ($perc > 100) $perc = 100; echo "<td><b>" . Translate($row[1]) . ":</b><br>" . Translate($row[2]) . "<br><br>"; echo Translate("<font color='green'><b>Success rate") . ": $perc%</b></font><br>" . Translate("<font color='red'><b>Cost") . ": {$row[5]}</b></font><br>"; LinkButton('Do it', 'index.php?p=crime&id={$row[0]}', null, null, false, $res); echo "</td>"; echo "</tr>"; } $result->Close(); echo "</table>";   how to do this? thx guys
  6. Thx guys, solved Just allow url fopen 1 in file
  7. hi guys, im getting this error when i try access the admin panel Error: readfile() [function.readfile]: URL file-access is disabled in the server configuration Error in /public_html/modules/admin_panel/content.php Line 182 Error in /public_html/modules/admin_panel/content.php Line 182 Error in /public_html/libs/common.php Line 554 Error in /public_html/index.php Line 328 someone know what is this? thx
×
×
  • Create New...