コード例 #1
0
ファイル: edit_profile.php プロジェクト: caseyi/BLIS
<?php

#
# Main page for editting user profile
#
include "redirect.php";
include "includes/header.php";
LangUtil::setPageId("edit_profile");
$pwd_tip = LangUtil::getPageTerm("TIPS_CASEPWD");
$page_elems = new PageElems();
$page_elems->getSideTip(LangUtil::$generalTerms["TIPS"], $pwd_tip);
$user_profile = get_user_by_id($_SESSION['user_id']);
?>
<script type='text/javascript'>
$(document).ready(function(){
	$('#curr_pwd_error').hide();
	$('#new_pwd1_error').hide();
	$('#new_pwd2_error').hide();
	$('#pwd_match_error').hide();
	$('#pwd_len_error').hide();
	$('#lang_id').attr("value", "<?php 
echo $user_profile->langId;
?>
");
});

function right_load1()
{
	$('#change_pwd_div').hide();
	$('#edit_profile_div').show();
	$('#err_msg').hide();
コード例 #2
0
ファイル: login.php プロジェクト: caseyi/BLIS
CONTENT="1; URL=http://{$_SERVER['SERVER_ADDR']}:4001/login.php">
</head>
</html>
content;
file_put_contents($file, $content);
session_start();
# If already logged in, redirect to home page
if (isset($_SESSION['user_id'])) {
    header("Location: home.php");
}
include "includes/header.php";
LangUtil::setPageId("login");
$page_elems = new PageElems();
//$login_tip = LangUtil::getPageTerm("TIPS_NEWPWD");
$login_tip = "If you have forgotten your password then please send an email to '*****@*****.**' with the subject 'Password'.<br> New password will be sent to you.";
$page_elems->getSideTip(LangUtil::getGeneralTerm("TIPS"), $login_tip);
?>
<style type="text/css"> 
	.btn {
		color:white; 
		background-color:#3B5998; 
		border-style:none; 
		font-weight:bold; 
		font-size:14px; 
		height:28px; 
		width:65px;
		cursor:pointer;
	}
</style> 

<script type='text/javascript'>
コード例 #3
0
ファイル: home.php プロジェクト: nchopra/C4G-BLIS
<?php

include "redirect.php";
include "includes/header.php";
LangUtil::setPageId("home");
$page_elems = new PageElems();
$profile_tip = LangUtil::getPageTerm("TIPS_PWD");
$page_elems->getSideTip(LangUtil::getGeneralTerm("TIPS"), $profile_tip);
# Enable JavaScript for recording user props and latency values
# Attaches record.js to this HTML
$script_elems->enableLatencyRecord();
?>

<br>
<span class='page_title'><?php 
echo LangUtil::getTitle();
?>
</span>
<br><br>

<?php 
echo LangUtil::getPageTerm("WELCOME") . ", " . $_SESSION['username'] . ".<br><br>";
echo LangUtil::getPageTerm("TIPS_BLISINTRO");
?>

<br><br>

<?php 
# If technician user, show lab workflow
if ($_SESSION['user_level'] == $LIS_TECH_RW || $_SESSION['user_level'] == $LIS_TECH_SHOWPNAME || $_SESSION['user_level'] == $LIS_TECH_RO) {
    //$page_elems->getLabConfigStatus($_SESSION['lab_config_id']);