/booka/newlayout

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

« back to all changes in this revision

Viewing changes to dbEditor.php

  • Committer: Gustav Hartvigsson
  • Date: 2010-12-12 20:15:50 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20101212201550-7jx5d1h642wnc01y
trying out new layout, initial work

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
/*
4
4
        dbEditor.php
5
5
*/
6
 
if(!$_SESSION[logedin]){
7
 
        
8
 
        header('Location: ./BooKa.php');
9
 
}
 
6
 
10
7
 
11
8
$errorMsg = null; //ERRORMSG!
12
9
 
13
 
include "./inc/dbConnect.php";
14
 
 
15
10
//manipulation of DB
16
11
$newname = $_POST[name];
17
12
$newphone = $_POST[phone];
35
30
        header('Location: ./dbEditor.php');
36
31
}
37
32
//end of DB manipulation.
38
 
 
39
 
include "./inc/head.php";
40
33
?>
41
 
 
42
 
        <div class="head"><img src="./img/Logo.png" alt="BooKa´s logo" /></div>
43
34
        
44
35
        <div class="menu2">
45
 
                 <h2> You are logedin <a href="logout.php"> [logout] </a><a href="BooKa.php"> [Return] </a> </h2>
46
 
                 <hr />
47
36
                 <?php
48
37
                 if($errorMsg!=null){
49
38
                        echo "  <p class='warning'>".$errorMsg."</p> <!-- this paragraph is created by the php script -->";
50
39
                 }
51
40
                 ?>
52
41
                 
53
 
                 <form action="dbEditor.php" method="post">
 
42
                 <form action="BooKa.php" method="post">
54
43
                        <div class="lefta">
55
44
                                <label for="name" <?php echo $nameunset ?>>Name</label> <input type="text" name="name" <?php echo $nameunset ?> /> <br />
56
45
                                <label for="phone" <?php echo $phoneunset ?>>Phone number</label> <input type="text" name="phone" id="phone" <?php echo $phoneunset ?> /><br />
108
97
                 
109
98
        </div>
110
99
 
111
 
<?php
112
 
 
113
 
include "./inc/foot.php"
114
 
?>
115
 
 
116
100