ajax¡¢jquery sortable¡¢phpʵÏÖÄܼÇÒäµÄ¶¯Ì¬¹¤¾ßÀ¸
×î½üÔÚ¸ºÔð×öÍøÕ¾µÄºǫ́¹ÜÀí²¿·Ö£¬¾õµÃjqueryµÄsortable×ö¶¯Ì¬¹¤¾ßÀ¸ºÜʵÓÃ,µ«ÍøÉϺܶ඼ֻ½éÉÜajaxºÍsortableÒ»Æð£¬Ã»ÓкÍdatabase½áºÏ×ÅÓã¬Î¨Ò»¿´µ½µÄ¾ÍÊÇÓÃcookie£¬Èç¹ûÓÐÅóÓÑϲ»¶ÓÃcookieµÄ£¬¿ÉÒÔÀ´ÕâÀï¿´¿´¡£ ÎÒ¸öÈ˲»Ï²»¶cookie£¬cookieÓÐʱ¼äµÄÏÞÖÆ£¬¶øÇҺöàÈËÏÖÔÚ¶¼½ûÖ¹cookieµÄʹÓÃÁË¡£¾Í×Ô¼º±àÁ˸öÂ룬ÓÃphp¡¢javascriptÀ´ÊµÏÖÊý¾Ý¿â¹¦ÄÜ¡£µã»÷ÕâÀï²ì¿´ÊµÀý¡£µã»÷ÕâÀïÏÂÔØ´úÂë
Ê×ÏÈ°²×°jquery´úÂëºÍcss²¿·Ö£º
<script src="jquery.js" type="text/javascript"></script>
<script type="text/javascript" src="ui.core.js"></script>
<script type="text/javascript" src="ui.sortable.js"></script>
<style type="text/css">
body, form, ul, dl, dt,h3,hr,div, img, p, a{margin: 0;padding: 0;font: 12px Geneva, Arial, Helvetica, sans-serif;}
.box { width:360px; height:auto;}
.widget { height:30px; width:360px; background-color:#DBDBDB; border:1px solid #CCCCCC; margin-top:6px;}
.drag_title { width:300px; height:30px; float:left; font-weight:bold; font-size:15px; line-height:30px;color:#000000; }
.drag { height:30px; width:30px;float:left;cursor:move;background-image:url(drag.jpg);}
.more { float:right; width:30px; height:30px; cursor:pointer; background-image:url(more.jpg);}
.less { float:right; width:30px; height:30px; cursor:pointer;background-image:url(less.jpg)}
.slide { width:360px; height:auto; border:1px solid #DBDBDB; border-top: none;}
.content { width:340px; height:auto; margin:auto;}
.clear { clear:both;}
</style>
html²¿·Ö£¬ÕâÀï˵Ã÷ÏÂÔÀí£ºÓÐ2¸öÏÔʾÄÚÈݵÄdiv£¬demoºÍsample£¬demoΪ¿Õ£¬ÏÈ°ÑÄÚÈÝloadµ½sampleÀȻºó¸ù¾ÝÊý¾Ý¿â»ØÀ¡µÄÅÅÁÐ˳Ðò°ÑsampleÀïµÄÄÚÈÝÒ»¸ö½ÓÒ»¸öµÄÌí¼Ó½ødemoÀ¹ý³ÌÖÐsampleÒ»Ö±ÊÇÒþ²Ø״̬¡£×¢ÒâsampleϵÄÿ¸öbox¶¼ÓÐ×Ô¼ºµÄid£¬³ÌÐò»áÓÃidÀ´²éÕÒÏàÓ¦µÄÄÚÈÝ¡£
<div class="demo" id="demo">
<!-- ÕâÀïÊÇ¿ÕµÄ -->
</div>
<div class="sample" id="sample">
<div class="box" id="sample1">
<div class="widget"><div class="drag"></div><div class="drag_title">µÚÒ»²ã</div&
Ïà¹ØÎĵµ£º
1.PHP±à³ÌÄÜÁ¦
2.MysqlÄÜÁ¦
A.Á˽⣺֪µÀʹÓÃPHPÁ´½ÓÊý¾Ý¿â£»¶®µÃһЩ¼òµ¥µÄSQL;½¨Á¢Ò»Ð©¼òµ¥µÄË÷Òý£»¶®µÃÓù¤¾ß¼òµ¥²Ù×÷Ò»ÏÂÊý¾Ý¿â£¨Ôöɾ¸Ä²éÊý¾Ý±í½á¹¹£©¡£
B.ÊìϤ£º¶®µÃÔÚ¿ª·¢Ó¦ÓÃÉÏÉè¼ÆÊý¾Ý¿â£¬½¨Á¢Ò»Ð©ÓÐЧµÄË÷Òý£¬ÓÃexplain·ÖÎöSQLÐÔÄÜ£¬Ñ¹Á¦²âÊԵȵȡ£
C.ºÜÊìϤ£ºÉîÈëÁ˽âÊý¾Ý¿âË÷Òý£¬´æ´¢ÒýÇæÔÀíÒÔ¼°ÔËÐлúÖÆ£ ......
ÓйرäÁ¿µÄ´«µØÖ·¸³Öµ
PHP 3 ÖУ¬±äÁ¿×ÜÊÇ´«Öµ¸³Öµ¡£PHP 4
ÌṩÁËÁíÍâÒ»ÖÖ·½Ê½¸ø±äÁ¿¸³Öµ£º´«µØÖ·¸³Öµ¡£Ê¹Óô«µØÖ·¸³Öµ£¬¼´¼òµ¥µØ×·¼ÓÒ»¸ö£¨&£©·ûºÅµ½½«Òª¸³ÖµµÄ±äÁ¿Ç°£¨Ô´±äÁ¿£©¡£Öйú×Ôѧ±à³ÌÍø£¬www.zxbc.cn
ÕâÒâζ×ÅеıäÁ¿¼òµ¥µÄÒýÓÃÁËÔʼ±äÁ¿,¸Ä¶¯ÐµıäÁ¿½«Ó°Ïìµ½Ôʼ±äÁ¿£¬·´Ö®ÒàÈ»¡£
<?p ......
ÍêÕûµÄʵÏÖÁËPHP½«Í¼Æ¬´æÈëMYSQL
Ç°Ì᣺
1 Ê×ÏȱØÐëÓµÓÐPHPµÄÔËÐл·¾³£¬ÁíÍ⻹µÃÓÐMYSQLÊý¾Ý¿â
2 Èç¹ûÎļþ²»ÄÜÉÏ´«³É¹¦Çë¼ì²épicsÊÇ·ñÊÇ¿ÉдµÄȨÏÞ
Ê×ÏÈÏÈ°Ñpic2db.rarÎļþ½âѹµ½PHP¿ÉÒÔÔËÐÐĿ¼Ï¡£
Æä´ÎÔÚMYSQLÖн¨Á¢Ò»¸öÊý¾Ý¿â:pic2db,È»ºóÔÚ¸ÃÊý¾Ý¿âϽ¨Á¢Ò»¸ö±í£¬±í½á¹¹Îª£º
CREATE TABLE `pi ......
Ò»¡¢¿ª·¢³ÉÔ±
a)ÏîÄ¿Ö÷¹Ü
b)Ò³ÃæÃÀ¹¤
c)Ò³Ã濪·¢
d)·þÎñ¶Ë³ÌÐò¿ª·¢
e)ϵͳÓëÊý¾Ý¹ÜÀí
f)²âÊÔÓë°æ±¾¿ØÖÆ
¶þ¡¢ ÍøÕ¾×鿪·¢¼òÃ÷Á÷³Ì
Èý¡¢ ¿ª·¢¹¤¾ßÓë»·¾³
a)·þÎñÆ÷ÅäÖÃ
i. WEB·þÎñÆ÷£º FreeBSD6.1+Apache2.0+PHP5.0£¬SVN°æ±¾¿ØÖÆ·þÎñ(½ö²âÊÔ»ú)¡£
ii.Êý¾Ý¿â·þÎñÆ÷£º WIN2003 server+SQL server 2000+MySQL5.0 ......