Changeset 472 for branches/beta/pages
- Timestamp:
- Mar 7, 2009, 5:11:22 PM (16 years ago)
- Location:
- branches/beta/pages
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/beta/pages/admin_finance.php
r470 r472 30 30 </td> 31 31 </tr> 32 <tr> 33 <td>Odměna</td> 34 <td> 35 <input type=text name=\"odmena\"> 36 </td> 37 </tr> 32 38 <tr> 33 39 <td>Popis</td> … … 44 50 { 45 51 $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"]."');"); 47 53 echo "Přidáno !"; 48 54 } -
branches/beta/pages/admin_finance_modify.php
r470 r472 19 19 $oper = $_POST['operace']; 20 20 $popis = $_POST['popis']; 21 $odmena = $_POST['odmena']; 21 22 22 23 $operace = $operace_obracene[$oper]; … … 28 29 $upravit_operace = mysql_query("update finance set operation='$operace' where id='$id2'"); 29 30 $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'"); 30 32 31 33 if($upravit_money and $upravit_operace and $upravit_popis): … … 57 59 <th>Suma</th> 58 60 <th>Popis</th> 61 <th>Odměna</th> 59 62 <th> </th> 60 63 </tr> … … 84 87 <td align=\"center\">".$plus.$row["money"]."</td> 85 88 <td align=\"left\">".$operace[$row["operation"]]." ".$row["description"]."</td> 89 <td align=\"center\">".$row["odmena"]."</td> 86 90 <form method=post><td align=\"center\" valign=\"middle\"><input type=hidden name='id_upravit' value='$id'><input type=submit value='Upravit'></form></td> 87 91 </tr> … … 132 136 <td align=\"center\"><input type=text name=money value=".$row["money"]."></td> 133 137 <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> 134 139 <td align=\"center\" valign=\"middle\"><input type=hidden name=id value='$id'><input type=submit value='Upravit'></td> 135 140 </form> </tr> -
branches/beta/pages/dotation.php
r443 r472 27 27 <th>Suma</th> 28 28 <th>Popis</th> 29 <th>Odměna</th> 29 30 </tr> 30 31 "; … … 32 33 while ($row = $load_dotation -> fetch_array()) 33 34 { 35 $odmena = $row["odmena"]; 36 34 37 if ($row["time"] != "") 35 38 { … … 49 52 <td align=\"center\">".$plus.$row["money"]."</td> 50 53 <td align=\"left\">".$operace[$row["operation"]]." ".$row["description"]."</td> 54 <td align=\"center\">".$odmena."</td> 51 55 </tr> 52 56 ";
Note:
See TracChangeset
for help on using the changeset viewer.