本文整理汇总了PHP中pmidsarr函数的典型用法代码示例。如果您正苦于以下问题:PHP pmidsarr函数的具体用法?PHP pmidsarr怎么用?PHP pmidsarr使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了pmidsarr函数的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: templatebox
<?php
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('point_msg_id'), 'mtagnew[setting][aid]', empty($mtag['setting']['aid']) ? '' : $mtag['setting']['aid']);
trbasic(lang('tplpermi_set'), 'mtagnew[setting][pmid]', makeoption(pmidsarr('tpl'), empty($mtag['setting']['pmid']) ? 0 : $mtag['setting']['pmid']), 'select', lang('agtplpermi_set'));
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');
}
//生成代码出错的提示信息
}
$mtagnew['setting']['aid'] = max(0, intval($mtagnew['setting']['aid']));
}
示例2: foreach
}
foreach ($cotypes as $k => $v) {
if (empty($v['self_reg'])) {
if (empty($u_operates) || in_array('ccid' . $k, $u_operates)) {
tr_cns("<input class=\"checkbox\" type=\"checkbox\" name=\"arcdeal[ccid{$k}]\" value=\"1\"> " . lang('set') . "{$v['cname']}", "arcccid{$k}", '', $sid, $k, 0, lang('p_choose'), 0, $v['asmode'], 0, $v['emode'], "arcccid{$k}date");
}
}
}
if (empty($u_operates) || in_array('vol', $u_operates)) {
trbasic("<input class=\"checkbox\" type=\"checkbox\" name=\"arcdeal[vol]\" value=\"1\"> " . lang('set_volid'), 'arcvol', makeoption(array('' => lang('nosetting')) + $volids), 'select');
}
if (empty($u_operates) || in_array('rpmid', $u_operates)) {
trbasic("<input class=\"checkbox\" type=\"checkbox\" name=\"arcdeal[rpmid]\" value=\"1\"> " . lang('read_pmid'), 'arcrpmid', makeoption(array('-1' => lang('fromcata')) + pmidsarr('aread'), -1), 'select');
}
if (empty($u_operates) || in_array('dpmid', $u_operates)) {
trbasic("<input class=\"checkbox\" type=\"checkbox\" name=\"arcdeal[dpmid]\" value=\"1\"> " . lang('down_pmid'), 'arcdpmid', makeoption(array('-1' => lang('fromcata')) + pmidsarr('down'), -1), 'select');
}
if (empty($u_operates) || in_array('sale', $u_operates)) {
trbasic("<input class=\"checkbox\" type=\"checkbox\" name=\"arcdeal[salecp]\" value=\"1\"> " . lang('arc_price'), 'arcsalecp', makeoption(array('' => lang('freesale')) + $vcps['sale']), 'select');
}
if (empty($u_operates) || in_array('fsale', $u_operates)) {
trbasic("<input class=\"checkbox\" type=\"checkbox\" name=\"arcdeal[fsalecp]\" value=\"1\"> " . lang('annex_price'), 'arcfsalecp', makeoption(array('' => lang('freesale')) + $vcps['fsale']), 'select');
}
tabfooter('barcsedit');
} else {
include M_ROOT . $u_tplname;
}
} else {
if (empty($arcdeal) && empty($albumsnew)) {
amessage('selectoperateitem', axaction(1, M_REFERER));
}
示例3: exit
<?php
(!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']));
示例4: tabheader
}
if (!submitcheck('busualurldetail')) {
tabheader(lang('edit') . $mc_str . lang('usualurl'), 'usualurldetail', "?entry=usualurls&action=usualurldetail&uid={$uid}{$mc_suffix}");
trbasic(lang('usuatitle'), 'usualurlnew[title]', $usualurl['title'], 'text');
trbasic(lang('usualurl'), 'usualurlnew[url]', $usualurl['url'], 'btext');
trbasic(lang('usuorder'), 'usualurlnew[vieworder]', $usualurl['vieworder'], 'text');
trspecial(lang('urlimage'), 'usualurlnew[logo]', $usualurl['logo'], 'image');
trbasic(lang('newwin'), 'usualurlnew[newwin]', $usualurl['newwin'], 'radio');
if (!$ismc) {
$sidsarr = array('m' => lang('msite')) + sidsarr(1);
trbasic(lang('belsitforuse'), '', makecheckbox('sidsnew[]', $sidsarr, $usualurl['sids'] === '' ? array() : explode(',', $usualurl['sids']), 5), '');
trbasic(lang('inhitatt'), 'usualurlnew[actsid]', $usualurl['actsid'], 'radio');
} else {
trbasic(lang('onclick'), 'usualurlnew[onclick]', $usualurl['onclick'], 'btext');
}
trbasic(lang('u_permission_set'), 'usualurlnew[pmid]', makeoption(pmidsarr('menu'), $usualurl['pmid']), 'select');
tabfooter('busualurldetail');
a_guide('usualurldetail');
} else {
$usualurlnew['title'] = trim(strip_tags($usualurlnew['title']));
$usualurlnew['url'] = trim(strip_tags($usualurlnew['url']));
$usualurlnew['vieworder'] = max(0, intval($usualurlnew['vieworder']));
$usualurlnew['title'] = empty($usualurlnew['title']) ? $usualurl['title'] : $usualurlnew['title'];
$usualurlnew['url'] = empty($usualurlnew['url']) ? $usualurl['url'] : $usualurlnew['url'];
$c_upload = new cls_upload();
$usualurlnew['logo'] = upload_s($usualurlnew['logo'], $usualurl['logo'], 'image');
$usualurlnew['sids'] = !empty($sidsnew) ? implode(',', $sidsnew) : '';
$usualurlnew['actsid'] = empty($usualurlnew['actsid']) ? 0 : 1;
$usualurlnew['onclick'] = empty($usualurlnew['onclick']) ? '' : trim($usualurlnew['onclick']);
$db->query("UPDATE {$tblprefix}usualurls SET \n\t\t\t\t\ttitle='{$usualurlnew['title']}', \n\t\t\t\t\turl='{$usualurlnew['url']}', \n\t\t\t\t\tlogo='{$usualurlnew['logo']}', \n\t\t\t\t\tpmid='{$usualurlnew['pmid']}', \n\t\t\t\t\tsids='{$usualurlnew['sids']}', \n\t\t\t\t\tnewwin='{$usualurlnew['newwin']}',\n\t\t\t\t\tonclick='{$usualurlnew['onclick']}',\n\t\t\t\t\tactsid='{$usualurlnew['actsid']}',\n\t\t\t\t\tvieworder='{$usualurlnew['vieworder']}'\n\t\t\t\t\tWHERE uid='{$uid}'");
$c_upload->closure(1, $uid, 'usualurls');
示例5: isset
$isfunc = $fnew ? isset($fieldnew['isfunc']) ? $fieldnew['isfunc'] : 0 : (isset($field['isfunc']) ? $field['isfunc'] : 0);
if (!$fsave) {
load_cache('permissions');
trbasic(lang('field_type'), '', $datatypearr[$datatype], '');
if ($fnew) {
echo "<input type=\"hidden\" name=\"fieldnew[datatype]\" value=\"{$datatype}\">\n";
echo "<input type=\"hidden\" name=\"fieldnew[isfunc]\" value=\"{$isfunc}\">\n";
}
trbasic(lang('field_cname'), 'fieldnew[cname]', empty($field['cname']) ? '' : $field['cname']);
$submitstr .= makesubmitstr('fieldnew[cname]', 1, 0, 0, 30);
trbasic(lang('field_ename'), $fnew ? 'fieldnew[ename]' : '', empty($field['ename']) ? '' : $field['ename'], $fnew ? 'text' : '');
if ($fnew) {
$submitstr .= makesubmitstr('fieldnew[ename]', 1, 'tagtype', 0, 30);
}
if (!$isfunc) {
!in_array($fmode, array('cn')) && empty($field['issystem']) && trbasic(lang('field_pmid'), 'fieldnew[pmid]', makeoption(pmidsarr('field', lang('frommsg')), empty($field['pmid']) ? 0 : $field['pmid']), 'select');
empty($field['issystem']) && trbasic(lang('input_notnull'), 'fieldnew[notnull]', empty($field['notnull']) ? 0 : $field['notnull'], 'radio');
trbasic(lang('form_guide'), 'fieldnew[guide]', empty($field['guide']) ? '' : $field['guide'], 'btext', lang('agguide'));
$submitstr .= makesubmitstr('fieldnew[guide]', 0, 0, 0, 80);
trbasic(lang('default_value'), 'fieldnew[vdefault]', empty($field['vdefault']) ? '' : $field['vdefault'], 'btext');
trbasic(lang('controller_mode'), 'fieldnew[mode]', makeradio('fieldnew[mode]', array(0 => lang('normal_size1'), 1 => lang('enlarge_size1')), empty($field['mode']) ? '' : $field['mode']), '');
}
if (empty($field['issystem']) && empty($field['mcommon'])) {
//通用字段是不能更改一些属性的
trbasic(lang('table_fieldlength'), 'fieldnew[length]', empty($field['length']) ? '' : $field['length'], 'text', lang('agtlength'));
$submitstr .= makesubmitstr('fieldnew[length]', 0, 0, 1, 255, 'int');
}
if (!$isfunc) {
trrange(lang('value_length'), array('fieldnew[min]', !isset($field['min']) || $field['min'] == '' ? '' : $field['min'], '', ' - ', 5), array('fieldnew[max]', !isset($field['max']) || $field['max'] == '' ? '' : $field['max'], '', '', 5));
$submitstr .= makesubmitstr('fieldnew[min]', 0, 'int');
$submitstr .= makesubmitstr('fieldnew[max]', 0, 'int');
示例6: elseif
} elseif ($action == 'coclassdetail' && $ccid) {
$coclass = read_cache('coclass', $coid, $ccid);
if (!submitcheck('bcoclassdetail')) {
$ccidsarr = array('0' => lang('noset'));
$submitstr = '';
tabheader(lang('coclass') . " [{$coclass['title']}] " . lang('base_setting'), 'coclassdetail', "?entry=coclass&action=coclassdetail&coid={$coid}&ccid={$ccid}", 2, 1, 1);
trbasic(lang('coclass_ename'), 'coclassnew[dirname]', $coclass['dirname'], 'text', lang('agdirname'));
trbasic(lang('parent_coclass'), 'coclassnew[pid]', makeoption(array('0' => lang('topiccoclass')) + ccidsarr($coid), $coclass['pid']), 'select');
trbasic(lang('isframe_coclass_i'), 'coclassnew[isframe]', $coclass['isframe'], 'radio');
if (empty($cotype['self_reg'])) {
trbasic(lang('allow_channel_archive'), '', makecheckbox('coclassnew[chids][]', chidsarr(1), !empty($coclass['chids']) ? explode(',', $coclass['chids']) : array(), 5), '');
if ($cotype['permission']) {
trbasic(lang('add_pmid'), 'coclassnew[apmid]', makeoption(pmidsarr('aadd'), $coclass['apmid']), 'select');
trbasic(lang('read_pmid'), 'coclassnew[rpmid]', makeoption(pmidsarr('aread'), $coclass['rpmid']), 'select');
trbasic(lang('cread_pmid'), 'coclassnew[crpmid]', makeoption(pmidsarr('cread'), $coclass['crpmid']), 'select');
trbasic(lang('down_pmid'), 'coclassnew[dpmid]', makeoption(pmidsarr('down'), $coclass['dpmid']), 'select');
}
$cotype['awardcp'] && trbasic(lang('issue_arc_currency'), 'coclassnew[awardcp]', makeoption(array('' => lang('noaward')) + $vcps['award'], $coclass['awardcp']), 'select');
$cotype['taxcp'] && trbasic(lang('arc_deduct_currency'), 'coclassnew[taxcp]', makeoption(array('' => lang('freesale')) + $vcps['tax'], $coclass['taxcp']), 'select');
$cotype['ftaxcp'] && trbasic(lang('att_deduct_currency'), 'coclassnew[ftaxcp]', makeoption(array('' => lang('freesale')) + $vcps['ftax'], $coclass['ftaxcp']), 'select');
$cotype['sale'] && trbasic(lang('allow_sale_arc'), 'coclassnew[allowsale]', $coclass['allowsale'], 'radio');
$cotype['fsale'] && trbasic(lang('allow_sale_att'), 'coclassnew[allowfsale]', $coclass['allowfsale'], 'radio');
}
tabfooter();
if (!empty($cotype['self_reg'])) {
tabheader(lang('coclass') . " [{$coclass['title']}] " . lang('arc_acondition_set') . " <input class=\"checkbox\" type=\"checkbox\" name=\"viewdetail\" value=\"1\" onclick=\"alterview('morefilter')\">" . lang('viewdetail'));
trrange(lang('add_date'), array('coclassnew[conditions][indays]', isset($coclass['conditions']['indays']) ? $coclass['conditions']['indays'] : '', '', ' ' . lang('day_before') . ' - '), array('coclassnew[conditions][outdays]', isset($coclass['conditions']['outdays']) ? $coclass['conditions']['outdays'] : '', '', ' ' . lang('day_in')));
trrange(lang('add_date'), array('coclassnew[conditions][createdatefrom]', isset($coclass['conditions']['createdatefrom']) ? date('Y-m-d', $coclass['conditions']['createdatefrom']) : '', '', ' ' . lang('start') . ' - '), array('coclassnew[conditions][createdateto]', isset($coclass['conditions']['createdateto']) ? date('Y-m-d', $coclass['conditions']['createdateto']) : '', '', ' ' . lang('end')), 'calendar');
trrange(lang('clicks'), array('coclassnew[conditions][clicksfrom]', isset($coclass['conditions']['clicksfrom']) ? $coclass['conditions']['clicksfrom'] : '', '', ' ' . lang('mini') . ' - '), array('coclassnew[conditions][clicksto]', isset($coclass['conditions']['clicksto']) ? $coclass['conditions']['clicksto'] : '', '', ' ' . lang('max')));
trrange(lang('comments'), array('coclassnew[conditions][commentsfrom]', isset($coclass['conditions']['commentsfrom']) ? $coclass['conditions']['commentsfrom'] : '', '', ' ' . lang('mini') . ' - '), array('coclassnew[conditions][commentsto]', isset($coclass['conditions']['commentsto']) ? $coclass['conditions']['commentsto'] : '', '', ' ' . lang('max')));
trrange(lang('praise_pics'), array('coclassnew[conditions][praisesfrom]', isset($coclass['conditions']['praisesfrom']) ? $coclass['conditions']['praisesfrom'] : '', '', ' ' . lang('mini') . ' - '), array('coclassnew[conditions][praisesto]', isset($coclass['conditions']['praisesto']) ? $coclass['conditions']['praisesto'] : '', '', ' ' . lang('max')));
示例7: array
$mcatalogarr = array(0 => lang('topiccoclass'));
foreach ($fcatalogs as $pid => $fcg) {
empty($fcg['pid']) && $pid != $fcaid && ($mcatalogarr[$pid] = $fcg['title']);
}
trbasic(lang('belongcocl'), 'fcatalognew[pid]', makeoption($mcatalogarr, $fcatalog['pid']), 'select');
}
trbasic(lang('issue_permission_set'), 'fcatalognew[apmid]', makeoption(pmidsarr('fadd'), $fcatalog['apmid']), 'select');
trbasic(lang('msg_auto_check'), 'fcatalognew[autocheck]', $fcatalog['autocheck'], 'radio');
trbasic(lang('author_update_checked_msg'), 'fcatalognew[allowupdate]', $fcatalog['allowupdate'], 'radio');
trbasic(lang('nodurat'), 'fcatalognew[nodurat]', $fcatalog['nodurat'], 'radio');
trbasic(lang('msg_con_tpl'), 'fcatalognew[arctpl]', makeoption(array('' => lang('noset')) + mtplsarr('freeinfo'), $fcatalog['arctpl']), 'select');
if ($fcatalog['cumode']) {
tabfooter();
tabheader(lang('consult_set'));
if ($fcatalog['cumode']) {
trbasic(lang('reply_permission_set'), 'fcatalognew[rpmid]', makeoption(pmidsarr('fadd'), $fcatalog['rpmid']), 'select');
}
//资讯回复权限设置,使用插件添加权限组
trbasic(lang('consult_pics'), 'fcatalognew[culength]', $fcatalog['culength']);
}
tabfooter();
if (!empty($fcatalog['usetting'])) {
$str = '';
foreach ($fcatalog['usetting'] as $k => $v) {
$str .= $k . '=' . $v . "\n";
}
$fcatalog['usetting'] = $str;
unset($str);
}
tabheader(lang('advsetting') . " <input class=\"checkbox\" type=\"checkbox\" name=\"viewdetail2\" value=\"1\" onclick=\"alterview('advsetting')\">" . lang('view'));
echo "<tbody id=\"advsetting\" style=\"display: none;\">";
示例8: read_cache
$fields = read_cache('fields', $chid);
if (!submitcheck('bchanneldetail')) {
$url_type = 'channeldetail';
include 'urlsarr.inc.php';
url_nav($channel['cname'] . '-' . lang('achannel'), $urlsarr, 'detail');
tabheader(lang('base_setting'), 'channeldetail', "?entry=channels&action=channeldetail&chid={$chid}{$param_suffix}");
trbasic(lang('admin_self_channel'), 'channelnew[userforbidadd]', $channel['userforbidadd'], 'radio');
trbasic(lang('add_pmid'), 'channelnew[apmid]', makeoption(pmidsarr('aadd'), $channel['apmid']), 'select');
trbasic(lang('chpmid'), 'channelnew[chpmid]', makeoption(pmidsarr('chk'), $channel['chpmid']), 'select');
$chklvarr = array();
for ($i = 1; $i <= $max_chklv; $i++) {
$chklvarr[$i] = lang('level' . $i);
}
trbasic(lang('chklevel'), '', makeradio('channelnew[chklv]', $chklvarr, max(1, @$channel['chklv'])), '');
$autocheckarr = array(0 => lang('noatchk'), 1 => lang('autocheck'));
foreach (pmidsarr('chk') as $k => $v) {
$k && ($autocheckarr[-$k] = $v);
}
trbasic(lang('arc_auto_check'), 'channelnew[autocheck]', makeoption($autocheckarr, $channel['autocheck']), 'select');
trbasic(lang('arc_auto_static'), 'channelnew[autostatic]', $channel['autostatic'], 'radio');
trbasic(lang('addnonum'), 'channelnew[addnum]', $channel['addnum']);
$itemsarr = array();
foreach ($cotypes as $k => $v) {
if (!$v['self_reg']) {
$itemsarr[$k] = $v['cname'];
}
}
trbasic(lang('acoids') . "<br><input class=\"checkbox\" type=\"checkbox\" name=\"chkall_1\" onclick=\"checkall(this.form,'acoidsnew','chkall_1')\">" . lang('selectall'), '', makecheckbox('acoidsnew[]', $itemsarr, empty($channel['acoids']) ? array() : explode(',', $channel['acoids']), 5), '', lang('agcoids'));
trbasic(lang('ccoids') . "<br><input class=\"checkbox\" type=\"checkbox\" name=\"chkall_3\" onclick=\"checkall(this.form,'ccoidsnew','chkall_3')\">" . lang('selectall'), '', makecheckbox('ccoidsnew[]', $itemsarr, empty($channel['ccoids']) ? array() : explode(',', $channel['ccoids']), 5), '', lang('agcoids'));
$itemsarr = array();
$itemsarr['jumpurl'] = lang('jumpurl');
示例9: adminlog
adminlog(lang('edit_catalog_mlist'));
amessage('catalogeditfinish', "?entry=catalogs&action=catalogedit{$param_suffix}");
}
} elseif ($action == 'catalogdetail' && $caid) {
$catalog = read_cache('catalog', $caid, '', $sid);
if (!submitcheck('bcatalogdetail')) {
$submitstr = '';
tabheader(lang('catalog_base_set') . " [{$catalog['title']}]", 'catalogdetail', "?entry=catalogs&action=catalogdetail&caid={$caid}{$param_suffix}", 2, 1, 1);
trbasic(lang('html_dirname'), 'catalognew[dirname]', $catalog['dirname'], 'text', lang('agdirname'));
trbasic(lang('parent_catalog'), 'catalognew[pid]', makeoption(array('0' => lang('topic_catalog')) + caidsarr($catalogs), $catalog['pid']), 'select');
trbasic(lang('isframe_catalog_r'), 'catalognew[isframe]', $catalog['isframe'], 'radio');
trbasic(lang('allow_channel_archive'), '', makecheckbox('catalognew[chids][]', chidsarr(0), !empty($catalog['chids']) ? explode(',', $catalog['chids']) : array(), 5), '');
trbasic(lang('add_pmid'), 'catalognew[apmid]', makeoption(pmidsarr('aadd'), $catalog['apmid']), 'select');
trbasic(lang('read_pmid'), 'catalognew[rpmid]', makeoption(pmidsarr('aread'), $catalog['rpmid']), 'select');
trbasic(lang('cread_pmid'), 'catalognew[crpmid]', makeoption(pmidsarr('cread'), $catalog['crpmid']), 'select');
trbasic(lang('down_pmid'), 'catalognew[dpmid]', makeoption(pmidsarr('down'), $catalog['dpmid']), 'select');
trbasic(lang('issue_arc_currency'), 'catalognew[awardcp]', makeoption(array('' => lang('noaward')) + $vcps['award'], $catalog['awardcp']), 'select');
trbasic(lang('arc_deduct_currency'), 'catalognew[taxcp]', makeoption(array('' => lang('freesale')) + $vcps['tax'], $catalog['taxcp']), 'select');
trbasic(lang('att_deduct_currency'), 'catalognew[ftaxcp]', makeoption(array('' => lang('freesale')) + $vcps['ftax'], $catalog['ftaxcp']), 'select');
trbasic(lang('allow_sale_archive'), 'catalognew[allowsale]', $catalog['allowsale'], 'radio');
trbasic(lang('allow_sale_attachment'), 'catalognew[allowfsale]', $catalog['allowfsale'], 'radio');
$catalog['tpls'] = empty($catalog['tpls']) ? array() : explode(',', $catalog['tpls']);
for ($i = 0; $i <= $cn_max_addno; $i++) {
$pvar = $i ? lang('addp') . $i : lang('index');
trbasic($pvar . lang('df_tpl'), "catalognew[tpls][{$i}]", makeoption(array('' => lang('noset')) + mtplsarr('cindex'), @$catalog['tpls'][$i]), 'select');
}
trbasic(lang('arc_static_url_format'), 'catalognew[customurl]', $catalog['customurl'], 'btext', lang('agcustomurl'));
tabfooter();
$a_field = new cls_field();
$addfieldstr = $sid ? '' : " >><a href=\"?entry=catalogs&action=cafieldsedit\">" . lang('iscustom_catalog_field') . '</a>';
tabheader(lang('catalog_iscustom_msg') . " [{$catalog['title']}]" . $addfieldstr);
示例10: trbasic
$submitstr .= $a_field->submitstr;
}
}
}
}
if (empty($u_lists) || in_array('jumpurl', $u_lists)) {
trbasic(lang('jumpurl'), 'archivenew[jumpurl]', $aedit->archive['jumpurl'], 'btext', lang('agjumpurl'));
}
if (empty($u_lists) || in_array('rpmid', $u_lists)) {
if (!in_array('rpmid', $aitems)) {
trbasic(lang('read_pmid'), 'archivenew[rpmid]', makeoption(array('-1' => lang('fromcata')) + pmidsarr('aread'), $aedit->archive['rpmid']), 'select');
}
}
if (empty($u_lists) || in_array('dpmid', $u_lists)) {
if (!in_array('dpmid', $aitems)) {
trbasic(lang('down_pmid'), 'archivenew[dpmid]', makeoption(array('-1' => lang('fromcata')) + pmidsarr('down'), $aedit->archive['dpmid']), 'select');
}
}
if (empty($u_lists) || in_array('salecp', $u_lists)) {
if (!in_array('salecp', $aitems)) {
trbasic(lang('arc_price'), 'archivenew[salecp]', makeoption(array('' => lang('freesale')) + $vcps['sale'], $aedit->archive['salecp']), 'select');
}
}
if (empty($u_lists) || in_array('fsalecp', $u_lists)) {
if (!in_array('fsalecp', $aitems)) {
trbasic(lang('annex_price'), 'archivenew[fsalecp]', makeoption(array('' => lang('freesale')) + $vcps['fsale'], $aedit->archive['fsalecp']), 'select');
}
}
if (empty($u_lists) || in_array('arctpl', $u_lists)) {
$aedit->archive['arctpls'] = explode(',', $aedit->archive['arctpls']);
trbasic(lang('archive_content_template'), 'archivenew[arctpls][0]', makeoption(array('' => lang('noset')) + mtplsarr('archive'), $aedit->archive['arctpls'][0]), 'select');
示例11: updatecache
updatecache('mafields', $matid);
}
adminlog(lang('add_marc_type'));
amessage('matypeaddsuccess', "?entry=matypes&action=matypesedit{$param_suffix}");
}
} elseif ($action == 'matypedetail' && $matid) {
$matype = read_cache('matype', $matid);
$fields = read_cache('mafields', $matid);
if (!submitcheck('bmatypedetail')) {
tabheader("[{$matype['cname']}]" . lang('matype_set'), 'matypedetail', "?entry=matypes&action=matypedetail&matid={$matid}{$param_suffix}", 4, 0, 0, 1);
trbasic(lang('add_arc_autocheck'), 'matypenew[autocheck]', $matype['autocheck'], 'radio');
trbasic(lang('add_arc_autostatic'), 'matypenew[autostatic]', $matype['autostatic'], 'radio');
trbasic(lang('allow_update_checked_arc'), 'matypenew[allowupdate]', $matype['allowupdate'], 'radio');
trbasic(lang('issue_permission_set'), 'matypenew[apmid]', makeoption(pmidsarr('aadd'), $matype['apmid']), 'select');
//会员档案权限方案与常规文档同步
trbasic(lang('read_permi_set'), 'matypenew[rpmid]', makeoption(pmidsarr('aread'), $matype['rpmid']), 'select');
tabfooter();
tabheader("[{$matype['cname']}]" . lang('field_manager') . " >><a href=\"?entry=matypes&action=fieldadd&matid={$matid}\">" . lang('add_field') . "</a>", '', '', '8');
trcategory(array(lang('delete'), lang('field_name'), lang('field_ename'), lang('admin_self'), lang('order'), lang('field_type'), lang('edit')));
foreach ($fields as $k => $field) {
fieldlist($k, $field, 'ma');
}
tabfooter('bmatypedetail');
a_guide('matypedetail');
} else {
if (!empty($delete)) {
foreach ($delete as $id) {
dropfieldfromtbl("marchives_{$matid}", $id, $fields[$id]['datatype']);
$db->query("DELETE FROM {$tblprefix}mafields WHERE ename='{$id}' AND matid='{$matid}'");
unset($fields[$id], $fieldsnew[$id]);
}
示例12: elseif
} elseif ($action == 'mmenudetail' && $mnid) {
if (!($mmenu = $db->fetch_one("SELECT * FROM {$tblprefix}mmenus WHERE mnid='{$mnid}'"))) {
amessage('oosemmit');
}
if (!submitcheck('bmmenudetail')) {
tabheader(lang('memcenmeitedet'), 'mmenudetail', "?entry=mmenus&action=mmenudetail&mnid={$mnid}");
$mtidsarr = array();
$query = $db->query("SELECT * FROM {$tblprefix}mmtypes ORDER BY vieworder,mtid");
while ($row = $db->fetch_array($query)) {
$mtidsarr[$row['mtid']] = $row['title'];
}
trbasic(lang('belongcocl'), 'mmenunew[mtid]', makeoption($mtidsarr, $mmenu['mtid']), 'select');
trbasic(lang('menuitemcname'), 'mmenunew[title]', $mmenu['title'], 'text');
trbasic(lang('menuitemurl'), 'mmenunew[url]', $mmenu['url'], 'btext');
// trbasic(lang('menuitemurl'),$mmenu['issys'] ? '' : 'mmenunew[url]',$mmenu['url'],$mmenu['issys'] ? '' : 'btext');
trbasic(lang('beluseval'), 'mmenunew[pmid]', makeoption(pmidsarr('menu'), $mmenu['pmid']), 'select');
trbasic(lang('meniteord'), 'mmenunew[vieworder]', $mmenu['vieworder'], 'text');
trbasic(lang('newwin'), 'mmenunew[newwin]', $mmenu['newwin'], 'radio');
trbasic(lang('onclick'), 'mmenunew[onclick]', $mmenu['onclick'], 'btext');
tabfooter('bmmenudetail');
a_guide('mmenudetail');
} else {
$mmenunew['title'] = trim(strip_tags($mmenunew['title']));
$mmenunew['url'] = trim(strip_tags($mmenunew['url']));
$mmenunew['onclick'] = trim($mmenunew['onclick']);
// $mmenunew['url'] = $mmenu['issys'] ? $mmenu['url'] : trim(strip_tags($mmenunew['url']));
$mmenunew['vieworder'] = max(0, intval($mmenunew['vieworder']));
$mmenunew['mtid'] = empty($mmenunew['mtid']) ? 0 : max(0, intval($mmenunew['mtid']));
(!$mmenunew['title'] || !$mmenunew['url']) && amessage('inmmtiturl');
!$mmenunew['mtid'] && amessage('poimmebelcoc');
$db->query("UPDATE {$tblprefix}mmenus SET \n\t\t\t\t\ttitle='{$mmenunew['title']}', \n\t\t\t\t\turl='{$mmenunew['url']}', \n\t\t\t\t\tmtid='{$mmenunew['mtid']}', \n\t\t\t\t\tpmid='{$mmenunew['pmid']}', \n\t\t\t\t\tnewwin='{$mmenunew['newwin']}', \n\t\t\t\t\tonclick='{$mmenunew['onclick']}', \n\t\t\t\t\tvieworder='{$mmenunew['vieworder']}'\n\t\t\t\t\tWHERE mnid='{$mnid}'");