예제 #1
0
        echo pageAreaHtml::selectBlock($structure_id, $sql->num() + 1);
    }
    ?>
                    
    			</div>
            </div>
        </div>
    </div>

<?php 
    //Wenn action
} else {
    if (ajax::is() && dyn::get('user')->hasPerm('page[edit]')) {
        $post = type::super('array');
        $sort = json_decode($post, true);
        pageMisc::sortStructure($sort, 0);
        echo message::success(lang::get('save_sorting'), true);
    }
    if (in_array($action, ['edit', 'add']) && dyn::get('user')->hasPerm('page[edit]')) {
        $form = form::factory('structure', 'id=' . $id, 'index.php');
        $field = $form->addTextField('name', $form->get('name'));
        $field->fieldName(lang::get('name'));
        $field->autofocus();
        $template = template::factory(dyn::get('template'));
        $field = $form->addElement('template', $template->getTemplates('template', $form->get('template')));
        $field->fieldName(lang::get('template'));
        $field = $form->addRadioField('online', $form->get('online'));
        $field->fieldName(lang::get('status'));
        $field->add(1, lang::get('online'));
        $field->add(0, lang::get('offline'));
        if ($action == 'edit') {