text stringlengths 2 1.03M |
|---|
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Discount extends Model
{
protected $guarded = [
];
public function discount($subTotal) {
return ($subTotal * ($this->percent / 100));
}
} |
<?php
use yii\helpers\Html;
//use yii\widgets\DetailView;
use kartik\detail\DetailView;
/* @var $this yii\web\View */
/* @var $model backend\modules\disbursement\models\DisbursementBatch */
$this->title ="View Disbursement Batch";
$this->params['breadcrumbs'][] = ['label' => 'Disbursement Batch', 'url' => ['index']];... |
<?php
$autMainTitle = $autSubTitle = '';
if (isset($about_timeline) && !empty($about_timeline)) {
$autMainTitle = $about_timeline[0]['aut_main_title'];
$autSubTitle = $about_timeline[0]['aut_sub_title'];
}
?>
<section class="content-header">
<h1>
About Us
<small>Control panel</small>
</h... |
<?php
namespace App\Helpers;
use Config;
final class Encrypt
{
private static function SALT() {
return Config::get('dextrader.salt');
}
public static function encrypt($text)
{
$secure_key = hash('sha256', self::SALT(), true);
return base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $secure_key, $text, MCR... |
<?php
// # Create a Payment Forwarding Address
//
// This sample code demonstrate how you can create a payment forwarding address, as documented here at:
// <a href="http://dev.blockcypher.com/#create-payment-endpoint">Create Payment Endpoint</a>
//
// API used: POST /v1/btc/main/payments
require __DIR__ . '/../boots... |
<?php
namespace backend\models\wechatdb;
class AccountJobLog extends \common\models\wechatdb\AccountJobLog
{
} |
<?php
class BaseController extends Controller {
protected $_auth;
protected $_user;
function __construct(){
session_start();
$_SESSION['url'] = URL::full();
$auth = Session::get('auth');
if (empty($auth)) {
return Redirect::to('login')->send();
}
$this->_auth = $auth;
$this->_user = User::where('o... |
<?php
checksession(); //check if we are called by a valid session
if (!checkrights("Administrator")) { //"Administrator,ViewOverview"
global $LANG;
echo("<h2>${LANG['NORIGHTS']}</h2>");
return;
}
$MENUITEM=5; //Panel ID in menu. Used in hyperlinks
$PANELNAME='EVE Corp API keys'; //Panel name (optional)
//standard he... |
<!DOCTYPE html>
<html lang="en">
<!-- Mirrored from bucketadmin.lab.themebucket.net/language_switch.html by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 03 Apr 2020 13:23:35 GMT -->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="descriptio... |
<?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
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Form\Tests\Extension\Core\Type;
use Symfony\Bridge\Ph... |
<?php
namespace Phanda\Events\WebSockets\Server;
use Ratchet\ConnectionInterface;
use Ratchet\Http\HttpServerInterface;
class HttpServer extends \Ratchet\Http\HttpServer
{
/**
* HttpServer constructor.
*
* @param HttpServerInterface $component
* @param int $maxRequestSize
*/
public functi... |
<?php
namespace InstagramAPI\Request;
use InstagramAPI\Response;
/**
* Functions related to managing and exploring user tags in media.
*/
class Usertag extends RequestCollection
{
/**
* Tag a user in a media item.
*
* @param string $mediaId The media ID in Instagram's internal format (ie "3... |
<?php
/**
* Copyright 2014 Christopher Davis <http://christopherdavis.me>
*
* 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 ... |
@extends('app')
@section('content')
<div class="right_col" role="main">
<div class="">
<div class="clearfix"></div>
<div class="row">
<div class="col-md-12">
<div class="x_panel">
<div class="x_title">
<h2>Client List</h2>
<div class="cle... |
<!DOCTYPE html>
<html style="width: 100%">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>KK | Branch Manager</title>
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<link rel="apple-touch-icon" href="<?php ech... |
<?php
/*
Functions for showing the terminal
*/
//Shows the terminal to the user
function showTerminal(){
$path=realpath(av($_GET,'path',__DIR__));
$config=getConfig();
$cmd=av($_POST,'cmd');
if(file_exists($path) && is_dir($path)){
chdir($path);
}
else{
$path=getcwd();
}
if($cmd){
if(str... |
<?php
namespace Laracasts\TestDummy;
use Illuminate\Support\Collection;
use Illuminate\Support\Str;
use Faker\Factory as Faker;
use Closure;
class Builder
{
/**
* All user-defined fixtures.
*
* @var array
*/
protected $fixtures;
/**
* The number of times to create the record.
... |
@extends('app')
@section('content')
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<div class="panel panel-success">
<div class="panel-heading">Charity Responses Net</div>
<div class="panel-body">
<div class="col-md-12 form-horizontal" style="padding-bottom: 5px">
<div... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
use Carbon\Carbon;
class CommentsController extends Controller
{
public function post(Request $request)
{
$now = Carbon::now();
$param = [
"share_id" => $request->share_id,
... |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Escuchar extends MY_Controller {
function __construct()
{
parent::__construct();
$this->load->helper(array('form'));
$this->load->model('Artista_model','artista');
}
public function index() {
$thi... |
<?php
namespace Config;
use CodeIgniter\Config\BaseConfig;
class Email extends BaseConfig
{
/**
* @var string
*/
public $fromEmail;
/**
* @var string
*/
public $fromName;
/**
* @var string
*/
public $recipients;
/**
* The "user agent"
*
* @v... |
<?php
/*
* This file is part of Bens Penhorados, an undergraduate capstone project.
*
* (c) Fábio Santos <ffsantos92@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace VehicleModels;
use DB;
use Illuminate\Data... |
<?php namespace OFFLINE\Mall\Components;
use ArrayAccess;
use Flash;
use DB;
use App;
use Symfony\Component\HttpFoundation\Session\Session;
use GuzzleHttp\Client;
use Illuminate\Database\Eloquent\ModelNotFoundException;
use Illuminate\Pagination\LengthAwarePaginator;
use Illuminate\Support\Collection;
use October\Rain... |
<?php
namespace App\Http\Controllers\Order;
use App\Http\Controllers\Controller;
use App\Http\Resources\OrderResource;
use App\Models\Order;
use App\Traits\HasApiResponses;
use Illuminate\Http\Request;
class ShowOrderController extends Controller
{
use HasApiResponses;
/**
* @OA\Get(
* path="/ap... |
<!-- 実験WebPage created by Wakayama Univ. AMLAB -->
<!-- 実験説明・同意 -->
<!DOCTYPE html>
<html lang="ja">
<head>
<title>Web聴取実験</title>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="stylesheet" type="text/css" href="./ExpWeb.css">
</head>
<bo... |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
/**
* Class Noticias.
*
* @author The scaffold-interface created at 2019-01-07 10:01:31pm
* @link https://github.com/amranidev/scaffold-interface
*/
class Noticias extends Migration
{
/**
* Run the migrations... |
<?php
/**
* CsvExport
*
* Helper class to output an CSV from a CActiveRecord array.
*
* example usage:
* echo CsvExport::export(
* People::model()->findAll(), // a CActiveRecord array OR any CModel array
* array(
* 'idpeople'=>array('number'), 'number' and 'date' are ... |
<div class="wraper">
<div class="col-md-6 container form-wraper">
<form method="POST"
action="<?php echo site_url("payroll/deduction/edit");?>" >
<div class="form-header">
<h4>Edit Deduction</h4>
... |
<?php
/**
* Created by PhpStorm.
* User: HUY
* Date: 12/28/2017
* Time: 2:32 PM
*
* modelStaff
* dataAccess
* dataTimekeeping
* dateFilter
*
*/
$hFunction = new Hfunction();
$mobile = new Mobile_Detect();
$mobileStatus = $mobile->isMobile();
$dataStaffLogin = $modelStaff->loginStaffInfo();
$hrefIndex = route... |
<?php
/**
* Coding Simply back compat functionality
*
* Prevents Coding Simply from running on CodingSimply versions prior to 4.1,
* since this theme is not meant to be backward compatible beyond that and
* relies on many newer functions and markup changes introduced in 4.1.
*
* @package CodingSimply
* @subpack... |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +-------------------------------------------------... |
<x-app-layout>
<x-slot name="header">
<h2 class="font-semibold text-xl text-gray-800 leading-tight">
{{ __('Product') }}
</h2>
</x-slot>
<div class="py-12">
<div class=" mx-auto sm:px-6 lg:px-8">
<div class="mb-10">
<a href="{{ route('products... |
<?php
namespace App\Modules\Polls\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
/**
* @resource PollQuestionTypeCreateRequests
*
* Request para validacion de la creacion de un PollQuestionTypeCreateRequests
*
* @author Danny Rojas Reyes, @rojasknight
*
*/
class PollQuestionTypeCreateRequests ext... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Admin extends CI_Controller {
/**
* Index Page for this controller.
*
* Maps to the following URL
* http://example.com/index.php/welcome
* - or -
* http://example.com/index.php/welcome/index
* - or -
* Since this controll... |
<?php
/*
************************************************************************
Copyright [2014] [PagSeguro Internet Ltda.]
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... |
<?php
//Modificar para crear el campo de N° de caja
namespace App\Shop\Products\Requests;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Validation\Rule;
class UpdateProductRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
... |
@extends('layouts.layoutDirector')
@section('content')
<user-info-vue></user-info-vue>
<template id="user-info-template">
<section class="director-mitarbeiter director-main">
<h1 class="director-content__heading heading heading__h1">{{trans('common.clients')}}</h1>
<div class="director-content">
<sec... |
<!-- Preloader -->
<div class="spinner-wrapper">
<div class="spinner">
<div class="bounce1"></div>
<div class="bounce2"></div>
<div class="bounce3"></div>
</div>
</div>
<!-- end of preloader -->
<!-- Navbar -->
<nav class="navbar navbar-expand-md navbar-dark navbar-custom fixed-top">
... |
<?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 ... |
<section id="maincontent">
<div class="container">
<div class="row">
<div class="span3 features">
<i class="icon-circled icon-32 icon-suitcase left active"></i>
<h4>Responsive bootstrap</h4>
<div class="dotted_line">
</div>
<p class="left">
... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateDetallepeliculasTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('detall... |
<!-- welcome.blade.php -->
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>GotStock</title>
<!-- Fonts -->
<link href="https://fonts.googleapis.com/css2?family=N... |
<?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... |
<div id="reviews" class="col s12">
<br>
@auth
@if(!$product->reviews->where('user_id',Auth::id())->first())
<h5 class="col">Leave a review.</h5>
<form action="{{route('reviews.store')}}" method="post">
@csrf
<input type="hidden" name="product_id" v... |
@extends('cd-admin.admin-master')
@section('content')
<section class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1>About</h1>
</div>
<div class="col-sm-6">
<ol class="breadcrumb float-sm-right">
<li class="breadcrumb-... |
<?php
/*
* This file is part of Ekino New Relic bundle.
*
* (c) Ekino - Thomas Rabaix <thomas.rabaix@ekino.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Ekino\Bundle\NewRelicBundle\Twig;
use Ekino\Bundle\NewReli... |
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Majapahit</title>
</head>
<body>
<form class="" action="{{route('edit_profile')}}" method="post">
{{ csrf_field() }}
<input type="text" name="name" value="{{$users->user->name}}" disabled placeholder="nama">
... |
<?php
use yii\helpers\Html;
use yii\grid\GridView;
use yii\widgets\Pjax;
use yii\helpers\Url;
/* @var $this yii\web\View */
/* @var $searchModel backend\models\BrandSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
// $this->title = 'Brands';
// $this->params['breadcrumbs'][] = $this->title;
?>
<div cl... |
<?php
namespace metastore;
/**
* Autogenerated by Thrift Compiler (0.16.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
use Thrift\Base\TBase;
use Thrift\Type\TType;
use Thrift\Type\TMessageType;
use Thrift\Exception\TException;
use Thrift\Exception\TProtocolException;
use... |
<?php
// +-----------------------------------------------------------------------------------
// | TangFrameWork 致力于WEB快速解决方案
// +-----------------------------------------------------------------------------------
// | Copyright (c) 2012-2014 http://www.tangframework.com All rights reserved.
// +-----------------------... |
<?php
/**
* This file is part of the spiritix/html-to-pdf package.
*
* @copyright Copyright (c) Matthias Isler <mi@matthias-isler.ch>
* @license MIT
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Spiritix\HtmlToPdf\O... |
<?php
if($_POST['func'] == "order_status"){
order_status();
} else if($_POST['func'] == "create_new_account"){
create_new_account();
} else if($_POST['func'] == "feedback"){
feedback();
}
function order_status(){
$id = $_POST['o_id'];
$email = $_POST['email']... |
<?php
defined('ABSPATH') OR exit;
/**
* @package WordPress
* @subpackage WP-Skeleton
*/
// drag and drop menu support
register_nav_menu( 'pmNav', 'Project Management Nav' );
//Apply do_shortcode() to widgets so that shortcodes will be executed in widgets
add_filter('widget_text', 'do_shortcode');
//Add jquery Li... |
<?php
/**
* tpshop
* ============================================================================
* * 版权所有 2015-2027 北京易启东方网络科技有限公司,并保留所有权利。
* 网站地址: http://www.shop.yiqidongfang.com
* ----------------------------------------------------------------------------
* 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和使用 .
* 不允许对程序代码... |
<?php
namespace App\Http\Livewire\Atoms;
use Livewire\Component;
class Navbar extends Component
{
public function render()
{
return view('livewire.atoms.navbar');
}
} |
<?php
/**
* Intelligent, elegant routing for CodeIgniter
*
* @link http://github.com/jamierumbelow/pigeon
* @copyright Copyright (c) 2012, Jamie Rumbelow <http://jamierumbelow.net>
*
* Initially deprecated and not maintained by the author
*
* This implementation by Jamie Rumblelow is great so I decided to
... |
@extends('principal')
@section('conteudo')
<div class="container-fluid">
<form class="container-fluid " action="{{route('equipamentos.store')}}" method="post">
@csrf
<div class="form-group">
<label for="nome" id="labelNome">Nome:</label>
<input type="text" name="nome" id="nome" value="" class="... |
<?php
$page_title = 'Add Clients';
require_once('includes/load.php');
// Checkin What level user has permission to view this page
// page_require_level(1);
//$groups = find_all('user_groups');
?>
<?php
if(isset($_POST['add_clients'])){
$req_fields = array('nom','prenom','email','adresse', 'cni', 'telepho... |
<?php
namespace App\Http\Controllers\Api;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Validator;
use Illuminate\Support\Facades\Storage;
use App\Http\Resources\AgenResource;
use App\Agen;
class AgenController extends Controller
{
/**
* Display a listing o... |
<?php
/* Cachekey: cache/stash_default/doctrine/[concrete\core\entity\express\entity$description@[annot]][1]/ */
/* Type: array */
/* Expiration: 2017-10-05T20:29:27+00:00 */
$loaded = true;
$expiration = 1507235367;
$data = array();
/* Child Type: array */
$data['return'] = unserialize(base64_decode('YToxOntpOjA... |
<?php
namespace App\Http\Controllers;
use App\Models\Tourgroup;
use App\Models\Restaurant;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
class RestaurantController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
pu... |
<?php
namespace AppBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Product
*
* @ORM\Table(name="product")
* @ORM\Entity(repositoryClass="AppBundle\Repository\ProductRepository")
*/
class Product
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\Gener... |
<?php
namespace Tests\PHPCensor\Service;
use PHPCensor\Model\Build;
use PHPCensor\Model\Project;
use PHPCensor\Service\BuildStatusService;
/**
* Unit tests for the ProjectService class.
*
* @author Dan Cryer <dan@block8.co.uk>
*/
class BuildStatusServiceTest extends \PHPUnit\Framework\TestCase
{
const BRANCH... |
<?php declare(strict_types=1);
namespace src;
use src\riesgos\Riesgos;
use src\sustancias\Sustancias;
/**
* Clase de la prueba de ASSIST
*/
class PruebaAssist
{
/**
*
* @var Sustancias
*/
private Sustancias $_sustancias;
/**
* Clase de todos los riesgos calculados
*
* @var ... |
<?php
/**
* Author: lf
* Blog: https://blog.feehi.com
* Email: job@feehi.com
* Created at: 2016-04-18 09:41
*/
return [
/*public*/
'Hi, Log in' => 'Hi, 请登录',
'Log out' => '退出登录',
'Sign up' => '注册',
'About us' => '关于我们',
'Contact us' => '联系我们',
'Search' => '搜索',
'Baidu' => '百度',
... |
<?php
use Tests\TestCase;
use Illuminate\Http\UploadedFile;
use LaravelEnso\Core\app\Models\User;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Storage;
use LaravelEnso\Files\app\Services\Files;
use LaravelEnso\Files\app\Traits\HasFile;
use LaravelEnso\Files\app\Contracts\Attachable;
use Illum... |
<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
use app\models\Permiso;
use app\models\Pago;
/* @var $this yii\web\View */
/* @var $model app\models\Estadopagoequipo */
$this->title = "Referencia equipo ".$model->idEquipo;
\yii\web\YiiAsset::register($this);
?>
<div class="estadopagoequipo-view reglamento-co... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('users', function ... |
<?php
namespace App\Http\Livewire\Auth;
use App\Models\User;
use Illuminate\Support\Facades\Hash;
use Illuminate\Validation\Rule;
use Livewire\Component;
class Register extends Component
{
public $name = '';
public $email = '';
public $password = '';
public $passwordConfirmation = '';
protected ... |
<x-app-layout>
<x-slot name="header">
<h2 class="font-semibold text-xl text-gray-800 leading-tight">
{{ $competition->name ." - Race View" }}
</h2>
</x-slot>
<div class="py-12">
<div class="max-w-7xl mx-auto sm:px-6 lg:px-8">
<div class="bg-white overflow-hid... |
<?php
declare(strict_types=1);
/**
* InlineBlockBox class.
*
* @package YetiForcePDF\Layout
*
* @copyright YetiForce Sp. z o.o
* @license MIT
* @author Rafal Pospiech <r.pospiech@yetiforce.com>
*/
namespace YetiForcePDF\Layout;
use YetiForcePDF\Math;
/**
* Class InlineBlockBox.
*/
class InlineBlock... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Application Name
|--------------------------------------------------------------------------
|
| This value is the name of your application. This value is used when the
| framework needs to plac... |
<?php
function isPerfect($number)
{
// Получить делители
$factors = [];
$factors[] = 1;
$factors[] = $number;
for ($i = 2; $i < sqrt($number) + 1; $i++) // примечание [1]
{
if ($number % $i == 0)
{
$factors[] = $i;
if (intdiv($number, $i) != $i) // приме... |
<?php
namespace Swoole\Coroutine;
/**
* @since 4.4.3
*/
class Redis
{
/**
* @param $config[optional]
* @return mixed
*/
public function __construct($config=null){}
/**
* @return mixed
*/
public function __destruct(){}
/**
* @param $host[required]
* @param $p... |
<!-- Begin Page Content -->
<div class="container-fluid">
<!-- Page Heading -->
<h1 class="h3 mb-4 text-gray-800"><?= $title; ?></h1>
<div class="row">
<div class="col-lg-10 ">
<?= $this->session->flashdata('message'); ?>
</div>
</div>
<!-- Content Row -->
<!-- upda... |
<?php
/**
* @copyright 2017 Roman Parpalak
* @license MIT
*/
namespace S2\Rose\Storage;
use S2\Rose\Entity\WordPositionContainer;
/**
* Class FulltextResultMock
*/
class FulltextIndexContent
{
/**
* @var array
*/
protected $dataByWord = array();
/**
* @var array
*/
protected $dataByExternalId = a... |
<?php
$lang['titulo_pagina'] = 'Recursos del sistema';
$lang['breadcrumb_home'] = 'Inicio';
$lang['breadcrumb_resources'] = 'Recursos del sistema';
$lang['breadcrumb_resources_editar'] = 'Editar recurso';
//Form validation
$lang['name_required'] = 'El nombre de recurso es requerido';
$lang['minlength_required'] = 'El ... |
<?php
use Illuminate\Support\Str;
$DATABASE_URL=parse_url('postgres://hwuzmkmuaobhgj:849236d6a59c61c579930c6acdca6f0000bb00de7d61366a9172937fa6973caa@ec2-54-157-234-29.compute-1.amazonaws.com:5432/d7mn4alnp7ht9i');
return [
/*
|--------------------------------------------------------------------------
| D... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('users', function ... |
@php
use Illuminate\Support\Facades\Route;
@endphp
<!DOCTYPE html>
<html lang="{{ config('app.locale') }}">
<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-to... |
<?php
namespace MauticPlugin\MauticGSBundle\Google\google_api_php_client\src\Google\Service;
/*
* Copyright 2010 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://... |
<?php
namespace PhpTextDiff;
class FineDiffDeleteOp extends FineDiffOp
{
private $fromLen;
public function __construct($len)
{
$this->fromLen = $len;
}
public function getFromLen()
{
return $this->fromLen;
}
public function getToLen()
{
return 0;
}
... |
@extends('layouts.dashboard')
@section('content')
@section('css')
<!-- Google Font: Source Sans Pro -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback">
<!-- Font Awesome -->
<link rel="stylesheet" href="plugins/fontawesome-free/css/all.min.css">
... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('users', function ... |
@extends('dashboard')
@section('form')
<!-- BEGIN CONTENT -->
<div class="page-content-wrapper">
<div class="page-content">
<div class="row">
<!-- BEGIN Portlet PORTLET-->
<div class="portlet light">
<div class="portlet-title">
... |
<?php
/* ROMarqueBundle:marque:add_marque.html.twig */
class __TwigTemplate_b8330d78061b8756d994344855484005c0e026efe9216fec837d07564fbf8c1f extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
// line 1
try {
$this->parent... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateCategoriesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('categories',... |
<?php
require_once( 'config.php' );
$db = Database::getInstance();
if( !$db->load(DATABASE_FILE) ) {
exit( 'Cannot load database, you should run the grabber first!' );
}
?>
<div class="col-md-12">
<div id="reports-rating"></div>
</div>
<script>
var reports_rating_data = <?php echo Statistics::reports_rating( $d... |
<?php
class PositionsController extends BaseController {
/**
* Position Repository
*
* @var Position
*/
protected $position;
public function __construct(Position $position)
{
$this->position = $position;
}
/**
* Display a listing of the resource.
*
* @return Response
*/
public function inde... |
<?php
namespace app\admin\controller;
use think\Request;
use app\admin\controller\AdminPlatform;
use app\admin\model\Dictionary as DictionaryModel;
use app\admin\model\WordVoice as WordVoiceModel;
class WordVoice extends AdminPlatform
{
# 面包屑导航
protected $breadcrumb = [
[
'url' => '',
'name' => '词典语音列表'
]... |
<?php
/**
* ---------------------------------------------------------------------
* GLPI - Gestionnaire Libre de Parc Informatique
* Copyright (C) 2015-2020 Teclib' and contributors.
*
* http://glpi-project.org
*
* based on GLPI - Gestionnaire Libre de Parc Informatique
* Copyright (C) 2003-2014 by the INDEPNET... |
<?php
if (!function_exists('__t')) {
/**
* __t
*
* Returns translation for given $key with a fallback $default value.
*
* @param string|null $key
* @param string|null $default
* @param array $replace
* @param string|null $locale
*
* @return string|arra... |
<?php
namespace App\Http\Controllers;
use App\Service;
use Illuminate\Http\Request;
use Session;
class ServiceController extends Controller
{
//
public function index()
{
$services = Service::orderBy('id','desc')->get();
return view('pages.page-services-list')->with('services',$services);... |
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model backend\models\AktMerkSearch */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="akt-merk-search">
<?php $form = ActiveForm::begin([
'action' => ['index'],
'method' => 'get',
]); ?>
... |
<?php
namespace Shopsys\FrameworkBundle\Controller\Admin;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Shopsys\FrameworkBundle\Component\Router\Security\Annotation\CsrfProtection;
use Shopsys\FrameworkBundle\Model\Administrator\AdministratorGridFacade;
use Shopsys\FrameworkBundle\Model\Order\PromoC... |
<?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2020 David Young
* @license https://github.com/aphiria/aphiria/blob/master/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Framework\Tests\Serialization\Components;
use Aphiria\DependencyInjection\IServiceResolver;... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateArticlesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('articles', fun... |
<?php
namespace App\Http\Controllers;
use App\Imports\BukuSementara;
use App\SementaraBukus;
use Barryvdh\DomPDF\Facade as PDF;
use Illuminate\Http\Request;
use Maatwebsite\Excel\Facades\Excel;
class SementaraController extends Controller
{
public function import(){
Excel::import(new BukuSementara(), pub... |
@extends('admin/layouts/master')
@section('content')
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
<div class="container col-md-8 col-md-offset-2">
@if (session('status'))
<div class="alert alert-success">
{{ sessio... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.