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


PHP validation::checkNotNull方法代码示例

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


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

示例1: header

        <?php 
    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

示例2: Order

                  </div>
                </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");
开发者ID:Mayyad,项目名称:Tigers,代码行数:31,代码来源:orders.php

示例3: header

<div class="row">
<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 {
开发者ID:Mayyad,项目名称:Tigers,代码行数:31,代码来源:users.php

示例4: products

require_once "../files/rooms.php";
require_once "../files/orders.php";
$products = new products();
$validate = new validation();
$rooms = new rooms();
$orders = new orders();
//$mystr=$_POST['msg'];
//echo $mystr;
//Hena ana hab3at ll method al id Session
/*
	
	echo date("Y-m-d");
	echo "<br>".date("h : i : A");*/
$totalAmount = 0;
if ($_POST['isNullProduct'] == "1") {
    if ($validate->checkNotNull($_POST['roomNo'])) {
        if ($rooms->checkRoomNumById($_POST['roomNo']) or $_POST['roomNo'] == "0") {
            if ($returnRow = $orders->insertCheck($_POST['userID'], $_POST['roomNo'], $_POST['orderNotice'])) {
                foreach ($_POST as $key => $value) {
                    if (is_numeric($key)) {
                        if ($products->returnProductInfo($key)) {
                            $productInfo = mysqli_fetch_array($products->returnProductInfo($key));
                            //echo "Found" . $productInfo['name'];
                            if ($productInfo['status'] == "1") {
                                $sum = $value * $productInfo['price'];
                                $orders->insertOrder($returnRow, $key, $value, $sum);
                                $totalAmount = $totalAmount + $sum;
                            }
                        }
                    }
                }
开发者ID:Mayyad,项目名称:Tigers,代码行数:31,代码来源:confirmOrder.php

示例5:

	</head>
	<body>
		
		    <div class="container">
            	
                	
		        <div class="card card-container">
                             <h3 align="center" style="color:black;">Cafeteria</h3>
		            <img id="profile-img" class="profile-img-card" src="images/avatar_2x.png" />
                    
                    <?php 
if (isset($_POST['login_btn'])) {
    $uname = $_POST['uname'];
    $pass = $_POST['password'];
    $checked = '';
    if ($validate->checkNotNull($uname) and $validate->checkNotNull($pass)) {
        if ($validate->checkMail($uname)) {
            if (isset($_POST['remember'])) {
                $checked = '1';
            } else {
                $checked = '2';
            }
            if ($login->login($uname, $pass, $checked)) {
                echo "Go To Login Function";
            } else {
                ?>
									<div class="alert alert-danger">No Email Found With This Data or This User Blocked <br> Please Contact The Administretor</div>
								<?php 
            }
        } else {
            ?>
开发者ID:Mayyad,项目名称:Tigers,代码行数:31,代码来源:login.php

示例6: products

}
$products = new products();
$rooms = new rooms();
$validate = new validation();
if (isset($_SESSION['cafeteriaSystem'])) {
    if ($_SESSION['type'] != '1') {
        header("location:index.php");
    }
    /////////////////////////////////////////////////////////Add Product
    if (isset($_POST["submit"])) {
        $addProductFalg = 1;
        $proName = $_POST["proName"];
        $price = $_POST["price"];
        $statues = $_POST["statues"];
        $catId = $_POST["catID"];
        if (!$validate->checkNotNull($proName)) {
            $addProductFalg = 0;
        }
        if (!$validate->checkNotNull($price)) {
            $addProductFalg = 0;
        }
        if (!$validate->checkNotNull($statues)) {
            $addProductFalg = 0;
        }
        if (!$validate->checkNotNull($catId)) {
            $addProductFalg = 0;
        }
        if ($addProductFalg == 1) {
            if (isset($_FILES["myfile"])) {
                if ($validate->checkImage()) {
                    $pic_name = time() . "_" . $_FILES["myfile"]["name"];
开发者ID:Mayyad,项目名称:Tigers,代码行数:31,代码来源:validateproduct.php

示例7: header

    }
    //Update Category
    if (isset($_POST["submit"])) {
        if (!empty($_POST["catName"])) {
            $catName = $_POST["catName"];
        } else {
            $catName = $_POST["tempname"];
        }
        $id = $_POST["id"];
        $statues = $_POST["status"];
        $products->updatecat($id, $catName, $statues);
        header("location:myproducts.php");
    }
    //Add Category
    if (isset($_POST["submitt"])) {
        $addCatFlag = 1;
        $catname = $_POST["catName"];
        if ($validate->checkNotNull($catname)) {
        } else {
            $addCatFlag = 0;
        }
        if ($addCatFlag == 1) {
            $products->addcat($catname);
            header("location:myproducts.php");
        } else {
            header("location:myproducts.php?CatNameIsEmpty");
        }
    }
} else {
    header("location:login.php");
}
开发者ID:Mayyad,项目名称:Tigers,代码行数:31,代码来源:validatecat.php

示例8: header

                require_once "includes/menu.php";
                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:addUser.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,代码来源:editUser.php


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