text stringlengths 2 1.03M |
|---|
<?php
if(isset($_POST['contactFrmSubmit']) && !empty($_POST['name']) && !empty($_POST['email']) && (!filter_var($_POST['email'], FILTER_VALIDATE_EMAIL) === false) && !empty($_POST['message'])){
// Submitted form data
$name = $_POST['name'];
$email = $_POST['email'];
$message= $_POST['message'];... |
<?php
namespace App\Providers;
use Illuminate\Cache\RateLimiting\Limit;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\RateLimiter;
use Illuminate\Support\Facades\Route;
class RouteServiceProvider extends ServiceProvide... |
<?php
namespace sis_Inventario\Http\Controllers;
use Illuminate\Http\Request;
use sis_Inventario\Http\Requests;
use Illuminate\Support\Facades\Redirect;
use Illuminate\Support\Facades\Input;
use sis_Inventario\Http\Requests\ArticuloFormRequest;
use sis_Inventario\Articulo;
use DB;
use Fpdf;
class ArticuloControll... |
<?php
// classpath
namespace Mimoto\User;
// Mimoto classes
use Mimoto\Mimoto;
use Mimoto\Core\CoreConfig;
// Silex classes
use Silex\Application;
/**
* UserService
*
* @author Sebastian Kersten (@supertaboo)
*/
class UserService
{
private $_app = null;
private $_user = null;
// ---------------... |
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Validation\Rule;
class ClientePost extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateCategoriesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('categories',... |
<?php
namespace App\Exceptions;
use Exception;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
use Request;
use Illuminate\Auth\AuthenticationException;
use Response;
class Handler extends ExceptionHandler
{
/**
* A list of the exception types that are not reported.
*
* @var arr... |
<?php
namespace App\Http\Controllers\Product;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Models\Product;
use App\Models\Attribute;
use Illuminate\Support\Facades\Validator;
use Illuminate\Validation\Rule;
class ProductController extends Controller
{
public function index(){
$product... |
<?php
return [
'@class' => 'Grav\\Common\\File\\CompiledYamlFile',
'filename' => 'C:/xampp/htdocs/user/plugins/admin/languages/ar.yaml',
'modified' => 1521108988,
'data' => [
'PLUGIN_ADMIN' => [
'ADMIN_BETA_MSG' => 'هذا إصدار بيتا! استخدم هذا في الإنتاج على مسؤوليتك الخاصة...',
... |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Bayes extends CI_Controller {
public function __construct() {
parent::__construct();
$this->load->library('session');
$this->simple_login->cek_login();
$this->load->model('m_bayes');
//$this->load->model('m_search');
$this-... |
<?php
$filename = __DIR__ . "/SplFileInfo_getGroup_basic";
touch($filename);
$fileInfo = new SplFileInfo($filename);
$expected = filegroup($filename);
$actual = $fileInfo->getGroup();
var_dump($expected == $actual);
?>
<?php error_reporting(0); ?>
<?php
$filename = __DIR__ . "/SplFileInfo_getGroup_basic";
unlink($filen... |
<?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Contracts\Auth\Guard;
class RedirectIfAuthenticated
{
/**
* The Guard implementation.
*
* @var Guard
*/
protected $auth;
/**
* Create a new filter instance.
*
* @param Guard $auth
* @return void
... |
<?php
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$this->call(PostsTableSeeder::class);
$this->call(PostsTableSeeder::class);
}
} |
<?php
// Heading
$_['heading_title'] = 'Mot de passe oublié?';
// Text
$_['text_account'] = 'Compte';
$_['text_forgotten'] = 'mot de passe oublié';
$_['text_your_email'] = 'Votre adresse email';
$_['text_email'] = 'Entrez l`adresse e-mail associée à votre compte. Cliquez sur soumettre pour avoir un lien... |
<!DOCTYPE>
<html>
<head>
<title></title>
<style type="text/css">
.invoice-box{
max-width:100%;
margin-top:20px;
}
table {
border-collapse: collapse;
}
</style>
</head>
<body>
<div class="invoice-box">
<table style="width:100%;" border="0">
<tr>
<th colspan="2" style="font-size:25px;font-... |
@extends('layouts.admin_master')
@section('title', 'Vaccination Center')
@section('angular')
<script src="{{url('app/admin/vaccine_point/vaccine_point.module.js')}}"></script>
<script src="{{url('app/admin/vaccine_point/vaccine_point.controller.js')}}"></script>
<script src="{{url('app/admin/vaccine_point... |
<?php
declare(strict_types=1);
namespace Shopsys\FrontendApiBundle\Model\Resolver\Brand;
use Overblog\GraphQLBundle\Definition\Resolver\AliasedInterface;
use Overblog\GraphQLBundle\Definition\Resolver\ResolverInterface;
use Shopsys\FrameworkBundle\Component\Domain\Domain;
use Shopsys\FrameworkBundle\Model\Product\Br... |
{{--<div class="row">--}}
<div class="col-md-6 col-md-offset-3">
{{ csrf_field() }}
<div class="form-group">
<input type="text" class="form-control" name="name" id="name" placeholder="Name" value="{{ old('name') }}">
</div>
<div class="form-group">
<input ty... |
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>@yield('title','Aprogrammer')</title>
</head>
<body>
<ul>
<a href="php"><li>PHP Page</li></a>
<a href="js"><li>Js Page</li></a>
</ul>
@yield("content")
</body>
</html> |
<?php
/* Smarty version 3.1.32, created on 2019-12-01 10:53:23
from 'C:\xampp3\htdocs\api\application\views\templates\navegacion_estrategico.php' */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.32',
'unifunc' => 'content_5de3f00311f7... |
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="<?php echo base_url() ?>/assets/style.css" />
</head>
<body>
<div class="main">
<div class="header_area">
<h1 align="center">Money Receipt</h1>
</div>
<div class="voucher_... |
@extends('layouts.main')
@section('content')
@endsection |
<?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Sylius\Tests\Functional\Bundles\ApiBundle\CommandHandler;
use Pro... |
@extends('layouts.main')
@section('container')
<h1>Halaman About</h1>
@endsection |
<!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.0" />
<title>Pricing | Play Tailwind</title>
</title>
<link
rel="shortcut icon"
href="{{asset('images/favicon.... |
<?php
namespace App\Http\Controllers\Api;
use App\Http\Controllers\Controller;
use App\Http\Resources\StevedoringDetailResource;
use App\Http\Resources\StevedoringManifestResource;
use App\Http\Resources\StevedoringResource;
use App\Models\Stevedoring;
use App\Models\StevedoringManifest;
use App\Models\StevedoringTal... |
<?php
namespace App;
use App\Liquidacion;
use App\Entities\Tercero;
use Illuminate\Database\Eloquent\Model;
class LiquidacionDetalle extends Model
{
protected $table = 'liquidaciones_detalles';
public function liquidacion()
{
return $this->belongsTo(Liquidacion::class, 'liquidacion_id');
}
... |
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<title>:: Sazón Web-Login ::</title>
<link rel="stylesheet" href="<?php echo base_url();?>assets/plugins/bo... |
<?php
class crud
{
private $db;
function __construct($con)
{
$this->db = $con;
}
public function buat($nama,$email)
{
try
{
$stmt = $this->db->prepare("INSERT INTO table1(nama,email) VALUES(:nama, :email)");
$stmt->bindparam(":nama",$nama);
$stmt->bindparam(":email",$email);
$stmt->execute(... |
<?php
namespace app\models;
use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use app\models\Categoria;
/**
* CategoriaSearch represents the model behind the search form about `app\models\Categoria`.
*/
class CategoriaSearch extends Categoria
{
/**
* @inheritdoc
*/
public function rul... |
@extends('layouts.app')
@section('content')
<div class="tittle"><h1>{{$undercategory->title}}</h1></div>
<div class="filter-line"></div>
<div class="case-items">
@if($undercategory->slug=='pizza')
<div class="pizza-construct">
<h1>Создать пиццу </h1>
<ul class="ks-cboxtags">
@foreach ($undercategory->... |
<script type="text/javascript">
$(function () {
// Display the create quote modal
$('#modal-quote-to-invoice').modal('show');
$('#to_invoice_date').datepicker({format: '{{ config('fi.datepickerFormat') }}', autoclose: true});
// Creates the invoice
$('#btn-quote-to-invoice... |
<?php
namespace referensi\assets;
use yii\web\AssetBundle;
/**
* Main referensi application asset bundle.
*/
class AppAsset extends AssetBundle
{
public $basePath = '@webroot';
public $baseUrl = '@web';
public $css = [
'css/site.css',
];
public $js = [
];
public $depends = [
... |
<?php
namespace App\Http\Controllers\User;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Models\User;
use App\Models\Settings;
use App\Models\Plans;
use App\Models\Agent;
use App\Models\User_plans;
use App\Models\Admin;
use App\Models\Faq;
use App\Models\Images;
use App\Models\Testimony;
... |
@extends('layout')
@section('content')
<div class="jumbotron">
<div class="container">
<h1>Curso eloquent orm</h1>
<p>hola</p>
</div>
</div>
<div class="container">
<h1 class="page-header">
Ultimos usuarios registrados
</h1>
<table class="table table-hover table-striped">
@include('partials.he... |
<?php
namespace App\Http\Controllers\Backend;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Models\Brand;
use Image;
use File;
class BrandsController extends Controller
{
public function index(){
$brands = Brand::orderBy('id', 'desc')->get();
return view('backend.pages.... |
<?php
return [
'@class' => 'Grav\\Common\\File\\CompiledYamlFile',
'filename' => 'plugins://bootstrapper/bootstrapper.yaml',
'modified' => 1513649564,
'data' => [
'enabled' => true,
'always_load' => false,
'use_cdn' => false,
'mode' => 'production',
'load_core_css... |
@extends('app')
@section('content')
<div class="col-xs-10 col-xs-push-2">
<div class="row">
<div class="col-lg-12 margin-tb">
<div class="pull-left">
<h2>Route overzicht</h2>
</div>
</div>
</div>
<form action="showRouteDetails" role="form" me... |
<div off-canvas="id-1 left shift">
<nav class="header_nav_mobile">
<h3><a href="/services">УСЛУГИ</a></h3>
<ul class="menu">
<?php if ($category) {
foreach ($category as $val) {
?>
<li style="width: 100%;">
<a href="<?= $val['url'] ?>"><?... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\Facades\DB;
class Plans extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::c... |
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="s... |
@component('mail::message')
# Welcome to AlexGram
Thank you for signing up to AlexGram.
@component('mail::button', ['url' => ''])
Go to AlexGram
@endcomponent
All the best,<br>
Alex.S
@endcomponent |
<?php
return [
'slug' => ':attribute değeri geçerli bir url olmalı.',
'code' => ':attribute değeri geçerli olmalı.',
'decimal' => ':attribute geçerli olmalı.'
]; |
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class ProductStoreRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules ... |
<footer class="footer bg-light">
<div class="container">
<div class="row">
<div class="col-lg-6 h-100 text-center text-lg-left my-auto">
<ul class="list-inline mb-2">
<li class="list-inline-item">
<a href="#">About</a>
... |
<?php
namespace services\common;
use yii\db\ActiveQuery;
use common\components\Service;
use common\models\common\ConfigCate;
use common\enums\StatusEnum;
use common\helpers\ArrayHelper;
/**
* Class ConfigCateService
* @package services\common
* @author YiiFrame <21931118@qq.com>
*/
class ConfigCateService extend... |
<?php
namespace Predisque;
/**
* Interface implemented by most exceptions thrown from Predisque
*
* Most Predisque exceptions around connection handling and the low-level protocol extend their Predis counterparts.
* This interface cans help identify the ones thrown from Predisque-specific code.
*/
interface Pred... |
<?php
/*
|--------------------------------------------------------------------------
| Broadcast Channels
|--------------------------------------------------------------------------
|
| Here you may register all of the event broadcasting channels that your
| application supports. The given channel authorization callba... |
<?php
use yii\helpers\Url;
use yii\helpers\Html;
use yii\bootstrap\Modal;
use kartik\grid\GridView;
use johnitvn\ajaxcrud\CrudAsset;
use johnitvn\ajaxcrud\BulkButtonWidget;
/* @var $this yii\web\View */
/* @var $searchModel backend\modules\registrationderegistration\models\RdemploymentSearch */
/* @var $dataProvider ... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateIntutivePriceSettingsTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up() {
Schema::create('intu... |
<?php
if (!defined('BASEPATH'))
exit('No direct script access allowed');
class T_register_sk extends CI_Controller
{
function __construct()
{
parent::__construct();
$this->load->model('T_register_sk_model');
$this->load->library('form_validation');
}
public function index(... |
<tbody>
<tr role="row" >
<td class="product-name"> </td>
<td class="product-name">النوع</td>
</tr>
</tbody> |
@extends('layouts.app')
@section('content')
<section class="content-header">
<h1 class="pull-left">Ap1Aulac2M1S</h1>
<h1 class="pull-right">
<a class="btn btn-primary pull-right" style="margin-top: -10px;margin-bottom: 5px" href="{{ route('ap1aulac2m1s.create') }}">Add New</a>
</... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreatePartnerTripsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('partner_tr... |
<?php
/**
* This file is automatically @generated by {@link GeneratePhonePrefixData}.
* Please don't modify it directly.
*/
return array (
1770 => 'Georgia',
1770205 => 'Cumming, GA',
1770207 => 'Monroe, GA',
1770209 => 'Norcross, GA',
1770210 => 'Jonesboro, GA',
1770214 => 'Carrollton, GA',
1770219 =... |
<?php
namespace Tests\Feature;
use Carbon\Carbon;
use Tests\TestCase;
class UserControllerTest extends TestCase
{
private $data;
public function setUp(): void
{
parent::setUp();
$this->data = [
"first_name" => "abdellatif",
"last_name" => "chalal",
"da... |
<?php
namespace App\Exports;
use App\ppdb;
use Illuminate\Contracts\View\View;
use Maatwebsite\Excel\Concerns\FromView;
use Maatwebsite\Excel\Concerns\FromCollection;
class UserExport implements FromView
{
/**
* @return \Illuminate\Support\Collection
*/
// public function collection()
// {
//... |
<?php
namespace User\Service;
use Zend\Authentication\Adapter\AdapterInterface;
use Zend\Authentication\Result;
use Zend\Crypt\Password\Bcrypt;
use DBAL\Entity\User;
/**
*AuthAdapter que implementa el algoritmo de autenticación. Este revisa si el nombre de usuario (dirección *de correo electrónico) y la contraseña ... |
<?php
defined('BASEPATH') or exit('No direct script access allowed');
class Admin extends CI_Controller
{
private $loggedUser;
public function __construct()
{
parent::__construct();
$this->loggedUser = $this->db->get_where('admin', ['id_admin' => $this->session->userdata('id_admin')])->row... |
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Main content -->
<section class="content">
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<div class="box box-info">
<div class="box-header with-border... |
<?php
namespace Faker\Test\Provider\it_CH;
use Faker\Provider\it_CH\PhoneNumber;
use Faker\Test\TestCase;
final class PhoneNumberTest extends TestCase
{
public function testPhoneNumber()
{
self::assertMatchesRegularExpression('/^0\d{2} ?\d{3} ?\d{2} ?\d{2}|\+41 ?(\(0\))?\d{2} ?\d{3} ?\d{2} ?\d{2}$/',... |
<?php
/**
* --------------------------------------------------------------------------------------------------------------------
* <copyright company="Aspose">
* Copyright (c) 2018 Aspose.Slides for Cloud
* </copyright>
* <summary>
* Permission is hereby granted, free of charge, to any person obtaining a copy... |
<div>
<div class="container-fluid navbar-inverse">
<div class="row">
<div class="col-md-4 col-md-offset-4">
<div class="row">
<div class="col-md-12">
<h3 class="text-center" style="color:white;">Nostalrius - TBC WEB APP</h3>
... |
<?php
/**
* Created by PhpStorm.
* User: cughu
* Date: 2018/3/24
* Time: 0:10
*/
include_once dirname(__FILE__, 3) . "/Helper/ChromePhp.php";
session_start(['cookie_lifetime' => 30 * 60]);
header("Content-Type:text/html; charset=utf8");
if ($_SERVER["REQUEST_METHOD"] == 'GET') die();
if (!array_key_exists("login"... |
<?php
namespace App\Http\Controllers;
use App\User;
use Illuminate\Http\Request;
class FollowsController extends Controller
{
public function __construct()
{
$this->middleware('auth');
}
public function store(User $user)
{
return auth()->user()->following()->toggle($user->profile);
}
} |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
class Aggregation
{
public $listeVoiture = [];
public $offset = 0;
public function __construct($tabvoiture){
$this->listeVoiture = $tabvoiture;
}
public function hasnext(){
return isset($listeVoit... |
<html>
<head>
<link href="../css/materialize.css" type="text/css" rel="stylesheet" media="screen,projection"/>
<link href="../css/style.css" type="text/css" rel="stylesheet" media="screen,projection"/>
</head>
<body>
<div class="row">
<div class="col s8 offset-s2">
<div class="row ... |
<?php
namespace denbora\R_T_G_Services\examples\RESTv2\Player;
use denbora\R_T_G_Services\casino\CasinoRestV2;
use denbora\R_T_G_Services\examples\RESTv2\RestExample;
use denbora\R_T_G_Services\R_T_G_ServiceException;
class GetAllAccountsGET extends RestExample
{
/**
* GetAllAccountsGET constructor.
* ... |
@extends('admin/layout')
@section('page_title', 'Manage Size')
@section('size_select', 'active')
@section('container')
<div class="row">
</div>
<h3>Manage Size</h3>
<a class="my-3" href="{{url('admin/size')}}">
<button class="btn btn-success" type="button" name="button">
back
</button>... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\User;
class UserController extends Controller
{
public function form()
{
return view('users.novoadmin');
}
public function register(Request $request)
{
$request->validate([
'codpes' =... |
<?php
namespace AlibabaCloud\Ecs;
class AuthorizeSecurityGroupEgressRequest extends \AlibabaCloud\Core\RpcRequest {
public function __construct() {
parent::__construct('Ecs', '2014-05-26', 'AuthorizeSecurityGroupEgress', 'ecs', 'openAPI');
$this->setMethod('POST');
}
/**
* @var
*/
private $nicType;
/*... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Auth\Access\AuthorizationException;
use App\Models\User;
use App\Http\Requests\UserRequest;
use App\Handlers\ImageUploadHandler;
class UsersController extends Controller
{
public function __construct()
{
$this->middlew... |
<?php
use App\PublicResult;
use App\Setting;
use App\Downloads;
use App\Blog;
//download page & section helper function
function downloadshelpers()
{
return Downloads::where('position',1)->orderBy('id','DESC')->limit(3)->get();
}
//institute setting helper function create
function instituteS... |
<?php
use yii\db\Migration;
class m191008_111736_05_create_table_user_answers extends Migration
{
public function up()
{
$tableOptions = null;
if ($this->db->driverName === 'mysql') {
$tableOptions = 'CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE=InnoDB';
}
... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Orm_Ambassador extends Orm {
/**
* @var $instances Orm_Ambassador[]
*/
protected static $instances = array();
protected static $table_name = 'ambassador';
/**
* class attributes
*/
protected $id = ... |
<?php
/**
*
* Copyright 2017 Simnang, LLC.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publi... |
<?php
namespace UserBundle\Form\Type;
use FOS\UserBundle\Util\LegacyFormHelper;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Security\Cor... |
<?php
namespace App\Http\Controllers\API;
use App\Http\Controllers\Controller;
use App\Models\Product;
use Illuminate\Http\Request;
use Validator;
class ProductController extends Controller
{
/**
* @OA\Get(
* tags={"Product"},
* path="/api/products",
* @OA\Parameter(
* na... |
@extends('layouts.master-layout')
@section('title')
All Payments
@endsection
@section('current-page')
All Payments
@endsection
@section('current-page-brief')
@endsection
@section('event-area')
<div class="btn-group">
<a href="{{route('manage-receipts')}}" class="btn btn-secondary btn-mini"><i cla... |
<?php
declare(strict_types=1);
namespace App\Service\Page;
use App\Repository\CategoryRepository;
use App\Repository\ProductRepository;
use Symfony\Component\HttpFoundation\Session\SessionInterface;
/**
* Class Navigation
* @package App\Service\Page
*/
class Navigation
{
/**
* @var CategoryRepository... |
<div id="myNav" class="overlay">
<a href="javascript:void(0)" class="closebtn" onclick="closeNav()">×</a>
<div class="overlay-content">
<a href="http://m.kaca-beta.com/user/<?php echo $user['username']; ?>">Profile</a>
<a href="http://m.kaca-beta.com/settings">Settings</a>
<a href="http://m.kaca-b... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class ClienteControlador extends Controller
{
private $clientes = [
['id'=>1, 'nome'=> 'adriano'],
['id'=>2, 'nome'=> 'beto'],
['id'=>3, 'nome'=> 'carlos'],
['id'=>4, 'nome'=> 'danubia'],
];
public functi... |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class Add5c1954202d3e2RelationshipsToAnaliseQuimicaTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('analise_quimicas', func... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateUserprofileGroupsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('userp... |
<?php
namespace Oro\Bundle\EntityConfigBundle\Tests\Unit\Form\Handler;
use Doctrine\ORM\EntityManagerInterface;
use Doctrine\ORM\Mapping\ClassMetadata;
use Doctrine\Persistence\ManagerRegistry;
use Oro\Bundle\EntityConfigBundle\Config\ConfigHelper;
use Oro\Bundle\EntityConfigBundle\Config\ConfigInterface;
use Oro\Bun... |
<?php
/**
* Ytils RexMd
* Redaxo Add-on help file.
*
* @author Kim Schneider <kim@schneidersit.de>
* @license MIT License
*/
$content = <<<EOT
# Ytils RexMd - The powerful Markdown editor for Redaxo
<a href="https://www.ytils.com/rexmd" target="_blank">Ytils RexMd</a> adds a simple but powerful Markdown editor... |
@extends('layouts.app')
@section('content')
<h1>id: {{ $task->id }} のタスク編集ページ</h1>
{!! Form::model($task, ['route' => ['tasks.update', $task->id], 'method' => 'put']) !!}
<div class="row">
<div class="col-6">
{!! Form::model($task, ['route' => ['tasks.update', $task->id], 'method' => 'put'])... |
{!! Html::script('/assets/js/jquery-1.10.2.js') !!}
{!! Html::script('/assets/js/jquery-ui.js') !!}
{!! Html::style('/assets/css/video-js.css') !!}
{!! Html::style('/assets/css/bootstrap.min.css') !!}
{!! Html::style('/assets/css/layout.css') !!}
{!! Html::style('/assets/css/datepicker.css') !!}
{!! Html::style('/asset... |
<?php
namespace app\models;
use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use app\models\CttJournals;
/**
* CttJournalsSearch represents the model behind the search form about `app\models\CttJournals`.
*/
class CttJournalsSearch extends CttJournals
{
/**
* @inheritdoc
*/
public fu... |
<?hh // strict
/**
* Autogenerated by Thrift
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
/**
* Original thrift service:-
* MyServicePrioParent
*/
interface MyServicePrioParentAsyncIf extends \IThriftAsyncIf {
/**
* Original thrift definition:-
* void
* pin... |
<?php
/**
* This code was generated by
* \ / _ _ _| _ _
* | (_)\/(_)(_|\/| |(/_ v1.0.0
* / /
*/
namespace Twilio\Rest\Bulkexports\V1\Export;
use Twilio\ListResource;
use Twilio\Version;
class JobList extends ListResource {
/**
* Construct the JobList
*
* @param Version $version... |
<div class="container-fluid">
<h2 class="text-center other-font-style">Get In Touch With Us<br><br></h2>
<div class="row">
<div class="col-sm-6 text-center new-font-style">
<script src="<?php echo base_url(); ?>assets/js/greetings.js"></script>
<h4>Contact us and we'll get back to you wi... |
<?php
class Swift_Encoder_Base64EncoderAcceptanceTest extends \PHPUnit\Framework\TestCase
{
private $samplesDir;
private $encoder;
protected function setUp()
{
$this->samplesDir = realpath(__DIR__.'/../../../_samples/charsets');
$this->encoder = new Swift_Encoder_Base64Encoder();
}... |
@extends('layout.main')
@section('title','Grafik')
@section('container'.'')
<div class="modal fade modalCari" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog modal-xl">
<div class="modal-content">
<div class="modal-header" style="height:50px;">
<button typ... |
<?php
error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);
include"../includes/conecta.php";
$projeto = 8;
session_start();
if(!isset($_SESSION['user']) || !isset($_SESSION['login']) || !isset($_SESSION['senha']) || !isset($_SESSION['nome']) || !isset($_SESSION['nivel'])) {
echo "Esta área é restrita. Clique ";
... |
<?php $__env->startSection('viewAllData'); ?>
<div class="container mt-5">
<div class="row">
<table class="table table-striped text-center">
<thead>
<tr>
<th scope="col">Id</th>
<th scope="col">Name</th>
... |
<?php
namespace App\Http\Controllers\frontend;
use App\models\{news,product};
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
class TintucController extends Controller
{
function Getnew()
{
$data['news']=news::orderBy('id','desc')->paginate(6);
$data['product']=product::where... |
<?php
/** @var \Illuminate\Database\Eloquent\Factory $factory */
use App\produit_rayon;
use Faker\Generator as Faker;
$factory->define(produit_rayon::class, function (Faker $faker) {
return [
//
];
}); |
<?php
/*
* Database Query Abstract
*
* Build queries for different database management systems
*
* (c) Jannes Jeising <jannes@jeising.net>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
abstract class Database_Que... |
<?php
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.