本文整理汇总了PHP中tabheader函数的典型用法代码示例。如果您正苦于以下问题:PHP tabheader函数的具体用法?PHP tabheader怎么用?PHP tabheader使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了tabheader函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: m_sites
function m_sites($urlpre = '', $num = 5)
{
global $sid, $infloat, $handlekey;
$sidsarr = array(0 => lang('msite')) + sidsarr(1);
$i = 0;
tabheader(lang('selectsite'), '', '', $num);
foreach ($sidsarr as $k => $v) {
if (!($i % $num)) {
echo "<tr>";
}
echo "<td class=\"item2\" width=\"" . intval(100 / $num) . "%\">>>" . ($sid == $k ? "<b>{$v}</b>" : "<a href=\"{$urlpre}" . ($k ? "&sid={$k}" : '') . "\"" . ($infloat ? " onclick=\"floatwin('open_{$handlekey}',this)\"" : '') . ">{$v}</a>") . "</td>\n";
$i++;
if (!($i % $num)) {
echo "</tr>\n";
}
}
if ($i % $num) {
while ($i % $num) {
echo "<td class=\"item2\" width=\"" . intval(100 / $num) . "%\"></td>\n";
$i++;
}
echo "</tr>\n";
}
tabfooter();
}
开发者ID:polarlight1989,项目名称:08cms,代码行数:25,代码来源:adminm.fun.php
示例2: view_cucatalogurls
function view_cucatalogurls()
{
global $action;
tabheader(lang('co_class_manager'), '', '', 4);
echo "<tr class=\"txt\">\n";
echo "<td class=\"txtL w25B\">" . (in_str('rcatalog', $action) ? "<b>" . lang('reply_class_manager') . "</b>" : "<a href=\"?entry=cucatalogs&action=rcatalogsedit\">" . lang('reply_class_manager') . "</a>") . "</td>\n";
echo "<td class=\"txtL w25B\"></td>\n";
echo "<td class=\"txtL w25B\"></td>\n";
echo "<td class=\"txtL w25B\"></td>\n";
echo "</tr>\n";
tabfooter();
}
开发者ID:polarlight1989,项目名称:08cms,代码行数:12,代码来源:cucatalogs.inc.php
示例3: count
$itemstr .= "<td class=\"item\">{$enddatestr}</td>\n";
}
if (in_array('storage', $u_lists)) {
$itemstr .= "<td class=\"item\">{$storagestr}</td>\n";
}
$itemstr .= "<td class=\"item\">{$opricestr}</td>\n";
$itemstr .= "<td class=\"item\">{$adminstr}</td>\n";
$itemstr .= "</tr>\n";
}
$counts = $db->result_one("SELECT count(*) {$fromsql} {$wheresql}");
$multi = multi($counts, $mrowpp, $page, "?action=offers{$filterstr}");
echo $itemstr;
tabfooter();
echo $multi;
//操作区
tabheader(lang('operateitem'));
$s_arr = array();
if (empty($u_operates) || in_array('readd', $u_operates)) {
$s_arr['readd'] = lang('readd');
}
if (empty($u_operates) || in_array('delete', $u_operates)) {
$s_arr['delete'] = lang('delete');
}
if ($s_arr) {
$soperatestr = '';
foreach ($s_arr as $k => $v) {
$soperatestr .= "<input class=\"checkbox\" type=\"checkbox\" name=\"arcdeal[{$k}]\" value=\"1\">{$v} ";
}
trbasic(lang('choose_item'), '', $soperatestr, '');
}
if (empty($u_operates) || in_array('uclass', $u_operates)) {
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:offers.inc.php
示例4: exit
(!defined('M_COM') || !defined('M_ADMIN')) && exit('No Permission');
if (empty($commu['uconfig'])) {
if ($action == 'commudetail') {
if (empty($submitmode)) {
trbasic(lang('operate_permi_set'), 'communew[setting][apmid]', makeoption(pmidsarr('cuadd'), empty($commu['setting']['apmid']) ? 0 : $commu['setting']['apmid']), 'select');
trbasic(lang('nouservote'), 'communew[setting][nouservote]', isset($commu['setting']['nouservote']) ? $commu['setting']['nouservote'] : 0, 'radio');
trbasic(lang('repeatvote'), 'communew[setting][repeatvote]', isset($commu['setting']['repeatvote']) ? $commu['setting']['repeatvote'] : 0, 'radio');
trbasic(lang('answer_minlength'), 'communew[setting][minlength]', isset($commu['setting']['minlength']) ? $commu['setting']['minlength'] : 0);
trbasic(lang('answer_maxlength'), 'communew[setting][maxlength]', isset($commu['setting']['maxlength']) ? $commu['setting']['maxlength'] : 0);
trbasic(lang('item_ava_days'), 'communew[setting][vdays]', isset($commu['setting']['vdays']) ? $commu['setting']['vdays'] : 0);
trbasic(lang('reward_currency_type'), 'communew[setting][crid]', makeoption(cridsarr(), isset($commu['setting']['crid']) ? $commu['setting']['crid'] : 0), 'select');
trbasic(lang('allow_reward_mini_cu'), 'communew[setting][mini]', isset($commu['setting']['mini']) ? $commu['setting']['mini'] : 0);
trbasic(lang('allow_reward_max_cu'), 'communew[setting][max]', isset($commu['setting']['max']) ? $commu['setting']['max'] : 0);
trbasic(lang('credit_val_reward_cu'), 'communew[setting][credit]', isset($commu['setting']['credit']) ? $commu['setting']['credit'] : 0);
tabfooter();
tabheader(lang('advsetting') . " <input class=\"checkbox\" type=\"checkbox\" name=\"viewdetail2\" value=\"1\" onclick=\"alterview('advsetting')\">" . lang('view'));
echo "<tbody id=\"advsetting\" style=\"display: none;\">";
trbasic(lang('custom_ucadd'), 'communew[ucadd]', empty($commu['ucadd']) ? '' : $commu['ucadd'], 'text', lang('agmucustom'));
trbasic(lang('custom_ucvote'), 'communew[ucvote]', empty($commu['ucvote']) ? '' : $commu['ucvote'], 'text', lang('agmucustom'));
trbasic(lang('custom_uadetail'), 'communew[uadetail]', empty($commu['uadetail']) ? '' : $commu['uadetail'], 'text', lang('agmucustom'));
trbasic(lang('custom_umdetail'), 'communew[umdetail]', empty($commu['umdetail']) ? '' : $commu['umdetail'], 'text', lang('agmucustom'));
trbasic(lang('customsetting'), 'communew[usetting]', empty($commu['usetting']) ? '' : $commu['usetting'], 'btextarea', lang('agcustomsetting'));
echo "</tbody>";
} else {
if (empty($communew['setting']['crid'])) {
amessage('choose_reward_cutype', axaction(2, M_REFERER));
}
$communew['setting']['minlength'] = max(0, intval($communew['setting']['minlength']));
$communew['setting']['maxlength'] = max(0, intval($communew['setting']['maxlength']));
$communew['setting']['vdays'] = max(0, intval($communew['setting']['vdays']));
$communew['setting']['mini'] = max(0, intval($communew['setting']['mini']));
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:answer.php
示例5: check_submit_func
check_submit_func($submitstr);
a_guide('memberdetail');
} else {
foreach ($grouptypes as $gtid => $grouptype) {
if ($grouptype['mode'] < 2 && !in_array($mchid, explode(',', $grouptype['mchids'])) && ($gtid != 2 || $backamember)) {
$minfosnew['grouptype' . $gtid . 'date'] = !$minfosnew['grouptype' . $gtid] || !isdate($minfosnew['grouptype' . $gtid . 'date']) ? '0' : strtotime($minfosnew['grouptype' . $gtid . 'date']);
$actuser->handgrouptype($gtid, $minfosnew['grouptype' . $gtid], $minfosnew['grouptype' . $gtid . 'date']);
}
}
$actuser->updatedb();
adminlog(lang('detail_edit_member'));
amessage('membermodifyfinish', M_REFERER);
}
} elseif ($action == 'allowance' && $mid) {
if (!submitcheck('bmemberdetail')) {
$a_field = new cls_field();
$submitstr = '';
tabheader(lang('issue_allowance_manager') . ' : [' . $mchannel['cname'] . ']' . $actuser->info['mname'], 'memberdetail', "?entry=member&action=allowance&mid={$mid}", 2, 1, 1);
trbasic(lang('aw_arc_issue_limit'), 'minfosnew[arcallowance]', $actuser->info['arcallowance']);
trbasic(lang('aw_commu_issue_limit'), 'minfosnew[cuallowance]', $actuser->info['cuallowance']);
tabfooter('bmemberdetail');
check_submit_func($submitstr);
a_guide('memberdetail');
} else {
$actuser->updatefield('arcallowance', empty($minfosnew['arcallowance']) ? 0 : max(0, intval($minfosnew['arcallowance'])), 'main');
$actuser->updatefield('cuallowance', empty($minfosnew['cuallowance']) ? 0 : max(0, intval($minfosnew['cuallowance'])), 'main');
$actuser->updatedb();
adminlog(lang('detail_edit_member'));
amessage('membermodifyfinish', M_REFERER);
}
}
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:member.inc.php
示例6: exit
<?php
!defined('M_COM') && exit('No Permission');
if (!submitcheck('bmemberpwd')) {
tabheader(lang('memberpwdsetting'), 'memberpwd', '?action=memberpwd', 2, 0, 1);
trbasic(lang('membercname'), '', $curuser->info['mname'], '');
trbasic(lang('oldpwd'), 'opassword', '', 'password');
trbasic(lang('newpwd'), 'npassword', '', 'password');
trbasic(lang('repwd'), 'npassword2', '', 'password');
$submitstr = '';
$submitstr .= makesubmitstr('opassword', 1, 0, 0, 15);
$submitstr .= makesubmitstr('npassword', 1, 0, 0, 15);
$submitstr .= makesubmitstr('npassword2', 1, 0, 0, 15);
$submitstr .= tr_regcode('login');
tabfooter('bmemberpwd');
check_submit_func($submitstr);
} else {
if (!regcode_pass('login', empty($regcode) ? '' : trim($regcode))) {
mcmessage('regcodeerror', '?action=memberpwd');
}
$opassword = trim($opassword);
$npassword = trim($npassword);
$npassword2 = trim($npassword2);
if (md5(md5($opassword)) != $curuser->info['password']) {
mcmessage('oldpasserror', '?action=memberpwd');
}
if ($npassword != $npassword2) {
mcmessage('notsamepwd', '?action=memberpwd');
}
if (!$npassword || strlen($npassword) > 15 || $npassword != addslashes($npassword)) {
mcmessage('memberpwdillegal', '?action=memberpwd');
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:memberpwd.inc.php
示例7: exit
<?php
(!defined('M_COM') || !defined('M_ADMIN')) && exit('No Permission');
if (!submitcheck('bmtagadd') && !submitcheck('bmtagsdetail') && !submitcheck('bmtagcode')) {
templatebox(lang('tagtemplate'), 'mtagnew[template]', empty($mtag['template']) ? '' : $mtag['template'], 10, 110);
trbasic(lang('arr_pre'), 'mtagnew[setting][val]', empty($mtag['setting']['val']) ? 'v' : $mtag['setting']['val'], 'text', lang('agarr_pre'));
trbasic(lang('list_result'), 'mtagnew[setting][limits]', empty($mtag['setting']['limits']) ? 10 : $mtag['setting']['limits']);
tabfooter();
tabheader(lang('filter0_set'));
$matidsarr = array();
foreach ($matypes as $k => $v) {
$matidsarr[$k] = $v['cname'];
$imatid = $k;
}
trbasic(lang('pointmatype'), 'mtagnew[setting][matid]', makeoption($matidsarr, empty($mtag['setting']['matid']) ? '0' : $mtag['setting']['matid']), 'select');
$orderbyarr = array('' => lang('nosetting'), 'createdate_desc' => lang('createdate_desc'), 'createdate_asc' => lang('createdate_asc'), 'refreshdate_desc' => lang('refreshdate_desc'));
trbasic(lang('order'), 'mtagnew[setting][orderby]', makeoption($orderbyarr, empty($mtag['setting']['orderby']) ? '' : $mtag['setting']['orderby']), 'select');
$createurl = " >><a href=\"?entry=liststr&tclass=marchives_{$imatid}\" target=\"_blank\">" . lang('create_str') . "</a>";
trbasic(lang('order_str') . $createurl, 'mtagnew[setting][orderstr]', empty($mtag['setting']['orderstr']) ? '' : stripslashes($mtag['setting']['orderstr']), 'textarea');
trbasic(lang('startno'), 'mtagnew[setting][startno]', empty($mtag['setting']['startno']) ? '' : $mtag['setting']['startno'], 'text', lang('agstartno'));
$isfuncstr = "<br><input class=\"checkbox\" type=\"checkbox\" id=\"mtagnew[setting][isfunc]\" name=\"mtagnew[setting][isfunc]\"" . (empty($mtag['setting']['isfunc']) ? '' : ' checked') . ">" . lang('fromfunc');
trbasic(lang('filter_sql_str') . $createurl . $isfuncstr, 'mtagnew[setting][wherestr]', empty($mtag['setting']['wherestr']) ? '' : $mtag['setting']['wherestr'], 'textarea');
trbasic(lang('tagjspick'), 'mtagnew[setting][js]', empty($mtag['setting']['js']) ? 0 : $mtag['setting']['js'], 'radio');
tabfooter();
} else {
if (empty($mtagnew['template'])) {
if (!submitcheck('bmtagcode')) {
amessage('input_tag_tpl', M_REFERER);
} else {
$errormsg = lang('input_tag_tpl');
}
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:marchives.php
示例8: exit
<?php
(!defined('M_COM') || !defined('M_ADMIN')) && exit('No Permission');
if (!submitcheck('bmtagadd') && !submitcheck('bmtagsdetail') && !submitcheck('bmtagcode')) {
templatebox(lang('tagtemplate'), 'mtagnew[template]', empty($mtag['template']) ? '' : $mtag['template'], 10, 110);
trbasic(lang('arr_pre'), 'mtagnew[setting][val]', empty($mtag['setting']['val']) ? 'v' : $mtag['setting']['val'], 'text', lang('agarr_pre'));
trbasic(lang('list_result'), 'mtagnew[setting][limits]', empty($mtag['setting']['limits']) ? '10' : $mtag['setting']['limits']);
trbasic(lang('tagjspick'), 'mtagnew[setting][js]', empty($mtag['setting']['js']) ? 0 : $mtag['setting']['js'], 'radio');
tabfooter();
tabheader(lang('setting_list_item'));
$sourcearr = array('0' => lang('all_space0_catalog'), '1' => lang('handpoint'));
sourcemodule(lang('space0catalog') . " <input class=\"radio\" type=\"radio\" name=\"mtagnew[setting][listby]\" value=\"ca\"" . (empty($mtag['setting']['listby']) || $mtag['setting']['listby'] == 'ca' ? " checked" : "") . ">" . lang('list_item'), 'mtagnew[setting][casource]', $sourcearr, empty($mtag['setting']['casource']) ? '0' : $mtag['setting']['casource'], '1', 'mtagnew[setting][caids][]', mcaidsarr(), !empty($mtag['setting']['caids']) ? explode(',', $mtag['setting']['caids']) : array());
$sourcearr = array('0' => lang('catalog_all_coclass'));
trbasic(lang('uclass') . " <input class=\"radio\" type=\"radio\" name=\"mtagnew[setting][listby]\" value=\"uc\"" . (!empty($mtag['setting']['listby']) && $mtag['setting']['listby'] == 'uc' ? " checked" : "") . ">" . lang('list_item'), 'mtagnew[setting][ucsource]', makeoption($sourcearr, isset($mtag['setting']['ucsource']) ? $mtag['setting']['ucsource'] : '0'), 'select');
tabfooter();
} else {
if (empty($mtagnew['template'])) {
if (!submitcheck('bmtagcode')) {
amessage('input_tag_tpl', M_REFERER);
} else {
$errormsg = lang('input_tag_tpl');
}
//生成代码出错的提示信息
}
$mtagnew['setting']['limits'] = empty($mtagnew['setting']['limits']) ? 10 : max(0, intval($mtagnew['setting']['limits']));
//数组参数的处理
$idvars = array('caids');
foreach ($idvars as $k) {
if (empty($mtagnew['setting'][$k])) {
unset($mtagnew['setting'][$k]);
} else {
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:mcatalogs.php
示例9: strtolower
$cmsgnew['ename'] = strtolower(trim(strip_tags($cmsgnew['ename'])));
if (in_array($cmsgnew['ename'], array_keys($cmsgs))) {
amessage('enamerepeat', '?entry=cmsgs&action=cmsgsedit');
}
$cmsgnew['content'] = trim($cmsgnew['content']);
$db->query("INSERT INTO {$tblprefix}cmsgs SET \n\t\t\t\t\tename='{$cmsgnew['ename']}', \n\t\t\t\t\tcontent='{$cmsgnew['content']}',\n\t\t\t\t\tcreatedate='{$timestamp}'\n\t\t\t\t\t");
adminlog(lang('add_cmsg'));
updatecache('cmsgs');
amessage('cmsgaddfinish', "?entry=cmsgs&action=cmsgsedit");
}
} elseif ($action == 'cmsgdetail' && $ename) {
if (!($cmsg = $db->fetch_one("SELECT * FROM {$tblprefix}cmsgs WHERE ename='{$ename}'"))) {
amessage('confirmchoosecmsg');
}
if (!submitcheck('bcmsgdetail')) {
tabheader(lang('edit_cmsg'), 'cmsgdetail', "?entry=cmsgs&action=cmsgdetail&ename={$ename}");
trbasic(lang('cmsg_ename'), '', $cmsg['ename'], '');
trbasic(lang('cmsg_content'), 'cmsgnew[content]', $cmsg['content'], 'textarea');
//trbasic(lang('cmsg_jump_url'),'cmsgnew[jump]',$cmsg['jump'],'btext');
//trbasic(lang('cmsg_view_url'),'cmsgnew[urls]',$cmsg['urls'],'textarea');
tabfooter('bcmsgdetail');
a_guide('cmsgdetail');
} else {
$cmsgnew['content'] = trim($cmsgnew['content']);
$sql = $cmsgnew['content'] != $cmsg['content'] ? ",createdate='{$timestamp}'" : '';
$db->query("UPDATE {$tblprefix}cmsgs SET \n\t\t\t\t\tcontent='{$cmsgnew['content']}'\n\t\t\t\t\t{$sql}\n\t\t\t\t\tWHERE ename='{$ename}'");
adminlog(lang('edit_cmsg_detail'));
updatecache('cmsgs');
amessage('cmsgmodifyfinish', "?entry=cmsgs&action=cmsgsedit");
}
}
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:cmsgs.inc.php
示例10: exit
!defined('M_COM') && exit('No Permission');
$aid = empty($aid) ? 0 : max(0, intval($aid));
//关于文档的个人分类
$uclasses = loaduclasses($curuser->info['mid']);
$ucidsarr = array();
foreach ($uclasses as $k => $v) {
if (!$v['cuid']) {
$ucidsarr[$k] = $v['title'];
}
}
$aedit = new cls_arcedit();
$aedit->set_aid($aid);
$aedit->detail_data();
$chid = $aedit->archive['chid'];
tabheader(lang('basemessage'));
trbasic(lang('archivetitle'), '', $aedit->archive['subject'], '');
trbasic(lang('membercname'), '', $aedit->archive['mname'], '');
trbasic(lang('addtime'), '', date("Y-m-d H:i:s", $aedit->archive['createdate']), '');
trbasic(lang('updatetime'), '', date("Y-m-d H:i:s", $aedit->archive['updatedate']), '');
trbasic(lang('retime'), '', date("Y-m-d H:i:s", $aedit->archive['refreshdate']), '');
trbasic(lang('endtime'), '', $aedit->archive['enddate'] ? date("Y-m-d H:i:s", $aedit->archive['enddate']) : '-', '');
trbasic(lang('checkstate'), '', ($aedit->archive['checked'] ? lang('check') : lang('uncheck')) . ' / ' . ($aedit->archive['editor'] ? $aedit->archive['editor'] : '-'), '');
trbasic(lang('clickcomment'), '', $aedit->archive['clicks'] . ' / ' . $aedit->archive['comments'], '');
tabfooter();
tabheader(lang('othermessage'));
trbasic(lang('channel'), '', $aedit->archive['chid'] ? $channels[$aedit->archive['chid']]['cname'] : '-', '');
//trbasic(lang('browse archive deductvalue'),'',empty($aedit->archive['tax_price']) ? '-' : $aedit->archive['tax_price'],'');
//trbasic(lang('browse archive saleprice'),'',empty($aedit->archive['sale_price']) ? '-' : $aedit->archive['sale_price'],'');
//trbasic(lang('attachment deductvalue').'/'.lang('piece'),'',empty($aedit->archive['f_tax_price']) ? '-' : $aedit->archive['f_tax_price'],'');
//trbasic(lang('attachment saleprice').'/'.lang('piece'),'',empty($aedit->archive['f_sale_price']) ? '-' : $aedit->archive['f_sale_price'],'');
tabfooter();
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:arcview.inc.php
示例11: mcmessage
if ($amode) {
if ($uedit->info['mid'] != $memberid) {
mcmessage('yntrap');
}
} else {
if ($uedit->info['fromid'] != $memberid) {
mcmessage('yntrap');
}
}
foreach (array('mcommu', 'fields') as $var) {
${$var} =& $uedit->{$var};
}
$oldrow =& $uedit->info;
$freeupdate = $curuser->check_allow('freeupdatecheck') || !$oldrow['checked'] || $amode;
if (!submitcheck('newcommu')) {
tabheader($mcommu['cname'] . ' ' . "<a href=\"{$mspaceurl}index.php?mid=" . $oldrow[$amode ? 'fromid' : 'mid'] . "\" target=\"_blank\">>> " . $oldrow[$amode ? 'fromname' : 'mname'] . "</a>", 'commudetail', "?action=mreply&amode={$amode}&cid={$cid}", 2, 1, 1);
$submitstr = '';
$a_field = new cls_field();
foreach ($fields as $k => $v) {
if (empty($u_lists) || in_array($k, $u_lists)) {
if (!$v['isfunc']) {
$a_field->init();
$a_field->field = $v;
$a_field->oldvalue = $oldrow[$k];
$noedit = noedit($k, !$amode && $v['isadmin'] || !$curuser->pmbypmids('field', $v['pmid']));
$a_field->trfield('communew', $noedit, '', 'mr');
!$noedit && ($submitstr .= $a_field->submitstr);
}
}
}
unset($a_field);
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:mreply.inc.php
示例12: min
$fromid = min($selectid);
$transtr = '';
$transtr .= "&select_all=1";
$transtr .= "&pages={$pages}";
$transtr .= "&npage={$npage}";
$transtr .= "&barcsedit=1";
$transtr .= "&fromid={$fromid}";
amessage('operating', "?entry={$entry}&action={$action}&page={$page}{$filterstr}{$transtr}{$parastr}&dealstr={$dealstr}", $pages, $npage, "<a href=\"?entry={$entry}&action={$action}&page={$page}{$filterstr}\">", '</a>');
}
}
adminlog(lang('member_admin'), lang('member_list_admin'));
amessage('memberoperatefinish', "?entry={$entry}&action={$action}&page={$page}{$filterstr}");
}
} elseif ($action == 'mreportsdetail' && !empty($cid)) {
($result = $db->fetch_one("SELECT * FROM {$tblprefix}mreports WHERE cid='{$cid}' LIMIT 0,1")) || amessage('selectoperateitem');
load_cache('mbfields');
tabheader(lang('memberreport') . ' - ' . $result['mname']);
include_once M_ROOT . "./include/fields.cls.php";
$a_field = new cls_field();
foreach ($mbfields as $k => $v) {
if (!$v['isadmin'] && !$v['isfunc']) {
// trbasic($v['cname'],'',$result[$k],'');
$a_field->init();
$a_field->field = $v;
$a_field->oldvalue = $result[$k];
$a_field->trfield('', '', 'mb');
}
}
unset($a_field);
tabfooter();
}
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:mreports.inc.php
示例13: mcmessage
if (!$curuser->allow_arcadd($chid, $pre_cns)) {
mcmessage('noissuepermission', '', lang('cn_pointed'));
}
if (!empty($pre_cns['caid'])) {
$nsid = $acatalogs[$pre_cns['caid']]['sid'];
}
if ($pid) {
$nsid = $p_album['sid'];
}
if ($nsid == -1) {
$catalogs =& $acatalogs;
} else {
load_cache('catalogs', $nsid);
}
$submitstr = '';
tabheader($channel['cname'] . ' - ' . lang('add_archive'), 'archiveadd', "?chid={$chid}{$forwardstr}", 2, 1, 1, 1);
if ($pid) {
//指定合辑内添加文档的信息提示
trhidden('archiveadd[pid]', $pid);
trbasic(lang('belong_album'), '', $p_channel['cname'] . " - <a href=\"" . view_arcurl($p_album) . "\" target=\"_blank\">" . mhtmlspecialchars($p_album['subject']) . "</a>", '');
$volids = volidsarr($pid);
$volids && trbasic(lang('set_volid'), 'archiveadd[volid]', makeoption(array('0' => lang('nosetting')) + $volids), 'select');
}
//栏目定义
if (empty($pre_cns['caid'])) {
tr_cns('*' . lang('be_catalog'), 'archiveadd[caid]', 0, $nsid, 0, $chid, lang('p_choose'));
} else {
trbasic('*' . lang('be_catalog'), '', @$acatalogs[$pre_cns['caid']]['title'], '');
trhidden('archiveadd[caid]', $pre_cns['caid']);
}
$submitstr .= makesubmitstr('archiveadd[caid]', 1, 0, 0, 0, 'common');
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:archiveadd.php
示例14: amessage
amessage('choosereport');
}
$commu = read_cache('commu', $report['cuid']);
//$fieldsarr = empty($commu['setting']['fields']) ? array() : explode(',',$commu['setting']['fields']);
$citems = empty($commu['setting']['citems']) ? array() : explode(',', $commu['setting']['citems']);
$aedit = new cls_arcedit();
$aedit->set_aid($report['aid']);
$aedit->detail_data();
if (!submitcheck('newcommu')) {
tabheader($commu['cname'] . ' - ' . lang('based_msg'), 'commudetail', "?entry=reports&action=reportdetail&cid={$cid}{$param_suffix}{$forwardstr}", 2, 1, 1);
$archive = $db->fetch_one("SELECT * FROM {$tblprefix}archives WHERE aid='{$report['aid']}'");
trbasic(lang('lookrelatedsource'), '', "<a href=\"" . view_arcurl($aedit->archive) . "\" target=\"_blank\">>> " . $aedit->archive['subject'] . "</a>", '');
trbasic(lang('add_time'), '', date('Y-m-d H:i', $report['createdate']), '');
tabfooter();
$a_field = new cls_field();
tabheader($commu['cname'] . ' - ' . lang('submitmessage'));
$submitstr = '';
foreach ($ucotypes as $k => $v) {
if (in_array('uccid' . $k, $citems) && $v['umode'] != 1) {
trbasic($v['cname'], '', mu_cnselect("communew[uccid{$k}]", $report["uccid{$k}"], $k, lang('p_choose'), $v['emode'], "communew[uccid{$k}date]", @$report["uccid{$k}date"] ? date('Y-m-d', $report["uccid{$k}date"]) : ''), '');
$submitstr .= makesubmitstr("communew[uccid{$k}]", $v['notblank'], 0, 0, 0, 'common');
$v['emode'] == 2 && ($submitstr .= makesubmitstr("communew[uccid{$k}date]", 1, 0, 0, 0, 'date'));
}
}
$a_field = new cls_field();
foreach ($bfields as $k => $v) {
if (!$v['isfunc'] && in_array($k, $citems)) {
$a_field->init();
$a_field->field = $v;
$a_field->oldvalue = isset($report[$k]) ? $report[$k] : '';
$a_field->trfield('communew', '', 'b');
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:reports.inc.php
示例15: form_str
$wheresql = "WHERE " . (empty($no_list) ? $wheresql : '1=0');
if (!submitcheck('barcsedit')) {
if (empty($u_tplname)) {
echo form_str($actionid . 'arcsedit', "?entry=inarchive&action=reports&aid={$aid}&page={$page}{$param_suffix}");
//搜索区块
tabheader_e();
echo "<tr><td colspan=\"2\" class=\"txt txtleft\">";
//关键词固定显示
echo lang('keyword') . " <input class=\"text\" name=\"keyword\" type=\"text\" value=\"{$keyword}\" size=\"8\" style=\"vertical-align: middle;\"> ";
echo "<input class=\"btn\" type=\"submit\" name=\"bfilter\" id=\"bfilter\" value=\"" . lang('filter0') . "\">";
echo "</td></tr>";
//某些固定页面参数
trhidden('niuid', $niuid);
tabfooter();
//列表区
tabheader($aedit->archive['subject'] . ' ' . lang('report_list'), '', '', 9);
$cy_arr = array("<input class=\"checkbox\" type=\"checkbox\" name=\"chkall\" onclick=\"checkall(this.form, 'selectid', 'chkall')\">", lang('title'));
if (in_array('mname', $u_lists)) {
$cy_arr[] = lang('member');
}
if (in_array('adddate', $u_lists)) {
$cy_arr[] = lang('add_date');
}
if (in_array('edit', $u_lists)) {
$cy_arr[] = lang('edit');
}
trcategory($cy_arr);
$pagetmp = $page;
do {
$query = $db->query("SELECT cu.*,cu.createdate AS ucreatedate,a.sid,a.createdate,a.caid,a.chid,a.customurl,a.subject AS asubject {$fromsql} {$wheresql} ORDER BY cu.cid DESC LIMIT " . ($pagetmp - 1) * $atpp . ",{$atpp}");
$pagetmp--;
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:inarchive.inc.php
示例16: tabfooter
tabfooter();
$pagetmp = $page;
do {
$query = $db->query("SELECT s.*,a.* FROM {$tblprefix}subscribes s LEFT JOIN {$tblprefix}archives a ON a.aid=s.aid {$wheresql} ORDER BY s.id DESC LIMIT " . ($pagetmp - 1) * $mrowpp . ",{$mrowpp}");
$pagetmp--;
} while (!$db->num_rows($query) && $pagetmp);
$itemstr = '';
while ($item = $db->fetch_array($query)) {
$id = $item['id'];
$item['arcurl'] = view_arcurl($item);
$item['createdate'] = date("{$dateformat}", $item['createdate']);
$itemstr .= "<tr><td class=\"item\" width=\"40\"><input class=\"checkbox\" type=\"checkbox\" name=\"selectid[{$id}]\" value=\"{$id}\"></td>\n" . "<td class=\"item2\"><a href=\"{$item['arcurl']}\" target=\"_blank\">" . mhtmlspecialchars($item['subject']) . "</a></td>\n" . "<td class=\"item\" width=\"80\">" . $catalogs[$item['caid']]['title'] . "</td>\n" . "<td class=\"item\" width=\"80\">" . ($item['isatm'] ? 'Y' : '-') . "</td>\n" . "<td class=\"item\" width=\"80\">{$item['cridstr']}</td>\n" . "<td class=\"item\" width=\"70\">{$item['createdate']}</td></tr>\n";
}
$itemcount = $db->result_one("SELECT COUNT(*) FROM {$tblprefix}subscribes s LEFT JOIN {$tblprefix}archives a ON a.aid=s.aid {$wheresql}");
$multi = multi($itemcount, $mrowpp, $page, "?action=subscribes{$filterstr}");
tabheader(lang('subscribelist') . " <input class=\"checkbox\" type=\"checkbox\" name=\"select_all\" value=\"1\"> " . lang('selectallpage'), '', '', 8);
trcategory(array("<input class=\"checkbox\" type=\"checkbox\" name=\"chkall\" onclick=\"checkall(this.form, 'selectid', 'chkall')\">", lang('title'), lang('catalog'), lang('attachment'), lang('currency'), lang('purchasedate')));
echo $itemstr;
tabfooter();
echo $multi;
echo "<input class=\"button\" type=\"submit\" name=\"barcsedit\" value=\"" . lang('del') . "\"></form>";
} else {
if (empty($selectid) && empty($select_all)) {
mcmessage('subscribecontent', $forward);
}
if (!empty($select_all)) {
$selectid = array();
$npage = empty($npage) ? 1 : $npage;
if (empty($pages)) {
$itemcount = $db->result_one("SELECT COUNT(*) FROM {$tblprefix}subscribes s LEFT JOIN {$tblprefix}archives a ON a.aid=s.aid {$wheresql}");
$pages = @ceil($itemcount / $mrowpp);
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:subscribes.inc.php
示例17: message
message('younoflinkpermis');
}
$fieldsarr = empty($mcommu['setting']['fields']) ? array() : explode(',', $mcommu['setting']['fields']);
if (!submitcheck('newcommu')) {
if (!empty($mcommu['setting']['norepeat']) && ($cid = $db->result_one("SELECT cid FROM {$tblprefix}mflinks WHERE mid='{$mid}' AND fromid='{$memberid}' ORDER BY cid"))) {
message('dorepeataddflink');
}
if (empty($mcommu['addtpl']) || !($template = load_tpl($mcommu['addtpl']))) {
load_cache('mlangs,mlfields');
include_once M_ROOT . "./include/fields.cls.php";
include_once M_ROOT . "./include/cheader.inc.php";
_header();
if (!($oldmsg = $db->fetch_one("SELECT * FROM {$tblprefix}mflinks WHERE fromid='{$memberid}' ORDER BY cid DESC LIMIT 0,1"))) {
$oldmsg = array();
}
tabheader(lang('add') . $mcommu['cname'], 'flinkadd', "?mid={$mid}{$forwardstr}", 2, 1, 1);
$submitstr = '';
$a_field = new cls_field();
foreach ($mlfields as $k => $v) {
if (!$v['isadmin'] && !$v['isfunc'] && in_array($k, $fieldsarr)) {
$a_field->init();
$a_field->field = $v;
if (isset($oldmsg[$k])) {
$a_field->oldvalue = $oldmsg[$k];
} else {
$a_field->isadd = 1;
}
$a_field->trfield('communew', '', 'ml');
$submitstr .= $a_field->submitstr;
}
}
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:flink.php
示例18: trbasic
trbasic(lang('mail_smtp'), 'mconfigsnew[mail_smtp]', $mconfigs['mail_smtp']);
trbasic(lang('mail_port'), 'mconfigsnew[mail_port]', $mconfigs['mail_port']);
echo "</tbody>";
echo "<tbody id=\"mail_mod2\" style=\"display:" . ($mconfigs['mail_mode'] == 2 ? '' : 'none') . "\">";
trbasic(lang('mail_auth'), 'mconfigsnew[mail_auth]', $mconfigs['mail_auth'], 'radio');
trbasic(lang('mail_from'), 'mconfigsnew[mail_from]', $mconfigs['mail_from']);
trbasic(lang('mail_user'), 'mconfigsnew[mail_user]', $mconfigs['mail_user']);
trbasic(lang('mail_pwd'), 'mconfigsnew[mail_pwd]', $mconfigs['mail_pwd'], 'password');
echo "</tbody>";
trbasic(lang('mail_delimiter'), 'mconfigsnew[mail_delimiter]', makeoption($delimiterarr, $mconfigs['mail_delimiter']), 'select');
trbasic(lang('mail_silent'), 'mconfigsnew[mail_silent]', $mconfigs['mail_silent'], 'radio');
trbasic(lang('mail_to'), 'mconfigsnew[mail_to]');
trbasic(lang('mail_sign'), 'mconfigsnew[mail_sign]');
tabfooter();
echo "<input class=\"button\" type=\"submit\" name=\"bmconfigs\" value=\"" . lang('submit') . "\"> " . "<input class=\"button\" type=\"button\" name=\"mailcheck\" value=\"" . lang('mailtest') . "\" onclick=\"var url=this.form.action;this.form.action='?entry=checks&action=mailcheck';this.form.target='mailcheckiframe';this.form.submit();this.form.action=url;this.form.target='_self'\"><iframe name=\"mailcheckiframe\" style=\"display: none\"></iframe>" . "</form>";
tabheader(lang('mobileset'), 'cfmobile', '?entry=mconfigs&action=cfmobmail');
echo "<tr class=\"txt\"><td class=\"txt txtright fB borderright\">" . lang('msgcodemode') . "</td>\n" . "<td class=\"txtL\">\n" . "<input class=\"radio\" type=\"radio\" id=\"msgcode_mode2\" name=\"mconfigsnew[msgcode_mode]\" value=\"2\" onclick=\"\$id('msgcode1').style.display = 'none';\$id('msgcode2').style.display = '';\"" . (@$mconfigs['msgcode_mode'] == 2 ? ' checked="checked"' : '') . "><label for=\"msgcode_mode2\">" . lang('msgcode2') . "</label> " . "<input class=\"radio\" type=\"radio\" id=\"msgcode_mode1\" name=\"mconfigsnew[msgcode_mode]\" value=\"1\" onclick=\"\$id('msgcode1').style.display = '';\$id('msgcode2').style.display = 'none';\"" . (@$mconfigs['msgcode_mode'] == 1 ? ' checked="checked"' : '') . "><label for=\"msgcode_mode1\">" . lang('msgcode1') . "</label> " . "<input class=\"radio\" type=\"radio\" id=\"msgcode_mode0\" name=\"mconfigsnew[msgcode_mode]\" value=\"0\" onclick=\"\$id('msgcode1').style.display = 'none';\$id('msgcode2').style.display = 'none';\"" . (@(!$mconfigs['msgcode_mode']) ? ' checked="checked"' : '') . "><label for=\"msgcode_mode0\">" . lang('msgcode0') . "</label> " . "</td></tr>\n";
echo "<tbody id=\"msgcode2\" style=\"display:" . (@$mconfigs['msgcode_mode'] == 2 ? '' : 'none') . "\">";
trbasic(lang('msggate'), '', '<input class="radio" type="radio" id="msgcode_gate1" name="mconfigsnew[msgcode_gate]" value="1"' . (@$mconfigs['msgcode_gate'] == 1 ? ' checked="checked"' : '') . "><label for=\"msgcode_gate1\">" . lang('msggate1') . "</label>", '');
trbasic(lang('msgcode_sp1'), 'mconfigsnew[msgcode_sp1]', @$mconfigs['msgcode_sp1']);
trbasic(lang('msgcode_pw1'), 'mconfigsnew[msgcode_pw1]', @$mconfigs['msgcode_pw1']);
trbasic(lang('msggate'), '', '<input class="radio" type="radio" id="msgcode_gate2" name="mconfigsnew[msgcode_gate]" value="2"' . (@$mconfigs['msgcode_gate'] != 1 ? ' checked="checked"' : '') . "><label for=\"msgcode_gate2\">" . lang('msggate2') . "</label>", '');
trbasic(lang('msgcode_sp2'), 'mconfigsnew[msgcode_sp2]', @$mconfigs['msgcode_sp2']);
trbasic(lang('msgcode_pw2'), 'mconfigsnew[msgcode_pw2]', @$mconfigs['msgcode_pw2']);
trbasic(lang('msgcode_sms'), 'mconfigsnew[msgcode_sms]', @$mconfigs['msgcode_sms'], 'textarea', lang('msgcode_sms_tip'));
echo "</tbody>";
echo "<tbody id=\"msgcode1\" style=\"display:" . (@$mconfigs['msgcode_mode'] == 1 ? '' : 'none') . "\">";
trbasic(lang('msgcode_msg'), 'mconfigsnew[msgcode_msg]', @$mconfigs['msgcode_msg'], 'textarea', lang('msgcode_msg_tip'));
echo "</tbody>";
tabfooter();
echo '<input class="button" type="submit" name="bmconfigs" value="' . lang('submit') . '"/> ' . '<input type="hidden" name="mobmode" value="1"/>' . '</form>';
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:setting.php
示例19: amessage
$transtr .= "&fromid={$fromid}";
|
请发表评论