<div class="col-lg-12">
            ' . lang::get('idea_text') . '
            <hr />
        </div>
        <div class="col-md-9">
           <textarea class="form-control"></textarea>
        </div>
        <div class="col-md-3">
           <p><button class="btn btn-default">' . lang::get('send') . '</button></p>
            <div id="ajax-content"></div>
        </div>
    </div>
    ', ['id' => 'idea', 'col' => 'lg-6']);
?>
    </div>
    <div class="expand">
    	<i class="fa fa-chevron-up"></i>
    </div>
</section>
		
<div class="row">
    <?php 
$button = '<a href="http://dynao.de" target="_blank" class="btn btn-sm btn-default">' . lang::get('all_addons') . '</a>';
echo bootstrap::panel(lang::get('addons'), [$button], dyn::getAddons(), ['table' => true, 'col' => 'lg-6']);
$button = '<a href="http://dynao.de" target="_blank" class="btn btn-sm btn-default">' . lang::get('all_modules') . '</a>';
echo bootstrap::panel(lang::get('modules'), [$button], dyn::getModules(), ['table' => true, 'col' => 'lg-6']);
?>
</div>

<?php 
echo extension::get('DASHBOARD_OVERVIEW', '');
示例#2
0
    if ($action == 'online' && dyn::get('user')->hasPerm('page[edit]')) {
        $sql = sql::factory();
        $sql->query('SELECT online FROM ' . sql::table('structure') . ' WHERE id=' . $id)->result();
        $online = $sql->get('online') ? 0 : 1;
        $sql->setTable('structure');
        $sql->setWhere('id=' . $id);
        $sql->addPost('online', $online);
        $sql->update();
        echo message::success(lang::get('save_status'));
        $action = '';
    }
    if ($action == '') {
        if (ajax::is()) {
            echo pageMisc::getTreeStructurePage();
            exit;
        }
        $button = [];
        if (dyn::get('user')->hasPerm('page[edit]')) {
            $button = ['<a class="btn btn-sm btn-default" href="' . url::backend('structure', ['subpage' => 'pages', 'action' => 'add']) . '">' . lang::get('add') . '</a>'];
        }
        ?>
	<div class="row" id="structure-body"><?php 
        echo bootstrap::panel(lang::get('pages'), $button, pageMisc::getTreeStructurePage());
        ?>
</div>
	<?php 
        if (dyn::get('user')->hasPerm('page[edit]')) {
            layout::addJs("layout/js/structureSort.js");
        }
    }
}
示例#3
0
        }
    }
    $button = '<a href="' . url::backend('user', ['subpage' => 'overview']) . '" class="btn btn-sm btn-default">' . lang::get('back') . '</a>';
    ?>
	<div class="row"><?php 
    echo bootstrap::panel($title, [$button], $form->show());
    ?>
</div>
    <?php 
}
if ($action == '') {
    $table = table::factory();
    $table->addCollsLayout('*, 250,110');
    $table->addRow()->addCell("Name")->addCell(lang::get('email'))->addCell(lang::get('action'));
    $table->addSection('tbody');
    $table->setSql('SELECT * FROM ' . sql::table('user'));
    while ($table->isNext()) {
        $id = $table->get('id');
        $edit = '<a href="' . url::backend('user', ['subpage' => 'overview', 'action' => 'edit', 'id' => $id]) . '" class="btn btn-sm  btn-default fa fa-pencil-square-o"></a>';
        $delete = dyn::get('user')->get('id') == $id ? '' : '<a href="' . url::backend('user', ['subpage' => 'overview', 'action' => 'delete', 'id' => $id]) . '" class="btn btn-sm btn-danger fa fa-trash-o delete"></a>';
        $table->addRow()->addCell($table->get('firstname') . " " . $table->get('name'))->addCell($table->get('email'))->addCell('<span class="btn-group">' . $edit . $delete . '</span>');
        $table->next();
    }
    $button = '<a href="' . url::backend('user', ['subpage' => 'overview', 'action' => 'add']) . '" class="btn btn-sm btn-default">' . lang::get('add') . '</a>';
    ?>
    <div class="row"><?php 
    echo bootstrap::panel(lang::get('user'), [$button], $table->show(), ['table' => true]);
    ?>
</div>
    <?php 
}
示例#4
0
            $sql->update();
        }
        ajax::addReturn(message::success(lang::get('save_sorting'), true));
    }
    $table = table::factory(['class' => ['js-sort']]);
    $table->addCollsLayout('20,*,110');
    $table->addRow()->addCell()->addCell(lang::get('name'))->addCell(lang::get('action'));
    $table->addSection('tbody');
    $table->setSql('SELECT * FROM ' . sql::table('module') . ' ORDER BY sort ');
    if ($table->numSql()) {
        while ($table->isNext()) {
            $id = $table->get('id');
            $edit = '<a href="' . url::backend('structure', ['subpage' => 'module', 'action' => 'edit', 'id' => $id]) . '" class="btn btn-sm btn-default fa fa-pencil-square-o"></a>';
            $delete = '<a href="' . url::backend('structure', ['subpage' => 'module', 'action' => 'delete', 'id' => $id]) . '" class="btn btn-sm btn-danger fa fa-trash-o delete"></a>';
            $table->addRow(['data-id' => $id])->addCell('<i class="fa fa-sort"></i>')->addCell($table->get('name'))->addCell('<span class="btn-group">' . $edit . $delete . '</span>');
            $table->next();
        }
    } else {
        $table->addRow()->addCell(lang::get('no_entries'), ['colspan' => 2]);
    }
    $button = [];
    if (dyn::get('user')->hasPerm('page[edit]')) {
        $button = ['<a class="btn btn-sm btn-warning" href="' . url::backend('structure', ['subpage' => 'module', 'action' => 'import']) . '">' . lang::get('import') . '</a>', '<a class="btn btn-sm btn-warning" href="' . url::backend('structure', ['subpage' => 'module', 'action' => 'add']) . '">' . lang::get('add') . '</a>'];
    }
    ?>
    <div class="row"><?php 
    echo bootstrap::panel(lang::get('modules'), $button, $form->show());
    ?>
</div>
	<?php 
}
示例#5
0
            if (in_array($dir, ['.', '..', '.htaccess'])) {
                continue;
            }
            $curAddon = new addon($dir);
            $install_url = url::backend('addons', ['subpage' => 'overview', 'addon' => $dir, 'action' => 'install']);
            $active_url = url::backend('addons', ['subpage' => 'overview', 'addon' => $dir, 'action' => 'active']);
            $delete_url = url::backend('addons', ['subpage' => 'overview', 'addon' => $dir, 'action' => 'delete']);
            $help_url = url::backend('addons', ['subpage' => 'overview', 'addon' => $dir, 'action' => 'help']);
            if ($curAddon->isInstall()) {
                $install = '<a href="' . $install_url . '" class="btn btn-sm dyn-online">' . lang::get('addon_installed') . '</a>';
            } else {
                $install = '<a href="' . $install_url . '" class="btn btn-sm dyn-offline">' . lang::get('addon_not_installed') . '</a>';
            }
            if ($curAddon->isActive()) {
                $active = '<a href="' . $active_url . '" class="btn btn-sm dyn-online fa fa-check" title="' . lang::get('addon_actived') . '"></a>';
            } else {
                $active = '<a href="' . $active_url . '" class="btn btn-sm dyn-offline fa fa-times" title="' . lang::get('addon_not_actived') . '"></a>';
            }
            $delete = '<a href="' . $delete_url . '" class="btn btn-sm btn-danger fa fa-trash-o delete"></a>';
            $table->addRow()->addCell('<a class="fa fa-question" href="' . $help_url . '"></a>')->addCell($curAddon->get('name') . ' <small>' . $curAddon->get('version') . '</small>')->addCell('<span class="btn-group">' . $install . $active . $delete . '</span>');
        }
    } else {
        $table->addRow()->addCell(lang::get('no_entries'), ['colspan' => 3]);
    }
    ?>
	<div class="row"><?php 
    echo bootstrap::panel(lang::get('addons'), [], $table->show());
    ?>
</div>
<?php 
}
示例#6
0
                    $deleted = '';
                    if (dyn::get('user')->hasPerm('page[content]')) {
                        $name = '<a href="' . url::backend('structure', ['subpage' => 'blocks', 'structure_id' => $table->get('id')]) . '">' . $table->get('name') . '</a>';
                    } else {
                        $name = $table->get('name');
                    }
                    if (dyn::get('user')->hasPerm('page[edit]')) {
                        $edit = '<a href=' . url::backend('structure', ['subpage' => 'blocks', 'action' => 'edit', 'id' => $table->get('id')]) . ' class="btn btn-sm btn-default fa fa-pencil-square-o"></a>';
                    }
                    if (dyn::get('user')->hasPerm('page[delete]')) {
                        $delete = '<a href=' . url::backend('structure', ['subpage' => 'blocks', 'action' => 'delete', 'id' => $table->get('id')]) . ' class="btn btn-sm btn-danger fa fa-trash-o delete"></a>';
                    }
                    $table->addRow()->addCell($name)->addCell($table->get('description'))->addCell('<span class="btn-group">' . $edit . $delete . '</span>');
                    $table->next();
                }
            } else {
                $table->addRow()->addCell(lang::get('no_entries'), ['colspan' => 3]);
            }
            $button = '';
            if (dyn::get('user')->hasPerm('page[edit]')) {
                $button = '<a href="' . url::backend('structure', ['subpage' => 'blocks', 'action' => 'add']) . '" class="btn btn-sm btn-default">' . lang::get('add') . '</a>';
            }
            ?>
		<div class="row"><?php 
            echo bootstrap::panel(lang::get('blocks_current_page'), [$button], $table->show(), ['table' => 'false']);
            ?>
</div>
		<?php 
        }
    }
}