本文整理汇总了PHP中strbutton函数的典型用法代码示例。如果您正苦于以下问题:PHP strbutton函数的具体用法?PHP strbutton怎么用?PHP strbutton使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了strbutton函数的18个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: url_nav
$filterstr .= "&ccid{$coid}=" . ${"ccid{$coid}"};
$wheresql .= " AND ename REGEXP 'ccid{$coid}=" . ${"ccid{$coid}"} . "(&|\$)'";
}
}
}
$wheresql = $wheresql ? "WHERE " . $wheresql : "";
if (!submitcheck('bcnodescommon')) {
url_nav(lang('cnodeadmin'), $urlsarr, 'cnodescommon');
echo form_str('cnodescommon', "?entry={$entry}&action={$action}{$param_suffix}&page={$page}");
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 "<select name=\"caid\">" . makeoption(array('0' => lang('catalog_attr')) + caidsarr($catalogs), $caid) . "</select> ";
echo "<select name=\"cnlevel\">" . makeoption(array('0' => lang('cnodelevelnum'), '1' => lang('acrossleve1'), '2' => lang('acrossleve2'), '3' => lang('acrossleve3'), '4' => lang('acrossleve4')), $cnlevel) . "</select> ";
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), '');
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:cnodes.inc.php
示例2: str_replace
$wheresql .= " AND a.subject='{$subject}'";
}
if (!empty($mname)) {
$wheresql .= " AND a.mname LIKE '%" . str_replace(array(' ', '*'), '%', addcslashes($mname, '%_')) . "%'";
}
if (!empty($indays)) {
$wheresql .= " AND s.createdate>'" . ($timestamp - 86400 * $indays) . "'";
}
if (!empty($outdays)) {
$wheresql .= " AND s.createdate<'" . ($timestamp - 86400 * $outdays) . "'";
}
if (!submitcheck('barcsedit')) {
$caidsarr = array('0' => lang('all_catalog')) + caidsarr($catalogs);
$chidsarr = array('0' => lang('all_channel')) + chidsarr();
$isatmarr = array('0' => lang('archive'), '1' => lang('attachment'));
tabheader(lang('filsubrec') . viewcheck('viewdetail', $viewdetail, 'tbodyfilter') . ' ' . strbutton('bfilter', 'filter0'), 'archivesedit', "?entry=subscribes{$param_suffix}{$forwardstr}");
trbasic(lang('subscribetype'), '', makeradio('isatm', $isatmarr, $isatm), '');
echo "<tbody id=\"tbodyfilter\" style=\"display: " . (empty($viewdetail) ? 'none' : '') . "\">";
trbasic(lang('be_catalog'), 'caid', makeoption($caidsarr, $caid), 'select');
trbasic(lang('achannel'), 'chid', makeoption($chidsarr, $chid), 'select');
trbasic(lang('search_member'), 'mname', $mname, 'text', lang('agsearchkey'));
trbasic(lang('archive_title'), 'subject', $subject);
trrange(lang('contpurchdat'), 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 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) * $atpp . ",{$atpp}");
$pagetmp--;
} while (!$db->num_rows($query) && $pagetmp);
$itemstr = '';
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:subscribes.inc.php
示例3: array
$wheresql .= " AND a.chid='{$chid}'";
}
if (!empty($subject)) {
$wheresql .= " AND a.subject='{$subject}'";
}
if (!empty($indays)) {
$wheresql .= " AND s.createdate>'" . ($timestamp - 86400 * $indays) . "'";
}
if (!empty($outdays)) {
$wheresql .= " AND s.createdate<'" . ($timestamp - 86400 * $outdays) . "'";
}
if (!submitcheck('barcsedit')) {
$caidsarr = array('0' => lang('allcatalog')) + caidsarr($catalogs);
$chidsarr = array('0' => lang('allchannel')) + chidsarr();
$isatmarr = array('0' => lang('archive'), '1' => lang('attachment'));
tabheader(lang('filtersubscribe') . viewcheck('viewdetail', $viewdetail, 'tbodyfilter') . ' ' . strbutton('bfilter', 'filter0'), "?action=subscribes{$forwardstr}");
trbasic(lang('subscribetype'), '', makeradio('isatm', $isatmarr, $isatm), '');
echo "<tbody id=\"tbodyfilter\" style=\"display: " . (empty($viewdetail) ? 'none' : '') . "\">";
trbasic(lang('belongcatalog'), 'caid', makeoption($caidsarr, $caid), 'select');
trbasic(lang('archivechannel'), 'chid', makeoption($chidsarr, $chid), 'select');
trbasic(lang('archivetitle'), 'subject', $subject);
trrange(lang('purchasedate'), array('outdays', empty($outdays) ? '' : $outdays, '', ' ' . lang('daybefore') . ' - ', 5), array('indays', empty($indays) ? '' : $indays, '', ' ' . lang('dayin'), 5));
echo "</tbody>";
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:polarlight1989,项目名称:08cms,代码行数:31,代码来源:subscribes.inc.php
示例4: array
if ($indays) {
$wheresql .= " AND updatedate>'" . ($timestamp - 86400 * $indays) . "'";
}
if ($outdays) {
$wheresql .= " AND updatedate<'" . ($timestamp - 86400 * $outdays) . "'";
}
$urlsarr = array(0 => array(lang('nolimittype'), "?action={$action}"));
foreach ($mcommus as $k => $v) {
if ($v['cclass'] == 'comment') {
$urlsarr[$k] = array($v['cname'], "?action={$action}&cuid={$k}");
}
}
count($urlsarr) > 2 && murl_nav($urlsarr, $cuid, 6);
if (!submitcheck('barcsedit')) {
$checkedarr = array('-1' => lang('nolimit'), '0' => lang('nocheckcomment'), '1' => lang('checkedcomment'));
tabheader(lang('filtersetting') . viewcheck('viewdetail', $viewdetail, 'tbodyfilter') . ' ' . strbutton('bfilter', 'filter0'), 'arcsedit', "?action=amcomments&page={$page}");
echo "<tbody id=\"tbodyfilter\" style=\"display: " . (empty($viewdetail) ? 'none' : '') . "\">";
trhidden('cuid', $cuid);
trbasic(lang('checkstate'), '', makeradio('checked', $checkedarr, $checked), '');
trbasic(lang('uclass'), 'ucid', makeoption(array(0 => lang('allcoclass')) + $ucidsarr, $ucid), 'select');
trbasic(lang('srcmemberid'), 'fromid', $fromid);
trbasic(lang('srcmembercname'), 'fromname', $fromname, 'text', lang('agsearchkey'));
trrange(lang('commentdate'), array('outdays', empty($outdays) ? '' : $outdays, '', ' ' . lang('daybefore') . ' - ', 5), array('indays', empty($indays) ? '' : $indays, '', ' ' . lang('dayin'), 5));
echo "</tbody>";
tabfooter();
$pagetmp = $page;
do {
$query = $db->query("SELECT * {$fromsql} {$wheresql} ORDER BY cid DESC LIMIT " . ($pagetmp - 1) * $mrowpp . ",{$mrowpp}");
$pagetmp--;
} while (!$db->num_rows($query) && $pagetmp);
$itemstr = '';
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:amcomments.inc.php
示例5: count
$itemstr .= "<td class=\"txtC\">{$channelstr}</td>\n";
}
if (in_array('adddate', $u_lists)) {
$itemstr .= "<td class=\"txtC w100\">{$adddatestr}</td>\n";
}
if (in_array('edit', $u_lists)) {
$itemstr .= "<td class=\"txtC w35\">{$editstr}</td>\n";
}
$itemstr .= "</tr>\n";
}
$counts = $db->result_one("SELECT count(*) {$fromsql} {$wheresql}");
$multi = multi($counts, $atpp, $page, "?entry=reports&action=reportsedit{$param_suffix}{$filterstr}");
echo $itemstr;
tabfooter();
echo $multi;
echo '<br><br>' . strbutton('barcsedit', lang('delete')) . '</form>';
a_guide('reportsedit');
} else {
include M_ROOT . $u_tplname;
}
} else {
if (empty($selectid) && empty($select_all)) {
amessage('pchoosecontent', axaction(1, M_REFERER));
}
if (!empty($select_all)) {
$parastr = $dealstr = "";
$selectid = array();
$npage = empty($npage) ? 1 : $npage;
if (empty($pages)) {
$counts = $db->result_one("SELECT count(*) {$fromsql} {$wheresql}");
$pages = @ceil($counts / $atpp);
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:reports.inc.php
示例6: tabfooter
$submitstr .= $a_field->submitstr;
}
}
tabfooter();
tabheader($commu['cname'] . ' - ' . lang('adminmessage') . (!$amode ? lang('readonly') : ''));
foreach ($bfields as $k => $v) {
if ($v['isadmin'] && !$v['isfunc'] && in_array($k, $fieldsarr)) {
$a_field->init();
$a_field->field = $v;
$a_field->oldvalue = isset($reportold[$k]) ? $reportold[$k] : '';
$a_field->trfield('reportnew', '', 'b');
$submitstr .= $a_field->submitstr;
}
}
unset($a_field);
tabfooter('submitreport', '', strbutton('', 'goback', "redirect('{$forward}');"));
check_submit_func($submitstr);
} else {
$c_upload = new cls_upload();
$bfields = fields_order($bfields);
$sqlstr = '';
$a_field = new cls_field();
foreach ($bfields as $k => $v) {
if (!$v['isadmin'] && !$v['isfunc'] && in_array($k, $fieldsarr)) {
$a_field->init();
$a_field->field = $v;
$a_field->oldvalue = isset($reportold[$k]) ? $reportold[$k] : '';
$a_field->deal('reportnew');
if (!empty($a_field->error)) {
$c_upload->rollback();
mcmessage($a_field->error, M_REFERER);
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:report.inc.php
示例7: trbasic
trbasic(lang('addtime'), '', date('Y-m-d H:i', $reportold['createdate']), '');
tabfooter();
$submitstr .= tr_regcode('report');
$a_field = new cls_field();
tabheader($mcommu['cname'] . ' - ' . lang('submitmessage'));
foreach ($mbfields as $k => $v) {
if (!$v['isadmin'] && !$v['isfunc'] && in_array($k, $fieldsarr)) {
$a_field->init();
$a_field->field = $v;
$a_field->oldvalue = isset($reportold[$k]) ? $reportold[$k] : '';
$a_field->trfield('reportnew', '', 'mb');
$submitstr .= $a_field->submitstr;
}
}
unset($a_field);
tabfooter('breportdetail', '', strbutton('', 'goback', "redirect('{$forward}');"));
check_submit_func($submitstr);
} else {
$c_upload = new cls_upload();
$mbfields = fields_order($mbfields);
$sqlstr = '';
$a_field = new cls_field();
foreach ($mbfields as $k => $v) {
if (!$v['isadmin'] && !$v['isfunc'] && in_array($k, $fieldsarr)) {
$a_field->init();
$a_field->field = $v;
$a_field->oldvalue = isset($reportold[$k]) ? $reportold[$k] : '';
$a_field->deal('reportnew');
if (!empty($a_field->error)) {
$c_upload->rollback();
mcmessage($a_field->error, M_REFERER);
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:mreport.inc.php
示例8: cnsonids
if (!empty($caid)) {
$caids = cnsonids($caid, $catalogs);
$wheresql .= " AND a.caid " . multi_str($caids);
}
$chid && ($wheresql .= " AND a.chid='{$chid}'");
$checked != '-1' && ($wheresql .= " AND cu.oid" . ($checked ? '>' : '=') . "'0'");
$subject && ($wheresql .= " AND a.subject LIKE '%" . str_replace(array(' ', '*'), '%', addcslashes($subject, '%_')) . "%'");
$mname && ($wheresql .= " AND cu.mname LIKE '%" . str_replace(array(' ', '*'), '%', addcslashes($mname, '%_')) . "%'");
$indays && ($wheresql .= " AND cu.createdate>'" . ($timestamp - 86400 * $indays) . "'");
$outdays && ($wheresql .= " AND cu.createdate<'" . ($timestamp - 86400 * $outdays) . "'");
if (!submitcheck('barcsedit')) {
url_nav(lang('goodsorder'), $urlsarr, 'purchase');
$caidsarr = array('0' => lang('all_catalog')) + caidsarr($catalogs);
$chidsarr = array('0' => lang('all_channel')) + chidsarr();
$checkedarr = array('-1' => lang('nolimit'), '0' => lang('nopurgoods'), '1' => lang('purcgood'));
tabheader(lang('filtgoods') . viewcheck('viewdetail', $viewdetail, 'tbodyfilter') . ' ' . strbutton('bfilter', 'filter0'), 'purchasesedit', "?entry=purchases&action=purchasesedit{$param_suffix}&page={$page}");
echo "<tbody id=\"tbodyfilter\" style=\"display: " . (empty($viewdetail) ? 'none' : '') . "\">";
trbasic(lang('ispurchased'), '', makeradio('checked', $checkedarr, $checked), '');
trbasic(lang('be_catalog'), 'caid', makeoption($caidsarr, $caid), 'select');
trbasic(lang('belongchannel'), 'chid', makeoption($chidsarr, $chid), 'select');
trbasic(lang('search_arc_title'), 'subject', $subject, 'text', lang('agsearchkey'));
trbasic(lang('search_member'), 'mname', $mname, 'text', lang('agsearchkey'));
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 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) {$wheresql} ORDER BY cu.cid DESC LIMIT " . ($pagetmp - 1) * $atpp . ",{$atpp}");
$pagetmp--;
} while (!$db->num_rows($query) && $pagetmp);
$itemstr = '';
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:purchases.inc.php
示例9: str_replace
$mname && ($wheresql .= ($wheresql ? ' AND ' : '') . "mname LIKE '%" . str_replace(array(' ', '*'), '%', addcslashes($mname, '%_')) . "%'");
$indays && ($wheresql .= ($wheresql ? ' AND ' : '') . "createdate>'" . ($timestamp - 86400 * $indays) . "'");
$outdays && ($wheresql .= ($wheresql ? ' AND ' : '') . "createdate<'" . ($timestamp - 86400 * $outdays) . "'");
$filterstr = '';
foreach (array('viewdetail', 'matid', 'checked', 'mname', 'indays', 'outdays') as $k) {
$filterstr .= "&{$k}=" . rawurlencode(stripslashes(${$k}));
}
$wheresql = $wheresql ? "WHERE " . $wheresql : '';
if (!submitcheck('barcsedit')) {
$checkedarr = array('-1' => lang('nolimit'), '0' => lang('nocheck'), '1' => lang('checked'));
$matidsarr = array();
foreach ($matypes as $k => $v) {
$matidsarr[] = $matid == $k ? "<b>{$v['cname']}</b>" : "<a href=\"?entry=marchives&action=marchivesedit{$param_suffix}&matid={$k}\">{$v['cname']}</a>";
}
echo tab_list($matidsarr, 6);
tabheader(lang('filter0') . $matypes[$matid]['cname'] . viewcheck('viewdetail', $viewdetail, $actionid . 'tbodyfilter') . ' ' . strbutton('bfilter', 'filter0'), $actionid . 'arcsedit', "?entry=marchives&action=marchivesedit&page={$page}{$param_suffix}");
echo "<tbody id=\"{$actionid}tbodyfilter\" style=\"display: " . (empty($viewdetail) ? 'none' : '') . "\">";
trhidden('matid', $matid);
trbasic(lang('check_state'), '', makeradio('checked', $checkedarr, $checked), '');
trbasic(lang('search_member'), 'mname', $mname, 'text', lang('agsearchkey'));
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 * {$fromsql} {$wheresql} ORDER BY maid DESC LIMIT " . ($pagetmp - 1) * $atpp . ",{$atpp}");
$pagetmp--;
} while (!$db->num_rows($query) && $pagetmp);
$itemstr = '';
while ($row = $db->fetch_array($query)) {
$maid = $row['maid'];
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:marchives.inc.php
示例10: count
}
if (in_array('adddate', $u_lists)) {
$itemstr .= "<td class=\"item\">{$adddatestr}</td>\n";
}
if (in_array('updatedate', $u_lists)) {
$itemstr .= "<td class=\"item\">{$updatedatestr}</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=comments{$filterstr}");
echo $itemstr;
tabfooter();
echo $multi;
echo '<br><br>' . strbutton('barcsedit', 'delete');
m_guide(@$u_guide);
} else {
include M_ROOT . $u_tplname;
}
} else {
if (empty($selectid)) {
mcmessage('conoffer', M_REFERER);
}
$uedit = new cls_cuedit();
foreach ($selectid as $cid) {
if ($errno = $uedit->read($cid, 'comment')) {
continue;
}
$uedit->delete(1);
}
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:comments.inc.php
示例11: str_replace
if (!empty($mname)) {
$wheresql .= ($wheresql ? " AND " : "") . "mname LIKE '%" . str_replace(array(' ', '*'), '%', addcslashes($mname, '%_')) . "%'";
}
if (!empty($indays)) {
$wheresql .= ($wheresql ? " AND " : "") . "senddate>'" . ($timestamp - 86400 * $indays) . "'";
}
if (!empty($outdays)) {
$wheresql .= ($wheresql ? " AND " : "") . "senddate<'" . ($timestamp - 86400 * $outdays) . "'";
}
$wheresql = $wheresql ? "WHERE {$wheresql}" : '';
if (!submitcheck('barcsedit')) {
$pmodearr = array('-1' => lang('nolimit')) + $pmodearr;
$receivearr = array('-1' => lang('nolimit'), '0' => lang('noarrive'), '1' => lang('arrived'));
$transarr = array('-1' => lang('nolimit'), '0' => lang('notrans'), '1' => lang('transed'));
$poidsarr = array('' => lang('nolimit')) + $poids;
tabheader(lang('filpayrec') . viewcheck('viewdetail', $viewdetail, 'tbodyfilter') . " " . strbutton('bfilter', 'filter0'), 'arcsedit', "?entry=pays&action=paysedit&page={$page}");
echo "<tbody id=\"tbodyfilter\" style=\"display: " . (empty($viewdetail) ? 'none' : '') . "\">";
trbasic(lang('paymode'), '', makeradio('pmode', $pmodearr, $pmode), '');
trbasic(lang('casweaarr'), '', makeradio('receive', $receivearr, $receive), '');
trbasic(lang('currweattra'), '', makeradio('trans', $transarr, $trans), '');
trbasic(lang('onlpayinter'), '', makeradio('poid', $poidsarr, $poid), '');
trbasic(lang('paymember'), 'mname', $mname, 'text', lang('agsearchkey'));
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}pays {$wheresql} ORDER BY pid DESC LIMIT " . ($pagetmp - 1) * $atpp . ",{$atpp}");
$pagetmp--;
} while (!$db->num_rows($query) && $pagetmp);
$stritem = '';
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:pays.inc.php
示例12: str_replace
$wheresql = '';
$caid && ($wheresql .= ($wheresql ? " AND " : "") . "caid = '{$caid}'");
if ($checked != '-1') {
$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)) {
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:votes.inc.php
示例13: count
$itemstr .= "<td class=\"item\">{$mnamestr}</td>\n";
}
if (in_array('adddate', $u_lists)) {
$itemstr .= "<td class=\"item\">{$adddatestr}</td>\n";
}
if (in_array('edit', $u_lists)) {
$itemstr .= "<td class=\"item\">{$editstr}</td>\n";
}
$itemstr .= "</tr>\n";
}
$counts = $db->result_one("SELECT count(*) {$fromsql} {$wheresql}");
$multi = multi($counts, $mrowpp, $page, "?action=inanswers&aid={$aid}{$filterstr}");
echo $itemstr;
tabfooter();
echo $multi;
echo '<br><br>' . strbutton('barcsedit', 'submit') . '</form>';
m_guide(@$u_guide);
} else {
include M_ROOT . $u_tplname;
}
} else {
if ($aedit->archive['closed'] || $aedit->archive['finishdate'] && $aedit->archive['finishdate'] < $timestamp) {
mcmessage('questionclose', M_REFERER);
}
if (empty($currencynew)) {
mcmessage('chooseanswer', M_REFERER);
}
$auser = new cls_userinfo();
$sparenew = $aedit->archive['spare'];
foreach ($currencynew as $k => $v) {
$v = max(0, intval($v));
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:inanswers.inc.php
示例14: count
$itemstr .= "<td class=\"txtC\">{$catalogstr}</td>\n";
}
if (in_array('channel', $u_lists)) {
$itemstr .= "<td class=\"txtC\">{$channelstr}</td>\n";
}
if (in_array('admin', $u_lists)) {
$itemstr .= "<td class=\"txtC w35\">{$adminstr}</td>\n";
}
$itemstr .= "</tr>\n";
}
$counts = $db->result_one("SELECT count(*) {$fromsql} {$wheresql}");
$multi = multi($counts, $atpp, $page, "?entry=awnotas&action=awnotasedit{$filterstr}");
echo $itemstr;
tabfooter();
echo $multi;
echo '<br><br>' . strbutton('barcsedit', lang('nota_checkout')) . '</form>';
} else {
@(include M_ROOT . "./adminp/admina/{$u_tplname}");
}
} else {
if (empty($selectid) && empty($select_all)) {
amessage('selectnotaitem', M_REFERER);
}
if (!empty($select_all)) {
$selectid = array();
$npage = empty($npage) ? 1 : $npage;
if (empty($pages)) {
$counts = $db->result_one("SELECT count(*) {$fromsql} {$wheresql}");
$pages = @ceil($counts / $atpp);
}
if ($npage <= $pages) {
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:awnotas.inc.php
示例15: array
if (in_array('catalog', $u_filters)) {
$caidsarr = array('0' => lang('catalog')) + caidsarr($catalogs);
echo "<select style=\"vertical-align: middle;\" name=\"caid\">" . makeoption($caidsarr, $caid) . "</select> ";
}
foreach ($ucotypes as $k => $v) {
//报价类系的搜索
if (in_array('uccid' . $k, $u_filters) && $v['cclass'] == 'offer') {
$ucoclasses = read_cache('ucoclasses', $k);
$uccidsarr = array(0 => lang('nolimit') . $v['cname']);
foreach ($ucoclasses as $k1 => $v2) {
$uccidsarr[$k1] = $v1['title'];
}
echo "<select style=\"vertical-align: middle;\" name=\"uccid{$k}\">" . makeoption($uccidsarr, empty(${"uccid{$k}"}) ? 0 : ${"uccid{$k}"}) . "</select> ";
}
}
echo strbutton('bfilter', 'filter0') . '</td></tr>';
tabfooter();
$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.refreshdate DESC LIMIT " . ($pagetmp - 1) * $mrowpp . ",{$mrowpp}");
$pagetmp--;
} while (!$db->num_rows($query) && $pagetmp);
tabheader(empty($u_mtitle) ? lang('offerlist') : $u_mtitle, '', '', 30);
$cy_arr = array("<input class=\"checkbox\" type=\"checkbox\" name=\"chkall\" onclick=\"checkall(this.form, 'selectid', 'chkall')\">", lang('product'));
if (in_array('catalog', $u_lists)) {
$cy_arr[] = lang('catalog');
}
if (in_array('uclass', $u_lists)) {
$cy_arr[] = lang('mycoclass');
}
if (in_array('channel', $u_lists)) {
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:offers.inc.php
示例16: count
$itemstr .= "<td class=\"item\">{$mnamestr}</td>\n";
}
if (in_array('channel', $u_lists)) {
$itemstr .= "<td class=\"item\">{$channelstr}</td>\n";
}
if (in_array('subsite', $u_lists)) {
$itemstr .= "<td class=\"item\">{$subsitestr}</td>\n";
}
$itemstr .= "</tr>\n";
}
$counts = $db->result_one("SELECT count(*) {$fromsql} {$wheresql}");
$multi = multi($counts, $mrowpp, $page, "?action=loadold&aid={$aid}{$param_suffix}{$filterstr}");
echo $itemstr;
tabfooter();
echo $multi;
echo '<br><br>' . strbutton('bloadold', lang('load')) . '</form>';
m_guide(@$u_guide);
} else {
include M_ROOT . $u_tplname;
}
} else {
if (empty($selectid)) {
mcmessage('selectalbum');
}
$aedit = new cls_arcedit();
foreach ($selectid as $k) {
$aedit->set_aid($k);
$aedit->set_album($aid, 1);
$aedit->init();
}
mcmessage('setalbumfinish', "?action=loadold&aid={$aid}{$param_suffix}&page={$page}{$filterstr}");
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:loadold.inc.php
示例17: max
$page = !empty($page) ? max(1, intval($page)) : 1;
submitcheck('bfilter') && ($page = 1);
$keyword = empty($keyword) ? '' : $keyword;
$wheresql = '';
$fromsql = "FROM {$tblprefix}alangs";
$keyword && ($wheresql = "WHERE ename LIKE '%" . str_replace(array(' ', '*'), '%', addcslashes($keyword, '%_')) . "%' OR content LIKE '%" . str_replace(array(' ', '*'), '%', addcslashes($keyword, '%_')) . "%'");
$filterstr = '';
foreach (array('keyword') as $k) {
$filterstr .= "&{$k}=" . rawurlencode(stripslashes(${$k}));
}
if (!submitcheck('balangsedit')) {
echo form_str($actionid . 'arcsedit', "?entry=alangs&action=alangsedit&page={$page}");
tabheader_e();
echo "<tr><td class=\"txt txtleft\">";
echo lang('search_keyword') . " <input class=\"text\" name=\"keyword\" type=\"text\" value=\"{$keyword}\" size=\"10\"> ";
echo strbutton('bfilter', 'filter0');
echo "</td></tr>";
tabfooter();
$pagetmp = $page;
do {
$query = $db->query("SELECT * {$fromsql} {$wheresql} ORDER BY ename LIMIT " . ($pagetmp - 1) * $atpp . ",{$atpp}");
$pagetmp--;
} while (!$db->num_rows($query) && $pagetmp);
$itemstr = '';
while ($item = $db->fetch_array($query)) {
$itemstr .= "<tr class=\"txt\"><td class=\"txtC w40\"><input class=\"checkbox\" type=\"checkbox\" name=\"delete[{$item['ename']}]\" value=\"{$item['ename']}\">\n" . "<td class=\"txtL\">{$item['ename']}</td>\n" . "<td class=\"txtL\"><input type=\"text\" size=\"80\" name=\"alangsnew[{$item['ename']}][content]\" value=\"" . htmlspecialchars($item['content']) . "\"></td>\n" . "<td class=\"txtC w40\"><a href=\"?entry=alangs&action=alangdetail&ename={$item['ename']}\">" . lang('edit') . "</a></td>\n" . "</tr>\n";
}
$counts = $db->result_one("SELECT count(*) {$fromsql} {$wheresql}");
$multi = multi($counts, $atpp, $page, "?entry=alangs&action=alangsedit{$filterstr}");
tabheader(lang('alang_admin') . " >><a href=\"?entry=alangs&action=alangadd\">" . lang('add_alang') . '</a>', '', '', 7);
trcategory(array("<input class=\"checkbox\" type=\"checkbox\" name=\"chkall\" onclick=\"checkall(this.form, 'delete', 'chkall')\">" . lang('del'), lang('ename'), lang('remark'), lang('detail')));
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:alangs.inc.php
示例18: date
$updatedatestr = $row['updatedate'] ? date('Y-m-d', $row['updatedate']) : '-';
$viewstr = "<a id=\"{$action}_info_{$row['aid']}\" href=\"?action=arcview&aid={$row['aid']}\" onclick=\"return showInfo(this.id,this.href)\">" . lang('look') . "</a>";
$itemstr .= "<tr><td class=\"item\">{$selectstr}</td><td class=\"item2\">{$subjectstr}</td>\n";
$itemstr .= "<td class=\"item\">{$catalogstr}</td>\n";
$itemstr .= "<td class=\"item\">{$channelstr}</td>\n";
$itemstr .= "<td class=\"item\">{$offersstr}</td>\n";
$itemstr .= "<td class=\"item\">{$propricestr}</td>\n";
$itemstr .= "<td class=\"item\">{$avgpricestr}</td>\n";
$itemstr .= "<td class=\"item\">{$updatedatestr}</td>\n";
$itemstr .= "<td class=\"item\">{$viewstr}</td>\n";
$itemstr .= "</tr>\n";
}
$counts = $db->result_one("SELECT count(*) {$fromsql} {$wheresql}");
$multi = multi($counts, $mrowpp, $page, "?action=products{$filterstr}");
echo $itemstr;
tabfooter();
echo $multi;
echo '<br><br>' . strbutton('barcsedit', 'addtooffer');
} else {
if (empty($selectid)) {
mcmessage('selectarchive', axaction(2, M_REFERER));
}
$aedit = new cls_arcedit();
foreach ($selectid as $aid) {
$aedit->init();
$aedit->set_aid($aid);
$aedit->newoffer();
}
unset($aedit);
mcmessage('productadded', axaction(6, "?action=products{$filterstr}&page={$page}"));
}
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:products.inc.php
注:本文中的strbutton函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论