本文整理汇总了PHP中showhiddenfields函数的典型用法代码示例。如果您正苦于以下问题:PHP showhiddenfields函数的具体用法?PHP showhiddenfields怎么用?PHP showhiddenfields使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了showhiddenfields函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: file_exists
$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;\"> </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;\"> </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"> </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()) {
示例2: foreach
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'];
示例3: while
} 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');
}
示例4: getgroupid
} 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']);
示例5: count
}
$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&page=(\\d+)\"/", "href=\"javascript:page(\\1)\"", $multipage);
$multipage = str_replace("window.location={$BASESCRIPT}.'?action=attachments&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;
示例6: showsubtitle
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>';
示例7: shownewsletter
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();
}
示例8: exit
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
示例9: showtagheader
}
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> ';
$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) . ' ';
showsubmit('', '', '', '<input type="checkbox" name="chkall" id="chkall" class="checkbox" onclick="checkAll(\'prefix\', this.form, \'ids\')" /><label for="chkall">' . cplang('select_all') . '</label> ' . $optypehtml . '<input type="submit" class="btn" name="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');
}
示例10: libfile
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;
}
示例11: shownav
\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)) {
示例12: showtablerow
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');
示例13: cpmsg
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
示例14: count
$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') . ' <input class="radio" type="radio" name="operate_type" value="close"> ' . cplang('misc_tag_status_1') . ' <input class="radio" type="radio" name="operate_type" value="delete"> ' . cplang('delete') . ' <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();
}
示例15: max
$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'] . ' <input name="tag[' . $tag['tagname'] . ']" type="radio" class="radio" value="1"' . ($tag['closed'] ? ' checked' : '') . '> ' . $lang['misc_tag_status_1'] . ' <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> <a href="#" onclick="checkAll(\'option\', $(\'cpform\'), \'1\')">' . lang('misc_tag_all_close') . '</a> <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;