<html> <head> <link type="text/css" rel="stylesheet" href="css.css"> <?php include 'class.php'; $a = new usuario(); $b = new Business_Objectives(); $a->sessionstarter(); $b->name = $_POST['name']; if ($_POST['name'] == "") { echo "Enter a valid Name"; } else { $b->insertbu($a->compid); if ($b->helpme == 1) { echo "It has been successfully inserted"; header("Location:menuuser.php"); } else { echo "Somethink went wrong, try again"; } } echo "<br><br>"; echo "<a href = 'menuuser.php'><input type='submit' value='Back to Menu'></a>"; echo "<br>"; echo "<br>"; echo "<br>"; echo "<br>"; ?> </html>
<?php include 'class.php'; $a = new usuario(); $a->sessionstarter1(); $c = new Business_Objectives(); if ($a->edbu == 0) { echo "Ud no tiene permiso para estar aca."; } else { $c->getall($a->compid); }
<?php include 'class.php'; $a = new usuario(); $a->sessionstarter1(); $d = new Business_Objectives(); $d->getmenu($a->compid);
<?php include 'class.php'; $a = new usuario(); $a->sessionstarter(); $b = new Business_Objectives(); $b->id = $_POST['id']; $b->name = $_POST['name']; $b->editar(); if ($b->helpme == 1) { header("Location: menuuser.php"); echo "Actualizacion exitosa"; } else { //header("Location: ModifIT.php"); echo "Algo salio muy mal...."; }
<?php include 'class.php'; $a = new usuario(); $a->sessionstarter(); $b = new Business_Objectives(); $b->id = $_REQUEST['id']; $b->borrar();