/booka/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/booka/trunk

« back to all changes in this revision

Viewing changes to dbEditor.php

  • Committer: Gustav Hartvigsson
  • Date: 2010-07-03 09:53:48 UTC
  • mfrom: (29.1.2 trunk)
  • Revision ID: gego@quad-20100703095348-84ok8l850oh7l3oo
wtf?

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
                 
53
53
                 <form action="dbEditor.php" method="post">
54
54
                        <div class="lefta">
55
 
                                <label for="name" <? echo $nameunset ?>>Name</label> <input type="text" name="name" <? echo $nameunset ?> /> <br />
56
 
                                <label for="phone" <? echo $phoneunset ?>>Phone number</label> <input type="text" name="phone" id="phone" <? echo $phoneunset ?> /><br />
57
 
                                <label for="email" <? echo $emailunset ?>>e-mail address</label> <input type="text" name="email" id="email" <? echo $emailunset ?> /><br />
 
55
                                <label for="name" <?php echo $nameunset ?>>Name</label> <input type="text" name="name" <?php echo $nameunset ?> /> <br />
 
56
                                <label for="phone" <?php echo $phoneunset ?>>Phone number</label> <input type="text" name="phone" id="phone" <?php echo $phoneunset ?> /><br />
 
57
                                <label for="email" <?php echo $emailunset ?>>e-mail address</label> <input type="text" name="email" id="email" <?php echo $emailunset ?> /><br />
58
58
                        </div>
59
59
                        <div class="righta">
60
 
                                <label for="adress" <? echo $adressunset ?> >adress</label> <input type="text" name="adress" id="adress" <? echo $adressunset ?> /> <br />
61
 
                                <label for="StartDate" <? echo $StartDateunset ?>>Start Date </label> <input type="text" name="StartDate" id="StartDate" <? echo $StartDateunset ?> /><br />
62
 
                                <label for="EndDate" <? echo $EndDateunset ?> >End Date</label> <input type="text" name="EndDate" id="EndDate" <? echo $EndDateunset ?> /> <br />
 
60
                                <label for="adress" <?php echo $adressunset ?> >adress</label> <input type="text" name="adress" id="adress" <?php echo $adressunset ?> /> <br />
 
61
                                <label for="StartDate" <?php echo $StartDateunset ?>>Start Date </label> <input type="text" name="StartDate" id="StartDate" <?php echo $StartDateunset ?> /><br />
 
62
                                <label for="EndDate" <?php echo $EndDateunset ?> >End Date</label> <input type="text" name="EndDate" id="EndDate" <?php echo $EndDateunset ?> /> <br />
63
63
                                </div>
64
64
                        <input type="hidden" name="fromadd" value="true" />
65
65
                        <p><input type="submit" value="add" name="add" class="add" /></p>
79
79
                                <td> Adress </td>
80
80
                                <td> remove </td>
81
81
                        </tr> <!-- end of row one -->
82
 
                        <?
 
82
                        <?php
83
83
                        
84
84
                        $result = $db->query("SELECT * FROM bookings") or die("could not do query!");
85
85
                        foreach($result as $row){
86
86
                        ?>
87
87
                        <tr> <!-- Row two and up -->
88
 
                                <td> <? echo $row[id]?> </td>
89
 
                                <td> <? echo $row[name]?> </td>
90
 
                                <td> <? echo $row[StartDate]?> </td>
91
 
                                <td> <? echo $row[EndDate]?> </td>
92
 
                                <td> <? echo $row[phone]?> </td>
93
 
                                <td> <? echo $row[mail]?> </td>
94
 
                                <td> <? echo $row[adress]?> </td>
 
88
                                <td> <?php echo $row[id]?> </td>
 
89
                                <td> <?php echo $row[name]?> </td>
 
90
                                <td> <?php echo $row[StartDate]?> </td>
 
91
                                <td> <?php echo $row[EndDate]?> </td>
 
92
                                <td> <?php echo $row[phone]?> </td>
 
93
                                <td> <?php echo $row[mail]?> </td>
 
94
                                <td> <?php echo $row[adress]?> </td>
95
95
                                <td>
96
96
                                        <form action="removeFromDB.php" method="post">
97
97
                                                <p>
101
101
                                        </form>
102
102
                                </td>
103
103
                        </tr> <!-- end of row two and up -->
104
 
                        <?
 
104
                        <?php
105
105
                        }
106
106
                        ?>
107
107
                </table>
108
108
                 
109
109
        </div>
110
110
 
111
 
<?
 
111
<?php
112
112
 
113
113
include "./inc/foot.php"
114
114
?>