Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!--
- @Bruno Pereira (brunopereiraa-@hotmail.com)
- @Função: Pegar e soltar ícones onde desejar.
- @http://ips-team.tk/forum/
- @http://projetosbrunopereira.com.br/
- -->
- <script type="text/javascript" src="js/jquery.js"></script>
- <script type="text/javascript" src="js/jquery-ui.js"></script>
- <html>
- <head>
- <style>
- div#menu ul li{margin-left: -40px; -webkit-box-shadow: 1px 2px 6px rgba(0, 0, 0, 0.5); padding:2px; width:150px; #88c9eb; background:-webkit-gradient(linear, left top, left bottom, color-stop(10%,#96dafd), color-stop(80%,#75b4d5)); list-style-type:none; margin-bottom:3px; border-radius: 7px 7px 7px 7px; color:#fff; cursor:move; font:12px "Verdana", Arial, Helvetica, sans-serif;}
- </style>
- <script type="text/javascript" src="js/jquery.js"></script>
- <script type="text/javascript" src="js/jquery-ui.js"></script>
- <script type="text/javascript">
- $(document).ready(function() {
- $(function() {
- $("#menu ul").sortable({
- opacity: 0.5,
- cursor: 'move',
- update: function() {
- var order = $(this).sortable("serialize")+'&acao=atualizar';
- $.post("system/atualizar.php", order, function(retorno){
- $("#array").html(retorno);
- });
- }
- });
- });
- });
- </script>
- </head>
- <?php include_once "system/db.php"; ?>
- <body bgcolor="#ccc">
- <div id="menu">
- <ul>
- <?php
- $select = mysql_query("SELECT * FROM `itens` ORDER BY ordem");
- while($item = mysql_fetch_object($select)) {
- ?>
- <li id="widgetArray_<?php echo $item->id;?>"><?php include 'widgets/'.$item->texto.'.php';?></li>
- <?php } ?>
- </ul>
- </div><!-- menu -->
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement