Commit ef8dfe5a authored by Hillesheim's avatar Hillesheim
Browse files

Finalizado cadastro e alteracao de turma

parent 762ddebb
Showing with 648 additions and 549 deletions
+648 -549
<?php
require_once DP_BASE_DIR . "/modules/initiating/initiating.class.php";
require_once DP_BASE_DIR . "/modules/projects/projects.class.php";
require_once DP_BASE_DIR . "/modules/dotproject_plus/feedback/feedback.php";
//initialize user feedback messages configuration and history in the current session
//$sid = session_id();
......
......@@ -3,7 +3,6 @@ if (!defined('DP_BASE_DIR')) {
die('You should not access this file directly.');
}
require_once (DP_BASE_DIR . "/modules/instructor_admin/class.class.php");
$AppUI->savePlace();
$class_id = "";
$class = new CClass();
if (isset($_GET["class_id"])) {
......@@ -11,265 +10,96 @@ if (isset($_GET["class_id"])) {
$class->load($class_id);
}
?>
<!-- include libraries for right click menu -->
<script type="text/javascript" src="./modules/dotproject_plus/milonic_right_click_menu/milonic_src.js"></script>
<script type="text/javascript" src="./modules/dotproject_plus/milonic_right_click_menu/mmenudom.js"></script>
<script type="text/javascript" src="./modules/dotproject_plus/milonic_right_click_menu/contextmenu.js"></script>
<script type="text/javascript" src="./modules/dotproject_plus/milonic_right_click_menu/menu_data_activities.js"></script>
<a href="http://www.milonic.com/" style="display: none">DHTML JavaScript Menu By Milonic.com</a>
<!-- include libraries for lightweight messages -->
<link type="text/css" rel="stylesheet" href="./modules/timeplanning/js/jsLibraries/alertify/alertify.css" media="screen"></link>
<script type="text/javascript" src="./modules/timeplanning/js/jsLibraries/alertify/alertify.js"></script>
<form name="formNewClass">
<input type="hidden" name="dosql" value="do_register_class" />
<input type="hidden" name="class_id" value="<?=$class->class_id?>" />
<div class="form-group">
<span class="required"></span>
<?=$AppUI->_('requiredField');?>
</div>
<div class="form-group">
<label for="educational_institution" class="required">
<?=$AppUI->_('LBL_EDUCATIONAL_INSTITUTION')?>
</label>
<input type="text" class="form-control form-control-sm" name="educational_institution" value="<?=$class->educational_institution?>" />
</div>
<div class="form-group">
<label for="course" class="required">
<?=$AppUI->_('LBL_COURSE')?>
</label>
<input type="text" class="form-control form-control-sm" name="course" value="<?=$class->course?>" />
</div>
<div class="form-group">
<label for="disciplin" class="required">
<?=$AppUI->_('LBL_DISCIPLIN')?>
</label>
<input type="text" class="form-control form-control-sm" name="disciplin" value="<?=$class->disciplin?>" />
</div>
<div class="form-group">
<label for="instructor" class="required">
<?=$AppUI->_('LBL_INSTRUCTOR')?>
</label>
<input type="text" class="form-control form-control-sm" name="instructor" value="<?=$class->instructor?>" />
</div>
<div class="row row-period">
<div class="col-md-5">
<div class="form-group">
<label for="number_of_students">
<?=$AppUI->_('LBL_NUMBER_OF_STUDENTS')?>
</label>
<input type="text" class="form-control form-control-sm" name="number_of_students" value="<?=$class->number_of_students?>" />
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<label for="year" class="required">
<?=$AppUI->_('LBL_YEAR')?>
</label>
<select name="year" class="form-control form-control-sm select-2">
<?php
$year = date("Y");
for ($i = 2012; $i <= $year + 1; $i++) {
?>
<option value="<?=$i?>" <?=$class->year == $i ? "selected" : ""?> <?=($year == $i && $class->year == 0) ? "selected" : ""?>>
<?=$i?>
</option>
<?php
}
?>
</select>
</div>
</div>
<div class="col-md-3">
<div class="form-group">
<label for="semester" class="required">
<?=$AppUI->_('LBL_SEMESTER')?>
</label>
<select name="semester" class="form-control form-control-sm select-2">
<option value="1" default <?=$class->semester == 1 ? "selected" : ""?>>1</option>
<option value="2" default <?=$class->semester == 2 ? "selected" : ""?>>2</option>
</select>
</div>
</div>
</div>
</form>
<script>
function rightClickMenuExcludeGroup() {
if (contextObject.parentNode.id.indexOf("group_id_") != -1 || contextObject.parentNode.parentNode.id.indexOf("group_id_") != -1) {
alertify.confirm("<?php echo $AppUI->_("LBL_DELETE_MSG") ?>", function () {
var parentId = contextObject.parentNode.id.indexOf("group_id_") != -1 ? contextObject.parentNode.id : contextObject.parentNode.parentNode.id;
var groupId = parentId.split("group_id_")[1];
document.group_deletion_form.group_id_for_deletion.value = groupId;
document.group_deletion_form.submit();
});
}
}
with (milonic = new menuname("contextMenu")) {
margin = 9;
style = contextStyle;
top = "offset=5";
aI("image=./modules/dotproject_plus/images/trash_small.gif;text=<?php echo $AppUI->_("LBL_EXCLUSION"); ?>;url=javascript:rightClickMenuExcludeGroup();");
}
$(document).ready(function() {
$(".select-2").select2({
allowClear: false,
theme: "bootstrap",
dropdownParent: $(".row-period")
});
});
drawMenus();
function validateForm() {
var isValid = true;
if (document.class.educational_institution.value === "") {
isValid = false;
}
if (document.class.course.value === "") {
isValid = false;
}
if (document.class.instructor.value === "") {
isValid = false;
}
if (document.class.disciplin.value === "") {
isValid = false;
}
if (!isValid) {
setAppMessage("<?php echo $AppUI->_("LBL_FORM_VALIDATION") ?>", APP_MESSAGE_TYPE_WARNING);
}
return isValid;
}
</script>
<a href="index.php?m=instructor_admin"><?php echo $AppUI->_("Instructor Admin") ?> </a>
<br /><br />
<fieldset>
<legend><b><?php echo $AppUI->_("LBL_CLASS_DATA"); ?></b></legend>
<form name="class" action="?m=instructor_admin" method="post" onsubmit="return validateForm()">
<input type="hidden" name="dosql" value="do_register_class" />
<input type="hidden" name="class_id" value="<?php echo $class->class_id ?>" />
<table class="std" >
<tr>
<td><?php echo $AppUI->_("LBL_EDUCATIONAL_INSTITUTION"); ?><span style="color:red">*</span></td>
<td><input style="width:300px" type="text" value="<?php echo $class->educational_institution ?>" name="educational_institution" /></td>
</tr>
<tr>
<td><?php echo $AppUI->_("LBL_COURSE"); ?><span style="color:red">*</span></td>
<td><input style="width:300px" type="text" value="<?php echo $class->course ?>" name="course" /></td>
</tr>
<tr>
<td><?php echo $AppUI->_("LBL_DISCIPLIN"); ?><span style="color:red">*</span></td>
<td><input style="width:300px" type="text" value="<?php echo $class->disciplin ?>" name="disciplin" /></td>
</tr>
<tr>
<td><?php echo $AppUI->_("LBL_INSTRUCTOR"); ?><span style="color:red">*</span></td>
<td><input style="width:300px" type="text" value="<?php echo $class->instructor ?>" name="instructor" /></td>
</tr>
<tr>
<td><?php echo $AppUI->_("LBL_NUMBER_OF_STUDENTS"); ?></td>
<td><input style="width:300px" type="text" value="<?php echo $class->number_of_students ?>" name="number_of_students" /></td>
</tr>
<tr>
<td colspan="2" style="font-weight: bold"><?php echo $AppUI->_("LBL_LECTIVE_PERIOD"); ?></td>
</tr>
<tr>
<td><?php echo $AppUI->_("LBL_YEAR"); ?></td>
<td>
<select name="year">
<?php
$year = date("Y");
for ($i = 2012; $i <= $year + 1; $i++) {
?>
<option value="<?php echo $i ?>" <?php echo $class->year == $i ? "selected" : "" ?> <?php echo ($year == $i && $class->year == 0) ? "selected" : "" ?>>
<?php echo $i ?>
</option>
<?php
}
?>
</select>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<?php echo $AppUI->_("LBL_SEMESTER"); ?>
<select name="semester">
<option value="1" default <?php echo $class->semester == 1 ? "selected" : "" ?> >1</option>
<option value="2" default <?php echo $class->semester == 2 ? "selected" : "" ?>>2</option>
</select>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="submit" value="<?php echo $AppUI->_("LBL_REGISTER_CLASS"); ?>" />
</td>
</tr>
</table>
</form>
</fieldset>
<br />
<?php
if (isset($_GET["class_id"])) {
?>
<fieldset>
<legend><b><?php echo $AppUI->_("LBL_ADD_NEW_GROUPS_FOR_THIS_CLASS"); ?></b> </legend>
<br /><br />
<form action="?m=instructor_admin" method="post">
<input type="hidden" name="dosql" value="do_groups_creation" />
<input type="hidden" name="class_id" value="<?php echo $class->class_id ?>" />
<label for="number_of_groups"><?php echo $AppUI->_("LBL_NUMBER_OF_GROUPS"); ?></label>
<input type="number" name="number_of_groups" id="number_of_groups" />
<input type="submit" value="<?php echo $AppUI->_("LBL_CREATE_GROUPS_ACCOUNTS"); ?>" />
<br /><br />
<span style="color:red">*</span> <?php echo$AppUI->_("LBL_MAXIMUM_NUMBER_OF_GROUPS") ?>
</form>
</fieldset>
<!-- Hidden form to handle group deletion -->
<form action="?m=instructor_admin" method="post" name="group_deletion_form">
<input type="hidden" name="dosql" value="do_group_deletion" />
<input type="hidden" name="class_id" value="<?php echo $class->class_id ?>" />
<input type="hidden" name="group_id_for_deletion" value="" />
</form>
<br />
<fieldset>
<legend><?php echo $AppUI->_("LBL_USERS_FOR_THIS_CLASS"); ?></legend>
<br />
<table class="tbl" width="100%" cellpadding="5" >
<tr>
<th><?php echo $AppUI->_("LBL_LOGIN") ?></th>
<th><?php echo $AppUI->_("LBL_PASSWORD") ?></th>
<th>Link</th>
<th><?php echo $AppUI->_("LBL_PROJECT_CHARTER") ?></th>
<th><?php echo $AppUI->_("LBL_PROJECT_PLAN") ?></th>
<th><?php echo $AppUI->_("LBL_AUTO_EVALUATION") ?></th>
<th>Feedback</th>
</tr>
<?php
$q = new DBQuery();
$q->addTable("dpp_classes_users");
$q->addQuery("user_login,user_password,user_company,user_id");
$q->addWhere("class_id=" . $class_id);
$sql = $q->prepare();
//echo $sql;
$records = db_loadList($sql);
require_once DP_BASE_DIR . "/modules/initiating/initiating.class.php";
foreach ($records as $record) {
$login = $record[0];
$password = $record[1];
$companyId = $record[2];
$userId = $record[3];
//get project and initiating Ids
$initiating_id = -1;
$project_id = -1;
$q = new DBQuery();
$q->addTable("projects");
$q->addQuery("project_id");
$q->addWhere("project_company=" . $companyId);
$sql = $q->prepare();
//echo $sql;
$projects = db_loadList($sql);
foreach ($projects as $project) {
$project_id = $project["project_id"];
$initiating = CInitiating::findByProjectId($project_id);
if (!is_null($initiating)) {
$initiating_id = $initiating->initiating_id;
}
}
?>
<tr id="group_id_<?php echo $userId ?>" onmouseover="setContextDisabled(false)" onmouseout="setContextDisabled(true)">
<td><?php echo $login; ?></td>
<td><?php echo $password; ?></td>
<td align="center">
<a href="index.php?m=companies&a=view&company_id=<?php echo $companyId; ?>" target="_blank">
<?php echo $AppUI->_("LBL_ACCESS_GROUP_PROJECT") ?>
</a>
</td>
<td align="center">
<?php
if ($initiating_id != -1) {
?>
<a href='?m=initiating&a=pdf&id=<?php echo $initiating_id ?>&suppressHeaders=1'>
<img src="./modules/instructor_admin/images/pdf_icon.png" />
</a>
<?php
} else {
?>
<img src="./modules/instructor_admin/images/pdf_icon_disable.png" />
<?php
}
?>
</td>
<td align="center">
<?php
if ($project_id != -1) {
?>
<a href = "modules/timeplanning/view/export_project_plan/export.php?project_id=<?php echo $project_id; ?>&print=0" target = "_blank" style="font-weight: bold">
<img src="./modules/instructor_admin/images/pdf_icon.png" />
</a>
<?php
} else {
?>
<img src="./modules/instructor_admin/images/pdf_icon_disable.png" />
<?php
}
?>
</td>
<td align="center">
<?php
if ($project_id != -1) {
?>
<a href="index.php?m=instructor_admin&a=do_auto_evaluation&user_id=<?php echo $userId; ?>&project_id=<?php echo $project_id ?>&class_id=<?php echo $class_id ?>">
<img src="./modules/instructor_admin/images/word_icon.png" />
</a>
<?php
} else {
?>
<img src="./modules/instructor_admin/images/word_icon_disable.png" />
<?php
}
?>
</a>
</td>
<td align="center">
<a href="index.php?m=instructor_admin&a=view_read_feedback&user_id=<?php echo $userId; ?>&project_id=<?php echo $project_id ?>&class_id=<?php echo $class_id ?>">
<?php echo $AppUI->_("LBL_VIEW_READ_FEEDBACK") ?>
</a>
</td>
</tr>
<?php
}
?>
</table>
<br />
<span style="color:#f00">*</span> <?php echo $AppUI->_("LBL_RIGHT_CLICK_TO_ACTIONS") ?>
</fieldset>
<?php
}
exit();
?>
<?php
if (!defined('DP_BASE_DIR')) {
die('You should not access this file directly.');
}
require_once (DP_BASE_DIR . "/modules/instructor_admin/class.class.php");
$class_id = "";
$class = new CClass();
if (isset($_GET["class_id"])) {
$class_id = $_GET["class_id"];
$class->load($class_id);
}
?>
<script>
// function rightClickMenuExcludeGroup() {
// if (contextObject.parentNode.id.indexOf("group_id_") != -1 || contextObject.parentNode.parentNode.id.indexOf("group_id_") != -1) {
// alertify.confirm("<?php //echo $AppUI->_("LBL_DELETE_MSG") ?>//", function () {
// var parentId = contextObject.parentNode.id.indexOf("group_id_") != -1 ? contextObject.parentNode.id : contextObject.parentNode.parentNode.id;
// var groupId = parentId.split("group_id_")[1];
// document.group_deletion_form.group_id_for_deletion.value = groupId;
// document.group_deletion_form.submit();
// });
// }
// }
//
// with (milonic = new menuname("contextMenu")) {
// margin = 9;
// style = contextStyle;
// top = "offset=5";
// aI("image=./modules/dotproject_plus/images/trash_small.gif;text=<?php //echo $AppUI->_("LBL_EXCLUSION"); ?>//;url=javascript:rightClickMenuExcludeGroup();");
// }
//
// drawMenus();
//
// function validateForm() {
// var isValid = true;
// if (document.class.educational_institution.value === "") {
// isValid = false;
// }
// if (document.class.course.value === "") {
// isValid = false;
// }
// if (document.class.instructor.value === "") {
// isValid = false;
// }
// if (document.class.disciplin.value === "") {
// isValid = false;
// }
// if (!isValid) {
// setAppMessage("<?php //echo $AppUI->_("LBL_FORM_VALIDATION") ?>//", APP_MESSAGE_TYPE_WARNING);
// }
// return isValid;
// }
</script>
<fieldset>
<legend><b><?php echo $AppUI->_("LBL_ADD_NEW_GROUPS_FOR_THIS_CLASS"); ?></b> </legend>
<br /><br />
<form action="?m=instructor_admin" method="post">
<input type="hidden" name="dosql" value="do_groups_creation" />
<input type="hidden" name="class_id" value="<?php echo $class->class_id ?>" />
<label for="number_of_groups"><?php echo $AppUI->_("LBL_NUMBER_OF_GROUPS"); ?></label>
<input type="number" name="number_of_groups" id="number_of_groups" />
<input type="submit" value="<?php echo $AppUI->_("LBL_CREATE_GROUPS_ACCOUNTS"); ?>" />
<br /><br />
<span style="color:red">*</span> <?php echo$AppUI->_("LBL_MAXIMUM_NUMBER_OF_GROUPS") ?>
</form>
</fieldset>
<!-- Hidden form to handle group deletion -->
<form action="?m=instructor_admin" method="post" name="group_deletion_form">
<input type="hidden" name="dosql" value="do_group_deletion" />
<input type="hidden" name="class_id" value="<?php echo $class->class_id ?>" />
<input type="hidden" name="group_id_for_deletion" value="" />
</form>
<br />
<fieldset>
<legend><?php echo $AppUI->_("LBL_USERS_FOR_THIS_CLASS"); ?></legend>
<br />
<table class="tbl" width="100%" cellpadding="5" >
<tr>
<th><?php echo $AppUI->_("LBL_LOGIN") ?></th>
<th><?php echo $AppUI->_("LBL_PASSWORD") ?></th>
<th>Link</th>
<th><?php echo $AppUI->_("LBL_PROJECT_CHARTER") ?></th>
<th><?php echo $AppUI->_("LBL_PROJECT_PLAN") ?></th>
<th><?php echo $AppUI->_("LBL_AUTO_EVALUATION") ?></th>
<th>Feedback</th>
</tr>
<?php
$q = new DBQuery();
$q->addTable("dpp_classes_users");
$q->addQuery("user_login,user_password,user_company,user_id");
$q->addWhere("class_id=" . $class_id);
$sql = $q->prepare();
//echo $sql;
$records = db_loadList($sql);
require_once DP_BASE_DIR . "/modules/initiating/initiating.class.php";
foreach ($records as $record) {
$login = $record[0];
$password = $record[1];
$companyId = $record[2];
$userId = $record[3];
//get project and initiating Ids
$initiating_id = -1;
$project_id = -1;
$q = new DBQuery();
$q->addTable("projects");
$q->addQuery("project_id");
$q->addWhere("project_company=" . $companyId);
$sql = $q->prepare();
//echo $sql;
$projects = db_loadList($sql);
foreach ($projects as $project) {
$project_id = $project["project_id"];
$initiating = CInitiating::findByProjectId($project_id);
if (!is_null($initiating)) {
$initiating_id = $initiating->initiating_id;
}
}
?>
<tr id="group_id_<?php echo $userId ?>" onmouseover="setContextDisabled(false)" onmouseout="setContextDisabled(true)">
<td><?php echo $login; ?></td>
<td><?php echo $password; ?></td>
<td align="center">
<a href="index.php?m=companies&a=view&company_id=<?php echo $companyId; ?>" target="_blank">
<?php echo $AppUI->_("LBL_ACCESS_GROUP_PROJECT") ?>
</a>
</td>
<td align="center">
<?php
if ($initiating_id != -1) {
?>
<a href='?m=initiating&a=pdf&id=<?php echo $initiating_id ?>&suppressHeaders=1'>
<img src="./modules/instructor_admin/images/pdf_icon.png" />
</a>
<?php
} else {
?>
<img src="./modules/instructor_admin/images/pdf_icon_disable.png" />
<?php
}
?>
</td>
<td align="center">
<?php
if ($project_id != -1) {
?>
<a href = "modules/timeplanning/view/export_project_plan/export.php?project_id=<?php echo $project_id; ?>&print=0" target = "_blank" style="font-weight: bold">
<img src="./modules/instructor_admin/images/pdf_icon.png" />
</a>
<?php
} else {
?>
<img src="./modules/instructor_admin/images/pdf_icon_disable.png" />
<?php
}
?>
</td>
<td align="center">
<?php
if ($project_id != -1) {
?>
<a href="index.php?m=instructor_admin&a=do_auto_evaluation&user_id=<?php echo $userId; ?>&project_id=<?php echo $project_id ?>&class_id=<?php echo $class_id ?>">
<img src="./modules/instructor_admin/images/word_icon.png" />
</a>
<?php
} else {
?>
<img src="./modules/instructor_admin/images/word_icon_disable.png" />
<?php
}
?>
</a>
</td>
<td align="center">
<a href="index.php?m=instructor_admin&a=view_read_feedback&user_id=<?php echo $userId; ?>&project_id=<?php echo $project_id ?>&class_id=<?php echo $class_id ?>">
<?php echo $AppUI->_("LBL_VIEW_READ_FEEDBACK") ?>
</a>
</td>
</tr>
<?php
}
?>
</table>
</fieldset>
<?php
exit();
......@@ -3,6 +3,7 @@ require_once (DP_BASE_DIR . "/modules/instructor_admin/class.class.php");
$obj = new CClass();
$obj->bind($_POST);
$msg = $obj->store();
$AppUI->setMsg("LBL_CLASS_REGISTERED", UI_MSG_OK, true);
$AppUI->redirect("m=instructor_admin");
$AppUI->setMsg("LBL_CLASS_REGISTERED", UI_MSG_OK);
echo $AppUI->getMsg();
exit();
?>
This diff is collapsed.
......@@ -15,7 +15,8 @@
"LBL_GROUPS_WERE_SUCESSFULLY CREATE" => "Grupos criados com sucesso!",
"LBL_CLASSES_USING_DPP"=> "Turmas utilizando o dotProject+",
"LBL_USERS_FOR_THIS_CLASS" => "Visão geral dos grupos desta turma",
"LBL_CLASS_DATA" => "Dados da turma",
"LBL_CLASS_DATA" => "Dados da turma",
"LBL_EDIT_CLASS" => "Alterar turma",
"LBL_ADD_NEW_GROUPS_FOR_THIS_CLASS" => "Adicionar novos usuários para esta turma",
"Instructor Admin" =>"Gerência de turma",
"LBL_YEAR"=>"Ano",
......@@ -29,4 +30,5 @@
"LBL_DELETE_CLASS" => "Excluir turma",
"LBL_UPDATE_CLASS" => "Alterar turma",
"LBL_VIEW_FEEDBACK_EVALUATIONS" => "Feedback de avaliação",
"LBL_DELETE_MSG" => "Tem certeza que deseja excluir esta turma?",
\ No newline at end of file
"LBL_DELETE_MSG" => "Tem certeza que deseja excluir esta turma?",
"LBL_NO_GROUP_CREATED" => "Nenhum grupo criado para essa turma",
\ No newline at end of file
......@@ -3,7 +3,6 @@ if (!defined('DP_BASE_DIR')) {
die('You should not access this file directly.');
}
require_once (DP_BASE_DIR . "/modules/instructor_admin/class.class.php");
$AppUI->savePlace();
$class_id = "";
$class = new CClass();
if (isset($_GET["class_id"])) {
......@@ -11,52 +10,23 @@ if (isset($_GET["class_id"])) {
$class->load($class_id);
?>
<table cellpadding="20">
<?php
$q = new DBQuery();
$q->addTable("dpp_classes_users");
$q->addQuery("user_login,user_password,user_company");
$q->addWhere("class_id=" . $class_id);
$sql = $q->prepare();
$records = db_loadList($sql);
$actual_link = (isset($_SERVER['HTTPS']) ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
$actual_link=substr($actual_link,0,strpos($actual_link, "?"));
foreach ($records as $record) {
$login = $record[0];
$password = $record[1];
$companyId = $record[2];
?>
<script type="text/javascript">
function printElem(elem){
popup($(elem).html());
}
function popup(data){
var mywindow = window.open('', 'my div', 'height=400,width=600');
mywindow.document.write('<html><head><title>Impressão</title>');
/*optional stylesheet*/ //mywindow.document.write('<link rel="stylesheet" href="main.css" type="text/css" />');
mywindow.document.write('</head><body>');
mywindow.document.write(data);
mywindow.document.write('</body></html>');
mywindow.document.close(); // necessary for IE >= 10
window.focus(); // necessary for IE >= 10
mywindow.print();
// mywindow.close();
return true;
}
</script>
<a href="index.php?m=instructor_admin"><?php echo $AppUI->_("Instructor Admin") ?> </a>
<br /><br />
<input type="button" value="<?php echo $AppUI->_("LBL_PRINT") ?>" onclick="printElem('#print_area')" />
<div id="print_area">
<table cellpadding="20">
<?php
$q = new DBQuery();
$q->addTable("dpp_classes_users");
$q->addQuery("user_login,user_password,user_company");
$q->addWhere("class_id=" . $class_id);
$sql = $q->prepare();
//echo $sql;
$records = db_loadList($sql);
$actual_link = (isset($_SERVER['HTTPS']) ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
$actual_link=substr($actual_link,0,strpos($actual_link, "?"));
foreach ($records as $record) {
$login = $record[0];
$password = $record[1];
$companyId = $record[2];
?>
<tr>
<td>
<b><?php echo $AppUI->_("URL") ?></b>:<?php echo $actual_link; ?>
......@@ -65,19 +35,18 @@ if (isset($_GET["class_id"])) {
<br />
<b><?php echo $AppUI->_("LBL_PASSWORD") ?></b>: <?php echo $password; ?>
</td>
</tr>
<?php
}
?>
</table>
<?php
if (sizeof($records)==0){
echo $AppUI->_("LBL_NO_GROUP_CREATED");
<?php
}
?>
</div>
?>
</table>
<?php
if (sizeof($records)==0){
echo $AppUI->_("LBL_NO_GROUP_CREATED");
}
}
?>
\ No newline at end of file
exit();
?>
<?php
require_once DP_BASE_DIR . "/modules/dotproject_plus/feedback/user_feedback_evaluation/feedback_evaluation_statistic.class.php";
$feedbackManager=new InstructionalFeebackManager();//imported automatically in the index.php using dotproject_plus theme
require_once DP_BASE_DIR . "/modules/dotproject_plus/feedback/feedback_controller.php";
$feedbackManager=new InstructionalFeebackManager();
$kaList=$feedbackManager->getKaList();
?>
<style>
.feedback_report td{
vertical-align: top;
border-spacing: 15px;
}
</style>
<a href="index.php?m=instructor_admin"><?php echo $AppUI->_("Instructor Admin") ?> </a>
<p style="text-align: center">
<?php echo $AppUI->_("LBL_FEEDBACK_EVALUATION_REPORT") ?>
</p>
<?php
foreach ($kaList as $ka) {
$feedbackListKa = $feedbackManager->getAllFeedbackPerKnoledgeArea($ka);
?>
<br />
<br />
<table class="feedback_report tbl" >
<tr>
<th colspan="6">
......@@ -61,4 +46,5 @@ foreach ($kaList as $ka) {
</table>
<?php
}
exit();
?>
......@@ -146,6 +146,10 @@ footer {
width: 90%;
max-width: 1200px;
}
.modal-xxl {
width: 95%;
max-width: 95%;
}
}
.dropdown-toggle::after {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment