本文整理汇总了PHP中makeradio函数的典型用法代码示例。如果您正苦于以下问题:PHP makeradio函数的具体用法?PHP makeradio怎么用?PHP makeradio使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了makeradio函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: trfield
function trfield($varpre = '', $noeditstr = '', $ftype = '', $typeid = 0)
{
if (empty($this->field['ename']) || empty($this->field['available'])) {
return;
}
$trname = ($this->field['notnull'] ? '*' : '') . $this->field['cname'] . $noeditstr;
$varname = !$varpre ? $this->field['ename'] : $varpre . '[' . $this->field['ename'] . ']';
$oldstr = $this->isadd ? $this->field['vdefault'] : $this->oldvalue;
//多项选择
foreach (array('datatype', 'mode', 'guide', 'min', 'max') as $var) {
${$var} = $this->field[$var];
}
if ($datatype == 'cacc') {
$setting = empty($this->field['innertext']) ? array() : unserialize($this->field['innertext']);
trcacc($trname, $varname, $oldstr, $this->field['length'], @$setting['source'], @$setting['ids'], $mode, $max ? intval($max) : 0, $guide);
} else {
if (in_array($datatype, array('text', 'int', 'float'))) {
$oldstr = mhtmlspecialchars($oldstr);
$datatype = 'text';
} elseif ($datatype == 'select') {
$sourcearr = select_arr($this->field['innertext'], $this->field['fromcode']);
$oldstr = !$mode ? makeoption($sourcearr, $oldstr) : makeradio($varname, $sourcearr, $oldstr);
} elseif ($datatype == 'mselect') {
$sourcearr = select_arr($this->field['innertext'], $this->field['fromcode']);
$oldarr = explode("\t", $oldstr);
$oldstr = !$mode ? multiselect($varname . '[]', $sourcearr, $oldarr) : makecheckbox($varname . '[]', $sourcearr, $oldarr);
} elseif ($datatype == 'multitext') {
$oldstr = mhtmlspecialchars($oldstr);
} elseif ($datatype == 'date') {
$oldstr = $oldstr ? date('Y-m-d', $oldstr) : '';
} elseif ($datatype == 'map') {
!$oldstr && ($oldstr = $this->field['vdefault']);
$min = $this->field['length'];
} elseif ($datatype == 'vote') {
$mode = $ftype;
$max = $min;
$min = $typeid;
}
trspecial($trname, $varname, $oldstr, $datatype, $mode, $guide, $min, $max);
}
$this->make_submitstr($varname);
}
示例2: array
$itemsarr = array();
foreach ($ucotypes as $k => $v) {
if ($v['cclass'] == $commu['cclass']) {
$itemsarr['uccid' . $k] = $v['cname'];
}
}
foreach ($ofields as $k => $v) {
$itemsarr[$k] = $v['cname'];
}
trbasic(lang('cu_citems') . "<br><input class=\"checkbox\" type=\"checkbox\" name=\"chkall_1\" onclick=\"checkall(this.form,'citemsnew','chkall_1')\">" . lang('selectall'), '', makecheckbox('citemsnew[]', $itemsarr, empty($commu['setting']['citems']) ? array() : explode(',', $commu['setting']['citems']), 5), '');
trbasic(lang('cu_useredits') . "<br><input class=\"checkbox\" type=\"checkbox\" name=\"chkall_5\" onclick=\"checkall(this.form,'usereditsnew','chkall_5')\">" . lang('selectall'), '', makecheckbox('usereditsnew[]', $itemsarr, empty($commu['setting']['useredits']) ? array() : explode(',', $commu['setting']['useredits']), 5), '');
tabfooter();
tabheader(lang('auto_pro_av_price'));
trbasic(lang('is_create_av_price'), 'communew[setting][average]', isset($commu['setting']['average']) ? $commu['setting']['average'] : 0, 'radio');
$tablearr = array('main' => lang('common_field'), 'custom' => lang('channel_field'));
trbasic(lang('av_price_field_type'), 'communew[setting][ptable]', makeradio('communew[setting][ptable]', $tablearr, isset($commu['setting']['ptable']) ? $commu['setting']['ptable'] : 'main'), '');
trbasic(lang('av_price_field_ename'), 'communew[setting][pename]', isset($commu['setting']['pename']) ? $commu['setting']['pename'] : '');
tabfooter();
tabheader(lang('udef_func') . " <input class=\"checkbox\" type=\"checkbox\" name=\"viewdetail\" value=\"1\" onclick=\"alterview('funcsetting')\">" . lang('view'));
echo "<tbody id=\"funcsetting\" style=\"display: none;\">";
trbasic(lang('php_func_code'), 'communew[func]', empty($commu['func']) ? '' : $commu['func'], 'btextarea');
echo "</tbody>";
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>";
示例3: exit
<?php
(!defined('M_COM') || !defined('M_ADMIN')) && exit('No Permission');
if (empty($submitmode)) {
tabfooter();
tabheader(lang('arangeset'));
//只需要筛选文档模型即可
$cuidsarr = array();
foreach ($commus as $k => $v) {
if ($v['cclass'] == 'comment') {
$cuidsarr[$k] = $v['cname'];
}
}
trbasic(lang('arange') . lang('commuitem') . "<br><input class=\"checkbox\" type=\"checkbox\" name=\"chkallcuids\" onclick=\"checkall(this.form,'cuidsnew','chkallcuids')\">" . lang('selectall'), '', makecheckbox('cuidsnew[]', $cuidsarr, empty($murl['setting']['cuids']) ? array() : explode(',', $murl['setting']['cuids']), 5), '', lang('agnoselect'));
$checkedarr = array('-1' => lang('nolimit'), '0' => lang('nocheck'), '1' => lang('checked'));
trbasic(lang('arange') . lang('check_state'), '', makeradio('murlnew[setting][checked]', $checkedarr, !isset($murl['setting']['checked']) ? '-1' : $murl['setting']['checked']), '');
trbasic(lang('arange') . lang('achannel') . "<br><input class=\"checkbox\" type=\"checkbox\" name=\"chkallchids\" onclick=\"checkall(this.form,'chidsnew','chkallchids')\">" . lang('selectall'), '', makecheckbox('chidsnew[]', chidsarr(1), empty($murl['setting']['chids']) ? array() : explode(',', $murl['setting']['chids']), 5), '', lang('agnoselect'));
$caidsarr = array();
foreach ($acatalogs as $k => $v) {
$caidsarr[$k] = $v['title'] . '(' . $v['level'] . ')';
}
trbasic(lang('arange') . lang('catalog') . "<br><input class=\"checkbox\" type=\"checkbox\" name=\"chkallcaids\" onclick=\"checkall(this.form,'caidsnew','chkallcaids')\">" . lang('selectall'), '', makecheckbox('caidsnew[]', $caidsarr, empty($murl['setting']['caids']) ? array() : explode(',', $murl['setting']['caids']), 5), '', lang('agnoselect'));
tabfooter();
tabheader(lang('pageresult'));
$tnstr = "<input type=\"text\" size=\"25\" id=\"murlnew[tplname]\" name=\"murlnew[tplname]\" value=\"{$murl['tplname']}\"> \n\t\t\t<input class=\"checkbox\" type=\"checkbox\" name=\"murlnew[onlyview]\" id=\"murlnew[onlyview]\" value=\"1\"" . (empty($murl['onlyview']) ? '' : ' checked') . ">" . lang('onlyview');
trbasic(lang('customapage'), '', $tnstr, '', lang('agcustomapage'));
$filtersarr = array('commu' => lang('commuitem'), 'channel' => lang('achannel'), 'check' => lang('check_state'));
foreach ($ucotypes as $k => $v) {
if ($v['cclass'] == 'comment') {
$filtersarr['uccid' . $k] = $v['cname'];
}
示例4: strbutton
echo strbutton('bfilter', 'filter0') . viewcheck('viewdetail', $viewdetail, 'tbodyfilter');
echo "</td></tr>";
echo "<tbody id=\"tbodyfilter\" style=\"display: " . (empty($viewdetail) ? 'none' : '') . "\">";
$mainlinearr = array('-1' => lang('nolimit'), '0' => lang('catalog'));
foreach ($cotypes as $k => $v) {
if ($v['sortable']) {
$mainlinearr[$k] = $v['cname'];
}
}
trbasic(lang('mainline'), '', makeradio('mainline', $mainlinearr, $mainline), '');
foreach ($cotypes as $k => $v) {
if ($v['sortable']) {
trbasic("{$v['cname']}", "ccid{$k}", makeoption(array('0' => lang('nolimit')) + ccidsarr($k), ${"ccid{$k}"}), 'select');
}
}
trbasic(lang('is_outconfig_cnode'), '', makeradio('inconfig', array('-1' => lang('nolimit'), '0' => lang('outconfig_cnode'), '1' => lang('inconfig_cnode')), $inconfig), '');
echo "</tbody>";
tabfooter();
tabheader(lang('catas_cnode_list') . " <input class=\"checkbox\" type=\"checkbox\" name=\"select_all\" value=\"1\"> " . lang('selectallpage'), '', '', 12);
$cy_arr = array("<input class=\"checkbox\" type=\"checkbox\" name=\"chkall\" onclick=\"checkall(this.form, 'selectid', 'chkall')\">", array(lang('cnode_name'), 'txtL'), array(lang('cnode_alias'), 'txtL'), lang('outconfig'), array(lang('catalog_attr'), 'txtL'), array(lang('look'), 'txtL'));
for ($i = 0; $i <= min($cn_max_addno, 2); $i++) {
$cy_arr[] = $i ? lang('addp') . $i . lang('template') : lang('index_tpl');
}
$cy_arr[] = lang('detail');
trcategory($cy_arr);
$pagetmp = $page;
do {
$query = $db->query("SELECT * {$fromsql} {$wheresql} ORDER BY cnid ASC LIMIT " . ($pagetmp - 1) * $atpp . ",{$atpp}");
$pagetmp--;
} while (!$db->num_rows($query) && $pagetmp);
while ($cnode = $db->fetch_array($query)) {
示例5: tabfooter
tabfooter();
tabheader(lang('ordersgoodslist'), '', '', 5);
trcategory(array(lang('goodscname'), lang('catalog'), lang('channel'), lang('price'), lang('amount')));
$query = $db->query("SELECT cu.*,cu.createdate AS ucreatedate,a.sid,a.createdate,a.caid,a.chid,a.customurl,a.subject AS asubject FROM {$tblprefix}purchases cu LEFT JOIN {$tblprefix}archives a ON (a.aid=cu.aid) WHERE oid='{$oid}'");
while ($item = $db->fetch_array($query)) {
$cid = $item['cid'];
$item['arcurl'] = view_arcurl($item);
$item['catalog'] = empty($catalogs[$item['caid']]) ? lang('nocata') : $catalogs[$item['caid']]['title'];
$item['channel'] = $channels[$item['chid']]['cname'];
$item['createdate'] = date("{$dateformat}", $item['ucreatedate']);
echo "<tr>" . "<td class=\"item2\"><a href=\"{$item['arcurl']}\" target=\"_blank\">" . mhtmlspecialchars($item['asubject']) . "</a></td>\n" . "<td class=\"item\">{$item['catalog']}</td>\n" . "<td class=\"item\">{$item['channel']}</td>\n" . "<td class=\"item\">{$item['price']}</td>\n" . "<td class=\"item\" width=\"70\">{$item['nums']}</td></tr>\n";
}
tabfooter();
if ($order['state'] == 1 || !$order['state'] && @$cfg_ordermode) {
tabheader(lang('paymode'));
trbasic(lang('paymode'), 'paymodenew', makeradio('ordernew[paymode]', $pmodearr, -1), '');
tabfooter();
print '<input class="button" type="submit" name="borderpay" value="' . lang('confirm_pay') . '"/>';
}
echo '</form><div class="clear"></div>';
tabheader(lang('ordersmessageset'), 'orderdetail', '?action=orders&oid=' . $oid . '&forward=' . urlencode($forward));
$submitstr = '';
if ($order['state'] && $order['state'] != 1) {
foreach ($pfields as $k => $field) {
trbasic($field['cname'], '', !isset($order[$k]) ? '' : htmlspecialchars($order[$k]), '');
}
$order['state'] < 0 ? tabfooter('borderdelete', lang('deleteorders')) : (print '</form>');
} else {
$a_field = new cls_field();
foreach ($pfields as $k => $field) {
$a_field->init();
示例6: trbasic
trbasic(lang('indays'), 'mtagnew[setting][indays]', !isset($mtag['setting']['indays']) ? '' : $mtag['setting']['indays']);
trbasic(lang('outdays'), 'mtagnew[setting][outdays]', !isset($mtag['setting']['outdays']) ? '' : $mtag['setting']['outdays']);
trbasic(lang('favorite_pics_gt'), 'mtagnew[setting][favorites]', !isset($mtag['setting']['favorites']) ? '' : $mtag['setting']['favorites']);
trbasic(lang('praise_pics_gt'), 'mtagnew[setting][praises]', !isset($mtag['setting']['praises']) ? '' : $mtag['setting']['praises']);
trbasic(lang('debase_pics_gt'), 'mtagnew[setting][debases]', !isset($mtag['setting']['debases']) ? '' : $mtag['setting']['debases']);
trbasic(lang('goods_orders_amount_gt'), 'mtagnew[setting][orders]', !isset($mtag['setting']['orders']) ? '' : $mtag['setting']['orders']);
trbasic(lang('goods_price_le'), 'mtagnew[setting][inprice]', empty($mtag['setting']['inprice']) ? '' : $mtag['setting']['inprice']);
trbasic(lang('goods_price_gt'), 'mtagnew[setting][outprice]', empty($mtag['setting']['outprice']) ? '' : $mtag['setting']['outprice']);
trbasic(lang('answer0_amount_gt'), 'mtagnew[setting][answers]', !isset($mtag['setting']['answers']) ? '' : $mtag['setting']['answers']);
trbasic(lang('adopt_answer0_amount_gt'), 'mtagnew[setting][adopts]', !isset($mtag['setting']['adopts']) ? '' : $mtag['setting']['adopts']);
trbasic(lang('answer_reward_currency_le'), 'mtagnew[setting][incurrency]', empty($mtag['setting']['incurrency']) ? '' : $mtag['setting']['incurrency']);
trbasic(lang('answer_reward_currency_gt'), 'mtagnew[setting][outcurrency]', empty($mtag['setting']['outcurrency']) ? '' : $mtag['setting']['outcurrency']);
$closedarr = array('-1' => lang('nolimit'), '0' => lang('noclose'), '1' => lang('closed'));
trbasic(lang('is_answer_close'), '', makeradio('mtagnew[setting][closed]', $closedarr, !isset($mtag['setting']['closed']) ? '-1' : $mtag['setting']['closed']), '');
$aboverarr = array('-1' => lang('nolimit'), '0' => lang('noabover'), '1' => lang('abover'));
trbasic(lang('album_weather_abover'), '', makeradio('mtagnew[setting][abover]', $aboverarr, !isset($mtag['setting']['abover']) ? '-1' : $mtag['setting']['abover']), '');
$createurl = " >><a href=\"?entry=liststr&tclass=alarchives\" target=\"_blank\">" . lang('create_str') . "</a>";
$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');
echo "</tbody>";
tabfooter();
} else {
if (empty($mtagnew['template'])) {
if (!submitcheck('bmtagcode')) {
amessage('input_tag_tpl', M_REFERER);
} else {
$errormsg = lang('input_tag_tpl');
}
//生成代码出错的提示信息
}
$mtagnew['setting']['orderstr'] = empty($mtagnew['setting']['orderstr']) ? '' : trim($mtagnew['setting']['orderstr']);
示例7: empty
$areadstr = $item['aread'] ? 'Y' : '-';
$uclassstr = empty($ucidsarr[$item['ucid']]) ? '-' : $ucidsarr[$item['ucid']];
$itemstr .= "<tr><td class=\"item\" width=\"30\"><input class=\"checkbox\" type=\"checkbox\" name=\"selectid[{$item['cid']}]\" value=\"{$item['cid']}\"></td>\n" . "<td class=\"item\" width=\"30\">{$item['fromid']}</td>\n" . "<td class=\"item2\"><a href=\"{$mspaceurl}index.php?mid={$item['fromid']}\" target=\"_blank\">{$item['fromname']}</a></td>\n" . "<td class=\"item\">{$uclassstr}</td>\n" . "<td class=\"item\" width=\"30\">{$checkedstr}</td>\n" . "<td class=\"item\" width=\"60\">{$createdatestr}</td>\n" . "<td class=\"item\" width=\"30\">{$areplystr}</td>\n" . "<td class=\"item\" width=\"30\">{$areadstr}</td>\n" . "<td class=\"item\" width=\"36\"><a href=\"?action=mcomment&mid={$item['mid']}&cid={$item['cid']}&amode=1\" onclick=\"return floatwin('open_mcomment',this)\">" . lang('look') . "</a></td></tr>\n";
}
$counts = $db->result_one("SELECT COUNT(*) {$fromsql} {$wheresql}");
$multi = multi($counts, $mrowpp, $page, "?action=amcomments{$filterstr}");
tabheader($listname . lang('list'), '', '', 11);
trcategory(array("<input class=\"checkbox\" type=\"checkbox\" name=\"chkall\" onclick=\"checkall(this.form, 'selectid', 'chkall')\">", lang('id'), lang('srcmember'), lang('uclass'), lang('check'), lang('addtime'), lang('reply0'), lang('read'), lang('detail')));
echo $itemstr;
tabfooter();
echo $multi;
$ucidsarr = array('0' => lang('cancelcoclass')) + $ucidsarr;
$checkedarr = array('0' => lang('uncheck'), '1' => lang('check'));
tabheader(lang('operateitem'));
trbasic(lang('choose_item'), '', "<input class=\"checkbox\" type=\"checkbox\" name=\"arcdeal[delete]\" value=\"1\"> " . lang('delete') . $listname, '');
trbasic("<input class=\"checkbox\" type=\"checkbox\" name=\"arcdeal[check]\" value=\"1\"> " . lang('check'), 'arcchecked', makeradio('arcchecked', $checkedarr, 1), '');
trbasic("<input class=\"checkbox\" type=\"checkbox\" name=\"arcdeal[ucid]\" value=\"1\"> " . lang('uclass'), 'arcucid', makeoption($ucidsarr), 'select');
tabfooter('barcsedit');
} else {
if (empty($arcdeal)) {
mcmessage('selectoperateitem', "?action=amcomments&page={$page}{$filterstr}");
}
if (empty($selectid)) {
mcmessage('selectcomment', "?action=amcomments&page={$page}{$filterstr}");
}
if (!empty($arcdeal['delete'])) {
$db->query("DELETE FROM {$tblprefix}mcomments WHERE mid='{$memberid}' AND cid " . multi_str($selectid));
} else {
if (!empty($arcdeal['check'])) {
$db->query("UPDATE {$tblprefix}mcomments SET checked='{$arcchecked}' WHERE mid='{$memberid}' AND cid " . multi_str($selectid));
}
示例8: trbasic
} else {
trbasic(lang('istxt_field'), '', lang(empty($field['istxt']) ? 'no' : 'yes'), '');
}
}
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('controller_mode'), 'fieldnew[mode]', makeradio('fieldnew[mode]', array(0 => lang('normal_editor'), 1 => lang('simple_editor')), empty($field['mode']) ? '' : $field['mode']), '');
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));
trbasic(lang('remote_download'), 'fieldnew[rpid]', makeoption($rpidsarr, empty($field['rpid']) ? '0' : $field['rpid']), 'select');
}
if ($isfunc) {
trbasic(lang('php_func'), 'fieldnew[func]', empty($field['func']) ? '' : $field['func'], 'textarea');
}
trbasic(lang('custom_1'), 'fieldnew[custom_1]', empty($field['custom_1']) ? '' : $field['custom_1'], 'text', lang('agcustom_1'));
trbasic(lang('custom_2'), 'fieldnew[custom_2]', empty($field['custom_2']) ? '' : $field['custom_2'], 'text', lang('agcustom_1'));
} else {
$sqlstr = empty($fconfigarr['sqlstr']) ? "" : $fconfigarr['sqlstr'];
$fieldnew['cname'] = trim(strip_tags($fieldnew['cname']));
if ($fnew) {
$filterstr = empty($fconfigarr['filterstr']) ? "/[^a-zA-Z_0-9]+|^[0-9_]+/" : $fconfigarr['filterstr'];
(empty($fieldnew['ename']) || empty($fieldnew['cname'])) && amessage('field_data_miss', $fconfigarr['errorurl']);
preg_match($filterstr, $fieldnew['ename']) && amessage('field_ename_illegal', $fconfigarr['errorurl']);
示例9: array
if (!submitcheck('bpaymanager')) {
$curuser->detail_data();
$pmodearr = array('0' => lang('paynext'), '1' => lang('paycurrency'), '2' => lang('payalipay'), '3' => lang('paytenpay'));
$omodearr = array('0' => lang('be_confirm'), '1' => lang('no_confirm'));
$payarr = array();
for ($i = 0; $i < 32; $i++) {
if ($curuser->info['paymode'] & 1 << $i) {
$payarr[] = $i;
}
}
for ($i = 1; $i < 4; $i++) {
${"sp{$i}"} = $curuser->info["shipingfee{$i}"];
}
tabheader(lang('mypaymode'), 'paymanager', '?action=paymanager', 2, 1, 1);
trbasic(lang('paymode'), '', makecheckbox('paymodenew[]', $pmodearr, $payarr), '');
trbasic(lang('ordmode'), '', makeradio('ordermodenew', $omodearr, $curuser->info['ordermode']), '');
trbasic('<input name="spmd[1]" type="checkbox" class="checkbox" value="1"' . ($sp1 < 0 ? '' : ' checked="checked"') . ' />' . lang('shipingfee1'), 'shipingfee[1]', $sp1 < 0 ? 0 : $sp1);
trbasic('<input name="spmd[2]" type="checkbox" class="checkbox" value="1"' . ($sp2 < 0 ? '' : ' checked="checked"') . ' />' . lang('shipingfee2'), 'shipingfee[2]', $sp2 < 0 ? 0 : $sp2);
trbasic('<input name="spmd[3]" type="checkbox" class="checkbox" value="1"' . ($sp3 < 0 ? '' : ' checked="checked"') . ' />' . lang('shipingfee3'), 'shipingfee[3]', $sp3 < 0 ? 0 : $sp3);
trbasic(lang('alipay_account'), 'alipay_account', $curuser->info['alipay'], 'btext');
trbasic(lang('alipay_partner'), 'alipay_partner', $curuser->info['alipid']);
trbasic(lang('alipay_keyt'), 'alipay_keyt', $curuser->info['alikeyt'], 'btext');
trbasic(lang('tenpay_account'), 'tenpay_account', $curuser->info['tenpay'], 'btext');
trbasic(lang('tenpay_keyt'), 'tenpay_keyt', $curuser->info['tenkeyt'], 'btext');
$submitstr = makesubmitstr('shipingfee[1]', 0, 'number', 0, 10);
$submitstr .= makesubmitstr('shipingfee[2]', 0, 'number', 0, 10);
$submitstr .= makesubmitstr('shipingfee[3]', 0, 'number', 0, 10);
$submitstr .= makesubmitstr('alipay_account', 0, 'email', 0, 100);
$submitstr .= makesubmitstr('alipay_partner', 0, 'number', 16, 16);
tabfooter('bpaymanager');
check_submit_func($submitstr);
示例10: foreach
foreach ($mcommus as $k => $v) {
if ($v['available'] && $v['sortable']) {
$cuidsarr[$k] = $v['cname'];
$icuid = $k;
}
}
$idsarr = array('mid' => lang('receive_member'), 'fromid' => lang('submit_member'));
$checkedarr = array('0' => lang('nolimit'), '1' => lang('checked'));
trbasic(lang('point_commu_item'), 'mtagnew[setting][cuid]', makeoption($cuidsarr, empty($mtag['setting']['cuid']) ? '0' : $mtag['setting']['cuid']), 'select');
trbasic(lang('relate_id_source'), '', makeradio('mtagnew[setting][idsource]', $idsarr, empty($mtag['setting']['idsource']) ? 'mid' : $mtag['setting']['idsource']), '');
$sourcearr = array('0' => lang('nolimit_coclass'), '1' => lang('active_coclass'));
trbasic(lang('active_uclass'), '', makeradio('mtagnew[setting][ucsource]', $sourcearr, empty($mtag['setting']['ucsource']) ? 0 : $mtag['setting']['ucsource']), '', lang('aguclass'));
tabfooter();
tabheader(lang('more_set') . " <input class=\"checkbox\" type=\"checkbox\" name=\"viewdetail\" value=\"1\" onclick=\"alterview('morefilter')\">" . lang('view'));
echo "<tbody id=\"morefilter\" style=\"display: none;\">";
trbasic(lang('check_state'), '', makeradio('mtagnew[setting][checked]', $checkedarr, empty($mtag['setting']['checked']) ? '0' : $mtag['setting']['checked']), '');
trbasic(lang('indays'), 'mtagnew[setting][indays]', !isset($mtag['setting']['indays']) ? '' : $mtag['setting']['indays']);
trbasic(lang('outdays'), 'mtagnew[setting][outdays]', !isset($mtag['setting']['outdays']) ? '' : $mtag['setting']['outdays']);
trbasic(lang('add_time_asc'), 'mtagnew[setting][orderby]', isset($mtag['setting']['orderby']) ? $mtag['setting']['orderby'] : 0, 'radio');
$createurl = " >><a href=\"?entry=liststr&tclass=mcommus_{$icuid}\" target=\"_blank\">" . lang('create_str') . "</a>";
trbasic(lang('order_str') . $createurl, 'mtagnew[setting][orderstr]', empty($mtag['setting']['orderstr']) ? '' : stripslashes($mtag['setting']['orderstr']), 'textarea');
$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');
echo "</tbody>";
tabfooter();
tabheader(lang('ptnaviset'));
trbasic(lang('nav_simple'), 'mtagnew[setting][simple]', empty($mtag['setting']['simple']) ? '0' : $mtag['setting']['simple'], 'radio');
trbasic(lang('nav_length'), 'mtagnew[setting][length]', isset($mtag['setting']['length']) ? $mtag['setting']['length'] : '');
tabfooter();
} else {
if (empty($mtagnew['template'])) {
示例11: url_nav
$url_type = 'mtdetail';
include 'urlsarr.inc.php';
url_nav($mtconfigs[$mtcid]['cname'], $urlsarr, 'base');
if (!submitcheck('bmtconfigdetail')) {
tabheader('[' . $mtconfigs[$mtcid]['cname'] . ']' . lang('spatemproset'), 'mtconfigdetail', '?entry=mtconfigs&action=mtconfigdetail&mtcid=' . $mtcid, 5);
trcategory(array("<input class=\"checkbox\" type=\"checkbox\" name=\"chkall\" onclick=\"checkall(this.form, 'selectid', 'chkall')\">", lang('enable'), array(lang('spacatcna'), 'txtL'), lang('spaindtem'), lang('spalistemp')));
echo "<tr class=\"txt\">\n" . "<td class=\"txtC w40\"><input class=\"checkbox\" type=\"checkbox\" name=\"selectid[0]\" value=\"0\"></td>\n" . "<td class=\"txtC w40\">Y</td>\n" . "<td class=\"txtL\"><b>" . lang('index') . "</b></td>\n" . "<td class=\"txtC\">" . (empty($setting[0]['index']) ? '-' : (empty($mtpls[$setting[0]['index']]['cname']) ? $setting[0]['index'] : $mtpls[$setting[0]['index']]['cname'])) . "</td>\n" . "<td class=\"txtC\">-</td>\n" . "</tr>";
foreach ($mcatalogs as $mcaid => $mcatalog) {
$indexstr = empty($setting[$mcaid]['index']) ? '-' : (empty($mtpls[$setting[$mcaid]['index']]['cname']) ? $setting[$mcaid]['index'] : $mtpls[$setting[$mcaid]['index']]['cname']);
$liststr = empty($setting[$mcaid]['list']) ? '-' : (empty($mtpls[$setting[$mcaid]['list']]['cname']) ? $setting[$mcaid]['list'] : $mtpls[$setting[$mcaid]['list']]['cname']);
$titlestr = isset($setting[$mcaid]) ? '<b>' . $mcatalog['title'] . '</b>' : $mcatalog['title'];
echo "<tr class=\"txt\">\n" . "<td class=\"txtC w40\"><input class=\"checkbox\" type=\"checkbox\" name=\"selectid[{$mcaid}]\" value=\"{$mcaid}\"></td>\n" . "<td class=\"txtC w40\">" . (isset($setting[$mcaid]) ? 'Y' : '-') . "</td>\n" . "<td class=\"txtL\">{$titlestr}</td>\n" . "<td class=\"txtC\">{$indexstr}</td>\n" . "<td class=\"txtC\">{$liststr}</td>\n" . "</tr>";
}
tabfooter();
tabheader(lang('operate_item'));
trbasic("<input class=\"checkbox\" type=\"checkbox\" name=\"cndeal[enable]\" value=\"1\"> " . lang('enaspacat'), '', makeradio('spaceenable', array('0' => lang('cancel'), '1' => lang('enable'))), '');
trbasic("<input class=\"checkbox\" type=\"checkbox\" name=\"cndeal[index]\" value=\"1\"> " . lang('spaindtem'), 'spaceindex', makeoption(array('' => lang('noset')) + mtplsarr('space')), 'select');
trbasic("<input class=\"checkbox\" type=\"checkbox\" name=\"cndeal[list]\" value=\"1\"> " . lang('spalistemp'), 'spacelist', makeoption(array('' => lang('noset')) + mtplsarr('space')), 'select');
tabfooter('bmtconfigdetail');
a_guide('mtconfigdetail');
} else {
if (empty($selectid)) {
amessage('selectopecat', M_REFERER);
}
if (empty($cndeal)) {
amessage('selectoperateitem', M_REFERER);
}
foreach ($selectid as $mcaid => $v) {
if (!empty($cndeal['enable']) && $mcaid) {
if (empty($spaceenable)) {
unset($setting[$mcaid]);
示例12: foreach
}
$wheresql = $mcnvar ? "WHERE mcnvar='{$mcnvar}'" : '';
$fromsql = "FROM {$tblprefix}mcnodes";
$filterstr = '';
foreach (array('staticmode', 'ptypestr', 'numperpic', 'mcnvar') as $k) {
$filterstr .= "&{$k}=" . rawurlencode(${$k});
}
if (!submitcheck('bcnodes')) {
url_nav(lang('staticadmin'), $urlsarr, 'mcnodes');
$staticarr = array('0' => lang('pascresta'), '1' => lang('actcresta'), '2' => lang('repstaurl'));
$ptypearr = array();
for ($i = 0; $i <= $mcn_max_addno; $i++) {
$ptypearr[$i] = $i ? lang('addp') . $i : lang('index');
}
tabheader(lang('crecatcnodpagsta'), 'archives', "?entry={$entry}&action={$action}{$param_suffix}");
trbasic(lang('stacremo'), '', makeradio('staticmode', $staticarr, $staticmode), '');
trbasic(lang('choatpaty'), '', makecheckbox('ptypes[]', $ptypearr, $ptypes), '');
trbasic(lang('numperpic20_500'), 'numperpic', $numperpic);
tabfooter();
$filtercounts = $db->result_one("SELECT count(*) {$fromsql} {$wheresql}");
tabheader(lang('ficatcnocuo') . $filtercounts);
$mcnvars = array('' => lang('alltype'), 'caid' => lang('catalog'));
foreach ($cotypes as $k => $v) {
!$v['self_reg'] && ($mcnvars['ccid' . $k] = $v['cname']);
}
foreach ($grouptypes as $k => $v) {
!$v['issystem'] && ($mcnvars['ugid' . $k] = $v['cname']);
}
$mcnvars['matid'] = lang('matype');
$mcnvars['mcnid'] = lang('customnode');
trbasic(lang('nodetype'), 'mcnvar', makeoption($mcnvars, $mcnvar), 'select');
示例13: updatecache
updatecache('dbfields');
amessage('dataiodfin', "?entry=dbdict&dbtable={$dbtable}");
}
} elseif ($action == 'dbreplace') {
if (empty($dbtable)) {
amessage('choosetable');
}
if (empty($dbfield)) {
amessage('choosefield');
}
if (!submitcheck('bdbreplace')) {
$mode0arr = array(0 => lang('normal'), 1 => lang('regular'));
tabheader(lang('field_cre_operate'), 'dbreplace', "?entry=dbdict&action={$action}&dbtable={$dbtable}&dbfield={$dbfield}", 2);
trbasic(lang('current_table'), '', $dbtable, '');
trbasic(lang('current_field'), '', $dbfield, '');
trbasic(lang('search_mode') . ' [<a href="http://dev.mysql.com/doc/refman/5.1/zh/regexp.html" target="_blank">' . lang('regular_help') . '</a>]', 'mode', makeradio('mode', $mode0arr, 0), '');
trbasic(lang('search_txt'), 'rpstring', '', 'textarea');
trbasic(lang('replace_txt'), 'tostring', '', 'textarea');
trbasic(lang('where_plus_string'), 'where', '', 'btext', lang('dont_inc_where'));
tabfooter('bdbreplace', lang('start_replace'));
a_guide('dbreplace');
} else {
if (!isset($mode) || !$rpstring || !$tostring) {
amessage('modseareptxtnot', M_REFERER);
}
$rs = $db->query("SHOW COLUMNS FROM {$dbtable}", 'SILENT');
unset($key);
while ($row = $db->fetch_array($rs)) {
if ('PRI' == $row['Key']) {
$key = $row['Field'];
break;
示例14: str_replace
$wheresql .= ($wheresql ? " AND " : "") . "checked='{$checked}'";
}
if ($overdated != '-1') {
$wheresql .= ($wheresql ? " AND " : "") . ($overdated ? "enddate>0 AND enddate<{$timestamp}" : "(endate=0 OR enddate>{$timestamp})");
}
$subject && ($wheresql .= ($wheresql ? " AND " : "") . "subject LIKE '%" . str_replace(array(' ', '*'), '%', addcslashes($subject, '%_')) . "%'");
$indays && ($wheresql .= ($wheresql ? " AND " : "") . "createdate>'" . ($timestamp - 86400 * $indays) . "'");
$outdays && ($wheresql .= ($wheresql ? " AND " : "") . "createdate<'" . ($timestamp - 86400 * $outdays) . "'");
$wheresql = empty($wheresql) ? '' : "WHERE " . $wheresql;
$caidsarr = array('0' => lang('allcoclass')) + vcaidsarr();
$checkedarr = array('-1' => lang('nolimit'), '0' => lang('nocheckvote'), '1' => lang('checkvote'));
$overdatedarr = array('-1' => lang('nolimit'), '0' => lang('noovervote'), '1' => lang('noovervote'));
tabheader(lang('filvote') . viewcheck('viewdetail', $viewdetail, 'tbodyfilter') . ' ' . strbutton('bfilter', 'filter0'), 'arcsedit', "?entry=votes&action=votesedit&page={$page}");
echo "<tbody id=\"tbodyfilter\" style=\"display: " . (empty($viewdetail) ? 'none' : '') . "\">";
trbasic(lang('belongcocl'), 'caid', makeoption($caidsarr, $caid), 'select');
trbasic(lang('ischeckvo'), '', makeradio('checked', $checkedarr, $checked), '');
trbasic(lang('isovevo'), 'overdated', makeoption($overdatedarr, $overdated), 'select');
trbasic(lang('votetitle'), 'subject', $subject);
trrange(lang('add_date'), array('outdays', empty($outdays) ? '' : $outdays, '', ' ' . lang('day_before') . ' - ', 5), array('indays', empty($indays) ? '' : $indays, '', ' ' . lang('day_in'), 5));
echo "</tbody>";
tabfooter();
$pagetmp = $page;
do {
$query = $db->query("SELECT * FROM {$tblprefix}votes {$wheresql} ORDER BY vieworder,vid DESC LIMIT " . ($pagetmp - 1) * $atpp . ",{$atpp}");
$pagetmp--;
} while (!$db->num_rows($query) && $pagetmp);
$itemvote = '';
while ($vote = $db->fetch_array($query)) {
$vid = $vote['vid'];
$vote['enddate'] = empty($vote['enddate']) ? '-' : date("{$dateformat}", $vote['enddate']);
$vote['ismulti'] = empty($vote['ismulti']) ? lang('schoise') : lang('mchoise');
示例15: mu_cnselect
function mu_cnselect($varname, $value = 0, $ucoid = 0, $addstr = '', $emode = 0, $evarname = '', $evalue = 0)
{
global $ucotypes;
$_mc = defined('M_MCENTER') ? 1 : 0;
if (empty($ucotypes[$ucoid])) {
return '';
}
$ucoclasses = read_cache('ucoclasses', $ucoid);
$uccidsarr = array();
foreach ($ucoclasses as $k => $v) {
$uccidsarr[$k] = $v['title'];
}
if (empty($ucotypes[$ucoid]['vmode'])) {
$str = "<select style=\"vertical-align: middle;\" name=\"{$varname}\">" . makeoption(($addstr ? array('0' => $addstr) : array()) + $uccidsarr, $value) . "</select>";
} else {
$str = makeradio($varname, ($addstr ? array('0' => $addstr) : array()) + $uccidsarr, $value);
}
if ($emode) {
!$evalue && ($evalue = '');
$str .= lang('enddate1') . ($emode > 1 ? '*' : '') . "<input type=\"text\" size=\"10\" id=\"{$evarname}\" name=\"{$evarname}\" value=\"{$evalue}\" onclick=\"ShowCalendar(this.id);\"><span id=\"alert_{$evarname}\" name=\"alert_{$evarname}\" class=\"" . ($_mc ? 'red' : 'mistake0') . "\"></span>\n";
}
return $str;
}