Follow along with the video below to see how to install our site as a web app on your home screen.
Примечание: This feature may not be available in some browsers.
function index() {
global $main_admin_tpl, $last_tpl, $last_dj, $last_ex_dj;
$menu = "<a href='adm.php?page=add'>Добавить</a> | <a href='adm.php?page=edit'>Редактировать</a> | <a href='adm.php?page=delete'>Удалить</a> | <a href='adm.php?page=config'>Настройки</a>";
$last_tpl->replace("{last_dj}", $last_dj);
$last_tpl->replace("{last_exdj}", $last_ex_dj);
$content = $last_tpl->content();
$main_admin_tpl->replace("{menu}", $menu);
$main_admin_tpl->replace("{content}", $content);
echo $main_admin_tpl->content();
}
function add() {
global $main_admin_tpl, $menu;
$select = '
<form action="adm.php?page=add" method="post" name="forma">
Выберете категорию, в которую хотите добавить:<br>
<select name="cat" size="1">
<option value="0" selected>Действующие</option>
<option value="1">Ex-DJ</option>
</select>
<br /><br /><input type="submit" value="Дальше ->"/>
</form>
';
$main_admin_tpl->replace("{menu}", $menu);
$main_admin_tpl->replace("{content}", $select);
echo $main_admin_tpl->content();
}
$menu = '';
function index() {
global $menu, $main_admin_tpl, $last_tpl, $last_dj, $last_ex_dj;
$menu = "<a href='adm.php?page=add'>Добавить</a> | <a href='adm.php?page=edit'>Редактировать</a> | <a href='adm.php?page=delete'>Удалить</a> | <a href='adm.php?page=config'>Настройки</a>";
$last_tpl->replace("{last_dj}", $last_dj);
$last_tpl->replace("{last_exdj}", $last_ex_dj);
$content = $last_tpl->content();
$main_admin_tpl->replace("{menu}", $menu);
$main_admin_tpl->replace("{content}", $content);
echo $main_admin_tpl->content();
}
function add() {
global $main_admin_tpl, $menu;
$select = '
<form action="adm.php?page=add" method="post" name="forma">
Выберете категорию, в которую хотите добавить:<br>
<select name="cat" size="1">
<option value="0" selected>Действующие</option>
<option value="1">Ex-DJ</option>
</select>
<br /><br /><input type="submit" value="Дальше ->"/>
</form>
';
$main_admin_tpl->replace("{menu}", $menu);
$main_admin_tpl->replace("{content}", $select);
echo $main_admin_tpl->content();
}