01 | <div class = "container padding-big" style= "min-height:200px;" > |
02 | <p class = "text-large" >{dede:type }[field:typename/]{/dede:type}</p> |
05 | $sql = "select arc.id,arc.writer,arc.typeid, arc.title, arc.senddate,tp.sitepath,tp.namerule,tp.typedir from dede_archives arc left join `arctype` tp on arc.typeid=tp.id where arc.typeid=2" ; |
08 | while ( $row = $dsql ->GetArray()){ |
11 | $letter = substr (GetPinyin( $row [ 'title' ]),0,1); |
12 | $letter = strtoupper ( $letter ); |
14 | $arr [ $letter ][ 'writer' ][]= $row [ "writer" ]; |
15 | $arr [ $letter ][ 'url' ][]=GetFileUrl( $row [ 'id' ], $row [ 'typeid' ], $row [ 'senddate' ], $row [ 'title' ],0,0, $row [ 'namerule' ], $row [ 'typedir' ],0, '' ,0, '' , $row [ 'sitepath' ]); |
16 | $arr [ $letter ][ 'title' ][]= $row [ "title" ]; |
24 | echo '<div class="x3"><p class="padding-left bg-eee st">' . strtoupper ( $k ). '</p>' ; |
25 | for ( $x =0; $x < count ( $v [ 'title' ]); $x ++) { |
26 |
echo '<a href="' . $v [url][ $x ]. '"><strong>' . $v [title][ $x ]. '</strong></a><br/><hr/>' ; |
30 |
if ( $b %3==0){ echo '<hr class="space"></hr>' ; |
36 | </div><a class = "ViewSource" href= "http://blog.csdn.net/viqecel/article/details/50087975#" style= "font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 9px; box-sizing: border-box; color: rgb(202, 12, 22); text-decoration: none; margin: 0px 10px 0px 0px; padding: 1px; outline: none; border: none; display: inline-block; width: 16px; height: 16px; text-indent: -2000px; background-image: url("images/default/ico_plain.gif"); background-attachment: initial; background-color: inherit; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0% 0%; background-repeat: no-repeat;" title= "view plain" >view plain</a><span class = "tracking-ad" data-mod= "popu_168" style= "color: silver; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 9px; box-sizing: border-box; margin: 0px; padding: 0px;" > <a class = "CopyToClipboard" href= "http://blog.csdn.net/viqecel/article/details/50087975#" style= "box-sizing: border-box; color: rgb(202, 12, 22); text-decoration: none; margin: 0px 10px 0px 0px; padding: 1px; outline: none; border: none; font-size: 9px; display: inline-block; width: 16px; height: 16px; text-indent: -2000px; background-image: url("images/default/ico_copy.gif"); background-attachment: initial; background-color: inherit; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0% 0%; background-repeat: no-repeat;" title= "copy" > copy </a></span> |
|