Example #1
0
<?php

header('Content-Type: text/html; charset=utf-8');
require_once "includes/functions.php";
$items = Item::find_all();
?>
<!doctype html>
<html lang="ru">
	<head>
		<meta charset="UTF-8">
		<title>Play list</title>
		<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
		<link rel="stylesheet" href="css/style.css">
		<!--<script src="//code.jquery.com/jquery-1.10.2.js"></script>
		<script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>-->
		<script src="bower_components/jquery/dist/jquery.min.js"></script>
		<script src="bower_components/jquery-ui/jquery-ui.min.js"></script>
		<script src="scripts/scripts.js"></script>
	</head>
	<body>
		<div class="movie-box">
			<div class="add-element">
				<button class="add_new">Добавить новый элемент</button>
			</div>
			<ul id="sortable" class="playlist">
				<?php 
foreach ($items as $item) {
    ?>
					<li class="list-<?php 
    echo $item->order_number;
    ?>