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


PHP Input::exist方法代码示例

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


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

示例1: edit

 public function edit($id)
 {
     if (Input::exist()) {
         $data = Input::parse();
         $contact = Contact::find($id);
         $contact->update($data);
         echo json_encode($contact);
     }
 }
开发者ID:Jay-En,项目名称:BonePHP-starter,代码行数:9,代码来源:contactController.php

示例2: header

<?php

if (!$user->isLoggedIn()) {
    if (Input::exist()) {
        $remember = Input::get('remember') === 'on' ? true : false;
        if ($user->login(Input::get('email'), Input::get('password'), $remember)) {
            header('Location: ' . Config::get('home'));
            exit;
        }
    }
}
?>

<div class="row fullWidth footer-padding">

	<!-- show item slider for member -->
	<?php 
if ($user->isLoggedIn()) {
    ?>

	<div class="orbit" role="region" aria-label="Favorite Space Pictures" data-orbit>
		<ul class="orbit-container">
			<button class="orbit-previous" aria-label="previous"><span class="show-for-sr">Previous Slide</span>&#9664;</button>
			<button class="orbit-next" aria-label="next"><span class="show-for-sr">Next Slide</span>&#9654;</button>
			<li class="is-active orbit-slide">
				<img class="orbit-image" src="upload/promo/Banner1.jpg" alt="Space">
			</li>
			<li class="orbit-slide">
				<img class="orbit-image" src="upload/promo/Banner2.jpg" alt="Space">
			</li>
			<li class="orbit-slide">
开发者ID:NoOneLiv3,项目名称:TCS-Webstore,代码行数:31,代码来源:home.php

示例3: Name

            </div>
            <div class="col-md-6">
                <label for="name">Nichk Name(<span class="required">*</span>)</label>
                <input type="text" class="form-control" value="<?php 
echo Input::exist() ? Input::get('fullname') : '';
?>
" name="fullname" id="fullname" required="">
            </div>
            <div class="col-md-6">
                <label for="password">Nhập Lại Mật Khẩu(<span class="required">*</span>)</label>
                <input type="password" class="form-control" name="repassword" id="repassword" required="">
            </div>
            <div class="col-md-6">
                <label for="password">Email(<span class="required">*</span>)</label>
                <input type="email" class="form-control" value="<?php 
echo Input::exist() ? Input::get('email') : '';
?>
" name="email" id="email" required="">
            </div>
            <div class="col-md-6">
                <label for="level">Chọn Quyền(<span class="required">*</span>)</label>
                <select name="level" id="level" class="form-control" required="">
                    <option value="">Chọn Quyền</option>
                    <option value="1">Member</option>
                    <option value="2">Admin</option>
                </select>
            </div>
            <div class="col-md-12">
                <input type="submit" name="addUser" id="addUser" value="Add User" class="btn btn-primary"/>
            </div>
        </form>
开发者ID:pvtamh2bg,项目名称:mn2015,代码行数:31,代码来源:addUser.php

示例4: header

<?php

if (Input::exist() && isset($_POST['search'])) {
    if (!empty(Input::get('searchKey'))) {
        header('Location: /TCS/search/key/' . Input::get('searchKey'));
    } else {
        header('Location: /TCS/search/');
    }
}
?>

<div data-sticky-container>
	<div class="small-12 sticky" data-sticky data-options="marginTop: 0">
		<div class="top-bar">

			<!-- top bar logo start -->
			<div class="top-bar-center">
				<a href="<?php 
echo Config::get('home');
?>
">
					<img class="logo" src="assets/logo.png"></img>
				</a>
			</div>
			<!-- top bar logo end -->

			<!-- top bar left start -->
			<div class="top-bar-left">
				<ul class="menu">
					<li>
						<button class="button fill-vertical" type="button" id="c-button--push-left">
开发者ID:NoOneLiv3,项目名称:TCS-Webstore,代码行数:31,代码来源:topbar.php

示例5: catch

<?php

require_once '/../modal/core/setup.php';
if (Input::exist() && $user->isLoggedIn()) {
    try {
        if ($order->find(Input::get('orderID'))) {
            $order->update(Input::get('orderID'), Input::get('status'));
        }
    } catch (Exception $e) {
        die($e->getMessage());
    }
    //force refresh
    header('Location: /TCS/odrmng');
}
exit;
开发者ID:NoOneLiv3,项目名称:TCS-Webstore,代码行数:15,代码来源:order-process.php

示例6: array

<?php

if (Input::get('id')) {
    $productID = Input::get('id');
    if ($product->find($productID)) {
        // find rating
        //$ratings =
        //$reviews =
        $tags = $product->getTag($productID);
        if (Input::exist() && isset($_POST['buy'])) {
            if (isset($_SESSION['cart'][$productID])) {
                $_SESSION['cart'][$productID]['qty'] += Input::get('qty');
            } else {
                $_SESSION['cart'][$productID] = array("qty" => Input::get('qty'), "price" => Input::get('price'));
            }
            header('Location: /TCS/' . Input::get('page') . '/id/' . $productID);
        }
    } else {
        echo "Product not available";
    }
} else {
    header('Location: /TCS/403');
}
?>

<div class="row title-top-pad">
	<div class="small-12 medium-4 column">
		<img class="product-img product-padding" src="upload/product/<?php 
echo $product->data()->imageURL;
?>
" />
开发者ID:NoOneLiv3,项目名称:TCS-Webstore,代码行数:31,代码来源:product.php

示例7: Name

">
            </div>
            <div class="col-md-6">
                <label for="class">Lớp(<span class="required">*</span>)</label>
                <input type="text" class="form-control" name="class" id="class" value="<?php 
echo Input::exist() ? Input::get('class') : '';
?>
" required="">
            </div>

            <div class="col-md-6">
                <label for="lastname">Last Name(<span class="required">*</span>)</label>
                <input type="text" class="form-control" value="<?php 
echo Input::exist() ? Input::get('lastname') : '';
?>
" name="lastname" id="lastname" required="">
            </div>
            <div class="col-md-6">
                <label for="address">Address(<span class="required">*</span>)</label>
                <input type="text" class="form-control" value="<?php 
echo Input::exist() ? Input::get('address') : '';
?>
" name="address" id="address" required="">
            </div>
            <div class="col-md-12">
                <input type="submit" name="addMember" id="addmember" value="Add Member" class="btn btn-primary"/>
            </div>
        </form>
    </div>
</section>
开发者ID:pvtamh2bg,项目名称:mn2015,代码行数:30,代码来源:addMember.php

示例8: foreach

?>
                <select name="masv" id="masv" class="form-control">
                    <option value="">Chọn Người Mua</option>
                    <?php 
foreach ($datas as $data) {
    echo "<option value='{$data['masv']}'>{$data['firstname']} {$data['lastname']}</option>";
}
?>
                </select>
            </div>
            <div class="col-md-12">
                <label for="soluong">Số Lượng(<span class="required">*</span>)</label>
                <input type="number" class="form-control" value="<?php 
echo Input::exist() ? Input::get('soluong') : '';
?>
" name="soluong" id="soluong" required="">
            </div>
            <div class="col-md-12">
                <label for="description">Miêu tả</label>
                <textarea name="description" id="description" cols="30" rows="10" class="form-control"><?php 
echo Input::exist() ? Input::get('description') : '';
?>
</textarea>
            </div>
            <div class="col-md-12">
                <input type="submit" name="addWater" id="addWater" value="Add Water" class="btn btn-primary"/>
            </div>
        </form>
    </div>
</section>
开发者ID:pvtamh2bg,项目名称:mn2015,代码行数:30,代码来源:addWater.php


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