text
stringlengths
2
1.03M
<?php /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | This file is where you may define all of the routes that are handled | by your application. Just tell Laravel the URIs it should respond | to...
<?php namespace NovadayCo\Datetime\Tests; use NovadayCo\Datetime\DateTimeHelper; use InvalidArgumentException; use PHPUnit\Framework\TestCase; final class DateTimeHelperTest extends TestCase { public function testParse() { $jalaliDateTime = DateTimeHelper::parse('1400-04-13 15:16:10')->format('Y-m-d...
@extends ('layouts.index') @section ('conteudo') <div class="card"> <div class="card-header"> <h4>Alterando Objetivo #{{$objetivo->id}}</h4> </div> <div class="card-body"> <form method="POST" action="/updateObjetivo"> @csrf <input type="hidden" id="objetivo_id" name="objetivo_id" value="...
<?php use Illuminate\Database\Seeder; class DatabaseSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { // $this->call(UsersTableSeeder::class); $this->call(user_seed::class); $this->call(sensordata_seed::class); ...
<?php use Illuminate\Database\Seeder; use Illuminate\Database\Eloquent\Model; class TempSeeder extends Seeder { protected function runHourlyLogs() { $ss = []; $HMs = ['00:02', '00:10', '00:50', '01:00', '01:10', '02:50', '03:00', '03:10', '03:25', '03:30', '03:40', '03:50', '13:30', '14:10', '14:20']; ...
<?php declare(strict_types=1); namespace RichId\MaintenanceBundle\Tests\Domain\UseCase; use RichCongress\TestFramework\TestConfiguration\Annotation\TestConfig; use RichCongress\TestSuite\TestCase\TestCase; use RichId\MaintenanceBundle\Domain\UseCase\IsWebsiteClosed; use RichId\MaintenanceBundle\Infrastructure\Adapte...
<div class="modal fade show" id="modal-xl" style="display: none;" aria-modal="true"> <div class="modal-dialog modal-md"> <div class="modal-content"> <div class="modal-header"> <h4 class="modal-title">Extra Large Modal</h4> <button type="button" class="close" data-dismiss="modal" aria-label="Clos...
<?php error_reporting(E_ALL); ini_set('display_errors', 1); header('Content-Type: application/json'); session_start(); require_once 'DB_Functions.php'; $db = new DB_Functions(); // json response array $response = array("error" => FALSE); if (isset($_GET['id'])){ $Name=$_GET["name"]; $Name=test_input($Name);...
<?php namespace App\Providers; use App\Rules\SecureFileUpload; use Illuminate\Support\Facades\Validator; use Illuminate\Support\ServiceProvider; class SecureFileUploadProvider extends ServiceProvider { /** * Register services. * * @return void */ public function register() { /...
<?php declare(strict_types = 1); namespace LizardsAndPumpkins\Messaging\Consumer; use LizardsAndPumpkins\Messaging\Command\Command; use LizardsAndPumpkins\Messaging\Consumer\Exception\InvalidMessageConsumerPidException; use LizardsAndPumpkins\Messaging\Consumer\Exception\NotShutdownWorkerDirectiveMessageException; u...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateLoginActivitiesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('login_a...
@extends('layouts.master') @section('content') <div style="margin-top: 220px; width: 100%; text-align: center;"> <a class="red-button red-button-border" style="line-height: 30px;" id="login-fb-js"><img src="/img/fb-logo.png" height="30px"> Login with Facebook </a> </div> @endsection @section('javascript') <scrip...
@extends('layouts.user.master') @section('content') <div class="alice-bg section-padding-bottom"> <div class="container no-gliters"> <div class="row no-gliters"> <div class="col"> <div class="download-resume dashboard-section"> <a href="#">Download CV<i dat...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Auth; use App\User; use App\Item; use App\Supplier; use App\Category; use Session; class SidebarmenuController extends Controller { function index() { if(Auth::user()->role == "admin") return view('home'); else return vi...
<!DOCTYPE html> <html lang="en"> @include('website.layout.include.style') <body> <!-- ======= Top Bar ======= --> <section id="topbar" class="fixed-top d-flex align-items-center"> <div class="container d-flex justify-content-center justify-content-md-between"> <div class="contact-info d-fl...
<?php /** * @author Florent HAZARD <f.hazard@sowapps.com> */ namespace App\Controller\User; use App\Entity\SchoolClass; use App\Entity\User; use Orpheus\Exception\ForbiddenException; use Orpheus\Exception\NotFoundException; use Orpheus\Exception\UserException; use Orpheus\InputController\HTTPController\HTTPRequest;...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class installmentConnection extends Model { protected $table = 'tbl_installment_type'; protected $primaryKey = 'installment_ID'; public $timestamps = false; }
<?php namespace GrantHolle\PowerSchool\Api; class DebugLogger { public static function log($data) { if ( config('app.debug') && config('powerschool.debug_with_ray') && function_exists('ray') ) { if (is_callable($data)) { $data(); ...
<?php return [ '' => 'Controllers/index.php', 'about' => 'Controllers/about.php', 'profile' => 'Controllers/profile.php', 'todo-list' => 'Controllers/todo.php', 'add-task' => 'Controllers/add_todo.php' ];
<html> <head> <title><?php echo $judul; ?></title> </head> <body style="margin-top: 50px;"> <h1 class="text-light text-center">User List</h1> <br> <!-- notifikasi hapus komentar --> <?php if($this->session->flashdata('deleteUser')) {?> <div id="notification" class="alert alert-succe...
<?php namespace Knuckles\Scribe\Tests\Unit; use Illuminate\Foundation\Application; use Illuminate\Support\Facades\Validator; use Illuminate\Validation\ValidationException; use Knuckles\Scribe\Extracting\ParsesValidationRules; use Knuckles\Scribe\Tests\BaseLaravelTest; use Knuckles\Scribe\Tools\DocumentationConfig; c...
<html> <body> <?php if ($_GET['link']==$a) { echo "Link 1 Clicked"; } else { echo "Link 2 Clicked"; } ?></body></html>
<?php /** * Pimcore * * This source file is available under two different licenses: * - GNU General Public License version 3 (GPLv3) * - Pimcore Enterprise License (PEL) * Full copyright and license information is available in * LICENSE.md which is distributed with this source code. * * @copyright Copyright (...
<?php class Verify_login extends CI_Controller{ function __construct() { parent::__construct(); $this->load->model('user','', TRUE); } function index(){ $this->load->library('form_validation'); $this->form_validation->set_rules('username', 'Username', 'trim|required|xss_clean'); $this->form_validati...
<?php use Illuminate\Support\Facades\Route; /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes for your application. These | routes are loaded by the Route...
<!DOCTYPE html> <html> <head> <title>@yield('title') | Scory - Администраторски панел</title> <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'> <meta content='text/html;charset=utf-8' http-equiv='content-type'> <meta content='Flat administration te...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateUserLogsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('user_logs', fu...
<?php namespace App\Http\Requests\API; use App\Models\Paciente; use InfyOm\Generator\Request\APIRequest; class UpdatePacienteAPIRequest extends APIRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return...
<?php defined('BASEPATH') or exit('No direct script access allowed'); $this->load->view('templates/header'); ?> <div class="main-content"> <section class="section"> <div class="section-body"> <div class="section-header section-header-custom"> <h1>Genealogy Tree</h1> ...
<div id="main-content"> <!-- BEGIN PAGE CONTAINER--> <div class="container-fluid"> <!-- BEGIN PAGE HEADER--> <div class="row-fluid"> <div class="span12"> <!-- BEGIN PAGE TITLE & BREADCRUMB--> <h3 class="page-title"> Deallocate State </h3> <ul class="breadcrumb"> ...
<?php $this->beginContent('//layouts/core'); ?> <?php echo $content; ?> <?php $this->endContent(); ?>
<?php use Illuminate\Database\Seeder; class FabricAttributeValuesTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $designs = ['solid', 'stripes', 'Small Checks', 'Big Checks', 'Hairline Stripes']; $materials = ['100%...
<?php // This file is auto-generated, don't edit it. Thanks. namespace AlibabaCloud\SDK\Scsp\V20200702\Models; use AlibabaCloud\Tea\Model; class QueryRingDetailListResponse extends Model { /** * @var string[] */ public $headers; /** * @var QueryRingDetailListResponseBody */ publ...
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Auth_model extends CI_Model { /** * Holds an array of tables used * * @var array **/ public $tbl_employees = "employees"; public $tbl_user_info = "user_informations"; public function __construct() ...
<?php namespace App\Http\Controllers; use App\Http\Controllers\Controller; use App\Http\Requests; use App\Models\Profile; use App\Models\User; use App\Models\Skill; use App\Traits\ActivationTrait; use App\Traits\CaptchaTrait; use App\Traits\CaptureIpTrait; use Auth; use Illuminate\Foundation\Auth\RegistersUsers; use ...
<?php namespace ERP\Api\V1_0\Settings\Professions\Routes; use ERP\Api\V1_0\Settings\Professions\Controllers\ProfessionController; use ERP\Support\Interfaces\RouteRegistrarInterface; use Illuminate\Contracts\Routing\Registrar as RegistrarInterface; use Illuminate\Support\Facades\Route; /** * @author Reema Patel<reema....
<div class="step-box" style="margin-bottom: 100px;"> <?php foreach ($steps as $s){ $class = $s['id'] == $step ? 'active' : ''; if ($id == null) { ?> <a href="/add/step?step=<?= $s['id'] ?>" class="item <?=$class?>"> <div class="point"> ...
<?php use yii\helpers\Html; use yii\widgets\ActiveForm; /* @var $this yii\web\View */ /* @var $model backend\models\SocialMedia */ /* @var $form yii\widgets\ActiveForm */ ?> <div class="social-media-form"> <?php $form = ActiveForm::begin(); ?> <?= $form->field($model, 'remove_photo')->hiddenInput(['value' =...
@extends('admin.dashboard') @section('other_styles') <!-- Custom Theme Style --> <link href="{{ asset('dashboard/build/css/custom.min.css') }}" rel="stylesheet"> <link href="{{ asset('dashboard/production/css/custom.css?v=0.1.2') }}" rel="stylesheet"> @stop @section('content') <?php if(isset($selected))...
@extends('layout') @section('content') <main> <div class="container"> @if($errors->any()) <div class="alert alert-danger"> <ul> @foreach($errors->all() as $message) <li>{{ $message }}</li> ...
<?php // This file is part of Moodle - https://moodle.org/ // // Moodle is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Moodle...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /* | ------------------------------------------------------------------- | DATABASE CONNECTIVITY SETTINGS | ------------------------------------------------------------------- | This file will contain the settings needed to access your database. | |...
<!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> Kursus <small>cetak qrcode</small> </h1> <ol class="breadcrumb"> <li><a href="#"><i class="fa fa-dashboard"></i> H...
<?php use App\Http\Controllers\UserController; use Illuminate\Support\Facades\Route; /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes for your applicatio...
<?php /** * baserCMS : Based Website Development Project <http://basercms.net> * Copyright (c) baserCMS Users Community <http://basercms.net/community/> * * @copyright Copyright (c) baserCMS Users Community * @link http://basercms.net baserCMS Project * @package Baser.View * @since baserCMS v 0.1.0 * @l...
@extends('layouts.dashboard') @section('content') <div class="container"> @if(Session::has('mensaje')) <div class="alert alert-warning alert-dismissible" role="alert"> {{ Session::get('mensaje') }} <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Clos...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateProductColorTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('product_co...
<?php class Lectures extends CI_Model { function __construct() { // Call the Model constructor parent::__construct(); } public function select($code) { $query = $this->db->query("SELECT * FROM lectures WHERE user_id='$code'"); $result = $query->result(); return $resul...
<!-- Begin Page Content --> <div class="container-fluid"> <!-- Page Heading --> <div class="d-sm-flex align-items-center justify-content-between mb-4"> <h1 class="h3 mb-0 text-gray-800">Dashboard</h1> </div> <!-- Content Row --> <div class="row"> <!-- Card --> <div class="...
<?php /** * PHPExcel * * Copyright (c) 2006 - 2013 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later ve...
@extends('Main') @section('content') <div id="ribbon"> <ol class="breadcrumb"> <li>Home</li> </ol> </div> <div id="content"> <section> <div class="row"> <article class="col-xs-12 col-sm-12 col-md-12 col-lg-12"> <div class="product-content product-wrap clearfix product-deatil" style="padding: 5px;backgroun...
<?php defined('C5_EXECUTE') or die("Access Denied."); $ih = Core::make('helper/concrete/ui'); $dh = Core::make('helper/date'); ?> <?php if ($this->controller->getTask() == 'view_detail') { ?> <script type="text/javascript"> deleteFileSet = function() { if (confirm('<?php echo t('Are you sure you want to pe...
<?php namespace frontend\modules\profile\models\forms; use common\models\User; use nenad\passwordStrength\StrengthValidator; use yii\base\InvalidParamException; use yii\base\Model; use Yii; /** * Password reset form. */ class ResetPasswordForm extends Model { public $password; /** * @var \common\mode...
<?php namespace App\Http\Controllers\Seller; use App\Models\Seller; use Illuminate\Http\Request; use App\Http\Controllers\ApiController; class SellerController extends ApiController { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index()...
<?php /** * @link https://craftcms.com/ * @copyright Copyright (c) Pixel & Tonic, Inc. * @license https://craftcms.github.io/license/ */ namespace craft\events; use craft\elements\Asset; use craft\models\AssetTransform; use yii\base\Event; /** * Get Asset url event class * * @author Pixel & Tonic, Inc. <suppo...
@extends('adminlte::page') @section('content') @include('inc.sms') <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="{{ asset('vendor/adminlte/css/auth.css') }}"> <style> * { box-sizing: border-box; } .column { ...
<meta charset="utf-8"> <!-- This file has been downloaded from bootdey.com @bootdey on twitter --> <!-- All snippets are MIT license http://bootdey.com/license --> <meta name="viewport" content="width=device-width, initial-scale=1"> <script src="https://code.jquery.com/jquery-1.10.2.min.js"></script> ...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Auth; use App\Checkout; use App\User; use App\Product; use App\Blog; class HomeController extends Controller { /** * Create a new controller instance. * * @return void */ // public function __construct() // { /...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateHousesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('houses', functio...
<?php /* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * Description of KindEditorAction * * @author Qinn Pan <Pan JingKui, pjkui@qq.com> * @link http://www.pjkui.com * @QQ 714428042 * @date 2015-3-4 */ namespace pjkui\kindeditor; use app\components\hel...
<?php namespace RexShijaku\SQLToLaravelBuilder\Test; use RexShijaku\SQLToLaravelBuilder\SQLToLaravelBuilder; class InsertTest extends AbstractCases { private $type = 'insert'; public function test() { $sql = "INSERT INTO members (name, surname, age) VALUES ('Jökull', 'Júlíusson', 30)"; $...
<?php namespace SessionValidator; use GuzzleHttp\Exception\GuzzleException; use Psr\Http\Message\ResponseInterface; use Psr\Log\LoggerInterface; use Psr\Log\NullLogger; use SessionValidator\Http\EscherClient; class Client implements ClientInterface { const SERVICE_TIMEOUT = 0.25; /** @var EscherClient */ ...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; class RegisterController extends Controller { public function index() { return view('register.index', [ 'title' => 'Register' ]); } } { public function store(Re) { $request->validate([ ...
<?=$this->session->flashdata('name');?> <div class="dropdown-divider"></div> <div class="row mb-2"> <div class="col-sm-12"> <h4 class="m-0 text-dark">Permintaan Pelayanan Hari Ini</h4> </div><!-- /.col --> </div><!-- /.row --> <div class="row"> ...
<? if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die(); $arTemplateDescription = array( "NAME" => GetMessage("COMPONENTS_MENU_TOP_MENU_NAME"), "DESCRIPTION" => GetMessage("COMPONENTS_MENU_TOP_MENU_DESC"), ); ?>
<!DOCTYPE html> <html> <!-- Mirrored from gambolthemes.net/html/workwise/sign-in.html by HTTrack Website Copier/3.x [XR&CO'2014], Thu, 13 Sep 2018 11:47:37 GMT --> <head> <meta charset="UTF-8" /> <title>Ixxiir</title> <meta name="description" content="" /> <meta name="keywords" content="" /> <meta name="...
<?php use \Bitrix\Main; if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die(); /** * Bitrix vars * * @var array $arParams * @var array $arResult * @var CBitrixComponentTemplate $this * @var CMain $APPLICATION * @var CUser $USER */ CUtil::InitJSCore(array('ajax', 'fx', 'viewer')); // *************...
<?php $__env->startSection('content'); ?><p>A gushing biography of the Duchess of Sussex is inaccurate and anodyne, her lawyer said yesterday.</p> <p>In court papers, Jenny Afia said the authors of Finding Freedom had relied on creative licence to produce their best-selling account of Meghan and Harry’s lives.</p> <p...
<?hh const vec<mixed> VALS = vec[ null, false, true, 0, 42, 1.234, 'foobar', '', '1234', '1.234', STDIN, ]; class Foo { public mixed $preInc; public mixed $postInc; public mixed $preDec; public mixed $postDec; } <<__EntryPoint>> function main(): void { foreach(VALS as $i) { $o = n...
<?php /** * Factory of REST request deserializers. * * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Framework\Webapi\Rest\Request; use Magento\Framework\Phrase; class DeserializerFactory { /** * @var \Magento\Framework\ObjectManagerInterface ...
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Http\Request; class ProductsRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true;...
<?php require('/../header.php') ?> <?php require('/../sidebar.php') ?> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> Registrar Usuarios <!-- <small>Optional description</small> ...
<?php use Illuminate\Support\Facades\Broadcast; /* |-------------------------------------------------------------------------- | Broadcast Channels |-------------------------------------------------------------------------- | | Here you may register all of the event broadcasting channels that your | application suppo...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateRalliesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('rallies', funct...
@extends('layouts.app') @section('content') <div ng-app="myApp" ng-controller="employeesController"> <div my-custom-url></div> </div> @stop
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Login</title> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkK...
<?php namespace Curema\Http\Controllers\App; use Curema\Models\App\Change; use Curema\Models\User; use Curema\Models\App\Call; use Curema\Models\App\Lead; use Curema\Models\App\Account; use Curema\Models\App\Contact; use Illuminate\Http\Request; use Curema\Http\Requests; use Curema\Http\Controllers\Controller; clas...
<h2>Bienvenido {{ $user->name }}!</h2> <p>Esperemos que nuestra aplicación te sea de gran utilidad!</p>
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class SaveReferenceRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * ...
<?php namespace Topxia\AdminBundle\Controller; use Symfony\Component\HttpFoundation\Request; use Topxia\Common\ArrayToolkit; use Topxia\Common\ConvertIpToolkit; use Topxia\Common\Paginator; class LoginRecordController extends BaseController { public function indexAction (Request $request) { $conditions = $r...
<?php namespace App\Jobs; use Throwable; use App\Models\Icon; use App\Models\User; use App\Models\Rates; use App\Models\Product; use App\Models\Accessories; use App\Models\CustomFields; use App\Models\ProductGroup; use App\Models\ResourceType; use Illuminate\Bus\Queueable; use Illuminate\Support\Facades\DB; use App\M...
<?php namespace Pusaka\Database\Exceptions; class SqlException extends DatabaseException{}
<?php return [ /* |-------------------------------------------------------------------------- | Password Reminder Language Lines |-------------------------------------------------------------------------- | | The following language lines are the default lines which match reasons | that are ...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class Transactions extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('transactions', functi...
<?php namespace Laravel\Dusk\Concerns; use Illuminate\Support\Str; use PHPUnit\Framework\Assert as PHPUnit; use Facebook\WebDriver\Remote\RemoteWebElement; use Facebook\WebDriver\Exception\NoSuchElementException; trait MakesAssertions { /** * Assert that the page title is the given value. * * @par...
@extends ('layout.master4') @section('content') @section('content1') <!-- /.sidebar-menu --> </div> </div> <!-- /.sidebar --> </aside> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper" style="min-height: 406px;"> <!-- Content Header (Page header) --> ...
<?php /* * This file is part of jwt-auth. * * (c) Anla sheng <anlasheng@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Anla\JWTAuth\Test\Claims; use Anla\JWTAuth\Claims\IssuedAt; use Anla\JWTAuth\Test\Abstr...
<?php /* * Copyright 2014 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
<?php namespace Engineering; class Product { private $_error; public $id; public $code; public $title; public $description; public function __construct($id = 0) { if (is_numeric($id) and $id > 0) { $this->id = $id; $this->details(); } } public function add($parameters = array()) { ...
<?php namespace App\Http\Controllers; use App\Models\Bag; use Illuminate\Http\Request; use Illuminate\Validation\Rule; use App\Models\BagTransactionType; use Illuminate\Support\Facades\Auth; class ManifestController extends Controller { public function index(Request $request){ $user = Auth::user(); ...
<?php namespace App\Services; use App\Models\CartItem; use Illuminate\Support\Facades\Auth; class CartService{ public function get(){ return Auth::user()->cartItems()->with(['productSku.product'])->get(); } public function add($skuId,$amount){ $user = Auth::user(); //从数据表中查询该商品是...
<html> <body> <?php echo "<pre>" . print_r($_COOKIE, 1) . "</pre>"; ?> <h1>Cookies.php View</h1> </body> </html>
<?php use yii\helpers\Html; /* @var $this \yii\web\View view component instance */ /* @var $message \yii\mail\MessageInterface the message being composed */ /* @var $content string main view render result */ ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"...
<?php // validates phone number. Returns true iff the $number is a valid phone number function check_phone($number) { if ($number == null) return false; // Source: Jon Stephens, http://regexlib.com/REDetails.aspx?regexp_id=478 $regex = '/^(\(?\d\d\d\)?)?( |-|\.)?\d\d\d( |-|\.)?...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateCursosTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('tbl_cursos', fun...
@extends('layout') @section('content') <div class="container py-5"> <a class="nav-link active mb-5 btn btn-info text-white d-inline-block" aria-current="page" href="{{ route('playlist.create') }}">Playlist Create</a> <div class="row"> @foreach($myPlaylists as $my...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateCityModelsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('tbl_city', f...
<html> <head> <title></title> </head> <body> <?= $rak->rak_nama; ?> </body> </html>
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"> </head> ...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Side Menu Dashboard</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/all.min.css" /> <link...