Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Maintenance
Parašė kugeliux· 2009 Kov. 20 15:03:14
#1
Darau maintenancia bet iskilo beda noriu ,kad atvaizduotu taip
[lentele]-[lentele2]
o dabar man atvaizduoja taip
[lentele]
[lentele2]
kodas :
openside_header();
if (isset($_POST['cast_vote'])) {
$voteoption = $_POST['voteoption'];
$sql = dbquery("SELECT * FROM ".$db_prefix."ip_polls WHERE poll_id='$poll_id'");
$data = dbarray($sql);
$poll_ips = explode("|", $data['poll_ips']);
if (!in_array(USER_IP, $poll_ips)) {
array_push($poll_ips, USER_IP);
$poll_ips = implode("|", $poll_ips);
$result = dbquery("UPDATE ".$db_prefix."ip_polls SET poll_votes_$voteoption=poll_votes_$voteoption+1, poll_ips='$poll_ips' WHERE poll_id=$poll_id");
header("Location: ".FUSION_SELF.(FUSION_QUERY ? "?".FUSION_QUERY : ""));
}
}
$result = dbquery("SELECT * FROM ".$db_prefix."ip_polls ORDER BY poll_started DESC LIMIT 1");
if (dbrows($result) != 0) {
$data = dbarray($result);
$poll_title = $data['poll_title'];
$poll_ips = explode("|", $data['poll_ips']);
$poll_votes = 0;
for ($i=0; $i<=9; $i++) {
if ($data["poll_opt_".$i]) $poll_option[$i] = $data["poll_opt_".$i];
$poll_votes = $poll_votes + $data["poll_votes_".$i];
}
if (!in_array(USER_IP, $poll_ips) && $data['poll_ended'] == 0) {
$poll = ""; $i = 0; $num_opts = count($poll_option);
while ($i < $num_opts) {
$poll .= "<input type='radio' name='voteoption' value='$i'> $poll_option[$i]<br><br>\n";
$i++;
}
echo "<form name='voteform' method='post' action='".FUSION_SELF.(FUSION_QUERY ? "?".FUSION_QUERY : "")."'>
<b>$poll_title</b><br><br>
$poll<center><input type='hidden' name='poll_id' value='".$data['poll_id']."'>
<input type='submit' name='cast_vote' value='".$locale['PLAN_101']."' class='button'></center>
</form>\n";
} else {
$poll = ""; $i = 0; $num_opts = count($poll_option);
while ($i < $num_opts) {
$num_votes = $data["poll_votes_".$i];
$opt_votes = ($poll_votes ? number_format(100 / $poll_votes * $num_votes) : 0);
$poll .= "<div>".$poll_option[$i]."</div>
<div><img src='".THEME."images/pollbar.gif' alt='".$poll_option[$i]."' height='12' width='$opt_votes' class='poll'></div>
<div>".$opt_votes."% [".$num_votes." ".($num_votes == 1 ? $locale['PLAN_102'] : $locale['PLAN_103'])."]</div><br>\n";
$i++;
}
echo "<b>".$poll_title."</b><br><br>
$poll
<center>".$locale['PLAN_104'].$poll_votes."<br>
".$locale['PLAN_105'].showdate("shortdate", $data['poll_started']);
if ($data['poll_ended'] > 0) {
echo "<br>\n".$locale['PLAN_106'].showdate("shortdate", $data['poll_ended'])."\n";
}
$result = dbquery("SELECT * FROM ".$db_prefix."ip_polls");
if (dbrows($result) > 1) {
echo "<br><br><img src='".THEME."images/bullet.gif'>
<a href='".INFUSIONS."ip_poll_panel/ip_poll_archive.php' class='side'>".$locale['PLAN_107']."</a> <img src='".THEME."images/bulletb.gif'>\n";
}
echo "</center>\n";
}
} else {
echo "<center>".$locale['004']."</center>\n";
}
$result = dbquery("SELECT * FROM ".$db_prefix."atwork ORDER BY atwork_id");
if (dbrows($result) != 0) {
while ($data = dbarray($result)) {
$nazwa = trimlink($data['atwork_nazwa'], 25);
echo "
<span class='small'><b>".$data['atwork_id']."</b>. $nazwa </small>";include INFUSIONS."eXtreme_atwork_panel/procent.php";echo " :</small> ".$data['atwork_procenty']."%</small><br>";
if ($data[atwork_opis] <= "" ) {
echo "$nazwa";
}
echo "
\n";
}
} else {
echo "<span class='small'>".$locale['004']."</small>\n";
}
closeside_header();
Parašė bruzgis· 2009 Kov. 20 16:03:59
#2
daryk taip
<table><tr><td>
{lentele}
</td><td>
{lentele}
</tr></table>
Parašė bad_user· 2009 Kov. 20 16:03:31
#3
Geny tu, nekopink nuo RM minčių :}
Kaip iš pagarbos mano darbui, bukit geri nesakykit geniui kaip tai padaryti ;}
Redagavo bad_user· 2009 Kov. 20 16:03:12
Parašė Dandžu· 2009 Kov. 20 16:03:28
#4
Tai aišku jog nuo RM kopina. :D
Parašė kugeliux· 2009 Kov. 20 16:03:32
#5
song : cia tik maintenance panasus bus
Gal galit parasyt normaliai nes nesigauna
Redagavo kugeliux· 2009 Kov. 20 16:03:59
Parašė bad_user· 2009 Kov. 20 16:03:25
#6
Man nusišikt. Vistiek elgiesi kaip kiaulė. Iš manęs nuo šiol pagalbos sulauksi 0, o pagarbos juolab.
Parašė kugeliux· 2009 Kov. 20 16:03:44
#7
Jau nereike kitaip sugalvojau