Example #1
0
		
		<td><INPUT TYPE="SUBMIT" NAME="SUBMIT6" VALUE="Bringing Laptop In"></td></tr>
		
			<?php 
if (isset($_POST['SUBMIT6'])) {
    $resident_id = $_POST['resident_id'];
    $db_handle = Connect_To_Server();
    $db_found = Connect_To_DB();
    $in_out = 'in';
    view_laptop_details($resident_id, $in_out);
    Close_To_Server($db_handle);
}
?>
			</table>
		<?php 
view_form();
?>
		<table>
		<?php 
view_form_doctor();
?>
		<tr><td colspan="3"><INPUT TYPE="SUBMIT" NAME="SUBMIT7" VALUE="Go Back"></td></tr>
		</table>
	</FORM>	

<?php 
function Connect_TO_Server()
{
    $usernamedb = "root";
    $passworddb = "";
    $server = $_SERVER['SERVER_ADDR'];
Example #2
0
include '../includes/admin_frame.php';
include '../functions/sql_connect.php';
include 'functions/project_function.php';
?>

<section class="content-header">
	DETAILS
</section>

<section class="content">

	<div class="row">
		<div class="col-md-10">
			<div class="box box-primary">
				<div class="box-header with-boarder">
					<h3 class="box-title">VIEW THE DETAILS</h3>
				</div>
				<div class="box-body">
						<?php 
view_form($_GET['id']);
?>
				</div>
			</div>
		</div>
	</div>
	
</section>

<?php 
// closing the page
include '../includes/admin_frame_close.php';
Example #3
0
function delete_form($pDB, $smarty, $module_name, $local_templates_dir, $formCampos, $oForm)
{
    if (!isset($_POST['id_formulario']) || !is_numeric($_POST['id_formulario'])) {
        return false;
    }
    $oDataForm = new paloSantoDataForm($pDB);
    if ($oDataForm->delete_form($_POST['id_formulario'])) {
        if ($oDataForm->errMsg != "") {
            $smarty->assign("mb_title", _tr('Validation Error'));
            $smarty->assign("mb_message", $oDataForm->errMsg);
        } else {
            header("Location: ?menu={$module_name}");
        }
    } else {
        $msg_error = $oDataForm->errMsg != "" ? "<br>" . $oDataForm->errMsg : "";
        $smarty->assign("mb_title", _tr('Delete Error'));
        $smarty->assign("mb_message", _tr('Error when deleting the Form') . $msg_error);
    }
    $sContenido = view_form($pDB, $smarty, $module_name, $local_templates_dir, $formCampos, $oForm);
    return $sContenido;
}