text stringlengths 2 1.03M |
|---|
<?php
$file = 'analytics.txt';
$path = WWW_ROOT.$file;
if (file_exists($path)) {
$code = file_get_contents($path);
if (!empty($code)) {
$code = str_replace("\r", '', $code);
$code = str_replace("\n", '', $code);
?>
<script type="text/javascript">
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]... |
<!-- resources/views/users/partial/avatar.blade.php -->
@if($user)
<a href="{{ gravatar_profile_url($user->email) }}" class="pull-left hidden-xs hidden-sm">
<img src="{{ gravatar_url($user->email, 64) }}" alt="{{ $user->name }}" class="media-object" style="padding: 0.2rem; border: 1px solid #bbb; border-radius: 0.... |
<!-- breadcrumb -->
<div class="breadcrumb-header justify-content-between">
<div>
<h4 class="content-title mb-2">Hi, Ini Nilai Pengetahuan dan Keterampilan </h4>
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="#">Dashboard</a></li>
<li class="breadcrumb-item ac... |
<!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
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Sewa;
use App\Penghuni;
use App\Kamar;
use Carbon\Carbon;
class SewaController extends Controller
{
//
public function index(){
$sewa = Sewa::Join('tbl_kamar','tbl_sewa.id_kamar','=',... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Country;
use App\Governorate;
use App\City;
use App\Area;
class AreasController extends Controller {
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index() {
... |
@extends('layouts.home')
@section('title',"Información - Let's Van")
@section('main')
<div class="container">
<div class="card mt-5">
@if (!$error)
<div class="card-header bg-danger text-white">
<h4>Error</h4>
</div>
... |
<?php
namespace frontend\models;
use Yii;
use yii\base\Model;
use common\models\User;
use yii\helpers\VarDumper;
class DashboardForm extends Model{
public $name;
public $user_id;
public $gender;
public $role;
public $photo;
public $settings;
public $test1_name;
public $test1_best_resul... |
<!-- Id Producto Field -->
<div class="form-group">
{!! Form::label('id_producto', 'Id Producto:') !!}
<p>{{ $tblFotosProductos->id_producto }}</p>
</div>
<!-- Foto Field -->
<div class="form-group">
{!! Form::label('foto', 'Foto:') !!}
<p>{{ $tblFotosProductos->foto }}</p>
</div>
<!-- Activo Field --... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Cliente extends Model
{
use HasFactory;
protected $table = 'clientes';
protected $fillable = [
'tipo_nacionalidad',
'tipo_cliente',
'razon_social',
'rubros',
... |
<?php
namespace Kanel\Enuma\Component\Atoms;
trait Name
{
protected $name;
public function getName()
{
return $this->name;
}
public function setName(string $name)
{
$this->name = $name;
return $this;
}
} |
<?php
/* @Security/Collector/security.html.twig */
class __TwigTemplate_44faff0ad7096eacd42e9de58a794f5c417b6f3108e80bb42f0421170d09f0ee extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
// line 1
$this->parent = $this->loadTemplate... |
<style media="screen">
#distribution a{ color: black;}
</style>
@php
$notification_dates = Film::notification_dates($post->ID);
@endphp
<article @php(post_class())>
<div class="ui container" id="the-movie">
<br>
<div class="ui grid stackable">
<div class="one wide column">
</div>
<div ... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
/**
* @method static latest()
* @method static get()
* @method static find(int $id)
*/
class Employe extends Model
{
//
} |
<html>
<head><title>Inicio</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Bus;
class BusController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
$buses = bus::all();
return vie... |
<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
/* @var $this yii\web\View */
/* @var $model backend\models\Category */
$this->title = $model->id_category;
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Categories'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div cla... |
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<meta name="keyword" content="">
<link rel="shortcut icon" href="img/favicon.png">
<title>{{ ... |
<?php
/**
* Get xxc all file size.
*
* @access public
* @return Number
*/
public function getXxcAllFileSize()
{
return $this->dao->select('sum(size) as size')->from(TABLE_FILE)->where('objectType')->eq('chat')->fetch('size');
} |
<?php
return array(
'id' => 'ไอดี',
'months' => 'เดือน',
'term' => 'ระยะเวลา',
'title' => 'ชื่อ ',
); |
<?php
/**
* This file is part of the ramsey/uuid library
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>
* @license http://opensource.org/licenses/MIT MIT
*/
d... |
<?php
namespace App\Controllers;
use FastSitePHP\Application;
use App\Models\WebServiceResult;
/**
* Controller that queries a SQLite database of Geonames Data.
* http://www.geonames.org/
*
* To use this class the database must be created locally using
* one of the following scripts:
* app_data/scripts/geo... |
<?php
namespace App\Http\Controllers;
use App\Order;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
class HomeController extends Controller
{
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
$this->middleware('auth'... |
<?php
/* Smarty version 3.1.31, created on 2017-09-15 13:45:32
from "D:\phpStudy\WWW\mgr.daming.cn-1.0.0\application\views\user\detail.tpl" */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.31',
'unifunc' => 'content_59bb68fcf2bf74_749... |
<?php
function PHPMailerAutoload($classname)
{
//Can't use __DIR__ as it's only in PHP 5.3+
$filename = dirname(__FILE__).DIRECTORY_SEPARATOR.'class.'.strtolower($classname).'.php';
if (is_readable($filename)) {
require $filename;
}
}
if (version_compare(PHP_VERSION, '5.1.2', '>=')) {
//SP... |
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>KOPAJA</title>
<link rel="icon" href="{{url('/')}}/etrain/img/favicon.png">
<link rel="stylesheet" href="{{url('/')}}/etrain/css/style.css">
<style>
/* Center the loader */
#loader {
position: absolute;
left: ... |
<?php
namespace Ben\DoctorsBundle\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Httpfoundation\Response;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use JMS\SecurityExtraBundle\Annotation\Secure;
use Ben\DoctorsBundle\Entity\Consultation;
use Ben\DoctorsBundle\Form\Con... |
@extends('layouts.logisticslayout')
@section('title','My Report')
@section('content')
<div class="col-md-6 col-md-offset-3">
<div class="panel panel-primary">
<div class="panel-heading text-center"><b style="color:white">Report of {{ date('d-M-Y',strtotime($loginTimes->logindate)) }}</b></div>
<div class="panel-b... |
<div>
<div class="container" style="padding:30px 0;">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-heading">
<div class="row">
<div class="col-md-6">
Edit Product
</di... |
<?php
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
namespace amylian\yii\doctrine\base\common;
/**
*
* @author andreas
*/
trait ConfigurableDoctrineTrait
{
/**
* Ass... |
<?php
/**
* Created automaticaly by dbModelCreator
* Asim Dogan NAMLI
* asim.dogan.namli@gmail.com
* @2016
*
*/
class occupations extends EL_Model {
/**
* Columns of table occupations
*/
public $name = 0;
public function __construct(){
... |
<?php echo "<?php\n"; ?>
declare(strict_types=1);
namespace <?php echo $namespace; ?>;
final class <?php echo $class_name; ?>
{
public function __construct()
{
}
} |
<!-- ============================================================== -->
<!-- Start right Content here -->
<!-- ============================================================== -->
<div class="content-page">
<!-- Start content -->
<div class="content">
... |
<?php
declare(strict_types=1);
namespace Square\Models;
use stdClass;
class V1ListSettlementsResponse implements \JsonSerializable
{
/**
* @var V1Settlement[]|null
*/
private $items;
/**
* Returns Items.
*
* @return V1Settlement[]|null
*/
public function getItems(): ?a... |
<?php
namespace Composer\Downloader;
use Composer\Package\PackageInterface;
use Symfony\Component\Finder\Finder;
use Composer\IO\IOInterface;
abstract class ArchiveDownloader extends FileDownloader
{
public function download(PackageInterface $package, $path, $output = true)
{
$temporaryDir = $thi... |
<?php
/**
* smarty 块函数 script
* 处理 {script} 标签
* @author zhangwentao <zhangwentao@baidu.com>
*
* @param array $params
* @param string $content
* @param Smarty $smarty
* @param bool $repeat
* @see BigPipe::currentContext
* @see PageletContext->addRequire
* @see PageletContext->addRequireAsync
* @see Pagelet... |
<?php
class Model_peneliti_lapakhir extends CI_Model{
public function __construct()
{
parent::__construct();
$this->load->database();
}
function tampildata()
{
return $this->db->get('pengajuan');
}
function get_one($id_pengajuan)
{
$param = array('id_pengajuan'=>$id_peng... |
<?php
namespace CallFire\Api\Rest\Request;
use CallFire\Api\Rest\Request as AbstractRequest;
class AddAgents extends AbstractRequest
{
/**
* Unique ID of campaign
*/
protected $campaignId = null;
/**
* ID List of Agents
*/
protected $agentIds = null;
/**
* List of agen... |
<?php
/**
* Created by PhpStorm.
* User: Jamin
* Date: 2019/3/28
* Time: 16:41
*/
namespace app\account\controller;
use ItFarm\PhpSdk\Client;
class User
{
public function getOpenid()
{
$params['js_code'] = input('get.js_code') ?: cutout(0, 'js_code null');
$params['appid'] = config('weC... |
<?php
namespace App;
use App\Models\Order;
use App\Models\Reserve;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
class User extends Authenticatable
{
use Notifiable;
/**
* The attributes that are mass assi... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreatezonasTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('zonas', function (Blueprint $table) {
$tabl... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\City;
use App\Models\Country;
use App\Models\CityTranslation;
use App\Models\State;
class CityController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Bandeja extends Model
{
public $table = 'bandejas';
public $fillable = ['nombre'];
} |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class chat extends Model
{
//
protected $fillable=[
'user1',
'user2',
'chat_key',
];
public function contents()
{
# code...
return $this->hasMany('App\content','chat_id');
}
public function latestComme... |
<!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">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
... |
<?php
namespace ccxt\async;
// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
use Exception; // a common import
use \ccxt\ExchangeError;
use \ccxt\ArgumentsRequired;
use \ccxt\InvalidOrder;
use \ccxt\OrderNotFo... |
<?php
namespace Illuminate\Bus;
use Closure;
use Illuminate\Bus\Events\BatchDispatched;
use Illuminate\Contracts\Container\Container;
use Illuminate\Contracts\Events\Dispatcher as EventDispatcher;
use Illuminate\Queue\SerializableClosure;
use Illuminate\Support\Arr;
use Illuminate\Support\Collection;
use Throwable;
... |
<?php
namespace App\Form\DataHolder;
/**
* Class CreateAccount
*/
class CreateAccount
{
/** @var string */
public $name;
/** @var string */
public $password;
/** @var string */
public $email;
} |
<?php
return [
/*
|--------------------------------------------------------------------------
| Application Name
|--------------------------------------------------------------------------
|
| This value is the name of your application. This value is used when the
| framework needs to plac... |
<?php
class ChangeColumnInPubnubnotification extends Ruckusing_Migration_Base
{
public function up()
{
$this->execute("ALTER TABLE `pubnub_notification` CHANGE `type` `type` TINYINT NOT NULL COMMENT '1=>order,2=>group order,3=>reservation,4=>reviews'");
$this->execute("ALTER TABLE `pubnub_notificatio... |
<?php
/**
* This file is part of `prooph/event-store-client`.
* (c) 2018-2020 Alexander Miertsch <kontakt@codeliner.ws>
* (c) 2018-2020 Sascha-Oliver Prolic <saschaprolic@googlemail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.... |
<?php
require_once ('com/gmo_pg/client/input/BaseInput.php');
/**
* <b>銀行振込(バーチャル口座)継続口座解除 入力パラメータクラス</b>
*
* @package com.gmo_pg.client
* @subpackage input
* @see inputPackageInfo.php
* @author GMO PaymentGateway
*/
class FreeVirtualaccountInput extends BaseInput {
/**
* @var string ショップID
*/
var $shopI... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateReclamationsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('reclamatio... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class ErrorController extends Controller
{
public function index()
{
return view('error.index', []);
}
public function info_m_pokaz()
{
return view('error.info_m_pokaz', []);
}
public function info_m_kvit()... |
<?php
namespace App\Models;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
{
use Notifiable;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'username... |
@extends('master')
@section('title')
Contact
@stop
@section('content')
<section class="container-fluid xs-space-inside-sides-sm space-inside-sides-xl space-outside-lg">
<div class="row">
<div class="col-lg-12 space-outside-down-lg fadeInDown wow">
<h1> {{ $data['titel']->title }} </h1>
</... |
<?php defined('BASEPATH') or exit('No direct script access allowed');
/**
* PyroStreams Slug Field Type
*
* @package PyroCMS\Core\Modules\Streams Core\Field Types
* @author Parse19
* @copyright Copyright (c) 2011 - 2012, Parse19
* @license http://parse19.com/pyrostreams/docs/license
* @link http://parse19.c... |
<html>
<body>
<?php
$to = andrew.kaimana@yahoo.com;
$email = test_input($_POST["email"]);
if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
$emailErr = "Invalid email format";
}
if (mail($to, $name, $email, $message)){
echo 'Your message has been sent successfully. Thank you.';
}
else {
echo 'Unable to send yo... |
<?php
$link = mysqli_connect("localhost", "root", "", "semesterproject") or die("Something wrong with the server, try again later.");
$output='';
$sql ="select * from kid WHERE funame LIKE '%".$_POST["search"]."%'";
$res = mysqli_query($link,$sql);
$output .= '<div class="stafftable">
<table class="table ... |
<?php
namespace App\Helpers\GroupBindings;
use App\Model\Entity\Group;
interface IGroupBindingProvider
{
/**
* @return string a unique identifier of the type of the binding
*/
public function getGroupBindingIdentifier(): string;
/**
* @param Group $group
* @return array all entities ... |
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: eolymp/atlas/atlas.proto
namespace Eolymp\Atlas;
if (false) {
/**
* This class is deprecated. Use Eolymp\Atlas\DescribeProblemGradingOutput\Range instead.
* @deprecated
*/
class DescribeProblemGradingOutput_Range {}
}
cl... |
<?php
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\Exception\RuntimeException;
// This file has been auto-generated by the Symfony Dependency Injection Component for internal use.
// Returns the public 'routing.loader' shared service.
include_once ... |
<?php
/**
* baserCMS : Based Website Development Project <https://basercms.net>
* Copyright (c) baserCMS Users Community <https://basercms.net/community/>
*
* @copyright Copyright (c) baserCMS Users Community
* @link https://basercms.net baserCMS Project
* @package Baser.View
* @since baserCMS v 0.1.0
*... |
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-primary">
<div class="panel-heading"><center>Tambah Kategori Lembur</center></div>
<div class="panel-body">
... |
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>BGES TELKOM - EDIT AM</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="apple-touch-icon" href="appl... |
<style type="text/css">
.inactive_fav {background: url(<?php echo base_url(); ?>img/icons/favinactive.png);width: 31px;height: 31px;display: block;cursor: pointer;}
.active_fav {background: url(<?php echo base_url(); ?>img/icons/favactive.png);width: 31px;height: 31px;display: block;cursor: pointer !important;}
</style... |
<?php
/**
* This file is part of Cycle Database package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cycle\Database\Config\Support;
/**
* @internal Cycle\Database\Config\Support\DataSourceN... |
<?php
/* Cachekey: cache/stash_default/doctrine/[concrete\core\entity\permission\ipaccesscontrolcategory$maxevents@[annot]][1]/ */
/* Type: array */
/* Expiration: 2021-11-27T13:08:14+01:00 */
$loaded = true;
$expiration = 1638014894;
$data = array();
/* Child Type: array */
$data['return'] = unserialize(base64_d... |
<section id="main">
<?= $this->projectHeader->render($project, 'Listing', 'show') ?>
<section class="sidebar-container">
<?= $this->render($sidebar_template, array('project' => $project)) ?>
<div class="sidebar-content">
<?= $content_for_sublayout ?>
</div>
</section>
<... |
<?php
namespace Igniter\Flame\Foundation\Bootstrap;
use Illuminate\Contracts\Foundation\Application;
class RegisterTastyIgniter
{
/**
* Register specifics for TastyIgniter.
*
* @param \Illuminate\Contracts\Foundation\Application $app
*
* @return void
*/
public function bootstrap... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreatePlatformTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('platform', functi... |
<?php
namespace Elastica\QueryBuilder\Version;
use Elastica\QueryBuilder\Version;
/**
* elasticsearch 1.2 DSL.
*
* @link http://www.elastic.co/guide/en/elasticsearch/reference/1.x/index.html
*
* @author Manuel Andreo Garcia <andreo.garcia@googlemail.com>
*/
class Version120 extends Version
{
protected $quer... |
<?php
namespace Dosi\AuthBundle\EventListener;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\Form\Extension\Csrf\CsrfProvider\CsrfProviderInterface;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\Log\LoggerInterface;
use Symfony\Component\Securit... |
<!-- sidebar menu -->
<div id="sidebar-menu" class="main_menu_side hidden-print main_menu">
<div class="menu_section">
<h3>General</h3>
<ul class="nav side-menu">
<li>
<a href="{{ asset('admin/home') }}"><i class="fa fa-home"></i> Home</span></a>
</li>
... |
<?php
declare(strict_types=1);
namespace Snowdog\Menu\Model\ImportExport\Processor\Import\Node;
use Snowdog\Menu\Api\Data\NodeInterface;
use Snowdog\Menu\Model\ImportExport\Processor\ExtendedFields;
use Snowdog\Menu\Model\ImportExport\Processor\Import\FieldProcessor\Boolean as BooleanField;
use Snowdog\Menu\Model\Im... |
<?php
namespace Joesama\Profile\Services;
use Illuminate\Support\MessageBag;
use Illuminate\Database\Eloquent\Model;
use Joesama\Profile\Services\Traits\ModelTrait;
/**
* Abstarct User profile verification services.
*/
class AbstractProfile
{
use ModelTrait;
/**
* Validations rules.
*
* @va... |
<?php
namespace common\models;
use Yii;
use yii\db\ActiveRecord;
/**
* This is the model class for table "orders".
*
* @property int $id
* @property int $client_id
* @property int $partner_id
* @property int $status
*
* @property Clients $client
* @property Partners $partner
* @property OrdersProducts[] $o... |
@extends('layouts.app')
@section('css')
<link rel="stylesheet" href="{!! asset('plugins/datepicker/datepicker3.css') !!}">
@endsection
@section('content')
<div class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1 class="m-0 text-... |
<?php
// This file was auto-generated from sdk-root/src/data/marketplacecommerceanalytics/2015-07-01/api-2.json |
<?php
namespace App\Factory\Paygates;
use App\Factory\Paygates\Gateways\Paypal;
use App\Factory\Paygates\Gateways\OnePayND;
use App\Factory\Paygates\Gateways\Nganluong;
class PaygateFactory{
public static function PaygateFactory($paygate)
{
if($paygate){
switch($paygate){
... |
<?php
namespace App\Form;
use App\Entity\Employment;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
class EmploymentType extends AbstractType
{
public functio... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/**
*
*/
class Piket extends CI_Controller {
// public function __construct()
// {
// parent::__construct();
// if ($this->session->userdata('is_login')) {
// //sudah login
// echo "Sudah Login";
// } else {
// //belum logi... |
<?php
namespace frontend\models;
use Yii;
/**
* This is the model class for table "promotion".
*
* @property int $Pid รหัส
* @property string $Pname ชื่อโปรโมชั่น
* @property string $Pdatestart วันที่เริ่ม
* @property string $Pdateend วันที่สิ้นสุด
* @property string $Pdistant ส่วนลด
* @property string $Ping... |
<?php
namespace Home\Controller;
use Think\Controller;
class WaiterController extends Controller {
public function do_waiter(){
$w=M('Waiter');
$where['w_state']='空闲';
$waiter=$w->limit(1)->where($where)->select();
if($waiter){
$wh['r_id']=$_GET['r_id'];
$od=M('Orderdesk');
$ret=$od->where... |
<?php
namespace App\Http\Controllers;
class JWT{
public static function create(object $data, $secret_key, $expire = 3600){
$header = json_encode(['alg' => 'HS256', 'typ' => 'JWT']);
$time = time();
$values = array(
'jti' => base64_encode(openssl_random_pseudo_bytes(32)),
... |
<?php
namespace App\Http\Resources\Billing;
use Illuminate\Http\Resources\Json\JsonResource;
class Billing extends JsonResource
{
/**
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request $request
* @return array
*/
public function toArray($request)
{
... |
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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 License at
*
* http://www.apache.org/licenses/LICENS... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateCandidatoCursosComplementaresAreaEstudoTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
... |
<?php
// подключаем виджет постраничной разбивки
use yii\widgets\LinkPager;
use yii\helpers\Html;
use yii\helpers\Url;
?>
<div class="features_items"><!--<!--features_items-->
<h2 class="title text-center"><?= Html::encode($brand['name']); ?></h2>
<?php if(!empty($products)) :?>
<?php $i = 0 ;?>
<?... |
<?php
/**
* @access private
*/
class Hello {
/**
* here is docs for world method
*/
public function world($name = CONSTANT) {
}
}
?> |
<header>
<div class="banner"></div>
<nav>
<div class="container">
<div class="content">
{{-- Logo --}}
<a href="{{ route('homepage') }}">
<img class="logo" src="{{ asset('images/dc-logo.png') }}" alt="DC Comics logo">
</a... |
<?php
namespace app\controllers;
use yii\web\Controller;
use yii\web\Cookie;
class MycookieController extends Controller{
public function actionIndex(){
// $cookies = \YII::$app->response->cookies;
// $cookie_data = array('name'=>'user','value'=>'zhangsan1');
// $cookies->add(new Cookie($cookie_data));
$co... |
<?php
namespace App\Repository;
use App\Entity\Lantern;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;
/**
* @method Lantern|null find($id, $lockMode = null, $lockVersion = null)
* @method Lantern|null findOneBy(array $criteria, array $orderBy = nul... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Validation Language Lines
|--------------------------------------------------------------------------
|
| The following language lines contain the default error messages used by
| the validator ... |
<?php
use Illuminate\Http\Request;
use App\Article;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by t... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Tag extends Model
{
protected $fillable = ['name'];
use HasFactory;
public function posts()
{
return $this->morphedByMany('App\Models\Post','taggable');
}
... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class City extends Model
{
public $timestamp = false;
protected $fillable = [
'name_city','type'
];
} |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateManufacturingPartnersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('m... |
<div class="container-fluid">
@if (session('role-detach'))
<div class="alert alert-danger">
{{ session('role-detach') }}
</div>
@elseif (session('role-attach'))
<div class="alert alert-success">
{{ session('role-attach') }}
</div>
@endif
<!-- DataTales Examp... |
<?php
/*
* This file is part of the API Platform project.
*
* (c) Kévin Dunglas <dunglas@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace ApiPlatform\Core\GraphQl\Resolver\Stage;
use... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.