本文整理汇总了PHP中_v函数的典型用法代码示例。如果您正苦于以下问题:PHP _v函数的具体用法?PHP _v怎么用?PHP _v使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了_v函数的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: pdidb
function pdidb($l_data, $nbf)
{
global $day;
include 'connect.php';
echo "QUERY TOTALI {$nbf}<br><br>";
for ($m = 0; $m < $nbf; $m++) {
$query1 = "\n\t\t\tINSERT INTO opendelays_be (datetime, arrivalStation, delay, `type-num`,`day` ) VALUES";
$l_data[0][$m] = _v($l_data[0][$m]);
$l_data[1][$m] = _v($l_data[1][$m]);
$l_data[2][$m] = _v($l_data[2][$m]);
$l_data[3][$m] = _v($l_data[3][$m]);
$query2 = "('" . $l_data[0][$m] . "','" . $l_data[1][$m] . "','" . $l_data[2][$m] . "','" . $l_data[3][$m] . "','" . $day . "')";
$query = $query1 . $query2;
echo "{$m} -" . $query . "<br>";
mysql_query($query) or die("ERRORE : " . mysql_error());
}
}
示例2: pdidb
function pdidb($l_Data, $nbf, $stime)
{
$q = 0;
include 'connect.php';
echo "{$nbf} numero query<br><br>";
for ($m = 0; $m < $nbf; $m++) {
$l_Data[0][$m] = _v($l_Data[0][$m]);
$l_Data[1][$m] = _v($l_Data[1][$m]);
$l_Data[2][$m] = _v($l_Data[2][$m]);
$l_Data[3][$m] = _v($l_Data[3][$m]);
$l_Data[4][$m] = _v($l_Data[4][$m]);
$l_Data[5][$m] = _v($l_Data[5][$m]);
$l_Data[6][$m] = _v($l_Data[6][$m]);
$l_Data[7][$m] = _v($l_Data[7][$m]);
$l_Data[8][$m] = _v($l_Data[8][$m]);
$l_Data[9][$m] = _v($l_Data[9][$m]);
$l_Data[10][$m] = _v($l_Data[10][$m]);
$query1 = "\n INSERT INTO opendelays_uk\n (`date`, `current_station`, `plan_time_arr`, `real_time_arr`, `from_station`, `pl`, `id_train`, `toc`, `to_station`, `plan_time_dep`, `real_time_dep`)\n VALUES";
$query2 = "('" . $l_Data[0][$m] . "','" . $l_Data[10][$m] . "','" . $l_Data[1][$m] . "','" . $l_Data[2][$m] . "','" . $l_Data[3][$m] . "','" . $l_Data[4][$m] . "','" . $l_Data[5][$m] . "','" . $l_Data[6][$m] . "','" . $l_Data[7][$m] . "','" . $l_Data[8][$m] . "','" . $l_Data[9][$m] . "')";
$query = $query1 . $query2;
echo "{$m} - {$query}<br>";
if (strlen($l_Data[6][$m]) > 1) {
if (strlen($l_Data[1][$m]) > 3) {
$h = $l_Data[1][$m];
//echo $stime."-".$h."<br>";
if (substr($h, 0, 2) == substr($stime, 0, 2)) {
mysql_query($query) or die("ERRORE : " . mysql_error());
echo "REALE {$q} <br>";
$q++;
}
//else echo "no!<br>";
} else {
mysql_query($query) or die("ERRORE : " . mysql_error());
echo "REALE {$q}<br>";
$q++;
}
}
}
}
示例3: pdidb
function pdidb($l_Data, $nbf)
{
$q = 0;
echo $nbf . " - totale query <br><br>";
include 'connect.php';
for ($m = 0; $m < $nbf; $m++) {
$l_Data[0][$m] = _v($l_Data[0][$m]);
$l_Data[1][$m] = _v($l_Data[1][$m]);
$l_Data[2][$m] = _v($l_Data[2][$m]);
$l_Data[3][$m] = _v($l_Data[3][$m]);
$l_Data[4][$m] = _v($l_Data[4][$m]);
$l_Data[5][$m] = _v($l_Data[5][$m]);
$query1 = "INSERT INTO opendelays_it(from_station, plan_time_arr, delay, current_station, id_train, to_station) VALUES";
$query2 = "('" . $l_Data[0][$m] . "','" . $l_Data[2][$m] . "','" . $l_Data[3][$m] . "','" . $l_Data[1][$m] . "','" . $l_Data[4][$m] . "','" . $l_Data[5][$m] . "')";
$query = $query1 . $query2;
echo $m . " - " . $query . "<br>";
if ($l_Data[3][$m] > -1000 and $l_Data[3][$m] < 1000) {
echo "QUERY EFFETTIVE - {$q}<br>";
$q++;
mysql_query($query) or die("ERRORE : " . mysql_error());
}
}
}
示例4: _v
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="username">Username:</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="username" name="username" placeholder="Enter username" value="<?php
_v("user.user_username");
?>
">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="email">E-mail:</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="email" name="email" placeholder="Enter email" value="<?php
_v("user.user_email");
?>
">
</div>
</div>
<hr>
<div class="form-group">
<label class="control-label col-sm-2" for="password">Change Password:</label>
<div class="col-sm-5">
<input type="password" class="form-control" id="password" name="password" placeholder="Enter new password" value="">
</div>
<div class="col-sm-5">
<input type="password" class="form-control" id="password_repeat" name="password_repeat" placeholder="Repeat password" value="">
</div>
</div>
<hr>
示例5: _link
<form class="form-horizontal" role="form" method="post" action="<?php
_link("admin_accounts_groups_edit", _v("group.group_id", true));
?>
">
<?php
_inc("parts/messages");
?>
<div class="form-group">
<label class="control-label col-sm-2" for="group_name">Group name:</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="group_name" name="group_name" placeholder="Enter group name" value="<?php
_v("group.group_name");
?>
">
</div>
</div>
<hr>
<?php
foreach ($groups_list as $top => $v) {
?>
<h2><?php
echo $top;
?>
</h2>
示例6: _v
<input type="password" name="userPassword" id="userPassword" class="text" value="<?php
_v('userPassword');
?>
" />
<p class="description"><?php
_e('请填写您的登录密码, 如果留空系统将为您随机生成一个');
?>
</p>
</li>
<li>
<label class="typecho-label" for="userMail"><?php
_e('邮件地址');
?>
</label>
<input type="text" name="userMail" id="userMail" class="text" value="<?php
_v('userMail', 'webmaster@yourdomain.com');
?>
" />
<p class="description"><?php
_e('请填写一个您的常用邮箱');
?>
</p>
</li>
</ul>
</div>
<input type="hidden" name="action" value="config" />
<p class="submit"><button type="submit" class="primary"><?php
_e('确认, 开始安装 »');
?>
</button></p>
</form>
示例7: dirname
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) {
exit;
}
$defaultDir = dirname($_SERVER['SCRIPT_FILENAME']) . '/usr/' . uniqid() . '.db';
?>
<li>
<label class="typecho-label"><?php
_e('数据库文件路径');
?>
</label>
<input type="text" class="text" name="dbFile" value="<?php
_v('dbFile', $defaultDir);
?>
"/>
<p class="description"><?php
_e('"%s" 是我们为您自动生成的地址', $defaultDir);
?>
</p>
</li>
示例8: rgba
) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
#sidebar-menu{ background: rgba(<?php
_v("color_scheme_1");
?>
); }
#sidebar-submenu { background: rgba(<?php
_v("color_scheme_2");
?>
); }
.navbar-inverse { background-color: rgba(<?php
_v("color_scheme_2");
?>
); }
</style>
<link href="<?php
template_url();
?>
assets/css/drawline.css" rel="stylesheet" />
<script src="<?php
template_url();
?>
assets/pace/pace.min.js" data-pace-options='{ "ajax": true }'></script>
<link href="<?php
示例9: _e
<label class="typecho-label" for="dbPassword"><?php
_e('数据库密码');
?>
</label>
<input type="password" class="text" name="dbPassword" id="dbPassword" value="<?php
_v('dbPassword');
?>
" />
</li>
<li>
<label class="typecho-label" for="dbDatabase"><?php
_e('数据库名');
?>
</label>
<input type="text" class="text" name="dbDatabase" id="dbDatabase" value="<?php
_v('dbDatabase', 'typecho');
?>
" />
<p class="description"><?php
_e('请您指定数据库名称');
?>
</p>
</li>
<?php
}
?>
<input type="hidden" name="dbCharset" value="<?php
_e('utf8');
?>
" />
示例10: _v
</div>-->
<div class="row">
<div class="col-md-5">
<h3>Caraceristici</h3>
<hr>
<div class="alert alert-info"><strong>Info!</strong> Introduceti cate o caracteristica pe linie.</div>
<textarea class="form-control" name="produs_caracteristici" style="height:200px;" placeholder="Introduceti cate o caracteristica pe linie."><?php
_v("content.content_text.caracteristici");
?>
</textarea>
</div>
<div class="col-md-7">
<h3>Descriere</h3>
<hr>
<textarea name="produs_descriere" class="editor"><?php
_v("content.content_text.descriere");
?>
</textarea>
</div>
</div>
<hr>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<a href="<?php
echo BASE_URL . $content['content_slug'] . "/";
?>
" target="_blank" class="btn btn-default">Vezi Produsul</a>
<button type="submit" class="btn btn-primary" name="edit_produs_btn"><i class="fa fa-check"></i> Salveaza modificarile</button>
</div>
</div>