Exemplo n.º 1
0
 if ($user_type == "r") {
     echo "<table width='100%' align='center'>";
     echo "<tr>";
     echo "<td align='right' style='color: #C15BAF; font-size: 24px;'>Welcome" . $user_name . "! Press here to <a href='logout.php'>logout!</a></td>";
     echo "</tr>";
     echo "</table>";
 } else {
     if ($user_type == "a") {
         header("location: admin.php");
     } else {
         echo "Login in error";
     }
 }
 // show user business plan information
 $myUser = new MyUser(Hostname, DB - username, password, Database - Name);
 $myUser->connect();
 // start with a new line
 // get the number of business plan
 $number_of_business_plan = $myUser->get_number_of_business_plan($user_name);
 echo "<table width='80%' align='center'>";
 echo "<tr>";
 echo "<td style='text-align: center; font-size: 36px'>You have " . $number_of_business_plan . " Business Plans</td></tr>";
 echo "<tr>";
 echo "<td><table width='100%' border='1' cellpadding='1' cellspacing='0'>";
 echo "<tr style='text-align: center; font-size: 24px;'>";
 echo "<td width='30%'>Name</td>";
 echo "<td>Description</td>";
 echo "</tr>";
 // print out the plan information
 $business_plan = $myUser->get_business_plan_information($user_name);
 //		echo "<form action='delete_business_plan.php' method='post'>";