本文整理汇总了PHP中showtablerow函数的典型用法代码示例。如果您正苦于以下问题:PHP showtablerow函数的具体用法?PHP showtablerow怎么用?PHP showtablerow使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了showtablerow函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: showsendsms
function showsendsms()
{
global $_G;
global $lang;
global $Plang;
showtablerow('', array('class="th12"', ''), array($Plang['smstong_members_qunfasms_content'], '<a href="' . ADMINSCRIPT . '?action=plugins&operation=config&do=' . $pluginid . '&identifier=smstong&pmod=qunfasms&getmobile=true">' . $Plang['smstong_members_qunfasms_getmobile'] . '</a><br /><br /><textarea name="message" cols="100" rows="10">' . $_G['gp_content'] . '</textarea>'));
showtablerow('', array('class="th12"', ''), array('', '<strong>' . $Plang['smstong_members_qunfasms_notice'] . '</strong>'));
}
示例2: showPlugins
public function showPlugins()
{
global $_G;
$plugins = array();
$identifiers = array('qqconnect', 'cloudstat', 'soso_smilies', 'cloudsearch', 'qqgroup', 'security', 'xf_storage');
$plugins = C::t('common_plugin')->fetch_all_by_identifier($identifiers);
if ($plugins && count($plugins) == count($identifiers)) {
$systemPluginStatus = cplang('cloud_doctor_result_success') . ' ' . cplang('available') . ' ' . cplang('cloud_doctor_system_plugin_list');
} else {
$initsysFormHash = substr(md5(substr($_G['timestamp'], 0, -7) . $_G['username'] . $_G['uid'] . $_G['authkey']), 8, 8);
$systemPluginStatus = cplang('cloud_doctor_result_failure') . cplang('cloud_doctor_system_plugin_status_false', array('formhash' => $initsysFormHash));
}
showtablerow('', array('class="td24"'), array('<strong>' . cplang('cloud_doctor_system_plugin_status') . '</strong>', $systemPluginStatus));
foreach ($plugins as $plugin) {
$moduleStatus = cplang('cloud_doctor_plugin_module_error');
$plugin['modules'] = @dunserialize($plugin['modules']);
if (is_array($plugin['modules']) && $plugin['modules']) {
$moduleStatus = '';
}
showtablerow('', array('class="td24"'), array('<strong>' . $plugin['name'] . '</strong>', cplang('version') . ' ' . $plugin['version'] . ' ' . $moduleStatus));
}
}
示例3: exit
if (!defined('IN_ADMINCP')) {
exit('Access Denied');
}
include_once DISCUZ_ROOT . './source/plugin/dsu_updater/core.func.php';
showtableheader($du_lang['installed_plugin']);
showsubtitle(array($du_lang['plugin_name'], $du_lang['ver_installed'], $du_lang['ver_new'], $du_lang['action']));
$query = DB::query('SELECT name,identifier,version FROM ' . DB::table('common_plugin') . " WHERE identifier LIKE 'dsu_%'");
while ($result = DB::fetch($query)) {
$output = array();
$output[] = $result['name'];
$output[] = $result['version'];
$plugin[$result['identifier']] = $result['name'];
$output[] = $_G['dsu_updater']['plugin'][$result['identifier']];
if ($result['version'] == $_G['dsu_updater']['plugin'][$result['identifier']] || $_G['dsu_updater']['plugin'][$result['identifier']] == '') {
$output[] = '';
} else {
$output[] = '<a href="admin.php?action=plugins&operation=config&identifier=dsu_updater&pmod=main&plugin=' . $result['identifier'] . '&formhash=' . FORMHASH . "\">{$du_lang[update_do]}</a>";
}
showtablerow('', '', $output);
}
showtablefooter();
if (submitcheck('plugin', 1)) {
showtableheader($du_lang['update_status'] . $plugin[$_G['gp_plugin']]);
echo '<tr><td class="tipsblock"><ul id="update_status"><li>正在请求 Callback 系统, 请稍候...</li></ul></td></tr>';
showtablefooter();
@(include_once DISCUZ_ROOT . './source/discuz_version.php');
echo '<script onerror="document.getElementById(\'update_status\').innerHTML+=\'<li><font color=red>发送 CallBack 数据失败.</font></li>\'" src="http://update.dsu.cc/plugin.php?id=' . $_G['gp_plugin'] . '&site_id=' . $_G['dsu_updater']['site_id'] . '&keyhash=' . md5($_G['dsu_updater']['key']) . '&dv=' . DISCUZ_VERSION . '"></script>';
}
@(include_once DISCUZ_ROOT . './source/discuz_version.php');
callback('plugin', 0, '&dv=' . DISCUZ_VERSION);
示例4: recyclebinpostshowpostlist
function recyclebinpostshowpostlist($fid, $authors, $starttime, $endtime, $keywords, $start_limit, $lpp)
{
global $_G, $lang, $posttableid, $security;
$tids = $fids = array();
if ($security) {
$postlist = C::t('#security#security_evilpost')->fetch_all_by_search($posttableid, null, $keywords, -5, $fid, null, $authors ? explode(',', str_replace(' ', '', $authors)) : null, strtotime($starttime), strtotime($endtime), null, null, $start_limit, $lpp);
} else {
$postlist = C::t('forum_post')->fetch_all_by_search($posttableid, null, $keywords, -5, $fid, null, $authors ? explode(',', str_replace(' ', '', $authors)) : null, strtotime($starttime), strtotime($endtime), null, null, $start_limit, $lpp);
}
if (empty($postlist)) {
return false;
}
foreach ($postlist as $key => $post) {
$tids[$post['tid']] = $post['tid'];
$fids[$post['fid']] = $post['fid'];
}
foreach (C::t('forum_thread')->fetch_all_by_tid($tids) as $thread) {
$thread['tsubject'] = $thread['subject'];
$threadlist[$thread['tid']] = $thread;
}
$query = C::t('forum_forum')->fetch_all_by_fid($fids);
foreach ($query as $val) {
$forum = array('fid' => $val['fid'], 'forumname' => $val['name'], 'allowsmilies' => $val['allowsmilies'], 'allowhtml' => $val['allowhtml'], 'allowbbcode' => $val['allowbbcode'], 'allowimgcode' => $val['allowimgcode']);
$forumlist[$forum['fid']] = $forum;
}
foreach ($postlist as $key => $post) {
$post['message'] = discuzcode($post['message'], $post['smileyoff'], $post['bbcodeoff'], sprintf('%00b', $post['htmlon']), $forumlist[$post['fid']]['allowsmilies'], $forumlist[$post['fid']]['allowbbcode'], $forumlist[$post['fid']]['allowimgcode'], $forumlist[$post['fid']]['allowhtml']);
$post['dateline'] = dgmdate($post['dateline']);
if ($post['attachment']) {
require_once libfile('function/attachment');
foreach (C::t('forum_attachment_n')->fetch_all_by_id('tid:' . $post['tid'], 'pid', $post['pid']) as $attach) {
$_G['setting']['attachurl'] = $attach['remote'] ? $_G['setting']['ftp']['attachurl'] : $_G['setting']['attachurl'];
$attach['url'] = $attach['isimage'] ? " {$attach['filename']} (" . sizecount($attach['filesize']) . ")<br /><br /><img src=\"" . $_G['setting']['attachurl'] . "forum/{$attach['attachment']}\" onload=\"if(this.width > 100) {this.resized=true; this.width=100;}\">" : "<a href=\"" . $_G['setting']['attachurl'] . "forum/{$attach['attachment']}\" target=\"_blank\">{$attach['filename']}</a> (" . sizecount($attach['filesize']) . ")";
$post['message'] .= "<br /><br />{$lang['attachment']}: " . attachtype(fileext($attach['filename']) . "\t") . $attach['url'];
}
}
showtablerow("id=\"mod_{$post['pid']}_row1\"", array('rowspan="3" class="rowform threadopt" style="width:80px;"', 'class="threadtitle"'), array("<ul class=\"nofloat\"><li><input class=\"radio\" type=\"radio\" name=\"moderate[{$post['pid']}]\" id=\"mod_{$post['pid']}_1\" value=\"delete\" checked=\"checked\" /><label for=\"mod_{$post['pid']}_1\">{$lang['delete']}</label></li><li><input class=\"radio\" type=\"radio\" name=\"moderate[{$post['pid']}]\" id=\"mod_{$post['pid']}_2\" value=\"undelete\" /><label for=\"mod_{$post['pid']}_2\">{$lang['undelete']}</label></li><li><input class=\"radio\" type=\"radio\" name=\"moderate[{$post['pid']}]\" id=\"mod_{$post['pid']}_3\" value=\"ignore\" /><label for=\"mod_{$post['pid']}_3\">{$lang['ignore']}</label></li></ul>", "<h3><a href=\"forum.php?mod=forumdisplay&fid={$post['fid']}\" target=\"_blank\">" . $forumlist[$post['fid']]['forumname'] . "</a> » <a href=\"forum.php?mod=viewthread&tid={$post['tid']}\" target=\"_blank\">" . $threadlist[$post['tid']]['tsubject'] . "</a>" . ($post['subject'] ? ' » ' . $post['subject'] : '') . "</h3><p><span class=\"bold\">{$lang['author']}:</span> <a href=\"home.php?mod=space&uid={$post['authorid']}\" target=\"_blank\">{$post['author']}</a> <span class=\"bold\">{$lang['time']}:</span> {$post['dateline']} IP: {$post['useip']}</p>"));
showtablerow("id=\"mod_{$post['pid']}_row2\"", 'colspan="2" style="padding: 10px; line-height: 180%;"', '<div style="overflow: auto; overflow-x: hidden; max-height:120px; height:auto !important; height:120px; word-break: break-all;">' . $post['message'] . '</div>');
showtablerow("id=\"mod_{$post['pid']}_row3\"", 'class="threadopt threadtitle" colspan="2"', "{$lang['isanonymous']}: " . ($post['anonymous'] ? $lang['yes'] : $lang['no']) . " {$lang['ishtmlon']}: " . ($post['htmlon'] ? $lang['yes'] : $lang['no']));
}
return true;
}
示例5: showformfooter
showformfooter();
} else {
showsubtitle(array('block_name', 'block_script', 'block_style', 'block_dateline', 'block_page', 'operation'));
$multipage = '';
$count = DB::result(DB::query("SELECT COUNT(*) FROM " . DB::table('common_block') . " b LEFT JOIN " . DB::table('common_template_block') . " tb ON tb.bid=b.bid WHERE {$wheresql}"), 0);
if ($count) {
$query = DB::query("SELECT b.*, tb.targettplname FROM " . DB::table('common_block') . " b LEFT JOIN " . DB::table('common_template_block') . " tb ON b.bid=tb.bid WHERE {$wheresql} {$ordersql} LIMIT {$start},{$perpage}");
while ($value = DB::fetch($query)) {
if ($value['targettplname']) {
$diyurl = block_getdiyurl($value['targettplname']);
$diyurl = $diyurl['url'];
$tplname = isset($_G['cache']['diytemplatename'][$value['targettplname']]) ? $_G['cache']['diytemplatename'][$value['targettplname']] : $value['targettplname'];
$diypage[$value['bid']][$value['targettplname']] = $diyurl ? '<a href="' . $diyurl . '" target="_blank">' . $tplname . '</a>' : $tplname;
}
$list[$value['bid']] = $value;
}
if ($list) {
foreach ($list as $bid => $value) {
$inpage = empty($diypage[$bid]) ? cplang('block_page_unused') : implode('<br/>', $diypage[$bid]);
$theclass = block_getclass($value['blockclass'], true);
showtablerow('', '', array($value['name'] ? $value['name'] : cplang('block_name_null'), $theclass['script'][$value['script']], $value['styleid'] ? $theclass['style'][$value['styleid']]['name'] : lang('portalcp', 'blockstyle_diy'), !empty($value['dateline']) ? dgmdate($value['dateline']) : cplang('block_dateline_null'), $inpage, "<a href=\"portal.php?mod=portalcp&ac=block&op=block&bid={$value['bid']}&from=cp\" target=\"_blank\" onclick=\"showWindow('showblock',this.href);return false;\">" . cplang('block_setting') . "</a>  " . "<a href=\"portal.php?mod=portalcp&ac=block&op=data&bid={$value['bid']}&from=cp\" target=\"_blank\" onclick=\"showWindow('showblock',this.href);return false;\">" . cplang('block_data') . "</a>  " . $diyop . " <a href=\"" . ADMINSCRIPT . "?action=block&operation=perm&bid={$value['bid']}\">" . cplang('portalcategory_perm') . '</a>'));
}
}
$multipage = multi($count, $perpage, $page, $mpurl);
}
showsubmit('', '', '', '<input type="submit" class="btn" name="clearsubmit" value="' . cplang('block_clear_unused') . '" />', $multipage);
showtablefooter();
showformfooter();
}
}
}
示例6: lang
$shareurl = "home.php?mod=space&uid={$share['fromuid']}&do=blog&id={$share['itemid']}&modblogkey={$share['modkey']}";
$sharetitle = lang('admincp', 'share_type_blog');
break;
case 'album':
$shareurl = "home.php?mod=space&uid={$share['fromuid']}&do=album&id={$share['itemid']}&modalbumkey={$share['modkey']}";
$sharetitle = lang('admincp', 'share_type_album');
break;
case 'article':
$shareurl = "portal.php?mod=view&aid={$share['itemid']}&modarticlekey={$share['modkey']}";
$sharetitle = lang('admincp', 'share_type_article');
break;
}
showtagheader('tbody', '', true, 'hover');
showtablerow("id=\"mod_{$share['sid']}_row1\"", array("id=\"mod_{$share['sid']}_row1_op\" rowspan=\"3\" class=\"rowform threadopt\" style=\"width:80px;\"", '', 'width="120"', 'width="120"', 'width="55"', 'width="55"'), array("<ul class=\"nofloat\"><li><input class=\"radio\" type=\"radio\" name=\"moderate[{$share['sid']}]\" id=\"mod_{$share['sid']}_1\" value=\"validate\" onclick=\"mod_setbg({$share['sid']}, 'validate');\"><label for=\"mod_{$share['sid']}_1\">{$lang['validate']}</label></li><li><input class=\"radio\" type=\"radio\" name=\"moderate[{$share['sid']}]\" id=\"mod_{$share['sid']}_2\" value=\"delete\" onclick=\"mod_setbg({$share['sid']}, 'delete');\"><label for=\"mod_{$share['sid']}_2\">{$lang['delete']}</label></li><li><input class=\"radio\" type=\"radio\" name=\"moderate[{$share['sid']}]\" id=\"mod_{$doing['doid']}_3\" value=\"ignore\" onclick=\"mod_setbg({$share['sid']}, 'ignore');\"><label for=\"mod_{$share['sid']}_3\">{$lang['ignore']}</label></li></ul>", "<h3><a href=\"javascript:;\" onclick=\"display_toggle({$share[sid]});\">{$short_desc} {$share_censor_text}</a></h3>", $sharetitle, "<p><a target=\"_blank\" href=\"" . ADMINSCRIPT . "?action=members&operation=search&uid={$share['uid']}&submit=yes\">{$share['username']}</a></p> <p>{$share['dateline']}</p>", "<a target=\"_blank\" href=\"{$shareurl}\">{$lang['view']}</a>"));
showtablerow("id=\"mod_{$share['sid']}_row2\"", 'colspan="4" style="padding: 10px; line-height: 180%;"', '<div style="overflow: auto; overflow-x: hidden; max-height:120px; height:auto !important; height:100px; word-break: break-all;">' . $share['body_general'] . '</div>');
showtablerow("id=\"mod_{$share['sid']}_row3\"", 'class="threadopt threadtitle" colspan="4"', "<a href=\"?action=moderate&operation=shares&fast=1&sid={$share['sid']}&moderate[{$share['sid']}]=validate&page={$page}&frame=no\" target=\"fasthandle\">{$lang['validate']}</a> | <a href=\"?action=moderate&operation=shares&fast=1&sid={$share['sid']}&moderate[{$share['sid']}]=delete&page={$page}&frame=no\" target=\"fasthandle\">{$lang['delete']}</a> | <a href=\"?action=moderate&operation=shares&fast=1&sid={$share['sid']}&moderate[{$share['sid']}]=ignore&page={$page}&frame=no\" target=\"fasthandle\">{$lang['ignore']}</a>");
showtagfooter('tbody');
}
showsubmit('modsubmit', 'submit', '', '<a href="#all" onclick="mod_setbg_all(\'validate\')">' . cplang('moderate_all_validate') . '</a> <a href="#all" onclick="mod_setbg_all(\'delete\')">' . cplang('moderate_all_delete') . '</a> <a href="#all" onclick="mod_setbg_all(\'ignore\')">' . cplang('moderate_all_ignore') . '</a> <a href="#all" onclick="mod_cancel_all();">' . cplang('moderate_all_cancel') . '</a>', $multipage, false);
showtablefooter();
showformfooter();
} else {
$moderation = array('validate' => array(), 'delete' => array(), 'ignore' => array());
$validates = $deletes = $ignores = 0;
if (is_array($moderate)) {
foreach ($moderate as $sid => $act) {
$moderation[$act][] = $sid;
}
}
if (!empty($moderation['validate'])) {
require_once libfile('function/feed');
示例7: cpmsg
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"> <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'] . ') <input type="submit" class="btn" name="setthreadcover" onclick="this.form.pertask.value=this.form.pertask14.value" value="' . $lang['submit'] . '" />'));
showtablefooter();
showformfooter();
}
function runuchcount($start, $perpage)
{
}
示例8: exit
* $Id: admincp_templates.php 6757 2010-03-25 09:01:29Z cnteacher $
*/
if (!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) {
exit('Access Denied');
}
cpheader();
if (!isfounder()) {
cpmsg('noaccess_isfounder', '', 'error');
}
$operation = empty($operation) ? 'admin' : $operation;
if ($operation == 'admin') {
if (!submitcheck('tplsubmit')) {
$templates = '';
$query = DB::query("SELECT * FROM " . DB::table('common_template') . "");
while ($tpl = DB::fetch($query)) {
$templates .= showtablerow('', array('class="td25"', '', 'class="td29"'), array("<input class=\"checkbox\" type=\"checkbox\" name=\"delete[]\" " . ($tpl['templateid'] == 1 ? 'disabled ' : '') . "value=\"{$tpl['templateid']}\">", "<input type=\"text\" class=\"txt\" size=\"8\" name=\"namenew[{$tpl['templateid']}]\" value=\"{$tpl['name']}\">", "<input type=\"text\" class=\"txt\" size=\"20\" name=\"directorynew[{$tpl['templateid']}]\" value=\"{$tpl['directory']}\">", !empty($tpl['copyright']) ? $tpl['copyright'] : "<input type=\"text\" class=\"txt\" size=\"8\" name=\"copyrightnew[{$tpl['templateid']}]\" value=>"), TRUE);
}
shownav('style', 'templates_admin');
showsubmenu('templates_admin');
showformheader('templates');
showtableheader();
showsubtitle(array('', 'templates_admin_name', 'dir', 'copyright', ''));
echo $templates;
echo '<tr><td>' . $lang['add_new'] . '</td><td><input type="text" class="txt" size="8" name="newname"></td><td class="td29"><input type="text" class="txt" size="20" name="newdirectory"></td><td><input type="text" class="txt" size="25" name="newcopyright"></td><td> </td></tr>';
showsubmit('tplsubmit', 'submit', 'del');
showtablefooter();
showformfooter();
} else {
if ($_G['gp_newname']) {
if (!$_G['gp_newdirectory']) {
cpmsg('tpl_new_directory_invalid', '', 'error');
示例9: rawurlencode
$order['orderstatus'] = $lang['ec_orders_search_status_pending'];
break;
case 2:
$order['orderstatus'] = '<b>' . $lang['ec_orders_search_status_auto_finished'] . '</b>';
break;
case 3:
$order['orderstatus'] = '<b>' . $lang['ec_orders_search_status_manual_finished'] . '</b><br />(<a href="home.php?mod=space&username=' . rawurlencode($order['admin']) . '" target="_blank">' . $order['admin'] . '</a>)';
break;
}
$order['submitdate'] = dgmdate($order['submitdate']);
$order['confirmdate'] = $order['confirmdate'] ? dgmdate($order['confirmdate']) : 'N/A';
list($orderid, $apitype) = explode("\t", $order['buyer']);
$apitype = $apitype ? $apitype : 'alipay';
$orderid = '<a href="' . $orderurl[$apitype] . $orderid . '" target="_blank">' . $orderid . '</a>';
showtablerow('', '', array("<input class=\"checkbox\" type=\"checkbox\" name=\"validate[]\" value=\"{$order['orderid']}\" " . ($order['status'] != 1 ? 'disabled' : '') . ">", "{$order['orderid']}<br />{$orderid}", $order['orderstatus'], "{$order['email']}<br>{$order['ip']}", $order['amount'], "{$lang['rmb']} {$order['price']} {$lang['rmb_yuan']}", $order['submitdate'], $order['confirmdate']));
}
showtablerow('', array('colspan="7"'), array($multipage));
showsubmit('ordersubmit', 'ec_orders_validate', '<input type="checkbox" name="chkall" id="chkall" class="checkbox" onclick="checkAll(\'prefix\', this.form, \'validate\')" />');
showtablefooter();
showformfooter();
showtagfooter('div');
} else {
if ($_G['gp_validate']) {
$query = DB::query("SELECT * FROM " . DB::table('forum_order') . " WHERE orderid IN (" . dimplode($_G['gp_validate']) . ") AND status='1'");
if ($numvalidate = DB::num_rows($query)) {
DB::query("UPDATE " . DB::table('forum_order') . " SET status='3', admin='{$_G['username']}', confirmdate='{$_G['timestamp']}' WHERE orderid IN (" . dimplode($_G['gp_validate']) . ")");
}
}
cpmsg('orders_validate_succeed', "action=ec&operation=inviteorders&orderstatus={$_G['gp_orderstatus']}&orderid={$_G['gp_orderid']}&email={$_G['gp_email']}", 'succeed');
}
}
示例10: array
}
$managelog = $managelogarr = array();
$tpp = 15;
$page = $_GET['page'] > 0 ? intval($_GET['page']) : 1;
$mlstart = ($page - 1) * $tpp;
$query = DB::query("SELECT count(mlogid) AS count FROM " . tname('managelog') . $wheresql . ";");
$value = DB::fetch($query);
foreach ($_GET as $key => $_value) {
if (in_array($key, array('action', 'formhash', 'filtersubmit', 'managelogtype', 'shopid'))) {
$url .= '&' . $key . '=' . $_value;
}
}
$url = '?' . substr($url, 1);
$multipage = multi($value['count'], $tpp, $page, 'admin.php' . $url, $phpurl = 1);
$query = DB::query("SELECT * FROM " . tname('managelog') . $wheresql . " ORDER BY dateline DESC LIMIT " . $mlstart . ", " . $tpp . ";");
while ($managelog = DB::fetch($query)) {
$managelog['shopname'] = DB::result_first("SELECT subject FROM " . tname('shopitems') . " WHERE itemid='{$managelog['shopid']}'");
$managelog['itemname'] = DB::result_first("SELECT subject FROM " . tname($managelog['type'] . 'items') . " WHERE itemid='{$managelog['itemid']}'");
$managelog['typename'] = $lang['header_' . $managelog['type']];
$managelog['shortreason'] = cutstr($managelog['reason'], 60, 1);
$managelogarr[] = $managelog;
}
foreach ($managelogarr as $value) {
showtablerow('', array(), array($_G['username'], '<a href=\'store.php?id=' . $value['shopid'] . '&action=' . $value['type'] . '&xid=' . $value['itemid'] . '\' target=\'_blank\'>' . $value['itemname'] . '</a>', '<a href=\'store.php?id=' . $value['shopid'] . '\' target=\'_blank\'>' . $value['shopname'] . '</a>', $value['typename'] . $_SGLOBAL['shopgrade'][$value['opcheck']], '<span title="' . $value['reason'] . '">' . $value['shortreason'] . '</span>', date('Y-m-d', $value['dateline'])));
}
showtablefooter();
echo $multipage;
showformfooter();
} else {
show_searchform_managelog();
}
示例11: exit
!defined('IN_DISCUZ') && exit('Access Denied');
!defined('IN_ADMINCP') && exit('Access Denied');
$setting = $_G['cache']['plugin']['k_gaiming'];
if (!submitcheck('submit')) {
$count = $start = 0;
$perpage = 20;
$page = max(1, intval($_GET['page']));
$start = ($page - 1) * $perpage;
$count = DB::result_first("SELECT count(*) FROM " . DB::table("plugin_k_gaiming_log"));
$query = DB::query("SELECT * FROM " . DB::table("plugin_k_gaiming_log") . " ORDER BY dateline DESC LIMIT " . $start . "," . $perpage);
$logs = '';
while ($log = DB::fetch($query)) {
$log['dateline'] = dgmdate($log['dateline'], 'u');
$log['username'] = getuserbyuid($log['uid']);
$logs .= showtablerow('', array('class="td25"', 'class="td29"', 'class="td28"', 'class="td29"'), array("<input class=\"checkbox\" type=\"checkbox\" name=\"delete[]\" value=\"" . $log['lid'] . "\">", "<a href=\"home.php?mod=space&uid=" . $log['uid'] . "\" target=\"_blank\">" . $log['username']['username'] . "</a> (UID: " . $log['uid'] . ")", "<font color=\"#2366A8\">" . $log['username']['username'] . "</font> " . lang('plugin/k_gaiming', 'logcp_1') . " <font color=\"#2366A8\">" . $log['dateline'] . "</font> " . lang('plugin/k_gaiming', 'logcp_2') . " <font color=\"#2366A8\">" . $log['oldname'] . "</font> " . lang('plugin/k_gaiming', 'logcp_3') . " <font color=\"#2366A8\">" . $log['newname'] . "</font>", $log['creditnum'] . " " . $_G['setting']['extcredits'][$log['creditunit']]['unit'] . $_G['setting']['extcredits'][$log['creditunit']]['title'], $log['dateline']), TRUE);
}
$multi = multi($count, $perpage, $page, ADMINSCRIPT . "?action=plugins&operation=config&do=" . $pluginid . "&identifier=k_gaiming&pmod=logcp");
showformheader("plugins&operation=config&identifier=k_gaiming&pmod=logcp&page=" . $page, "enctype");
showtableheader('');
showsubtitle(array('', lang('plugin/k_gaiming', 'logcp_6'), lang('plugin/k_gaiming', 'logcp_5'), lang('plugin/k_gaiming', 'logcp_4'), lang('plugin/k_gaiming', 'logcp_7')));
echo $logs;
showsubmit('submit', lang('plugin/k_gaiming', 'submit'), 'del', '', $multi);
showtablefooter();
showformfooter();
} else {
if (is_array($_GET['delete'])) {
$ids = dimplode($_GET['delete']);
DB::query("DELETE FROM " . DB::table('plugin_k_gaiming_log') . " WHERE lid IN ({$ids})");
}
cpmsg(lang('plugin/k_gaiming', 'success'), 'action=plugins&operation=config&identifier=k_gaiming&pmod=logcp&page=' . $page, 'succeed');
示例12: showformheader
[1,\'' . $exsel . '\', ""],
[1,\'<input type="text" class="txt" name="reward[]" size="7">\', ""],
]]
</script>';
showformheader('plugins&operation=config&identifier=dsu_amupper&pmod=admin');
showtips(lang("plugin/dsu_amupper", "admin2_p1"));
showtableheader(lang("plugin/dsu_amupper", "admin2_h1"));
showsubtitle(array(lang("plugin/dsu_amupper", "admin2_t0"), lang("plugin/dsu_amupper", "admin2_t1"), lang("plugin/dsu_amupper", "admin2_t4"), lang("plugin/dsu_amupper", "admin2_t2"), lang("plugin/dsu_amupper", "admin2_t3")));
$arr = DB::fetch_all("SELECT * FROM %t WHERE id>%d LIMIT %d", array('plugin_dsuamupperc', '-1', '100'), 'id');
if ($arr) {
$i = 0;
$data_f2a = dstripslashes($arr);
foreach ($data_f2a as $id => $result) {
$exsel = extc2seled($result['extcredits'], $_G['setting']['extcredits']);
$gidsel = usergroups2seled($result['usergid'], $usergroups);
showtablerow('', array(' ', ' ', ' ', ' '), array('<input type="checkbox" class="checkbox" name="delete[]" value="' . $i . '" />', '<INPUT TYPE="hidden" NAME="id[]" value="' . $result['id'] . '"><input type="text" class="txt" name="days[]" value="' . $result['days'] . '" size="7" />', '' . $gidsel . '', '' . $exsel . '', '<input type="text" class="txt" name="reward[]" value="' . $result['reward'] . '" size="7" />'));
$i++;
}
}
echo '<tr><td></td><td colspan="3"><div><a href="#addrow" name="addrow" onclick="addrow(this, 0)" class="addtr">' . lang("plugin/dsu_amupper", "admin2_s1") . '</a></div></td></tr>';
showsubmit('submit', lang("plugin/dsu_amupper", "admin2_s2"));
showtablefooter();
showformfooter();
} elseif ($_G['adminid'] == '1' && $_GET['formhash'] == FORMHASH) {
$mrcs = array();
$max_i = max(count($_GET['days']), count($_GET['usergid']), count($_GET['extcredits']), count($_GET['reward']));
for ($i = 0; $i < $max_i; $i++) {
if (intval($_GET['days'][$i]) && intval($_GET['extcredits'][$i]) && intval($_GET['usergid'][$i]) && intval($_GET['reward'][$i] * 100) && !in_array($i, $_GET['delete'])) {
$mrcs[$i]['days'] = intval($_GET['days'][$i]);
$mrcs[$i]['usergid'] = intval($_GET['usergid'][$i]);
$mrcs[$i]['extcredits'] = intval($_GET['extcredits'][$i]);
示例13: shownav
echo 'result = result.replace(/pageviews/g, \'<u>' . $lang['settings_credits_formula_pageviews'] . '</u>\');';
?>
$('creditsformulaexp').innerHTML = '<u><?php
echo $lang['settings_credits_formula_credits'];
?>
</u>=' + result;
}
</script>
<?php
shownav('tools', 'nav_creditwizard');
showsubmenu('nav_creditwizard', array(array('creditwizard_step_menu_1', 'creditwizard&step=1', $step == 1), array('creditwizard_step_menu_2', 'creditwizard&step=2', $step == 2), array('creditwizard_step_menu_3', 'creditwizard&step=3', $step == 3), array('creditwizard_step_menu_4', 'settings&operation=ec&from=creditwizard', 0), array('ec_alipay', 'ec&operation=alipay&from=creditwizard', 0)));
showtips('creditwizard_tips_formula');
showformheader('creditwizard&step=2');
showtableheader();
showtitle('settings_credits_formula');
showtablerow('', 'colspan="2"', '<div class="extcredits">' . $extcreditsbtn . '<br /><a href="###" onclick="insertunit(\'digestposts\')">' . $lang['settings_credits_formula_digestposts'] . '</a> <a href="###" onclick="insertunit(\'posts\')">' . $lang['settings_credits_formula_posts'] . '</a> <a href="###" onclick="insertunit(\'oltime\')">' . $lang['settings_credits_formula_oltime'] . '</a> <a href="###" onclick="insertunit(\'pageviews\')">' . $lang['settings_credits_formula_pageviews'] . '</a> <a href="###" onclick="insertunit(\'+\')"> + </a> <a href="###" onclick="insertunit(\'-\')"> - </a> <a href="###" onclick="insertunit(\'*\')"> * </a> <a href="###" onclick="insertunit(\'/\')"> / </a> <a href="###" onclick="insertunit(\'(\', \')\')"> ( ) </a></div><div id="creditsformulaexp" class="marginbot diffcolor2">' . $creditsformulaexp . '</div><textarea name="creditsformulanew" id="creditsformulanew" style="width: 80%" rows="3" onkeyup="formulaexp()">' . dhtmlspecialchars($creditsformula) . '</textarea>');
showsubmit('settingsubmit');
showtablefooter();
showformfooter();
} else {
if (!preg_match("/^([\\+\\-\\*\\/\\.\\d\\(\\)]|((extcredits[1-8]|digestposts|posts|pageviews|oltime)([\\+\\-\\*\\/\\(\\)]|\$)+))+\$/", $creditsformulanew) || !is_null(@eval(preg_replace("/(digestposts|posts|pageviews|oltime|extcredits[1-8])/", "\$\\1", $creditsformulanew) . ';'))) {
cpmsg('settings_creditsformula_invalid', '', 'error');
}
$creditsformulaexpnew = $creditsformulanew;
foreach (array('digestposts', 'posts', 'oltime', 'pageviews', 'extcredits1', 'extcredits2', 'extcredits3', 'extcredits4', 'extcredits5', 'extcredits6', 'extcredits7', 'extcredits8') as $var) {
if ($extcredits[$creditsid = preg_replace("/^extcredits(\\d{1})\$/", "\\1", $var)]['available']) {
$replacement = $extcredits[$creditsid]['title'];
} else {
$replacement = $lang['settings_credits_formula_' . $var];
}
$creditsformulaexpnew = str_replace($var, '<u>' . $replacement . '</u>', $creditsformulaexpnew);
示例14: isset
$var['type'] = $lang['plugins_edit_vars_type_' . $var['type']];
$var['title'] .= isset($lang[$var['title']]) ? '<br />' . $lang[$var['title']] : '';
showtablerow('', array('class="td25"', 'class="td28"'), array("<input class=\"checkbox\" type=\"checkbox\" name=\"delete[]\" value=\"{$var['pluginvarid']}\">", "<input type=\"text\" class=\"txt\" size=\"2\" name=\"displayordernew[{$var['pluginvarid']}]\" value=\"{$var['displayorder']}\">", $var['title'], $var['variable'], $var['type'], "<a href=\"" . ADMINSCRIPT . "?action=plugins&operation=vars&pluginid={$plugin['pluginid']}&pluginvarid={$var['pluginvarid']}\" class=\"act\">{$lang['detail']}</a>"));
}
showtablerow('', array('class="td25"', 'class="td28"'), array(cplang('add_new'), '<input type="text" class="txt" size="2" name="newdisplayorder" value="0">', '<input type="text" class="txt" size="15" name="newtitle">', '<input type="text" class="txt" size="15" name="newvariable">', '<select name="newtype">
<option value="number">' . cplang('plugins_edit_vars_type_number') . '</option>
<option value="text" selected>' . cplang('plugins_edit_vars_type_text') . '</option>
<option value="textarea">' . cplang('plugins_edit_vars_type_textarea') . '</option>
<option value="radio">' . cplang('plugins_edit_vars_type_radio') . '</option>
<option value="select">' . cplang('plugins_edit_vars_type_select') . '</option>
<option value="selects">' . cplang('plugins_edit_vars_type_selects') . '</option>
<option value="color">' . cplang('plugins_edit_vars_type_color') . '</option>
<option value="date">' . cplang('plugins_edit_vars_type_date') . '</option>
<option value="datetime">' . cplang('plugins_edit_vars_type_datetime') . '</option>
<option value="forum">' . cplang('plugins_edit_vars_type_forum') . '</option>
<option value="forums">' . cplang('plugins_edit_vars_type_forums') . '</option>
<option value="group">' . cplang('plugins_edit_vars_type_group') . '</option>
<option value="groups">' . cplang('plugins_edit_vars_type_groups') . '</option>
<option value="extcredit">' . cplang('plugins_edit_vars_type_extcredit') . '</option>
<option value="forum_text">' . cplang('plugins_edit_vars_type_forum_text') . '</option>
<option value="forum_textarea">' . cplang('plugins_edit_vars_type_forum_textarea') . '</option>
<option value="forum_radio">' . cplang('plugins_edit_vars_type_forum_radio') . '</option>
<option value="forum_select">' . cplang('plugins_edit_vars_type_forum_select') . '</option>
<option value="group_text">' . cplang('plugins_edit_vars_type_group_text') . '</option>
<option value="group_textarea">' . cplang('plugins_edit_vars_type_group_textarea') . '</option>
<option value="group_radio">' . cplang('plugins_edit_vars_type_group_radio') . '</option>
<option value="group_select">' . cplang('plugins_edit_vars_type_group_select') . '</option>
</seletc>', ''));
showsubmit('editsubmit', 'submit', 'del');
showtablefooter();
showformfooter();
showtagfooter('div');
示例15: showsendsms
function showsendsms()
{
global $lang;
global $Plang;
showtablerow('', array('class="th12"', ''), array($Plang['smstong_members_sendsms_message'], '<textarea name="message" cols="100" rows="10"></textarea>'));
showtablerow('', array('', 'class="td12"'), array('', '<ul><li><input type="hidden" value="sendsms" name="notifymembers" id="viapm" /><font color="red">' . $Plang['smstong_notice_count'] . '</font> <span class="diffcolor2">' . $lang['members_newsletter_num'] . ':</span><input type="text" class="txt" name="pertask" value="100" size="10" maxlength="3" onblur="if (isNaN(this.value*1)) {this.value = 100;} if (this.value*1>500) {this.value = 500;}"></li></ul>'));
showtablerow('', array('class="th12"', ''), array('', '<strong>' . $Plang['smstong_members_sendsms_notice2'] . '</strong>'));
}