Esempio n. 1
0
        echo "Name,Email,Date,Type\r\n";
        $query = "SELECT * FROM \n\t\t          Diary, MorbidityEntry, Mothers \n\t\t          LEFT JOIN MotherInfo ON (Mothers.mid=MotherInfo.mid) \n\t\t\t\t\t\t\tWHERE \n\t\t\t\t\t\t\tEntryType = 4 AND \n\t\t\t\t\t\t\tDiary.mid = Mothers.mid AND \n\t\t\t\t\t\t\tDiary.EntryId = MorbidityEntry.EntryId AND {$where}";
        $result = mysql_query($query);
        while ($row = mysql_fetch_array($result)) {
            printf("\"%s\",\"%s\",\"%s\",\"%s\"\r\n", $row['Name'], $row['email'], getDateTime($row['EntryDate']), getVocab('morb-type', $row['Type']));
        }
    }
    exit;
}
initialize();
$mothers = getMotherInfo();
?>

<head>
<?php 
head_tag("Admin LACTOR - " . _("Display Data"));
?>
</head>


<body>
<div id="maincontainer">

<?php 
page_header();
admin_menu(1);
?>

<div id="pagecontent">

<div id="registercontent">
Esempio n. 2
0
<?php

include_once "includes/general.php";
include_once "includes/db.php";
initialize();
loggedIn();
db_connect();
loadVocabulary();
?>

<head>
<?php 
head_tag("LACTOR - " . _("Profile"));
?>
<link rel="stylesheet" href="css/profile.css" type="text/css" media="all" />
<script type='text/javascript' src='js/passwords.js'></script>
</head>


<body>
<div id="maincontainer">

<?php 
page_header();
page_menu(PAGE_PROFILE);
?>

<div id="pagecontent">
<?php 
if (isset($_SESSION['s_mid'])) {
    $_SESSION['Smessage'] = "Logged in as scientist.";
Esempio n. 3
0
<!DOCTYPE html>
<?php 
include_once "../includes/general.php";
include_once "../includes/db.php";
initialize();
loggedIn();
//db_connect();
loadVocabulary();
?>


<head>
<?php 
head_tag("LACTOR - " . _("Inbox"));
?>
</head>

<body>
<div id="maincontainer">

<?php 
page_header();
admin_menu(ADMIN_PAGE_INBOX);
?>

		
<!-- Page Content -->
<div id="pagecontent">
<div class='message dynamic' style='display:none'></div>
<?php 
if (isset($_SESSION['s_mid'])) {
Esempio n. 4
0
<?php

include_once "includes/general.php";
include_once "includes/db.php";
initialize();
db_connect();
loggedIn();
?>

<head>
<?php 
head_tag("LACTOR - " . _("Mother Information"));
?>
</head>


<body>
<div id="maincontainer">
<?php 
page_header();
?>

<div id="pagecontent">
<?php 
displayMessage('InfoMessage', 'InfoDetails', 'InfoType');
?>
 
<?php 
if (!isset($_SESSION['InfoInput'][0])) {
    $_SESSION['InfoInput'][0] = "";
    $_SESSION['InfoInput'][1] = "";
Esempio n. 5
0
        echo "\"System Feedback Survey Results\"\n\n\n";
        for ($i = 0; $i < 10; $i++) {
            writeSystemFeedback($system_feedback_array, $motherids, $i);
        }
        echo "\"System Perception Survey Results\"\n\n\n";
        for ($i = 0; $i < 7; $i++) {
            writeSystemPerception($system_perception_array, $motherids, $i);
        }
        exit;
    }
}
?>

<head>
<?php 
head_tag("Admin pCare - " . _("User Accounts"));
?>
</head>


<body>
<div id="maincontainer">

<?php 
page_header();
admin_menu(3);
?>

<div id="pagecontent">
<?php 
displayMessage(@$_SESSION['AccountMessage'], @$_SESSION['AccountDetails'], @$_SESSION['AccountType']);
Esempio n. 6
0
<!DOCTYPE html>
<?php 
include_once "includes/general.php";
include_once "includes/db.include.php";
initialize();
loggedIn();
db_connect();
loadVocabulary();
?>


<head>
<?php 
head_tag("LACTOR - " . _("Notifications"));
?>
</head>

<body>
  <div id="maincontainer">

    <?php 
page_header();
?>
    <?php 
page_menu(PAGE_NOTIFICATIONS);
?>
    <!-- Page Content -->
    <div id="pagecontent">
      <?php 
if (isset($_SESSION['s_mid'])) {
    $_SESSION['Smessage'] = "Logged in as scientist.";
Esempio n. 7
0
<?php

include_once "includes/general.php";
initialize();
loggedIn();
?>

<head>
<?php 
head_tag("LACTOR - " . _("Graceland University Research Participant Consent Form"));
?>
<style type='text/css'>
#errormessage {
	background: #FFEBE8;
	border-style: solid;
	border-width: 1px;
	border-color:  #DD3C10;
	padding: 5px;
	width: 450px; 
	overflow:auto;
}

h3 {
  text-decoration: underline;
}
</style>
</head>

<body>
<div id="maincontainer">
<?php 
<?php

include_once "includes/general.php";
initialize();
loggedIn();
?>

<head>
<?php 
head_tag("LACTOR - " . _("System Perception"));
?>
</head>

<body>
<div id="maincontainer">
<?php 
page_header();
?>

<div id="pagecontent">
<?php 
displayMessage('PerMessage', 'PerDetails', 'PerType');
?>
 

<p><?php 
echo _("Please fill out all the fields.");
?>
</p>
<p><?php 
echo _("A maximum of 500 letters per field.");
 public function html_head_begin()
 {
     return head_tag();
 }
Esempio n. 10
0
    exit;
}
function yesOrNo($t)
{
    if ($t == 1) {
        return "No";
    } else {
        return "Yes";
    }
}
initialize();
?>

<head>
<?php 
head_tag("Admin LACTOR - Notifications");
?>
</head>


<body>
<div id="maincontainer">

<?php 
page_header();
admin_menu(6);
?>

<div id="pagecontent">

<div id="registercontent">
Esempio n. 11
0
<?php

include_once "includes/general.php";
include_once "includes/db.php";
initialize();
loggedIn();
db_connect();
loadVocabulary();
?>

<head>
<?php 
head_tag("LACTOR - Tutorials");
?>
<link rel="stylesheet" href="css/profile.css" type="text/css" media="all" />
</head>

<body>
<div id="maincontainer">

<?php 
page_header();
page_menu(PAGE_EDUCATIONAL_MATERIALS);
?>

<div id="pagecontent">
<div id="registercontent">


<?php 
if (isset($_SESSION['s_mid'])) {
<?php

include_once "includes/general.php";
initialize();
loggedIn();
?>

<head>
<?php 
head_tag("LACTOR - " . _("Self-efficacy Survey"));
?>
<style type='text/css'>
.nowrap {
  white-space: nowrap;
}
td > input {
  margin: 10px;
}
th, td {
  padding: 2px;
}
</style>
</head>

<body>
<div id="maincontainer">
<?php 
page_header();
?>

<div id="pagecontent">
Esempio n. 13
0
<?php

include_once "includes/general.php";
include_once "includes/db.php";
initialize();
loggedIn();
$db = db_connect();
loadVocabulary();
?>

<head>
<?php 
head_tag("LACTOR - " . _("Add Entry"));
?>


</head>



<body>
<div id="maincontainer">


<?php 
page_header();
page_menu(PAGE_ADD_ENTRY);
?>

<div id="pagecontent">
<div id="registercontent">
Esempio n. 14
0
<?php

include_once "includes/general.php";
initialize();
?>

<head>
<?php 
head_tag("LACTOR - Security Information");
?>
<link rel="stylesheet" href="css/login.css" type="text/css" media="all" />
</head>

<body>
<div id="maincontainer">
<?php 
page_header();
?>

<div id="pagecontent">

<h1>How we keep your information secure:</h1>
<p> We never store your password unencrypted, instead the password is encrypted 
by 
<a href="http://en.wikipedia.org/wiki/Salt_(cryptography)">salting</a> 
it and hashing it with 
<a href="http://en.wikipedia.org/wiki/SHA-2">SHA-256</a>, which is irreversible. 
This is why we have to reset your password if it is lost or forgotten, 
as even we have no way of seeing what your password is. This ensures that even
in the event of a data breach, your password is safe.<p>
<p> 
Esempio n. 15
0
<?php

include_once "../includes/general.php";
initialize();
?>

<head>
<?php 
head_tag("Admin LACTOR - " . _("Reset Password"));
?>
<link rel="stylesheet" href="css/base.css" type="text/css" media="all" />
</head>

<body>
<div id="maincontainer">
<?php 
page_header();
?>

<div id="pagecontent">
<?php 
displayMessage('ResetMessage', 'ResetDetails', 'ResetType');
?>
 

  <div id="container">
    <div class="tabs">
      <ul class="menu">
        <li class="active"><a href="#reset"><?php 
echo _("Reset Password");
?>
Esempio n. 16
0
<?php

include_once "includes/general.php";
initialize();
loggedIn();
?>

<head>
<?php 
head_tag("LACTOR - " . _("Research Participant Consent Form"));
?>
<style type='text/css'>
#errormessage {
	background: #FFEBE8;
	border-style: solid;
	border-width: 1px;
	border-color:  #DD3C10;
	padding: 5px;
	width: 450px; 
	overflow:auto;
}

h3 {
  text-decoration: underline;
}
</style>
</head>

<body>
<div id="maincontainer">
<?php 
Esempio n. 17
0
<?php

include_once "../includes/general.php";
initialize();
loggedIn();
?>

<head>
<?php 
head_tag("Admin LACTOR - " . _("Change Password"));
?>
<script type='text/javascript' src='js/passwords.js'></script>
</head>

<body>
<div id="maincontainer">
<?php 
page_header();
?>

<div id="pagecontent">
  <?php 
displayMessage('ChangePassMessage', 'ChangePassDetails', 'ChangePassType');
?>
 


  <div id="container">
    <div class="tabs">
      <ul class="menu">
        <li><a href="#password"><?php 
Esempio n. 18
0
<?php

include_once "includes/general.php";
initialize();
?>

<head>
<?php 
head_tag("LACTOR - " . _("Reset Password"));
?>
<link rel="stylesheet" href="css/base.css" type="text/css" media="all" />
</head>

<body>
<div id="maincontainer">
<?php 
page_header();
?>

<div id="pagecontent">
<?php 
displayMessage('ResetMessage', 'ResetDetails', 'ResetType');
?>
 

  <div id="container">
    <div class="tabs">
      <ul class="menu">
        <li class="active"><a href="#reset"><?php 
echo _("Reset Password");
?>
Esempio n. 19
0
<?php

include_once "../includes/general.php";
include_once "../includes/db.include.php";
loggedIn();
initialize();
db_connect();
loadVocabulary();
?>


<head>
	<?php 
head_tag("Admin LACTOR - Dashboard");
?>
  <style type="text/css">
    th { 
      background-color: #ddd;
    }
    td:first-child {
      background-color: #ddd;
    }
  </style>
</head>

<body>
	<div id="maincontainer">
	<?php 
page_header();
?>
	<?php 
<?php

include_once "includes/general.php";
initialize();
loggedIn();
?>

<head>
<?php 
head_tag("LACTOR - " . _("Postnatal Depression"));
?>
<style type='text/css'>
label {
  padding-right: 20px;
  white-space: nowrap;
}
.nowrap {
  white-space: nowrap;
}
</style>
</head>

<body>
<div id="maincontainer">
<?php 
page_header();
?>

<div id="pagecontent">
<?php 
displayMessage('PerMessage', 'PerDetails', 'PerType');
Esempio n. 21
0
<?php

include_once "../includes/general.php";
initialize();
?>

<head>
<?php 
head_tag("Admin LACTOR - " . _("Login"));
?>
<link rel="stylesheet" href="css/base.css" type="text/css" media="all" />
</head>

<body>
<div id="maincontainer">
<?php 
page_header();
?>

<div id="pagecontent">
<?php 
displayMessage('LoginMessage', 'LoginDetails', 'LoginType');
?>
 

<div id="container">
<div class="tabs">
  <ul class="menu">
  <li class="active"><a href="#login"><?php 
echo _("Login");
?>
<?php

include_once "includes/general.php";
initialize();
loggedIn();
?>

<head>
<?php 
head_tag("LACTOR - System Perception");
?>
<style type='text/css'>
label {
  padding-right: 20px;
  white-space: nowrap;
}
.nowrap {
  white-space: nowrap;
}
</style>
</head>

<body>
<div id="maincontainer">
<?php 
page_header();
?>

<div id="pagecontent">
<?php 
displayMessage('PerMessage', 'PerDetails', 'PerType');
Esempio n. 23
0
if (strpos(strtolower($_SERVER['HTTP_USER_AGENT']), 'windows') > 0) {
    $mobile_browser = 0;
}
if ($mobile_browser > 0 && (!isset($_SESSION['mobile']) || $_SESSION['mobile'] != 0)) {
    header("Location: https://www.lactor.org" . HTTP_ROOT . "/app");
    header("HTTP/1.1 302 Found");
    exit;
}
if (loggedIn(false)) {
    go('add_entry.php');
}
?>

<head>
<?php 
head_tag("LACTOR - " . _("Login"));
?>
</head>
<style type="text/css" media="screen">
#loginBox { 
  width: 40%;
}
#loginContainer {
  position: relative;
}
#messageBox {
  width: 50%;
  border: 1px solid #444;
  font-size: 1.2em;
  padding: 1em;
  padding-bottom: 1.5em;
Esempio n. 24
0
<?php

include_once "includes/general.php";
initialize();
loggedIn();
?>

<head>
<?php 
head_tag("LACTOR - Change Password");
?>
<script type='text/javascript' src='js/passwords.js'></script>
</head>

<body>
<div id="maincontainer">
<?php 
page_header();
?>

<div id="pagecontent">
  <?php 
displayMessage('ChangePassMessage', 'ChangePassDetails', 'ChangePassType');
?>
 


  <div id="container">
    <div class="tabs">
      <ul class="menu">
        <li><a href="#password"><?php 
Esempio n. 25
0
<?php

include_once "../includes/general.php";
initialize();
?>

<head>
<?php 
head_tag("Admin LACTOR - " . _("Notification Instructions"));
?>
<link rel="stylesheet" href="css/login.css" type="text/css" media="all" />
</head>

<body>
<div id="maincontainer">
<?php 
page_header();
?>

<div id="pagecontent">
<h2><?php 
echo _("Notification Instructions");
?>
</h2> <br/>

<h3> <?php 
echo _("Sleep Problem");
?>
s </h3>
<p>1. <?php 
echo _("Wake the baby every 3 hours.");
Esempio n. 26
0
<?php

include_once "includes/general.php";
initialize();
?>

<head>
<?php 
head_tag("LACTOR - Internet Explorer 8");
?>
<link rel="stylesheet" href="css/login.css" type="text/css" media="all" />
</head>

<body>
<div id="maincontainer">
<?php 
page_header();
?>

<div id="pagecontent">

<h1>End of support for Internet Explorer 8</h1>
<p>
As of April 8, 2014, Microsoft is dicontuing support for Windows XP. We have
continued to support Internet Explorer 8 because any users of Windows XP
are unable to install later versions of this browser. Since Microsoft
will no longer be supporting Windows XP after this date, we feel it 
is no longer necessary.
</p>
<p>
This change will allow us to increase security on Lactor and keep
Esempio n. 27
0
<?php

include_once "../includes/general.php";
include_once "../includes/db.include.php";
initialize();
loggedIn();
db_connect();
loadVocabulary();
?>

<head>
<?php 
head_tag("Admin LACTOR - " . _("Mother Log In"));
?>
</head>


<body>
<div id="maincontainer">

<?php 
page_header();
admin_menu(2);
?>

<div id="pagecontent">
<?php 
displayMessage('ProxyMessage', 'ProxyDetails', 'ProxyType');
?>
 
Esempio n. 28
0
<?php

include_once "includes/general.php";
include_once "includes/db.php";
initialize();
loggedIn();
db_connect();
loadVocabulary();
?>

<head>
<?php 
head_tag("LACTOR - " . _("Tutorials"));
?>
<link rel="stylesheet" href="css/profile.css" type="text/css" media="all" />
</head>

<body>
<div id="maincontainer">

<?php 
page_header();
page_menu(PAGE_TUTORIALS);
?>

<div id="pagecontent">
<div id="registercontent">


<?php 
if (isset($_SESSION['s_mid'])) {
Esempio n. 29
0
<?php

defined('BASEPATH') or exit('No direct script access allowed');
echo html_tag('lang="' . $this->lang->code() . '" dir="' . $this->lang->direction() . '"');
echo head_tag();
echo meta_charset();
echo base_href();
echo ie_edge();
template_title();
template_metadata();
echo viewport();
echo favicon();
echo apple_touch_icon_precomposed();
echo cleartype_ie();
echo '<link href="http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700&subset=all" rel="stylesheet" type="text/css"/>';
echo '<link href="../admin/assets/global/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>';
echo '<link href="../admin/assets/global/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>';
echo '<link href="../admin/assets/global/plugins/uniform/css/uniform.default.css" rel="stylesheet" type="text/css"/>';
echo ' <link href="../admin/assets/global/plugins/bootstrap-switch/css/bootstrap-switch.min.css" rel="stylesheet" type="text/css"/>';
// END GLOBAL MANDATORY STYLES -->
// BEGIN PAGE LEVEL STYLES -->
echo '<link rel="stylesheet" type="text/css" href="../admin/assets/global/plugins/select2/select2.css"/>';
echo '<link href="../admin/assets/global/plugins/jquery-file-upload/blueimp-gallery/blueimp-gallery.min.css" rel="stylesheet"/>';
echo '<link href="../admin/assets/global/plugins/jquery-file-upload/css/jquery.fileupload.css" rel="stylesheet"/>';
echo '<link href="../admin/assets/global/plugins/jquery-file-upload/css/jquery.fileupload-ui.css" rel="stylesheet"/>';
// END PAGE LEVEL SCRIPTS -->
// BEGIN THEME STYLES -->
echo '<link href="../admin/assets/global/css/components.css" id="style_components" rel="stylesheet" type="text/css"/>';
echo '<link href="../admin/assets/global/css/plugins.css" rel="stylesheet" type="text/css"/>';
echo '<link href="../admin/assets/admin/layout/css/layout.css" rel="stylesheet" type="text/css"/>';
echo '<link id="style_color" href="../admin/assets/admin/layout/css/themes/darkblue.css" rel="stylesheet" type="text/css"/>';
Esempio n. 30
0
} else {
    $_SESSION['dateTo'] = date("Y-m-d");
}
if ($_SESSION['dateFrom'] > $_SESSION['dateTo']) {
    $_SESSION['ViewMessage'] = "Date Error";
    $_SESSION['ViewDetails'] = "Date To has to be the same date or a date before Date From.";
    $_SESSION['ViewType'] = 3;
}
$date1 = modDate2($_SESSION['dateFrom']);
$date2 = modDate2($_SESSION['dateTo']);
?>


<head>
<?php 
head_tag("LACTOR - " . _("View Diary"));
?>
<!--[if lt IE 9]><script language="javascript" type="text/javascript" src="js/jqplot/excanvas.js"></script><![endif]-->
<script language="javascript" type="text/javascript" src="js/jqplot/jquery.jqplot.js"></script>
<script language="javascript" type="text/javascript" src="js/jqplot/plugins/jqplot.barRenderer.js"></script>
<script language="javascript" type="text/javascript" src="js/jqplot/plugins/jqplot.canvasAxisTickRenderer.js"></script>
<script language="javascript" type="text/javascript" src="js/jqplot/plugins/jqplot.canvasTextRenderer.js"></script>
<script language="javascript" type="text/javascript" src="js/jqplot/plugins/jqplot.dateAxisRenderer.js"></script>
<link rel="stylesheet" type="text/css" href="js/jqplot/jquery.jqplot.css" />
</head>

<body>
<div id="maincontainer">

<?php 
page_header();