本文整理汇总了PHP中view_arcurl函数的典型用法代码示例。如果您正苦于以下问题:PHP view_arcurl函数的具体用法?PHP view_arcurl怎么用?PHP view_arcurl使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了view_arcurl函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: lang
if (in_array('adddate', $u_lists)) {
$cy_arr[] = lang('addtime');
}
if (in_array('updatedate', $u_lists)) {
$cy_arr[] = lang('updatetime');
}
if (in_array('refreshdate', $u_lists)) {
$cy_arr[] = lang('retime');
}
$cy_arr[] = lang('edit');
trcategory($cy_arr);
$itemstr = '';
while ($row = $db->fetch_array($query)) {
cu_checkend($row, 'reply');
$selectstr = "<input class=\"checkbox\" type=\"checkbox\" name=\"selectid[{$row['cid']}]\" value=\"{$row['cid']}\">";
$subjectstr = "<a href=\"" . view_arcurl($row) . "\" target=\"_blank\">{$row['asubject']}</a>";
$catalogstr = @$catalogs[$row['caid']]['title'];
$mnamestr = $row['mname'];
$channelstr = @$channels[$row['chid']]['cname'];
foreach ($ucotypes as $k => $v) {
if (in_array('uccid' . $k, $u_lists) && $v['cclass'] == 'reply') {
$ucoclasses = read_cache('ucoclasses', $k);
${'uccid' . $k . 'str'} = @$ucoclasses[$row['uccid' . $k]]['title'];
}
}
$checkstr = $row['checked'] ? 'Y' : '-';
$readstr = $row['aread'] ? 'Y' : '-';
$areplystr = $row['areply'] ? 'Y' : '-';
$adddatestr = $row['ucreatedate'] ? date('Y-m-d', $row['ucreatedate']) : '-';
$updatedatestr = $row['updatedate'] ? date('Y-m-d', $row['updatedate']) : '-';
$refreshdatestr = $row['refreshdate'] ? date('Y-m-d', $row['refreshdate']) : '-';
示例2: load_cache
$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');
//类别定义
foreach ($cotypes as $k => $v) {
if (!$v['self_reg'] && !in_array($k, $ccoids) && !in_array("ccid{$k}", $additems)) {
if (empty($pre_cns['ccid' . $k])) {
示例3: lang
}
if (in_array('enddate', $u_lists)) {
$cy_arr[] = lang('endtime');
}
if (in_array('view', $u_lists)) {
$cy_arr[] = lang('message');
}
if (in_array('admin', $u_lists)) {
$cy_arr[] = lang('admin');
}
trcategory($cy_arr);
$itemstr = '';
while ($row = $db->fetch_array($query)) {
$channel = read_cache('channel', $row['chid']);
$selectstr = "<input class=\"checkbox\" type=\"checkbox\" name=\"selectid[{$row['aid']}]\" value=\"{$row['aid']}\">";
$row['arcurl'] = view_arcurl($row);
$subjectstr = ($row['thumb'] ? lang('imged') : '') . " <a href={$row['arcurl']} target=\"_blank\">" . mhtmlspecialchars($row['subject']) . "</a>";
$catalogstr = @$catalogs[$row['caid']]['title'];
$uclassstr = $row['ucid'] ? $ucidsarr[$row['ucid']] : '-';
$channelstr = @$channel['cname'];
foreach ($cotypes as $k => $v) {
${'ccid' . $k . 'str'} = '';
if (!$v['self_reg'] && in_array('ccid' . $k, $u_lists) && $row['ccid' . $k]) {
$coclasses = read_cache('coclasses', $k);
${'ccid' . $k . 'str'} = cnstitle($row['ccid' . $k], $v['asmode'], $coclasses);
/////////////
}
}
$checkstr = $row['checked'] ? 'Y' : '-';
$validstr = !$row['enddate'] || $row['enddate'] > $timestamp ? 'Y' : '-';
$clicksstr = $row['clicks'];
示例4: amessage
}
if ($errno == 2) {
amessage('choosecommentobject');
}
if ($errno == 3) {
amessage('setcommuitem');
}
}
foreach (array('aid', 'commu', 'citems', 'fields') as $var) {
${$var} =& $uedit->{$var};
}
$oldrow =& $uedit->info;
$forward = empty($forward) ? M_REFERER : $forward;
$forwardstr = '&forward=' . rawurlencode($forward);
if (!submitcheck('bcommentdetail')) {
tabheader($commu['cname'] . ' ' . "<a href=\"" . view_arcurl($oldrow) . "\" target=\"_blank\">>> " . $oldrow['subject'] . "</a>", 'commudetail', "?entry=comments&action=commentdetail&cid={$cid}{$param_suffix}{$forwardstr}", 2, 1, 1);
$submitstr = '';
foreach ($ucotypes as $k => $v) {
if (in_array('uccid' . $k, $citems) && $v['umode'] != 1) {
trbasic($v['cname'], '', mu_cnselect("commentnew[uccid{$k}]", $oldrow['uccid' . $k], $k, lang('p_choose'), $v['emode'], "commentnew[uccid{$k}date]", @$oldrow["uccid{$k}date"] ? date('Y-m-d', $oldrow["uccid{$k}date"]) : ''), '');
$submitstr .= makesubmitstr("commentnew[uccid{$k}]", $v['notblank'], 0, 0, 0, 'common');
$v['emode'] == 2 && ($submitstr .= makesubmitstr("commentnew[uccid{$k}date]", 1, 0, 0, 0, 'date'));
}
}
$a_field = new cls_field();
foreach ($fields as $k => $v) {
if (!$v['isfunc']) {
$a_field->init();
$a_field->field = $v;
$a_field->oldvalue = $oldrow[$k];
if ($curuser->pmbypmids('field', $v['pmid'])) {
示例5: load_cache
load_cache('bfields,ucotypes');
$forward = empty($forward) ? M_REFERER : $forward;
$forwardstr = '&forward=' . rawurlencode($forward);
if (!($report = $db->fetch_one("SELECT * FROM {$tblprefix}reports WHERE cid='{$cid}'"))) {
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)) {
示例6: elseif
include M_ROOT . $u_tplname;
}
} elseif ($action == 'answerdetail') {
$forward = empty($forward) ? M_REFERER : $forward;
$forwardstr = '&forward=' . rawurlencode($forward);
if (!($answer = $db->fetch_one("SELECT * FROM {$tblprefix}answers WHERE cid='{$cid}'"))) {
amessage('chooseanswer');
}
$commu = read_cache('commu', $answer['cuid']);
$aedit = new cls_arcedit();
$aedit->set_aid($answer['aid']);
$aedit->detail_data();
if (!submitcheck('banswerdetail')) {
tabheader(lang('edit_answer'), 'answerdetail', "?entry=answers&action=answerdetail&cid={$cid}{$param_suffix}{$forwardstr}");
trbasic(lang('question_state'), '', $aedit->archive['closed'] || $aedit->archive['finishdate'] < $timestamp ? lang('question_closed') : lang('question_noclose'), '');
trbasic(lang('look_question'), '', "<a href=\"" . view_arcurl($aedit->archive) . "\" target=\"_blank\">>>" . mhtmlspecialchars($aedit->archive['subject']) . "</a>", '');
trbasic(lang('answer_content'), 'answernew[answer]', br2nl($answer['answer']), 'btextarea');
tabfooter('banswerdetail');
a_guide('answerdetail');
} else {
($aedit->archive['closed'] || $aedit->archive['finishdate'] < $timestamp) && amessage('questionclosed', axaction(2, M_REFERER));
$answernew['answer'] = empty($answernew['answer']) ? '' : trim($answernew['answer']);
empty($answernew['answer']) && amessage('inputanswercontent', axaction(2, M_REFERER));
!empty($commu['setting']['minlength']) && strlen($answernew['answer']) < $commu['setting']['minlength'] && amessage('answerovermin', axaction(2, M_REFERER));
!empty($commu['setting']['maxlength']) && ($answernew['answer'] = cutstr($answernew['answer'], $commu['setting']['maxlength']));
$answernew['answer'] = mnl2br(mhtmlspecialchars($answernew['answer']));
$db->query("UPDATE {$tblprefix}answers SET answer='{$answernew['answer']}' WHERE cid='{$cid}'");
adminlog(lang('answer_content_edit'), lang('edit_answer_content'));
amessage('updatesucceed', axaction(10, $forward), $commu['cname']);
}
}
示例7: multi_str
if (!empty($sitemap['setting']['indays'])) {
$sqlstr .= " AND createdate>" . ($timestamp - 86400 * $sitemap['setting']['indays']);
}
if (empty($sitemap['setting']['chsource'])) {
$sqlstr .= " AND chid " . multi_str($chids);
} else {
$sqlstr .= " AND chid " . multi_str($sitemap['setting']['chids']);
}
if (!empty($sitemap['setting']['casource'])) {
$sqlstr .= " AND caid " . multi_str($sitemap['setting']['caids']);
}
foreach ($cotypes as $coid => $cotype) {
if (!empty($sitemap['setting']['cosource' . $coid])) {
if ($cnsql = cnsql($coid, $sitemap['setting']['ccids' . $coid], '')) {
$sqlstr .= " AND {$cnsql}";
}
}
}
$life = empty($sitemap['setting']['life']) ? 0 : $sitemap['setting']['life'];
$datastr = "<?xml version=\"1.0\" encoding=\"{$mcharset}\"?>\n" . "<document>\n" . " <webSite>" . htmlspecialchars($cms_abs) . "</webSite>\n" . " <webMaster>{$adminemail}</webMaster>\n" . " <updatePeri>" . $life * 60 . "</updatePeri>\n";
$query = $db->query("SELECT aid FROM {$tblprefix}archives {$sqlstr} ORDER BY aid DESC LIMIT 0,100");
$aedit = new cls_arcedit();
while ($row = $db->fetch_array($query)) {
$aid = $row['aid'];
$aedit->init();
$aedit->set_aid($aid);
$aedit->detail_data(0);
$datastr .= " <item>\n" . " <title>" . htmlspecialchars($aedit->archive['subject']) . "</title>\n" . " <link>" . htmlspecialchars(view_arcurl($aedit->archive)) . "</link>\n" . " <text>" . htmlspecialchars($aedit->archive[$aedit->channel['baidu']]) . "</text>\n" . " <image>" . htmlspecialchars(view_atmurl($aedit->archive['thumb'])) . "</image>\n" . " <keywords>" . htmlspecialchars($aedit->archive['keywords']) . "</keywords>\n" . " <category>" . $catalogs[$aedit->archive['caid']]['title'] . "</category>\n" . " <author>" . htmlspecialchars($aedit->archive['author']) . "</author>\n" . " <source>" . htmlspecialchars($aedit->archive['source']) . "</source>\n" . " <pubDate>" . date('Y-m-d H:i:s', $aedit->archive['createdate']) . "</pubDate>\n" . " </item>\n";
}
$datastr .= "</document>";
}
示例8: mtrbasic
mtrbasic(lang('indays'), 'indays', $indays);
mtrbasic(lang('outdays'), 'outdays', $outdays);
mtabfooter('searchsubmit', lang('search'));
if (submitcheck('searchsubmit')) {
if ($search_repeat) {
empty($m_cookie['08cms_search_time']) ? msetcookie('08cms_search_time', '1', $search_repeat) : mcmessage('searchoverquick');
}
$pagetmp = $page;
do {
$query = $db->query("SELECT a.* {$fromstr} {$wherestr} {$orderstr} LIMIT " . ($pagetmp - 1) * $mrowpp . ",{$mrowpp}");
$pagetmp--;
} while (!$db->num_rows($query) && $pagetmp);
$itemarchive = '';
$no = $pagetmp * $mrowpp;
while ($archive = $db->fetch_array($query)) {
$no++;
$archive['arcurl'] = view_arcurl($archive);
$archive['subject'] = "<a href=\"{$archive['arcurl']}\" target=\"_blank\">" . mhtmlspecialchars($archive['subject']) . "</a>";
$archive['catalog'] = $catalogs[$archive['caid']]['title'];
$archive['createdate'] = date("{$dateformat} {$timeformat}", $archive['createdate']);
$itemarchive .= "<tr><td class=\"item\" width=\"40\">{$no}</td>\n" . "<td class=\"item2\">{$archive['subject']}</td>\n" . "<td align=\"center\" class=\"item\">{$archive['catalog']}</td>\n" . "<td align=\"center\" class=\"item\">{$archive['mname']}</td>\n" . "<td align=\"center\" class=\"item\" width=\"110\">{$archive['createdate']}</td></tr>\n";
}
$archivecount = $db->result_one("SELECT count(*) {$fromstr} {$wherestr}");
$search_max && ($archivecount = min($archivecount, $search_max));
$multi = multi($archivecount, $mrowpp, $page, "adminm.php?action=search&chid={$chid}&{$filterstr}&searchsubmit=1");
mtabheader(lang('searchresultlist'), '', '', 9);
mtrcategory(array(lang('sn'), lang('title'), lang('catalog'), lang('member'), lang('addtime')));
echo $itemarchive;
mtabfooter();
echo $multi;
}
示例9: mcmessage
if (!$curuser->isadmin()) {
mcmessage('noadminpermi', $forward);
}
$fromsql = "FROM {$tblprefix}reports cu LEFT JOIN {$tblprefix}archives a ON a.aid=cu.aid";
$wheresql = "WHERE cu.aid='{$aid}'";
if (!submitcheck('breportsedit')) {
$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.updatedate DESC LIMIT " . ($pagetmp - 1) * $mrowpp . ",{$mrowpp}");
$pagetmp--;
} while (!$db->num_rows($query) && $pagetmp);
$itemstr = '';
while ($item = $db->fetch_array($query)) {
$aid = $item['aid'];
$cid = $item['cid'];
$arcurl = view_arcurl($item);
$updatedate = date("{$dateformat}", $item['updatedate']);
$catalogstr = @$catalogs[$item['caid']]['title'];
$channelstr = @$channels[$item['chid']]['cname'];
$editstr = "<a href=\"?action=report&aid={$item['aid']}&cid={$cid}{$forwardstr}\">" . lang('edit') . "</a>";
$itemstr .= "<tr><td align=\"center\" class=\"item1\" width=\"30\"><input class=\"checkbox\" type=\"checkbox\" name=\"selectid[{$cid}]\" value=\"{$cid}\"></td>\n" . "<td class=\"item2\"><a href=\"{$arcurl}\" target=\"_blank\">" . mhtmlspecialchars($item['asubject']) . "</td>\n" . "<td align=\"center\" class=\"item1\">{$item['mname']}</td>\n" . "<td align=\"center\" class=\"item2\">{$catalogstr}</td>\n" . "<td align=\"center\" class=\"item1\">{$channelstr}</td>\n" . "<td align=\"center\" class=\"item2\" width=\"70\">{$updatedate}</td>\n" . "<td align=\"center\" class=\"item1\" width=\"30\">{$editstr}</td></tr>\n";
}
$counts = $db->result_one("SELECT count(*) {$fromsql} {$wheresql}");
$multi = multi($counts, $mrowpp, $page, "?action=reports&aid={$aid}");
tabheader(lang('reportlist'), 'arcsedit', "?action=reports&aid={$aid}&page={$page}", 8);
trcategory(array("<input class=\"checkbox\" type=\"checkbox\" name=\"chkall\" onclick=\"checkall(this.form, 'selectid', 'chkall')\">", lang('reportobject'), lang('member'), lang('catalog'), lang('channel'), lang('updatedate'), lang('edit')));
echo $itemstr;
tabfooter();
echo $multi;
tabfooter('breportsedit', lang('delete'));
} else {
示例10: elseif
} elseif (!empty($caid)) {
$cnarr['caid'] = $caid;
}
//手动指定了栏目
foreach ($cotypes as $k => $v) {
if (!$v['self_reg']) {
if (in_array($k, $incoids) && $aedit->archive['ccid' . $k]) {
$cnarr['ccid' . $k] = $aedit->archive['ccid' . $k];
} elseif (!empty(${'ccid' . $k})) {
$cnarr['ccid' . $k] = 'ccid' . $k;
}
//手动指定了分类
}
}
tabheader(lang('add_inalbum', $aedit->archive['subject']));
trbasic(lang('look_album'), '', "<a href=\"" . view_arcurl($aedit->archive) . "\" target=\"_blank\">>>" . $aedit->archive['subject'] . "</a>", '');
trbasic(lang('altype'), '', $channel['cname'], '');
//列出已指定的类目
foreach ($cnarr as $k => $v) {
$str_suffix .= "&{$k}={$v}";
$coid = $k == 'caid' ? 0 : str_replace('ccid', '', $k);
$coclasses = !$coid ? @$catalogs : read_cache('coclasses', $coid);
trbasic(lang('catas_pointed') . ' : ' . ($coid ? $cotypes[$coid]['cname'] : lang('catalog')), '', cnstitle($v, $coid ? $cotypes[$coid]['asmode'] : 0, $coclasses), '');
}
//直接在辑内添加的内容
$chids = array('-1');
//类目组合下允许的文档类型
if ($cnarr) {
$chids = $curuser->addidsfromcn($cnarr);
}
$addarr = array();
示例11: lang
echo "<input class=\"btn\" type=\"submit\" name=\"bfilter\" id=\"bfilter\" value=\"" . lang('filter0') . "\">";
echo "</td></tr></table>";
tabheader(lang('album_list'), '', '', 9);
$cy_arr = array(lang('choose'), lang('title'), lang('member'), lang('catalog'), lang('channel'));
trcategory($cy_arr);
$pagetmp = $page;
$atpp = 10;
do {
$query = $db->query("SELECT * {$fromsql} {$wheresql} ORDER BY aid DESC LIMIT " . ($pagetmp - 1) * $atpp . ",{$atpp}");
$pagetmp--;
} while (!$db->num_rows($query) && $pagetmp);
$itemstr = '';
while ($row = $db->fetch_array($query)) {
$channel = read_cache('channel', $row['chid']);
$itemstr .= "<tr class=\"txt\"><td class=\"txtC w50\" ><input class=\"checkbox\" type=\"checkbox\" name=\"selectid[{$row['aid']}]\" value=\"{$row['aid']}\"></td>";
$itemstr .= "<td class=\"txtL\"><a href=\"" . view_arcurl($row) . "\" target=\"_blank\">" . mhtmlspecialchars($row['subject']) . "</a></td>\n";
$itemstr .= "<td class=\"txtC\">{$row['mname']}</td>\n";
$itemstr .= "<td class=\"txtC\">" . @$acatalogs[$row['caid']]['title'] . "</td>\n";
$itemstr .= "<td class=\"txtC\">" . @$channel['cname'] . "</td>\n";
$itemstr .= "</tr>\n";
}
$counts = $db->result_one("SELECT count(*) {$fromsql} {$wheresql}");
$multi = multi($counts, $atpp, $page, "?win_id={$win_id}&field_id={$field_id}&show_id={$show_id}{$filterstr}");
echo $itemstr;
tabfooter();
echo $multi;
echo '</form>';
?>
</div>
<button id="btn_ok" onclick="setretval()" class="btn" style="display:none"><?php
示例12: trbasic
trbasic(lang('reward_spare_appeal'), '', $aedit->archive['currency'] . ' / ' . $aedit->archive['spare'] . ' / ' . $aedit->archive['appeals'], '');
trbasic(lang('question_adddate'), '', date("{$dateformat} {$timeformat}", $aedit->archive['createdate']), '');
trbasic(lang('answer_enddate'), '', date("{$dateformat} {$timeformat}", $aedit->archive['finishdate']), '');
trbasic(lang('appeal_enddate'), '', date("{$dateformat} {$timeformat}", $aedit->archive['appealdate']), '');
trbasic(lang('nota_checkout'), 'archivenew[notaclosed]', $aedit->archive['notaclosed'], 'radio');
tabfooter();
$pagetmp = $page;
do {
$query = $db->query("SELECT * FROM {$tblprefix}answers WHERE aid={$aid} ORDER BY cid DESC LIMIT " . ($pagetmp - 1) * $atpp . ",{$atpp}");
$pagetmp--;
} while (!$db->num_rows($query) && $pagetmp);
$itemstr = '';
while ($item = $db->fetch_array($query)) {
$cid = $item['cid'];
$item['answer'] = cutstr(br2nl($item['answer']), 50);
$arcurl = view_arcurl($aedit->archive);
$createdate = date("{$dateformat}", $item['createdate']);
$itemstr .= "<tr class=\"txt\">\n" . "<td class=\"txtC w30\"><input class=\"checkbox\" type=\"checkbox\" name=\"itemsnew[{$cid}][checked]\" value=\"1\"" . (empty($item['checked']) ? '' : ' checked') . "></td>\n" . "<td class=\"txtC w60\"><input type=\"text\" size=\"4\" name=\"itemsnew[{$cid}][currency]\" value=\"{$item['currency']}\"></td>\n" . "<td class=\"txtC w30\"><input class=\"checkbox\" type=\"checkbox\" name=\"itemsnew[{$cid}][appeal]\" value=\"1\"" . (empty($item['appeal']) ? '' : ' checked') . "></td>\n" . "<td class=\"txtL\">{$item['answer']}</td>\n" . "<td class=\"txtC w60\"><a href=\"?entry=awnotas&action=notarecord&aid={$aid}&cid={$cid}{$param_suffix}\">" . lang('look') . "</a></td>\n" . "<td class=\"txtC w80\">{$item['mname']}</td>\n" . "<td class=\"txtC w60\">{$createdate}</td></tr>\n";
}
$itemcount = $db->result_one("SELECT COUNT(*) FROM {$tblprefix}answers WHERE aid={$aid}");
$multi = multi($itemcount, $atpp, $page, "?entry=awnotas&action=awnotadetail&aid={$aid}&forward=" . urlencode($forward));
tabheader(lang('answer_nota_manager'), '', '', '9');
trcategory(array(lang('adopt'), lang('award'), lang('appeal'), lang('answer0'), lang('alter_record'), lang('member'), lang('add_date')));
echo $itemstr;
tabfooter();
echo $multi;
echo "<input class=\"button\" type=\"submit\" name=\"bawnotadetail\" value=\"" . lang('submit') . "\"></form>";
a_guide('awnotadetail');
} else {
$sql_arc = $sql_arcs = $sql_an = '';
$adoptsnew = $aedit->archive['adopts'];
示例13: cls_archive
$arc = new cls_archive();
$arc->arcid($aid);
!$arc->aid && message('choosearchive');
!$curuser->pmbypmids('cuadd', $commu['setting']['apmid']) && message('younoitempermis');
($arc->archive['closed'] || $arc->archive['finishdate'] < $timestamp) && message('questionclosed');
switch_cache($arc->archive['sid']);
$sid = $arc->archive['sid'];
if_siteclosed($sid);
cache_merge($commu, 'commu', $sid);
if (!($tplname = @$commu['addtpl'])) {
load_cache('mlangs');
include_once M_ROOT . "./include/admin.fun.php";
include_once M_ROOT . "./include/adminm.fun.php";
include_once M_ROOT . "./include/cheader.inc.php";
_header();
tabheader(lang('add') . $commu['cname'] . ' ' . "<a href=\"" . view_arcurl($arc->archive) . "\" target=\"_blank\">>> " . $arc->archive['subject'] . "</a>", 'answeradd', "?aid={$aid}{$forwardstr}", 2, 1, 1);
$submitstr = '';
trbasic(lang('answer0'), 'communew[answer]', '', 'textarea');
$submitstr .= makesubmitstr('communew[answer]', 1, 0, $commu['setting']['minlength'], $commu['setting']['maxlength'], 'multitext');
$submitstr .= tr_regcode('answer');
tabfooter('newcommu');
check_submit_func($submitstr);
} else {
$_da =& $arc->archive;
arc_parse($_da);
_aenter($_da, 1);
@extract($btags);
extract($_da, EXTR_OVERWRITE);
tpl_refresh($tplname);
@(include M_ROOT . "template/{$templatedir}/pcache/{$tplname}.php");
$_content = ob_get_contents();
示例14: load_cache
<?php
include_once M_ROOT . "./include/arcedit.cls.php";
load_cache('inmurls');
$aid = empty($aid) ? 0 : max(0, intval($aid));
empty($isat) && ($isat = 0);
if (!$aid) {
mcmessage('confchoosarchi');
}
$aedit = new cls_arcedit();
$aedit->set_aid($aid);
$aedit->basic_data(0);
$channel =& $aedit->channel;
if (!$aedit->aid) {
mcmessage('confchoosarchi');
}
$imuids = $channel['imuids'] ? explode(',', $channel['imuids']) : array();
if (empty($imuids)) {
foreach ($inmurls as $k => $v) {
$v['issys'] && ($imuids[] = $k);
}
}
tabheader(lang('archiveadmin') . " <a href=\"" . view_arcurl($aedit->archive) . "\" target=\"_blank\">>>" . $aedit->archive['subject'] . "</a>");
foreach ($imuids as $k) {
if (!empty($inmurls[$k]) && ($channel['isalbum'] || in_array($inmurls[$k]['uclass'], array('edit', 'setalbum', 'reply', 'answer', 'custom')))) {
trbasic(">><a href=\"" . $inmurls[$k]['url'] . "{$aid}\" onclick=\"return floatwin('open_newinarchive',this)\">" . $inmurls[$k]['cname'] . "</a>", '', $inmurls[$k]['remark'], '');
}
}
tabfooter();
示例15: str_replace
$wheresql = "WHERE cu.mid={$memberid} AND cu.oid>0";
$keyword && ($wheresql .= " AND a.subject LIKE '%" . str_replace(array(' ', '*'), '%', addcslashes($keyword, '%_')) . "%'");
echo form_str($action . 'arcsedit', "?action={$action}&page={$page}");
tabheader_e();
echo "<tr><td class=\"item2\">";
echo lang('keyword') . " <input class=\"text\" name=\"keyword\" type=\"text\" value=\"{$keyword}\" style=\"vertical-align: middle;\"> ";
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 FROM {$tblprefix}purchases cu LEFT JOIN {$tblprefix}archives a ON (a.aid=cu.aid) {$wheresql} ORDER BY cu.cid DESC LIMIT " . ($pagetmp - 1) * $mrowpp . ",{$mrowpp}");
$pagetmp--;
} while (!$db->num_rows($query) && $pagetmp);
$itemstr = '';
$i = $pagetmp * $mrowpp;
while ($item = $db->fetch_array($query)) {
$i++;
$item['arcurl'] = view_arcurl($item);
$item['catalog'] = empty($catalogs[$item['caid']]) ? lang('nocata') : $catalogs[$item['caid']]['title'];
$item['createdate'] = date("{$dateformat}", $item['ucreatedate']);
$item['checkedstr'] = $item['oid'] ? 'Y' : '-';
$item['orderstr'] = $item['oid'] ? "<a href=\"?action=orders&oid={$item['oid']}\">" . lang('look') . "</a>" : '-';
$itemstr .= "<tr><td class=\"item\" width=\"30\">{$i}</td>\n" . "<td class=\"item2\"><a href=\"{$item['arcurl']}\" target=\"_blank\">" . mhtmlspecialchars($item['asubject']) . "</a></td>\n" . "<td class=\"item\" width=\"80\">{$item['catalog']}</td>\n" . "<td class=\"item\" width=\"40\">{$item['nums']}</td>\n" . "<td class=\"item\" width=\"40\">{$item['price']}</td>\n" . "<td class=\"item\" width=\"40\">{$item['orderstr']}</td>\n" . "<td class=\"item\" width=\"100\">{$item['createdate']}</td></tr>\n";
}
$counts = $db->result_one("SELECT count(*) FROM {$tblprefix}purchases cu LEFT JOIN {$tblprefix}archives a ON (a.aid=cu.aid) {$wheresql}");
$multi = multi($counts, $mrowpp, $page, "?action=purchases{$filterstr}");
tabheader(lang('purchasedgoodslist'), '', '', 9);
trcategory(array(lang('sn'), array(lang('goodscname'), 'left'), lang('catalog'), lang('amount'), lang('price'), lang('orders'), lang('purchasedate')));
echo $itemstr;
tabfooter();
echo $multi;