Esempio n. 1
0
function makePage($pageName)
{
    global $pages;
    foreach ($pages as $page) {
        if ($page["name"] == $pageName) {
            makeHead($page);
            if ($page["name"] != "intro") {
                echo '
						<body>
						<div class="mainBlock">
					';
                makeHeader($page);
                makeMenu($page);
                makeNavigation($page);
                echo '
						</div>
						</body>
					';
            } else {
                makeNavigation($page);
            }
            makeScripts($page);
        }
    }
}
Esempio n. 2
0
<td bgcolor="#CCFFCC"
<?php 
makeHead("Lista iscritti alla gita");
echo "<table border=\"1\" align=\"center\">";
echo "  <tr>";
echo "    <td colspan=\"2\" bgcolor=\"#CCFFCC\">Numero iscritti: " . $db->num_rows() . "</td>";
echo "  </tr>";
echo "  <tr>";
echo "    <td bgcolor=\"#CCFFCC\">Nomi</td>";
echo "    <td bgcolor=\"#CCFFCC\">Data iscrizione</td>";
echo "  </tr>";
while ($db->next_record()) {
    echo "  <tr>";
    //echo "    <td>".$db->record['nome']." ".substr($db->record['cognome'],0,1).".</td>";
    echo "    <td>" . $db->record['nome'] . " " . $db->record['cognome'] . "</td>";
    echo "    <td>" . date("d/m/Y", $db->record['data']) . "</td>";
    echo "  </tr>";
}
if ($db->query("SELECT *,UNIX_TIMESTAMP(dataeora) as 'data' FROM nonsoci,iscrizioni WHERE nonsoci.id = iscrizioni.idassociato AND iscrizioni.idresp = CONCAT(iscrizioni.idassociato,'-NS') AND iscrizioni.idgita = '" . $_GET['iscrid'] . "' ORDER BY data,nonsoci.nome;")) {
    while ($db->next_record()) {
        echo "  <tr>";
        //echo "    <td>".$db->record['nome']." ".substr($db->record['cognome'],0,1).".</td>";
        echo "    <td>" . $db->record['nome'] . " " . $db->record['cognome'] . " (Non socio)</td>";
        echo "    <td>" . date("d/m/Y", $db->record['data']) . ".</td>";
        echo "  </tr>";
    }
}
echo "</table>";
makeTail();
Esempio n. 3
0
        redirect("assets.php");
        die;
    }
} elseif (!empty($_GET['asset_tag'])) {
    $asset = $con->myQuery("SELECT image,DATE_FORMAT(EOL,'%d/%m/%Y') as EOL,id,manufacturer,depreciation_term,depreciation_name,model,asset_status_label,asset_status,category,asset_tag,serial_number,asset_name,purchase_date,purchase_cost,order_number,notes,image,DATE_FORMAT(check_out_date,'%d/%m/%Y') as check_out_date,location,CONCAT(last_name,', ',first_name,' ',middle_name)as current_holder,is_deleted FROM qry_assets WHERE asset_tag=?", array($_GET['asset_tag']))->fetch(PDO::FETCH_ASSOC);
    if (empty($asset)) {
        //Alert("Invalid asset selected.");
        Modal("No Asset found.");
        redirect("assets.php");
        die;
    }
}
$asset_models = $con->myQuery("SELECT id,name FROM asset_models WHERE is_deleted=0")->fetchAll(PDO::FETCH_ASSOC);
$asset_status_labels = $con->myQuery("SELECT id,name FROM asset_status_labels WHERE is_deleted=0")->fetchAll(PDO::FETCH_ASSOC);
$locations = $con->myQuery("SELECT id,name FROM locations WHERE is_deleted=0")->fetchAll(PDO::FETCH_ASSOC);
makeHead("Assets");
require_once "template/header.php";
require_once "template/sidebar.php";
?>
<div class='content-wrapper'>
    <section class='content-header'>
        <h1>
            View Asset <?php 
echo htmlspecialchars($asset['asset_name']);
?>
 (<?php 
echo htmlspecialchars($asset['category']);
?>
)
        </h1>
    </section>
Esempio n. 4
0
    die;
}
if (!AllowUser(array(1, 2, 3))) {
    redirect("index.php");
}
if (!empty($_GET['date_start'])) {
    $date_start = date_create($_GET['date_start']);
} else {
    $date_start = "";
}
if (!empty($_GET['date_end'])) {
    $date_end = date_create($_GET['date_end']);
} else {
    $date_end = "";
}
makeHead("Consumable Reports");
?>

<?php 
require_once "template/header.php";
require_once "template/sidebar.php";
?>
<div class='content-wrapper'>
    <div class='content-header'>
        <h1 class='text-center page-header text-green'>Consumables Report</h1>
    </div>
    <section class='content'>
        <div class="row">
                <div class='col-lg-12'>
                    <?php 
Alert();
Esempio n. 5
0
    vis_evento();
    makeTail();
    exit;
}
if (is_numeric($_GET['id'])) {
    vis_gita();
    makeTail();
    exit;
} elseif (is_numeric($_GET['iscrid'])) {
    include_once "lib/db_mysql.php";
    $db = new db_local();
    $db->query("SELECT *,UNIX_TIMESTAMP(dataeora) as 'data' FROM anagrafiche,iscrizioni WHERE anagrafiche.id = iscrizioni.idassociato AND iscrizioni.idresp <> CONCAT(iscrizioni.idassociato,'-NS') AND iscrizioni.idgita = '" . $_GET['iscrid'] . "' ORDER BY data,anagrafiche.nome;");
    include_once "lib/html/listaisc.php";
    exit;
}
makeHead("Gite ed Eventi", "", "onload=\"init();\"");
?>
<div align="center">
<br>
	<div style="color:blue; font-size:16px;">Ecco l'elenco delle prossime gite</div>
	<div style="color:blue;">
		<a style="font-size:16px;" href="index.php?limit=0" title="Elenco gite <?php 
echo date("Y");
?>
">[Visualizza tutte le gite del <?php 
echo date("Y");
?>
]</a>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	<?php 
if (date("m") >= 11) {
Esempio n. 6
0
        $strWhere = " WHERE idnazione = '" . $_GET['idnaz'] . "'";
    }
    if (is_numeric($_GET['idarg'])) {
        if ($strWhere == '') {
            $strWhere = " WHERE idarg = '" . $_GET['idarg'] . "'";
        } else {
            $strWhere = $strWhere . " AND idarg = '" . $_GET['idarg'] . "'";
        }
    }
    $db->query($strqry . $strWhere . " ORDER BY argomento, titolo");
    $ordinamento = "tipo";
    include_once "lib/html/listalibri.php";
    makeTail();
    exit;
}
makeHead("Biblioteca", "", "");
?>
<div align="center">
<h4>FIAB Torino Bici e Dintorni - Biblioteca</h4>
<br>
<div style="color:blue;">Abbiamo una delle biblioteche sulla bici, la mobilità urbana e il cicloturismo più ricche in Italia.</div>
<p>I soci possono prendere a prestito i libri e le cartine,
<a href="http://www.biciedintorni.it/wordpress/contatti-2/"> in sede negli orari di apertura.</a></p></div>
<br>
<!-- <table width="40%" border="0" align="center" cellpadding="2">
	<tr align="center">
		<td><a href="biblioteca.php?sez=cart">Cartine</a> | </td> 
		<td>Libri ordinati per: </td>
		<td><a href="biblioteca.php?sez=libri_titolo">titolo</a> | </td>
		<td><a href="biblioteca.php?sez=libri_anno">anno pubblicazione</a> | </td>
		<td><a href="biblioteca.php?sez=libri_argomento">tipo</a> | </td>
Esempio n. 7
0
<?php

require_once 'support/config.php';
if (!isLoggedIn()) {
    toLogin();
    die;
}
makeHead("Clients");
?>
<div id='wrapper'>
<?php 
require_once 'template/navbar.php';
?>
</div>

<div id="page-wrapper">
            <div class="row">
                <div class="col-lg-12">
                    <h1 class="page-header">My Account</h1>
                </div>
                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->

            <?php 
if (AllowUser(array(1, 2))) {
    ?>
            
            <div class='row'>
                        <div class='col-sm-12'>
                                <a href='frm_accounts.php' class='btn btn-success pull-right'> <span class='fa fa-plus'></span> Create New</a>
Esempio n. 8
0
<?php

require_once 'support/config.php';
if (!isLoggedIn()) {
    toLogin();
    die;
}
if (!AllowUser(array(1, 2, 3))) {
    redirect("index.php");
}
makeHead("Asset Reports");
?>
<div id='wrapper'>
<?php 
require_once 'template/navbar.php';
?>
</div>

<div id="page-wrapper">
            <div class="row">
                <div class="col-lg-12">
                    <h1 class="page-header">Asset Report</h1>
                </div>

                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
            <div class="row">
                <div class='col-lg-12'>
                    <?php 
Alert();
Esempio n. 9
0
        die;
    }
}
if (!empty($_SESSION[WEBAPP]['frm_inputs'])) {
    if (!empty($asset_model)) {
        $old_asset_model = $asset_model;
    }
    $asset_model = $_SESSION[WEBAPP]['frm_inputs'];
    if (!empty($old_asset_model)) {
        $asset_model['id'] = $old_asset_model['id'];
    }
}
$manufacturers = $con->myQuery("SELECT id,name FROM manufacturers WHERE is_deleted=0")->fetchAll(PDO::FETCH_ASSOC);
$categories = $con->myQuery("SELECT id,name FROM categories WHERE is_deleted=0 AND category_type_id=1")->fetchAll(PDO::FETCH_ASSOC);
$depreciations = $con->myQuery("SELECT id,name FROM depreciations WHERE is_deleted=0")->fetchAll(PDO::FETCH_ASSOC);
makeHead("Asset Models");
require_once "template/header.php";
require_once "template/sidebar.php";
?>
<div class='content-wrapper'>
    <div class='content-header'>
        <h1 class='page-header text-center text-green'>Asset Models Form</h1>
    </div>
    <section class='content'>
    <div class='row'>
        <div class='col-md-12'>
            <?php 
Alert();
?>
    
            <div class='row'>
Esempio n. 10
0
<?php

require_once '../lib/libAuth.php';
require_once '../lib/libJoy.php';
makeHead('Joypeak - Där allting är gratis förutom maten ');
echo '<body';
if ($loggedIn) {
    echo ' class="loggedIn"';
}
echo '>';
?>
<script src="../lib/verifyScript.js" type="text/javascript" language="javascript"></script> 
<table>
<tr>
<td id="header">
<div id="head">
<h1>Joypeak</h1>
<div class="bottom"></div>
</div>
</td>
</tr>
<tr>
<td id="content">
<?php 
//makeMenu();    //Creates the main menu
?>
<div id="main">
<div id="content2">
<?php 
$email = mysql_real_escape_string($_GET["email"]);
$token = mysql_real_escape_string($_GET["token"]);
Esempio n. 11
0
<?php

require_once 'support/config.php';
makeHead('Login');
?>
 <div class="container">
        <div class="row">
            <div class="col-md-4 col-md-offset-4">
            	
                <div class="login-panel panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title">Please Log In</h3>
                    </div>
                    <div class="panel-body">
                        <form role="form" method="post" action='logingin.php'>
                            <fieldset>
                                <div class="form-group">
                                    <input class="form-control" placeholder="E-mail" name="username" type="text" autofocus>
                                </div>
                                <div class="form-group">
                                    <input class="form-control" placeholder="Password" name="password" type="password" value="">
                                </div>
                                <!-- Change this to a button or input when using this as a form -->
                                <button type='submit' class="btn btn-lg btn-success btn-block">Login</a>
                            </fieldset>
                        </form>
                    </div>
                </div>
                <?php 
Alert();
?>
Esempio n. 12
0
    $navigation = makeNavigation($thisCatalogue->heading, $tocs, $facet);
    $content = makeHead($thisCatalogue, $navigation, $facet);
    $content .= makeList($structure, $thisCatalogue);
    $content .= $foot;
    $fileName = fileNameTrans($folderName . '/' . $thisCatalogue->heading) . '-' . $facet . '.html';
    $datei = fopen($fileName, "w");
    fwrite($datei, $content, 3000000);
    fclose($datei);
    $count++;
}
unset($structures);
// Erzeugen der Seite mit den Word Clouds
$navigation = makeNavigation($thisCatalogue->heading, $tocs, 'jqcloud');
$content = makeHead($thisCatalogue, $navigation, 'jqcloud');
$content .= makeCloudPageContent($data, $facets, $folderName);
$content .= $foot;
$fileName = fileNameTrans($folderName . '/' . $thisCatalogue->heading) . '-wordCloud.html';
$datei = fopen($fileName, "w");
fwrite($datei, $content, 3000000);
fclose($datei);
// Erzeugen der Seite mit den Doughnut Charts
$navigation = makeNavigation($thisCatalogue->heading, $tocs, 'doughnut');
$content = makeHead($thisCatalogue, $navigation, 'doughnut');
$content .= makeDoughnutPageContent($data, $facets, $folderName);
$content .= $foot;
$fileName = fileNameTrans($folderName . '/' . $thisCatalogue->heading) . '-doughnut.html';
$datei = fopen($fileName, "w");
fwrite($datei, $content, 3000000);
fclose($datei);
// Lösche die von storeBeacon erzeugte temporäre Datei
//unlink($folderName.'/beaconStore-'.$thisCatalogue->key);
Esempio n. 13
0
            } else {
                echo "<html><head><title>Cambio password</title></head><body>";
                echo "La password pu� contenere solo numeri e lettere e deve essere di minimo 8 caratteri.";
            }
        } else {
            echo "<html><head><title>Cambio password</title></head><body>";
            echo "<center>Le password non coincidono.</center>";
        }
    }
}
if ($_GET['iscr']) {
    $act .= "passch.php?iscr=" . $_GET['iscr'];
} else {
    $act .= "passch.php";
}
makeHead("Cambio password");
?>
<h2><center>FIAB Torino Bici e Dintorni - area riservata - modifica password</center></h2>

<form method="post" action="<?php 
echo $act;
?>
">
	<table align="center" border="0">
	  
	  <tr>
		<td >Nuova Password [Obbligatorio]:</td>
		<td><input type="password" size="20" name="password" maxlength="20"></td>
	  </tr>
	  <tr>
		<td>Ripeti Nuova Password [Obbligatorio]:</td>
Esempio n. 14
0
            $niscri = $ciscr->record['niscr'];
        } else {
            echo "Errore vis_gita 'numero iscritti' iscr, query falsa.";
        }
    }
    $ciscr->close();
    unset($ciscr);
    ?>
<div id="tddata">Data: <?php 
    echo substr($db->record['dataeora'], 8, 2) . "/" . substr($db->record['dataeora'], 5, 2) . "/" . substr($db->record['dataeora'], 0, 4);
    if ($niscri > 0) {
        echo ", <a href=\"index.php?iscrid=" . $db->record['id'] . "\">Numero iscritti: {$niscri}</a>";
    }
    /*else 
    		echo ", Nessun iscritto a questa gita.";*/
    makeHead("Bici e Dintorni - " . $db->record['titolo'], "", "onload=\"init();\"");
    ?>
</div>

<div id="title" align="center"><?php 
    echo $db->record['titolo'];
    ?>
</div>
<div id="tdresp" align="center">Capogita: <?php 
    if ($db->record['email'] != '') {
        echo "<a href=\"mail.php?id=" . $db->record['resp'] . "\" title\"Invia email al capogita\">" . $db->record['nome'] . " " . $db->record['cognome'] . "</a>";
    } else {
        echo $db->record['nome'] . " " . $db->record['cognome'];
    }
    if ($db->record['tel1'] != '' && $db->record['cell'] != '') {
        $telcell = " Tel: " . $db->record['tel1'] . " / Cell: " . $db->record['cell'];
Esempio n. 15
0
        die;
    }
}
// var_dump($_SESSION[WEBAPP]['frm_inputs']);
if (!empty($_SESSION[WEBAPP]['frm_inputs'])) {
    if (!empty($asset)) {
        $old_asset = $asset;
    }
    $asset = $_SESSION[WEBAPP]['frm_inputs'];
    if (!empty($old_asset)) {
        $asset['id'] = $old_asset['id'];
    }
}
// die;
$users = $con->myQuery("SELECT id,CONCAT(last_name,', ',first_name,' ',middle_name,' (',email,')') as display_name FROM users WHERE is_deleted=0")->fetchAll(PDO::FETCH_ASSOC);
makeHead("Consumables Checkout");
require_once "template/header.php";
require_once "template/sidebar.php";
?>
<div class='content-wrapper'>
    <div class='content-header'>
        <h1 class='page-header text-center text-green'>Consumable Checkout</h1>
    </div>
    <section class='content'>
        <div class="row">
                <div class='col-lg-12'>
                    <?php 
Alert();
?>
    
                    <div class='row'>
Esempio n. 16
0
<?php

require_once 'support/config.php';
if (!isLoggedIn()) {
    toLogin();
    die;
}
if (!AllowUser(array(1, 2))) {
    redirect("index.php");
}
makeHead("Categories");
?>
<div id='wrapper'>
<?php 
require_once 'template/navbar.php';
?>
</div>

<div id="page-wrapper">
            <div class="row">
                <div class="col-lg-12">
                    <h1 class="page-header"> Categories</h1>
                </div>

                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
            <div class="row">
                <div class='col-lg-12'>
                    <?php 
Alert();
Esempio n. 17
0
<?php

require_once 'support/config.php';
if (!isLoggedIn()) {
    toLogin();
    die;
}
//$asset_models=$con->myQuery("SELECT id,name FROM asset_models WHERE is_deleted=0")->fetchAll(PDO::FETCH_ASSOC);
//$locations=$con->myQuery("SELECT id,name FROM locations WHERE is_deleted=0")->fetchAll(PDO::FETCH_ASSOC);
$data = $con->myQuery("SELECT password_question,password_answer FROM users WHERE id=?", array($_SESSION[WEBAPP]['user']['id']))->fetch(PDO::FETCH_ASSOC);
makeHead("Users");
require_once "template/header.php";
require_once "template/sidebar.php";
?>
<div class='content-wrapper'>
    <section class='content'>
        <div class="row">
            <div class="col-lg-12">
                    <h3 class="page-header text-center text-green">Secret Question</h3>
                </div>
                <div class='col-lg-12'>
                    <?php 
Alert();
?>
    
                   <div class='row'>
                       <div class='col-sm-12 col-md-8 col-md-offset-2'>
                            <form class='form-horizontal' method='POST' action='secret_question.php?from=form' enctype="multipart/form-data" onsubmit='return validate(this)'>
                                <div class='form-group'>
                                    <label class='col-sm-12 col-md-3 control-label'> Secret Question*</label>
                                    <div class='col-sm-12 col-md-9'>
Esempio n. 18
0
<?php

require_once '../lib/libAuth.php';
require_once '../lib/libJoy.php';
makeHead('Joypeak - Skapa ett nytt konto');
echo '<body';
if ($loggedIn) {
    echo ' class="loggedIn"';
}
echo '>';
?>
<table>
<tr>
<td id="header">
<div id="head">
<h1>Joypeak</h1>
<div class="bottom"></div>
</div>
</td>
</tr>
<tr>
<td id="content">
<?php 
//makeMenu();    //Creates the main menu
?>
<div id="main">
<div id="content2">

<form action="../lib/operations.php" method="post">
  <label for="email"><h3>Epostadress</h3></label><br />
  <input type="input" id="email" name="email" title="email"><br />
Esempio n. 19
0
<?php

require_once 'support/config.php';
if (!isLoggedIn()) {
    toLogin();
    die;
}
if (!AllowUser(array(1, 2))) {
    redirect("index.php");
}
makeHead("Consumables");
require_once "template/header.php";
require_once "template/sidebar.php";
?>
<div class='content-wrapper'>
    <div class='content-header'>
        <h1 class="page-header text-center text-green">Consumables</h1>
    </div>
    <section class='content'>
        <div class="row">
            <div class='col-lg-12'>
                <?php 
Alert();
?>
                <div class='row'>
                    <div class='col-sm-12'>
                            <a href='frm_consumables.php' class='btn btn-flat btn-success pull-right'> <span class='fa fa-plus'></span> Create New</a>
                    </div>
                </div>
                <br/>    
<?php

require_once 'support/config.php';
if (!isLoggedIn()) {
    toLogin();
    die;
}
if (!AllowUser(array(1, 2, 3))) {
    redirect("index.php");
}
makeHead("Consumable Activity Reports");
?>
<div id='wrapper'>
<?php 
require_once 'template/navbar.php';
?>
</div>

<div id="page-wrapper">
            <div class="row">
                <div class="col-lg-12">
                    <h1 class="page-header">Consumables Activity Report</h1>
                </div>

                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
            <div class="row">
                <div class='col-lg-12'>
                    <?php 
Alert();
Esempio n. 21
0
    toLogin();
    die;
}
if (!AllowUser(array(1))) {
    redirect("index.php");
}
if (!empty($_GET['id'])) {
    $product_Status = $con->myQuery("SELECT id, name from product_statuses WHERE id=?", array($_GET['id']))->fetch(PDO::FETCH_ASSOC);
    if (empty($product_Status)) {
        //Alert("Invalid consumables selected.");
        Modal("Invalid product status selected");
        redirect("product_status.php");
        die;
    }
}
makeHead("Product statuses");
?>

<div id='wrapper'>
<?php 
require_once 'template/navbar.php';
?>
</div>
<div id='page-wrapper'>
	<div class="row">
        <div class="col-lg-12">
            <h1 class="page-header">Product statuses</h1>
        </div>
                <!-- /.col-lg-12 -->
    </div>
    <div class='row'>
Esempio n. 22
0
function iscr_gita()
{
    if (is_numeric($_GET['iscr'])) {
        //$message = "Per iscriverti ad una gita devi effettuare il login, inserisci il tuo nome utente e la tua password.";
        if (file_exists("db_mysql.php")) {
            include_once "db_mysql.php";
        } else {
            include_once "lib/db_mysql.php";
        }
        $db = new db_local();
        $db->query("SELECT UNIX_TIMESTAMP(dataeora) as data FROM gite WHERE id = " . $_GET['iscr'] . " LIMIT 1");
        if ($db->next_record()) {
            /*echo "<div id=\"msg\" align=\"center\" style=\"color: #FFFFFF\">[DEBUG class.php] iscr gita -- trovata gita</div>\n";
            		if (date("Y") == date("Y",$db->record['data'])) 
            			echo "<div id=\"msg\" align=\"center\" style=\"color: #FFFFFF\">[DEBUG] iscr gita -- Stesso anno</div>\n";
            		if (date("n") == date("n",$db->record['data']))
            			echo "<div id=\"msg\" align=\"center\" style=\"color: #FFFFFF\">[DEBUG] iscr gita -- Stesso mese</div>\n";
            		if ((date("j")-date("j",$db->record['data'])) <= 2)
            			echo "<div id=\"msg\" align=\"center\" style=\"color: #FFFFFF\">[DEBUG] iscr gita -- Mancano meno di due giorni e precisamente".((date("j",$db->record['data']))-(date("j")))."</div>\n";*/
            if (date("Y") == date("Y", $db->record['data']) && date("n") == date("n", $db->record['data']) && date("j", $db->record['data']) - date("j") <= 1) {
                makeHead("Gestione Gite", "<meta http-equiv=\"refresh\" content=\"5;url=index.php?id=" . $_GET['iscr'] . "\">");
                echo "<br><br><div id=\"msg\" align=\"center\" style=\"font-size:16px; color: #FF0000\">Le iscrizioni alla gita sono terminate. Contattare il capogita.</div>\n";
                echo "<br><br><div id=\"msg\" align=\"center\" style=\"font-size:16px;\">Fra 5 secondi sarete rimandati alla gita.</div>\n";
                $db->close();
                unset($db);
                makeTail();
                exit;
            }
        }
        if ($_POST['nonsocio'] == 1) {
            //echo "nome=>".$_POST['nome']."<  cognome=>".$_POST['cognome']."<  tel=>".$_POST['tel1']."<  email=>".$_POST['nome']."<";
            if (!$_POST['nome'] || !$_POST['cognome'] || !$_POST['email'] || !$_POST['tel1']) {
                //header("Location: admin.php?iscr=" . $_GET['iscr']);
                makeHead("Gite");
                echo "<br><br><div id=\"msg\" align=\"center\" style=\"font-size:16px; color: #FF0000\">Attenzione devi inserire tutti i campi marcati in rosso.</div>\n";
                echo "<br><br><div id=\"msg\" align=\"center\" style=\"font-size:16px;\"><a style='color: #0000FF;' href='admin.php?iscr=" . $_GET['iscr'] . "'>Ritorna all'iscrizione della gita.</a></div>\n";
                $db->close();
                unset($db);
                makeTail();
                exit;
            }
            if (get_magic_quotes_gpc() == 1) {
                $nome = htmlentities($_POST['nome']);
                $cognome = htmlentities($_POST['cognome']);
                $via = htmlentities($_POST['via']);
                $tel1 = htmlentities($_POST['tel1']);
                $cell = htmlentities($_POST['cell']);
                $comune = htmlentities($_POST['comune']);
                $sesso = htmlentities($_POST['sesso']);
                $cap = htmlentities($_POST['cap']);
                $prov = htmlentities($_POST['prov']);
                $giorno = htmlentities($_POST['giorno']);
                $mese = htmlentities($_POST['mese']);
                $anno = htmlentities($_POST['anno']);
                $email = htmlentities($_POST['email']);
            } else {
                $nome = addslashes(htmlentities($_POST['nome']));
                $cognome = addslashes(htmlentities($_POST['cognome']));
                $via = addslashes(htmlentities($_POST['via']));
                $tel1 = addslashes(htmlentities($_POST['tel1']));
                $cell = addslashes(htmlentities($_POST['cell']));
                $comune = addslashes(htmlentities($_POST['comune']));
                $sesso = addslashes(htmlentities($_POST['sesso']));
                $cap = addslashes(htmlentities($_POST['cap']));
                $prov = addslashes(htmlentities($_POST['prov']));
                $giorno = addslashes(htmlentities($_POST['giorno']));
                $mese = addslashes(htmlentities($_POST['mese']));
                $anno = addslashes(htmlentities($_POST['anno']));
                $email = addslashes(htmlentities($_POST['email']));
            }
            $datanascita = date("Y-m-d G:i:00", mktime(0, 0, 0, intval($mese), intval($giorno), intval($anno)));
            $db->query("SELECT * FROM anagrafiche WHERE LOWER(nome) LIKE '%" . strtolower($nome) . "%' AND LOWER(cognome) LIKE '%" . strtolower($cognome) . "%' LIMIT 1");
            if ($db->next_record()) {
                makeHead("Gite");
                echo "<br><br><div id=\"msg\" align=\"center\" style=\"font-size:16px; color: #FF0000\">Attenzione c'&egrave; gi&agrave; una persona iscritta con i tuoi stessi dati. Le iscrizioni alle gite per i non soci sono possibili UNA sola volta. Se &egrave; la prima volta che ti iscrivi ad una gita, ti prego di contattare il capogita.</div>\n";
                echo "<br><br><div id=\"msg\" align=\"center\" style=\"font-size:16px;\"><a style='color: #0000FF;' href='index.php?id=" . $_GET['iscr'] . "'>Ritorna alla gita.</a></div>\n";
                $db->close();
                unset($db);
                makeTail();
                exit;
            }
            if (!$db->query("INSERT INTO anagrafiche (nome,cognome,via,tel1,cell,citta,sesso,cap,prov,datanascita,carica) VALUES ('{$nome}','{$cognome}','{$via}','{$tel1}','{$cell}','{$citta}','{$sesso}','{$cap}','{$prov}','{$datanascita}','NS');")) {
                makeHead("Errore");
                echo "<br><br><div id=\"msg\" align=\"center\" style=\"font-size:16px; color: #FF0000\">ERRORE inserimento dati, ti prego di contattare il WebMaster segnalando questo errore.</div>\n";
                echo "<br><br><div id=\"msg\" align=\"center\" style=\"font-size:16px;\"><a style='color: #0000FF;' href='admin.php?iscr=" . $_GET['iscr'] . "'>Ritorna all'iscrizione.</a></div>\n";
                $db->close();
                unset($db);
                makeTail();
                exit;
            }
            $db->query("SELECT id FROM anagrafiche WHERE nome = '" . $nome . "' AND cognome = '" . $cognome . "' LIMIT 1");
            if (!$db->next_record()) {
                makeHead("Errore");
                echo "<br><br><div id=\"msg\" align=\"center\" style=\"font-size:16px; color: #FF0000\">ERRORE prima dell'inserimento iscrizione, ti prego di contattare il WebMaster segnalando questo errore.</div>\n";
                echo "<br><br><div id=\"msg\" align=\"center\" style=\"font-size:16px;\"><a style='color: #0000FF;' href='admin.php?iscr=" . $_GET['iscr'] . "'>Ritorna all'iscrizione.</a></div>\n";
                $db->close();
                unset($db);
                makeTail();
                exit;
            }
            if (!$db->query("INSERT INTO iscrizioni (idgita,idassociato,idresp) VALUES (" . $_GET['iscr'] . "," . $db->record['id'] . "," . $db->record['id'] . ");")) {
                makeHead("Errore");
                echo "<br><br><div id=\"msg\" align=\"center\" style=\"font-size:16px; color: #FF0000\">ERRORE inserimento iscrizione, ti prego di contattare il WebMaster segnalando questo errore.</div>\n";
                echo "<br><br><div id=\"msg\" align=\"center\" style=\"font-size:16px;\"><a style='color: #0000FF;' href='admin.php?iscr=" . $_GET['iscr'] . "'>Ritorna all'iscrizione.</a></div>\n";
                $db->close();
                unset($db);
                makeTail();
                exit;
            }
            makeHead("Complimenti");
            echo "<br><br><div id=\"msg\" align=\"center\" style=\"font-size:16px; color: #0000FF\">COMPLIMENTI. Ti sei iscritto alla gita.</div>\n";
            echo "<br><br><div id=\"msg\" align=\"center\" style=\"font-size:16px;\"><a style='color: #0000FF;' href='index.php'>Ritorna alle gite.</a></div>\n";
            $db->close();
            unset($db);
            makeTail();
            exit;
        }
        makeHead("Iscrizione");
        $db->close();
        unset($db);
        $message = "";
        include "lib/check_login.php";
        if (!isset($user)) {
            return;
        }
        $user->iscrizione($_GET['iscr']);
    } else {
        echo "Errore iscr_gita, nessuna gita selezionata";
    }
}
Esempio n. 23
0
<?php

require_once "support/config.php";
if (!isLoggedIn()) {
    toLogin();
    die;
}
if (!AllowUser(array(1, 2))) {
    redirect("index.php");
}
makeHead("Audit Log");
?>

<?php 
require_once "template/header.php";
require_once "template/sidebar.php";
?>
  <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
          <h1>
            Audit Log
          </h1>
        </section>

        <!-- Main content -->
        <section class="content">

          <!-- Main row -->
          <div class="row">
Esempio n. 24
0
require_once 'support/config.php';
if (!isLoggedIn()) {
    toLogin();
    die;
}
if (!AllowUser(array(1))) {
    redirect("index.php");
}
if (!empty($_GET['id'])) {
    $department = $con->myQuery("SELECT id,name,address FROM locations WHERE id=?", array($_GET['id']))->fetch(PDO::FETCH_ASSOC);
    if (empty($department)) {
        Modal("Invalid Location Selected.");
        redirect("locations.php");
    }
}
makeHead("Locations");
?>
<div id='wrapper'>
<?php 
require_once 'template/navbar.php';
?>
</div>

<div id="page-wrapper">
            <div class="row">
                <div class="col-lg-12">
                    <h1 class="page-header"> Locations</h1>
                </div>

                <!-- /.col-lg-12 -->
            </div>
Esempio n. 25
0
<?php

require_once 'support/config.php';
if (!isLoggedIn()) {
    toLogin();
    die;
}
if (!AllowUser(array(1, 2, 3))) {
    redirect("index.php");
}
makeHead("Asset Activity Reports");
?>
<div id='wrapper'>
<?php 
require_once 'template/navbar.php';
?>
</div>

<div id="page-wrapper">
            <div class="row">
                <div class="col-lg-12">
                    <h1 class="page-header">Asset Activity Report</h1>
                </div>

                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
            <div class="row">
                <div class='col-lg-12'>
                    <?php 
Alert();
Esempio n. 26
0
require_once 'support/config.php';
if (!isLoggedIn()) {
    toLogin();
    die;
}
if (!AllowUser(array(1, 2))) {
    redirect("index.php");
}
if (!empty($_GET['id'])) {
    $department = $con->myQuery("SELECT id,name,terms FROM depreciations WHERE id=?", array($_GET['id']))->fetch(PDO::FETCH_ASSOC);
    if (empty($department)) {
        Modal("Invalid Depreciation Selected.");
        redirect("depreciations.php");
    }
}
makeHead("Depreciations");
?>
<div id='wrapper'>
<?php 
require_once 'template/navbar.php';
?>
</div>

<div id="page-wrapper">
            <div class="row">
                <div class="col-lg-12">
                    <h1 class="page-header"> Depreciations</h1>
                </div>

                <!-- /.col-lg-12 -->
            </div>
Esempio n. 27
0
<?php

require_once "support/config.php";
if (!isLoggedIn()) {
    toLogin();
    die;
}
makeHead();
?>

<?php 
require_once "template/header.php";
require_once "template/sidebar.php";
?>
 	<div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
          <h1 class='page-header text-center text-green'>
            Dashboard
          </h1>
        </section>
        <div class='col-md-12'>
            <?php 
Alert();
?>
        </div>
        <!-- Main content -->
        <section class="content">
            <?php 
if (AllowUser(array(1, 2))) {
    ?>
Esempio n. 28
0
<?php

require_once 'support/config.php';
if (!isLoggedIn()) {
    toLogin();
    die;
}
if (!empty($_GET['id'])) {
    $department = $con->myQuery("SELECT id,name FROM manufacturers WHERE id=?", array($_GET['id']))->fetch(PDO::FETCH_ASSOC);
    if (empty($department)) {
        Modal("Invalid Manufacturer Selected.");
        redirect("manufacturers.php");
    }
}
makeHead("Manufacturers");
?>
<div id='wrapper'>
<?php 
require_once 'template/navbar.php';
?>
</div>

<div id="page-wrapper">
            <div class="row">
                <div class="col-lg-12">
                    <h1 class="page-header"> Manufacturers</h1>
                </div>

                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
    die;
}
if (!AllowUser(array(1, 2, 3))) {
    redirect("index.php");
}
if (!empty($_GET['date_start'])) {
    $date_start = date_create($_GET['date_start']);
} else {
    $date_start = "";
}
if (!empty($_GET['date_end'])) {
    $date_end = date_create($_GET['date_end']);
} else {
    $date_end = "";
}
makeHead("Asset Depreciation Report");
require_once "template/header.php";
require_once "template/sidebar.php";
?>
<div class='content-wrapper'>
    <div class='content-header'>
        <h1 class='page-header text-center text-green'>Asset Maintenance Report</h1>
    </div>
    <section class='content'>
        <div class="row">
                <div class='col-lg-12'>
                    <?php 
Alert();
?>
                    <div class='col-sm-12'>
                      <form method='get'>
Esempio n. 30
0
require_once 'support/config.php';
if (!isLoggedIn()) {
    toLogin();
    die;
}
if (!AllowUser(array(1, 2))) {
    redirect("index.php");
}
if (!empty($_GET['id'])) {
    $department = $con->myQuery("SELECT id,name FROM asset_maintenance_types WHERE id=?", array($_GET['id']))->fetch(PDO::FETCH_ASSOC);
    if (empty($department)) {
        Modal("Invalid Maintenance Type Selected.");
        redirect("maintenance_types.php");
    }
}
makeHead("Maintenance Types");
require_once "template/header.php";
require_once "template/sidebar.php";
?>
<div class='content-wrapper'>
    <div class="content-header">
        <h1 class='page-header text-center text-green'>Maintenance Types</h1>
    </div>
    <section class='content'>
        <div class="row">
                <div class='col-lg-12'>
                    <?php 
Alert();
?>
                    <div class='row'>
                        <div class='col-sm-12'>