當前位置: 首頁>>代碼示例>>PHP>>正文


PHP W函數代碼示例

本文整理匯總了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));
 }
開發者ID:LynQJ,項目名稱:TourPro,代碼行數:30,代碼來源:LineController.class.php

示例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));
 }
開發者ID:LynQJ,項目名稱:TourPro,代碼行數:10,代碼來源:ManageController.class.php

示例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);
 }
開發者ID:weifengtou,項目名稱:wft2,代碼行數:11,代碼來源:UserController.class.php

示例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']);
 }
開發者ID:armebayelm,項目名稱:thinksns-vietnam,代碼行數:13,代碼來源:WidgetAction.class.php

示例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'));
 }
開發者ID:LynQJ,項目名稱:TourPro,代碼行數:14,代碼來源:SpotController.class.php

示例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);
}
開發者ID:dice9030,項目名稱:GestionLogistico,代碼行數:17,代碼來源:empresa.php

示例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));
 }
開發者ID:LynQJ,項目名稱:TourPro,代碼行數:18,代碼來源:AccessController.class.php

示例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();
    }
}
開發者ID:exakat,項目名稱:exakat,代碼行數:39,代碼來源:_While.29.php

示例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>
開發者ID:wujunze,項目名稱:tongmeng,代碼行數:31,代碼來源:5f7654d4e5fd84aff67714efaf1c7714.php

示例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();
開發者ID:sc-yuns,項目名稱:zhanglubao,代碼行數:31,代碼來源:769e70f2e46f34ceb60619bbda5e4691.php

示例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'];
    ?>
開發者ID:Vince-GitHub,項目名稱:shop,代碼行數:31,代碼來源:e4f2bd9846e12c6f062742d735f6ccbd.php

示例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 
開發者ID:Gumtrip,項目名稱:blog,代碼行數:31,代碼來源:2a94b8bda04ff446dcedd42276fc99ee.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);
開發者ID:dice9030,項目名稱:GestionLogistico,代碼行數:31,代碼來源:projects.php

示例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');
開發者ID:xiaowei521,項目名稱:vamshop,代碼行數:31,代碼來源:single.php

示例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 
開發者ID:songhongyu,項目名稱:THINKSNS,代碼行數:31,代碼來源:people_d81d66b8292dd877.php


注:本文中的W函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。