showsubmenu('menu_notice', array(array('menu_notice', 'list&m=notice', '1'), array('menu_list_addnotice', 'add&m=notice', '0'))); break; case 'photo': showsubmenu('menu_photo', array(array('menu_album', 'list&m=album', '0'), array('menu_album_add', 'add&m=album', '0'))); break; } showtips($mname . '_list_tips'); if ($mname == 'album' && $_GET['type'] == 'default') { //默認相冊不在表中,直接顯示 require_once B_ROOT . './source/adminfunc/list_photo.func.php'; $album_default['subject'] = lang('album_default'); $album_default['shopid'] = $_G['myshopid']; $album_default['albumid'] = 0; $album_default['subjectimage'] = ''; $mlist .= '<table class="tb tb2 tdhover"><tr>'; $mlist .= '<td>' . showlistrowalbum($album_default) . '</td>'; $mlist .= '</table>'; showlistsearch($mname); $multipage = ''; showlistphoto($mname, $mlist, $multipage); } else { //搜索條件拼合 if ($mname == 'shop') { $joinsql = ' c.title FROM ' . tname('shopitems') . ' s INNER JOIN ' . tname('shopgroup') . ' c ON s.groupid=c.id'; $countsql = substr($joinsql, 8); } elseif ($mname == 'album') { //店長自定義相冊 $joinsql = ' c.subject AS title FROM ' . tname($mname . 'items') . ' s INNER JOIN ' . tname('shopitems') . ' c ON s.shopid=c.itemid'; $countsql = substr($joinsql, 19); //區分用戶相冊還是論壇導入相冊 $where[] = $_GET['type'] == 'import' ? "s.frombbs='1'" : "s.frombbs='0'";
if ($mname == 'album' || $mname == 'photo') { // 相冊和相冊中的圖片的顯示 require_once B_ROOT . './source/adminfunc/list_photo.func.php'; $step = 0; $mlist .= "<div id=\"pList_0\" act=\"pList\" style=\"margin-top:10px;\"><ul class=\"impressList clear\"> "; while ($value = DB::fetch($query)) { $step++; // 選默認相冊時有特殊情況 if ($mname == 'album' && $_GET['type'] == 'default') { $value['shopid'] = $value['itemid']; $value['itemid'] = 0; list($value['name'], $value['subject']) = array($value['subject'], $value['name']); //變量交換下 } if ($mname == "album") { $mlist .= '' . showlistrowalbum($value) . ''; } else { $mlist .= '' . showlistrowphoto($value) . ''; } } $mlist .= "</ul></div>"; showlistphoto($mname, $mlist, $multipage); // 選默認相冊時不出現批量操作 if (!($mname == 'album' && $_GET['type'] == 'default')) { showlistmod($mname); } echo "\n\t\t\t<style>\n\t\t\t.impressList {color:#999;}\n\t\t.impressList li {float: left; overflow: hidden; height:270px; width: 19.5%; overflow:hidden; list-style-type: none;}\n\t\t/*.impressList li div.h {height: 260px; width: 140px;}*/\n\t\t.impressList li div.b {\nbackground: url(static/image/impressnew.gif) no-repeat 0px 0px;\nheight: 129px;\npadding: 6px 6px 9px;\nwidth: 128px;\noverflow:hidden;\n\t\t}\n\t\t</style>"; } else { // 普通列表顯示 while ($value = DB::fetch($query)) { $mlist .= showlistrow($mname, $value);