<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 "";
}
?>
Ejemplo n.º 2
0
function UU($url = '', $vars = '', $suffix = true, $domain = false)
{
    return leuu($url, $vars, $suffix, $domain);
}
Ejemplo n.º 3
0
 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);
     }
 }
Ejemplo n.º 4
0
/**
*根据菜单id获得菜单的详细信息,可以整合进获取菜单数据的方法(_sp_get_menu_datas)中。
*@param num $id  菜单id,每个菜单id
* @author 5iymt <*****@*****.**>
*/
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;
}
            ?>
<li style="height:25px;border-bottom:#b4b4b4 1px dashed;margin:6px;"><img src="/tpl/hualibootx/Public/images/tongzhi.png" width="15" height="15" />&nbsp;<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 -->