backup: live-stand vor erstem git-deployment
This commit is contained in:
28
module/learning/learning_unit_listform.inc.php
Normal file
28
module/learning/learning_unit_listform.inc.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
$translation = \DynCom\mysyde\common\classes\Registry::get("translation");
|
||||
$formname = "form_unit_list";
|
||||
$inputname = "input_id";
|
||||
?>
|
||||
<ul class="toolbar_menu">
|
||||
<?= button("new", $translation->get("new"), $formname, "loadCard('new', true)"); ?>
|
||||
</ul>
|
||||
|
||||
<div id="mainContent">
|
||||
|
||||
<?php echo current_website_language($site, $language); ?>
|
||||
<h1><?php echo get_translation('top_unit'); ?></h1>
|
||||
|
||||
<form id="<?= $formname ?>" name="<?= $formname ?>" method="post">
|
||||
<input type="hidden" class="selected_linklist_row" name="input_id" value="" />
|
||||
|
||||
<div class="requestLoader"></div>
|
||||
<?
|
||||
$query = "SELECT id, title AS '" . $translation->get("name") . "', description AS '" . $translation->get("description") . "', (SELECT COUNT(*) FROM learning_unit_question WHERE learning_unit_id = learning_unit.id) AS " . $translation->get("questions") . " FROM learning_unit";
|
||||
$format = array("option", "text", "text", "text");
|
||||
if ($result = mysqli_query($GLOBALS['mysql_con'], $query)) {
|
||||
linklist($result, "form_unit_list", $format);
|
||||
}
|
||||
?>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
Reference in New Issue
Block a user