当前位置: 首页>>代码示例>>PHP>>正文


PHP validation::checkNumeric方法代码示例

本文整理汇总了PHP中validation::checkNumeric方法的典型用法代码示例。如果您正苦于以下问题:PHP validation::checkNumeric方法的具体用法?PHP validation::checkNumeric怎么用?PHP validation::checkNumeric使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在validation的用法示例。


在下文中一共展示了validation::checkNumeric方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: header

<div class="col-sm-12">
<div class="right">
        <a href="addUser.php">Add Users</a> | <a href="rooms.php">Rooms</a>
    </div>
</div>
</div>

<!-- All Will Write Their Code Here -->
<div class="row">
<div class="row table-responsive">
	
	<?php 
    if (isset($_GET['del_id'])) {
        $del_id = $_GET['del_id'];
        if ($validate->checkNotNull($del_id)) {
            if ($validate->checkNumeric($del_id)) {
                if ($validate->checkID($del_id)) {
                    if ($orders->checkFoundOrdersForId($del_id)) {
                        ?>
<div class="alert alert-danger text-center">Cannot Delete This User Becous he already Get  Orders</div><?php 
                    } else {
                        $users->delete($del_id);
                    }
                } else {
                    echo "No User Found With This Data";
                }
            } else {
                header("location:home.php");
            }
        } else {
            header("location:home.php");
开发者ID:Mayyad,项目名称:Tigers,代码行数:31,代码来源:users.php

示例2: header

    if (isset($_GET['insRoom'])) {
        ?>
        <div class="modal fade bs-example-modal-lg" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel">
          <div class="modal-dialog">
            <div class="modal-content">
              <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span >&times;</span></button>
                <h4 class="modal-title text-left">Add New Room</h4>
              </div>
              <div class="modal-body ">
				  <?php 
        if (isset($_POST['addRoomBtn'])) {
            $roomNum = $_POST['roomNum'];
            //Check if is not Null
            if ($validate->checkNotNull($roomNum)) {
                if ($validate->checkNumeric($roomNum)) {
                    if ($rooms->checkRoomNum($roomNum)) {
                        if ($rooms->addRoom($roomNum)) {
                            header("location:rooms.php?action=Insert Sucsessful Completed");
                        } else {
                            ?>
											<p class="alert alert-danger">Some Things Wrong in Connection With DataBase Try Again Later</p>    
										<?php 
                        }
                    } else {
                        ?>
										<p class="alert alert-danger">This Room Inserted To The DataBase Befor</p>    
									<?php 
                    }
                } else {
                    ?>
开发者ID:Mayyad,项目名称:Tigers,代码行数:31,代码来源:rooms.php

示例3: Order

                </div><!-- /.modal-content -->
              </div><!-- /.modal-dialog -->
            </div>
        
        <?php 
    }
    ?>
        
        <!-- End Of The Action Complete Pop Up -->
        
        <!--  Edit  Order (deliver It ) Pop Up  -->
        <?php 
    if (isset($_GET['deliver'])) {
        $orderNum = $_GET['deliver'];
        if ($validate->checkNotNull($orderNum)) {
            if ($validate->checkNumeric($orderNum)) {
                if ($orders->checkOrderStatus($orderNum, 3)) {
                    ?>
						<div class="modal fade bs-example-modal-lg" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel">
						  <div class="modal-dialog">
							<div class="modal-content">
							  <div class="modal-header">
								<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span >&times;</span></button>
								<h4 class="modal-title text-left">Deliver Order</h4>
							  </div>
							  <div class="modal-body ">
								  <?php 
                    if (isset($_POST['deliverOrderBtn'])) {
                        if ($orders->deliverOrder($orderNum)) {
                            header("location:orders.php?action=Orders Delivered Succssesfilly");
                        } else {
开发者ID:Mayyad,项目名称:Tigers,代码行数:31,代码来源:orders.php


注:本文中的validation::checkNumeric方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。