本文整理汇总了PHP中ver函数的典型用法代码示例。如果您正苦于以下问题:PHP ver函数的具体用法?PHP ver怎么用?PHP ver使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了ver函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
<?php
include __DIR__ . '/baseRules.php';
$rules['summary'] = array('_method' => array('post' => array('ver', 'token', 'baby_id')), 'ver' => ver(), 'token' => token(), 'baby_id' => array('required' => 1, 'filters' => 'trim', 'regex' => '/^\\d+$/', 'msg' => '10021'));
$rules['list'] = array('_method' => array('post' => array('ver', 'token', 'baby_id', 'since_date', 'count')), 'ver' => ver(), 'token' => token(), 'baby_id' => array('required' => 1, 'filters' => 'trim', 'regex' => '/^\\d+$/', 'msg' => '10021'), 'since_date' => array('required' => 0, 'length' => 10, 'filters' => 'trim', 'regex' => '/^\\d+$/', 'msg' => '11085'), 'count' => array('required' => 1, 'filters' => 'trim', 'regex' => '/^\\d+$/', 'msg' => '11111'));
$rules['fore'] = array('_method' => array('post' => array('ver', 'token', 'baby_id', 'province', 'city', 'City', 'district')), 'ver' => ver(), 'token' => token(), 'baby_id' => array('required' => 1, 'filters' => 'trim', 'regex' => '/^\\d+$/', 'msg' => '10021'), 'province' => array('required' => 0, 'length' => array(1, 50), 'filters' => 'trim', 'msg' => '11087'), 'city' => array('required' => 0, 'filters' => 'trim', 'msg' => '11087'), 'City' => array('required' => 0, 'filters' => 'trim', 'msg' => '11087'), 'district' => array('required' => 0, 'filters' => 'trim', 'msg' => '11087'));
return $rules;
示例2: array
<?php
include __DIR__ . '/baseRules.php';
$rules['today'] = array('_method' => array('post' => array('ver', 'token', 'baby_id', 'since_id', 'max_id', 'count')), 'ver' => ver(), 'token' => token(), 'baby_id' => array('required' => 1, 'filters' => 'trim', 'regex' => '/^\\d+$/', 'msg' => '10021'), 'since_id' => array('required' => 0, 'filters' => 'trim', 'regex' => '/^\\d+$/'), 'max_id' => array('required' => 0, 'filters' => 'trim', 'regex' => '/^\\d+$/'), 'count' => array('required' => 1, 'filters' => 'trim', 'regex' => '/^\\d+$/', 'msg' => '11111'));
$rules['all'] = array('_method' => array('post' => array('ver', 'token', 'baby_id', 'since_id', 'max_id', 'count')), 'ver' => ver(), 'token' => token(), 'baby_id' => array('required' => 1, 'filters' => 'trim', 'regex' => '/^\\d+$/', 'msg' => '10021'), 'since_id' => array('required' => 0, 'filters' => 'trim', 'regex' => '/^\\d+$/'), 'max_id' => array('required' => 0, 'filters' => 'trim', 'regex' => '/^\\d+$/'), 'count' => array('required' => 1, 'filters' => 'trim', 'regex' => '/^\\d+$/', 'msg' => '11111'));
return $rules;
示例3: array
<?php
include __DIR__ . '/baseRules.php';
$rules['index'] = array('_method' => array('post' => array('ver', 'token')), 'ver' => ver(), 'token' => token());
$rules['disturb'] = array('_method' => array('post' => array('ver', 'token', 'disturb', 'start', 'end')), 'ver' => ver(), 'token' => token(), 'disturb' => array('required' => '1', 'range' => array(1, 3), 'filters' => 'trim', 'msg' => '11060'), 'start' => array('required' => '0', 'between' => array(0, 24), 'filters' => 'trim', 'msg' => '11061'), 'end' => array('required' => '0', 'between' => array(0, 24), 'filters' => 'trim', 'msg' => '11061'));
return $rules;
示例4: foreach
<body>
<h1>Productos</h1>
<h3><a href="<?php
echo WEB_FOLDER . "productos/nuevo";
?>
">Nuevo producto</h3>
<div name="productos">
<?php
foreach ($productos as $prod) {
?>
<div name="<?php
echo $prod->url;
?>
">
<p><?php
echo alink(ver($prod), $prod->nombre);
?>
- <?php
echo $prod->precio;
?>
</p>
<p><?php
echo $prod->stock;
?>
en stock</p>
<p>¿<?php
echo alink(editar($prod), "Editar");
?>
o <?php
echo alink(borrar($prod), "borrar");
?>
示例5: verficarEmailCdastrado
public function verficarEmailCdastrado($email)
{
// conectar();
return ver('usuarios', 'email', "email = '{$email}' and ativo = 't'");
}
示例6: numeroRegistros
<?php
namespace validator;
include_once "../bootstrap.php";
include_once "banco.php";
include_once "DataValidator.php";
$inscritos = numeroRegistros("workshops", "id", "workshop = '" . addslashes(utf8_decode($_POST['workshop'])) . "'");
$errors = 0;
if ($inscritos < 23) {
$validate = new Data_Validator();
$validate->set("email", $_POST['email'])->is_email()->set("nome", $_POST['nome'])->is_required()->min_length(5, true);
$existe = ver("workshops", "id", "email ='" . addslashes(utf8_decode($_POST['email'])) . "' and workshop = '" . addslashes(utf8_decode($_POST['workshop'])) . "'");
if (!$existe) {
/*$faltou = ver("workshops", "presente", "email ='".addslashes(utf8_decode($_POST['email']))."' and workshop = 'JS101' and presente=0");
if(!$faltou){*/
$errors = $validate->get_errors_html();
if ($validate->validate()) {
$dados['workshop'] = addslashes(utf8_decode($_POST['workshop']));
$dados['email'] = addslashes(utf8_decode($_POST['email']));
$dados['nome'] = addslashes(utf8_decode($_POST['nome']));
$dados['presente'] = 0;
inserir("workshops", $dados);
}
//}else $errors = "<p>Você se inscreveu para o primeiro e não compareceu, infelizmente não é possível se inscrever agora, mas você pode tentar novamente amanhã(9/10).</p>";
} else {
$errors = "<p>Email já cadastrado!</p>";
}
} else {
$errors = "<p>Todas as vagas já foram preenchidas, mas não se preocupe daqui a pouco vai ter outro :)</p>";
示例7: array
<?php
include __DIR__ . '/baseRules.php';
$rules['login'] = array('_method' => array('post' => array('ver', 'access_token', 'deviceToken', 'plat', 'type', 'u_tags')), 'ver' => ver(), 'access_token' => array('required' => 1, 'filters' => 'trim', 'msg' => '11051'), 'deviceToken' => array('required' => 0, 'length' => array(14, 64), 'regex' => '/^[a-zA-Z0-9]+$/', 'filters' => 'trim', 'msg' => '11051'), 'plat' => array('required' => 1, 'range' => array(1, 3), 'filters' => 'trim', 'msg' => '11051'), 'type' => array('required' => 1, 'range' => array(1, 3), 'filters' => 'trim', 'msg' => '11111'), 'u_tags' => array('required' => 1, 'filters' => 'trim', 'length' => array(10, 32), 'msg' => '11051'));
$rules['reg'] = array('_method' => array('post' => array('ver', 'mobi', 'pass', 'session', 'deviceToken', 'u_tags', 'plat', 'name', 'pic', 'type', 'cver', 'captcha')), 'ver' => ver(), 'mobi' => mobile(), 'pass' => password(), 'session' => array('required' => 1, 'filters' => 'trim', 'msg' => '11111'), 'deviceToken' => array('required' => 1, 'length' => array(14, 64), 'regex' => '/^[a-zA-Z0-9]+$/', 'filters' => 'trim', 'msg' => '10010'), 'u_tags' => array('required' => 1, 'filters' => 'trim', 'length' => array(10, 32), 'msg' => '11051'), 'plat' => array('required' => 1, 'range' => array(1, 3), 'filters' => 'trim', 'msg' => '11051'), 'name' => array('required' => 1, 'length' => array(1, 12), 'filters' => 'trim', 'msg' => '10011'), 'pic' => array('required' => 0, 'filters' => 'trim', 'msg' => '10011'), 'type' => array('required' => 1, 'range' => array(1, 3), 'filters' => 'trim', 'msg' => '11111'), 'cver' => array('required' => 0, 'filters' => 'trim', 'msg' => '11111'), 'captcha' => captcha());
$rules['bind'] = array('_method' => array('post' => array('ver', 'token', 'access_token', 'plat', 'u_tags')), 'ver' => ver(), 'token' => token(), 'access_token' => array('required' => 1, 'filters' => 'trim', 'msg' => '11051'), 'plat' => array('required' => 1, 'range' => array(1, 3), 'filters' => 'trim', 'msg' => '11051'), 'u_tags' => array('required' => 1, 'filters' => 'trim', 'length' => array(10, 32), 'msg' => '11051'));
$rules['del'] = array('_method' => array('post' => array('ver', 'token', 'plat')), 'ver' => ver(), 'token' => token(), 'plat' => array('required' => 1, 'range' => array(1, 3), 'filters' => 'trim', 'msg' => '11051'));
return $rules;
示例8: array
<?php
include __DIR__ . '/baseRules.php';
$rules['captcha'] = array('_method' => array('post' => array('ver', 'mobi', 'captcha')), 'ver' => ver(), 'token' => mobile(), 'captcha' => captcha());
$rules['reset'] = array('_method' => array('post' => array('session', 'passnew')), 'session' => array('required' => 1, 'filters' => 'trim', 'msg' => '11111'), 'pass' => password());
return $rules;
示例9: array
<?php
include __DIR__ . '/baseRules.php';
$rules['index'] = array('_method' => array('post' => array('ver', 'app_ver', 'type')), 'ver' => ver(), 'app_ver' => array('required' => 1, 'length' => array(1, 10), 'regex' => '/^[\\d|\\.]+$/', 'filters' => 'trim', 'msg' => '66666'), 'type' => array('required' => 1, 'range' => array(1, 3), 'filters' => 'trim', 'msg' => '66666'));
$rules['hardware'] = array('_method' => array('post' => array('ver', 'token', 'time')), 'ver' => ver(), 'token' => token(), 'time' => array('required' => 1, 'filters' => 'trim', 'regex' => '/^\\d+$/', 'msg' => '11085'));
return $rules;
示例10: array
<?php
include __DIR__ . '/baseRules.php';
$rules['index'] = array('_method' => array('post' => array('ver', 'token')), 'ver' => ver(), 'token' => token());
return $rules;
示例11: array
<?php
include __DIR__ . '/baseRules.php';
$rules['list'] = array('_method' => array('post' => array('ver', 'token', 'baby_id', 'count')), 'ver' => ver(), 'token' => token(), 'baby_id' => array('required' => 1, 'filters' => 'trim', 'regex' => '/^\\d+$/', 'msg' => '10021'), 'count' => array('required' => 1, 'filters' => 'trim', 'msg' => '11111'));
$rules['gua'] = array('_method' => array('post' => array('ver', 'token', 'baby_id', 'fam_id')), 'ver' => ver(), 'token' => token(), 'baby_id' => array('required' => 1, 'filters' => 'trim', 'regex' => '/^\\d+$/', 'msg' => '10021'), 'fam_id' => array('required' => 1, 'filters' => 'trim', 'regex' => '/^\\d+$/', 'msg' => '10079'));
$rules['add'] = array('_method' => array('post' => array('ver', 'token', 'baby_id', 'name', 'ishost', 'mobi')), 'ver' => ver(), 'token' => token(), 'baby_id' => array('required' => 1, 'filters' => 'trim', 'regex' => '/^\\d+$/', 'msg' => '10021'), 'name' => array('required' => 1, 'filters' => 'trim', 'length' => array(1, 12), 'msg' => '10078'), 'ishost' => array('required' => 1, 'filters' => 'trim', 'range' => array(3, 5), 'msg' => '11111'), 'mobi' => array('required' => 0, 'length' => 11, 'filters' => 'trim', 'regex' => '/^1[3,4,5,7,8]+\\d{9}$/', 'msg' => '10002'));
$rules['del'] = array('_method' => array('post' => array('ver', 'token', 'baby_id', 'fam_id', 'mobi')), 'ver' => ver(), 'token' => token(), 'baby_id' => array('required' => 1, 'filters' => 'trim', 'regex' => '/^\\d+$/', 'msg' => '10021'), 'fam_id' => array('required' => 0, 'filters' => 'trim', 'regex' => '/^\\d+$/', 'msg' => '10079'), 'mobi' => array('required' => 0, 'length' => 11, 'filters' => 'trim', 'regex' => '/^1[3,4,5,7,8]+\\d{9}$/', 'msg' => '10002'));
return $rules;
示例12: switch
<td width="5" valign="top"></td><td></td><td width="5"></td>
</tr>
<tr height="600" valign="top">
<td>
<!--Todo el contenido de cada página--->
<?php
switch ($op) {
case "listado":
listado($fechai, $fechaf, $proy_add, $proy_del, $aplica_oes, $buscar, $filtros, $stock, $pagina, $f_material, $f_sub, $f_txs, $bandera);
break;
case "ver":
ver($fechai, $fechaf, $proy_add, $proy_del, $aplica_oes, $buscar, $filtros, $stock, $pagina, $f_material, $f_sub, $f_txs, $pag, $bandera);
break;
case "guardar":
guardar($sap, $pag);
ver($fechai, $fechaf, $proy_add, $proy_del, $aplica_oes, $buscar, $filtros, $stock, $pagina, $f_material, $f_sub, $f_txs, $pag + 1, 1);
break;
default:
listado($fechai, $fechaf, $proy_add, $proy_del, $aplica_oes, $buscar, $filtros, $stock, $pagina, $f_material, $f_sub, $f_txs, $bandera);
break;
}
?>
<!-- -->
<br><br><br></td>
</tr>
</table>
<?php
include "../footer.php";
function listado($fechai, $fechaf, $proy_add, $proy_del, $aplica_oes, $buscar, $filtros, $stock, $pagina, $f_material, $f_sub, $f_txs, $bandera)
{
示例13: array
<?php
include __DIR__ . '/baseRules.php';
$rules['index'] = array('_method' => array('post' => array('ver', 'token', 'baby_id', 'lasttime', 'times')), 'ver' => ver(), 'token' => token(), 'baby_id' => array('required' => 1, 'filters' => 'trim', 'regex' => '/^\\d+$/', 'msg' => '10021'), 'lasttime' => array('required' => 0, 'length' => 10, 'filters' => 'trim', 'regex' => '/^\\d+$/', 'msg' => '11111'), 'times' => array('required' => 0, 'length' => 10, 'filters' => 'trim', 'msg' => '11111'));
$rules['day'] = array('_method' => array('post' => array('ver', 'token', 'locus_id', 'times', 'type', 'baby_id')), 'ver' => ver(), 'token' => token(), 'locus_id' => array('required' => 1, 'filters' => 'trim', 'regex' => '/^\\d+$/', 'msg' => '10021'), 'times' => array('required' => 0, 'filters' => 'trim', 'regex' => '/^\\d+$/', 'msg' => '10068'), 'type' => array('required' => 1, 'filters' => 'trim', 'range' => array('-1', '0', '1'), 'msg' => '11111'), 'baby_id' => array('required' => 1, 'filters' => 'trim', 'regex' => '/^\\d+$/', 'msg' => '10021'));
$rules['upload'] = array('_method' => array('post' => array('ver', 'token', 'locus_id', 'li_id')), 'ver' => ver(), 'token' => token(), 'locus_id' => array('required' => 1, 'filters' => 'trim', 'regex' => '/^\\d+$/', 'msg' => '10021'), 'li_id' => array('required' => 1, 'filters' => 'trim', 'regex' => '/^\\d+$/', 'msg' => '10021'));
$rules['delpic'] = array('_method' => array('post' => array('ver', 'token', 'pic_id')), 'ver' => ver(), 'token' => token(), 'locus_id' => array('required' => 1, 'filters' => 'trim', 'regex' => '/^\\d+$/', 'msg' => '10021'), 'li_id' => array('required' => 1, 'filters' => 'trim', 'regex' => '/^\\d+$/', 'msg' => '10021'));
return $rules;
示例14: array
<?php
include __DIR__ . '/baseRules.php';
$rules['android'] = array('_method' => array('post' => array('ver', 'mode', 'time')), 'ver' => ver(), 'mode' => array('required' => 0, 'filters' => 'trim', 'msg' => '66666'), 'time' => array('required' => 1, 'filters' => 'trim', 'msg' => '10078'));
return $rules;
示例15: array
<?php
include __DIR__ . '/baseRules.php';
$rules['binddev'] = array('_method' => array('post' => array('ver', 'token', 'baby_id')), 'ver' => ver(), 'token' => token(), 'baby_id' => array('required' => 1, 'filters' => 'trim', 'regex' => '/^\\d+$/', 'msg' => '10021'));
return $rules;