Ejemplo n.º 1
0
function showlistphoto($mname, $mlist, $multipage)
{
    //數據列表顯示
    showformheader('batchmod&m=' . $mname);
    showtableheader($mname . '_listresult', 'notop');
    showsubtitle(array());
    showtablefooter();
    echo '<div id="photo_list">';
    echo $mlist;
    echo '<div style="clear:both;"><table><tr><td style="width:30px;vertical-align:middle;height:25px;"><input style="float:left;" type="checkbox" name="chkall" onclick="checkall(this.form, \'item\')" checked/></td><td style="width:30px;vertical-align:middle;height:30px;">' . lang('selectall') . '</td><td id="pagetd" style="width:500px;vertical-align:middle;">' . $multipage . '</td></tr></table></div>';
    echo '<style>
				#pagetd .pages{margin-top:10px;}
			</style>
		</div>';
}
Ejemplo n.º 2
0
            }
        } else {
            $commentcount = 0;
            $query = DB::query("SELECT id FROM " . DB::table('forum_postcomment') . " c WHERE authorid>'-1' {$sql}");
            while ($row = DB::fetch($query)) {
                $cids .= ',' . $row['id'];
                $commentcount++;
            }
            $multi = '';
        }
    }
    showtagheader('div', 'postlist', $searchsubmit || $newlist);
    showformheader('postcomment&frame=no', 'target="postcommentframe"');
    showhiddenfields(array('cids' => authcode($cids, 'ENCODE')));
    if (!$search_tips) {
        showtableheader(cplang('postcomment_new_result') . ' ' . $commentcount, 'fixpadding');
    } else {
        showtableheader(cplang('postcomment_result') . ' ' . $commentcount . (empty($newlist) ? ' <a href="###" onclick="$(\'searchposts\').style.display=\'\';$(\'postlist\').style.display=\'none\';$(\'postcommentforum\').pp.value=\'\';$(\'postcommentforum\').page.value=\'\';" class="act lightlink normal">' . cplang('research') . '</a>' : ''), 'fixpadding');
    }
    if ($error) {
        echo "<tr><td class=\"lineheight\" colspan=\"15\">{$lang[$error]}</td></tr>";
    } elseif ($detail) {
        showsubtitle(array('', 'postcomment_content', 'author', 'time', 'ip', ''));
        echo $comments;
    }
    showsubmit('postcommentsubmit', 'delete', $detail ? 'del' : '', '', $multi);
    showtablefooter();
    showformfooter();
    echo '<iframe name="postcommentframe" style="display:none"></iframe>';
    showtagfooter('div');
}
Ejemplo n.º 3
0
<?php

if (!defined('IN_ADMINCP')) {
    exit('Access Denied');
}
include_once DISCUZ_ROOT . './source/plugin/dsu_updater/core.func.php';
showtableheader($du_lang['installed_plugin']);
showsubtitle(array($du_lang['plugin_name'], $du_lang['ver_installed'], $du_lang['ver_new'], $du_lang['action']));
$query = DB::query('SELECT name,identifier,version FROM ' . DB::table('common_plugin') . " WHERE identifier LIKE 'dsu_%'");
while ($result = DB::fetch($query)) {
    $output = array();
    $output[] = $result['name'];
    $output[] = $result['version'];
    $plugin[$result['identifier']] = $result['name'];
    $output[] = $_G['dsu_updater']['plugin'][$result['identifier']];
    if ($result['version'] == $_G['dsu_updater']['plugin'][$result['identifier']] || $_G['dsu_updater']['plugin'][$result['identifier']] == '') {
        $output[] = '';
    } else {
        $output[] = '<a href="admin.php?action=plugins&operation=config&identifier=dsu_updater&pmod=main&plugin=' . $result['identifier'] . '&formhash=' . FORMHASH . "\">{$du_lang[update_do]}</a>";
    }
    showtablerow('', '', $output);
}
showtablefooter();
if (submitcheck('plugin', 1)) {
    showtableheader($du_lang['update_status'] . $plugin[$_G['gp_plugin']]);
    echo '<tr><td class="tipsblock"><ul id="update_status"><li>&#27491;&#22312;&#35831;&#27714; Callback &#31995;&#32479;, &#35831;&#31245;&#20505;...</li></ul></td></tr>';
    showtablefooter();
    @(include_once DISCUZ_ROOT . './source/discuz_version.php');
    echo '<script onerror="document.getElementById(\'update_status\').innerHTML+=\'<li><font color=red>&#21457;&#36865; CallBack &#25968;&#25454;&#22833;&#36133;.</font></li>\'" src="http://update.dsu.cc/plugin.php?id=' . $_G['gp_plugin'] . '&site_id=' . $_G['dsu_updater']['site_id'] . '&keyhash=' . md5($_G['dsu_updater']['key']) . '&dv=' . DISCUZ_VERSION . '"></script>';
}
@(include_once DISCUZ_ROOT . './source/discuz_version.php');
Ejemplo n.º 4
0
             $list[$value['bid']] = $value;
         }
         if ($list) {
             foreach ($list as $bid => $value) {
                 $inpage = empty($diypage[$bid]) ? cplang('block_page_nopage') : implode('<br/>', $diypage[$bid]);
                 $theclass = block_getclass($value['blockclass'], true);
                 showtablerow('', array('class="td25"'), array("<input type=\"checkbox\" class=\"checkbox\" name=\"ids[]\" value=\"{$value['bid']}\">", !empty($value['name']) ? $value['name'] : cplang('block_name_null'), $theclass['script'][$value['script']], $value['styleid'] ? $theclass['style'][$value['styleid']]['name'] : lang('portalcp', 'blockstyle_diy'), !empty($value['dateline']) ? dgmdate($value['dateline']) : cplang('block_dateline_null'), $inpage, "<a href=\"portal.php?mod=portalcp&ac=block&op=block&bid={$value['bid']}&blocktype=1&from=cp\" target=\"_blank\" onclick=\"showWindow('showblock',this.href);return false;\">" . cplang('block_setting') . "</a> &nbsp;&nbsp" . "<a href=\"portal.php?mod=portalcp&ac=block&op=getblock&forceupdate=1&inajax=1&bid={$value['bid']}&from=cp\" onclick=\"ajaxget(this.href,'','','','',function(){location.reload();});return false;\">" . cplang('block_update') . "</a> &nbsp;&nbsp" . "<a href=\"portal.php?mod=portalcp&ac=block&op=data&bid={$value['bid']}&blocktype=1&from=cp\" target=\"_blank\" onclick=\"showWindow('showblock',this.href);return false;\">" . cplang('block_data') . "</a> &nbsp;&nbsp" . "<a href=\"javascript:;\" onclick=\"prompt('" . cplang('block_copycode_message') . "', '<!--{block/{$value['bid']}}-->')\">" . cplang('block_copycode_inner') . "</a> &nbsp;&nbsp" . "<a href=\"javascript:;\" onclick=\"prompt('" . cplang('block_copycode_jsmessage') . "', '&lt;script type=&quot;text/javascript&quot; src=&quot;{$_G['siteurl']}api.php?mod=js&bid={$value['bid']}&quot;&gt;&lt;/script&gt;')\">" . cplang('block_copycode_outer') . "</a>&nbsp;&nbsp;<a href=\"" . ADMINSCRIPT . "?action=block&operation=perm&bid={$value['bid']}\">" . cplang('portalcategory_perm') . '</a>'));
             }
         }
         $multipage = multi($count, $perpage, $page, $mpurl);
     }
     showsubmit('', '', '', '<input type="checkbox" name="chkall" id="chkall" class="checkbox" onclick="checkAll(\'prefix\', this.form, \'ids\')" /><label for="chkall">' . cplang('select_all') . '</label>&nbsp;&nbsp;<input type="submit" class="btn" name="deletesubmit" value="' . cplang('block_delete') . '" />', $multipage);
     showtablefooter();
     showformfooter();
 } else {
     showsubtitle(array('block_name', 'block_script', 'block_style', 'block_dateline', 'block_page', 'operation'));
     $multipage = '';
     $count = DB::result(DB::query("SELECT COUNT(*) FROM " . DB::table('common_block') . " b LEFT JOIN " . DB::table('common_template_block') . " tb ON tb.bid=b.bid WHERE {$wheresql}"), 0);
     if ($count) {
         $query = DB::query("SELECT b.*, tb.targettplname FROM " . DB::table('common_block') . " b LEFT JOIN " . DB::table('common_template_block') . " tb ON b.bid=tb.bid WHERE {$wheresql} {$ordersql} LIMIT {$start},{$perpage}");
         while ($value = DB::fetch($query)) {
             if ($value['targettplname']) {
                 $diyurl = block_getdiyurl($value['targettplname']);
                 $diyurl = $diyurl['url'];
                 $tplname = isset($_G['cache']['diytemplatename'][$value['targettplname']]) ? $_G['cache']['diytemplatename'][$value['targettplname']] : $value['targettplname'];
                 $diypage[$value['bid']][$value['targettplname']] = $diyurl ? '<a href="' . $diyurl . '" target="_blank">' . $tplname . '</a>' : $tplname;
             }
             $list[$value['bid']] = $value;
         }
         if ($list) {
             foreach ($list as $bid => $value) {
Ejemplo n.º 5
0
						</td>
						<td>
							<a href="admin.php?action=yuexiamen&operation=edit&area=' . $area . '&do=' . $do . '&placeid=' . $value['id'] . '">编辑</a>&nbsp;
							<a href="admin.php?frames=yes&action=yuexiamen&operation=delete&area=' . $area . '&do=' . $do . '&placeid=' . $value['id'] . '">删除</a>&nbsp;
						</td>
					</tr>';
    }
    showtablefooter();
    showformfooter();
} elseif ($operation == 'list' && $do == 'zhusu') {
    $yuexiamen = C::t('yuexiamen_zhusu')->fetch_all_by_areaid($maparea[$area]);
    echo '<div style="height:30px;line-height:30px;"><a href="admin.php?action=yuexiamen&operation=add&area=' . $area . '&do=' . $do . '">增加</a> |
				<a href="admin.php?action=yuexiamen&operation=list&area=' . $area . '&do=' . $do . '">列表</a> </div>';
    $tdstyle = array('width="25"', 'width="60"', 'width="45"', 'width="55"');
    showtableheader('', '', 'style="min-width:900px;*width:900px;"');
    showsubtitle(array('id', '简介', '管理'), 'header', $tdstyle);
    foreach ($yuexiamen as $key => $value) {
        echo '<tr class="hover" id="cat4">
						<td>' . $value['id'] . '</td>

						<td>
							<div class="parentboard">' . $value['introduction'] . '</div>
						</td>
						<td>
							<a href="admin.php?action=yuexiamen&operation=edit&area=' . $area . '&do=' . $do . '&placeid=' . $value['id'] . '">编辑</a>&nbsp;
							<a href="admin.php?frames=yes&action=yuexiamen&operation=delete&area=' . $area . '&do=' . $do . '&placeid=' . $value['id'] . '">删除</a>&nbsp;
						</td>
					</tr>';
    }
    showtablefooter();
    showformfooter();
Ejemplo n.º 6
0
if (!isfounder()) {
    cpmsg('noaccess_isfounder', '', 'error');
}
$operation = empty($operation) ? 'admin' : $operation;
if ($operation == 'admin') {
    if (!submitcheck('tplsubmit')) {
        $templates = '';
        $query = DB::query("SELECT * FROM " . DB::table('common_template') . "");
        while ($tpl = DB::fetch($query)) {
            $templates .= showtablerow('', array('class="td25"', '', 'class="td29"'), array("<input class=\"checkbox\" type=\"checkbox\" name=\"delete[]\" " . ($tpl['templateid'] == 1 ? 'disabled ' : '') . "value=\"{$tpl['templateid']}\">", "<input type=\"text\" class=\"txt\" size=\"8\" name=\"namenew[{$tpl['templateid']}]\" value=\"{$tpl['name']}\">", "<input type=\"text\" class=\"txt\" size=\"20\" name=\"directorynew[{$tpl['templateid']}]\" value=\"{$tpl['directory']}\">", !empty($tpl['copyright']) ? $tpl['copyright'] : "<input type=\"text\" class=\"txt\" size=\"8\" name=\"copyrightnew[{$tpl['templateid']}]\" value=>"), TRUE);
        }
        shownav('style', 'templates_admin');
        showsubmenu('templates_admin');
        showformheader('templates');
        showtableheader();
        showsubtitle(array('', 'templates_admin_name', 'dir', 'copyright', ''));
        echo $templates;
        echo '<tr><td>' . $lang['add_new'] . '</td><td><input type="text" class="txt" size="8" name="newname"></td><td class="td29"><input type="text" class="txt" size="20" name="newdirectory"></td><td><input type="text" class="txt" size="25" name="newcopyright"></td><td>&nbsp;</td></tr>';
        showsubmit('tplsubmit', 'submit', 'del');
        showtablefooter();
        showformfooter();
    } else {
        if ($_G['gp_newname']) {
            if (!$_G['gp_newdirectory']) {
                cpmsg('tpl_new_directory_invalid', '', 'error');
            } elseif (!istpldir($_G['gp_newdirectory'])) {
                $directory = $_G['gp_newdirectory'];
                cpmsg('tpl_directory_invalid', '', 'error', array('directory' => $directory));
            }
            DB::insert('common_template', array('name' => $_G['gp_newname'], 'directory' => $_G['gp_newdirectory'], 'copyright' => $_G['gp_newcopyright']));
        }
Ejemplo n.º 7
0
<script type="text/JavaScript">
\tvar rowtypedata = [
\t\t[
\t\t\t[1,'', 'td25'],
\t\t\t[1,'<input type="text" class="txt" name="newdisplayorder[]" size="3">', 'td28'],
\t\t\t[1,'<input type="text" class="txt" name="newtitle[]" size="25">'],
\t\t\t[1,'<input type="text" class="txt" name="newurl[]" size="40">', 'td26']
\t\t]
\t];
</script>
EOT;
            shownav('tools', 'nav_custommenu');
            showsubmenu('nav_custommenu');
            showformheader('misc&operation=custommenu');
            showtableheader();
            showsubtitle(array('', 'display_order', 'name', 'URL'));
            echo $optionlist;
            echo '<tr><td></td><td colspan="3"><div><a href="###" onclick="addrow(this, 0)" class="addtr">' . $lang['custommenu_add'] . '</a></div></td></tr>';
            showsubmit('optionsubmit', 'submit', 'del', '', $multipage);
            showtablefooter();
            showformfooter();
        } else {
            if ($ids = dimplode($_GET['delete'])) {
                C::t('common_admincp_cmenu')->delete($_GET['delete'], $_G['uid']);
            }
            if (is_array($_GET['titlenew'])) {
                foreach ($_GET['titlenew'] as $id => $title) {
                    $_GET['urlnew'][$id] = rawurlencode($_GET['urlnew'][$id]);
                    $title = dhtmlspecialchars($_GET['langnew'][$id] && cplang($_GET['langnew'][$id], false) ? $_GET['langnew'][$id] : $title);
                    $ordernew = intval($_GET['displayordernew'][$id]);
                    C::t('common_admincp_cmenu')->update($id, array('title' => $title, 'displayorder' => $ordernew, 'url' => dhtmlspecialchars($_GET['urlnew'][$id])));
Ejemplo n.º 8
0
        echo <<<EOT
<script type="text/JavaScript">
\tfunction page(number) {
\t\t\$('attachmentforum').page.value=number;
\t\t\$('attachmentforum').searchsubmit.click();
\t}
</script>
EOT;
        showtagheader('div', 'admin', $searchsubmit);
        showformheader('attach', '', 'attachmentforum');
        showhiddenfields(array('page' => $page, 'nomatched' => $nomatched, 'inforum' => $inforum, 'sizeless' => $sizeless, 'sizemore' => $sizemore, 'dlcountless' => $dlcountless, 'dlcountmore' => $dlcountmore, 'daysold' => $daysold, 'filename' => $filename, 'keywords' => $keywords, 'author' => $author));
        echo '<input type="submit" name="searchsubmit" value="' . lang('submit') . '" class="btn" style="display: none" />';
        showformfooter();
        showformheader('attach&frame=no', 'target="attachmentframe"');
        showtableheader();
        showsubtitle(array('', 'filename', 'attach_path', 'author', 'attach_thread', 'size', 'attach_downloadnums', ''));
        echo $attachments;
        showsubmit('deletesubmit', 'submit', 'del', '<a href="###" onclick="$(\'admin\').style.display=\'none\';$(\'search\').style.display=\'\';" class="act lightlink normal">' . lang('research') . '</a>', $multipage);
        showtablefooter();
        showformfooter();
        echo '<iframe name="attachmentframe" style="display:none"></iframe>';
        showtagfooter('div');
    }
} else {
    if ($ids = implodeids($delete)) {
        $tids = $pids = 0;
        $query = $db->query("SELECT tid, pid, attachment, thumb, remote FROM {$tablepre}attachments WHERE aid IN ({$ids})");
        while ($attach = $db->fetch_array($query)) {
            dunlink($attach['attachment'], $attach['thumb'], $attach['remote']);
            $tids .= ',' . $attach['tid'];
            $pids .= ',' . $attach['pid'];
Ejemplo n.º 9
0
         $raterangetable = '';
         while ($group = $db->fetch_array($query)) {
             $ratemin = $ratemax = $ratemrpd = '';
             foreach (explode("\n", $group['raterange']) as $range) {
                 $range = explode("\t", $range);
                 if ($range[0] == $credit) {
                     $ratemin = $range[1];
                     $ratemax = $range[2];
                     $ratemrpd = $range[3];
                     break;
                 }
             }
             $raterangetable .= showtablerow('', array('', 'class="td28"', 'class="td28"', 'class="td28"'), array("<input class=\"checkbox\" type=\"checkbox\" name=\"raterangestatus[{$group['groupid']}]\" value=\"1\" " . ($ratemin && $ratemax && $ratemax ? 'checked' : '') . "> <a href=\"{$BASESCRIPT}?frames=yes&action=groups&operation=user&do=edit&id={$group['groupid']}&anchor=exempt\" target=\"_blank\">{$group['grouptitle']}</a>", "<input type=\"text\" class=\"txt\" name=\"ratemin[{$group['groupid']}]\" size=\"3\" value=\"{$ratemin}\">", "<input type=\"text\" class=\"txt\" name=\"ratemax[{$group['groupid']}]\" size=\"3\" value=\"{$ratemax}\">", "<input type=\"text\" class=\"txt\" name=\"ratemrpd[{$group['groupid']}]\" size=\"3\" value=\"{$ratemrpd}\">"), TRUE);
         }
         showtitle('creditwizard_forum_groupraterange');
         showsubtitle(array('forum', 'usergroups_edit_raterange_min', 'usergroups_edit_raterange_max', 'usergroups_edit_raterange_mrpd'));
         echo $raterangetable;
         showsubmit('settingsubmit', 'submit', '<input type="reset" class="btn" name="settingsubmit" value="' . $lang['reset'] . '" />');
         showtablefooter();
         showformfooter();
     }
 } else {
     if ($type == 1) {
         if ($creditstrans == $credit && empty($settingsnew['available'])) {
             cpmsg('settings_creditstrans_invalid', '', 'error');
         }
         $initcredits[$credit] = $settingsnew['init'];
         $initcredits = implode(',', $initcredits);
         $extcredits[$credit] = array('title' => dhtmlspecialchars(stripslashes($settingsnew['title'])), 'unit' => dhtmlspecialchars(stripslashes($settingsnew['unit'])), 'ratio' => $settingsnew['ratio'] > 0 ? (double) $settingsnew['ratio'] : 0, 'available' => $settingsnew['available'], 'showinthread' => $settingsnew['showinthread'], 'allowexchangeout' => $settingsnew['allowexchangeout'], 'allowexchangein' => $settingsnew['allowexchangein'], 'lowerlimit' => intval($settingsnew['lowerlimit']));
         $extcredits = addslashes(serialize($extcredits));
         $creditspolicy['post'][$credit] = intval($settingsnew['policy_post']);
Ejemplo n.º 10
0
					$("nt_" + id).style.display = v.substr(4,1) == "1" ? "" : "none";
					$("ni_" + id).style.display = v.substr(5,1) == "1" ? "" : "none";
					$("nsn_" + id).style.display = v.substr(6,1) == "1" ? "" : "none";
					$("nsu_" + id).style.display = v.substr(6,1) == "1" ? "" : "none";
				} else {
					$("n_" + id).style.display = "none";
				}
				e = obj.options[obj.selectedIndex].getAttribute("e");
				$("e_" + id).innerHTML = e && ($("url_" + id).value == \'\' || $("u_" + id).style.display == "none") ? "." + e + ".php" : "";
			}
			shide($("s_n"), "n");' . $shideinit . '
		</script>';
        showtagheader('div', 'vars', $anchor == 'vars');
        showformheader("plugins&operation=edit&type=vars&pluginid={$pluginid}", '', 'varsform');
        showtableheader('plugins_edit_vars');
        showsubtitle(array('', 'display_order', 'plugins_vars_title', 'plugins_vars_variable', 'plugins_vars_type', ''));
        $query = DB::query("SELECT * FROM " . DB::table('common_pluginvar') . " WHERE pluginid='{$plugin['pluginid']}' ORDER BY displayorder");
        while ($var = DB::fetch($query)) {
            $var['type'] = $lang['plugins_edit_vars_type_' . $var['type']];
            $var['title'] .= isset($lang[$var['title']]) ? '<br />' . $lang[$var['title']] : '';
            showtablerow('', array('class="td25"', 'class="td28"'), array("<input class=\"checkbox\" type=\"checkbox\" name=\"delete[]\" value=\"{$var['pluginvarid']}\">", "<input type=\"text\" class=\"txt\" size=\"2\" name=\"displayordernew[{$var['pluginvarid']}]\" value=\"{$var['displayorder']}\">", $var['title'], $var['variable'], $var['type'], "<a href=\"" . ADMINSCRIPT . "?action=plugins&operation=vars&pluginid={$plugin['pluginid']}&pluginvarid={$var['pluginvarid']}\" class=\"act\">{$lang['detail']}</a>"));
        }
        showtablerow('', array('class="td25"', 'class="td28"'), array(cplang('add_new'), '<input type="text" class="txt" size="2" name="newdisplayorder" value="0">', '<input type="text" class="txt" size="15" name="newtitle">', '<input type="text" class="txt" size="15" name="newvariable">', '<select name="newtype">
				<option value="number">' . cplang('plugins_edit_vars_type_number') . '</option>
				<option value="text" selected>' . cplang('plugins_edit_vars_type_text') . '</option>
				<option value="textarea">' . cplang('plugins_edit_vars_type_textarea') . '</option>
				<option value="radio">' . cplang('plugins_edit_vars_type_radio') . '</option>
				<option value="select">' . cplang('plugins_edit_vars_type_select') . '</option>
				<option value="selects">' . cplang('plugins_edit_vars_type_selects') . '</option>
				<option value="color">' . cplang('plugins_edit_vars_type_color') . '</option>
				<option value="date">' . cplang('plugins_edit_vars_type_date') . '</option>
Ejemplo n.º 11
0
 unset($list['residecommunity']);
 unset($list['idcardtype']);
 if (!submitcheck('ordersubmit')) {
     $_GET['anchor'] = in_array($_GET['action'], array('members', 'setting')) ? $_GET['action'] : 'members';
     $current = array($_GET['anchor'] => 1);
     $profilenav = array(array('members_profile_list', 'members&operation=profile', $current['members']), array('members_profile_group', 'setting&operation=profile', $current['setting']));
     showsubmenu($lang['members_profile'], $profilenav);
     showtips('members_profile_tips');
     showformheader('members&operation=profile');
     showtableheader('', '', 'id="profiletable_header"');
     $tdstyle = array('class="td22"', 'class="td28" width="100"', 'class="td28" width="100"', 'class="td28" width="100"', 'class="td28" width="100"', 'class="td28"', 'class="td28"');
     showsubtitle(array('members_profile_edit_name', 'members_profile_edit_display_order', 'members_profile_edit_available', 'members_profile_edit_profile_view', 'members_profile_edit_card_view', 'members_profile_edit_reg_view', ''), 'header tbm', $tdstyle);
     showtablefooter();
     echo '<script type="text/javascript">floatbottom(\'profiletable_header\');</script>';
     showtableheader('members_profile', 'nobottom', 'id="porfiletable"');
     showsubtitle(array('members_profile_edit_name', 'members_profile_edit_display_order', 'members_profile_edit_available', 'members_profile_edit_profile_view', 'members_profile_edit_card_view', 'members_profile_edit_reg_view', ''), 'header', $tdstyle);
     foreach ($list as $fieldid => $value) {
         $value['available'] = '<input type="checkbox" class="checkbox" name="available[' . $fieldid . ']" ' . ($value['available'] ? 'checked="checked" ' : '') . 'value="1">';
         $value['invisible'] = '<input type="checkbox" class="checkbox" name="invisible[' . $fieldid . ']" ' . (!$value['invisible'] ? 'checked="checked" ' : '') . 'value="1">';
         $value['showincard'] = '<input type="checkbox" class="checkbox" name="showincard[' . $fieldid . ']" ' . ($value['showincard'] ? 'checked="checked" ' : '') . 'value="1">';
         $value['showinregister'] = '<input type="checkbox" class="checkbox" name="showinregister[' . $fieldid . ']" ' . ($value['showinregister'] ? 'checked="checked" ' : '') . 'value="1">';
         $value['displayorder'] = '<input type="text" name="displayorder[' . $fieldid . ']" value="' . $value['displayorder'] . '" size="5">';
         $value['edit'] = '<a href="' . ADMINSCRIPT . '?action=members&operation=profile&fieldid=' . $fieldid . '" title="" class="act">' . $lang[edit] . '</a>';
         showtablerow('', array(), $value);
     }
     showsubmit('ordersubmit');
     showtablefooter();
     showformfooter();
 } else {
     foreach ($_GET['displayorder'] as $fieldid => $value) {
         $setarr = array('displayorder' => intval($value), 'invisible' => intval($_GET['invisible'][$fieldid]) ? 0 : 1, 'available' => intval($_GET['available'][$fieldid]), 'showincard' => intval($_GET['showincard'][$fieldid]), 'showinregister' => intval($_GET['showinregister'][$fieldid]));
Ejemplo n.º 12
0
        showsetting('collection_uid', 'collection_uid', $collection_uid, 'text');
        showsetting('feed_search_perpage', '', $_GET['perpage'], "<select name='perpage'><option value='20'>{$lang['perpage_20']}</option><option value='50'>{$lang['perpage_50']}</option><option value='100'>{$lang['perpage_100']}</option></select>");
        showsubmit('searchsubmit');
        showtablefooter();
        showformfooter();
        showtagfooter('div');
    } else {
        $collection_name = trim($_GET['collection_name']);
        $collection_ctid = dintval($_GET['collection_ctid']);
        $collection_username = trim($_GET['collection_username']);
        $collection_uid = dintval($_GET['collection_uid']);
        $ppp = $_GET['perpage'];
        $startlimit = ($page - 1) * $ppp;
        $multipage = '';
        $totalcount = C::t('forum_collection')->fetch_all_for_search($collection_name, $collection_ctid, $collection_username, $collection_uid, -1);
        $multipage = multi($totalcount, $ppp, $page, ADMINSCRIPT . "?action=collection&operation=admin&searchsubmit=yes&collection_name={$collection_name}&collection_ctid={$collection_ctid}&collection_username={$collection_username}&collection_uid={$collection_uid}&perpage={$ppp}&status={$status}");
        $collection = C::t('forum_collection')->fetch_all_for_search($collection_name, $collection_ctid, $collection_username, $collection_uid, $startlimit, $ppp);
        showformheader('collection&operation=admin');
        showtableheader(cplang('collection_result') . ' ' . $totalcount . ' <a href="###" onclick="location.href=\'' . ADMINSCRIPT . '?action=collection&operation=admin\';" class="act lightlink normal">' . cplang('research') . '</a>', 'nobottom');
        showhiddenfields(array('page' => $_GET['page'], 'collection_name' => $collection_name, 'collection_ctid' => $collection_ctid, 'perpage' => $ppp));
        showsubtitle(array('', 'collection_name', 'collection_username', 'collection_date'));
        foreach ($collection as $uniquecollection) {
            showtablerow('', array('class="td25"', 'width=400', ''), array("<input class=\"checkbox\" type=\"checkbox\" name=\"ctidarray[]\" value=\"{$uniquecollection['ctid']}\" />", "<a href='forum.php?mod=collection&action=view&ctid={$uniquecollection['ctid']}' target='_blank'>{$uniquecollection['name']}</a>", "<a href='home.php?mod=space&uid={$uniquecollection['uid']}' target='_blank'>{$uniquecollection['username']}</a>", dgmdate($uniquecollection['dateline'])));
        }
        showtablerow('', array('class="td25" colspan="3"'), array('<input name="chkall" id="chkall" type="checkbox" class="checkbox" onclick="checkAll(\'prefix\', this.form, \'ctidarray\', \'chkall\')" /><label for="chkall">' . cplang('select_all') . '</label>'));
        showtablerow('', array('class="td25"', 'colspan="2"'), array(cplang('operation'), '<input class="radio" type="radio" name="operate_type" value="delete"> ' . cplang('delete') . ' '));
        showsubmit('submit', 'submit', '', '', $multipage);
        showtablefooter();
        showformfooter();
    }
}
Ejemplo n.º 13
0
                showtablerow('', array('class="td27" style="width:30px;"'), array("<input class='radio' type='radio' name='cmid' value='{$value['cmid']}' {$checked}/>", $value['modelname'], $value['scorenamestr'], date('Y-m-d', $value['dateline'])));
            }
            echo "</table>";
        } else {
            showtablerow('', array('class="td27"'), array(lang('catmodel_add')));
        }
        echo "</td></tr>";
        showtagfooter('tbody');
    }
    showhiddenfields(array('upid' => $_GET['upid']));
    showhiddenfields(array('catid' => $_GET['catid']));
    showhiddenfields(array('type' => $type));
    showsubmit('valuesubmit');
    showtablefooter();
    showformfooter();
} else {
    //沒有提交數據的列表頁
    shownav('catmanage', 'category_' . $type . '_list');
    showsubmenu('menu_category_' . $type);
    showtips('category_list_tips_' . $type);
    showformheader('category&type=' . $type);
    showtableheader('');
    showsubtitle(array('display_order', 'catid', 'catname', 'operation'));
    foreach ($categorylist as $value) {
        showtablerow('', array(), array('<input name="display[' . $value['catid'] . ']" type="text" size="2" value="' . $value['displayorder'] . '" />', $value['catid'], empty($value['url']) ? $value['pre'] . ' ' . $value['name'] : '<a href="' . $value['url'] . '" target="_blank">' . $value['pre'] . ' ' . $value['name'] . ' </a>', '[<a href="admin.php?action=category&op=add&type=' . $type . '&upid=' . $value['catid'] . '">' . lang('category_add_sub') . '</a>]' . ('[<a href="admin.php?action=category&op=edit&type=' . $type . '&upid=' . $value['upid'] . '&catid=' . $value['catid'] . '">' . lang('category_edit') . '</a>] ' . ($type != 'shop' && $type != 'region' && !$value['havechild'] ? '[<a href="admin.php?action=attribute&cid=' . $value['catid'] . '&type=' . $type . '">' . lang('attribute_list') . '</a>]' : '') . ' [<a href="admin.php?action=category&op=del&catid=' . $value['catid'] . '&type=' . $type . '">' . lang('category_del') . '</a>]')));
    }
    echo '<tr class="hover"><td></td><td><a href="?action=category&op=add&type=' . $type . '" class="addtr">' . lang('category_add_' . $type) . '</a></td><td></td><td></td><td></td></tr>';
    showsubmit('listsubmit');
    showtablefooter();
    showformfooter();
}
Ejemplo n.º 14
0
\t\t\t\t\t\t<option value="50"{$perpages['50']}>{$searchlang['perpage_50']}</option>
\t\t\t\t\t\t<option value="100"{$perpages['100']}>{$searchlang['perpage_100']}</option>
\t\t\t\t\t\t</select>
\t\t\t\t\t\t<input type="hidden" name="action" value="topic">
\t\t\t\t\t\t<input type="submit" name="searchsubmit" value="{$searchlang['search']}" class="btn">
\t\t\t\t\t</td>
\t\t\t\t</tr>
\t\t\t</table>
\t\t</div>
\t</form>
SEARCH;
    $start = ($page - 1) * $perpage;
    $mpurl .= '&perpage=' . $perpage;
    $perpages = array($perpage => ' selected');
    showformheader('topic');
    showtableheader('topic_list');
    showsubtitle(array('', 'topic_title', 'topic_domain', 'topic_name', 'topic_creator', 'topic_dateline', 'operation'));
    $multipage = '';
    $count = DB::result(DB::query("SELECT COUNT(*) FROM " . DB::table('portal_topic') . " WHERE {$wheresql}"), 0);
    if ($count) {
        $query = DB::query("SELECT * FROM " . DB::table('portal_topic') . " WHERE {$wheresql} {$ordersql} LIMIT {$start},{$perpage}");
        while ($value = DB::fetch($query)) {
            showtablerow('', array('class="td25"', 'class=""', 'class="td28"'), array("<input type=\"checkbox\" class=\"checkbox\" name=\"ids[]\" value=\"{$value['topicid']}\">", "<a href=\"portal.php?mod=topic&topicid={$value['topicid']}\" target=\"_blank\">" . $value[title] . "</a>" . ($value['closed'] ? ' [' . cplang('topic_closed_yes') . ']' : ''), $value['domain'] && !empty($_G['setting']['domain']['root']['topic']) ? 'http://' . $value['domain'] . '.' . $_G['setting']['domain']['root']['topic'] : '', $value['name'], "<a href=\"home.php?mod=space&uid={$value['uid']}&do=profile\" target=\"_blank\">{$value['username']}</a>", dgmdate($value[dateline]), "<a href=\"portal.php?mod=portalcp&ac=topic&topicid={$value['topicid']}\" target=\"_blank\">" . cplang('topic_edit') . "</a>&nbsp;&nbsp;" . "<a href=\"portal.php?mod=topic&topicid={$value['topicid']}&diy=yes\" target=\"_blank\">DIY</a>" . '&nbsp;&nbsp;<a href="' . ADMINSCRIPT . '?action=diytemplate&operation=perm&targettplname=portal/portal_topic_content_' . $value['topicid'] . '">' . cplang('topic_perm') . '</a>'));
        }
        $multipage = multi($count, $perpage, $page, $mpurl);
    }
    $ops = cplang('operation') . ': ' . "<input type='radio' class='radio' name='optype' value='open' id='op_close' /><label for='op_close'>" . cplang('topic_closed_no') . "</label>&nbsp;&nbsp;" . "<input type='radio' class='radio' name='optype' value='close' id='op_open' /><label for='op_open'>" . cplang('topic_closed_yes') . "</label>&nbsp;&nbsp;" . "<input type='radio' class='radio' name='optype' value='delete' id='op_delete' /><label for='op_delete'>" . cplang('delete') . "</label>&nbsp;&nbsp;";
    showsubmit('', '', '', '<input type="checkbox" name="chkall" id="chkall" class="checkbox" onclick="checkAll(\'prefix\', this.form, \'ids\')" /><label for="chkall">' . cplang('select_all') . '</label>&nbsp;&nbsp;' . $ops . '<input type="submit" class="btn" name="opsubmit" value="' . cplang('submit') . '" />', $multipage);
    showtablefooter();
    showformfooter();
}
Ejemplo n.º 15
0
        } else {
            $piccount = 0;
            $query = DB::query("SELECT p.picid FROM " . DB::table('home_pic') . " p WHERE 1 {$sql}");
            while ($pic = DB::fetch($query)) {
                $picids .= ',' . $pic['picid'];
                $piccount++;
            }
            $multi = '';
        }
        if (!$piccount) {
            $error = 'pic_post_nonexistence';
        }
    }
    showtagheader('div', 'postlist', $searchsubmit || $newlist);
    showformheader('pic&frame=no', 'target="picframe"');
    showhiddenfields(array('picids' => authcode($picids, 'ENCODE')));
    showtableheader(cplang('pic_result') . ' ' . $piccount . (empty($newlist) ? ' <a href="###" onclick="$(\'searchposts\').style.display=\'\';$(\'postlist\').style.display=\'none\';$(\'picforum\').pp.value=\'\';$(\'picforum\').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', 'pic_size', 'albumname', 'author', 'time'));
            echo $pics;
        }
    }
    showsubmit('picsubmit', 'delete', $detail ? 'del' : '', '', $multi);
    showtablefooter();
    showformfooter();
    echo '<iframe name="picframe" style="display:none"></iframe>';
    showtagfooter('div');
}
Ejemplo n.º 16
0
<?php

!defined('IN_ADMINCP') && exit('Access Denied');
if (file_exists(DISCUZ_ROOT . './data/plugindata/dsu_kksfs_dzx.lang.php')) {
    include DISCUZ_ROOT . './data/plugindata/dsu_kksfs_dzx.lang.php';
    $kk_lang = $scriptlang['dsu_kksfs_dzx'];
} else {
    loadcache('pluginlanguage_script');
    $kk_lang = $_G['cache']['pluginlanguage_script']['dsu_kksfs_dzx'];
}
if (submitcheck('clean', true)) {
    DB::query('TRUNCATE TABLE ' . DB::table('dsu_sfs_log'));
    cpmsg($kk_lang['clean_succeed'], 'action=plugins&operation=config&identifier=dsu_kksfs_dzx&pmod=logs', 'succeed');
}
showtableheader('');
showsubtitle(explode('|', $kk_lang['table_title']));
$page = $_G['gp_page'] ? intval($_G['gp_page']) : 1;
$start = ($page - 1) * 20;
$query = DB::query('SELECT * FROM ' . DB::table('dsu_sfs_log') . " ORDER BY timestamp DESC LIMIT {$start},20");
while ($row = DB::fetch($query)) {
    $row['uid'] = $row['uid'] ? $row['uid'] : $kk_lang['no_uid'];
    if ($row['reason'] == '-1') {
        $row['reason'] = $kk_lang['reason_-1'];
    } elseif ($row['reason'] == '1') {
        $row['reason'] = $kk_lang['reason_1'];
    }
    showtablerow('', '', array($row['uid'], $row['reason'], $row['rate'], dgmdate($row['timestamp'], 'u')));
}
showtablefooter();
$amount = DB::result_first('SELECT COUNT(*) FROM ' . DB::table('dsu_sfs_log'));
echo '<a href="admin.php?action=plugins&operation=config&identifier=dsu_kksfs_dzx&pmod=logs&clean=' . FORMHASH . '">' . $kk_lang['clean'] . '</a>' . multi($amount, 20, $page, 'admin.php?action=plugins&operation=config&identifier=dsu_kksfs_dzx&pmod=logs', 0, 20, 1, 1);
Ejemplo n.º 17
0
            cpmsg('setting_domain_need_default_error', '', 'error');
        }
        if ($_GET['appnew']['mobile'] != $olddomain['mobile']) {
            C::t('common_nav')->update_by_identifier('mobile', array('url' => !$_GET['appnew']['mobile'] ? 'forum.php?mobile=yes' : 'http://' . $_GET['appnew']['mobile']));
        }
        C::t('common_setting')->update('domain', $_G['setting']['domain']);
        updatecache('setting');
        cpmsg('setting_update_succeed', 'action=domain&operation=app', 'succeed');
    }
} elseif ($operation == 'root') {
    $roottype = array('home' => $lang['domain_home'], 'group' => $navs[3]['navname'], 'forum' => $lang['domain_forum'], 'topic' => $lang['domain_topic'], 'channel' => $lang['channel']);
    if (!submitcheck('submit')) {
        showtips('setting_domain_root_tips');
        showformheader('domain&operation=root');
        showtableheader();
        showsubtitle(array('name', 'setting_domain_app_domain'));
        $hiddenarr = array();
        foreach ($roottype as $type => $desc) {
            if (in_array($type, array('topic', 'channel')) && !helper_access::check_module('portal') || $type == 'home' && !$_G['setting']['homepagestyle'] || $type == 'group' && !helper_access::check_module('group')) {
                $hiddenarr["domainnew[{$type}]"] = '';
            } else {
                $domainroot = $_G['setting']['domain']['root'][$type];
                showtablerow('', array('class="td25"', ''), array($desc, "<input type=\"text\" class=\"txt\" style=\"width:50%;\" name=\"domainnew[{$type}]\" value=\"{$domainroot}\">"));
            }
        }
        showsubmit('submit');
        showtablefooter();
        showhiddenfields($hiddenarr);
        showformfooter();
    } else {
        $oldroot = $_G['setting']['domain']['root'];
<?php

if (!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) {
    exit('Access Denied');
}
pdnovelcache('pdnovelcategory', 'pdnovel');
loadcache('pdnovelcategory');
$pdnovelcategory = $_G['cache']['pdnovelcategory'];
shownav('pdnovel', 'category');
if ($do == 'show') {
    if (!submitcheck('categorysubmit')) {
        showsubmenu('category', array(array('list', 'pdnovel&operation=category', 1)));
        showformheader('pdnovel&operation=category');
        echo "<style>.txt170 .txt{min-width:170px;}</style><div><a href=\"javascript:;\" onclick=\"show_all()\">" . cplang('show_all') . "</a> | <a href=\"javascript:;\" onclick=\"hide_all()\">" . cplang('hide_all') . '</a></div>';
        showtableheader('', '', " style=\"min-width:910px; _width:910px;\"");
        showsubtitle(array('', 'category_displayorder', 'category_name', 'category_caption', 'category_keyword', 'category_summary', ' ', 'category_operation'));
        foreach ($pdnovelcategory as $key => $value) {
            if ($value['level'] == 0) {
                echo pdnovelcategoryrow($key, 0, '');
            }
        }
        echo "<tbody><tr><td> </td><td colspan=\"6\"><div><a href=\"###\" onclick=\"addrow(this, 0)\" class=\"addtr\">" . cplang('category_addcategory') . '</a></div></td></tr></tbody>';
        showsubmit('categorysubmit');
        showtablefooter();
        showformfooter();
        echo "<script type=\"text/Javascript\">\r\nvar rowtypedata = [\r\n[[1,'',''], [1,'<input type=\"text\" class=\"txt\" name=\"neworder[0][]\" value=\"0\" />', 'td25'], [1,'<div class=\"parentboard\"><input type=\"text\" class=\"txt\" name=\"newname[0][]\" value=\"";
        echo $lang['category_newname'];
        echo "\"/></div>'], [1,'<input type=\"text\" class=\"txt\" name=\"newcaption[0][]\" value=\"";
        echo $lang['category_caption'];
        echo "\"/></div>','txt170'], [1,'<input type=\"text\" class=\"txt\" name=\"newkeyword[0][]\" value=\"";
        echo $lang['category_keyword'];
Ejemplo n.º 19
0
} elseif ($operation == 'delete' && $id) {
    if (!$_G['gp_confirmed']) {
        cpmsg('tasks_del_confirm', "action=tasks&operation=delete&id={$id}", 'form');
    }
    DB::query("DELETE FROM " . DB::table('common_task') . " WHERE taskid='{$id}'");
    DB::query("DELETE FROM " . DB::table('common_taskvar') . " WHERE taskid='{$id}'");
    DB::query("DELETE FROM " . DB::table('common_mytask') . " WHERE taskid='{$id}'");
    cpmsg('tasks_del', 'action=tasks', 'succeed');
} elseif ($operation == 'type') {
    shownav('extended', 'nav_tasks');
    showsubmenu('nav_tasks', array(array('admin', 'tasks', 0), $submenus ? array(array('menu' => 'add', 'submenu' => $submenus), '', 0) : array(), array('nav_task_type', 'tasks&operation=type', 1)));
    showtips('tasks_tips_add_type');
    $tasks = gettasks();
    showtableheader('', 'fixpadding');
    if ($tasks) {
        showsubtitle(array('name', 'tasks_version', 'copyright', ''));
        foreach ($tasks as $task) {
            showtablerow('', '', array($task['name'] . ($task['filemtime'] > TIMESTAMP - 86400 ? ' <font color="red">New!</font>' : ''), $task['version'], $task['copyright'], in_array($task['class'], $custom_scripts) ? "<a href=\"" . ADMINSCRIPT . "?action=tasks&operation=upgrade&script={$task['class']}\" class=\"act\">{$lang['tasks_upgrade']}</a> <a href=\"" . ADMINSCRIPT . "?action=tasks&operation=uninstall&script={$task['class']}\" class=\"act\">{$lang['tasks_uninstall']}</a><br />" : "<a href=\"" . ADMINSCRIPT . "?action=tasks&operation=install&script={$task['class']}\" class=\"act\">{$lang['tasks_install']}</a>"));
        }
    } else {
        showtablerow('', '', $lang['task_module_nonexistence']);
    }
    showtablefooter();
} elseif ($operation == 'install' && $_G['gp_script']) {
    if (DB::result_first("SELECT COUNT(*) FROM " . DB::table('common_task') . " WHERE scriptname='{$_G['gp_script']}'")) {
        cpmsg('tasks_install_duplicate', '', 'error');
    }
    require_once libfile('task/' . $_G['gp_script'], 'class');
    $taskclass = 'task_' . $_G['gp_script'];
    $task = new $taskclass();
    if (method_exists($task, 'install')) {
Ejemplo n.º 20
0
    loadcache('usergroups');
    $usergroups = $_G['cache']['usergroups'];
    $gidsel = usergroups2seled('-1', $usergroups);
    echo '<script type="text/JavaScript">
	var rowtypedata = [[
		[1,"", ""],
		[1,\'<input type="text" class="txt" name="days[]" size="7">\', ""],
		[1,\'' . $gidsel . '\', ""],
		[1,\'' . $exsel . '\', ""],
		[1,\'<input type="text" class="txt" name="reward[]" size="7">\', ""],
	]]
	</script>';
    showformheader('plugins&operation=config&identifier=dsu_amupper&pmod=admin');
    showtips(lang("plugin/dsu_amupper", "admin2_p1"));
    showtableheader(lang("plugin/dsu_amupper", "admin2_h1"));
    showsubtitle(array(lang("plugin/dsu_amupper", "admin2_t0"), lang("plugin/dsu_amupper", "admin2_t1"), lang("plugin/dsu_amupper", "admin2_t4"), lang("plugin/dsu_amupper", "admin2_t2"), lang("plugin/dsu_amupper", "admin2_t3")));
    $arr = DB::fetch_all("SELECT * FROM %t WHERE id>%d LIMIT %d", array('plugin_dsuamupperc', '-1', '100'), 'id');
    if ($arr) {
        $i = 0;
        $data_f2a = dstripslashes($arr);
        foreach ($data_f2a as $id => $result) {
            $exsel = extc2seled($result['extcredits'], $_G['setting']['extcredits']);
            $gidsel = usergroups2seled($result['usergid'], $usergroups);
            showtablerow('', array(' ', ' ', ' ', ' '), array('<input type="checkbox" class="checkbox" name="delete[]" value="' . $i . '" />', '<INPUT TYPE="hidden" NAME="id[]" value="' . $result['id'] . '"><input type="text" class="txt" name="days[]" value="' . $result['days'] . '" size="7" />', '' . $gidsel . '', '' . $exsel . '', '<input type="text" class="txt" name="reward[]" value="' . $result['reward'] . '" size="7" />'));
            $i++;
        }
    }
    echo '<tr><td></td><td colspan="3"><div><a href="#addrow" name="addrow" onclick="addrow(this, 0)" class="addtr">' . lang("plugin/dsu_amupper", "admin2_s1") . '</a></div></td></tr>';
    showsubmit('submit', lang("plugin/dsu_amupper", "admin2_s2"));
    showtablefooter();
    showformfooter();
Ejemplo n.º 21
0
         $advclass = 'adv_' . $type;
         if (class_exists($advclass)) {
             $advclassv = new $advclass();
             $advsetting = $advclassv->getsetting();
             $typeadd = ' - ' . lang('adv/' . $type, $advclassv->name);
             if ($type == 'custom') {
                 $typeadd .= ' ' . $advclassv->customname;
             }
             $typeadd .= ' <a href="' . ADMINSCRIPT . '?action=adv&operation=ad" style="font-weight:normal;font-size:12px">(' . cplang('adv_admin_listall') . ')</a>';
         }
     }
 }
 showsubmenu($root . ' &raquo; ' . cplang('adv_list') . $typeadd);
 showformheader('adv&operation=ad');
 showtableheader('', 'fixpadding');
 showsubtitle(array('', 'display_order', 'available', 'subject', !$type ? 'type' : '', 'adv_style', 'start_time', 'end_time', 'adv_targets', ''));
 $advppp = $type != 'custom' ? 25 : 9999;
 $conditions = '';
 $order_by = 'displayorder, advid DESC, targets DESC';
 $start_limit = ($page - 1) * $advppp;
 $start_limit = $start_limit > 0 ? $start_limit : 0;
 $title = $_G['gp_title'];
 $starttime = $_G['gp_starttime'];
 $endtime = $_G['gp_endtime'];
 $orderby = $_G['gp_orderby'];
 $conditions .= $title ? " AND title LIKE '%{$title}%'" : '';
 $conditions .= $starttime > 0 ? " AND starttime>='" . (TIMESTAMP - $starttime) . "'" : ($starttime == -1 ? " AND starttime='0'" : '');
 $conditions .= $endtime > 0 ? " AND endtime>0 AND endtime<'" . (TIMESTAMP + $endtime) . "'" : ($endtime == -1 ? " AND endtime='0'" : '');
 $conditions .= $type ? " AND type='{$type}'" : '';
 $order_by = $orderby == 'starttime' ? 'starttime' : ($orderby == 'type' ? 'type' : ($orderby == 'displayorder' ? 'displayorder' : 'advid DESC'));
 $advnum = DB::result_first("SELECT COUNT(*) FROM " . DB::table('advertisement') . " WHERE 1 {$conditions}");
Ejemplo n.º 22
0
!defined('IN_DISCUZ') && exit('Access Denied');
!defined('IN_ADMINCP') && exit('Access Denied');
$setting = $_G['cache']['plugin']['k_gaiming'];
if (!submitcheck('submit')) {
    $count = $start = 0;
    $perpage = 20;
    $page = max(1, intval($_GET['page']));
    $start = ($page - 1) * $perpage;
    $count = DB::result_first("SELECT count(*) FROM " . DB::table("plugin_k_gaiming_log"));
    $query = DB::query("SELECT * FROM " . DB::table("plugin_k_gaiming_log") . " ORDER BY dateline DESC LIMIT " . $start . "," . $perpage);
    $logs = '';
    while ($log = DB::fetch($query)) {
        $log['dateline'] = dgmdate($log['dateline'], 'u');
        $log['username'] = getuserbyuid($log['uid']);
        $logs .= showtablerow('', array('class="td25"', 'class="td29"', 'class="td28"', 'class="td29"'), array("<input class=\"checkbox\" type=\"checkbox\" name=\"delete[]\" value=\"" . $log['lid'] . "\">", "<a href=\"home.php?mod=space&uid=" . $log['uid'] . "\" target=\"_blank\">" . $log['username']['username'] . "</a>&nbsp;(UID:&nbsp;" . $log['uid'] . ")", "<font color=\"#2366A8\">" . $log['username']['username'] . "</font>&nbsp;" . lang('plugin/k_gaiming', 'logcp_1') . "&nbsp;<font color=\"#2366A8\">" . $log['dateline'] . "</font>&nbsp;" . lang('plugin/k_gaiming', 'logcp_2') . "&nbsp;<font color=\"#2366A8\">" . $log['oldname'] . "</font>&nbsp;" . lang('plugin/k_gaiming', 'logcp_3') . "&nbsp;<font color=\"#2366A8\">" . $log['newname'] . "</font>", $log['creditnum'] . "&nbsp;" . $_G['setting']['extcredits'][$log['creditunit']]['unit'] . $_G['setting']['extcredits'][$log['creditunit']]['title'], $log['dateline']), TRUE);
    }
    $multi = multi($count, $perpage, $page, ADMINSCRIPT . "?action=plugins&operation=config&do=" . $pluginid . "&identifier=k_gaiming&pmod=logcp");
    showformheader("plugins&operation=config&identifier=k_gaiming&pmod=logcp&page=" . $page, "enctype");
    showtableheader('');
    showsubtitle(array('', lang('plugin/k_gaiming', 'logcp_6'), lang('plugin/k_gaiming', 'logcp_5'), lang('plugin/k_gaiming', 'logcp_4'), lang('plugin/k_gaiming', 'logcp_7')));
    echo $logs;
    showsubmit('submit', lang('plugin/k_gaiming', 'submit'), 'del', '', $multi);
    showtablefooter();
    showformfooter();
} else {
    if (is_array($_GET['delete'])) {
        $ids = dimplode($_GET['delete']);
        DB::query("DELETE FROM " . DB::table('plugin_k_gaiming_log') . " WHERE lid IN ({$ids})");
    }
    cpmsg(lang('plugin/k_gaiming', 'success'), 'action=plugins&operation=config&identifier=k_gaiming&pmod=logcp&page=' . $page, 'succeed');
}
Ejemplo n.º 23
0
        $pid = C::t('forum_post')->fetch_threadpost_by_tid_invisible($thread['tid'], 0);
        $pid = $pid['pid'];
        setthreadcover($pid);
    }
    if ($processed) {
        cpmsg("{$lang['counter_thread_cover']}: " . cplang('counter_processing', array('current' => $current, 'next' => $next)), $nextlink, 'loading');
    } else {
        cpmsg('counter_thread_cover_succeed', 'action=counter', 'succeed');
    }
} else {
    shownav('tools', 'nav_updatecounters');
    showsubmenu('nav_updatecounters');
    showtips('counter_tips');
    showformheader('counter');
    showtableheader();
    showsubtitle(array('', 'counter_amount'));
    showhiddenfields(array('pertask' => ''));
    showtablerow('', array('class="td21"'), array("{$lang['counter_forum']}:", '<input name="pertask1" type="text" class="txt" value="15" /><input type="submit" class="btn" name="forumsubmit" onclick="this.form.pertask.value=this.form.pertask1.value" value="' . $lang['submit'] . '" />'));
    showtablerow('', array('class="td21"'), array("{$lang['counter_digest']}:", '<input name="pertask2" type="text" class="txt" value="1000" /><input type="submit" class="btn" name="digestsubmit" onclick="this.form.pertask.value=this.form.pertask2.value" value="' . $lang['submit'] . '" />'));
    showtablerow('', array('class="td21"'), array("{$lang['counter_member']}:", '<input name="pertask3" type="text" class="txt" value="1000" /><input type="submit" class="btn" name="membersubmit" onclick="this.form.pertask.value=this.form.pertask3.value" value="' . $lang['submit'] . '" />'));
    showtablerow('', array('class="td21"'), array("{$lang['counter_thread']}:", '<input name="pertask4" type="text" class="txt" value="500" /><input type="submit" class="btn" name="threadsubmit" onclick="this.form.pertask.value=this.form.pertask4.value" value="' . $lang['submit'] . '" />'));
    showtablerow('', array('class="td21"'), array("{$lang['counter_special']}:", '<input name="pertask7" type="text" class="txt" value="1" disabled/><input type="submit" class="btn" name="specialarrange" onclick="this.form.pertask.value=this.form.pertask7.value" value="' . $lang['submit'] . '" />'));
    showtablerow('', array('class="td21"'), array("{$lang['counter_groupnum']}:", '<input name="pertask8" type="text" class="txt" value="10" /><input type="submit" class="btn" name="groupnum" onclick="this.form.pertask.value=this.form.pertask8.value" value="' . $lang['submit'] . '" />'));
    showtablerow('', array('class="td21"'), array("{$lang['counter_groupmember_num']}:", '<input name="pertask9" type="text" class="txt" value="100" /><input type="submit" class="btn" name="groupmembernum" onclick="this.form.pertask.value=this.form.pertask9.value" value="' . $lang['submit'] . '" />'));
    showtablerow('', array('class="td21"'), array("{$lang['counter_groupmember_post']}:", '<input name="pertask10" type="text" class="txt" value="100" /><input type="submit" class="btn" name="groupmemberpost" onclick="this.form.pertask.value=this.form.pertask10.value" value="' . $lang['submit'] . '" />'));
    showtablerow('', array('class="td21"'), array("{$lang['counter_blog_replynum']}:", '<input name="pertask11" type="text" class="txt" value="100" /><input type="submit" class="btn" name="blogreplynum" onclick="this.form.pertask.value=this.form.pertask11.value" value="' . $lang['submit'] . '" />'));
    showtablerow('', array('class="td21"'), array("{$lang['counter_friendnum']}:", '<input name="pertask12" type="text" class="txt" value="100" /><input type="submit" class="btn" name="friendnum" onclick="this.form.pertask.value=this.form.pertask12.value" value="' . $lang['submit'] . '" />'));
    showtablerow('', array('class="td21"'), array("{$lang['counter_album_picnum']}:", '<input name="pertask13" type="text" class="txt" value="100" /><input type="submit" class="btn" name="albumpicnum" onclick="this.form.pertask.value=this.form.pertask13.value" value="' . $lang['submit'] . '" />'));
    showtablerow('', array('class="td21"'), array("{$lang['counter_thread_cover']}:", '<script type="text/javascript" src="static/js/calendar.js"></script><input name="pertask14" type="text" class="txt" value="100" /> ' . $lang['counter_forumid'] . ': <input type="text" class="txt" name="fid" value="" size="10">&nbsp;<input type="checkbox" value="1" name="allthread">' . $lang['counter_have_cover'] . '<br><input type="text" onclick="showcalendar(event, this)" value="" name="starttime" class="txt"> -- <input type="text" onclick="showcalendar(event, this)" value="" name="endtime" class="txt">(' . $lang['counter_thread_cover_settime'] . ')  &nbsp;&nbsp;<input type="submit" class="btn" name="setthreadcover" onclick="this.form.pertask.value=this.form.pertask14.value" value="' . $lang['submit'] . '" />'));
    showtablefooter();
    showformfooter();
Ejemplo n.º 24
0
 *      [品牌空間] (C)2001-2010 Comsenz Inc.
 *      This is NOT a freeware, use is subject to license terms
 *
 *      $Id: managelog.inc.php 4324 2010-09-04 07:08:16Z fanshengshuai $
 */
if (!defined('IN_ADMIN')) {
    exit('Acess Denied');
}
require_once B_ROOT . './source/adminfunc/tool.func.php';
shownav('oplog', 'managelog_list');
showsubmenu('managelog_list');
showtips('managelog_list_tips');
if (submitcheck('filtersubmit')) {
    showformheader('managelog');
    showtableheader('');
    showsubtitle(array('managelogusername', 'managelogobject', 'managelogedshopname', 'managelogop', 'managelogreason', 'mldateliane'));
    $wheresql = '';
    $wheresql .= !empty($_REQUEST['managelogtype']) ? ' AND type=\'' . trim($_REQUEST['managelogtype']) . '\'' : '';
    $wheresql .= !empty($_REQUEST['shopid']) ? ' AND shopid=\'' . intval($_REQUEST['shopid']) . '\'' : '';
    if (!empty($wheresql)) {
        $wheresql = ' WHERE' . substr($wheresql, 4);
    }
    $managelog = $managelogarr = array();
    $tpp = 15;
    $page = $_GET['page'] > 0 ? intval($_GET['page']) : 1;
    $mlstart = ($page - 1) * $tpp;
    $query = DB::query("SELECT count(mlogid) AS count  FROM " . tname('managelog') . $wheresql . ";");
    $value = DB::fetch($query);
    foreach ($_GET as $key => $_value) {
        if (in_array($key, array('action', 'formhash', 'filtersubmit', 'managelogtype', 'shopid'))) {
            $url .= '&' . $key . '=' . $_value;
Ejemplo n.º 25
0
    $posttable_info[0]['type'] = 'primary';
} else {
    $posttable_info = unserialize($posttable_info);
}
if (empty($posttableids)) {
    $posttableids = array();
} else {
    $posttableids = unserialize($posttableids);
}
if ($operation == 'manage') {
    shownav('founder', 'nav_postsplit');
    if (!submitcheck('postsplit_manage')) {
        showtips('postsplit_manage_tips');
        showformheader('postsplit&operation=manage');
        showtableheader();
        showsubtitle(array('postsplit_manage_tablename', 'postsplit_manage_datalength', 'postsplit_manage_table_memo', ''));
        $tablename = DB::table('forum_post');
        $tableid = 0;
        $tablestatus = gettablestatus($tablename);
        $postcount = $tablestatus['Rows'];
        $data_length = $tablestatus['Data_length'];
        $index_length = $tablestatus['Index_length'];
        $opstr = '<a href="' . ADMINSCRIPT . '?action=postsplit&operation=split&tableid=0">' . cplang('postsplit_name') . '</a>';
        showtablerow('', array('', '', '', 'class="td25"'), array($tablename, $data_length, "<input type=\"text\" class=\"txt\" name=\"memo[0]\" value=\"{$posttable_info[0]['memo']}\" />", $opstr));
        $query = DB::query("SHOW TABLES LIKE '" . DB::table('forum_post') . "\\_%'");
        while ($table = DB::fetch($query)) {
            list($tempkey, $tablename) = each($table);
            $tableid = gettableid($tablename);
            if (!preg_match('/^\\d+$/', $tableid)) {
                continue;
            }
Ejemplo n.º 26
0
}
function cancelallcheck() {
\tvar form = \$('cpform');
\tvar checkall = 'chkall';
\tfor(var i = 0; i < form.elements.length; i++) {
\t\tvar e = form.elements[i];
\t\tif(e.type == 'radio') {
\t\t\te.checked = '';
\t\t}
\t}
}
</script>
EOT;
        showformheader('moderate&operation=members&do=mod');
        showtableheader('moderate_members', 'fixpadding');
        showsubtitle(array('operation', 'members_edit_info', 'moderate_members_message', 'moderate_members_info', 'moderate_members_remark'));
        echo $members;
        showsubmit('modsubmit', 'submit', '', '<a href="#all" onclick="checkAll(\'option\', $(\'cpform\'), \'invalidate\');set_bg_all(\'invalidate\');">' . cplang('moderate_all_invalidate') . '</a> &nbsp;<a href="#all" onclick="checkAll(\'option\', $(\'cpform\'), \'validate\');set_bg_all(\'validate\');">' . cplang('moderate_all_validate') . '</a> &nbsp;<a href="#all" onclick="checkAll(\'option\', $(\'cpform\'), \'delete\');set_bg_all(\'delete\');">' . cplang('moderate_all_delete') . '</a> &nbsp;<a href="#all" onclick="checkAll(\'option\', $(\'cpform\'), \'ignore\');set_bg_all(\'ignore\');">' . cplang('moderate_all_ignore') . '</a> &nbsp;<a href="#all" onclick="cancelallcheck();set_bg_all(\'cancel\');">' . cplang('moderate_all_cancel') . '</a><input class="checkbox" type="checkbox" name="apply_all" id="chk_apply_all"  value="1" disabled="disabled" />' . cplang('moderate_apply_all') . ' &nbsp;<input class="checkbox" type="checkbox" name="sendemail" id="sendemail" value="1" ' . $checksendemail . ' /><label for="sendemail"> ' . cplang('moderate_members_email') . '</label>', $multipage);
        showtablefooter();
        showformfooter();
    } else {
        $moderation = array('invalidate' => array(), 'validate' => array(), 'delete' => array(), 'ignore' => array());
        $uids = array();
        $uidsql = '';
        if (!$_GET['apply_all']) {
            if (is_array($_GET['modtype'])) {
                foreach ($_GET['modtype'] as $uid => $act) {
                    $uid = intval($uid);
                    $uids[$uid] = $uid;
                    $moderation[$act][$uid] = $uid;
                }
Ejemplo n.º 27
0
        } else {
            $sharecount = 0;
            $query = DB::query("SELECT s.sid FROM " . DB::table('home_share') . " s WHERE 1 {$sql}");
            while ($share = DB::fetch($query)) {
                $sids .= ',' . $share['sid'];
                $sharecount++;
            }
            $multi = '';
        }
        if (!$sharecount) {
            $error = 'share_post_nonexistence';
        }
    }
    showtagheader('div', 'postlist', $searchsubmit || $newlist);
    showformheader('share&frame=no', 'target="shareframe"');
    showhiddenfields(array('sids' => authcode($sids, 'ENCODE')));
    showtableheader(cplang('share_result') . ' ' . $sharecount . (empty($newlist) ? ' <a href="###" onclick="$(\'searchposts\').style.display=\'\';$(\'postlist\').style.display=\'none\';$(\'shareforum\').pp.value=\'\';$(\'shareforum\').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('', 'author', 'share_title', 'share_body', 'share_type', 'time'));
            echo $shares;
        }
    }
    showsubmit('sharesubmit', 'delete', $detail ? 'del' : '', '', $multi);
    showtablefooter();
    showformfooter();
    echo '<iframe name="shareframe" style="display:none"></iframe>';
    showtagfooter('div');
}
Ejemplo n.º 28
0
 $orderurl = array('alipay' => 'https://www.alipay.com/trade/query_trade_detail.htm?trade_no=', 'tenpay' => 'https://www.tenpay.com/med/tradeDetail.shtml?trans_id=');
 shownav('extended', 'nav_ec');
 showsubmenu('nav_ec', array(array('nav_ec_config', 'setting&operation=ec', 0), array('nav_ec_tenpay', 'ec&operation=tenpay', 0), array('nav_ec_alipay', 'ec&operation=alipay', 0), array('nav_ec_credit', 'ec&operation=credit', 0), array('nav_ec_orders', 'ec&operation=orders', 0), array('nav_ec_tradelog', 'tradelog', 0), array('nav_ec_inviteorders', 'ec&operation=inviteorders', 1)));
 $ordercount = DB::result_first("SELECT COUNT(*) FROM " . DB::table('forum_order') . " WHERE uid='0' {$sql}");
 $multipage = multi($ordercount, $_G['tpp'], $page, ADMINSCRIPT . "?action=ec&operation=inviteorders&orderstatus={$_G['gp_orderstatus']}&orderid={$_G['gp_orderid']}&email={$_G['gp_email']}");
 showtagheader('div', 'orderlist', TRUE);
 showformheader('ec&operation=inviteorders');
 showtableheader('ec_inviteorders_search');
 $_G['showsetting_multirow'] = 1;
 showsetting('ec_orders_search_status', array('orderstatus', array(array('', $lang['ec_orders_search_status_all']), array(1, $lang['ec_orders_search_status_pending']), array(2, $lang['ec_orders_search_status_auto_finished']))), intval($_G['gp_orderstatus']), 'select');
 showsetting('ec_orders_search_id', 'orderid', $_G['gp_orderid'], 'text');
 showsetting('ec_orders_search_email', 'email', $_G['gp_email'], 'text');
 showsubmit('searchsubmit', 'submit');
 showtablefooter();
 showtableheader('result');
 showsubtitle(array('', 'ec_orders_id', 'ec_inviteorders_status', 'ec_inviteorders_buyer', 'ec_orders_amount', 'ec_orders_price', 'ec_orders_submitdate', 'ec_orders_confirmdate'));
 $query = DB::query("SELECT *\r\n\t\t\tFROM " . DB::table('forum_order') . " WHERE uid='0' {$sql} ORDER BY submitdate DESC\r\n\t\t\tLIMIT {$start_limit}, {$_G['tpp']}");
 while ($order = DB::fetch($query)) {
     switch ($order['status']) {
         case 1:
             $order['orderstatus'] = $lang['ec_orders_search_status_pending'];
             break;
         case 2:
             $order['orderstatus'] = '<b>' . $lang['ec_orders_search_status_auto_finished'] . '</b>';
             break;
         case 3:
             $order['orderstatus'] = '<b>' . $lang['ec_orders_search_status_manual_finished'] . '</b><br />(<a href="home.php?mod=space&username='******'admin']) . '" target="_blank">' . $order['admin'] . '</a>)';
             break;
     }
     $order['submitdate'] = dgmdate($order['submitdate']);
     $order['confirmdate'] = $order['confirmdate'] ? dgmdate($order['confirmdate']) : 'N/A';
Ejemplo n.º 29
0
require_once libfile('function/post');
require_once libfile('function/discuzcode');
cpheader();
if (!$operation) {
    shownav('topic', 'nav_recyclebin');
    if (!submitcheck('delsubmit') && !submitcheck('undelsubmit')) {
        showsubmenu('nav_recyclebin', array(array('recyclebin_list', 'recyclebin', 1), array('search', 'recyclebin&operation=search', 0), array('clean', 'recyclebin&operation=clean', 0)));
        $lpp = empty($_GET['lpp']) ? 20 : $_GET['lpp'];
        $start = ($page - 1) * $lpp;
        $start_limit = ($page - 1) * $lpp;
        $checklpp = array();
        $checklpp[$lpp] = 'selected="selected"';
        showformheader('recyclebin');
        showtableheader($lang['recyclebin_list'] . '&nbsp<select onchange="if(this.options[this.selectedIndex].value != \'\') {window.location=\'' . ADMINSCRIPT . '?action=recyclebin&lpp=\'+this.options[this.selectedIndex].value }">
				<option value="20" ' . $checklpp[20] . '> ' . $lang[perpage_20] . ' </option><option value="50" ' . $checklpp[50] . '>' . $lang[perpage_50] . '</option><option value="100" ' . $checklpp[100] . '>' . $lang[perpage_100] . '</option></select>');
        showsubtitle(array('', 'thread', 'recyclebin_list_thread', 'recyclebin_list_author', 'recyclebin_list_status', 'recyclebin_list_lastpost', 'recyclebin_list_operation', 'reason'));
        $fids = $threadlist = array();
        $threads = C::t('forum_thread')->fetch_all_by_tid_fid_displayorder(0, 0, -1, 'dateline', $start_limit, $lpp, '=');
        foreach ($threads as $tid => $value) {
            $fids[$value['fid']] = $value['fid'];
        }
        if ($fids) {
            $forums = C::t('forum_forum')->fetch_all_name_by_fid($fids);
            foreach ($threads as $tid => $thread) {
                $thread['forumname'] = $forums[$thread['fid']]['name'];
                $thread['modthreadkey'] = modauthkey($thread['tid']);
                $threadlist[$thread['tid']] = $thread;
            }
        }
        if ($threadlist) {
            $tids = array_keys($threadlist);
Ejemplo n.º 30
0
    loadcache('grouptype');
    $perpage = 50;
    $page = intval($_GET['page']) ? intval($_GET['page']) : 1;
    $startlimit = ($page - 1) * $perpage;
    $count = C::t('forum_forum')->validate_level_num();
    $multipage = multi($count, $perpage, $page, ADMINSCRIPT . "?action=group&operation=mod&submit=yes");
    $query = C::t('forum_forum')->fetch_all_validate($startlimit, $startlimit + $perpage);
    foreach ($query as $group) {
        $groups .= showtablerow('', array('class="td25"', '', ''), array("<input type=\"checkbox\" name=\"fidarray[]\" value=\"{$group['fid']}\" class=\"checkbox\">", "<a href=\"forum.php?mod=forumdisplay&fid={$group['fid']}\" target=\"_blank\">{$group['name']}</a>", empty($_G['cache']['grouptype']['first'][$group[fup]]) ? $_G['cache']['grouptype']['second'][$group[fup]]['name'] : $_G['cache']['grouptype']['first'][$group[fup]]['name'], "<a href=\"home.php?mod=space&uid={$group['founderuid']}\" target=\"_blank\">{$group['foundername']}</a>", dgmdate($group['dateline'])), TRUE);
        $groups .= showtablerow('', array('', 'colspan="4"'), array('', cplang('group_mod_description') . '&nbsp;:&nbsp;' . $group['description']), TRUE);
    }
    shownav('group', 'nav_group_mod');
    showsubmenu('nav_group_mod');
    showformheader("group&operation=mod");
    showtableheader('group_mod_wait');
    showsubtitle(array('', 'groups_manage_name', 'groups_editgroup_category', 'groups_manage_founder', 'groups_manage_createtime'));
    echo $groups;
    showsubmit('', '', '', '<input type="checkbox" name="chkall" id="chkall" class="checkbox" onclick="checkAll(\'prefix\', this.form, \'fidarray\')" /><label for="chkall">' . cplang('select_all') . '</label>&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" class="btn" name="validate" value="' . cplang('validate') . '" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" class="btn" name="delsubmit" value="' . cplang('delete') . '" onclick="return confirm(\'' . cplang('group_mod_delconfirm') . '\')" />', $multipage);
    showtablefooter();
    showformfooter();
}
function showgroup(&$forum, $type = '', $last = '')
{
    global $_G;
    loadcache('grouptype');
    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 == '') {
            $return .= '<div class="board">';