Example #1
0
    } else {
        echo 'type is not specified';
    }
    //------------------------------------------------E D I T I N G------------------------------------------------
} else {
    if (isset($_REQUEST['edit'])) {
        //if action is editing
        if (isset($_REQUEST['type'])) {
            if (isset($_REQUEST['id'])) {
                //form for editing
                echo 'Editing here. Details: type=' . $_REQUEST['type'] . ', id=' . $_REQUEST['id'] . '<br>';
                echo DialogFormYesNo($link_to_utility_sql_worker, 'edit', $_REQUEST['type'], $_REQUEST['id'], 'Сохранить', 'Отменить');
                //link on start page
                echo OnStartAdminPage();
                if (isset($_REQUEST['prev_page'])) {
                    echo '<br>' . OnPreviousPage($_REQUEST['prev_page']);
                }
            } else {
                echo 'id is not specified';
            }
        } else {
            echo 'type is not specified';
        }
        //------------------------------------------------A D D I N G------------------------------------------------
    } else {
        if (isset($_REQUEST['add'])) {
            //if action is adding
            if (isset($_REQUEST['type'])) {
                if (isset($_REQUEST['id'])) {
                    $header = '';
                    if (!isset($_REQUEST['info'])) {
Example #2
0
            ?>
</li> 
<?php 
        }
        if (isset($_POST['prev_page'])) {
            ?>
                        <li><?php 
            echo OnPreviousPage($_POST['prev_page']);
            ?>
</li>
<?php 
        } else {
            if (isset($prev_page) && $prev_page != '') {
                ?>
                        <li><?php 
                echo OnPreviousPage($prev_page);
                ?>
</li>
<?php 
            }
        }
        ?>
                    </ul>
                </li>
<?php 
    }
    ?>
                <li>
                    <form class="navbar-form navbar-left" method="post" action=<?php 
    echo '"' . $link_to_admin_user . '"';
    ?>