本文整理汇总了PHP中leuu函数的典型用法代码示例。如果您正苦于以下问题:PHP leuu函数的具体用法?PHP leuu怎么用?PHP leuu使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了leuu函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: trim
<li>
<?php
$pe = trim($vo['post_source']);
?>
<?php
if (!empty($pe)) {
?>
<a href="<?php
echo $vo["post_source"];
?>
" class="title" target="_blank">
<?php
} else {
?>
<a href="<?php
echo leuu('article/index', array('id' => $vo['tid']));
?>
" class="title" target="_blank"><?php
}
?>
<?php
echo $vo["post_title"];
?>
</a>
</li><?php
}
}
} else {
echo "";
}
?>
示例2: UU
function UU($url = '', $vars = '', $suffix = true, $domain = false)
{
return leuu($url, $vars, $suffix, $domain);
}
示例3: UrlParameters
private function UrlParameters($url = array())
{
unset($url[C('VAR_MODULE')]);
unset($url[C('VAR_CONTROLLER')]);
unset($url[C('VAR_ACTION')]);
foreach ($url as $key => $val) {
if ($key != $this->PageParam && $key != "_URL_") {
$arg[$key] = $val;
}
}
$arg[$this->PageParam] = '*';
if ($this->Static) {
//当启用静态地址,$this->PageLink传入的是array,并且包含两个 index,list
/*
* array(
* "index"=>"http://www.a.com/192.html",//这种是表示当前是首页,无需加分页1
* "list"=>"http://www.a.com/192-{page}.html",//这种表示分页非首页时启用
* )
*/
if (is_array($this->PageLink)) {
return str_replace('{page}', '*', $this->PageLink['list']);
} else {
return str_replace('{page}', '*', $this->PageLink);
}
} else {
if ($this->searching) {
$url = leuu(MODULE_NAME . "/" . CONTROLLER_NAME . "/" . ACTION_NAME) . "?" . http_build_query($arg);
} else {
$url = leuu(MODULE_NAME . "/" . CONTROLLER_NAME . "/" . ACTION_NAME, $arg);
}
return str_replace("%2A", "*", $url);
}
}
示例4: sp_get_menu_info
/**
*根据菜单id获得菜单的详细信息,可以整合进获取菜单数据的方法(_sp_get_menu_datas)中。
*@param num $id 菜单id,每个菜单id
* @author 5iymt <1145769693@qq.com>
*/
function sp_get_menu_info($id, $navdata = false)
{
if (empty($id) && $navdata) {
//若菜单id不存在,且菜单数据存在。
$nav = $navdata;
} else {
$nav_obj = M("Nav");
$id = intval($id);
$nav = $nav_obj->where("id={$id}")->find();
//菜单数据
}
$href = htmlspecialchars_decode($nav['href']);
$hrefold = $href;
if (strpos($hrefold, "{")) {
//序列 化的数据
$href = unserialize(stripslashes($nav['href']));
$default_app = strtolower(C("DEFAULT_MODULE"));
$href = strtolower(leuu($href['action'], $href['param']));
$g = C("VAR_MODULE");
$href = preg_replace("/\\/{$default_app}\\//", "/", $href);
$href = preg_replace("/{$g}={$default_app}&/", "", $href);
} else {
if ($hrefold == "home") {
$href = __ROOT__ . "/";
} else {
$href = $hrefold;
}
}
$nav['href'] = $href;
return $nav;
}
示例5: leuu
?>
<li style="height:25px;border-bottom:#b4b4b4 1px dashed;margin:6px;"><img src="/tpl/hualibootx/Public/images/tongzhi.png" width="15" height="15" /> <a href="<?php
echo leuu('article/index', array('id' => $vo['tid']));
?>
" target="_blank"><?php
echo msubstr($vo["post_title"], 0, 20, 'utf-8', false);
?>
</a></li><?php
}
}
} else {
echo "";
}
?>
<li style="text-align:right;padding-right:20px;"><a href="<?php
echo leuu('list/index', array('id' => get_new_cid($newtab[2])));
?>
" target="_blank"><img src="/tpl/hualibootx/Public/images/more.jpg" style="width:57px;height:15px;"/></a></li>
</ul>
</div>
</div>
</div><!--end-->
</header>
</div>
</div>
<div class="ctrl"></div>
</div>
</div>
</div>
<!-- end -->