Changeset 685 for trunk/pages


Ignore:
Timestamp:
Jan 23, 2010, 9:50:48 PM (15 years ago)
Author:
george
Message:
  • Opraveno: Resetování xp a pozice.
Location:
trunk/pages
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/pages/admin_finance_modify.php

    r583 r685  
    2323$operace = $operace_obracene[$oper];
    2424
    25    $upravit_money = $db->query("update finance set money='$money' where id='$id2'");
    26    $upravit_operace = $db->query("update finance set operation='$operace' where id='$id2'");
    27    $upravit_popis = $db->query("update finance set description='$popis' where id='$id2'");
    28    $upravit_odmenu = $db->query("update finance set odmena='$odmena' where id='$id2'");
     25   $upravit_money = $db->query("update Finance set Money='$money' where Id='$id2'");
     26   $upravit_operace = $db->query("update Finance set Operation='$operace' where Id='$id2'");
     27   $upravit_popis = $db->query("update Finance set Description='$popis' where Id='$id2'");
     28   $upravit_odmenu = $db->query("update Finance set Reward='$odmena' where Id='$id2'");
    2929   
    3030   if($upravit_money and $upravit_operace and $upravit_popis and $upravit_odmenu):
     
    4747$db -> select_db($Config['Database']['Database']);
    4848
    49 $load_money = $db -> query("SELECT SUM(`money`) FROM `finance`;") -> fetch_array();
     49$load_money = $db -> query("SELECT SUM(`Money`) FROM `Finance`;") -> fetch_array();
    5050
    5151echo"<p><strong>Aktuální stav financí: ".$load_money[0]." Kč</strong></p>";
     
    5656      <th>Suma</th>
    5757      <th>Popis</th>
    58           <th>Odměna</th>
    59           <th>&nbsp;</th>
     58    <th>Odměna</th>
     59    <th>&nbsp;</th>
    6060    </tr> 
    6161";
    62 $load_dotation = $db -> query("SELECT * FROM `finance` ORDER BY `id` DESC;");
     62$load_dotation = $db -> query("SELECT * FROM `Finance` ORDER BY `Id` DESC;");
    6363  while ($row = $load_dotation -> fetch_array())
    6464  {
    65   $id = $row['id'];
     65  $id = $row['Id'];
    6666 
    67     if ($row["time"] != "")
     67    if ($row["Time"] != "")
    6868    {
    6969     
    7070      //$date = $server -> HumanDate ($row["time"],0);
    71       $date = $row["time"];
     71      $date = $row["Time"];
    7272    }
    7373    else
     
    7575      $date = "";
    7676    }
    77     if($row["money"] > 0)
     77    if($row["Money"] > 0)
    7878    {$plus = "+";} else{$plus = "";}
    79        
    80         if($id != $id_upravit):
     79 
     80  if($id != $id_upravit):
    8181    echo "
    8282      <tr>
    8383        <td align=\"center\">".$date."</td>
    84         <td align=\"center\">".$plus.$row["money"]."</td>
    85         <td align=\"left\">".$operace[$row["operation"]]." ".$row["description"]."</td>
    86                 <td align=\"center\">".$row["odmena"]."</td>
    87                 <form method=post><td align=\"center\" valign=\"middle\"><input type=hidden name='id_upravit' value='$id'><input type=submit value='Upravit'></form></td>
     84        <td align=\"center\">".$plus.$row["Money"]."</td>
     85        <td align=\"left\">".$operace[$row["Operation"]]." ".$row["Description"]."</td>
     86    <td align=\"center\">".$row["Reward"]."</td>
     87    <form method=post><td align=\"center\" valign=\"middle\"><input type=hidden name='id_upravit' value='$id'><input type=submit value='Upravit'></form></td>
    8888      </tr> 
    8989    ";
    90         else:
    91         $oper = $row["operation"];
    92         if($operace[$oper]=="Nákup"):
     90  else:
     91  $oper = $row["Operation"];
     92  if($operace[$oper]=="Nákup"):
    9393   $option =
    9494   "<option value=\"buy\">Nákup
     
    127127   
    128128   endif;
    129           echo "
    130          
    131         <tr><form method=post action=\"?page=admin_finance_modify&q=1\"> <input type=hidden name=id value='$id'>
     129    echo "
     130   
     131  <tr><form method=post action=\"?page=admin_finance_modify&q=1\"> <input type=hidden name=id value='$id'>
    132132        <td align=\"center\">".$date."</td>
    133             <td align=\"center\"><input type=text name=money value=".$row["money"]." size=4></td>
    134         <td align=\"left\"><select name=operace>$option</select><input type=text name=popis value='".$row["description"]."'></td>
    135                  <td align=\"center\"><input type=text name=odmena value='".$row["odmena"]."'></td>
    136                 <td align=\"center\" valign=\"middle\"><input type=hidden name=id value='$id'><input type=submit value='Upravit'></td>
     133      <td align=\"center\"><input type=text name=money value=".$row["Money"]." size=4></td>
     134        <td align=\"left\"><select name=operace>$option</select><input type=text name=popis value='".$row["Description"]."'></td>
     135     <td align=\"center\"><input type=text name=odmena value='".$row["Odmena"]."'></td>
     136    <td align=\"center\" valign=\"middle\"><input type=hidden name=id value='$id'><input type=submit value='Upravit'></td>
    137137      </form> </tr>
    138138    ";
    139         endif;
     139  endif;
    140140  }
    141141 echo "</table>";
  • trunk/pages/client.php

    r650 r685  
    55echo('
    66<br>Nejnovější verze clientu 3.4: <A href="http://www.heroesoffantasy.cz:81/InstalaceHeroesOfFantasyClient-3.4.exe.torrent">Stáhnout</A> (6,91 MB)
    7 <br>Zrojové kody jsou veřené: <A href="http://www.heroesoffantasy.cz/svn/hofclient">SVN</A> <A href="http://www.heroesoffantasy.cz/hofclient/browser">Trac</A>
     7<br>Zrojové kody jsou veřené: <A href="http://www.heroesoffantasy.cz/svn/hofclient">SVN</A> <A href="http://www.heroesoffantasy.cz/trac/hofclient/browser">Trac</A>
    88<br>Debata na téma client: <A href="http://www.heroesoffantasy.cz/forum/viewforum.php?f=10">zde</A>
    99<br>Naprogramoval: <b>Maron</b>');
     
    102102<DL>
    103103<DT><span class="ClientNastaveni">   + Možnost v nastavení nastavit:</span>
    104 <DD><span class="ClientNastaveni">      + Spouštět po startu WINDOWS</span>
    105 <DD><span class="ClientNastaveni">      + Po spuštění wow vypnout clienta</span>
    106 <DD><span class="ClientNastaveni">      + Po spuštění zobrazit: Aktuality, Online player, Nic</span>
    107 <DD><span class="ClientNastaveni">      + Automaticky zjišźovat nové verze Clientu a kontrolovat addonty</span>
    108 <DD><span class="ClientNastaveni">      + Nastavit cestu ke složce wow</span>
     104<DD><span class="ClientNastaveni">    + Spouštět po startu WINDOWS</span>
     105<DD><span class="ClientNastaveni">    + Po spuštění wow vypnout clienta</span>
     106<DD><span class="ClientNastaveni">    + Po spuštění zobrazit: Aktuality, Online player, Nic</span>
     107<DD><span class="ClientNastaveni">    + Automaticky zjišźovat nové verze Clientu a kontrolovat addonty</span>
     108<DD><span class="ClientNastaveni">    + Nastavit cestu ke složce wow</span>
    109109</DL>
    110110
Note: See TracChangeset for help on using the changeset viewer.