本文整理汇总了PHP中RW函数的典型用法代码示例。如果您正苦于以下问题:PHP RW函数的具体用法?PHP RW怎么用?PHP RW使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了RW函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getLayoutLogo
function getLayoutLogo($layout)
{
if ($layout['imglogo_use']) {
return '<a href="' . RW(0) . '" style="margin:' . $layout['title_t'] . 'px 0 ' . $layout['title_b'] . 'px 0;"><img src="' . $GLOBALS['g']['s'] . '/layouts/' . $layout['dir'] . '/_var/' . $layout['imglogo'] . '" width="' . $layout['imglogo_w'] . '" height="' . $layout['imglogo_h'] . '" alt="" /></a>';
} else {
return '<h1><a href="' . RW(0) . '" style="margin:' . $layout['title_t'] . 'px 0 ' . $layout['title_b'] . 'px 0;color:' . $layout['title_color'] . ';" id="_layout_title_">' . $layout['title'] . '</a></h1>';
}
}
示例2: getRWurl
function getRWurl($url)
{
global $_HS, $g;
if ($_HS['rewrite']) {
return 'http://' . $_SERVER['HTTP_HOST'] . str_replace('./', '/', RW($url));
} else {
return $g['url_root'] . htmlspecialchars(str_replace('&', '&', str_replace('./', '/', RW($url))));
}
}
示例3: getMenuWidgetTree
function getMenuWidgetTree($site, $table, $is_child, $parent, $depth, $id, $w, $_C)
{
global $_CA;
if ($depth < $w['limit']) {
$CD = getDbSelect($table, ($site ? 'site=' . $site . ' and ' : '') . 'hidden=0 and parent=' . $parent . ' and depth=' . ($depth + 1) . ($w['mobile'] ? ' and mobile=1' : '') . ' order by gid asc', '*');
echo "\n";
for ($i = 0; $i < $depth; $i++) {
echo "\t";
}
if ($is_child) {
echo "<ul" . ($w['dropdown'] ? ' class="dropdown-menu" role="menu" aria-labelledby="dLabel"' : '') . ">\n";
if ($w['dropdown'] && $w['dispfmenu']) {
echo $_C['link'];
echo '<li role="presentation" class="divider"></li>' . "\n";
}
}
while ($C = db_fetch_array($CD)) {
$_newTree = ($id ? $id . '/' : '') . $C['id'];
$_href = $w['link'] == 'bookmark' ? ' data-scroll href="#' . ($C['is_child'] && $w['limit'] > 1 && !$parent && $w['dropdown'] ? '' : str_replace('/', '-', $_newTree)) . '"' : ' href="' . RW('c=' . $_newTree) . '"';
$_dropdown = $w['dropdown'] && $C['is_child'] && $C['depth'] == $w['depth'] + 1 && $w['olimit'] > 1 ? ' class="dropdown-toggle" data-toggle="dropdown"' : '';
$_name = $C['name'] . ($_dropdown ? ' <i class="caret"></i>' : '');
$_target = $C['target'] == '_blank' ? ' target="_blank"' : '';
$_addattr = $C['addattr'] ? ' ' . $C['addattr'] : '';
for ($i = 0; $i < $C['depth']; $i++) {
echo "\t";
}
if ($_dropdown) {
echo '<li class="dropdown' . (in_array($C['id'], $_CA) ? ' active' : '') . '"><a' . $_addattr . $_href . $_dropdown . $_target . '>' . $_name . '</a>';
} else {
echo '<li' . (in_array($C['id'], $_CA) ? ' class="active"' : '') . '><a' . $_addattr . $_href . $_dropdown . $_target . '>' . $_name . '</a>';
}
if ($C['is_child']) {
$C['link'] = '<li><a' . $_addattr . $_href . $_target . '>' . $C['name'] . '</a></li>';
getMenuWidgetTree($site, $table, $C['is_child'], $C['uid'], $C['depth'], $_newTree, $w, $C);
}
echo "</li>\n";
}
for ($i = 0; $i < $depth; $i++) {
echo "\t";
}
if ($is_child) {
echo "</ul>\n";
}
for ($i = 0; $i < $depth; $i++) {
echo "\t";
}
}
}
示例4: unserialize
?>
<?php
$adddata = unserialize($infoArticle['adddata']);
?>
<a href="<?php
echo RW("m=bbs&bid=event&uid=" . $infoArticle['uid']);
?>
"><img src="<?php
echo $_thumbimg;
?>
" alt="<?php
echo $infoArticle['subject'];
?>
" /></a>
<h2><a href="<?php
echo RW("m=bbs&uid=" . $infoArticle['uid']);
?>
"><?php
echo $infoArticle['subject'];
?>
</a></h2>
<!-- <p class="event"><?php
echo getStrCut(strip_tags(urldecode($adddata['desc'])), 100, "");
?>
</p> -->
<p class="event" style="width:310px;height:45px;"><?php
echo getStrCut(strip_tags(urldecode($adddata['desc'])), 100, "");
?>
</p>
</li>
<?php
示例5: checkAdmin
<?php
if (!defined('__KIMS__')) {
exit;
}
checkAdmin(0);
if ($type == 'pc') {
getDbUpdate($table['s_site'], "layout='" . $layout . "/main.php'", 'uid=' . $s);
getWindow(RW(0), 'PC모드 대표 레이아웃으로 적용되었습니다.', '', '', '');
exit;
} else {
getDbUpdate($table['s_site'], "m_layout='" . $layout . "/main.php'", 'uid=' . $s);
getLink('', '', '모바일웹 대표레이아웃으로 적용되었습니다. \\n\\n모바일기기나 에뮬레이터로 확인하세요.', '');
}
示例6: RW
</ul>
</div>
<div class="quick">
<h3><img src="/pages/image/trainfomain/title_quick.gif" alt="주요여행정보 바로가기" /></h3>
<ul>
<li><a href="<?php
echo RW("m=bbs&bbsid=travelinfo2&uid=1032");
?>
"><img src="/pages/image/trainfomain/quick_01.gif" alt="" /></a></li>
<li><a href="<?php
echo RW("m=bbs&bbsid=travelinfo2&uid=1025");
?>
"><img src="/pages/image/trainfomain/quick_02.gif" alt="" /></a></li>
<?php
if ($r == "maldives") {
?>
<li><a href="<?php
echo RW("m=bbs&bbsid=travelinfo2&uid=1060");
?>
"><img src="/pages/image/trainfomain/quick_03_01.gif" alt="" /></a></li>
<?php
} else {
?>
<li><a href="/?r=mexico&m=bbs&bid=travelinfo2&uid=2529"><img src="/pages/image/trainfomain/quick_03_02.gif" alt="" /></a></li>
<?php
}
?>
</ul>
</div>
<div class="clear"></div>
</div>
示例7: _LANG
echo _LANG('a2029', 'site');
?>
</button>
</span>
<div id="guide_menucode" class="collapse rb-guide">
<ul>
<li><?php
echo _LANG('a2030', 'site');
?>
</li>
<li><?php
echo _LANG('a2031', 'site');
?>
<code><?php
echo RW('c=<span class="b">CODE</span>');
?>
</code></li>
<li><?php
echo _LANG('a2032', 'site');
?>
</li>
</ul>
</div>
</div>
</div>
<?php
}
?>
<?php
if ($is_fcategory && $CINFO['is_child']) {
示例8: date
$_date = $d['layout']['bbs4_day'] != '' ? date('YmdHis', mktime(0, 0, 0, substr($date['today'], 4, 2), substr($date['today'], 6, 2) - $d['layout']['bbs4_day'], $date['year'])) : 0;
?>
<?php
$_RCD = getDbArray($table['bbsdata'], 'bbs=' . $d['layout']['bbs4'] . ' and display=1 and d_regis > ' . $_date, '*', $_sort[0], $_sort[1], $d['layout']['bbs4_num'], 1);
?>
<?php
$_R = db_fetch_array($_RCD);
?>
<div class="tt">
<div class="ts"><?php
echo $_B['name'];
?>
</div>
<div class="tmore"><a href="<?php
echo RW('m=bbs&bid=' . $_B['id']);
?>
">더보기</a></div>
<div class="clear"></div>
</div>
<?php
if ($_R['uid']) {
?>
<?php
$_IMG = getImgs($_R['content'], 'jpg|jpeg');
?>
<div class="thumb"><a href="<?php
echo getPostLink($_R);
?>
"><img src="<?php
echo $_IMG[0] ? $_IMG[0] : $g['img_core'] . '/blank.gif';
示例9: getLink
<?php
if (!defined('__KIMS__')) {
exit;
}
if (!$mod) {
getLink(RW(0), '', '', '');
}
include_once $g['dir_module'] . 'var/var.php';
$iframe = 'Y';
$g['dir_module_skin'] = $g['dir_module'] . 'theme/' . $d['upload']['theme'] . '/';
$g['url_module_skin'] = $g['url_module'] . '/theme/' . $d['upload']['theme'];
$g['img_module_skin'] = $g['url_module_skin'] . '/image';
$g['dir_module_mode'] = $g['dir_module_skin'] . $mod;
$g['url_module_mode'] = $g['url_module_skin'] . '/' . $mod;
$g['main'] = $g['dir_module_mode'] . '.php';
示例10: RW
"<?php
if (!$R['uid'] && !$g['device']) {
?>
autofocus<?php
}
?>
>
<span class="input-group-btn">
<button class="btn btn-default rb-help-btn" type="button" data-toggle="collapse" data-target="#bbs_name-guide" data-tooltip="tooltip" title="도움말"><i class="fa fa-question-circle fa-lg"></i></button>
</span>
<?php
if ($R['uid']) {
?>
<span class="input-group-btn">
<a href="<?php
echo RW('m=' . $module . '&bid=' . $R['id']);
?>
" target="_blank" class="btn btn-default" data-tooltip="tooltip" title="게시판 보기">
<i class="fa fa-link fa-lg"></i>
</a>
</span>
<?php
}
?>
</div>
<p class="help-block collapse alert alert-warning" id="bbs_name-guide">
<small> 게시판제목에 해당되며 한글,영문등 자유롭게 등록할 수 있습니다.</small>
</p>
</div>
</div>
<div class="form-group">
示例11: getMenuTxt
function getMenuTxt($site, $table, $j, $parent, $depth, $uid, $code)
{
global $g;
static $j, $string;
$xdepth = $depth + 1;
$CD = getDbSelect($table, ($site ? 'site=' . $site . ' and ' : '') . 'depth=' . $xdepth . ' and parent=' . $parent . ' order by gid asc', '*');
while ($C = db_fetch_array($CD)) {
$j++;
$code = $code . $C['id'] . '/';
$_code = substr($code, 0, strlen($code) - 1);
for ($i = 0; $i < $depth; $i++) {
$string .= "\t";
}
$string .= '[' . $xdepth . ']' . ($C['hidden'] ? '[숨김]' : '') . ($C['reject'] ? '[차단]' : '') . ($C['target'] ? '[새창]' : '') . $C['name'] . " = " . RW('c=' . $_code) . "\r\n";
if ($C['isson']) {
getMenuTxt($site, $table, $j, $C['uid'], $C['depth'], $uid, $code);
}
if ($xdepth == 1) {
$string .= "\r\n";
}
$code = '';
}
return $string;
}
示例12: RW
<li id="top-menu4"><a href="<?php
echo $_M1['redirect'] ? $_M1['joint'] : RW('c=' . $_M1['id']);
?>
" id="top-menu-head4">메뉴4</a></li>
<?php
$_M1 = db_fetch_array($_MENUS1);
?>
<li id="top-menu5"><a href="<?php
echo $_M1['redirect'] ? $_M1['joint'] : RW('c=' . $_M1['id']);
?>
" id="top-menu-head5">메뉴5</a></li>
<?php
$_M1 = db_fetch_array($_MENUS1);
?>
<li id="top-menu6"><a href="<?php
echo $_M1['redirect'] ? $_M1['joint'] : RW('c=' . $_M1['id']);
?>
" id="top-menu-head6">메뉴6</a></li>
</ul><script type="text/javascript">initTopmenuByMenuId(0, 0, 0, 0, "menu1")</script>
</div>
<?php
}
?>
</div>
<?php
if (strstr($_SERVER['HTTP_USER_AGENT'], 'MSIE 6')) {
?>
<div id="container"><?php
} else {
?>
<div id="container"><?php
示例13: explode
$g['bbs_reply'] = $g['bbs_write'] . '&reply=Y&uid=';
$g['bbs_action'] = $g['bbs_list'] . '&a=';
$g['bbs_delete'] = $g['bbs_action'] . 'delete&uid=';
$g['bbs_print'] = $g['bbs_reset'] . '&iframe=Y&print=Y&uid=';
if ($_HS['rewrite'] && $sort == 'gid' && $orderby == 'asc' && $recnum == $d['bbs']['recnum'] && $p == 1 && $bid && !$cat && !$skin && !$type && !$iframe) {
$g['bbs_reset'] = $g['r'] . '/b/' . $bid;
$g['bbs_list'] = $g['bbs_reset'];
$g['bbs_view'] = $g['bbs_list'] . '/';
$g['bbs_write'] = $g['bbs_list'] . '/write';
}
$g['dir_module_skin'] = $g['dir_module'] . 'theme/' . $d['bbs']['skin'] . '/';
$g['url_module_skin'] = $g['url_module'] . '/theme/' . $d['bbs']['skin'];
$g['img_module_skin'] = $g['url_module_skin'] . '/image';
$g['dir_module_mode'] = $g['dir_module_skin'] . $mod;
$g['url_module_mode'] = $g['url_module_skin'] . '/' . $mod;
if ($_m != $g['sys_module'] && !$_HM['uid']) {
$g['location'] .= ' > <a href="' . $g['bbs_reset'] . '">' . ($B['uid'] ? $B['name'] : '전체게시물') . '</a>';
}
if ($d['bbs']['sosokmenu']) {
$_CA = explode('/', $d['bbs']['sosokmenu']);
$g['location'] = '<a href="' . RW(0) . '">HOME</a>';
$_tmp['count'] = count($_CA);
$_tmp['split_id'] = '';
for ($_i = 0; $_i < $_tmp['count']; $_i++) {
$_tmp['location'] = getDbData($table['s_menu'], "id='" . $_CA[$_i] . "'", '*');
$_tmp['split_id'] .= ($_i ? '/' : '') . $_tmp['location']['id'];
$g['location'] .= ' > <a href="' . RW('c=' . $_tmp['split_id']) . '">' . $_tmp['location']['name'] . '</a>';
$_HM['uid'] = $_tmp['location']['uid'];
}
}
$g['main'] = $g['main'] ? $g['main'] : $g['dir_module_mode'] . '.php';
示例14: getDbSelect
"><?php
echo $_M2['name'];
?>
</a>
<?php
if ($_M2['isson']) {
?>
<ul>
<?php
$_MENUS3 = getDbSelect($table['s_menu'], 'site=' . $s . ' and parent=' . $_M2['uid'] . ' and hidden=0 and depth=3 order by gid asc', '*');
?>
<?php
while ($_M3 = db_fetch_array($_MENUS3)) {
?>
<li><a href="<?php
echo RW('c=' . $_CA[0] . '/' . $_CA[1] . '/' . $_M3['id']);
?>
" target="<?php
echo $_M3['target'];
?>
"<?php
if ($_M3['uid'] == $_HM['uid']) {
?>
class="on"<?php
}
?>
><?php
echo $_M3['name'];
?>
</a></li>
<?php
示例15: RW
<?php
$sitecode = $sitecode ? $sitecode : "maldives";
?>
<label for="sitecode">사이트 선택</label>
<select id="sitecode" name="sitecode" onchange="location.href='<?php
echo RW("m=" . $m . "&module=" . $module . "&sitecode=");
?>
'+this.value">
<option value="maldives"<?php
if ($sitecode == "maldives") {
?>
selected<?php
}
?>
>하이몰디브</option>
<option value="newtrevia"<?php
if ($sitecode == "newtrevia") {
?>
selected<?php
}
?>
>트레비아</option>
</select>
<hr />
<form name="formSlider" action="<?php
echo $g['s'];
?>
/" method="post" target="_action_frame_<?php
echo $m;
?>