示例#1
0
                break;
            case "about-acknowledgements":
                $page = $config->basedir . "/" . $config->docdir . '/about-acknowledgements_' . $lang . '.php';
                include $page;
                break;
            case "about-thanks":
                $page = $config->basedir . "/" . $config->docdir . '/about-thanks_' . $lang . '.php';
                include $page;
                break;
                //"about-twitter"
            //"about-twitter"
            default:
                if ($do && $do != "home") {
                    // for a specific page that doesn't exist...
                    echo "<span style='color:red;'>" . $i18n->message['page-not-available'][$lang] . "</span>\n";
                }
                $page = $config->basedir . "/" . $config->docdir . '/home_' . $lang . '.php';
                include $page;
                break;
        }
    }
}
// main footer
// não faz sentido colocar a data na página de notícias, ou nos resultados da pesquisa
if ($do != "news-feeds" && $do != "search" && $do != 'collections' && $do != 'renoir' && $do != 'sitesearch' && $do != 'tag') {
    getLastModified($page);
}
?>
	
</body>
</html>
示例#2
0
<?php

include "functions.php";
// $con = mysqli_connect("localhost","root","","db_sms");
// include("../connection/config.php");
date_default_timezone_set("Asia/Manila");
$con = db_connect();
$dateModified = date("Y-m-d H:i:s");
$query = mysqli_query($con, "UPDATE sms_subsubcat SET M=REPLACE(QTY, ',', '')*REPLACE(UM, ',', '')");
$query1 = mysqli_query($con, "UPDATE sms_subsubcat SET L=REPLACE(QTY, ',', '')*REPLACE(UL, ',', '')");
$query2 = mysqli_query($con, "UPDATE sms_subsubcat SET AMOUNT=REPLACE(M, ',', '')+REPLACE(L, ',', '')");
$query3 = mysqli_query($con, "UPDATE sms_subsubcat SET PROFIT_AMOUNT=REPLACE(AMOUNT, ',', '')*F");
$dateMod = getLastModified();
$dateCre = getLastCreated();
$getLastAdmin = getLastAdmin();
if ($getLastAdmin) {
    $name = $getLastAdmin["EMPSURNAME"] . ", " . $getLastAdmin["EMPNAME"];
} else {
    $name = "";
}
$response = array("dateMod" => date("M d, Y h:i A", strtotime($dateMod)), "dateCre" => date("M d, Y h:i A", strtotime($dateCre)), "adminName" => $name);
echo jsonify($response);