Changeset 472 for branches


Ignore:
Timestamp:
Mar 7, 2009, 5:11:22 PM (16 years ago)
Author:
amun
Message:

Přidáno do financí "odměna"...

Location:
branches/beta/pages
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/beta/pages/admin_finance.php

    r470 r472  
    3030    </td>
    3131  </tr>
     32   <tr>
     33    <td>Odměna</td>
     34    <td>
     35     <input type=text name=\"odmena\">
     36    </td>
     37  </tr>
    3238  <tr>
    3339    <td>Popis</td>
     
    4450{
    4551  $db -> select_db($db_ghsystem);
    46   $result =  $db -> query("INSERT INTO `dotation` ( `id` , `time` , `money` , `operation` , `description`) VALUES (NULL, '".$_POST["day"]."', '".$_POST["suma"]."', '".$_POST["kategorie"]."' , '".$_POST["popis"]."' );");
     52  $result =  $db -> query("INSERT INTO `finance` ( `id` , `time` , `money` , `operation` , `description`, `odmena`) VALUES (NULL, '".$_POST["day"]."', '".$_POST["suma"]."', '".$_POST["kategorie"]."' , '".$_POST["popis"]."', '".$_POST["odmena"]."');");
    4753  echo "Přidáno !";
    4854}
  • branches/beta/pages/admin_finance_modify.php

    r470 r472  
    1919$oper = $_POST['operace'];
    2020$popis = $_POST['popis'];
     21$odmena = $_POST['odmena'];
    2122
    2223$operace = $operace_obracene[$oper];
     
    2829   $upravit_operace = mysql_query("update finance set operation='$operace' where id='$id2'");
    2930   $upravit_popis = mysql_query("update finance set description='$popis' where id='$id2'");
     31   $upravit_odmenu = mysql_query("update finance set odmena='$odmena' where id='$id2'");
    3032   
    3133   if($upravit_money and $upravit_operace and $upravit_popis):
     
    5759      <th>Suma</th>
    5860      <th>Popis</th>
     61          <th>Odměna</th>
    5962          <th>&nbsp;</th>
    6063    </tr> 
     
    8487        <td align=\"center\">".$plus.$row["money"]."</td>
    8588        <td align=\"left\">".$operace[$row["operation"]]." ".$row["description"]."</td>
     89                <td align=\"center\">".$row["odmena"]."</td>
    8690                <form method=post><td align=\"center\" valign=\"middle\"><input type=hidden name='id_upravit' value='$id'><input type=submit value='Upravit'></form></td>
    8791      </tr> 
     
    132136            <td align=\"center\"><input type=text name=money value=".$row["money"]."></td>
    133137        <td align=\"left\"><select name=operace>$option</select><input type=text name=popis value='".$row["description"]."'></td>
     138                 <td align=\"center\"><input type=text name=odmena value=".$row["odmena"]."></td>
    134139                <td align=\"center\" valign=\"middle\"><input type=hidden name=id value='$id'><input type=submit value='Upravit'></td>
    135140      </form> </tr>
  • branches/beta/pages/dotation.php

    r443 r472  
    2727      <th>Suma</th>
    2828      <th>Popis</th>
     29          <th>Odměna</th>
    2930    </tr> 
    3031";
     
    3233  while ($row = $load_dotation -> fetch_array())
    3334  {
     35  $odmena = $row["odmena"];
     36 
    3437    if ($row["time"] != "")
    3538    {
     
    4952        <td align=\"center\">".$plus.$row["money"]."</td>
    5053        <td align=\"left\">".$operace[$row["operation"]]." ".$row["description"]."</td>
     54                <td align=\"center\">".$odmena."</td>
    5155      </tr> 
    5256    ";
Note: See TracChangeset for help on using the changeset viewer.