Esempio n. 1
0
    function showListSystem(&$rows, &$pageNav, $option, &$lists)
    {
        mosCommonHTML::loadOverlib();
        ?>
	<script type="text/javascript">
	<!--
	function submitbutton(pressbutton) {
		var form = document.adminForm;
		form.page.value = pressbutton;
		form.submit();
	}
	<?php 
        if (JLMS_J16version()) {
            ?>
	Joomla.submitbutton = submitbutton;
	<?php 
        }
        ?>
	//-->
	</script>
		<form action="index.php" method="post" name="adminForm">		
		<table width="100%" >
			<tr>
				<td valign="top" width="220px">
				<div>
					<?php 
        echo joomla_lms_adm_html::JLMS_menu();
        ?>
				</div>
				</td>
				<td valign="top">								
			<?php 
        if (!class_exists('JToolBarHelper')) {
            ?>
				<table class="adminheading">
				<tr>
					<th class="user">
					<?php 
            echo _JOOMLMS_COMP_NAME;
            ?>
: <small><?php 
            echo _JLMS_USERS_LIST;
            ?>
</small>
					</th>
					<td width="right">
						<?php 
            ALU_html::showFilterListSystem($lists);
            ?>
					</td>
				</tr>
				</table>
				<?php 
        } else {
            ALU_html::showFilterListSystem($lists, 1);
        }
        ?>
				
				<table width="100%" border="0">
					<tr>
						<td valign="top">
							<table class="adminlist">
							<thead>
								<tr>
									<th width="20">#</th>
									<th width="20" class="title"><input type="checkbox" name="toggle" value="" onclick="checkAll(<?php 
        echo count($rows);
        ?>
);" /></th>
									<th class="title"><?php 
        echo _JLMS_USERNAME;
        ?>
</th>
									<th class="title"><?php 
        echo _JLMS_NAME;
        ?>
</th>
									<th class="title"><?php 
        echo _JLMS_EMAIL;
        ?>
</th>
									<th class="title"><?php 
        echo _JLMS_ROLE;
        ?>
</th>
									<th class="title"><?php 
        echo _JLMS_GROUPS;
        ?>
</th>
								</tr>
							</thead>
							<tfoot>
								<tr>
									<td colspan="7">
									<?php 
        echo $pageNav->getListFooter();
        ?>
									</td>
								</tr>
							</tfoot>
							<tbody>
							<?php 
        $k = 0;
        for ($i = 0, $n = count($rows); $i < $n; $i++) {
            $row = $rows[$i];
            $link = 'index.php?option=com_joomla_lms&task=group_managers&filt_groups=0&filt_users=' . $row->main_id;
            $checked = mosHTML::idBox($i, $row->id);
            ?>
								<tr class="<?php 
            echo "row{$k}";
            ?>
">
									<td><?php 
            echo $pageNav->rowNumber($i);
            ?>
</td>
									<td><?php 
            echo $checked;
            ?>
</td>
									<td align="left">
										<?php 
            echo $row->username;
            ?>
									</td>
									<td align="left">
										<?php 
            echo $row->name;
            ?>
									</td>
									<td align="left">
										<?php 
            echo $row->email;
            ?>
									</td>
									<td align="left">
										<?php 
            echo $row->lms_usertype;
            ?>
									</td>
									<td align="left">
										<a href="<?php 
            echo $link;
            ?>
">
											<?php 
            echo $row->groups;
            ?>
										</a>
									</td>
								</tr>
								<?php 
            $k = 1 - $k;
        }
        ?>
							</tbody>
							</table>
						</td>
					</tr>
				</table>				
				</td>
			</tr>
		</table>
		<input type="hidden" name="option" value="<?php 
        echo $option;
        ?>
" />
		<input type="hidden" name="task" value="lms_users" />
		<input type="hidden" name="page" value="" />
		<input type="hidden" name="course_id" value="0" />
		<input type="hidden" name="boxchecked" value="0" />
		<input type="hidden" name="hidemainmenu" value="0" />		
		</form>
		<?php 
    }