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


PHP _v函數代碼示例

本文整理匯總了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());
    }
}
開發者ID:OpenDelays,項目名稱:script2.0,代碼行數:17,代碼來源:opendelays_be.php

示例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++;
            }
        }
    }
}
開發者ID:OpenDelays,項目名稱:script2.0,代碼行數:39,代碼來源:opendelays_uk.php

示例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());
        }
    }
}
開發者ID:OpenDelays,項目名稱:script2.0,代碼行數:23,代碼來源:opendelays_it.php

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

示例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>
        
開發者ID:double-web,項目名稱:drawline,代碼行數:28,代碼來源:groups_edit.php

示例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('確認, 開始安裝 &raquo;');
    ?>
</button></p>
                </form>
開發者ID:menmenweiwei,項目名稱:blog,代碼行數:31,代碼來源:install.php

示例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>
開發者ID:raindali,項目名稱:express,代碼行數:21,代碼來源:SQLite.php

示例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 
開發者ID:double-web,項目名稱:drawline,代碼行數:31,代碼來源:header.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');
?>
" />
開發者ID:hongweipeng,項目名稱:typecho,代碼行數:31,代碼來源:Mysql.php

示例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>
開發者ID:double-web,項目名稱:drawline,代碼行數:30,代碼來源:page_produs_edit.php


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