A column to design a table, the list is, the self-increment ID, img address, content
Copy the configuration, change the table name, prefix
<!DOCTYPE HTML><Head><style>. WFC{ Left:-200px;Top:1000px;-webkit-transition:opacity. 4s ease-in-out;-moz-transition:opacity. 4s ease-in-out;-o-transition:opacity. 4s ease-in-out;Margin-right:40px;Margin-top:40px;float: Left}. Pin{width:236px;font-size:12px;Background-color:#fff;Box-shadow:0 1px 3px rgba (0,0,0,.3);-moz-box-shadow:0 1px 3px rgba (0,0,0,.3);-webkit-box-shadow:0 1px 3px rgba (0,0,0,.3);Margin-right:40px;Margin-top:40px;float: Left}</style><Metahttp-equiv= "Content-type"content= "text/html; charset=utf-8" /><title>Pure CSS Implementation of the Wavy menu effect _ script sharing network</title><Linkrel= "stylesheet"href= "__root__/index/tpl/tpl/dhcss/style.css"type= "Text/css"Media= "Screen" /></Head><Body><Divclass= "Navi1"><ul><binclass= "SM1"><ahref= "{: U (' Index/searchchia ')}"></a></Li><Liclass= "SM2"><ahref= "Http://sc.chinaz.com"></a></Li><Liclass= "SM3"><ahref= "Http://sc.chinaz.com"></a></Li><Liclass= "SM4"><ahref= "Http://sc.chinaz.com"></a></Li><Liclass= "SM5"><ahref= "Http://sc.chinaz.com"></a></Li></ul></Div><HRstyle= "FILTER:progid:DXImageTransform.Microsoft.Glow (color= #987cb9, strength=10)"width= "80%"Color= #987cb9SIZE=1><foreachname= "Div"Item= "Vo"><DivData-id= "43460131"Data-seq= "43460131"Data-source= "Weibo.com"Data-created-at= "1359428707"class= "Pin WFC"><imgsrc= "{$vo. img}"width= "236"Height= "355"alt= "div Capture to"><P>{$vo. Content}</P></Div></foreach></Body></HTML>
There's a few words in the controller.
<?PHP//This class is automatically generated by the system and is intended for testing purposes onlyclassIndexactionextendsAction { Public functionindex () {$this-display (); } Public functionSearchchia () {Header("content-type:text/html; Charset=utf-8 "); $Biao= M ("China");//instantiating a model class $div=$Biao-Select ();$this->assign (' div ',$div); $this-display (index); }}
Column address corresponding Controller method
Http://url.cn/Yg4QUD
thinkphp Waterfall Flow Skeleton