Ejemplo n.º 1
0
    }
    echo '>', I18N::number($i), '</option>';
}
?>
						</select>
					</td>
				</tr>
				<tr>
					<td class="descriptionbox">
						<?php 
echo '<label>', I18N::translate('Show details'), '</label>';
?>
					</td>
					<td class="optionbox">
						<?php 
echo FunctionsEdit::twoStateCheckbox('show_full', $controller->showFull());
?>
					</td>
				</tr>
			</tbody>
		</table>
	</form>
<?php 
if ($controller->error_message) {
    echo '<p class="ui-state-error">', $controller->error_message, '</p>';
    return;
}
switch ($controller->chart_style) {
    case 0:
        // List
        echo '<ul id="ancestry_chart" class="chart_common">';
Ejemplo n.º 2
0
echo I18N::translate('Individual 1');
?>
				</td>
				<td class="optionbox">
					<input class="pedigree_form" data-autocomplete-type="INDI" type="text" name="pid1" id="pid1" size="3" value="<?php 
echo $pid1;
?>
">
					<?php 
echo FunctionsPrint::printFindIndividualLink('pid1');
?>
				</td>
				<td class="optionbox">
					<label>
						<?php 
echo FunctionsEdit::twoStateCheckbox('show_full', $show_full);
?>
						<?php 
echo I18N::translate('Show details');
?>
					</label>
				</td>
				<td class="optionbox vmiddle" rowspan="2">
					<input type="submit" value="<?php 
echo I18N::translate('View');
?>
">
				</td>
			</tr>
			<tr>
				<td class="descriptionbox">
    private function pageBody(PageController $controller)
    {
        $FRL_PLUGINS = unserialize($this->getSetting('FRL_PLUGINS'));
        ?>
		<ol class="breadcrumb small">
			<li><a href="admin.php"><?php 
        echo I18N::translate('Control panel');
        ?>
</a></li>
			<li><a href="admin_modules.php"><?php 
        echo I18N::translate('Module administration');
        ?>
</a></li>
			<li class="active"><?php 
        echo $controller->getPageTitle();
        ?>
</li>
		</ol>
		<h2><?php 
        echo $controller->getPageTitle();
        ?>
</h2>
		<p class="small text-muted"><?php 
        echo I18N::translate('Check the plugins you want to use in the sidebar.');
        ?>
</p>
		<form class="form-horizontal" method="post" name="configform" action="<?php 
        echo $this->getConfigLink();
        ?>
">
			<input type="hidden" name="save" value="1">
			<!-- SELECT ALL -->
			<div class="form-group checkbox col-sm-12">
				<label>
					<?php 
        echo FunctionsEdit::checkbox('select-all') . I18N::translate('select all');
        ?>
				</label>
			</div>
			<!-- RESEARCH LINKS -->
			<?php 
        foreach ($this->getPluginList() as $area => $plugins) {
            ?>
				
				<div class="form-group col-sm-12">
					<h4><?php 
            echo $area;
            ?>
</h4>
					<?php 
            foreach ($plugins as $label => $plugin) {
                ?>
						<?php 
                if (is_array($FRL_PLUGINS) && array_key_exists($label, $FRL_PLUGINS)) {
                    $enabled = $FRL_PLUGINS[$label];
                } else {
                    $enabled = '1';
                }
                ?>
						<div class="checkbox col-sm-4" dir="ltr">
							<label class="checkbox-inline">
								<?php 
                echo FunctionsEdit::twoStateCheckbox('NEW_FRL_PLUGINS[' . $label . ']', $enabled) . ' ' . $plugin->getPluginName();
                ?>
							</label>
						</div>
					<?php 
            }
            ?>
				</div>
			<?php 
        }
        ?>
			<div class="form-group col-sm-12">
				<button type="submit" class="btn btn-primary">
					<i class="fa fa-check"></i>
					<?php 
        echo I18N::translate('save');
        ?>
				</button>
				<button type="reset" class="btn btn-primary" onclick="if (confirm('<?php 
        echo I18N::translate('The settings will be reset to default. Are you sure you want to do this?');
        ?>
'))
							window.location.href = 'module.php?mod=<?php 
        echo $this->getName();
        ?>
&amp;mod_action=admin_reset';">
					<i class="fa fa-recycle"></i>
					<?php 
        echo I18N::translate('reset');
        ?>
				</button>
			</div>
		</form>
		<?php 
    }
Ejemplo n.º 4
0
?>
</a></th>
			<th class="hidden"><?php 
echo I18N::translate('Themes');
?>
</th>
		</tr>
		</thead>
		<tbody>
			<?php 
foreach ($modules as $module_name => $module) {
    ?>
				<tr>
					<td class="text-center">
						<?php 
    echo FunctionsEdit::twoStateCheckbox('status-' . $module->getName(), $module_status[$module_name] === 'enabled');
    ?>
					</td>
					<td>
						<?php 
    if ($module instanceof ModuleConfigInterface) {
        ?>
							<a href="<?php 
        echo $module->getConfigLink();
        ?>
">
								<?php 
        echo $module->getTitle();
        ?>
 <i class="fa fa-cogs"></i>
							</a>
Ejemplo n.º 5
0
</th>
			<th class="hidden-xs"><a href="admin_module_reports.php"><?php 
echo I18N::translate('Reports');
?>
</a></th>
			<th class="hidden"><?php 
echo I18N::translate('Themes');
?>
</th>
		</tr>
		</thead>
		<tbody>
		<?php 
foreach ($modules as $module_name => $module) {
    $status = $module_status[$module_name];
    echo '<tr><td class="text-center">', FunctionsEdit::twoStateCheckbox('status-' . $module->getName(), $status === 'enabled'), '</td>', '<td>';
    if ($module instanceof ModuleConfigInterface) {
        echo '<a href="', $module->getConfigLink(), '">';
    }
    echo $module->getTitle();
    if ($module instanceof ModuleConfigInterface) {
        echo ' <i class="fa fa-cogs"></i></a>';
    }
    echo '</td>', '<td>', $module->getDescription(), '</td>', '<td class="text-center text-muted hidden-xs">', $module instanceof ModuleMenuInterface ? '<i class="fa fa-list-ul" title="' . I18N::translate('Menu') . '"></i>' : '-', '</td>', '<td class="text-center text-muted hidden-xs">', $module instanceof ModuleTabInterface ? '<i class="fa fa-folder" title="' . I18N::translate('Tab') . '"></i>' : '-', '</td>', '<td class="text-center text-muted hidden-xs">', $module instanceof ModuleSidebarInterface ? '<i class="fa fa-th-large" title="' . I18N::translate('Sidebar') . '"></i>' : '-', '</td>', '<td class="text-center text-muted hidden-xs">', $module instanceof ModuleBlockInterface ? ($module->isUserBlock() ? '<i class="fa fa-user" title="' . I18N::translate('My page') . '"></i>' : '') . ($module->isGedcomBlock() ? '<i class="fa fa-tree" title="' . I18N::translate('Home page') . '"></i>' : '') : '-', '</td>', '<td class="text-center text-muted hidden">', $module instanceof ModuleChartInterface ? '<i class="fa fa-check" title="' . I18N::translate('Chart') . '"></i>' : '-', '</td>', '<td class="text-center text-muted hidden-xs">', $module instanceof ModuleReportInterface ? '<i class="fa fa-file" title="' . I18N::translate('Report') . '"></i>' : '-', '</td>', '<td class="text-center text-muted hidden">', $module instanceof ModuleThemeInterface ? '<i class="fa fa-check" title="' . I18N::translate('Theme') . '"></i>' : '-', '</td>', '</tr>';
}
?>
		</tbody>
	</table>
	<button class="btn btn-primary" type="submit">
		<i class="fa fa-check"></i>
		<?php 
Ejemplo n.º 6
0
    /**
     * {@inhericDoc}
     * @see \MyArtJaub\Webtrees\Mvc\View\AbstractView::renderContent()
     */
    protected function renderContent()
    {
        $table_id = $this->data->get('table_id');
        ?>
        
        <ol class="breadcrumb small">
        	<li><a href="admin.php"><?php 
        echo I18N::translate('Control panel');
        ?>
</a></li>
			<li><a href="admin_modules.php"><?php 
        echo I18N::translate('Module administration');
        ?>
</a></li>
			<li class="active"><?php 
        echo $this->data->get('title');
        ?>
</li>
		</ol>
		
		<div align="center">
			<div id="tabs">
				<form method="post" action="#">
					<?php 
        echo Filter::getCsrf();
        ?>
					<input type="hidden" name="action" value="update">
					<table id="<?php 
        echo $table_id;
        ?>
" class="table table-bordered table-condensed table-hover table-site-changes" >
						<thead>
							<tr>
								<th><?php 
        echo I18N::translate('Enabled');
        ?>
</th>
								<th>ENABLED_SORT</th>
								<th><?php 
        echo I18N::translate('Hook Function');
        ?>
</th>
								<th><?php 
        echo I18N::translate('Hook Context');
        ?>
</th>
								<th><?php 
        echo I18N::translate('Module Name');
        ?>
</th>
								<th><?php 
        echo I18N::translate('Priority (1 is high)');
        ?>
</th>
								<th>PRIORITY_SORT</th>
							</tr>
						</thead>
						<tbody> 
							<?php 
        $hooks = $this->data->get('hook_list');
        foreach ($hooks as $hook) {
            ?>
							<tr>
								<td>
									<input type="hidden" name="hook-<?php 
            echo $hook->id;
            ?>
" value="yes" >
									<?php 
            echo FunctionsEdit::twoStateCheckbox('status-' . $hook->id, $hook->status == 'enabled');
            ?>
								</td>
								<td><?php 
            echo $hook->status == 'enabled';
            ?>
</td>
								<td><?php 
            echo $hook->hook;
            ?>
</td>
								<td><?php 
            echo $hook->context;
            ?>
</td>
								<td><?php 
            if ($mod = Module::getModuleByName($hook->module)) {
                echo $mod->getTitle();
            }
            ?>
</td>
								<td><input type="text" class="center" size="2" value="<?php 
            echo $hook->priority;
            ?>
" name="moduleorder-<?php 
            echo $hook->id;
            ?>
" /></td>
								<td><?php 
            echo $hook->priority;
            ?>
</td>
							</tr>
							<?php 
        }
        ?>
						</tbody>
					</table>
					<input type="submit" class="btn btn-primary save" value="<?php 
        echo I18N::translate('save');
        ?>
">
				</form>
			</div>
		</div>	
		
		<?php 
    }