text stringlengths 2 1.03M |
|---|
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\Facades\DB;
class CreateProductsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
... |
<?php
namespace App\Controllers;
use App\Controllers\BaseController;
use App\Models\UserModel;
class User extends BaseController
{
private $userModel;
public function __construct()
{
$this->userModel = new UserModel();
}
public function index()
{
return view('users', [
... |
<?php
namespace Database\Factories;
use App\Models\admin;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
class AdminFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = admin::class;
/**
... |
<?php
/**
* This file is part of the Tracy (https://tracy.nette.org)
* Copyright (c) 2004 David Grudl (https://davidgrudl.com)
*/
declare (strict_types=1);
namespace RectorPrefix20220202\Tracy;
class FileSession implements \RectorPrefix20220202\Tracy\SessionStorage
{
private const FILE_PREFIX = 'tracy-';
p... |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Hotel Paradise</title>
<link href='https://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400,400italic,700,700italic,800' rel='stylesheet' type='text/css'>
<link rel="Stylesheet" href="main.css">
<link rel="Stylesheet" href="responsive.css">
<meta name=... |
<?php
/* @WebProfiler/Profiler/base_js.html.twig */
class __TwigTemplate_650279ff25c36af8403aad07e64f67825c010b86ebd32fa4c27eb6548aac4018 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = arra... |
@extends('layouts.app')
@section('header')
<div class="container">
@include('pages.partials.background', ['background' => $background])
<div class="row">
<div class="col-lg-12">
<div class="intro-text text-shadow">
<span class="name text">Search</span>
<hr class="star-light">
</div>
</di... |
<?php
namespace App\Http\Controllers\Users\MailSubscription;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
class SubscribeController extends Controller
{
//
} |
<?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... |
<?php
$form = \yii\bootstrap\ActiveForm::begin();
echo $form->field($model,'name')->textInput();
echo $form->field($model,'parent_id')->dropDownList(\backend\models\Menu::getName());
echo $form->field($model,'path')->dropDownList(\backend\models\Menu::getPath());
echo $form->field($model,'sort')->textInput();
echo '<bu... |
<?php
declare(strict_types = 1);
namespace Graphpinator\Exception\Tokenizer;
final class NumericLiteralLeadingZero extends \Graphpinator\Exception\Tokenizer\TokenizerError
{
public const MESSAGE = 'Numeric literal with leading zeroes.';
} |
<?php
function validate($data){
$data = trim($data);
$data = stripslashes($data);
$data = htmlspecialchars($data);
$data = str_replace('\\', '', $data);
$data = str_replace('/', '', $data);
$data = str_replace("'", '', $data);
$data = str_replace(";", '', $data);
$data = str_replace("(", '', $dat... |
<?php
/**
* Pi Engine (http://piengine.org)
*
* @link http://code.piengine.org for the Pi Engine source repository
* @copyright Copyright (c) Pi Engine http://piengine.org
* @license http://piengine.org/license.txt BSD 3-Clause License
*/
namespace Module\Demo\Form;
use Zend\InputFilter... |
<div class="loader-wrap" id="loading" style="display:none;" >
<div class="loader"><span class="loader-item"></span><span class="loader-item"></span><span class="loader-item"></span><span class="loader-item"></span><span class="loader-item"></span><span class="loader-item"></span><span class="loader-item"></span><span... |
<?php
use yii\db\Migration;
/**
* Handles the creation of table `{{%leads}}`.
*/
class m200815_223857_create_leads_table extends Migration
{
const TABLE_NAME = 'leads';
/**
* {@inheritdoc}
*/
public function safeUp()
{
$this->createTable(static::TABLE_NAME, [
'id' => $this->primaryKey(),
'n... |
<?php
declare(strict_types=1);
if (class_exists(tx_recycler_helper::class)) {
return;
}
class tx_recycler_helper
{
} |
<?php
namespace GraphAware\Neo4j\OGM\Tests\Community;
use GraphAware\Neo4j\OGM\Tests\Community\Issue21\TestUser;
use GraphAware\Neo4j\OGM\Tests\Integration\IntegrationTestCase;
/**
* Class ExportEntityToJsonTest
* @package GraphAware\Neo4j\OGM\Tests\Community
*
* @group export
*/
class ExportEntityToJsonTest ex... |
<?php
use hipanel\helpers\Url;
use hipanel\modules\stock\widgets\combo\DestinationCombo;
use hipanel\modules\stock\widgets\combo\PartnoCombo;
use hipanel\modules\stock\widgets\combo\SourceCombo;
use hipanel\widgets\Box;
use hipanel\widgets\DynamicFormWidget;
use yii\bootstrap\ActiveForm;
use yii\helpers\Html;
$this->... |
<?php
namespace Costume\Model\Costume;
use Costume\Model\Costume;
use Zend\Stdlib\Hydrator\HydratorInterface;
use Costume\Model\CostumeTable;
use Costume\Model\Tag;
use Costume\Model\Type;
use Costume\Model\TypeTable;
use Costume\Model\MaterialTable;
use Costume\Model\Material;
class FormHydrator implements HydratorI... |
<section class="content">
<div class="container-fluid">
<!-- Striped Rows -->
<div class="row clearfix">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="card">
<div class="header">
<... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Concerner extends Model
{
//
} |
<?php
namespace SaadTazi\GChartBundle\DependencyInjection;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\Config\FileLocator;
class SaadTaziGChartExtens... |
<?php
namespace DoctrineProxies\__CG__\App\Entities\Master;
/**
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
*/
class Role extends \App\Entities\Master\Role implements \Doctrine\ORM\Proxy\Proxy
{
/**
* @var \Closure the callback responsible for loading properties in the proxy obje... |
<?php
namespace LearnosityQti\Entities\QuestionTypes;
use LearnosityQti\Entities\BaseQuestionTypeAttribute;
/**
* This class is auto-generated based on Schemas API and you should not modify its content
* Metadata: {"responses":"v2.108.0","feedback":"v2.71.0","features":"v2.107.0"}
*/
class classification_ui_style ex... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateMatriculasTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('matriculas',... |
@extends('layouts.admin')
@section('content')
<div class="content">
<div class="row">
<div class="col-lg-12">
<div class="card">
<div class="card-header">
Tableau de bord
<div class="pagination justify-content-center">{{ $indicateurs->links... |
@extends('client.layout.master')
@section('content')
<main>
<div class="box-main">
<div class="container-register">
<div class="title">Đăng ký tài khoản</div>
<div class="content">
<form action="/register" method="post">
... |
@extends('admin.master')
@section('content')
<!-- Page Content -->
<div id="page-wrapper">
<div class="container-fluid">
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">User
<small>Thêm</small>
</h1>
</div>
... |
<?php
class ControllerExtensionFeed extends Controller {
public function index() {
$this->language->load('extension/feed');
$this->document->setTitle($this->language->get('heading_title'));
$this->data['breadcrumbs'] = array();
$this->data['breadcrumbs'][] = array(
'text' => $this->language->get('t... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Spatie\Permission\Traits\HasRoles;
class User extends Authenticatable
{
use Notifiable;
use HasRoles;
/**
* The table associated with the ... |
<?php
/*******************************************************************************
* Copyright 2009-2015 Amazon Services. All Rights Reserved.
* 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 ... |
<?php
/**
* TSqlMapException is the base exception class for all SqlMap exceptions.
*
* @author Wei Zhuo <weizho[at]gmail[dot]com>
* @package Prado\Data\SqlMap\DataMapper
* @since 3.1
*/
namespace Prado\Data\SqlMap\DataMapper;
/**
* TSqlMapDuplicateException, raised when a duplicate mapped statement is found.
... |
<?php
namespace App\Http\Controllers\Client;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Http\Requests;
use Cookie;
class Premium extends Controller{
private $dados = [];
public function index(){
$this->dados['headTitulo'] = trans('site_v2.t_history_premium')... |
<?php
declare(strict_types=1);
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace yii\db\mssql;
use yii\base\InvalidArgumentException;
use yii\base\NotSupportedException;
use yii\db\Constraint;
use yii\db\Express... |
@include('_partials/topbar')
<header class="flex w-full py-6 ">
<div class="max-w-6xl xl:w-3/4 mx-auto flex justify-between">
<div class="w-full sm:w-1/2 md:w-1/3">
<a href="{{ $page->baseUrl }}">@include('_svg/logo')</a>
</div>
<div class="flex items-center w-full sm:w-1/2 md:w-2/3">
@includ... |
<?php $this->load->view('back/head'); ?>
<?php $this->load->view('back/header'); ?>
<?php $this->load->view('back/leftbar'); ?>
<div class="content-wrapper">
<section class="content-header">
<h1><?php echo $title ?></h1>
<ol class="breadcrumb">
<li><a href="<?php echo base_url('admin/dashboard') ... |
<div id="disqus_thread"></div>
<script>
/**
* RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS.
* LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables*/
var dis... |
<?php
namespace RectorPrefix20211019\TYPO3\CMS\Core\Utility;
if (\class_exists('TYPO3\\CMS\\Core\\Utility\\MailUtility')) {
return;
}
class MailUtility
{
/**
* @return mixed[]
*/
public static function parseAddresses($rawAddresses)
{
return [];
}
} |
<?php
$version = '2.3.1'; // the $ projectnumber variable is automatically replaced by doxygen with the version number
$pagetitle = 'Class Members - Enumerator'; // the $ title variable is automatically replaced by doxygen with the page title
include('../header-fr.php');
?>
<!-- Generated by Doxygen 1.8.10 ... |
<?php
use yii\helpers\Html;
use kartik\detail\DetailView;
use app\models\User;
/* @var $this yii\web\View */
/* @var $model app\models\MenuPanel */
$this->title = $model->name;
$this->params['breadcrumbs'][] = ['label' => 'Available Menu', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div cl... |
<?php
class SelectionSort extends Strategy{
public function getSort(SortArr $sort){
//选择排序
//工作原理,首先找到最小元素放到数组的首位,其次再在接下来的数组中找到最小的数,放在首位的后一个位置,依次类推
$array = $sort::$_arr;
//不稳定算法,因为相同的两个值位置可能互换
$len = sizeof($array);
//先进行循环依次循环出最小值
for($i = 0;$i<$len;$i++){
//假设最小值是$p,每循环一次,$i自动处在最小位置的后一位... |
@extends("admin.admin")
@section("adminContent")
<div class="panel panel-default">
<div class="panel-heading">Exercise Admin</div>
<div class="panel-body">
@if (count($errors) > 0)
<div class="alert alert-danger">
<strong>Whoops!</strong> There were some problems with your i... |
<?php
namespace RunetId\Client\Endpoint;
use GuzzleHttp\Psr7\Response;
use PHPUnit\Framework\TestCase;
use RunetId\Client\ClientTestTrait;
use RunetId\Client\Fixtures\Result\TestResult;
final class AbstractEndpointTest extends TestCase
{
use ClientTestTrait;
public function testQuerySetters()
{
... |
<?php
switch($_GET[act]){
default:
echo "<h2>Data Kemacetan</h2>";
include "menu_data_kemacetan.php";
include "form_data_kemacetan.php";
echo " <p>Opsi: <a href=./aksi.php?module=data_kemacetan&act=hapus_semua_data_kemacetan>Hapus Semua Data</a></p>";
include "upload_csv.php"... |
<?php
return [
'interfaces' => [
'google.ads.googleads.v5.services.UserDataService' => [
'UploadUserData' => [
'method' => 'post',
'uriTemplate' => '/v5/customers/{customer_id=*}:uploadUserData',
'body' => '*',
'placeholders' => [
... |
<?php
/**
* Created by PhpStorm.
* User: sunhandong
* Date: 2017/6/21
* Time: 上午10:50
*/
namespace app\admin\controller;
use app\admin\Admin;
class Withdraw extends Admin {
/**
* 佣金提现列表
*/
public function index() {
$state = (int)I("get.state");
$type = (int)I("get.type");
... |
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- CSRF Token -->
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>{{ config('app.name', 'Laravel') }}</tit... |
<?php
// autoload_namespaces.php @generated by Composer
$vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
'Prophecy\\' => array($vendorDir . '/phpspec/prophecy/src'),
'Mockery' => array($vendorDir . '/mockery/mockery/library'),
'Kris\\LaravelFormBuilder' => array($ven... |
<?php
/**
* This code was generated by
* \ / _ _ _| _ _
* | (_)\/(_)(_|\/| |(/_ v1.0.0
* / /
*/
namespace Twilio\Rest\Taskrouter\V1\Workspace;
use Twilio\Exceptions\TwilioException;
use Twilio\InstanceContext;
use Twilio\Options;
use Twilio\Rest\Taskrouter\V1\Workspace\TaskQueue\TaskQueueCumulativ... |
<x-jet-form-section submit="updatePassword">
<x-slot name="title">
{{ __('Update Password') }}
</x-slot>
<x-slot name="description">
{{ __('Ensure your account is using a long, random password to stay secure.') }}
</x-slot>
<x-slot name="form">
<div class="card border-0">
... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>Robson Valley Trails</titl... |
<?php
if (isset($_POST["path"])) {
header("Content-type: application/octet-stream");
require_once("KVDBVFS.class.php");
$path = $_POST['path'];
$fs = new KVDBVFS();
$content = $fs->getFile($path);
echo $content;
}
else{
header("Content-type: text/html; charset=utf-8");
echo '<html><form method="POST">path: <inp... |
<?php
namespace app\controller;
use app\BaseController;
class Install extends BaseController
{
protected $data=[];
/**下一步,安装
* @return \think\response\Json|\think\response\View
*/
public function next()
{
if($this->request->isPost()) {
$dbHost = $this->request->par... |
<?php
namespace app\api\controller;
use think\Controller;
use think\Db;
use think\validate;
use think\facade\Session;
use Qiniu\Auth;
use Qiniu\Storage\UploadManager;
class Index extends Controller{
public function initialize(){
header('content-type:text/html;charset=utf-8');
header('Access-Control-A... |
<?php
namespace App\Http\Controllers;
use App\Models\User;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
use Illuminate\Support\Facades\Hash;
class AuthController extends Controller
{
public function register(Request $request)
{
$fields = $request->validate([
'name' => 'requi... |
<?php
namespace App\Shop\Fairs\Repositories;
use App\Shop\Carts\Repositories\CartRepository;
use App\Shop\Carts\ShoppingCart;
use App\Shop\Fairs\Fair;
use Carbon\Carbon;
use Gloudemans\Shoppingcart\Facades\Cart;
use Illuminate\Support\Facades\DB;
use Jsdecena\Baserepo\BaseRepository;
use App\Shop\Employees\Employee;
... |
<?php
namespace Shopsys\FrameworkBundle\Model\AdvancedSearchOrder\Filter;
use Doctrine\ORM\QueryBuilder;
use Shopsys\FrameworkBundle\Form\DatePickerType;
use Shopsys\FrameworkBundle\Model\AdvancedSearch\AdvancedSearchFilterInterface;
class OrderCreateDateFilter implements AdvancedSearchFilterInterface
{
/**
... |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreatePersonsImagesPivotTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
//
Schema::create('persons_images', function($t... |
<?php
/*
* This file is part of the Predis package.
*
* (c) Daniele Alessandri <suppakilla@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Predis\Command;
/**
* @group commands
* @group realm-key
*/
class... |
<?php
namespace Google\AdsApi\AdManager\v201805;
/**
* This file was generated from WSDL. DO NOT EDIT.
*/
class ActualizeProposalLineItems extends \Google\AdsApi\AdManager\v201805\ProposalLineItemAction
{
public function __construct()
{
}
} |
<?php
namespace Elgg\Di;
/**
* Public service container
*
* @property-read \Elgg\Users\Accounts $accounts User accounts service
* @property-read \Elgg\Comments\ThreadPreloaderService $thread_preloader Comments thread preloader
* @property-read \Elgg\Config $confi... |
<?php
namespace Edwin404\Sms\Services;
use Edwin404\Base\Support\Response;
class WohuiSmsService
{
public function send($appKey, $tplId, $phone, $param = [])
{
if (empty($appKey)) {
return Response::generate(-1, 'appKey empty');
}
if (empty($tplId)) {
return ... |
<?php
namespace Welinkeo\AdminBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class AdminBundle extends Bundle
{
} |
<?php
namespace App\Http\Controllers;
use Illuminate\Support\Facades\Notification;
use App\invoices;
use App\sections;
use App\User;
use App\invoices_details;
use App\invoice_attachments;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Storage;
use Illuminate\Support\Facades\DB;
use Illuminate\Http... |
<?php
namespace App\Requests\User;
use App\Models\User;
use App\Repositories\Base\BaseFormRequest;
class CreateUserRequest extends BaseFormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
if (auth()->us... |
<?php
namespace App\Http\Controllers\Api;
use App\Http\Requests\AuthMlOpenidStoreRequest;
use App\Models\User;
use App\Transformers\UserTransformer;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\Auth;
class AuthController extends Controller
{
public function testLogin()
{
$user... |
<h3 class="mb-4">Architektur</h3>
<div class="map" id="map1"></div>
<h3>Ungefähre Gehzeit</h3>
<pre>1 h 45 min</pre>
<h3 class="mb-4">Beschreibung</h3>
<div class="content">
<p class="mb-4">Die Tour startet bei den zwei ältesten Kathedralen
der Stadt und führt dann zum berühmten Dublin Castle, ei... |
<?php
/**
* Phalcon Framework
* This source file is subject to the New BSD License that is bundled
* with this package in the file docs/LICENSE.txt.
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@phalconphp.com so we can s... |
<?php
include_once("PublisherController.php");
$sqlSelect = "SELECT `PublisherId`, `PublisherName`, `PublisherDescription` FROM `Publisher`";
$list_publisher= mysqli_query($conn,$sqlSelect);
?>
<h3 class="w3_inner_tittle two text-center">Management of producer</h3>
<a class="btn btn-primary" href="?page=AddPublishe... |
<?php
namespace App\Http;
use Illuminate\Foundation\Http\Kernel as HttpKernel;
class Kernel extends HttpKernel
{
/**
* The application's global HTTP middleware stack.
*
* These middleware are run during every request to your application.
*
* @var array
*/
protected $middleware =... |
<?php
namespace Matecat\LanguageTools\Command;
use Matecat\LanguageTools\Pipeline;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\S... |
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model common\models\DetailArtikel */
$this->title = 'Create Detail Artikel';
$this->params['breadcrumbs'][] = ['label' => 'Detail Artikels', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="detail-artikel-create">
... |
<?php
namespace Database\Factories;
use App\Models\Driver;
use Illuminate\Support\Str;
use Illuminate\Database\Eloquent\Factories\Factory;
class DriverFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = Driver::class;
/... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreatePostsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('posts', function ... |
<?php
namespace app\admins\controller;
use think\Controller;
use util\data\Sysdb;
class Account extends Controller
{
public function login()
{
return $this->fetch();
}
public function dologin()
{
$username = trim(input('post.username'));
$pwd = trim(input('post.pwd'));
... |
<x-guest-layout>
<x-jet-authentication-card>
<x-slot name="logo">
<img src="/imagen/icons/logo-vectorizado.jpg" width="100px" height="100px" alt="">
</x-slot>
<x-jet-validation-errors class="mb-4" />
@if (session('status'))
<div class="mb-4 font-medium text-... |
<!DOCTYPE html>
<html lang="{{ app()->getLocale() }}">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="csrf-token" content="{{ csrf_token() }}" />
<title... |
@if (count($microposts) > 0)
<ul class="list-unstyled">
@foreach ($microposts as $micropost)
<li class="media mb-3">
{{-- 投稿の所有者のメールアドレスをもとにGravatarを取得して表示 --}}
<img class="mr-2 rounded" src="{{ Gravatar::get($micropost->user->email, ['size' => 50]) }}" alt="">
... |
<?php
class Device_model extends CI_Model
{
private $_table = "tb_device";
const SESSION_KEY = 'id';
public function rules()
{
return [
[
'field' => 'device_name',
'label' => 'Device Name',
'rules' => 'required',
]
... |
@extends('layouts.admin')
@section('title', '登録済みニュースの一覧')
@section('content')
<div class="container">
<div class="row">
<h2>ニュース一覧</h2>
</div>
<div class="row">
<div class="col-md-4">
<a href="{{ action('Admin\NewsController@add') }}" role="button" c... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Order extends Model
{
//
protected $table = "orders";
protected $fillable = ['id', 'customer_id', 'total_cost', 'date_buy',
'date_transfer', 'status', 'name_customer', 'phonenumber', 'address',
'is_card', 'card'];
public... |
@extends('layouts.master')
@section('content-header')
<h1>
{{ trans('slider::sliders.titles.create slide') }}
</h1>
<ol class="breadcrumb">
<li><a href="{{ route('dashboard.index') }}"><i class="fa fa-dashboard"></i> {{ trans('core::core.breadcrumb.home') }}</a></li>
<li><a href="{{ route('admin.slider.sli... |
<?php
namespace App\Http\Controllers;
//header("Content-Type: text/html; charset=UTF-8");
use Illuminate\Http\Request;
use App\Http\Requests;
class FunctionController extends Controller
{
public function index()
{
echo 'это вызов из роута который обращается к файлу ';
echo "<br>";
re... |
<?php
namespace App\Exceptions\CustomExceptions;
use App\Domain\Responder\Interfaces\IApiHttpResponder;
use Exception;
use Illuminate\Http\JsonResponse;
class ApiValidationException extends Exception
{
/**
* @return JsonResponse
* @author Mustafa Goda
*/
public function render(): JsonRespons... |
<?php
require('autoload.php');
$metaCharset = new Meta("UTF-8");
$metaHttEquiv = new Meta(null, null, "X-UA-Compatible", "IE=edge");
$metaName = new Meta(null, "viewport", null, "width=device-width, initial-scale=1.0");
/*Login*/
$title = new Title('DWII');
$conn = new Conexao();
/*Login - Fim*/
/*Head*/
$linkBootst... |
<?php
class modLess {
function __construct($app) {
require __DIR__ . "/vendor/leafo/lessphp/lessc.inc.php";
$this->minify = false;
$this->app = $app;
$this->file = $this->app->route->path_app.$this->app->route->uri;
$this->path();
$this->name = explode('/', substr($this->file, 0, -5));
$th... |
<?php
class PageNet extends CMyActiveRecord {
public function getTranslatedFields() {
return array(
'meta_description' => 'string',
'meta_keywords' => 'string',
'meta_title' => 'string',
'page_title' => 'string',
'content' => 'text',
... |
<?php
use yii\helpers\Html;
use app\assets\AppAsset;
AppAsset::register($this);
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html style="overflow-y: hidden" lang="<?= Yii::$app->language ?>">
<head>
<meta charset="<?= Yii::$app->charset ?>">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta nam... |
<?php
define('YII_DEBUG', true);
define('YII_ENV', 'dev');
require __DIR__ . '/../vendor/autoload.php';
require __DIR__ . '/../vendor/yiisoft/yii2/Yii.php';
$app = new yii\console\Application(\yii\helpers\ArrayHelper::merge(
require __DIR__ . '/../common/config/main.php',
require __DIR__ . '/../console/confi... |
<?php
require_once __DIR__ . '/../vendor/autoload.php';
require_once __DIR__ . '/MyEvent.php';
use Symfony\Component\EventDispatcher\Event;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Rx\Observable;
interface EventObservableSubscriberInterface extends EventSubscriberInterface
{
public st... |
<?php
l::set('selector.empty', 'Nog geen bestanden gevonden.'); |
<div class="row justify-content-center">
<div class="col-md-12">
<div class="card">
<div class="card-header">
@if($item->is_published)
Опубликовано
@else
Черновик
@endif
</div>
<div class="card-body">
<div class="card-title"></div>
<div class="card-subtitle mb-2 text-muted"></d... |
@extends('layout.layouts')
@section('content')
<div class="left-content">
<h2 contenteditable="true">:编辑分区</h2>
<br>
<h5 style="color:red">{{ session('info')}}</h5>
<!-- 判断用户登录后状态 -->
@if(session('master'))
<div class=... |
<body class="profReg-bg">
<div class="container-fluid">
<h1 class="animated bounceIn moduleHead">Professor Registration</h1>
<div class="row">
<div class="col-md-2 col-sm-2 col-2"></div>
<div class="col-md-8 col-sm-8 col-8">
<!--START ------------------------------ Backup Error ------------------------------... |
<?php
namespace Fuel\Migrations;
class Create_divitions
{
public function up()
{
\DBUtil::create_table('divitions', array(
'id' => array('constraint' => 11, 'type' => 'int', 'auto_increment' => true, 'unsigned' => true),
'divition_name' => array('constraint' => 255, 'type' => 'varchar', '0' => true),
'de... |
@extends('layouts.main')
@section('content')
<div class="popular Tv-Shows mb-16">
<div class="container mx-auto px-4 pt-16">
<h2 class=" uppercase tracking-wider text-orange-400 font-semibold text-lg ">
popular tv show
</h2>
<div class="grid gird-cols-1 sm:grid-cols-2 md:grid-... |
<?php use App\Common\Constant; ?>
@extends('admin.layouts.master')
@section('head.title','Danh Sách Loại Thiêt Bị')
@section('head.css')
<link href="{{asset('css/admin/plugins/dataTables.bootstrap4.css')}}" rel="stylesheet">
@endsection
@section('body.js')
<script type="text/javascript" src="{{asset('js/adm... |
<nav x-data="{ open: false }" class="bg-white border-b border-black-100">
<!-- Primary Navigation Menu -->
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex justify-between h-16">
<div class="flex">
<!-- Logo -->
<div class="flex-shrink-0 f... |
@extends('partials.main')
@section('content')
<div class="bg-danger">
<h2 class="d-flex font-bold justify-content-center text-uppercase text-white">SLot Type List</h2>
<table class="table table-dark">
<thead>
<tr>
<th scope="col">Serial</th>
<th scope="col">Slot Type</th>
<th scope="col">Cost<... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Mail Driver
|--------------------------------------------------------------------------
|
| Laravel supports both SMTP and PHP's "mail" function as drivers for the
| sending of e-mail. You may s... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.