$count = C::t('portal_article_title')->fetch_all_by_sql($wheresql, '', 0, 0, 1); if ($count) { $query = C::t('portal_article_title')->fetch_all_by_sql($wheresql, $ordersql, $start, $perpage); foreach ($query as $value) { $tags = article_parse_tags($value['tag']); $taghtml = ''; foreach ($tags as $k => $v) { if ($v) { $taghtml .= ' [<a href="' . ADMINSCRIPT . '?action=article&operation=list&tag[' . $k . ']=1" style="color: #666">' . $article_tags[$k] . '</a>] '; } } showtablerow('', array('class="td25"', 'width="480"', 'class="td28"'), array("<input type=\"checkbox\" class=\"checkbox\" name=\"ids[]\" value=\"{$value['aid']}\">", "<a href=\"portal.php?mod=view&aid={$value['aid']}\" target=\"_blank\">{$value['title']}</a>" . ($taghtml ? $taghtml : ''), '<a href="' . ADMINSCRIPT . '?action=article&operation=list&catid=' . $value['catid'] . '">' . $category[$value['catid']]['catname'] . '</a>', "<a href=\"" . ADMINSCRIPT . "?action=article&uid={$value['uid']}\">{$value['username']}</a>", dgmdate($value[dateline]), "<a href=\"portal.php?mod=portalcp&ac=article&aid={$value['aid']}\" target=\"_blank\">" . cplang('edit') . "</a>")); } $multipage = multi($count, $perpage, $page, $mpurl); } $optypehtml = '' . '<input type="hidden" name="hiddenpage" id="hiddenpage" value="' . $page . '"/><input type="hidden" name="hiddencatid" id="hiddencatid" value="' . $catid . '"/><input type="hidden" name="hiddenperpage" id="hiddenperpage" value="' . $perpage . '"/><input type="radio" name="optype" id="optype_trash" value="trash" class="radio" /><label for="optype_trash">' . cplang('article_optrash') . '</label> ' . '<input type="radio" name="optype" id="optype_move" value="move" class="radio" /><label for="optype_move">' . cplang('article_opmove') . '</label> ' . category_showselect('portal', 'tocatid', false) . ' '; showsubmit('', '', '', '<input type="checkbox" name="chkall" id="chkall" class="checkbox" onclick="checkAll(\'prefix\', this.form, \'ids\')" /><label for="chkall">' . cplang('select_all') . '</label> ' . $optypehtml . '<input type="submit" class="btn" name="articlesubmit" value="' . cplang('submit') . '" />', $multipage); showtablefooter(); showformfooter(); } } function showcategoryrow($key, $type = '', $last = '') { global $category, $lang; $forum = $forums[$key]; $showedforums[] = $key; if ($last == '') { $return = '<tr class="hover"><td class="td25"><input type="text" class="txt" name="order[' . $forum['fid'] . ']" value="' . $forum['displayorder'] . '" /></td><td>'; if ($type == 'group') { $return .= '<div class="parentboard">'; } elseif ($type == '') {
$articlelist[] = $value; } } } elseif ($op == 'add') { $relatedid = trim($_GET['relatedid']); $relatedarr = explode(',', $relatedid); $relatedarr = array_map('intval', $relatedarr); $relatedarr = array_unique($relatedarr); $relatedarr = array_filter($relatedarr); if ($relatedarr) { $query = DB::query("SELECT * FROM " . DB::table('portal_article_title') . " WHERE aid IN (" . dimplode($relatedarr) . ")"); $list = array(); while ($value = DB::fetch($query)) { $list[$value['aid']] = $value; } foreach ($relatedarr as $relateid) { if ($list[$relateid]) { $articlelist[] = $list[$relateid]; } } } } else { $count = 0; $query = DB::query("SELECT * FROM " . DB::table('portal_article_title') . " ORDER BY dateline DESC LIMIT 50"); while ($value = DB::fetch($query)) { $articlelist[] = $value; $count++; } } $category = category_showselect('portal', 'searchcate', false, $_G[gp_searchcate]); include_once template("portal/portalcp_related_article");
$blog_count = DB::result_first('SELECT COUNT(*) FROM ' . DB::table('home_blog') . " WHERE catid = '{$_GET['catid']}'"); if (!$blog_count && empty($category[$_GET[catid]]['children'])) { DB::query('DELETE FROM ' . DB::table('home_blog_category') . " WHERE catid = '{$_GET['catid']}'"); include_once libfile('function/cache'); updatecache('blogcategory'); cpmsg('blogcategory_delete_succeed', 'action=blogcategory', 'succeed'); } shownav('portal', 'blogcategory'); showsubmenu('blogcategory', array(array('list', 'blogcategory', 0), array('delete', 'blogcategory&operation=delete&catid=' . $_GET['catid'], 1))); showformheader('blogcategory&operation=delete&catid=' . $_GET['catid']); showtableheader(); if ($category[$_GET[catid]]['children']) { showsetting('blogcategory_subcategory_moveto', '', '', '<input type="radio" name="subcat_op" value="trash" id="subcat_op_trash" checked="checked" />' . '<label for="subcat_op_trash" />' . cplang('blogcategory_subcategory_moveto_trash') . '</label>' . '<input type="radio" name="subcat_op" value="parent" id="subcat_op_parent" checked="checked" />' . '<label for="subcat_op_parent" />' . cplang('blogcategory_subcategory_moveto_parent') . '</label>'); } include_once libfile('function/portalcp'); showsetting('blogcategory_blog_moveto', '', '', category_showselect('blog', 'tocatid', false, $category[$_GET['catid']]['upid'])); showsubmit('deletesubmit'); showtablefooter(); showformfooter(); } else { if ($_POST['tocatid'] == $_GET['catid']) { cpmsg('blogcategory_move_category_failed', 'action=blogcategory', 'error'); } $delids = array($_GET['catid']); if ($category[$_GET['catid']]['children']) { if ($_POST['subcat_op'] == 'parent') { $upid = intval($category[$_GET['catid']]['upid']); DB::query('UPDATE ' . DB::table('home_blog_category') . " SET upid = '{$upid}' WHERE catid IN (" . dimplode($category[$_GET['catid']]['children']) . ')'); } else { $delids = array_merge($delids, $category[$_GET['catid']]['children']); foreach ($category[$_GET['catid']]['children'] as $id) {
} if (!$albumcount) { $error = 'album_post_nonexistence'; } } showtagheader('div', 'postlist', $searchsubmit || $newlist); showformheader('album&frame=no', 'target="albumframe"'); if (!$muticondition) { showtableheader(cplang('album_new_result') . ' ' . $albumcount, 'fixpadding'); } else { showtableheader(cplang('album_result') . ' ' . $albumcount . (empty($newlist) ? ' <a href="###" onclick="$(\'searchposts\').style.display=\'\';$(\'postlist\').style.display=\'none\';$(\'albumforum\').pp.value=\'\';$(\'albumforum\').page.value=\'\';" class="act lightlink normal">' . cplang('research') . '</a>' : ''), 'fixpadding'); } if ($error) { echo "<tr><td class=\"lineheight\" colspan=\"15\">{$lang[$error]}</td></tr>"; } else { if ($detail) { showsubtitle(array('', 'albumpic', 'albumname', 'author', 'updatetime', 'pic_num', 'privacy')); echo $albums; $optypehtml = '' . '<input type="radio" name="optype" id="optype_delete" value="delete" class="radio" /><label for="optype_delete">' . cplang('delete') . '</label> '; $optypehtml .= '<input type="radio" name="optype" id="optype_move" value="move" class="radio" /><label for="optype_move">' . cplang('article_opmove') . '</label> ' . category_showselect('album', 'tocatid', false) . ' '; showsubmit('', '', '', '<input type="checkbox" name="chkall" id="chkall" class="checkbox" onclick="checkAll(\'prefix\', this.form, \'ids\')" /><label for="chkall">' . cplang('select_all') . '</label> ' . $optypehtml . '<input type="submit" class="btn" name="albumsubmit" value="' . cplang('submit') . '" />', $multi); } else { showhiddenfields(array('albumids' => authcode($albumids, 'ENCODE'))); showsubmit('albumsubmit', 'delete', $detail ? 'del' : '', '', $multi); } } showtablefooter(); showformfooter(); echo '<iframe name="albumframe" style="display:none;"></iframe>'; showtagfooter('div'); }
$passwordstyle = $selectgroupstyle = 'display:none'; if ($blog['friend'] == 4) { $passwordstyle = ''; } elseif ($blog['friend'] == 2) { $selectgroupstyle = ''; if ($blog['target_ids']) { $names = array(); foreach (C::t('common_member')->fetch_all($blog['target_ids']) as $uid => $value) { $names[$uid] = $value['username']; } $blog['target_names'] = implode(' ', $names); } } $blog['message'] = dhtmlspecialchars($blog['message']); $allowhtml = checkperm('allowhtml'); require_once libfile('function/friend'); $groups = friend_group_list(); if ($_G['setting']['blogcategorystat']) { loadcache('blogcategory'); $category = $_G['cache']['blogcategory']; $categoryselect = ''; if ($category) { include_once libfile('function/portalcp'); $categoryselect = category_showselect('blog', 'catid', !$_G['setting']['blogcategoryrequired'] ? true : false, $blog['catid']); } } $menuactives = array('space' => ' class="active"'); } require_once libfile('function/upload'); $swfconfig = getuploadconfig($_G['uid'], 0, false); include_once template("home/spacecp_blog");
$query = DB::query("SELECT * FROM " . DB::table('portal_article_title') . "{$wheresql} ORDER BY dateline DESC LIMIT {$start},{$perpage}"); while ($value = DB::fetch($query)) { if ($value['pic']) { $value['pic'] = pic_get($value['pic'], 'portal', $value['thumb'], $value['remote']); } $value['dateline'] = dgmdate($value['dateline']); $value['allowmanage'] = $allowmanage || !empty($permission[$value['catid']]['allowmanage']) ? true : false; $value['allowpublish'] = $value['allowmanage'] || $allowpost || !empty($permission[$value['catid']]['allowpublish']) ? true : false; $value['taghtml'] = ''; $tags = article_parse_tags($value['tag']); foreach ($tags as $k => $v) { if ($v) { $value['taghtml'] .= "[{$article_tags[$k]}] "; } } $style = array(); if ($value['highlight']) { $style = explode('|', $value['highlight']); $value['highlight'] = ' style="'; $value['highlight'] .= $style[0] ? 'color: ' . $style[0] . ';' : ''; $value['highlight'] .= $style[1] ? 'font-weight: bold;' : ''; $value['highlight'] .= $style[2] ? 'font-style: italic;' : ''; $value['highlight'] .= $style[3] ? 'text-decoration: underline;' : ''; $value['highlight'] .= '"'; } $list[] = $value; } $multi = multi($count, $perpage, $page, $theurl); $categoryselect = category_showselect('portal', 'catid', false, $catid); } include_once template("portal/portalcp_category");
<?php } } } else { ?> <option value="-2">-------</option> <?php } ?> <option value="-1" style="color:red;">+创建新相册</option> </select> </div> <div id="createalbum" style="display:none"> <?php if ($_G['setting']['albumcategorystat'] && !empty($_G['cache']['albumcategory'])) { echo category_showselect('album', 'albumcatid', !$_G['setting']['albumcategoryrequired'] ? true : false, $_GET['catid']); ?> <?php } ?> <input type="text" name="newalbum" id="newalbum" class="px vm" size="15" value="请输入相册名称" onfocus="if(this.value == '请输入相册名称') {this.value = '';}" onblur="if(this.value == '') {this.value = '请输入相册名称';}" /> <button type="button" class="pn pnc" onclick="createNewAlbum();"><span>创建新相册</span></button><button type="button" class="pn" onclick="selectCreateTab(1);"><span>取消</span></button> </div> <?php } ?> </div> <span id="imgSpanButtonPlaceholder"></span> </div> <?php }
function article_edit() { global $_G; include_once libfile('function/portalcp'); include_once libfile('function/spacecp'); include_once libfile('function/home'); require_once libfile('function/forumlist'); pload('F:spider'); if ($_GET['submit']) { $setarr = $_GET['set']; if (check_uid($setarr['uid']) == 'no') { cpmsg_error(milu_lang('user_no_exists')); } $pick_common_set = get_pick_set(); $pid = intval($_GET['pid']); $p_arr = get_pick_info($pid); $setarr['portal_cid'] = $_GET['portal']; $setarr['forum_fid'] = $_GET['forums']; $setarr['forum_typeid'] = $_GET['threadtypeid']; $setarr['blog_big_cid'] = $_GET['blog']; $setarr['blog_small_cid'] = $_GET['classid']; $setarr['title'] = getstr(trim($setarr['title']), 80, 1, 1); if (strlen($setarr['title']) < 1) { cpmsg_error(milu_lang('title_no_empty')); } if (empty($setarr['summary'])) { $setarr['summary'] = portalcp_get_summary(stripslashes($_GET['message'])); } $set_arr['summary'] = addslashes($setarr['summary']); $setarr['public_time'] = strtotime($setarr['public_time']); $setarr['from'] = dhtmlspecialchars($setarr['from']); $setarr['article_tag'] = dhtmlspecialchars($setarr['article_tag']); $setarr['fromurl'] = str_replace('&', '&', dhtmlspecialchars($setarr['fromurl'])); $aid = intval($_GET['aid']); $pid = intval($_GET['pid']); $status = intval($_GET['status']); $relatedarr = array(); if ($_GET['raids']) { $relatedarr = array_map('intval', $_GET['raids']); $relatedarr = array_unique($relatedarr); $relatedarr = array_filter($relatedarr); $setarr['raids'] = serialize($relatedarr); } $setarr['tag'] = article_make_tag($_GET['tag']); $setarr['last_modify'] = $_G['timestamp']; $user_info = get_user_info($setarr['uid']); $setarr['username'] = $user_info['username']; $article_arr = $setarr; DB::update('strayer_article_title', paddslashes($setarr), array('aid' => $aid)); $article_arr['is_download_img'] = $setarr['is_download_img']; $article_arr['is_water_img'] = $setarr['is_water_img']; $setarr = array(); $content = $_GET['message']; if (!$_GET['is_bbs']) { $regexp = '/(###NextPage(\\[title=(.*?)\\])?###)+/'; preg_match_all($regexp, $content, $arr); $contents = preg_split($regexp, $content); DB::delete('strayer_article_content', "aid='{$aid}'"); foreach ($contents as $k => $v) { $v = dstripslashes($v); $setarr['content'] = trim($v); $setarr['pageorder'] = $k + 1; $setarr['aid'] = $aid; $setarr['dateline'] = $_G['timestamp']; $article_arr['content_arr'][$k] = $setarr; DB::insert("strayer_article_content", paddslashes($setarr), true); } } else { //如果是带回复的 $setarr['content'] = trim($content); $setarr = dstripslashes($setarr); DB::update("strayer_article_content", paddslashes($setarr), array('aid' => $aid, 'pageorder' => 1)); } //var_dump($aid);exit(); $setarr = array(); $article_view_url = ''; if ($_GET['public_flag']) { $select = $_GET['select']; $article_arr['is_bbs'] = $_GET['is_bbs']; $article_arr['contents'] = $article_arr['is_bbs'] ? 1 : count($contents); $article_arr['content'] = dstripslashes(clear_ad_html($_GET['message'])); $article_arr['public_reply_seq'] = $p_arr['public_reply_seq']; $article_arr['is_public_reply'] = $p_arr['is_public_reply']; $article_arr['reply_uid'] = $p_arr['reply_uid']; $article_arr['is_page_public'] = $p_arr['is_page_public']; if ($p_arr['is_word_replace'] == 1) { //同义词替换 if ($article_arr['is_bbs'] != 1 && $article_arr['contents'] > 0) { //有几页的文章 $article_arr['content_arr'] = article_words_replace($article_arr['content_arr']); } $article_arr['content'] = article_words_replace($article_arr['content']); $article_arr['title'] = article_words_replace($article_arr['title']); if ($article_arr['reply']) { $article_arr['reply'] = article_words_replace($article_arr['reply']); } } $article_arr['content'] = str_replace("###NextPage###", "<\\br>", $article_arr['content']); $arr['content'] = htmlspecialchars_decode($arr['content'], ENT_QUOTES); $arr['content'] = format_html($arr['content']); $data_article_arr = article_info($aid); $is_timing = $pick_common_set['is_timing']; //if(!VIP) $is_timing = 0; //发布时间大于当前时间,放入定时发布中 if ($article_arr['public_time'] > $_G['timestamp'] && $is_timing == 1 && $aid) { if ($select == 1) { //门户 $timing_public_arr['portal'] = $article_arr['portal_cid']; } else { if ($select == 2) { //论坛 $timing_public_arr['forums'] = $article_arr['forum_fid']; $timing_public_arr['threadtypeid'] = $article_arr['forum_typeid']; } else { $timing_public_arr['blog'] = $article_arr['blog_big_cid']; $timing_public_arr['classid'] = $article_arr['blog_small_cid']; } } $timing_setarr = array('public_type' => $select, 'data_id' => $aid, 'content_type' => 1, 'public_dateline' => $article_arr['public_time'], 'pid' => $pid, 'public_info' => serialize($timing_public_arr)); article_timing_add($timing_setarr); cpmsg(milu_lang('article_public_timming', array('d' => dgmdate($article_arr['public_time'], 'u'))), PICK_GO . 'picker_manage&myfunc=article_edit&aid=' . $aid . '&pid=' . $pid, 'succeed'); return; } if ($select == 1) { //门户 $old_arr['portal_id'] = intval($_GET['old_portal_id']); $article_arr['relatedarr'] = $relatedarr; $setarr['portal_id'] = $article_arr['aid'] = article_move_portal($article_arr, $old_arr); //var_dump($setarr['portal_id']);exit(); $article_arr['cookie'] = $p_arr['login_cookie']; $article_arr['page_url'] = $data_article_arr['url']; $article_arr['is_download_file'] = $p_arr['is_download_file']; $article_arr['content_filter_html'] = unserialize(dstripslashes($p_arr['content_filter_html'])); downremotefile($article_arr, 'portal', $old_arr); article_thumb($setarr['portal_id']); $article_view_url = 'portal.php?mod=view&aid=' . $setarr['portal_id']; } else { if ($select == 2) { //论坛 if ($article_arr['contents'] > 1 && $article_arr['is_bbs'] == 0 && $p_arr['is_page_public'] == 1) { $article_arr['is_public_reply'] = 1; $article_arr['public_reply_seq'] = 0; $article_arr['is_content_reply'] = 1; $article_arr['is_bbs'] = 1; $article_arr['content'] = $article_arr['content_arr'][0]['content']; } else { if ($article_arr['is_bbs'] != 1) { $article_arr['reply'] = array(); } } if ($article_arr['is_bbs']) { $article_arr['reply'] = $data_article_arr['reply']; } $article_arr['cookie'] = $p_arr['login_cookie']; $article_arr['page_url'] = $data_article_arr['url']; $old_arr['forum_id'] = intval($_GET['old_forum_id']); $forum_arr = article_move_forums($article_arr, $old_arr); if ($forum_arr['is_download_img'] == 1) { //下载图片 $forum_arr['cookie'] = $p_arr['login_cookie']; $forum_arr['is_download_img'] = $article_arr['is_download_img']; $forum_arr['is_download_file'] = $p_arr['is_download_file']; $forum_arr['is_water_img'] = $article_arr['is_water_img']; forum_downremotefile($forum_arr, $old_arr); } $setarr['forum_id'] = $article_arr['tid'] = $forum_arr['tid']; $article_view_url = 'forum.php?mod=viewthread&tid=' . $setarr['forum_id']; } else { //博客 $old_arr['catid'] = intval($_GET['old_blog_big_cid']); $old_arr['classid'] = intval($_GET['old_blog_small_cid']); $old_arr['uid'] = intval($_GET['old_uid']); $old_arr['username'] = $_GET['old_username']; $old_arr['blog_id'] = $_GET['old_blog_id']; $setarr['blog_id'] = $article_arr['aid'] = article_move_blog($article_arr, $old_arr); $article_arr['cookie'] = $p_arr['login_cookie']; $article_arr['page_url'] = $data_article_arr['url']; $arr['is_download_file'] = $p_arr['is_download_file']; $arr['content_filter_html'] = unserialize(dstripslashes($p_arr['content_filter_html'])); downremotefile($article_arr, 'album', $old_arr); $article_view_url = 'home.php?mod=space&do=blog&uid=' . $article_arr['uid'] . '&id=' . $setarr['blog_id']; } } $setarr['status'] = 2; DB::update('strayer_article_title', $setarr, array('aid' => $aid)); } $msg = $_GET['public_flag'] ? milu_lang('public') : milu_lang('save'); $return_url = '?' . PICK_GO . 'picker_manage&myac=article_manage&p=1&pid=' . $pid . $_GET['url_args']; $return_list_html = '<a href="' . $return_url . '">' . milu_lang('return_list') . '</a>'; if ($article_view_url) { $article_view_output = ' <span class="pipe">|</span> <a target="_blank" href="' . $article_view_url . '">' . milu_lang('view_article') . '</a>'; } cpmsg(milu_lang('save_success', array('msg' => $msg)) . '<br><br><a href="?' . PICK_GO . 'picker_manage&myfunc=article_edit&aid=' . $aid . '&pid=' . $pid . '">' . milu_lang('continue_edit') . '</a> <span class="pipe">|</span> ' . $return_list_html . $article_view_output, PICK_GO . 'picker_manage&myfunc=article_edit&aid=' . $aid . '&pid=' . $pid, 'succeed'); } else { $pid = intval($_GET['pid']); $p_arr = get_pick_info($pid); $p_arr['public_class'] = unserialize($p_arr['public_class']); $aid = intval($_GET['aid']); $data = article_info($aid); $data['p_arr'] = $p_arr; $data['status'] = intval($_GET['status']); if (!$data['view_num']) { $view_arr = format_wrap($p_arr['view_num'], ','); if ($view_arr) { $data['view_num'] = rand($view_arr[0], $view_arr[1]); } } if ($data['contents'] > 1) { if ($data['content_arr']) { $data['content'] = content_merge($data['content_arr'], 1); } } $time_arr = create_public_time($data, 1); $data['public_time'] = array_pop($time_arr); $data['public_time'] = dgmdate($data['public_time'], 'Y-m-d H:i'); if (!$data['uid']) { $rand_arr = get_rand_uid($p_arr); $data['uid'] = $rand_arr[0]['uid']; } $data['raids'] = unserialize($data['raids']); if ($data['raids']) { $query = DB::query("SELECT title,aid FROM " . DB::table('portal_article_title') . " WHERE aid IN (" . dimplode($data['raids']) . ")"); $list = array(); while ($value = DB::fetch($query)) { $list[$value['aid']] = $value; $data['raids_html'] .= '<li id="raid_li_' . $value['aid'] . '"><input type="hidden" name="raids[]" value="' . $value['aid'] . '" size="5"><a href="portal.php?mod=view&aid=' . $value['aid'] . '" target="_blank">' . $value['title'] . '</a>(' . milu_lang('article') . ' ID: ' . $value['aid'] . ')<a href="javascript:;" onclick="raid_delete(' . $value['aid'] . ');" class="xg1">' . milu_lang('del') . '</a></li>'; } } if (!$data['forum_typeid']) { $data['forum_typeid'] = $p_arr['public_class'][1]; } $data['threadtypes'] = getthreadtypes(array('typeid' => $p_arr['public_class'][1], 'fid' => $p_arr['public_class'][0])); $data['forumselect'] = '<select id="forums" name="forums" onchange="getthreadtypes(this.value, 0)">' . forumselect(FALSE, 0, $p_arr['public_class'][0], TRUE) . '</select> <span id="threadtypes">' . $data['threadtypes'] . '</span>'; $data['portalselect'] = category_showselect('portal', 'portal', $p_arr['public_class'][0]); $data['blogselect'] = category_showselect('blog', 'blog', $p_arr['public_class'][0]); $data['article_tags'] = article_parse_tags($data['tag']); $data['tag_names'] = article_tagnames(); $data['show_blog_class'] = get_person_blog_class($data['uid'], $data['blog_small_cid']); $data['pid'] = $pid; $data['public_type'] = $p_arr['public_type']; $data['content'] = dhtmlspecialchars($data['content']); $data['url_args'] = $_GET['url_args']; return $data; } }
} elseif ($operation == 'move') { $_GET['catid'] = intval($_GET['catid']); if (!$_GET['catid'] || !$portalcategory[$_GET['catid']]) { cpmsg('portalcategory_catgory_not_found', '', 'error'); } if (!submitcheck('movesubmit')) { $article_count = C::t('portal_article_title')->fetch_count_for_cat($_GET['catid']); if (!$article_count) { cpmsg('portalcategory_move_empty_error', 'action=portalcategory', 'succeed'); } shownav('portal', 'portalcategory'); showsubmenu('portalcategory', array(array('list', 'portalcategory', 0), array('portalcategory_move', 'portalcategory&operation=move&catid=' . $_GET['catid'], 1))); showformheader('portalcategory&operation=move&catid=' . $_GET['catid']); showtableheader(); include_once libfile('function/portalcp'); showsetting('portalcategory_article_moveto', '', '', category_showselect('portal', 'tocatid', false, $portalcategory[$_GET['catid']]['upid'])); showsubmit('movesubmit', 'portalcategory_move'); showtablefooter(); showformfooter(); } else { if ($_POST['tocatid'] == $_GET['catid'] || empty($portalcategory[$_POST['tocatid']])) { cpmsg('portalcategory_move_category_failed', 'action=portalcategory', 'error'); } C::t('portal_article_title')->update_for_cat($_GET['catid'], array('catid' => $_POST['tocatid'])); C::t('portal_category')->update($_GET['catid'], array('articles' => 0)); $num = C::t('portal_article_title')->fetch_count_for_cat($_POST['tocatid']); C::t('portal_category')->update($_POST['tocatid'], array('articles' => $num)); updatecache('portalcategory'); cpmsg('portalcategory_move_succeed', 'action=portalcategory', 'succeed'); } } elseif ($operation == 'edit' || $operation == 'add') {
<div class="pbm bbda cl"> <div id="imgattach_notice" class="y" <?php if(empty($imgattachs['used'])) { ?> style="display: none"<?php } ?>> <?php if(helper_access::check_module('album') && $_G['group']['allowupload']) { ?> <div id="uploadPanel"> <label style="margin-right:10px;"><input type="checkbox" name="selectallimg" class="pc" value="1" onchange="selectAllSaveImg(this.checked);" onpropertychange="selectAllSaveImg(this.checked);" />全选</label> 将选中的图片保存到相册: <select name="uploadalbum" id="uploadalbum" class="ps vm" onchange="if(this.value == '-1') {selectCreateTab(0);}"> <?php if($albumlist) { if(is_array($albumlist)) foreach($albumlist as $album) { ?><option value="<?php echo $album['albumid'];?>"><?php echo $album['albumname'];?></option> <?php } } else { ?> <option value="-2">-------</option> <?php } ?> <option value="-1" style="color:red;">+创建新相册</option> </select> </div> <div id="createalbum" style="display:none"> <?php if($_G['setting']['albumcategorystat'] && !empty($_G['cache']['albumcategory'])) { echo category_showselect('album', 'albumcatid', !$_G['setting']['albumcategoryrequired'] ? true : false, $_GET['catid']);?> <?php } ?> <input type="text" name="newalbum" id="newalbum" class="px vm" size="15" value="请输入相册名称" onfocus="if(this.value == '请输入相册名称') {this.value = '';}" onblur="if(this.value == '') {this.value = '请输入相册名称';}" /> <button type="button" class="pn pnc" onclick="createNewAlbum();"><span>创建新相册</span></button><button type="button" class="pn" onclick="selectCreateTab(1);"><span>取消</span></button> </div> <?php } ?> </div> <span id="imgSpanButtonPlaceholder"></span> </div> <?php } ?> <div class="upfilelist upfl bbda"> <?php if(!empty($imgattachs['used'])) { $imagelist = $imgattachs['used'];?><?php include template('forum/ajax_imagelist'); } ?> <div id="imgattachlist"></div> <div id="unusedimgattachlist"></div> <?php if($allowuploadtoday) { ?>
function s_showsettings($pluginvars, $pluginvars_array) { global $_G, $lang, $plugin; $extra = array(); $s_e = 'ex'; foreach ($pluginvars_array as $k => $variable) { if (!isset($pluginvars[$variable])) { continue; } $var = $pluginvars[$variable]; if (strexists($var['type'], '_')) { continue; } $var['variable'] = 'varsnew[' . $var['variable'] . ']'; if ($var['type'] == 'number') { $var['type'] = 'text'; } elseif ($var['type'] == 'select') { $var['type'] = "<select name=\"{$var['variable']}\">\n"; foreach (explode("\n", $var['extra']) as $key => $option) { $option = trim($option); if (strpos($option, '=') === FALSE) { $key = $option; } else { $item = explode('=', $option); $key = trim($item[0]); $option = trim($item[1]); } $var['type'] .= "<option value=\"" . dhtmlspecialchars($key) . "\" " . ($var['value'] == $key ? 'selected' : '') . ">{$option}</option>\n"; } $var['type'] .= "</select>\n"; $var['variable'] = $var['value'] = ''; } elseif ($var['type'] == 'selects') { $var['value'] = unserialize($var['value']); $var['value'] = is_array($var['value']) ? $var['value'] : array($var['value']); $var['type'] = "<select name=\"{$var['variable']}[]\" multiple=\"multiple\" size=\"10\">\n"; foreach (explode("\n", $var['extra']) as $key => $option) { $option = trim($option); if (strpos($option, '=') === FALSE) { $key = $option; } else { $item = explode('=', $option); $key = trim($item[0]); $option = trim($item[1]); } $var['type'] .= "<option value=\"" . dhtmlspecialchars($key) . "\" " . (in_array($key, $var['value']) ? 'selected' : '') . ">{$option}</option>\n"; } $var['type'] .= "</select>\n"; $var['variable'] = $var['value'] = ''; } elseif ($var['type'] == 'date') { $var['type'] = 'calendar'; $extra['date'] = '<script type="text/javascript" src="static/js/calendar.js"></script>'; } elseif ($var['type'] == 'datetime') { $var['type'] = 'calendar'; $var['extra'] = 1; $extra['date'] = '<script type="text/javascript" src="static/js/calendar.js"></script>'; } elseif ($var['type'] == 'forum') { require_once libfile('function/forumlist'); $var['type'] = '<select name="' . $var['variable'] . '"><option value="">' . cplang('plugins_empty') . '</option>' . forumselect(FALSE, 0, $var['value'], TRUE) . '</select>'; $var['variable'] = $var['value'] = ''; } elseif ($var['type'] == 'forums') { $var['description'] = ($var['description'] ? (isset($lang[$var['description']]) ? $lang[$var['description']] : $var['description']) . "\n" : '') . $lang['plugins_edit_vars_multiselect_comment'] . "\n" . $var['comment']; $var['value'] = unserialize($var['value']); $var['value'] = is_array($var['value']) ? $var['value'] : array(); require_once libfile('function/forumlist'); $var['type'] = '<select name="' . $var['variable'] . '[]" size="10" multiple="multiple"><option value="">' . cplang('plugins_empty') . '</option>' . forumselect(FALSE, 0, 0, TRUE) . '</select>'; foreach ($var['value'] as $v) { $var['type'] = str_replace('<option value="' . $v . '">', '<option value="' . $v . '" selected>', $var['type']); } $var['variable'] = $var['value'] = ''; } elseif (substr($var['type'], 0, 5) == 'group') { if ($var['type'] == 'groups') { $var['description'] = ($var['description'] ? (isset($lang[$var['description']]) ? $lang[$var['description']] : $var['description']) . "\n" : '') . $lang['plugins_edit_vars_multiselect_comment'] . "\n" . $var['comment']; $var['value'] = unserialize($var['value']); $var['type'] = '<select name="' . $var['variable'] . '[]" size="10" multiple="multiple"><option value=""' . (@in_array('', $var['value']) ? ' selected' : '') . '>' . cplang('plugins_empty') . '</option>'; } else { $var['type'] = '<select name="' . $var['variable'] . '"><option value="">' . cplang('plugins_empty') . '</option>'; } $var['value'] = is_array($var['value']) ? $var['value'] : array($var['value']); $query = DB::query("SELECT type, groupid, grouptitle, radminid FROM " . DB::table('common_usergroup') . " ORDER BY (creditshigher<>'0' || creditslower<>'0'), creditslower, groupid"); $groupselect = array(); while ($group = DB::fetch($query)) { $group['type'] = $group['type'] == 'special' && $group['radminid'] ? 'specialadmin' : $group['type']; $groupselect[$group['type']] .= '<option value="' . $group['groupid'] . '"' . (@in_array($group['groupid'], $var['value']) ? ' selected' : '') . '>' . $group['grouptitle'] . '</option>'; } $var['type'] .= '<optgroup label="' . $lang['usergroups_member'] . '">' . $groupselect['member'] . '</optgroup>' . ($groupselect['special'] ? '<optgroup label="' . $lang['usergroups_special'] . '">' . $groupselect['special'] . '</optgroup>' : '') . ($groupselect['specialadmin'] ? '<optgroup label="' . $lang['usergroups_specialadmin'] . '">' . $groupselect['specialadmin'] . '</optgroup>' : '') . '<optgroup label="' . $lang['usergroups_system'] . '">' . $groupselect['system'] . '</optgroup></select>'; $var['variable'] = $var['value'] = ''; } elseif ($var['type'] == 'extcredit') { $var['type'] = '<select name="' . $var['variable'] . '"><option value="">' . cplang('plugins_empty') . '</option>'; foreach ($_G['setting']['extcredits'] as $id => $credit) { $var['type'] .= '<option value="' . $id . '"' . ($var['value'] == $id ? ' selected' : '') . '>' . $credit['title'] . '</option>'; } $var['type'] .= '</select>'; $var['variable'] = $var['value'] = ''; } elseif ($var['type'] == 'mcheckbox' || $var['type'] == 'mcheckbox2') { $drkextra = explode(chr(10), $var['extra']); foreach ($drkextra as $val) { $extr = explode('=', $val); $arr[] = array($extr[0], trim($extr[1])); } $var['variable'] = array($var['variable'], $arr); unset($arr); $var['value'] = unserialize($var['value']); } elseif ($var['type'] == 'portal') { include_once libfile('function/portalcp'); $var['type'] = category_showselect('portal', $var['variable'], false, $var['value']); } elseif ($var['type'] == 'portals') { $var['description'] = ($var['description'] ? (isset($lang[$var['description']]) ? $lang[$var['description']] : $var['description']) . "\n" : '') . $lang['plugins_edit_vars_multiselect_comment'] . "\n" . $var['comment']; $var['value'] = unserialize($var['value']); $var['value'] = is_array($var['value']) ? $var['value'] : array(); require_once libfile('function/forumlist'); $var['type'] = '<select name="' . $var['variable'] . '[]" size="10" multiple="multiple"><option value="">' . cplang('plugins_empty') . '</option>' . s_portalselect('catid', 0, '') . '</select>'; foreach ($var['value'] as $v) { $var['type'] = str_replace('<option value="' . $v . '">', '<option value="' . $v . '" selected>', $var['type']); } $var['variable'] = $var['value'] = ''; } elseif ($var['type'] == 'mradio' || $var['type'] == 'mradio2') { $extras = explode(chr(10), $var['extra']); $a[] = $var['variable']; foreach ($extras as $value) { $extra = explode('=', $value); $b[$var['variable'] . 'ext'] = ''; $c[] = $extra[0]; $c[] = $extra[1]; $c[] = $b; $d[] = $c; unset($b); unset($c); } $a[] = $d; unset($d); $var['variable'] = $a; unset($a); $extra = ''; } s_showsetting(isset($lang[$var['title']]) ? $lang[$var['title']] : dhtmlspecialchars($var['title']), $var['variable'], $var['value'], $var['type'], '', 0, isset($lang[$var['description']]) ? $lang[$var['description']] : nl2br(dhtmlspecialchars($var['description'])), dhtmlspecialchars($var['extra']), '', true); } $s_e .= 'it'; $md5file = $plugin['identifier'] . '.plugin'; $array = array(); if (file_exists(DISCUZ_ROOT . './data/addonmd5/' . $md5file . '.xml')) { require_once libfile('class/xml'); $xml = implode('', @file(DISCUZ_ROOT . './data/addonmd5/' . $md5file . '.xml')); $array = xml2array($xml); } else { $array = false; } require_once DISCUZ_ROOT . './source/discuz_version.php'; $uniqueid = DB::result_first("SELECT svalue FROM " . DB::table('common_setting') . " WHERE skey='siteuniqueid'"); $data = 'siteuniqueid=' . rawurlencode($uniqueid) . '&siteurl=' . rawurlencode($_G['siteurl']) . '&sitever=' . DISCUZ_VERSION . '/' . DISCUZ_RELEASE . '&sitecharset=' . CHARSET . '&mysiteid=' . $_G['setting']['my_siteid']; $param = 'data=' . rawurlencode(base64_encode($data)); $param .= '&md5hash=' . substr(md5($data . TIMESTAMP), 8, 8) . '×tamp=' . TIMESTAMP; $s_url = CLOUDADDONS_DOWNLOAD_URL . '?' . $param . '&from=s&mod=app&ac=validator&addonid=' . $addonid . ($array !== false ? '&rid=' . $array['RevisionID'] . '&sn=' . $array['SN'] . '&rd=' . $array['RevisionDateline'] : ''); if (dfsockopen($s_url, 0, '', '', false, CLOUDADDONS_DOWNLOAD_IP) === '0') { $values['addonid'] = $addonid; $values['ADMINSCRIPT'] = ADMINSCRIPT; $message = cplang('clo' . 'uda' . 'ddons_ge' . 'nu' . 'ine_me' . 'ss' . 'age', $values); $message = "<h4 class=\"infotitle3\">{$message}</h4>"; echo '<div class="infobox">' . $message . '</div>'; $s_e(); } return $extra; }
function article_manage() { global $head_url, $header_config; $data = article_get_args(); $info = $data['info']; $args = $data['args']; $data = get_pick_info(); $info['public_class'] = unserialize($data['public_class']); $info['status'] = $args['status'] ? $args['status'] : intval($_GET['status']); $info['pid'] = $_GET['pid'] ? intval($_GET['pid']) : $args['pid']; //if(!VIP) unset($info['status_arr'][4]); foreach ($info['status_arr'] as $k => $v) { $info['a_c'][$k] = article_count($info['pid'], $k); } $info['oparea'] = $_GET['oparea']; $info['optype'] = $_GET['optype']; $args['pid'] = $info['pid']; $article_data = article_list($args); $info['pick'] = $data = get_pick_info(); if ($info['optype'] == 'move_portal') { $info['public_class'][0] = $_GET['portal']; } else { if ($info['optype'] == 'move_forums') { $info['public_class'][0] = $_GET['forums']; $info['public_class'][1] = $_GET['threadtypeid']; } else { if ($info['optype'] == 'move_blog') { $info['public_class'][0] = $_GET['blog']; } } } if ($_GET['time_public'] == 1) { $info['pick']['public_start_time'] = $info['pick']['public_end_time'] = ''; } $info['p'] = $_GET['p']; //判断是不是从采集器列表进来 $info['pick']['public_start_time'] = $_GET['public_start_time'] ? $_GET['public_start_time'] : $info['pick']['public_start_time']; $info['pick']['public_end_time'] = $_GET['public_end_time'] ? $_GET['public_end_time'] : $info['pick']['public_end_time']; $info['pick']['public_sort'] = $info['pick']['public_sort'] ? $info['pick']['public_sort'] : $_GET['public_sort']; $info['pick']['public_start_time'] = dgmdate($info['pick']['public_start_time']); $info['pick']['public_end_time'] = dgmdate($info['pick']['public_end_time']); $info['pick_select'] = pick_search_select('set[pid]', intval($info['pid'])); $info['article_move_pick_select'] = pick_search_select('move_pid', intval($_GET['move_pid']), $_GET['pid']); $info['rs'] = $article_data['rs']; $info['multipage'] = $article_data['multipage']; $info['count'] = $article_data['count']; if (!$info['p']) { $info['header'] = pick_header_output($header_config, $head_url); } $info['threadtypes'] = getthreadtypes(array('typeid' => $info['public_class'][1], 'fid' => $info['public_class'][0])); $info['forumselect'] = '<select id="forums" name="forums" onchange="getthreadtypes(this.value, 0)">' . forumselect(FALSE, 0, $info['public_class'][0], TRUE) . '</select>'; $info['forumselect_public'] = '<select id="public_forums" name="public_forums" >' . forumselect(FALSE, 0, $info['public_class'][0], TRUE) . '</select>'; $info['portalselect'] = category_showselect('portal', 'portal', FALSE, $info['public_class'][0]); $info['blogselect'] = category_showselect('blog', 'blog', TRUE, $info['public_class'][0]); $info['public_portalselect'] = category_showselect('portal', 'public_portal', FALSE, $info['public_class'][0]); $info['public_blogselect'] = category_showselect('blog', 'public_blog', TRUE, $info['public_class'][0]); $url_args = ''; unset($args['mpurl']); foreach ((array) $args as $k => $v) { if ($k == 'perpage' || $k == 'pid') { continue; } $url_args .= '&' . $k . '=' . $v; } $info['url_args'] = urlencode($url_args); return $info; }
if ($_GET['turn_type']) { $info = get_trun_data(); $info['rules_type'] = 2; $info['theme_url_test'] = $info['theme_url_test'] ? $info['theme_url_test'] : $info['detail_ID_test']; } $step = $_GET['step']; if (!$step) { $step = 1; } $info['time_out'] = $pick_config['time_out']; include_once libfile('function/portalcp'); require_once libfile('function/forumlist'); $threadtypes = getthreadtypes(array('typeid' => $info['public_class'][1], 'fid' => $info['public_class'][0])); $forumselect = '<select id="forums" name="forums" onchange="getthreadtypes(this.value, 0)">' . forumselect(FALSE, 0, $info['public_class'][0], TRUE) . '</select>'; $portalselect = category_showselect('portal', 'portal', FALSE, $info['public_class'][0]); $blogselect = category_showselect('blog', 'blog', TRUE, $info['public_class'][0]); $show_bottom_js = bottom_js_output($info); $info['pick_cid'] = $info['pick_cid'] ? $info['pick_cid'] : intval($_GET['pick_cid']); if ($_GET['editsubmit']) { $setarr = $_POST['set']; $setarr = dstripslashes($setarr); //if($_GET['time_public'] == 1) $setarr['public_start_time'] = $setarr['public_end_time'] = ''; $setarr['rules_var'] = serialize($_GET['rules_var']); $setarr['content_filter_html'] = serialize($_GET['content_filter_html']); $setarr['reply_filter_html'] = serialize($_GET['reply_filter_html']); $setarr['many_page_list'] = serialize($_GET['many_page_list']); $setarr['title_filter_rules'] = serialize($_GET['title_filter_rules']); $setarr['content_filter_rules'] = serialize($_GET['content_filter_rules']); $setarr['reply_filter_rules'] = serialize($_GET['reply_filter_rules']); $strtotime_public_start_time = strtotime($setarr['public_start_time']); $time_pre = '1234321';
if ($upid == 0) { if ($pdnovelcategory[$catid]['children']) { cpmsg('category_chlidren_error', 'action=pdnovel&operation=category', 'error'); } else { DB::query('DELETE FROM ' . DB::table('pdnovel_category') . (' WHERE catid = ' . $catid . ';')); pdnovelcache('pdnovelcategory', 'pdnovel'); cpmsg('category_delete_succeed', 'action=pdnovel&operation=category', 'succeed'); } } else { $pdnovel_count = DB::result_first('SELECT COUNT(*) FROM ' . DB::table('pdnovel_view') . (' WHERE catid = ' . $catid)); if ($pdnovel_count) { shownav('pdnovel', 'category'); showsubmenu('category', array(array('delete', 'pdnovel&operation=category&do=delete&catid=' . $catid, 1))); showformheader('pdnovel&operation=category&do=mdelete&catid=' . $catid); showtableheader(); echo "<tr><td colspan=\"2\" class=\"td27\">" . cplang('delete') . $pdnovelcategory[$catid]['catname'] . ":</td></tr>\r\n\t\t\t\t\t<tr class=\"noborder\">\r\n\t\t\t\t\t\t<td class=\"vtop rowform\">\r\n\t\t\t\t\t\t\t<ul class=\"nofloat\" onmouseover=\"altStyle(this);\">\r\n\t\t\t\t\t\t\t<li class=\"checked\"><input class=\"radio\" type=\"radio\" name=\"pdnovelop\" value=\"move\" checked /> " . cplang('category_moveto') . ' ' . category_showselect('toid', $catid) . "</li>\r\n\t\t\t\t\t\t\t<li><input class=\"radio\" type=\"radio\" name=\"pdnovelop\" value=\"delete\" /> " . cplang('category_delete') . "</li>\r\n\t\t\t\t\t\t\t</ul></td>\r\n\t\t\t\t\t\t<td class=\"vtop tips2\"></td>\r\n\t\t\t\t\t</tr>"; showsubmit('deletesubmit'); showtablefooter(); showformfooter(); } else { DB::query('DELETE FROM ' . DB::table('pdnovel_category') . (' WHERE catid = ' . $catid . ';')); pdnovelcache('pdnovelcategory', 'pdnovel'); cpmsg('category_delete_succeed', 'action=pdnovel&operation=category', 'succeed'); } } } else { if ($do = 'mdelete') { $catid = $_G['gp_catid']; $pdnovelop = $_G['gp_pdnovelop']; if ($pdnovelop == 'move') { $toid = $_G['gp_toid'];
$a_count = DB::result_first('SELECT COUNT(*) FROM ' . DB::table('home_album') . " WHERE catid = '{$_GET['catid']}'"); if (!$a_count && empty($category[$_GET[catid]]['children'])) { DB::query('DELETE FROM ' . DB::table('home_album_category') . " WHERE catid = '{$_GET['catid']}'"); include_once libfile('function/cache'); updatecache('albumcategory'); cpmsg('albumcategory_delete_succeed', 'action=albumcategory', 'succeed'); } shownav('portal', 'albumcategory'); showsubmenu('albumcategory', array(array('list', 'albumcategory', 0), array('delete', 'albumcategory&operation=delete&catid=' . $_GET['catid'], 1))); showformheader('albumcategory&operation=delete&catid=' . $_GET['catid']); showtableheader(); if ($category[$_GET[catid]]['children']) { showsetting('albumcategory_subcategory_moveto', '', '', '<input type="radio" name="subcat_op" value="trash" id="subcat_op_trash" checked="checked" />' . '<label for="subcat_op_trash" />' . cplang('albumcategory_subcategory_moveto_trash') . '</label>' . '<input type="radio" name="subcat_op" value="parent" id="subcat_op_parent" checked="checked" />' . '<label for="subcat_op_parent" />' . cplang('albumcategory_subcategory_moveto_parent') . '</label>'); } include_once libfile('function/portalcp'); showsetting('albumcategory_article_moveto', '', '', category_showselect('album', 'tocatid', false, $category[$_GET['catid']]['upid'])); showsubmit('deletesubmit'); showtablefooter(); showformfooter(); } else { if ($_POST['tocatid'] == $_GET['catid']) { cpmsg('albumcategory_move_category_failed', 'action=albumcategory', 'error'); } $delids = array($_GET['catid']); if ($category[$_GET['catid']]['children']) { if ($_POST['subcat_op'] == 'parent') { $upid = intval($category[$_GET['catid']]['upid']); DB::query('UPDATE ' . DB::table('home_album_category') . " SET upid = '{$upid}' WHERE catid IN (" . dimplode($category[$_GET['catid']]['children']) . ')'); } else { $delids = array_merge($delids, $category[$_GET['catid']]['children']); foreach ($category[$_GET['catid']]['children'] as $id) {
$allowcategorycache[$catid] = $_G['cache']['portalcategory'][$catid]; } } foreach ($allowcategorycache as &$_value) { if ($_value['upid'] && !isset($allowcategorycache[$_value['upid']])) { $_value['level'] = 0; } } $_G['cache']['portalcategory'] = $allowcategorycache; } if (empty($_G['cache']['portalcategory'])) { showmessage('portal_article_add_nopermission'); } $category = $_G['cache']['portalcategory']; $cate = $category[$catid]; $categoryselect = category_showselect('portal', 'catid', true, !empty($article['catid']) ? $article['catid'] : $catid); if ($aid) { $catid = intval($article['catid']); } if ($aid && $article['highlight']) { $stylecheck = ''; $stylecheck = explode('|', $article['highlight']); } $from_cookie_str = ''; $from_cookie = array(); $from_cookie_str = stripcslashes(getcookie('from_cookie')); $from_cookie = explode("\t", $from_cookie_str); $from_cookie = array_filter($from_cookie); if ($article) { foreach (C::t('portal_article_content')->fetch_all($aid) as $key => $value) { $nextpage = '';
showtableheader(cplang('album_new_result').' '.$albumcount, 'fixpadding'); } else { showtableheader(cplang('album_result').' '.$albumcount.(empty($newlist) ? ' <a href="###" onclick="$(\'searchposts\').style.display=\'\';$(\'postlist\').style.display=\'none\';$(\'albumforum\').pp.value=\'\';$(\'albumforum\').page.value=\'\';" class="act lightlink normal">'.cplang('research').'</a>' : ''), 'fixpadding'); } if($error) { echo "<tr><td class=\"lineheight\" colspan=\"15\">$lang[$error]</td></tr>"; } else { if($detail) { showsubtitle(array('', 'albumpic', 'albumname', 'author', 'updatetime', 'pic_num', 'privacy')); echo $albums; $optypehtml = '' .'<input type="radio" name="optype" id="optype_delete" value="delete" class="radio" /><label for="optype_delete">'.cplang('delete').'</label> ' ; $optypehtml .= '<input type="radio" name="optype" id="optype_move" value="move" class="radio" /><label for="optype_move">'.cplang('article_opmove').'</label> ' .category_showselect('album', 'tocatid', false) .' '; showsubmit('', '', '', '<input type="checkbox" name="chkall" id="chkall" class="checkbox" onclick="checkAll(\'prefix\', this.form, \'ids\')" /><label for="chkall">'.cplang('select_all').'</label> '.$optypehtml.'<input type="submit" class="btn" name="albumsubmit" value="'.cplang('submit').'" />', $multi); } else { showhiddenfields(array('albumids' => authcode($albumids, 'ENCODE'))); showsubmit('albumsubmit', 'delete', $detail ? 'del' : '', '', $multi); } } showtablefooter(); showformfooter(); echo '<iframe name="albumframe" style="display:none;"></iframe>'; showtagfooter('div'); } ?>