本文整理汇总了PHP中FUNC_function函数的典型用法代码示例。如果您正苦于以下问题:PHP FUNC_function函数的具体用法?PHP FUNC_function怎么用?PHP FUNC_function使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了FUNC_function函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: content_558ccd4dd0f599_85649892
function content_558ccd4dd0f599_85649892($_smarty_tpl)
{
if (!is_callable('smarty_function_load_data')) {
include '/Applications/XAMPP/xamppfiles/htdocs/wmr_new/lib/Smarty/libs/plugins/function.load_data.php';
}
?>
<?php
echo smarty_function_load_data(array('assign' => "modelist", 'table' => "module", 'limit' => "20", 'orderby' => "id asc", 'where' => "install=1 and parent_id=0"), $_smarty_tpl);
?>
<?php
$_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['items']->_loop = false;
$_smarty_tpl->tpl_vars['myid'] = new Smarty_Variable();
$_from = $_smarty_tpl->tpl_vars['modelist']->value['list'];
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
$_smarty_tpl->tpl_vars['items']->_loop = true;
$_smarty_tpl->tpl_vars['myid']->value = $_smarty_tpl->tpl_vars['items']->key;
?>
<?php
echo smarty_function_load_data(array('assign' => "defaultmenu", 'table' => "menu", 'type' => "one", 'where' => "moduleid='" . (string) $_smarty_tpl->tpl_vars['items']->value['id'] . "' and `group` = '" . (string) $_smarty_tpl->tpl_vars['admininfo']->value['group'] . "'", 'fileds' => "*", 'orderby' => "id asc"), $_smarty_tpl);
?>
<?php
if (!empty($_smarty_tpl->tpl_vars['defaultmenu']->value)) {
?>
<li <?php
if ($_smarty_tpl->tpl_vars['Taction']->value == $_smarty_tpl->tpl_vars['items']->value['name'] || $_smarty_tpl->tpl_vars['moduleparent']->value == $_smarty_tpl->tpl_vars['items']->value['id']) {
?>
class="on" <?php
}
?>
>
<a href="<?php
echo FUNC_function(array('type' => 'url', 'link' => "/adminpage/" . (string) $_smarty_tpl->tpl_vars['items']->value['name'] . "/module/" . (string) $_smarty_tpl->tpl_vars['defaultmenu']->value['name']), $_smarty_tpl);
?>
">
<div class="lib ck<?php
echo $_smarty_tpl->tpl_vars['myid']->value + 1;
?>
"></div>
<div class="libtitle"><?php
echo $_smarty_tpl->tpl_vars['items']->value['cnname'];
?>
</div>
</a>
</li>
<?php
}
?>
<?php
}
}
开发者ID:snamper,项目名称:xiaoshuhaochi,代码行数:57,代码来源:2f2c8fcb7b62f797d5dd5a53359b9bb4c63461c7.file.admin_module.html.php
示例2: content_55921466c150c9_14629707
//.........这里部分代码省略.........
<div class="userinfo">
<div class="user_area">
用户名: <div class="user_name">
<?php
echo $_smarty_tpl->tpl_vars['admininfo']->value['username'];
?>
</div>
</div>
<!-- <div class="now_name" id="nowactioninfo">
网站首页
</div> -->
<!--提示导航 Begin-->
<ul class="top_nav">
<li>日期:
<span class="nav2 datainfo">
<?php
echo smarty_modifier_date_format(time(), "%Y-%m-%d");
?>
</span>
</li>
<!--<li>位置:
<span class="nav2 positioninfo" id="positionname2">网站首页</span>
</li>-->
<li class="nav2 orderinfo">
您有今天有 0 个订单待审核
</li>
</ul>
<!--提示导航 End-->
<div class="content_url">
<a href="<?php
echo FUNC_function(array('type' => 'url', 'link' => "/member/adminloginout"), $_smarty_tpl);
?>
" class="out">退出登录</a>
<a onClick="modifypwd();" href="#">修改密码</a>
</div>
</div>
<!-- 主内左区导航条-->
<div class="left_nav">
<ul>
<?php
echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tempdir']->value . "/public/admin_menu.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
?>
<li><a href="<?php
echo $_smarty_tpl->tpl_vars['siteurl']->value;
?>
" target="_blank">返回网站首页</a></li>
</ul>
</div>
<div class="left_navend">
</div>
<!-- 主内左区天气预报-->
<div class="weather" id="weatherinfo" style="display:none;">
<div class="todayweacher">
<div class="weacher_left">
<div id="wtoday_img"> </div>
<div><span id="wcity" style="padding-right:5px;"></span><span id="wqihou"></span></div>
</div>
<div class="weacher_right" id="wwendu">
开发者ID:snamper,项目名称:xiaoshuhaochi,代码行数:67,代码来源:abfb511794e9cd83d60d074a9b15a66d3299256c.file.siteset.html.php
示例3: content_559106b5506af7_24666571
//.........这里部分代码省略.........
<div class="userinfo">
<div class="user_area">
用户名: <div class="user_name">
<?php
echo $_smarty_tpl->tpl_vars['admininfo']->value['username'];
?>
</div>
</div>
<!-- <div class="now_name" id="nowactioninfo">
网站首页
</div> -->
<!--提示导航 Begin-->
<ul class="top_nav">
<li>日期:
<span class="nav2 datainfo">
<?php
echo smarty_modifier_date_format(time(), "%Y-%m-%d");
?>
</span>
</li>
<!--<li>位置:
<span class="nav2 positioninfo" id="positionname2">网站首页</span>
</li>-->
<li class="nav2 orderinfo">
您有今天有 0 个订单待审核
</li>
</ul>
<!--提示导航 End-->
<div class="content_url">
<a href="<?php
echo FUNC_function(array('type' => 'url', 'link' => "/member/adminloginout"), $_smarty_tpl);
?>
" class="out">退出登录</a>
<a onClick="modifypwd();" href="#">修改密码</a>
</div>
</div>
<!-- 主内左区导航条-->
<div class="left_nav">
<ul>
<?php
echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tempdir']->value . "/public/admin_menu.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
?>
<li><a href="<?php
echo $_smarty_tpl->tpl_vars['siteurl']->value;
?>
" target="_blank">返回网站首页</a></li>
</ul>
</div>
<div class="left_navend">
</div>
<!-- 主内左区天气预报-->
<div class="weather" id="weatherinfo" style="display:none;">
<div class="todayweacher">
<div class="weacher_left">
<div id="wtoday_img"> </div>
<div><span id="wcity" style="padding-right:5px;"></span><span id="wqihou"></span></div>
</div>
<div class="weacher_right" id="wwendu">
开发者ID:snamper,项目名称:xiaoshuhaochi,代码行数:67,代码来源:db3d2c5b4c415c554279f16b724cfcf1d51a788d.file.loginlist.html.php
示例4: content_555c488611a890_75707975
//.........这里部分代码省略.........
</div>
<div style="clear:both;"></div>
<div class="newmain">
<!-- 提示导航-->
<div class="top_nav">
<div class="nav2 datainfo">
<?php
echo smarty_modifier_date_format(time(), "%Y-%m-%d");
?>
</div>
<div class="nav2 positioninfo" id="positionname2">
网站首页
</div>
<div class="nav2 orderinfo">
您有今天有0 个订单待审核
</div>
</div>
<!-- 主内容区-->
<div class="newmain_all">
<!-- 主内左区-->
<div class="left_content">
<!-- 主内左区用户信息-->
<div class="userinfo">
<div class="user_area">
<div class="user_name">
<?php
echo $_smarty_tpl->tpl_vars['admininfo']->value['username'];
?>
</div>
<div class="content_url">
<a href="<?php
echo FUNC_function(array('type' => 'url', 'link' => "/member/adminloginout"), $_smarty_tpl);
?>
" class="out">退出</a>
<a onClick="modifypwd();" href="#">修改密码</a>
</div>
</div>
<div class="now_name" id="nowactioninfo">
网站首页
</div>
</div>
<!-- 主内左区导航条-->
<div class="left_nav">
<ul>
<?php
echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tempdir']->value . "/public/admin_menu.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
?>
<li style="text-align:center;"><a href="<?php
echo $_smarty_tpl->tpl_vars['siteurl']->value;
?>
" style="color:#0076cf;" target="_blank">返回网站首页</a></li>
</ul>
</div>
<div class="left_navend">
</div>
<!-- 主内左区天气预报-->
<div class="weather" id="weatherinfo" style="display:none;">
<div class="todayweacher">
<div class="weacher_left">
<div id="wtoday_img"> </div>
开发者ID:snamper,项目名称:xiaoshuhaochi,代码行数:67,代码来源:dfa6884f6715ba4b9d55d150f7632f1e8d1ddc11.file.orderlist.html.php
示例5: content_555c4699c73bb1_17905638
function content_555c4699c73bb1_17905638($_smarty_tpl)
{
if (!is_callable('smarty_function_load_data')) {
include 'D:\\wmr\\lib\\Smarty\\libs\\plugins\\function.load_data.php';
}
?>
<?php
if ($_smarty_tpl->tpl_vars['moduleparent']->value > 0) {
?>
<?php
echo smarty_function_load_data(array('assign' => "moduleall", 'table' => "module", 'limit' => "20", 'orderby' => "id asc", 'where' => "id ='" . (string) $_smarty_tpl->tpl_vars['moduleparent']->value . "' or parent_id = '" . (string) $_smarty_tpl->tpl_vars['moduleparent']->value . "'"), $_smarty_tpl);
?>
<?php
$_smarty_tpl->tpl_vars['itv'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['itv']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['moduleall']->value['list'];
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
foreach ($_from as $_smarty_tpl->tpl_vars['itv']->key => $_smarty_tpl->tpl_vars['itv']->value) {
$_smarty_tpl->tpl_vars['itv']->_loop = true;
?>
<?php
echo smarty_function_load_data(array('assign' => "menulist", 'table' => "menu", 'limit' => "20", 'orderby' => "id asc", 'where' => "moduleid ='" . (string) $_smarty_tpl->tpl_vars['itv']->value['id'] . "' and `group` = " . (string) $_smarty_tpl->tpl_vars['admininfo']->value['group']), $_smarty_tpl);
?>
<?php
$_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['items']->_loop = false;
$_smarty_tpl->tpl_vars['myid'] = new Smarty_Variable();
$_from = $_smarty_tpl->tpl_vars['menulist']->value['list'];
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
$_smarty_tpl->tpl_vars['items']->_loop = true;
$_smarty_tpl->tpl_vars['myid']->value = $_smarty_tpl->tpl_vars['items']->key;
?>
<li><div class="leftarrow"></div><a href="<?php
echo FUNC_function(array('type' => 'url', 'link' => "/adminpage/" . (string) $_smarty_tpl->tpl_vars['itv']->value['name'] . "/module/" . (string) $_smarty_tpl->tpl_vars['items']->value['name']), $_smarty_tpl);
?>
" <?php
if ($_smarty_tpl->tpl_vars['Taction']->value == $_smarty_tpl->tpl_vars['itv']->value['name'] && $_smarty_tpl->tpl_vars['items']->value['name'] == $_smarty_tpl->tpl_vars['tmodule']->value) {
?>
class="on"<?php
}
?>
><?php
echo $_smarty_tpl->tpl_vars['items']->value['cnname'];
?>
</a></li>
<?php
}
?>
<?php
}
?>
<?php
} else {
?>
<?php
echo smarty_function_load_data(array('assign' => "moduleall", 'table' => "module", 'limit' => "20", 'orderby' => "id asc", 'where' => "id ='" . (string) $_smarty_tpl->tpl_vars['moduleid']->value . "' or parent_id = '" . (string) $_smarty_tpl->tpl_vars['moduleid']->value . "'"), $_smarty_tpl);
?>
<?php
$_smarty_tpl->tpl_vars['itv'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['itv']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['moduleall']->value['list'];
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
foreach ($_from as $_smarty_tpl->tpl_vars['itv']->key => $_smarty_tpl->tpl_vars['itv']->value) {
$_smarty_tpl->tpl_vars['itv']->_loop = true;
?>
<?php
echo smarty_function_load_data(array('assign' => "menulist", 'table' => "menu", 'limit' => "20", 'orderby' => "id asc", 'where' => "moduleid ='" . (string) $_smarty_tpl->tpl_vars['itv']->value['id'] . "' and `group` = " . (string) $_smarty_tpl->tpl_vars['admininfo']->value['group']), $_smarty_tpl);
?>
<?php
$_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['items']->_loop = false;
$_smarty_tpl->tpl_vars['myid'] = new Smarty_Variable();
$_from = $_smarty_tpl->tpl_vars['menulist']->value['list'];
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
$_smarty_tpl->tpl_vars['items']->_loop = true;
$_smarty_tpl->tpl_vars['myid']->value = $_smarty_tpl->tpl_vars['items']->key;
?>
//.........这里部分代码省略.........
开发者ID:snamper,项目名称:xiaoshuhaochi,代码行数:101,代码来源:ec25db4e5b34dbde9b30180a67b807790b50f5ca.file.admin_menu.html.php
示例6: content_555d7197d20ba9_47392483
//.........这里部分代码省略.........
</script>
<!--[if lte IE 6]>
<script src="<?php
echo $_smarty_tpl->tpl_vars['siteurl']->value;
?>
/templates/<?php
echo $_smarty_tpl->tpl_vars['tempdir']->value;
?>
/public/js/DD_belatedPNG_0.0.8a.js" type="text/javascript"></script>
<script type="text/javascript">
DD_belatedPNG.fix('div, ul, img, li, input , a');
</script>
<script src="<?php
echo $_smarty_tpl->tpl_vars['siteurl']->value;
?>
/templates/<?php
echo $_smarty_tpl->tpl_vars['tempdir']->value;
?>
/public/js/ie6.js" type="text/javascript"></script>
<![endif]-->
</head>
<body>
<div id="toTop" style="left: 1212.5px; display: none;"></div>
<div class="top">
<div class="top_a">
<div class="top_a_show">
<div class="top_a_show_l">
<a href="<?php
echo FUNC_function(array('type' => 'url', 'link' => "/site/index"), $_smarty_tpl);
?>
" class=""><span class="topmcbck"></span> <div style="padding-left:25px;">欢迎光临<?php
echo $_smarty_tpl->tpl_vars['sitename']->value;
?>
</div></a>
</div>
<div class="top_a_show_r">
<?php
if (empty($_smarty_tpl->tpl_vars['member']->value['uid'])) {
?>
<div class="top_a_show_span"><a href="<?php
echo FUNC_function(array('type' => 'url', 'link' => "/member/regester"), $_smarty_tpl);
?>
">注册</a></div>
<div class="top_a_show_span">|</div>
<div class="top_a_show_span"><a href="<?php
echo FUNC_function(array('type' => 'url', 'link' => "/member/login"), $_smarty_tpl);
?>
">登陆</a></div>
<div class="top_a_show_span">|</div>
<a href="#"> <div class="sina"></div> </a>
<a href="#"> <div class="qq"></div> </a>
<?php
} else {
?>
<div class="top_a_show_span"><a href="<?php
echo FUNC_function(array('type' => 'url', 'link' => "/member/loginout"), $_smarty_tpl);
?>
">退出登陆</a></div>
<div class="top_a_show_span">|</div>
<div class="top_a_show_span"><a href="<?php
echo FUNC_function(array('type' => 'url', 'link' => "/order/usersorder"), $_smarty_tpl);
开发者ID:snamper,项目名称:xiaoshuhaochi,代码行数:67,代码来源:72f4e43932bab2e8320c852728a9d17a41479bff.file.index.html.php
示例7: content_555d722bb0d4b1_39741951
function content_555d722bb0d4b1_39741951($_smarty_tpl)
{
?>
<div class="waimaiset">
<div class="jbset <?php
if ($_smarty_tpl->tpl_vars['urlshort']->value == 'shop/useredit') {
?>
onset<?php
}
?>
" onclick="openlink('<?php
echo FUNC_function(array('type' => 'url', 'link' => "/shop/useredit"), $_smarty_tpl);
?>
');">
<img src="<?php
echo $_smarty_tpl->tpl_vars['siteurl']->value;
?>
/templates/<?php
echo $_smarty_tpl->tpl_vars['tempdir']->value;
?>
/public/shopcenter/images/jbBg.png" /><span>基本设置</span>
</div>
<?php
if (empty($_smarty_tpl->tpl_vars['shopinfo']->value['shoptype'])) {
?>
<div class="jbset <?php
if ($_smarty_tpl->tpl_vars['urlshort']->value == 'shop/usershopfast') {
?>
onset<?php
}
?>
" onclick="openlink('<?php
echo FUNC_function(array('type' => 'url', 'link' => "/shop/usershopfast"), $_smarty_tpl);
?>
');" >
<img src="<?php
echo $_smarty_tpl->tpl_vars['siteurl']->value;
?>
/templates/<?php
echo $_smarty_tpl->tpl_vars['tempdir']->value;
?>
/public/shopcenter/images/wmset.png" /><span>外卖设置</span>
</div>
<?php
} else {
?>
<div class="jbset <?php
if ($_smarty_tpl->tpl_vars['urlshort']->value == 'shop/usershopmarket') {
?>
onset<?php
}
?>
" onclick="openlink('<?php
echo FUNC_function(array('type' => 'url', 'link' => "/shop/usershopmarket"), $_smarty_tpl);
?>
')">
<img src="<?php
echo $_smarty_tpl->tpl_vars['siteurl']->value;
?>
/templates/<?php
echo $_smarty_tpl->tpl_vars['tempdir']->value;
?>
/public/shopcenter/images/wmset.png" /><span>超市市场</span>
</div>
<?php
}
?>
<div class="jbset <?php
if ($_smarty_tpl->tpl_vars['urlshort']->value == 'shop/usershopinstro') {
?>
onset<?php
}
?>
" onclick="openlink('<?php
echo FUNC_function(array('type' => 'url', 'link' => "/shop/usershopinstro"), $_smarty_tpl);
?>
');">
<img src="<?php
echo $_smarty_tpl->tpl_vars['siteurl']->value;
?>
/templates/<?php
echo $_smarty_tpl->tpl_vars['tempdir']->value;
?>
/public/shopcenter/images/dianpujieshao.png" /><span>店铺介绍</span>
</div>
<div class="jbset <?php
if ($_smarty_tpl->tpl_vars['urlshort']->value == 'shop/usershopnotice') {
?>
onset<?php
}
?>
" onclick="openlink('<?php
echo FUNC_function(array('type' => 'url', 'link' => "/shop/usershopnotice"), $_smarty_tpl);
?>
');">
<img src="<?php
echo $_smarty_tpl->tpl_vars['siteurl']->value;
?>
//.........这里部分代码省略.........
开发者ID:snamper,项目名称:xiaoshuhaochi,代码行数:101,代码来源:21ebe275f3e20c5d6936b19705d6282590b1ccdb.file.usereditmenu.html.php
示例8: content_555c46993264a5_36089963
//.........这里部分代码省略.........
</div>
<div style="clear:both;"></div>
<div class="newmain">
<!-- 提示导航-->
<div class="top_nav">
<div class="nav2 datainfo">
<?php
echo smarty_modifier_date_format(time(), "%Y-%m-%d");
?>
</div>
<div class="nav2 positioninfo" id="positionname2">
网站首页
</div>
<div class="nav2 orderinfo">
您有今天有0 个订单待审核
</div>
</div>
<!-- 主内容区-->
<div class="newmain_all">
<!-- 主内左区-->
<div class="left_content">
<!-- 主内左区用户信息-->
<div class="userinfo">
<div class="user_area">
<div class="user_name">
<?php
echo $_smarty_tpl->tpl_vars['admininfo']->value['username'];
?>
</div>
<div class="content_url">
<a href="<?php
echo FUNC_function(array('type' => 'url', 'link' => "/member/adminloginout"), $_smarty_tpl);
?>
" class="out">退出</a>
<a onClick="modifypwd();" href="#">修改密码</a>
</div>
</div>
<div class="now_name" id="nowactioninfo">
网站首页
</div>
</div>
<!-- 主内左区导航条-->
<div class="left_nav">
<ul>
<?php
echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tempdir']->value . "/public/admin_menu.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
?>
<li style="text-align:center;"><a href="<?php
echo $_smarty_tpl->tpl_vars['siteurl']->value;
?>
" style="color:#0076cf;" target="_blank">返回网站首页</a></li>
</ul>
</div>
<div class="left_navend">
</div>
<!-- 主内左区天气预报-->
<div class="weather" id="weatherinfo" style="display:none;">
<div class="todayweacher">
<div class="weacher_left">
<div id="wtoday_img"> </div>
开发者ID:snamper,项目名称:xiaoshuhaochi,代码行数:67,代码来源:36bba19f383e677ce1c159a6c9246c918ef3d830.file.area.html.php
示例9: content_55937da28b90d8_95785113
//.........这里部分代码省略.........
});
</script>
<!--[if lte IE 6]>
<script src="<?php
echo $_smarty_tpl->tpl_vars['siteurl']->value;
?>
/templates/<?php
echo $_smarty_tpl->tpl_vars['tempdir']->value;
?>
/public/js/DD_belatedPNG_0.0.8a.js" type="text/javascript"></script>
<script type="text/javascript">
DD_belatedPNG.fix('div, ul, img, li, input , a');
$('#footer').css('display','none');
</script>
<![endif]-->
</head>
<body>
<?php
echo smarty_function_load_data(array('assign' => "shopinfo", 'table' => "shop", 'where' => "`id`=" . (string) $_smarty_tpl->tpl_vars['adminshopid']->value, 'type' => "one"), $_smarty_tpl);
?>
<!---<div style="position: fixed;top: 0;left: 0;right: 0;bottom: 0;z-index: -1;background:url(<?php
echo $_smarty_tpl->tpl_vars['siteurl']->value;
?>
/templates/<?php
echo $_smarty_tpl->tpl_vars['tempdir']->value;
?>
/public/shopcenter/images/background.png);"></div>
header start-->
<div class="header">
<ul>
<li class="li_active">
<a href="<?php
echo FUNC_function(array('type' => 'url', 'link' => "/shop/useredit"), $_smarty_tpl);
?>
">店铺管理</a>
</li>
<li>
<a href="<?php
echo FUNC_function(array('type' => 'url', 'link' => "/order/shoporderlist"), $_smarty_tpl);
?>
">订单管理</a>
</li>
<li>
<a href="<?php
echo FUNC_function(array('type' => 'url', 'link' => "/order/fastfood"), $_smarty_tpl);
?>
">快速下单</a>
</li>
<li onclick="openlink('<?php
echo FUNC_function(array('type' => 'url', 'link' => "/single/singlelist"), $_smarty_tpl);
?>
');">
内容管理
</li>
<li onclick="openlink('<?php
echo FUNC_function(array('type' => 'url', 'link' => "/member/base"), $_smarty_tpl);
?>
');">
会员中心
</li>
<li onclick="openlink('<?php
echo FUNC_function(array('type' => 'url', 'link' => "/member/loginout"), $_smarty_tpl);
?>
');">
退出
开发者ID:snamper,项目名称:xiaoshuhaochi,代码行数:67,代码来源:2b4110f015499df9f8bff0bf8d3a78415984069f.file.cxrule.html.php
示例10: content_559240b557eec9_62185988
//.........这里部分代码省略.........
var url = siteurl+'/index.php?controller=member&action=login';
var uname = $("#login_cell").val();
var pwd = $("#login_password").val();
var info = {'uname':uname,'pwd':pwd,'logintype':'html5'};
var url = siteurl+'/index.php?controller=member&action=login&datatype=json&random=@random@'
$.ajax({
url: url.replace('@random@', 1+Math.round(Math.random()*1000)),
dataType: "json",
data:info,
success:function(content) {
$('#loading').toggle();
if(content.msg == false){
alert("登陆成功");
window.location.href= siteurl+'/index.php?controller=site&action=index&shoid='+shopid;
}else{
alert(content.msg);
$("#cover").hide();
}
},
error:function(){
$('#loading').toggle();
}
});
}
//注册
function savepwd(){
$('#loading').show();
var info = {'tname':$('.mobile_email_reg').val(),'phone':$('.mobile_email_reg').val(),'pwd':$('.password_reg').val(),'pwd2':$('.repassword_reg').val(),'checklogin':'html5','phoneyan':$('.code').val(),'regestercode':'1'};
var url = '<?php
echo FUNC_function(array('type' => 'url', 'link' => "/member/saveregester/random/@random@/datatype/json"), $_smarty_tpl);
?>
';
var backdata = ajaxback(url,info);
if(backdata.flag == false){
window.location.href = siteurl+'/index.php?controller=site&action=member';
}else{
$('#loading').hide();
alert(backdata.content);
}
}
//忘记密码
function changepwd(){
var phone = $("#mobile_email").val();
var code = $("#code").val();
var newpwd = $("#password").val();
var newpwd2 = $("#repassword").val();
var info = {'phone':phone,'code':code,'newpwd':newpwd,'newpwd2':newpwd2}
var url = siteurl+'/index.php?controller=member&action=saveuser&controlname=repwd&datatype=json&random=@random@'
$.ajax({
url: url.replace('@random@', 1+Math.round(Math.random()*1000)),
dataType: "json",
data:info,
success:function(content) {
alert("修改成功");
window.location.href= siteurl+'/index.php?controller=site&action=index';
if(content.msg == false){
window.location.href= siteurl+'/index.php?controller=wxsite&action=member&shoid='+shopid;
}else{
alert(content.msg);
开发者ID:snamper,项目名称:xiaoshuhaochi,代码行数:67,代码来源:640310d2fae9c108f96327196a85eb1be2eb4110.file.yregester.html.php
示例11: content_558286ee62f103_24460793
//.........这里部分代码省略.........
/* var myScroll;
function loaded() {
myScroll = new iScroll('wrapper', {
useTransform: false,
bounce:false,
onBeforeScrollStart: function (e) {
var target = e.target;
while (target.nodeType != 1) target = target.parentNode;
if (target.tagName != 'SELECT' && target.tagName != 'INPUT' && target.tagName != 'TEXTAREA')
e.preventDefault();
}
});
}*/
//document.addEventListener('touchmove', function (e) { e.preventDefault(); }, false);
//document.addEventListener('DOMContentLoaded', function () { setTimeout(loaded, 200); }, false);
</script>
</head>
<body>
<div id="loading" style="display: none;"><div class="loadingbox"><section class="ffffbox"><div class="loadingpice"></div></section></div></div>
<div id="hallist">
<section style="display:none;" class="cartchangetop" id="header">
<ul class="box_inline">
<li class="liwd50 redli" onclick="delbackshop('<?php
echo FUNC_function(array('type' => 'url', 'link' => "/wxsite/shopshow/id/" . (string) $_smarty_tpl->tpl_vars['id']->value), $_smarty_tpl);
?>
');">
重新点餐
</li>
<li class="liwd50" onclick="dolink('<?php
echo FUNC_function(array('type' => 'url', 'link' => "/wxsite/shopshow/id/" . (string) $_smarty_tpl->tpl_vars['id']->value), $_smarty_tpl);
?>
');">
再加点
</li>
</ul>
</section>
<ul class="order_top">
<li class="back"><span></span>返回</li>
<li>提交订单</li>
</ul>
<div id="wrapper">
<div id="scroller">
<!--菜品列表-->
<div class="order">
<h3 class="order_header">
<span class="header_1"></span>我的订单
<a href="#" onclick="delshopcart()" class="b">清空购物车</a>
<!-- <select name="DeliveryTime" id="DeliveryTime" class="mFlex1">
<option value="0">选择用餐时间</option>
<?php
$_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['items']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['timelist']->value;
if (!is_array($_from) && !is_object($_from)) {
开发者ID:snamper,项目名称:xiaoshuhaochi,代码行数:67,代码来源:cf5e1e22252a507ba81036de9a9c2c3f69757bc0.file.shopcart.html.php
示例12: content_558d045fc56221_97575332
//.........这里部分代码省略.........
});
</script>
<!--[if lte IE 6]>
<script src="<?php
echo $_smarty_tpl->tpl_vars['siteurl']->value;
?>
/templates/<?php
echo $_smarty_tpl->tpl_vars['tempdir']->value;
?>
/public/js/DD_belatedPNG_0.0.8a.js" type="text/javascript"></script>
<script type="text/javascript">
DD_belatedPNG.fix('div, ul, img, li, input , a');
$('#footer').css('display','none');
</script>
<![endif]-->
</head>
<body>
<?php
echo smarty_function_load_data(array('assign' => "shopinfo", 'table' => "shop", 'where' => "`id`=" . (string) $_smarty_tpl->tpl_vars['adminshopid']->value, 'type' => "one"), $_smarty_tpl);
?>
<!---<div style="position: fixed;top: 0;left: 0;right: 0;bottom: 0;z-index: -1;background:url(<?php
echo $_smarty_tpl->tpl_vars['siteurl']->value;
?>
/templates/<?php
echo $_smarty_tpl->tpl_vars['tempdir']->value;
?>
/public/shopcenter/images/background.png);"></div>
header start-->
<div class="header">
<ul>
<li class="li_active">
<a href="<?php
echo FUNC_function(array('type' => 'url', 'link' => "/shop/useredit"), $_smarty_tpl);
?>
">店铺管理</a>
</li>
<li>
<a href="<?php
echo FUNC_function(array('type' => 'url', 'link' => "/order/shoporderlist"), $_smarty_tpl);
?>
">订单管理</a>
</li>
<li>
<a href="<?php
echo FUNC_function(array('type' => 'url', 'link' => "/order/fastfood"), $_smarty_tpl);
?>
">快速下单</a>
</li>
<li onclick="openlink('<?php
echo FUNC_function(array('type' => 'url', 'link' => "/single/singlelist"), $_smarty_tpl);
?>
');">
内容管理
</li>
<li onclick="openlink('<?php
echo FUNC_function(array('type' => 'url', 'link' => "/member/base"), $_smarty_tpl);
?>
');">
会员中心
</li>
<li onclick="openlink('<?php
echo FUNC_function(array('type' => 'url', 'link' => "/member/loginout"), $_smarty_tpl);
?>
');">
退出
开发者ID:snamper,项目名称:xiaoshuhaochi,代码行数:67,代码来源:38b71e43e1e4eb8e23bb84378be89ba41489b519.file.goodslist.html.php
示例13: content_555c46b58ae046_21543522
function content_555c46b58ae046_21543522($_smarty_tpl)
{
?>
<link rel="stylesheet" type="text/css" href="<?php
echo $_smarty_tpl->tpl_vars['siteurl']->value;
?>
/templates/<?php
echo $_smarty_tpl->tpl_vars['tempdir']->value;
?>
/public/css/bootstrap.min.css">
<script src="<?php
echo $_smarty_tpl->tpl_vars['siteurl']->value;
?>
/templates/<?php
echo $_smarty_tpl->tpl_vars['tempdir']->value;
?>
/public/js/bootstrap.min.js" type="text/javascript" language="javascript"></script>
<div class="hc_collection">
<div class="hc_collection_head">
<div class="hc_collection_h">我的收藏</div>
<a class="collection_a" href="<?php
echo FUNC_function(array('type' => 'url', 'link' => "/shop/collect"), $_smarty_tpl);
?>
"></a>
<div class="clear"></div>
</div>
<div class="hc_collection_div">
<ul>
<?php
$_smarty_tpl->tpl_vars['items'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['items']->_loop = false;
$_smarty_tpl->tpl_vars['myid'] = new Smarty_Variable();
$_from = $_smarty_tpl->tpl_vars['collectlist']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
foreach ($_from as $_smarty_tpl->tpl_vars['items']->key => $_smarty_tpl->tpl_vars['items']->value) {
$_smarty_tpl->tpl_vars['items']->_loop = true;
$_smarty_tpl->tpl_vars['myid']->value = $_smarty_tpl->tpl_vars['items']->key;
?>
<?php
if (isset($_smarty_tpl->tpl_vars['items']->value['id'])) {
?>
<li shop_id="<?php
echo $_smarty_tpl->tpl_vars['items']->value['id'];
?>
" class="menu-list-box hc_collection_div_border_right">
<div style="float:left;" class="hc_shop_list_box">
<div class="hc_shop_list_box_left">
<div class="hc_shop_list_box_img">
<div class="hc_shop_list_box_img_div">
<a href="<?php
ob_start();
echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['shortname']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['item']->value['id'] : $tmp;
$_tmp1 = ob_get_clean();
echo FUNC_function(array('type' => 'url', 'link' => "/shop/index/id/" . $_tmp1), $_smarty_tpl);
?>
"><img src="<?php
echo ($tmp = @$_smarty_tpl->tpl_vars['items']->value['shoplogo']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['shoplogo']->value : $tmp;
?>
"></a>
</div>
</div>
<div class="hc_shop_list_box_span">
<?php
$_smarty_tpl->tpl_vars['itat'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['itat']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['mainattr']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
foreach ($_from as $_smarty_tpl->tpl_vars['itat']->key => $_smarty_tpl->tpl_vars['itat']->value) {
$_smarty_tpl->tpl_vars['itat']->_loop = true;
?>
<?php
if ($_smarty_tpl->tpl_vars['itat']->value['type'] == 'input') {
?>
<?php
$_smarty_tpl->tpl_vars['itaa'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['itaa']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['items']->value['attrdet'];
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
foreach ($_from as $_smarty_tpl->tpl_vars['itaa']->key => $_smarty_tpl->tpl_vars['itaa']->value) {
$_smarty_tpl->tpl_vars['itaa']->_loop = true;
?>
<?php
if ($_smarty_tpl->tpl_vars['itat']->value['id'] == $_smarty_tpl->tpl_vars['itaa']->value['firstattr']) {
?>
<?php
echo $_smarty_tpl->tpl_vars['itaa']->value['value'];
?>
<?php
}
?>
//.........这里部分代码省略.........
开发者ID:snamper,项目名称:xiaoshuhaochi,代码行数:101,代码来源:f5e1b2fe259890f0a102456963bf754424b8c870.file.collect.html.php
示例14: content_558d04748ffc53_67135058
//.........这里部分代码省略.........
});
</script>
<!--[if lte IE 6]>
<script src="<?php
echo $_smarty_tpl->tpl_vars['siteurl']->value;
?>
/templates/<?php
echo $_smarty_tpl->tpl_vars['tempdir']->value;
?>
/public/js/DD_belatedPNG_0.0.8a.js" type="text/javascript"></script>
<script type="text/javascript">
DD_belatedPNG.fix('div, ul, img, li, input , a');
$('#footer').css('display','none');
</script>
<![endif]-->
</head>
<body>
<?php
echo smarty_function_load_data(array('assign' => "shopinfo", 'table' => "shop", 'where' => "`id`=" . (string) $_smarty_tpl->tpl_vars['adminshopid']->value, 'type' => "one"), $_smarty_tpl);
?>
<!---<div style="position: fixed;top: 0;left: 0;right: 0;bottom: 0;z-index: -1;background:url(<?php
echo $_smarty_tpl->tpl_vars['siteurl']->value;
?>
/templates/<?php
echo $_smarty_tpl->tpl_vars['tempdir']->value;
?>
/public/shopcenter/images/background.png);"></div>
header start-->
<div class="header">
<ul>
<li class="li_active">
<a href="<?php
echo FUNC_function(array('type' => 'url', 'link' => "/shop/useredit"), $_smarty_tpl);
?>
">店铺管理</a>
</li>
<li>
<a href="<?php
echo FUNC_function(array('type' => 'url', 'link' => "/order/shoporderlist"), $_smarty_tpl);
?>
">订单管理</a>
</li>
<li>
<a href="<?php
echo FUNC_function(array('type' => 'url', 'link' => "/order/fastfood"), $_smarty_tpl);
?>
">快速下单</a>
</li>
<li onclick="openlink('<?php
echo FUNC_function(array('type' => 'url', 'link' => "/single/singlelist"), $_smarty_tpl);
?>
');">
内容管理
</li>
<li onclick="openlink('<?php
echo FUNC_function(array('type' => 'url', 'link' => "/member/base"), $_smarty_tpl);
?>
');">
会员中心
</li>
<li onclick="openlink('<?php
echo FUNC_function(array('type' => 'url', 'link' => "/member/loginout"), $_smarty_tpl);
?>
');">
退出
开发者ID:snamper,项目名称:xiaoshuhaochi,代码行数:67,代码来源:4f35456fd4d6382022e98ee3467a9d1df25c40ac.file.singlelist.html.php
示例15: content_5593b97bae2445_64899946
//.........这里部分代码省略.........
});
</script>
<!--[if lte IE 6]>
<script src="<?php
echo $_smarty_tpl->tpl_vars['siteurl']->value;
?>
/templates/<?php
echo $_smarty_tpl->tpl_vars['tempdir']->value;
?>
/public/js/DD_belatedPNG_0.0.8a.js" type="text/javascript"></script>
<script type="text/javascript">
DD_belatedPNG.fix('div, ul, img, li, input , a');
$('#footer').css('display','none');
</script>
<![endif]-->
</head>
<body>
<?php
echo smarty_function_load_data(array('assign' => "shopinfo", 'table' => "shop", 'where' => "`id`=" . (string) $_smarty_tpl->tpl_vars['adminshopid']->value, 'type' => "one"), $_smarty_tpl);
?>
<!---<div style="position: fixed;top: 0;left: 0;right: 0;bottom: 0;z-index: -1;background:url(<?php
echo $_smarty_tpl->tpl_vars['siteurl']->value;
?>
/templates/<?php
echo $_smarty_tpl->tpl_vars['tempdir']->value;
?>
/public/shopcenter/images/background.png);"></div>
header start-->
<div class="header">
<ul>
<li class="li_active">
<a href="<?php
echo FUNC_function(array('type' => 'url', 'link' => "/shop/useredit"), $_smarty_tpl);
?>
">店铺管理</a>
</li>
<li>
<a href="<?php
echo FUNC_function(array('type' => 'url', 'link' => "/order/shoporderlist"), $_smarty_tpl);
?>
">订单管理</a>
</li>
<li>
<a href="<?php
echo FUNC_function(array('type' => 'url', 'link' => "/order/fastfood"), $_smarty_tpl);
?>
">快速下单</a>
</li>
<li onclick="openlink('<?php
echo FUNC_function(array('type' => 'url', 'link' => "/single/singlelist"), $_smarty_tpl);
?>
');">
内容管理
</li>
<li onclick="openlink('<?php
echo FUNC_function(array('type' => 'url', 'link' => "/member/base"), $_smarty_tpl);
?>
');">
会员中心
</li>
<li onclick="openlink('<?php
echo FUNC_function(array('type' => 'url', 'link' => "/member/loginout"), $_smarty_tpl);
?>
');">
退出
开发者ID:snamper,项目名称:xiaoshuhaochi,代码行数:67,代码来源:4ebb7e7690617908325e58ef862ffebeca63e14f.file.setshoparea.html.php