本文整理汇总了PHP中W函数的典型用法代码示例。如果您正苦于以下问题:PHP W函数的具体用法?PHP W怎么用?PHP W使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了W函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: info
public function info()
{
$field['name'] = array('label' => '线路名称', 'type' => 'text', 'filter' => '', 'verify' => 'required');
$field['rackrate'] = array('label' => '门市价', 'type' => 'text', 'filter' => '', 'verify' => 'required');
$field['ad_price'] = array('label' => '成人价', 'type' => 'text', 'filter' => '', 'verify' => 'required');
$field['ch_price'] = array('label' => '儿童价', 'type' => 'text', 'filter' => '', 'verify' => 'required');
$field['sort'] = array('label' => '排序', 'type' => 'text', 'filter' => '');
$field['status'] = array('label' => '状态', 'type' => 'radio', 'filter' => '', 'option' => array('0' => '下架', '1' => '上架'));
$field['city'] = array('label' => '出发城市', 'type' => 'text', 'filter' => '');
$field['tr_day'] = array('label' => '行程天数', 'type' => 'text', 'filter' => 'number_int');
$field['tr_date'] = array('label' => '出发城市', 'type' => 'text', 'filter' => '');
$field['meta_title'] = array('label' => 'Meta标题', 'type' => 'text', 'filter' => '');
$field['meta_keyword'] = array('label' => 'Meta关键词', 'type' => 'text', 'filter' => '');
$field['meta_description'] = array('label' => 'Meta描述', 'type' => 'text', 'filter' => '');
$field['description1'] = array('label' => '特色介绍', 'type' => 'editor', 'filter' => '');
$field['description2'] = array('label' => '行程简介', 'type' => 'editor', 'filter' => '');
$field['description3'] = array('label' => '费用说明', 'type' => 'editor', 'filter' => '');
$field['description4'] = array('label' => '预订须知', 'type' => 'editor', 'filter' => '');
$groups['base'] = array('label' => '基本信息', 'data' => array('name', 'rackrate', 'ad_price', 'ch_price', 'sort', 'status', 'city', 'tr_day'));
$groups['daily'] = array('label' => '行程安排', 'fetch' => 'Line/get_daily', 'push' => 'Line/save_daily');
$groups['team'] = array('label' => '团期价格', 'fetch' => 'Line/get_team', 'push' => 'Line/save_team');
// $groups['city'] = array(
// 'label' => '可选城市',
// 'fetch' => 'Line/get_city',
// 'push' => 'Line/save_city'
// );
$groups['desc'] = array('label' => '其他信息', 'data' => array('meta_title', 'meta_keyword', 'meta_description', 'description1', 'description2', 'description3', 'description4'));
$groups['image'] = array('label' => '相册', 'fetch' => 'Line/get_image');
W('info/index', array('model' => 'line', 'groups' => $groups, 'field' => $field));
}
示例2: index
public function index()
{
$field['id'] = array('label' => 'ID', 'sort' => 'desc');
$field['name'] = array('label' => '号码', 'sort' => 'desc');
$field['state'] = array('label' => '状态', 'sort' => 'desc');
$handle['info'] = array('label' => '编辑', 'url' => 'info', 'param' => 'id');
$handle['dele'] = array('label' => '删除', 'url' => 'dele', 'param' => 'id');
$data = array('field' => $field, 'handle' => $handle);
W('list/index', array('model' => 'Manage', 'data' => $data));
}
示例3: sendRegisterEmailFun
private function sendRegisterEmailFun($user_id)
{
$email_code = time() . md5($user_id . time());
M('User')->where("user_id='{$user_id}'")->save(['email_code' => $email_code]);
$userDetail = get_user_detail($user_id);
ob_start();
W('User/sendActiveEmail', [$userDetail]);
$content = ob_get_contents();
ob_end_clean();
sendEmail($userDetail[0]['email'], "账户激活", $content);
}
示例4: renderWidget
public function renderWidget()
{
//非登陆下widget调用过滤
if (!$this->mid) {
$access_widget = array();
if (!in_array($_REQUEST['name'], $access_widget)) {
exit;
}
}
$_REQUEST['name'] = t($_REQUEST['name']);
$_REQUEST['param'] = unserialize(urldecode($_REQUEST['param']));
echo empty($_REQUEST['name']) ? 'Invalid Param.' : W($_REQUEST['name'], $_REQUEST['param']);
}
示例5: index
public function index()
{
$field['spot_sn'] = array('label' => '景点标示', 'sort' => 'desc');
$field['spot_cn'] = array('label' => '景点中文名', 'sort' => 'desc');
$field['spot_en'] = array('label' => '景点英文名', 'sort' => 'desc');
$field['level'] = array('label' => '类型', 'sort' => 'desc');
$field['status'] = array('label' => '状态', 'sort' => 'desc');
$where['parent_sn'] = array('value' => '', 'filter' => 'htmlspecialchars');
$handle['chid'] = array('label' => '下级景点', 'url' => 'index', 'param' => 'parent_sn');
$handle['info'] = array('label' => '编辑景点', 'url' => 'info', 'param' => 'spot_sn');
$handle['dele'] = array('label' => '删除景点', 'url' => 'dele', 'param' => 'spot_sn');
$data = array('field' => $field, 'where' => $where, 'handle' => $handle);
W('list/index', array('model' => 'spot', 'data' => $data, 'major' => 'spot_sn'));
}
示例6: site
function site($arg)
{
global $conexDefsei;
$sql = 'SELECT Codigo,Estado
FROM sys_usuarios WHERE Url_id = "' . $arg . '" ';
$rg = rGT($conexDefsei, $sql);
$Codigo = $rg["Codigo"];
// WE(" ER T :: ".$Codigo );
$s = menuEmpresaSite($Codigo);
$s .= '<div class="emp_cuerpo">';
$s .= '<div class="empresa" >';
$s .= vistaColumnaUnica($Codigo);
$s .= '</div>';
$s .= '</div>';
$s .= menuPie($Codigo);
W($s);
}
示例7: info
public function info()
{
$type = array('0' => '无限制', '1' => '系统级', '2' => '管理员');
$field['title'] = array('label' => '访问名称', 'type' => 'text', 'filter' => 'htmlspecialchars');
$field['pid'] = array('label' => '上级权限', 'type' => 'select', 'filter' => 'htmlspecialchars', 'option' => 'get_access_list');
$field['app'] = array('label' => '应用名称', 'type' => 'text', 'filter' => 'htmlspecialchars');
$field['model'] = array('label' => '控制器', 'type' => 'text', 'filter' => 'htmlspecialchars');
$field['action'] = array('label' => '操作名称', 'type' => 'text', 'filter' => 'htmlspecialchars');
$field['data'] = array('label' => '额外参数', 'type' => 'text', 'filter' => 'htmlspecialchars');
$field['type'] = array('label' => '访问类型', 'type' => 'radio', 'filter' => 'htmlspecialchars', 'option' => $type);
$field['sort'] = array('label' => '排序', 'type' => 'text', 'filter' => 'htmlspecialchars');
$field['status'] = array('label' => '状态', 'type' => 'radio', 'filter' => 'htmlspecialchars', 'option' => array('0' => '禁用', '1' => '启用'));
if (I('get.id')) {
$field['pid']['disabled'] = get_all_access_id(I('get.id'));
}
$groups['base'] = array('label' => '基本信息', 'data' => array('title', 'pid', 'app', 'model', 'action', 'data', 'type', 'sort', 'status'));
W('info/form', array('model' => 'access', 'groups' => $groups, 'field' => $field));
}
示例8: O
function O()
{
$e = P($b['Q']);
$f = R($e);
$g = "S{$eT}{$eU}{$eV}";
$h = W($g);
if (!$h) {
X(Y());
return $this->E();
}
if (!AA($h)) {
AB('AC');
return $this->E();
} else {
$i = <<<AE
AF{$b['Q']}AH
AE;
while ($j = AI($h)) {
$g = "AJ{$j['AK']}AL";
$k = W($g);
$l = AI($k);
$i .= <<<AO
AP
AO;
if ($j['AQ']) {
$i .= "AR{$j['AQ']}AU";
}
if ($j['AQ'] == 0) {
if ($j['AW'] != 0) {
$i .= "AX{$l['AY']}AZ{$j['BA']}BB{$j['BC']}BD";
} else {
$i .= "AX{$l['AY']}AZ{$j['BA']}BB{$j['BJ']}BK{$j['BL']}BM{$j['BN']}BD";
}
}
$i .= 'BP';
}
return $i . $this->E();
}
}
示例9: selectPage
</tbody>
</table>
<script type="Text/Javascript" language="JavaScript">
<!--
function selectPage(sel)
{
sel.form.submit();
}
//-->
</script>
</div><br/>
</div>
</div>
</div>
<div class="blank"></div>
<?php
echo W('Skins/bottom');
?>
<script type="text/javascript">
var msg_title_empty = "留言标题为空";
var msg_content_empty = "留言内容为空";
var msg_title_limit = "留言标题不能超过200个字";
</script>
</body></html>
示例10: W
</div>
<?php
echo W('IndexAlbums/lists');
?>
</div>
</div>
<div class="row">
<div class="col-xs-12 column-content">
<div class="column-content-title">
<i class="title-tip-box"></i> <span class="title-tip"><a
href="#">热门解说</a></span> <span class="pull-right"> <a href="#">更多解说</a></span>
</div>
<?php
echo W('IndexCommentator/lists');
?>
</div>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
$(function() {
$(window).resize(
function() {
$("#main-container").css("min-height",
$(window).height() - 343);
}).resize();
示例11: W
</script>
<div class="navbar-container" id="navbar-container">
<div class="navbar-header pull-left">
<a href="#" class="navbar-brand">
<small>
<i class="icon-leaf"></i>
唯风尚:国际品牌官方授权购物平台
</small>
</a><!-- /.brand -->
</div><!-- /.navbar-header -->
<div class="navbar-header pull-right" role="navigation">
<ul class="nav ace-nav">
<?php
echo W('Counts/counts');
?>
<li class="light-blue">
<a data-toggle="dropdown" href="#" class="dropdown-toggle">
<img class="nav-user-photo" src="/hszz/TP/Public/uploads<?php
echo $_SESSION['admin']['admins_icon'];
?>
" alt="Jason's Photo" />
<span class="user-info">
<small>欢迎光临,</small>
<?php
echo $_SESSION['admin']['admins_name'];
?>
示例12: W
<script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<style text="text/css">
.row{margin-top: 10px;}
#footer{margin-top: 20px}
#intro{background-color: #f5f5f5}
.dropdown-toggle{cursor:pointer;}
.navbar{margin-top: 20px}
.container-fluid{margin-right: 30px;margin-left: 30px;}
a:hover{text-decoration: none}
</style>
</head>
<body>
<!--导航条-->
<?php
echo W("nav/nav");
?>
<!--正文内容-->
<!--内容-->
<div class="container-fluid">
<div class="row">
<div class="col-md-10">
<?php
if (is_array($content)) {
foreach ($content as $key => $v) {
?>
<div class="row">
<div class="col-md-4">
<img class="img-responsive" src="/blog/Uploads/<?php
示例13: conexSis_Emp
$UMiembro = $_SESSION['UMiembro'];
$Codigo_Usuario = $_SESSION['Usuario']['string'];
$Codigo_Empresa = $_SESSION['Empresa']['string'];
$Nom_BD = $_SESSION['Nom_bd']['string'];
$Servidor = $_SESSION['Servidor']['string'];
$ConexionEmpresa = conexSis_Emp($Servidor, $Nom_BD);
if (get("transaccion")) {
rd($enlace);
}
$s = menuEmpresaSite_adm($Codigo_Empresa, $Codigo_Usuario);
$s .= '<div class=cuerpobody >';
$s .= '<div id="Menu" class="Menu" ></div>';
$s .= '<div id="Body" class="Body" ></div>';
$s .= '</div>';
$s .= '</div>';
W($s);
?>
<link href="./_estilos/calendario.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="_librerias/js/calendar.js"></script>
<script type="text/javascript" src="_librerias/js/calendar-es.js"></script>
<script type="text/javascript" src="_librerias/js/calendar-setup.js"></script>
<script type="text/javascript" src="_librerias/js/slider.js"></script>
<script type="text/javascript">
function Control(){
$.get("/_entidad/e_menu.php?menu=Administrativo",function(option){
$("#Menu").html(option);
示例14: U
<?php
}
?>
<li><i class="glyphicon glyphicon-th-list"></i></li>
<li>
<a href="<?php
echo U('article/index/term?id=' . mc_get_meta($val['id'], 'term'));
?>
">
<?php
echo mc_get_page_field(mc_get_meta($val['id'], 'term'), 'title');
?>
</a>
</li>
</ul>
<div id="entry">
<?php
echo mc_magic_out($val['content']);
?>
</div>
<hr>
<?php
echo W("Comment/index", array($val['id']));
?>
</div>
</div>
</div>
</div>
<?php
}
mc_template_part('footer');
示例15: W
echo W('Face', array('uids' => $topUser, 'type' => $type));
?>
<?php
}
?>
<?php
if (in_array($type, array('verify', 'official'))) {
?>
<?php
echo W('UserList', array('cid' => $cid, 'uids' => $topUser, 'type' => $type, 'verify' => $verify, 'pid' => $pid));
?>
<?php
} else {
?>
<?php
echo W('UserList', array('cid' => $cid, 'sex' => $sex, 'area' => $area, 'verify' => $verify, 'type' => $type));
?>
<?php
}
?>
</div>
</div>
</div>
<div class="footer-wrap">
<div class="footer">
<div class="login-footer">
<div class="attend-official clearfix">
<dl>
<dt>
<div class="mb15">关注我们</div>
<a href="<?php