Ejemplo n.º 1
0
function loadReadme()
{
    $readme = \shgysk8zer0\DOM\HTML::getInstance()->createElement('dialog');
    $readme->id = 'README-dailog';
    $readme->append('button', null, ['type' => 'button', 'data-delete' => "#{$readme->id}"]);
    $readme->append('button', null, ['type' => 'button', 'data-fullscreen' => "#{$readme->id}"]);
    $readme->append('br');
    $readme->importHTML(get_readme());
    return $readme;
}
Ejemplo n.º 2
0
?>
" />
		<input type="submit" name="export" value="<?php 
echo _AT('export');
?>
" />
	</td>
</tr>
</tfoot>
<tbody>

<?php 
foreach ($this->keys as $dir_name) {
    $module =& $this->module_list[$dir_name];
    $i++;
    $readme = get_readme(AT_INCLUDE_PATH . '../mods/' . $dir_name);
    ?>
	<tr class="AT_module_row <?php 
    if ($module->isCore() || $module->isStandard()) {
        echo 'AT_disable_uninstall';
    }
    ?>
">
		<td valign="top"><input type="radio" name="mod_dir" value="<?php 
    echo $dir_name;
    ?>
" /></td>
		<td nowrap="nowrap" valign="top"><label for="t_<?php 
    echo $i;
    ?>
"><?php 
Ejemplo n.º 3
0
			<input type="submit" name="install" value="<?php 
        echo _AT('install');
        ?>
" />
		<?php 
    }
    ?>
	</div>

</div>
</form>
<?php 
    require AT_INCLUDE_PATH . 'footer.inc.php';
    exit;
}
$readme = get_readme(AT_SUBSITE_MODULE_PATH . $mod);
$moduleParser->parse(file_get_contents(AT_SUBSITE_MODULE_PATH . $mod . '/module.xml'));
$module = $moduleFactory->getModule($mod);
$properties = $module->getProperties(array('maintainers', 'url', 'date', 'license', 'state', 'notes', 'version'));
?>
<form method="get" action="<?php 
echo $_SERVER['PHP_SELF'];
?>
">
<input type="hidden" name="mod" value="<?php 
echo $mod;
?>
" />
<input type="hidden" name="new" value="<?php 
echo $new;
?>
Ejemplo n.º 4
0
<tfoot>
<tr>
	<td colspan="6">
		<input type="submit" name="details" value="<?php echo _AT('details'); ?>" />
		<input type="submit" name="enable"  value="<?php echo _AT('enable'); ?>" />
		<input type="submit" name="disable" value="<?php echo _AT('disable'); ?>" />
		<input type="submit" name="uninstall" value="<?php echo _AT('uninstall'); ?>" />
		<input type="submit" name="export" value="<?php echo _AT('export'); ?>" />
	</td>
</tr>
</tfoot>
<tbody>



<?php foreach($this->keys as $dir_name) : $module =& $this->module_list[$dir_name]; $i++; $readme = get_readme(AT_INCLUDE_PATH.'../mods/'.$dir_name);?>

	<tr onkeydown="document.form['t_<?php echo $i; ?>'].checked = true; rowselect(this);" onmousedown="document.form['t_<?php echo $i; ?>'].checked = true; rowselect(this);" id="r_<?php echo $i; ?>">
		<td valign="top"><input type="radio" id="t_<?php echo $i; ?>" name="mod_dir" value="<?php echo $dir_name; ?>" /></td>
		<td nowrap="nowrap" valign="top"><label for="t_<?php echo $i; ?>"><?php echo $module->getName(); if ($readme <> '') echo '&nbsp;<a href="#" onclick="ATutor.poptastic(\''.AT_BASE_HREF.'mods/'.$dir_name.'/'.$readme.'\');return false;">'._AT('view_readme').'</a>'; ?></label></td>
		<td valign="top"><?php
			if ($module->isCore()) {
				echo '<strong>'._AT('core').'</strong>';
			} else if ($module->isStandard()) {
				echo _AT('standard');
			} else {
				echo _AT('extra');
			}
			?></td>
		<td valign="top"><?php
			if ($module->isEnabled()) {
	<div class="row buttons">
		<input type="submit" name="submit" value="<?php echo _AT('back'); ?>" />
		<?php if (isset($new) && $new): ?>
			<input type="submit" name="install" value="<?php echo _AT('install'); ?>" />
		<?php endif; ?>
	</div>

</div>
</form>
<?php
	require(AT_INCLUDE_PATH.'footer.inc.php');
	exit;
}

$readme = get_readme('../../../mods/'.$mod);

$moduleParser->parse(file_get_contents('../../../mods/'.$mod.'/module.xml'));

$module = $moduleFactory->getModule($mod);

$properties = $module->getProperties(array('maintainers', 'url', 'date', 'license', 'state', 'notes', 'version'));
?>
<form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<input type="hidden" name="mod" value="<?php echo $mod; ?>" />
<input type="hidden" name="new" value="<?php echo $new; ?>" />
<input type="hidden" name="permission_granted" value="<?php echo $permission_granted; ?>" />

<input type="hidden" name="enabled" value="<?php echo (int) isset($_GET['enabled']); ?>" />
<input type="hidden" name="disabled" value="<?php echo (int) isset($_GET['disabled']); ?>" />
<input type="hidden" name="core" value="<?php echo (int) isset($_GET['core']); ?>" />