Example #1
0
function NeedOption()
{
    ?>
	<!DOCTYPE html>
	<html lang="en">
	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta name="apple-mobile-web-app-capable" content="yes" />
		<meta name="description" content="Demo web app" />
		<link rel="stylesheet" href="../../css/bootstrap.min.css" />
		<link rel="stylesheet" href="../../css/demo.css" />
		<title>Demo webapp</title>
		<script type="text/javascript" src="../../js/webapp/static/cots/jquery-2.0.3.min.js"></script>
		<script type="text/javascript" src="../../js/webapp/static/cots/bootstrap.min.js"></script>
		<script>
			console.log("-------------------------------");
			console.log("          Need option");
			console.log("-------------------------------");
			$(function() {
				$(window).load(function() {
					$('#ModalOption').modal('show');
					window.setTimeout("window.location.href = \"../../offline/app.php\"", 3000);
				});
			});
		</script>
	</head>
	<body>
	<?php 
    StaticMessage("ModalOption", "danger", "Need option", "<p>You need to subscribe an option to access this page!</p>", "../../", "");
    html_end();
    exit;
}
Example #2
0
							<script type="text/javascript" src="../../js/webapp/static/cots/bootstrap.min.js"></script>
							<script>
								console.log("-------------------------------");
								console.log("     password.php -- ok");
								console.log("-------------------------------");
								$(window).load(function() {
									$('#ModalPasswordOK').modal('show');
									window.setTimeout("window.location.href = \"../../offline/app.php\"", 500);
								});
							</script>

						</head>
						<body>

							<?php 
                            StaticMessage("ModalPasswordOK", "working", "Mot de passe changé", "Merci de patienter...", "../../", "");
                            html_end();
                            exit;
                            //---------------------------------------------------------------------------
                            //
                            // Password changed --- End
                            //
                            //---------------------------------------------------------------------------
                        } else {
                            $error = "Erreur !";
                        }
                        //Error
                    } else {
                        $error = "Les mots de passe ne correspondent pas !";
                    }
                    //Error