Exemple #1
0
         $previewlarge = file_exists($style['directory'] . '/preview_large.jpg') ? $style['directory'] . '/preview_large.jpg' : '';
         $styleicons = isset($styleicons[$id]) ? $styleicons[$id] : '';
         $stylelist .= ($i == 0 ? '<tr>' : '') . '<td width="33%" ' . ($available ? 'style="background: #F2F9FD"' : '') . '><table cellspacing="0" cellpadding="0" style="margin-left: 10px; width: 200px;"><tr><td style="width: 120px; text-align: center; border-top: none;">' . ($id > 0 ? "<p style=\"margin-bottom: 2px;\">&nbsp;</p><img " . ($previewlarge ? 'style="cursor:pointer" title="' . $lang['preview_large'] . '" onclick="zoom(this, \'' . $previewlarge . '\', 1)" ' : '') . "src=\"{$preview}\" alt=\"{$lang['preview']}\"/></a>\r\n\t\t\t\t<p style=\"margin: 2px 0\"><input type=\"text\" class=\"txt\" name=\"namenew[{$id}]\" value=\"{$style['name']}\" size=\"30\" style=\"margin-right:0; width: 80px;\"></p>\r\n\t\t\t\t<p class=\"lightfont\">({$style['tplname']})</p></td><td style=\"padding-top: 17px; width: 80px; border-top: none; vertical-align: top;\">\r\n\t\t\t\t<p style=\"margin: 2px 0\"><label>{$lang['default']} <input type=\"radio\" class=\"radio\" name=\"defaultnew\" value=\"{$id}\" {$isdefault} /></label></p>\r\n\t\t\t\t<p style=\"margin: 2px 0\"><label>{$lang['styles_uninstall']} " . ($isdefault ? '<input class="checkbox" type="checkbox" disabled="disabled" />' : '<input class="checkbox" type="checkbox" name="delete[]" value="' . $id . '" />') . "</label></p>\r\n\t\t\t\t<p style=\"margin: 8px 0 2px\"><a href=\"" . ADMINSCRIPT . "?action=styles&operation=edit&id={$id}\">{$lang['edit']}</a></p>\r\n\t\t\t\t<p style=\"margin: 2px 0\"><a href=\"" . ADMINSCRIPT . "?action=styles&operation=export&id={$id}\">{$lang['export']}</a></p>\r\n\t\t\t\t<p style=\"margin: 2px 0\"><a href=\"" . ADMINSCRIPT . "?action=styles&operation=copy&id={$id}\">{$lang['copy']}</a></p>\r\n\t\t\t\t<p style=\"margin: 2px 0\"><a href=\"" . ADMINSCRIPT . "?action=styles&operation=import&dir=yes&restore={$id}\">{$lang['restore']}</a></p>" : "<p style=\"margin-bottom: 2px;\">&nbsp;</p>\r\n\t\t\t\t<img src=\"{$preview}\" />\r\n\t\t\t\t<p style=\"margin: 13px 0\" class=\"lightfont\">({$style['tplname']})</p></td><td style=\"padding-top: 17px; width: 80px; border-top: none; vertical-align: top;\">\r\n\t\t\t\t<p style=\"margin: 2px 0\"><a href=\"" . ADMINSCRIPT . "?action=styles&operation=import&dir={$style['name']}\">{$lang['styles_install']}</a></p>\r\n\t\t\t\t<p style=\"margin: 2px 0\">{$lang['styles_stylecount']}{$style['stylecount']}</p>" . ($style['filemtime'] > $timestamp - 86400 ? '<p style=\\"margin-bottom: 2px;\\"><font color="red">New!</font></p>' : '')) . "</td></tr></table></td>\n" . ($i == 3 ? '</tr>' : '');
         $i++;
         if ($i == 3) {
             $i = 0;
         }
     }
     if ($i > 0) {
         $stylelist .= str_repeat('<td></td>', 3 - $i);
     }
     shownav('style', 'styles_admin');
     showsubmenu('styles_admin', array(array('admin', 'styles', '1'), array('import', 'styles&operation=import', '0')));
     showtips('styles_admin_tips');
     showformheader('styles');
     showhiddenfields(array('updatecsscache' => 0));
     showtableheader();
     echo $stylelist;
     showtablefooter();
     showtableheader();
     echo '<tr><td>' . $lang['add_new'] . '</td><td><input type="text" class="txt" name="newname" size="18"></td><td colspan="5">&nbsp;</td></tr>';
     showsubmit('stylesubmit', 'submit', 'del', '<input onclick="this.form.updatecsscache.value=1" type="submit" class="btn" name="stylesubmit" value="' . cplang('styles_csscache_update') . '">');
     showtablefooter();
     showformfooter();
 } else {
     if ($_G['gp_updatecsscache']) {
         updatecache(array('setting', 'styles'));
         loadcache('style_default', true);
         updatecache('updatediytemplate');
         $tpl = dir(DISCUZ_ROOT . './data/template');
         while ($entry = $tpl->read()) {
Exemple #2
0
     foreach ($advclass->imagesizes as $size) {
         $imagesizes .= '<option value="' . $size . '">' . $size . '</option>';
     }
 }
 $adv['starttime'] = $adv['starttime'] ? dgmdate($adv['starttime'], 'Y-n-j') : '';
 $adv['endtime'] = $adv['endtime'] ? dgmdate($adv['endtime'], 'Y-n-j') : '';
 echo '<script type="text/javascript" src="static/js/forum_calendar.js"></script>' . '<div class="colorbox"><h4>' . lang('adv/' . $type, $advclass->name) . '</h4>' . '<table cellspacing="0" cellpadding="3"><tr><td>' . (file_exists(B_ROOT . './static/image/admin/' . $type . '.gif') ? '<img src="static/image/admin/' . $type . '.gif" />' : '') . '</td><td valign="top">' . lang('adv/' . $type, $advclass->description) . '</td></tr></table>' . '<div style="width:95%" align="right">' . lang('adv/' . $type, $advclass->copyright) . '</div></div>';
 if ($operation == 'edit') {
     echo '<input type="button" class="btn" onclick="$(\'previewbtn\').click()" name="jspreview" value="' . $lang['preview'] . '">';
     echo '<div class="jswizard" id="advpreview" style="display:none"><iframe id="preview" name="preview" frameborder="0" allowtransparency="true" onload="this.style.height = (this.contentWindow.document.body.scrollHeight + 50) + \'px\'" width="95%" height="0"></iframe></div>';
 }
 showformheader("adv&operation={$operation}" . ($operation == 'add' ? '&type=' . $type : '&advid=' . $advid), 'enctype');
 if ($type == 'custom') {
     showhiddenfields(array('parameters[extra][customid]' => $_G['gp_customid']));
 }
 showhiddenfields(array('referer' => $returnurl));
 showtableheader();
 showtableheader(($operation == 'edit' ? cplang('adv_edit') : cplang('adv_add')) . ' - ' . lang('adv/' . $type, $advclass->name), 'fixpadding');
 showsetting('adv_edit_title', 'advnew[title]', $adv['title'], 'text');
 if ($type != 'custom') {
     showsetting('adv_edit_targets', array('advnew[targets]', $targets), explode("\t", $adv['targets']), 'mcheckbox');
 }
 if (is_array($advsetting)) {
     foreach ($advsetting as $settingvar => $setting) {
         if (!empty($setting['value']) && is_array($setting['value'])) {
             foreach ($setting['value'] as $k => $v) {
                 $setting['value'][$k][1] = lang('adv/' . $type, $setting['value'][$k][1]);
             }
         }
         $varname = in_array($setting['type'], array('mradio', 'mcheckbox', 'select', 'mselect')) ? $setting['type'] == 'mselect' ? array('parameters[extra][' . $settingvar . '][]', $setting['value']) : array('parameters[extra][' . $settingvar . ']', $setting['value']) : 'parameter[' . $settingvar . ']';
         $value = $adv['parameters']['extra'][$settingvar] != '' ? dstripslashes($adv['parameters']['extra'][$settingvar]) : $setting['default'];
Exemple #3
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');
}
Exemple #4
0
        } else {
            $editvalue['groupid'] = getgroupid($mname, $editvalue['itemid']);
            showrelatedinfojs($mname, $editvalue['groupid'], $editvalue['itemid'], $editvalue['shopid'], 'admin');
        }
    }
    if (!empty($_SGLOBAL['panelinfo'])) {
        showhiddenfields(array('shopid' => $_SGLOBAL['panelinfo']['itemid']));
    } elseif ($editvalue['shopid']) {
        showhiddenfields(array('shopid' => $editvalue['shopid']));
    }
    showhiddenfields(array('itemid' => $editvalue['itemid']));
    showhiddenfields(array('nid' => $editvalue['nid']));
    if ($_GET['action'] == 'edit') {
        showhiddenfields(array('nocheckcatid' => 1));
    }
    showhiddenfields(array('valuesubmit' => 'yes'));
    showsubmit('settingsubmit', 'submit', '');
    showtablefooter();
    showformfooter();
    bind_ajax_form();
    echo '<script type="text/javascript" charset="' . $_G['charset'] . '">loadcalendar();</script>';
    if ($editvalue['catid']) {
        echo '<script type="text/javascript" charset="' . $_G['charset'] . '">getattributes();</script>';
    }
}
function getgrouplist()
{
    global $_G, $_SGLOBAL;
    $grouplist = array(array(0, lang('shop_group')));
    foreach ($_SGLOBAL['shopgrouparr'] as $groupid => $group) {
        $grouplist[] = array($groupid, $group['title']);
        }
        $attachmentcount = $db->result_first("SELECT count(*) FROM {$tablepre}attachments a LEFT JOIN {$tablepre}attachmentfields af ON a.aid=af.aid, {$tablepre}posts p, {$tablepre}threads t, {$tablepre}forums f\r\n\t\t\tWHERE t.tid=a.tid AND f.fid=p.fid AND t.displayorder>='0' AND p.invisible='0' AND {$sql}");
        $multipage = multi($attachmentcount, $ppp, $page, "{$BASESCRIPT}?action=attachments");
        $multipage = preg_replace("/href=\"{$BASESCRIPT}\\?action=attachments&amp;page=(\\d+)\"/", "href=\"javascript:page(\\1)\"", $multipage);
        $multipage = str_replace("window.location={$BASESCRIPT}.'?action=attachments&amp;page='+this.value", "page(this.value)", $multipage);
        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;
Exemple #6
0
            echo "<table width='800' style='margin:10px;'>";
            showsubtitle(array('', 'modelname', 'scorename', 'cmdateline'));
            foreach ($commentmodelarr as $value) {
                $checked = $value['cmid'] == $categorylist[$_GET['catid']]['cmid'] ? 'checked' : '';
                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>';
function shownewsletter()
{
    global $lang;
    showtableheader();
    showsetting('members_newsletter_subject', 'subject', '', 'text');
    showsetting('members_newsletter_message', 'message', '', 'textarea');
    if ($_GET['do'] == 'mobile') {
        showsetting('members_newsletter_system', 'system', 0, 'radio');
        showhiddenfields(array('notifymembers' => 'mobile'));
    } else {
        showsetting('members_newsletter_method', array('notifymembers', array(array('email', $lang['email'], array('pmextra' => 'none', 'posttype' => '')), array('notice', $lang['notice'], array('pmextra' => 'none', 'posttype' => '')), array('pm', $lang['grouppm'], array('pmextra' => '', 'posttype' => 'none')))), 'pm', 'mradio');
        showtagheader('tbody', 'posttype', '', 'sub');
        showsetting('members_newsletter_posttype', array('posttype', array(array(0, cplang('members_newsletter_posttype_text')), array(1, cplang('members_newsletter_posttype_html'))), TRUE), '0', 'mradio');
        showtagfooter('tbody');
        showtagheader('tbody', 'pmextra', true, 'sub');
        showsetting('members_newsletter_system', 'system', 0, 'radio');
        showtagfooter('tbody');
    }
    showsetting('members_newsletter_num', 'pertask', 100, 'text');
    showtablefooter();
}
if (!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) {
    exit('Access Denied');
}
if (!submitcheck('submit')) {
    showtips(lang('plugin/yiqixueba', 'edit_setting_tips'));
    showformheader($this_page, 'enctype');
    showtableheader(lang('plugin/yiqixueba', 'setting_option'));
    $images = '';
    if ($setting_info['settingimages'] != '') {
        $images = str_replace('{STATICURL}', STATICURL, $setting_info['settingimages']);
        if (!preg_match("/^" . preg_quote(STATICURL, '/') . "/i", $images) && !(($valueparse = parse_url($images)) && isset($valueparse['host']))) {
            $images = $_G['setting']['attachurl'] . 'common/' . $setting_info['settingimages'] . '?' . random(6);
        }
        $imageshtml = '<br /><label><input type="checkbox" class="checkbox" name="delete" value="yes" /> ' . $lang['del'] . '</label><br /><img src="' . $images . '" width="40" height="40"/>';
    }
    $settingid ? showhiddenfields(array('settingid' => $settingid)) : '';
    showsetting(lang('plugin/yiqixueba', 'settingstatus'), 'status', $setting_info['status'], 'radio', '', 0, lang('plugin/yiqixueba', 'settingstatus_comment'), '', '', true);
    //radio
    showsetting(lang('plugin/yiqixueba', 'settingname'), 'settingname', $setting_info['settingname'], 'text', $settingid ? 'readonly' : '', 0, lang('plugin/yiqixueba', 'settingname_comment'), '', '', true);
    //text password number color
    showsetting(lang('plugin/yiqixueba', 'settingtitle'), 'settingtitle', $setting_info['settingtitle'], 'textarea', '', 0, lang('plugin/yiqixueba', 'settingtitle_comment'), '', '', true);
    //textarea
    echo '<script type="text/javascript" src="static/js/calendar.js"></script>';
    showsetting(lang('plugin/yiqixueba', 'createtime'), 'createtime', dgmdate($setting_info['createtime'], 'd'), 'calendar', '', 0, lang('plugin/yiqixueba', 'createtime_comment'), '', '', true);
    //calendar
    showsetting(lang('plugin/yiqixueba', 'settingsort'), array('settingsort', array(array(0, lang('plugin/yiqixueba', 'settingsort') . '1'), array(1, lang('plugin/yiqixueba', 'settingsort') . '2'), array(2, lang('plugin/yiqixueba', 'settingsort') . '3'), array(3, lang('plugin/yiqixueba', 'settingsort') . '4'))), $setting_info['settingsort'], 'select', '', 0, lang('plugin/yiqixueba', 'settingsort_comment'), '', '', true);
    //select  mradio mcheckbox mselect (binmcheckbox)
    showsetting(lang('plugin/yiqixueba', 'settingimages'), 'settingimages', $setting_info['settingimages'], 'file', '', 0, lang('plugin/yiqixueba', 'settingimages_comment') . $imageshtml, '', '', true);
    //file filetext
    showsetting(lang('plugin/yiqixueba', 'imagessize'), array('imagewidth', 'imageheight'), array(intval($imagewidth), intval($imageheight)), 'multiply', '', 0, lang('plugin/yiqixueba', 'imagessize_comment'), '', '', true);
    //multiply daterange
Exemple #9
0
        }
        if (!$blogcount) {
            $error = 'blog_post_nonexistence';
        }
    }
    showtagheader('div', 'postlist', $searchsubmit || $newlist);
    showformheader('blog&frame=no', 'target="blogframe"');
    if (!$muticondition) {
        showtableheader(cplang('blog_new_result') . ' ' . $blogcount, 'fixpadding');
    } else {
        showtableheader(cplang('blog_result') . ' ' . $blogcount . (empty($newlist) ? ' <a href="###" onclick="$(\'searchposts\').style.display=\'\';$(\'postlist\').style.display=\'none\';$(\'blogforum\').pp.value=\'\';$(\'blogforum\').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('', 'blogid', 'author', 'subject', 'view', 'reply', 'hot', 'time', 'privacy'));
            echo $blogs;
            $optypehtml = '' . '<input type="radio" name="optype" id="optype_delete" value="delete" class="radio" /><label for="optype_delete">' . cplang('delete') . '</label>&nbsp;&nbsp;';
            $optypehtml .= '<input type="radio" name="optype" id="optype_move" value="move" class="radio" /><label for="optype_move">' . cplang('article_opmove') . '</label> ' . category_showselect('blog', 'tocatid', false) . '&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;' . $optypehtml . '<input type="submit" class="btn" name="blogsubmit" value="' . cplang('submit') . '" />', $multi);
        } else {
            showhiddenfields(array('blogids' => authcode($blogids, 'ENCODE')));
            showsubmit('blogsubmit', 'delete', $detail ? 'del' : '', '', $multi);
        }
    }
    showtablefooter();
    showformfooter();
    echo '<iframe name="blogframe" style="display:none;"></iframe>';
    showtagfooter('div');
}
Exemple #10
0
     require_once libfile('function/forumlist');
     $forumselect = '<select name="target[]" size="10" multiple="multiple">' . forumselect(FALSE, 0, 0, TRUE) . '</select>';
     $optselect = '<select name="options[]" size="10" multiple="multiple">';
     $fieldarray = array_merge($fields['forums'], $fields['forumfields']);
     $listfields = array_diff($fieldarray, array_merge($delfields['forums'], $delfields['forumfields']));
     foreach ($listfields as $field) {
         if (isset($lang['project_option_forum_' . $field])) {
             $optselect .= '<option value="' . $field . '">' . $lang['project_option_forum_' . $field] . '</option>';
         }
     }
     $optselect .= '</select>';
     shownav('forum', 'forums_copy');
     showsubmenu('forums_copy');
     showtips('forums_copy_tips');
     showformheader('forums&operation=copy');
     showhiddenfields(array('source' => $source));
     showtableheader();
     showtitle('forums_copy');
     showsetting(cplang('forums_copy_source') . ':', '', '', $sourceforum['name']);
     showsetting('forums_copy_target', '', '', $forumselect);
     showsetting('forums_copy_options', '', '', $optselect);
     showsubmit('copysubmit');
     showtablefooter();
     showformfooter();
 } else {
     $fids = array();
     if (is_array($_GET['target']) && count($_GET['target'])) {
         foreach ($_GET['target'] as $fid) {
             if (($fid = intval($fid)) && $fid != $source) {
                 $fids[] = $fid;
             }
\tvar rowtypedata = [
\t\t[
\t\t\t[1, '', 'td25'],
\t\t\t[1, '<input type="text" class="txt" size="2" name="newdisplayorder[]" value="0">', 'td28'],
\t\t\t[1, '<input type="text" class="txt" size="15" name="newtitle[]">'],
\t\t\t[1, '<input type="text" class="txt" size="15" name="newidentifier[]">'],
\t\t\t[1, '<select name="newtype[]"><option value="number">{$lang['threadtype_edit_vars_type_number']}</option><option value="text" selected>{$lang['threadtype_edit_vars_type_text']}</option><option value="textarea">{$lang['threadtype_edit_vars_type_textarea']}</option><option value="radio">{$lang['threadtype_edit_vars_type_radio']}</option><option value="checkbox">{$lang['threadtype_edit_vars_type_checkbox']}</option><option value="select">{$lang['threadtype_edit_vars_type_select']}</option><option value="calendar">{$lang['threadtype_edit_vars_type_calendar']}</option><option value="email">{$lang['threadtype_edit_vars_type_email']}</option><option value="image">{$lang['threadtype_edit_vars_type_image']}</option><option value="url">{$lang['threadtype_edit_vars_type_url']}</option><option value="range">{$lang['threadtype_edit_vars_type_range']}</option><option value="face">{$lang['threadtype_edit_vars_type_face']}</option></select>'],
\t\t\t[1, '']
\t\t],
\t];
</script>
EOT;
        shownav('forum', 'threadtype_infotypes');
        showsubmenu('threadtype_infotypes', array(array('threadtype_infotypes_type', 'threadtypes', 0), array('threadtype_infotypes_content', 'threadtypes&operation=content', 0), array(array('menu' => $curclassname ? $curclassname : 'threadtype_infotypes_option', 'submenu' => $classoptionmenu), 1)));
        showformheader("threadtypes&operation=typeoption&typeid={$_GET['typeid']}");
        showhiddenfields(array('classid' => $_GET['classid']));
        showtableheader();
        showsubtitle(array('', 'display_order', 'name', 'threadtype_variable', 'threadtype_type', ''));
        echo $typeoptions;
        echo '<tr><td></td><td colspan="5"><div><a href="###" onclick="addrow(this, 0)" class="addtr">' . $lang['threadtype_infotypes_add_option'] . '</a></div></td></tr>';
        showsubmit('typeoptionsubmit', 'submit', 'del');
        showtablefooter();
        showformfooter();
    } else {
        if ($ids = dimplode($_GET['delete'])) {
            C::t('forum_typeoption')->delete($_GET['delete']);
            C::t('forum_typevar')->delete(null, $_GET['delete']);
        }
        if (is_array($_GET['title'])) {
            foreach ($_GET['title'] as $id => $val) {
                if (in_array(strtoupper($_GET['identifier'][$id]), $mysql_keywords)) {
     showtablerow('', 'colspan="10" class="lineheight"', $lang['setting_ranklist_block_comment']);
     showtablefooter();
     showtableheader('', 'notop');
     showsubmit('settingsubmit');
     showtablefooter();
     showtableheader('', 'notop');
     $ranklistarray = array();
     $ranklistarray[] = array('index', cplang('setting_ranklist_index'));
     foreach ($ranklist as $k) {
         $ranklistarray[] = array($k, cplang('setting_ranklist_' . $k));
     }
     showsetting('setting_ranklist_update_cache_choose', array('update_ranklist_cache', $ranklistarray), '', 'mcheckbox');
     showtablerow('', 'colspan="10" class="lineheight"', $lang['setting_ranklist_cache_comment']);
     showtablefooter();
     showtableheader('', 'notop');
     showhiddenfields(array('updateranklistcache' => 0));
     showsubmit('', '', '<input type="submit" class="btn" name="settingsubmit" value="' . cplang('setting_ranklist_update_cache') . '" onclick="this.form.updateranklistcache.value=1">');
     showtablefooter();
     showformfooter();
     exit;
 } elseif ($operation == 'mobile') {
     $setting['mobile'] = unserialize($setting['mobile']);
     showtips('setting_mobile_status_tips');
     showtableheader('setting_mobile_status', '', 'id="status"' . ($_G['gp_anchor'] != 'status' ? ' style="display: none"' : ''));
     showsetting('setting_mobile_allowmobile', array('settingnew[mobile][allowmobile]', array(array(1, $lang['yes'], array('mobileext' => '')), array(0, $lang['no'], array('mobileext' => 'none'))), TRUE), $setting['mobile']['allowmobile'] ? $setting['mobile']['allowmobile'] : 0, 'mradio');
     showtagheader('tbody', 'mobileext', $setting['mobile']['allowmobile'], 'sub');
     showsetting('setting_mobile_mobileforward', 'settingnew[mobile][mobileforward]', $setting['mobile']['mobileforward'], 'radio');
     showsetting('setting_mobile_register', 'settingnew[mobile][mobileregister]', $setting['mobile']['mobileregister'], 'radio');
     showsetting('setting_mobile_seccode', 'settingnew[mobile][mobileseccode]', $setting['mobile']['mobileseccode'], 'radio');
     showsetting('setting_mobile_simpletype', array('settingnew[mobile][mobilesimpletype]', array(array(0, cplang('setting_mobile_simpletype_no')), array(1, cplang('setting_mobile_simpletype_yes')))), $setting['mobile']['mobilesimpletype'] ? $setting['mobile']['mobilesimpletype'] : 0, 'mradio');
     showsetting('setting_mobile_topicperpage', 'settingnew[mobile][mobiletopicperpage]', $setting['mobile']['mobiletopicperpage'] ? $setting['mobile']['mobiletopicperpage'] : 10, 'text');
Exemple #13
0
        cpmsg(lang('plugin/yiqixueba', 'edit_member_succeed'), 'action=' . $this_page . '&subop=memberlist', 'succeed');
    }
} elseif ($subop == 'edit') {
    if (!submitcheck('submit')) {
        showtips(lang('plugin/yiqixueba', 'edit_member_tips'));
        showformheader($this_page . '&subop=edit', 'enctype');
        showtableheader(lang('plugin/yiqixueba', 'member_option'));
        $images = '';
        if ($member_info['memberimages'] != '') {
            $images = str_replace('{STATICURL}', STATICURL, $member_info['memberimages']);
            if (!preg_match("/^" . preg_quote(STATICURL, '/') . "/i", $images) && !(($valueparse = parse_url($images)) && isset($valueparse['host']))) {
                $images = $_G['setting']['attachurl'] . 'common/' . $member_info['memberimages'] . '?' . random(6);
            }
            $imageshtml = '<br /><label><input type="checkbox" class="checkbox" name="delete" value="yes" /> ' . $lang['del'] . '</label><br /><img src="' . $images . '" width="40" height="40"/>';
        }
        $memberid ? showhiddenfields(array('memberid' => $memberid)) : '';
        showsetting(lang('plugin/yiqixueba', 'memberstatus'), 'status', $member_info['status'], 'radio', '', 0, lang('plugin/yiqixueba', 'memberstatus_comment'), '', '', true);
        //radio
        showsetting(lang('plugin/yiqixueba', 'membername'), 'membername', $member_info['membername'], 'text', $memberid ? 'readonly' : '', 0, lang('plugin/yiqixueba', 'membername_comment'), '', '', true);
        //text password number color
        showsetting(lang('plugin/yiqixueba', 'membertitle'), 'membertitle', $member_info['membertitle'], 'textarea', '', 0, lang('plugin/yiqixueba', 'membertitle_comment'), '', '', true);
        //textarea
        echo '<script type="text/javascript" src="static/js/calendar.js"></script>';
        showsetting(lang('plugin/yiqixueba', 'createtime'), 'createtime', dgmdate($member_info['createtime'], 'd'), 'calendar', '', 0, lang('plugin/yiqixueba', 'createtime_comment'), '', '', true);
        //calendar
        showsetting(lang('plugin/yiqixueba', 'membersort'), array('membersort', array(array(0, lang('plugin/yiqixueba', 'membersort') . '1'), array(1, lang('plugin/yiqixueba', 'membersort') . '2'), array(2, lang('plugin/yiqixueba', 'membersort') . '3'), array(3, lang('plugin/yiqixueba', 'membersort') . '4'))), $member_info['membersort'], 'select', '', 0, lang('plugin/yiqixueba', 'membersort_comment'), '', '', true);
        //select  mradio mcheckbox mselect (binmcheckbox)
        showsetting(lang('plugin/yiqixueba', 'memberimages'), 'memberimages', $member_info['memberimages'], 'file', '', 0, lang('plugin/yiqixueba', 'memberimages_comment') . $imageshtml, '', '', true);
        //file filetext
        showsetting(lang('plugin/yiqixueba', 'imagessize'), array('imagewidth', 'imageheight'), array(intval($imagewidth), intval($imageheight)), 'multiply', '', 0, lang('plugin/yiqixueba', 'imagessize_comment'), '', '', true);
        //multiply daterange
     $status = $_G['gp_status'];
     if ($tagname) {
         $where .= " AND tagname LIKE '%{$tagname}%'";
     }
     if ($status != '') {
         $where .= " AND status='{$status}'";
     }
     $ppp = $_G['gp_perpage'];
     $startlimit = ($page - 1) * $ppp;
     $multipage = '';
     $totalcount = DB::result_first("SELECT count(*) FROM " . DB::table('common_tag') . " {$where}");
     $multipage = multi($totalcount, $ppp, $page, ADMINSCRIPT . "?action=tag&operation=admin&searchsubmit=yes&tagname={$tagname}&perpage={$ppp}&status={$status}");
     $query = DB::query("SELECT * FROM " . DB::table('common_tag') . " {$where} LIMIT {$startlimit}, {$ppp}");
     showformheader('tag&operation=admin');
     showtableheader(cplang('tag_result') . ' ' . $totalcount . ' <a href="###" onclick="location.href=\'' . ADMINSCRIPT . '?action=tag&operation=admin;\'" class="act lightlink normal">' . cplang('research') . '</a>', 'nobottom');
     showhiddenfields(array('page' => $_G['gp_page'], 'tagname' => $tagname, 'status' => $status, 'perpage' => $ppp));
     showsubtitle(array('', 'tagname', 'misc_tag_status'));
     while ($result = DB::fetch($query)) {
         if ($result['status'] == 0) {
             $tagstatus = cplang('misc_tag_status_0');
         } elseif ($result['status'] == 1) {
             $tagstatus = cplang('misc_tag_status_1');
         }
         showtablerow('', array('class="td25"', 'width=400', ''), array("<input class=\"checkbox\" type=\"checkbox\" name=\"tagidarray[]\" value=\"{$result['tagid']}\" />", $result['tagname'], $tagstatus));
     }
     showtablerow('', array('class="td25" colspan="3"'), array('<input name="chkall" id="chkall" type="checkbox" class="checkbox" onclick="checkAll(\'prefix\', this.form, \'tagidarray\', \'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="open" checked> ' . cplang('misc_tag_status_0') . ' &nbsp; &nbsp;<input class="radio" type="radio" name="operate_type" value="close"> ' . cplang('misc_tag_status_1') . ' &nbsp; &nbsp;<input class="radio" type="radio" name="operate_type" value="delete"> ' . cplang('delete') . ' &nbsp; &nbsp;<input class="radio" type="radio" name="operate_type" value="merge"> ' . cplang('mergeto') . ' <input name="newtag" value="" class="txt" type="text">'));
     showsubmit('submit', 'submit', '', '', $multipage);
     showtablefooter();
     showformfooter();
 }
        $page = max(1, intval($page));
        $threadnumlower = !empty($threadnumlower) ? intval($threadnumlower) : '';
        $threadnumhigher = !empty($threadnumhigher) ? intval($threadnumhigher) : '';
        $sqladd = $tagname ? "tagname LIKE '%" . str_replace(array('%', '*', '_'), array('\\%', '%', '\\_'), $tagname) . "%'" : '1';
        $sqladd .= $threadnumlower ? " AND total<'" . intval($threadnumlower) . "'" : '';
        $sqladd .= $threadnumhigher ? " AND total>'" . intval($threadnumhigher) . "'" : '';
        $sqladd .= $status != -1 ? " AND closed='" . intval($status) . "'" : '';
        $pagetmp = $page;
        $num = $db->result_first("SELECT count(*) FROM {$tablepre}tags WHERE {$sqladd}");
        $multipage = multi($num, $tagpp, $page, $BASESCRIPT . '?action=misc&operation=tag&tagsearchsubmit=yes&tagname=' . rawurlencode($tagname) . '&threadnumlower=' . intval($threadnumlower) . '&threadnumhigher=' . intval($threadnumhigher) . '&status=' . intval($status));
        do {
            $query = $db->query("SELECT * FROM {$tablepre}tags WHERE {$sqladd} ORDER BY total DESC LIMIT " . ($pagetmp - 1) * $tagpp . ", {$tagpp}");
            $pagetmp--;
        } while (!$db->num_rows($query) && $pagetmp);
        showformheader('misc&operation=tag&page=' . $page);
        showhiddenfields(array('tagname' => $tagname, 'threadnumlower' => $threadnumlower, 'threadnumhigher' => $threadnumhigher, 'tagname' => $tagname, 'status' => $status));
        showtableheader('nav_posting_tag', 'fixpadding');
        showtablerow('', array('class="td21"', 'class="td25"'), array(lang('misc_tag'), lang('misc_tag_threadnum'), ''));
        while ($tag = $db->fetch_array($query)) {
            showtablerow('', array('class="td21"', 'class="td25"'), array('<a href="tag.php?name=' . rawurlencode($tag['tagname']) . '" target="_blank">' . $tag['tagname'] . '</a>', $tag['total'], '<input name="tag[' . $tag['tagname'] . ']" type="radio" class="radio" value="-1"> ' . $lang['delete'] . '&nbsp;<input name="tag[' . $tag['tagname'] . ']" type="radio" class="radio" value="1"' . ($tag['closed'] ? ' checked' : '') . '> ' . $lang['misc_tag_status_1'] . '&nbsp;<input name="tag[' . $tag['tagname'] . ']" type="radio" class="radio" value="0"' . (!$tag['closed'] ? ' checked' : '') . '> ' . $lang['misc_tag_status_0']));
        }
        showsubmit('tagsubmit', 'submit', '', '<a href="#" onclick="checkAll(\'option\', $(\'cpform\'), \'-1\')">' . lang('misc_tag_all_delete') . '</a> &nbsp;<a href="#" onclick="checkAll(\'option\', $(\'cpform\'), \'1\')">' . lang('misc_tag_all_close') . '</a> &nbsp;<a href="#" onclick="checkAll(\'option\', $(\'cpform\'), \'0\')">' . lang('misc_tag_all_open') . '</a>', $multipage);
        showtablefooter();
        showformfooter();
    }
} elseif ($operation == 'custommenu') {
    if (!$do) {
        if (!submitcheck('optionsubmit')) {
            $page = max(1, intval($page));
            $mpp = 10;
            $startlimit = ($page - 1) * $mpp;
\tvar rowtypedata = [
\t\t[
\t\t\t[1, '', 'td25'],
\t\t\t[1, '<input type="text" class="txt" size="2" name="newdisplayorder[]" value="0">', 'td28'],
\t\t\t[1, '<input type="text" class="txt" size="15" name="newtitle[]">'],
\t\t\t[1, '<input type="text" class="txt" size="15" name="newidentifier[]">'],
\t\t\t[1, '<select name="newtype[]"><option value="number">{$lang['threadtype_edit_vars_type_number']}</option><option value="text" selected>{$lang['threadtype_edit_vars_type_text']}</option><option value="textarea">{$lang['threadtype_edit_vars_type_textarea']}</option><option value="radio">{$lang['threadtype_edit_vars_type_radio']}</option><option value="checkbox">{$lang['threadtype_edit_vars_type_checkbox']}</option><option value="select">{$lang['threadtype_edit_vars_type_select']}</option><option value="calendar">{$lang['threadtype_edit_vars_type_calendar']}</option><option value="email">{$lang['threadtype_edit_vars_type_email']}</option><option value="image">{$lang['threadtype_edit_vars_type_image']}</option><option value="url">{$lang['threadtype_edit_vars_type_url']}</option><option value="range">{$lang['threadtype_edit_vars_type_range']}</option></select>'],
\t\t\t[1, '']
\t\t],
\t];
</script>
EOT;
        shownav('forum', 'threadtype_infotypes');
        showsubmenu('threadtype_infotypes', array(array('threadtype_infotypes_type', 'threadtypes', 0), array('threadtype_infotypes_content', 'threadtypes&operation=content', 0), array(array('menu' => $curclassname ? $curclassname : 'threadtype_infotypes_option', 'submenu' => $classoptionmenu), 1)));
        showformheader("threadtypes&operation=typeoption&typeid={$_G['gp_typeid']}");
        showhiddenfields(array('classid' => $_G['gp_classid']));
        showtableheader();
        showsubtitle(array('', 'display_order', 'name', 'threadtype_variable', 'threadtype_type', ''));
        echo $typeoptions;
        echo '<tr><td></td><td colspan="5"><div><a href="###" onclick="addrow(this, 0)" class="addtr">' . $lang['threadtype_infotypes_add_option'] . '</a></div></td></tr>';
        showsubmit('typeoptionsubmit', 'submit', 'del');
        showtablefooter();
        showformfooter();
    } else {
        if ($ids = dimplode($_G['gp_delete'])) {
            DB::query("DELETE FROM " . DB::table('forum_typeoption') . " WHERE optionid IN ({$ids})");
            DB::query("DELETE FROM " . DB::table('forum_typevar') . " WHERE optionid IN ({$ids})");
        }
        if (is_array($_G['gp_title'])) {
            foreach ($_G['gp_title'] as $id => $val) {
                if (in_array(strtoupper($_G['gp_identifier'][$id]), $mysql_keywords)) {
        printf($lang['cloud_doctor_api_test_failure'], $lang['cloud_doctor_result_failure'], $APIIP, $otherTips);
    }
    ajaxshowfooter();
} elseif ($op == 'setidkey') {
    ajaxshowheader();
    echo '
		<h3 class="flb" id="fctrl_showblock" style="cursor: move;">
			<em id="return_showblock" fwin="showblock">' . $lang['cloud_doctor_setidkey'] . '</em>
			<span><a title="' . $lang['close'] . '" onclick="hideWindow(\'cloudApiIpWin\');return false;" class="flbc" href="javascript:;">' . $lang['close'] . '</a></span>
		</h3>
		';
    echo '<div style="margin: 0 10px; width: 700px;">';
    showtips('cloud_doctor_setidkey_tips');
    showformheader('cloud');
    showhiddenfields(array('operation' => $operation));
    showhiddenfields(array('op' => $op));
    showtableheader();
    showsetting('cloud_site_id', 'my_siteid', $_G['setting']['my_siteid'], 'text');
    showsetting('cloud_site_key', 'my_sitekey', preg_replace('/(\\w{2})\\w*(\\w{2})/', '\\1****\\2', $_G['setting']['my_sitekey']), 'text');
    showsetting('cloud_site_status', array('cloud_status', array(array('0', $lang['cloud_doctor_status_0']), array('1', $lang['cloud_doctor_status_1']), array('2', $lang['cloud_doctor_status_2']))), $_G['setting']['cloud_status'], 'select');
    showsubmit('setidkeysubmit');
    showtablefooter();
    showformfooter();
    echo '</div>';
    ajaxshowfooter();
} else {
    $appService = Cloud::loadClass('Service_App');
    $doctorService = Cloud::loadClass('Service_Doctor');
    require_once DISCUZ_ROOT . './source/discuz_version.php';
    shownav('navcloud', 'menu_cloud_doctor');
    showsubmenu('menu_cloud_doctor');
    showsubmit('setidkeysubmit');
    showtablefooter();
    showformfooter();
    echo '</div>';
    ajaxshowfooter();
} else {
    $appService = Cloud::loadClass('Service_App');
    $doctorService = Cloud::loadClass('Service_Doctor');
    require_once DISCUZ_ROOT . './source/discuz_version.php';
    shownav('tools', 'menu_cloud_doctor');
    showsubmenu('menu_cloud_doctor');
    showtips('cloud_doctor_tips');
    echo '<script type="text/javascript">var disallowfloat = "";</script>';
    showtableheader();
    showformheader('cloud');
    showhiddenfields(array('operation' => 'siteinfo'));
    showtagheader('tbody', '', true);
    showtitle('cloud_doctor_title_status');
    showtablerow('', array('class="td24"'), array('<strong>' . cplang('cloud_site_url') . '</strong>', $_G['siteurl'] . (isfounder() ? ' &nbsp; <input type="submit" class="btn" id="submit_syncsubmit" name="syncsubmit" value="' . $lang['cloud_sync'] . '" />&nbsp; ' : '')));
    showtablerow('', array('class="td24"'), array('<strong>' . cplang('cloud_site_id') . '</strong>', $_G['setting']['my_siteid']));
    showtablerow('', array('class="td24"'), array('<strong>' . cplang('cloud_site_key') . '</strong>', preg_replace('/(\\w{2})\\w*(\\w{2})/', '\\1****\\2', $_G['setting']['my_sitekey']) . ' ' . $lang['cloud_site_key_safetips']));
    showtablerow('', array('class="td24"'), array('<strong>' . cplang('cloud_site_status') . '</strong>', (isfounder() ? $doctorService->showCloudStatus($_G['setting']['cloud_status']) . ' <a href="javascript:;" onClick="showWindow(\'cloudApiIpWin\', \'' . ADMINSCRIPT . '?action=cloud&operation=doctor&op=setidkey\'); return false;">' . $lang['cloud_doctor_modify_siteidkey'] . '</a>' : $doctorService->showCloudStatus($_G['setting']['cloud_status'])) . (isfounder() ? ' &nbsp; <input type="submit" class="btn" id="submit_resetsubmit" name="resetsubmit" value="' . $lang['cloud_resetkey'] . '" />' : '')));
    showtablerow('', array('class="td24"'), array('<strong>' . cplang('setting_basic_bbclosed') . '</strong>', $_G['setting']['bbclosed'] ? $lang['cloud_doctor_close_yes'] : $lang['no']));
    showtablerow('', array('class="td24"'), array('<strong>' . cplang('cloud_site_version') . '</strong>', DISCUZ_VERSION . ' ' . DISCUZ_RELEASE));
    if (isfounder()) {
        showtablerow('', array('class="td24"'), array('<strong>' . cplang('cloud_change_info') . '</strong>', '<a href="' . $doctorService->changeQQUrl() . '" target="_blank">' . cplang('cloud_change_qq') . '</a>'));
    }
    showtagfooter('tbody');
    showformfooter();
    showtagheader('tbody', '', true);
    showtitle('cloud_doctor_title_result');
Exemple #19
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();
    }
}
Exemple #20
0
        }
        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>&nbsp;&nbsp;';
            $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) . '&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;' . $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');
}
$page = max(1, $_G['page']);
$start_limit = ($page - 1) * $_G['setting']['memberperpage'];
$search_condition = array_merge($_GET, $_POST);
foreach ($search_condition as $k => $v) {
    if (in_array($k, array('action', 'operation', 'formhash', 'submit', 'page')) || $v === '') {
        unset($search_condition[$k]);
    }
}
if (!submitcheck('sendsmssubmit', 1)) {
    showsubmenusteps($Plang['smstong_nav_members_sendsms'], array(array('nav_members_select', !$_G['gp_submit']), array($Plang['smstong_nav_members_smscontent'], $_G['gp_submit'])));
    showsearchform('sendsms');
    if (submitcheck('submit', 1)) {
        $membernum = countmembers($search_condition);
        showtagheader('div', 'sendsms', TRUE);
        showformheader('plugins&operation=config&do=' . $_G['gp_do'] . '&identifier=smstong&pmod=sendsms', 'sendsmssubmit');
        showhiddenfields(array('notifymember' => 1));
        echo '<table class="tb tb1">';
        if (!$membernum) {
            showtablerow('', 'class="lineheight"', $lang['members_search_nonexistence']);
        } else {
            showtablerow('class="first"', array('class="th11"'), array(cplang($Plang['smstong_members_sendsms_members']), cplang('members_search_result', array('membernum' => $membernum)) . "<a href=\"###\" onclick=\"\$('searchmembers').style.display='';\$('sendsms').style.display='none';\$('step1').className='current';\$('step2').className='';\" class=\"act\">{$lang['research']}</a>&nbsp;<strong>{$Plang['smstong_members_sendsms_notice1']}</strong>"));
            showtagheader('tbody', 'messagebody', TRUE);
            showsendsms();
            showtagfooter('tbody');
            $search_condition = serialize($search_condition);
            showsubmit('sendsmssubmit', 'submit', 'td', '<input type="hidden" name="conditions" value=\'' . $search_condition . '\' />');
        }
        showtablefooter();
        showformfooter();
        showtagfooter('div');
    }
\t\t\t\t\$('code_' + i).value = '{:' + '{$id}' + '_' + \$('code_'+ i).attributes['smileyid'].nodeValue + ':}';
\t\t\t}
\t\t}

\t}
\tfunction clearinput(obj, defaultval) {
\t\tif(obj.value == defaultval) {
\t\t\tobj.value = '';
\t\t}
\t}
</script>
EOT;
            shownav('style', 'nav_smilies');
            showsubmenu(cplang('smilies_edit') . ' - ' . $type['name'], array(array('smilies_type', 'smilies', 0), array('admin', "smilies&operation=edit&id={$id}", !$do), array('add', "smilies&operation=edit&do=add&id={$id}", $do == 'add')));
            showformheader("smilies&operation=edit&id={$id}");
            showhiddenfields(array('page' => $_G['gp_page']));
            showtableheader('', 'nobottom');
            showsubtitle(array('', 'display_order', 'smilies_fast', 'smilies_edit_image', 'smilies_id', 'smilies_edit_code', 'smilies_edit_filename'));
            echo $smilies;
            showtablerow('', array('', 'colspan="5"'), array('', $lang['smilies_edit_add_code'] . ' <input type="text" class="txt" style="margin-right:0;width:40px;" size="2" value="{:" title="' . $lang['smilies_prefix'] . '" id="prefix" onclick="clearinput(this, \'' . $lang['smilies_prefix'] . '\')" /> + <select id="middle"><option value="1">' . $lang['smilies_edit_order_file'] . '</option><option value="2">' . $lang['smilies_edit_order_radom'] . '</option><option value="3">' . $lang['smilies_id'] . '</option></select> + <input type="text" class="txt" style="margin-right:0;width:40px;" size="2" value=":}" title="' . $lang['smilies_suffix'] . '" id="suffix" onclick="clearinput(this, \'' . $lang['smilies_suffix'] . '\')" /> <input type="button" class="btn" onclick="addsmileycodes(\'' . $smileynum . '\', \'\');" value="' . $lang['apply'] . '" /> &nbsp;&nbsp; <input type="button" class="btn" onclick="autoaddsmileycodes(\'' . $smileynum . '\');" value="' . $lang['smilies_edit_addcode_auto'] . '" />'));
            showsubmit('editsubmit', 'submit', 'del', '', $multipage);
            showtablefooter();
            showformfooter();
        } else {
            if ($ids = dimplode($_G['gp_delete'])) {
                DB::query("DELETE FROM\t" . DB::table('common_smiley') . " WHERE id IN ({$ids})");
            }
            $unsfast = array();
            if (is_array($_G['gp_displayorder'])) {
                foreach ($_G['gp_displayorder'] as $key => $val) {
                    if (!in_array($key, $_G['gp_fast'])) {
        cpmsg('setting_update_succeed', 'action=domain&operation=root', 'succeed');
    }
} else {
    if (!submitcheck('domainsubmit')) {
        showtips('setting_domain_base_tips');
        showformheader("domain");
        showtableheader();
        if ($_G['setting']['homepagestyle']) {
            showsetting('setting_domain_allow_space', 'settingnew[allowspacedomain]', $_G['setting']['allowspacedomain'], 'radio');
        } else {
            showhiddenfields(array('settingnew[allowspacedomain]' => 0));
        }
        if (helper_access::check_module('group')) {
            showsetting('setting_domain_allow_group', 'settingnew[allowgroupdomain]', $_G['setting']['allowgroupdomain'], 'radio');
        } else {
            showhiddenfields(array('settingnew[allowgroupdomain]' => 0));
        }
        showsetting('setting_domain_hold_domain', 'settingnew[holddomain]', $_G['setting']['holddomain'], 'text');
        showsubmit('domainsubmit');
        showtablefooter();
        showformfooter();
    } else {
        $settings = $_GET['settingnew'];
        $settings['allowspacedomain'] = (double) $settings['allowspacedomain'];
        $settings['allowgroupdomain'] = (double) $settings['allowgroupdomain'];
        if ($settings) {
            C::t('common_setting')->update_batch($settings);
            updatecache('setting');
        }
        cpmsg('setting_update_succeed', 'action=domain', 'succeed');
    }
         $threads .= showtablerow('', array('class="td25"', '', '', '', '', ''), array("<input class=\"checkbox\" type=\"checkbox\" name=\"tidarray[]\" value=\"{$thread['tid']}\" checked=\"checked\" />", "<a href=\"forum.php?mod=viewthread&tid={$thread['tid']}\" target=\"_blank\">{$thread['subject']}</a>", "<a href=\"forum.php?mod=forumdisplay&fid={$thread['fid']}\" target=\"_blank\">{$_G['cache'][forums][$thread[fid]][name]}</a>", "<a href=\"home.php?mod=space&uid={$thread['authorid']}\" target=\"_blank\">{$thread['author']}</a>", $thread['replies'], $thread['views']), TRUE);
     }
     $multi = multi($threadcount, $topicperpage, $page, ADMINSCRIPT . "?action=threadsplit&amp;operation=move");
     $multi = preg_replace("/href=\"" . ADMINSCRIPT . "\\?action=threadsplit&amp;operation=move&amp;page=(\\d+)\"/", "href=\"javascript:page(\\1)\"", $multi);
     $multi = str_replace("window.location='" . ADMINSCRIPT . "?action=threadsplit&amp;operation=move&amp;page='+this.value", "page(this.value)", $multi);
 } else {
     foreach ($threadlist as $thread) {
         $fids[] = $thread['fid'];
         $tids .= ',' . $thread['tid'];
     }
     $multi = '';
 }
 $fids = implode(',', array_unique($fids));
 showtagheader('div', 'threadlist', TRUE);
 showformheader("threadsplit&operation=move&sourcetableid={$_GET['sourcetableid']}&threadtomove=" . $threadtomove);
 showhiddenfields($_GET['detail'] ? array('fids' => $fids) : array('conditions' => serialize($conditions)));
 showtableheader(cplang('threads_result') . ' ' . $threadcount . ' <a href="###" onclick="$(\'threadlist\').style.display=\'none\';$(\'threadsearch\').style.display=\'\';" class="act lightlink normal">' . cplang('research') . '</a>', 'nobottom');
 showsubtitle(array('', 'threadsplit_move_to', 'threadsplit_manage_threadcount', 'threadsplit_manage_datalength', 'threadsplit_manage_indexlength', 'threadsplit_manage_table_createtime', 'threadsplit_manage_table_memo'));
 if (!$threadcount) {
     showtablerow('', 'colspan="3"', cplang('threads_thread_nonexistence'));
 } else {
     $threadtable_orig = C::t('forum_thread')->gettablestatus();
     $tableid = 0;
     showtablerow('', array('class="td25"'), array("<input class=\"radio\" " . ($_GET['sourcetableid'] == '0' ? 'disabled="disabled"' : '') . " type=\"radio\" name=\"tableid\" value=\"0\" />", $threadtable_orig['Name'], $threadtable_orig['Rows'], $threadtable_orig['Data_length'], $threadtable_orig['Index_length'], $threadtable_orig['Create_time'], $threadtable_info[0]['memo']));
     foreach ($threadtableids as $tableid) {
         if ($tableid) {
             $tablename = "forum_thread_{$tableid}";
             $tablestatus = C::t('forum_thread')->gettablestatus($tableid);
             showtablerow('', array(), array("<input class=\"radio\" " . ($_GET['sourcetableid'] == $tableid ? 'disabled="disabled"' : '') . " type=\"radio\" name=\"tableid\" value=\"{$tableid}\" />", $tablestatus['Name'] . ($threadtable_info[$tableid]['displayname'] ? " (" . dhtmlspecialchars($threadtable_info[$tableid]['displayname']) . ")" : ''), $tablestatus['Rows'], $tablestatus['Data_length'], $tablestatus['Index_length'], $tablestatus['Create_time'], $threadtable_info[$tableid]['memo']));
         }
     }
     $dot = strrpos($smiley['url'], '.');
     $fn = substr($smiley['url'], 0, $dot);
     $ext = substr($smiley['url'], $dot + 1);
     $stampicon = $fn . '.small.' . $ext;
     $small = array_key_exists($stampicon, $stamplistfiles);
     showtablerow('', array('class="td25"', 'class="td25"', 'class="td23"'), array("<input class=\"checkbox\" type=\"checkbox\" name=\"delete[]\" value=\"{$smiley['id']}\">", "<input type=\"text\" class=\"txt\" size=\"2\" name=\"displayorder[{$smiley['id']}]\" value=\"{$smiley['displayorder']}\">", "<input type=\"text\" class=\"txt\" size=\"2\" name=\"code[{$smiley['id']}]\" value=\"{$smiley['code']}\">", "<img src=\"static/image/stamp/{$smiley['url']}\">", $smiley['url'], $small ? '<input class="checkbox" type="checkbox" name="stampicon[' . $smiley['id'] . ']"' . ($smiley['id'] == $stampicons[$stampicon] ? ' checked="checked"' : '') . ' value="' . $stamplistfiles[$stampicon] . '" /><img class="vmiddle" src="static/image/stamp/' . $stampicon . '">' : '', $tselectrow));
     $imgfilter[] = $smiley['url'];
 }
 showsubmit('stampsubmit', 'submit', 'del');
 showtablefooter();
 showformfooter();
 showtagfooter('div');
 showtagheader('div', 'llist', $anchor == 'llist');
 showtips('misc_stamp_listtips');
 showformheader('misc&operation=stamp&type=list');
 showhiddenfields(array('anchor' => 'llist'));
 showtableheader();
 showsubtitle(array('', 'misc_stamp_id', 'misc_stamp_listname', 'smilies_edit_image', 'smilies_edit_filename'));
 foreach ($stamplist as $smiley) {
     showtablerow('', array('class="td25"', 'class="td25"', 'class="td23"'), array("<input class=\"checkbox\" type=\"checkbox\" name=\"delete[]\" value=\"{$smiley['id']}\">", "<input type=\"text\" class=\"txt\" size=\"2\" name=\"displayorder[{$smiley['id']}]\" value=\"{$smiley['displayorder']}\">", "<input type=\"text\" class=\"txt\" size=\"2\" name=\"code[{$smiley['id']}]\" value=\"{$smiley['code']}\">", "<img src=\"static/image/stamp/{$smiley['url']}\">", $smiley['url']));
     $imgfilter[] = $smiley['url'];
 }
 showsubmit('stampsubmit', 'submit', 'del');
 showtablefooter();
 showformfooter();
 showtagfooter('div');
 showtagheader('div', 'add', $anchor == 'add');
 showformheader('misc&operation=stamp');
 showtips('misc_stamp_addtips');
 showtableheader();
 showsubtitle(array('add', 'misc_stamp_type', 'misc_stamp_id', 'misc_stamp_imagename', 'smilies_edit_image', 'smilies_edit_filename'));
Exemple #26
0
         } else {
             $feedcount = 0;
             $query = C::t('home_feed')->fetch_all_by_search(2, $uids, $icon, $starttime, $endtime, $feedids, $hot1, $hot2);
             foreach ($query as $feed) {
                 $feedids .= ',' . $feed['feedid'];
                 $feedcount++;
             }
             $multi = '';
         }
         if (!$feedcount) {
             $error = 'feed_post_nonexistence';
         }
     }
     showtagheader('div', 'postlist', $searchsubmit);
     showformheader('feed&frame=no', 'target="feedframe"');
     showhiddenfields(array('feedids' => authcode($feedids, 'ENCODE')));
     showtableheader(cplang('feed_result') . ' ' . $feedcount . ' <a href="###" onclick="$(\'searchposts\').style.display=\'\';$(\'postlist\').style.display=\'none\';$(\'feedforum\').pp.value=\'\';$(\'feedforum\').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('', 'feed_title', 'feed_body', 'time', ''));
             echo $feeds;
         }
     }
     showsubmit('feedsubmit', 'delete', $detail ? 'del' : '', '', $multi);
     showtablefooter();
     showformfooter();
     echo '<iframe name="feedframe" style="display:none"></iframe>';
     showtagfooter('div');
 }
        $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();
}
         showtagheader('tbody', '', true);
         showtitle('admingroup_edit_portalperm');
         showsetting('admingroup_edit_manage_article', 'allowmanagearticlenew', $group['allowmanagearticle'], 'radio');
         showtagfooter('tbody');
         showtagheader('tbody', '', true);
         showsetting('admingroup_edit_add_topic', 'allowaddtopicnew', $group['allowaddtopic'], 'radio');
         showsetting('admingroup_edit_manage_topic', 'allowmanagetopicnew', $group['allowmanagetopic'], 'radio');
         showsetting('admingroup_edit_diy', 'allowdiynew', $group['allowdiy'], 'radio');
         showtagfooter('tbody');
         showtablefooter();
         showtagfooter('div');
         showsubmit('groupsubmit');
         $_G['showsetting_multi']++;
     }
     if ($_G['showsetting_multicount'] > 1) {
         showhiddenfields(array('multi' => implode(',', $mgids)));
         showmulti();
     }
     showformfooter();
 } else {
     if (!$multiset) {
         $_GET['multinew'] = array(0 => array('single' => 1));
     }
     foreach ($_GET['multinew'] as $k => $row) {
         if (empty($row['single'])) {
             foreach ($row as $key => $value) {
                 $_GET['' . $key] = $value;
             }
             $_GET['id'] = $_GET['multi'][$k];
         }
         $group = $mgroup[$k];
            $forumselect = preg_replace("/(\\<option value=\"{$inforum}\")(\\>)/", "\\1 selected=\"selected\" \\2", $forumselect);
        }
        shownav('topic', 'nav_recyclebin');
        showsubmenu('nav_recyclebin', array(array('recyclebin_list', 'recyclebin', 0), array('search', 'recyclebin&operation=search', 1), array('clean', 'recyclebin&operation=clean', 0)));
        echo <<<EOT
<script type="text/javascript" src="static/js/calendar.js"></script>
<script type="text/JavaScript">
function page(number) {
\t\$('rbsearchform').page.value=number;
\t\$('rbsearchform').searchsubmit.click();
}
</script>
EOT;
        showtagheader('div', 'threadsearch', !$searchsubmit);
        showformheader('recyclebin&operation=search', '', 'rbsearchform');
        showhiddenfields(array('page' => $page));
        showtableheader('recyclebin_search');
        showsetting('recyclebin_search_forum', '', '', $forumselect);
        showsetting('recyclebin_search_author', 'authors', $authors, 'text');
        showsetting('recyclebin_search_keyword', 'keywords', $keywords, 'text');
        showsetting('recyclebin_search_admin', 'admins', $admins, 'text');
        showsetting('recyclebin_search_post_time', array('pstarttime', 'pendtime'), array($pstarttime, $pendtime), 'daterange');
        showsetting('recyclebin_search_mod_time', array('mstarttime', 'mendtime'), array($mstarttime, $mendtime), 'daterange');
        if ($secStatus) {
            showsetting('recyclebin_search_security_thread', 'security', $security, 'radio');
        }
        showsubmit('searchsubmit');
        showtablefooter();
        showformfooter();
        showtagfooter('div');
        if (submitcheck('searchsubmit')) {
Exemple #30
0
        cpmsg(lang('plugin/yiqixueba', 'edit_goods_succeed'), 'action=' . $this_page . '&subop=goodslist', 'succeed');
    }
} elseif ($subop == 'edit') {
    if (!submitcheck('submit')) {
        showtips(lang('plugin/yiqixueba', 'edit_goods_tips'));
        showformheader($this_page . '&subop=edit', 'enctype');
        showtableheader(lang('plugin/yiqixueba', 'goods_option'));
        $images = '';
        if ($goods_info['goodsimages'] != '') {
            $images = str_replace('{STATICURL}', STATICURL, $goods_info['goodsimages']);
            if (!preg_match("/^" . preg_quote(STATICURL, '/') . "/i", $images) && !(($valueparse = parse_url($images)) && isset($valueparse['host']))) {
                $images = $_G['setting']['attachurl'] . 'common/' . $goods_info['goodsimages'] . '?' . random(6);
            }
            $imageshtml = '<br /><label><input type="checkbox" class="checkbox" name="delete" value="yes" /> ' . $lang['del'] . '</label><br /><img src="' . $images . '" width="40" height="40"/>';
        }
        $goodsid ? showhiddenfields(array('goodsid' => $goodsid)) : '';
        showsetting(lang('plugin/yiqixueba', 'goodsstatus'), 'status', $goods_info['status'], 'radio', '', 0, lang('plugin/yiqixueba', 'goodsstatus_comment'), '', '', true);
        //是否有效
        showsetting(lang('plugin/yiqixueba', 'goodsname'), 'goodsname', $goods_info['goodsname'], 'text', $goodsid ? 'readonly' : '', 0, lang('plugin/yiqixueba', 'goodsname_comment'), '', '', true);
        //商品名称
        showsetting(lang('plugin/yiqixueba', 'shopid'), 'shopid', $goods_info['shopid'], 'text', $goodsid ? 'readonly' : '', 0, lang('plugin/yiqixueba', 'shopid_comment'), '', '', true);
        //所属商家
        showsetting(lang('plugin/yiqixueba', 'goodstitle'), 'goodstitle', $goods_info['goodstitle'], 'textarea', '', 0, lang('plugin/yiqixueba', 'goodstitle_comment'), '', '', true);
        //商品标题
        showsetting(lang('plugin/yiqixueba', 'price'), 'price', $goods_info['price'], 'text', '', 0, lang('plugin/yiqixueba', 'price_comment'), '', '', true);
        //原价
        showsetting(lang('plugin/yiqixueba', 'newprice'), 'newprice', $goods_info['newprice'], 'text', '', 0, lang('plugin/yiqixueba', 'newprice_comment'), '', '', true);
        //折扣价
        echo '<script type="text/javascript" src="static/js/calendar.js"></script>';
        showsetting(lang('plugin/yiqixueba', 'youxiaotime'), 'youxiaotime', $goods_info['youxiaotime'] ? dgmdate($goods_info['youxiaotime'], 'd') : dgmdate(time() + 2592000, 'd'), 'calendar', '', 0, lang('plugin/yiqixueba', 'youxiaotime_comment'), '', '', true);
        //到期日期