text
stringlengths
2
1.03M
<?php include_once "../src/SampleBilling.php"; use App\SampleBilling\SampleBilling; $obj = new SampleBilling(); $obj->prepare($_POST); $obj->transaction();
<?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:64:"D:\wamp\www\tp5\public/../application/wap\view\forum\detail.html";i:1550476106;s:55:"D:\wamp\www\tp5\application\wap\view\public\header.html";i:1545358047;s:55:"D:\wamp\www\tp5\application\wap\view\public\huitie.html";i:1548208887;s:55:"D:\wamp\www\tp5\application\...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateServiceListsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('service_li...
<?php namespace App\Events; use App\Models\User; use Illuminate\Queue\SerializesModels; use Illuminate\Foundation\Events\Dispatchable; class UserWasRegistered { use Dispatchable, SerializesModels; public $user, $token, $feedback; /** * Create a new event instance. * @param User $user * ...
<?php class wpdevart_bc_ControllerExtras { private $model; private $view; public function __construct() { require_once(WPDEVART_PLUGIN_DIR . "/admin/models/Extras.php"); $this->model = new wpdevart_bc_ModelExtras(); require_once(WPDEVART_PLUGIN_DIR . "/admin/views/Extras.php"); $this->view = new wpdeva...
<?php /** * @link http://www.yiiframework.com/ * @copyright Copyright (c) 2008 Yii Software LLC * @license http://www.yiiframework.com/license/ */ namespace yii\db\cubrid; use yii\db\Expression; use yii\db\TableSchema; use yii\db\ColumnSchema; use yii\db\Transaction; /** * Schema is the class for retrieving met...
<?php namespace App\Test; use Silex\WebTestCase; class HomeTest extends WebTestCase { public function createApplication() { $app = require __DIR__.'/../src/app.php'; $app['session.test'] = true; return $app; } public function testGetHomePage() { $client = $this->cr...
<?php declare(strict_types=1); namespace PunktDe\Neos\Mjml; /* * This file is part of the PunktDe.Eel.Mjml package. * * This package is open source software. For the full copyright and license * information, please view the LICENSE file which was distributed with this * source code. */ use Neos\Eel\ProtectedCo...
<?php namespace Laravel\Passport\Console; use Illuminate\Console\Command; use Illuminate\Support\Carbon; use Laravel\Passport\AuthCode; use Laravel\Passport\RefreshToken; use Laravel\Passport\Token; class PurgeCommand extends Command { /** * The name and signature of the console command. * * @var ...
<?php $this->load->view('back/meta') ?> <div class="wrapper"> <?php $this->load->view('back/head') ?> <?php $this->load->view('back/sidebar') ?> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <div class...
<?php declare(strict_types=1); /** * This file is part of the Phalcon Framework. * * (c) Phalcon Team <team@phalcon.io> * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. */ namespace Phalcon\Test\Integration\Validation\Validator\P...
@extends('layouts.app') @section('section') <div class="col-md-6 col-md-offset-3"> <div class="box box-primary "> <div class="box-body mx-auto text-center"> <a href="{{url('home')}}" id="welcomeHeader" style="text-decoration: none;" > <img src="{{url('images/project ...
<script type="text/javascript"> var base_path = "<?php echo Yii::app()->params->base_path;?>"; $j(document).ready(function(){ $j('.delete_this').click(function(){ var id= $j(this).attr('lang'); if(confirm("Do you want to delete this record")) { window.location=base_path+"admin/deleteApiFunction/id/"+id; } ...
<?php declare(strict_types=1); namespace Jellyfish\RoadRunner; use Pimple\Container; use Pimple\ServiceProviderInterface; class RoadRunnerServiceProvider implements ServiceProviderInterface { /** * @param \Pimple\Container $container * * @return void */ public function register(Container...
@extends('layouts.frontoffice') @section('content') <div class="container"> <div class="row justify-content-center"> <div class="col-md-8"> <div class="card"> <div class="card-header">{{ __('Register') }}</div> <div class="card-body"> <form m...
<!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>Document</title> </head> <body> <table> <tr> <td>Codigo</td> <td>Serie</td> ...
<?php namespace Home\Controller; use Think\Controller; class CateController extends CommonController { public function index(){ $article=M('article'); $count= $article->where(array('cateid'=>I('id')))->count(); $Page= new \Think\Page($count,2); $show= $Page->show(); $list = $article->where(...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateReservationItemsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('reserv...
<?php /* * This file is part of Payload. * * (c) DraperStudio <hello@draperstudio.tech> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace DraperStudio\Payload\Serialisers; use DraperStudio\Payload\Contracts\Serialiser; u...
<?php include "pages/includes/header.php"; ?> <div class="row"> <div class="col-md-12"> <?php if (isset($_GET['success'])) { $msg="<strong>Fragility Index field successfully added!</strong>"; echo '<div class="alert alert-info" role="alert"> <button type="button" class="...
<?php namespace app\models; use Yii; use omgdef\multilingual\MultilingualBehavior; use omgdef\multilingual\MultilingualQuery; use yii\behaviors\TimestampBehavior; /** * This is the model class for table "cms_pages". * * @property integer $id * @property string $created_at * @property string $updated_at * @prop...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class AddStatusToNewsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('news', functio...
<?php namespace App\Http\Middleware; use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as BaseVerifier; class VerifyCsrfToken extends BaseVerifier { /** * The URIs that should be excluded from CSRF verification. * * @var array */ protected $except = [ 'news/*' ]; }
<?php namespace ProcessWire; ?> <div class='uk-container uk-container-small uk-margin-medium-top'> <?php // Find comments that don't have a parent ( parent_id=0 ) $comments = page()->comments->find("parent_id=0"); // Show Comments ( https://processwire.com/talk/topic/21926-paginating-comments-using-pw-built-in-pagina...
<?php /** * File: RawClientException.php * Copyright 2016 Anton Lempinen <bafoed@bafoed.ru> * This file is part of TorControl project. */ class RawClientException extends \Exception {}
<?php /* Plugin Name: All In One SEO Pack Plugin URI: http://semperfiwebdesign.com Description: Out-of-the-box SEO for your WordPress blog. <a href="admin.php?page=all-in-one-seo-pack/aioseop_class.php">Options configuration panel</a> | <a href="http://semperplugins.com/plugins/all-in-one-seo-pack-pro-version/?loc=plug...
@extends('layouts.authLayout') @section('content') <div class="container-login100" style="background-image: url('{{asset('images/home-banner.jpg')}}');background-size: cover"> <div class="wrap-login100 p-l-55 pr-55 p-t-80 p-b-30"> <form class="login100-form validate-form" action="" method="POST"> ...
@php $i = 1 @endphp @foreach($equipamentos as $equipamento) <tr> <td align="center">{{$i}}</td> <td>{{$equipamento->tipo}}</td> <td>{{$equipamento->marca}}</td> <td>{{$equipamento->modelo}}</td> <td>{{$equipamento->serial}}</td> </tr> @if($i == 30) @break @endif @php $i++ @endphp @endforeach {{-- @include('...
<?php namespace ImmobiliareLabs\BrazeSDK\Test\Response\EmailTemplates; use ImmobiliareLabs\BrazeSDK\Response\EmailTemplates\InfoResponse; use PHPUnit\Framework\TestCase; class InfoResponseTest extends TestCase { public function testFillFromArray(): void { $response = new InfoResponse(); $cre...
<?php namespace App\Model; use Illuminate\Database\Eloquent\Model; class hair_color extends Model { // protected $table="hair_color"; public $timestamps = false; public function users_properties() { return $this->hasMany('App\user_properties','Hair_color','id'); } }
<?php use yii\db\Migration; /** * Handles the creation of table `{{%reception}}`. */ class m190603_141216_create_reception_table extends Migration { /** * {@inheritdoc} */ public function safeUp() { $this->createTable('{{%reception}}', [ 'id' => $this->primaryKey(), ...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class Student extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('student', function (Bluepr...
<?php /** * SurveyeditorupdateSettingsConfigCredentials * * PHP version 5 * * @category Class * @package AnketologClient * @author http://github.com/swagger-api/swagger-codegen * @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2 * @link https://github.com/swagger-api/swagger-codegen ...
<?php $version = $_GET['v']; $import = simplexml_load_file('translations/' . $version . '.xml'); if (!is_dir($version)): mkdir($version); endif; $bn = 1; foreach($import->book as $book): $n = 1; if(!is_dir($version . '/' . $bn)): mkdir($version . '/' . $bn); endif; foreach($book->chapt...
<?php namespace App\Http\Controllers; use Carbon\Carbon; use Illuminate\Http\Request; use App\Todo; use Auth; class TodoController extends Controller { public function add(Request $request){ if ($request->isMethod('post')){ $input = $request->all(); $date = Carbon::parse($input[...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Post extends Model { use HasFactory; protected $guarded = ['id']; protected $with = ['category']; public function category() { return $this->belongsTo(Categor...
<?php use yii\helpers\Html; /* @var $this yii\web\View */ /* @var $model common\models\BusinessCategory */ $this->title = 'Update Business Type: ' . $model->id; $this->params['breadcrumbs'][] = ['label' => 'Business Categories', 'url' => ['index']]; $this->params['breadcrumbs'][] = ['label' => $model->id, 'url' => ...
<?php defined('C5_EXECUTE') or die("Access Denied."); class FileUploaderPermissionAccessEntity extends Concrete5_Model_FileUploaderPermissionAccessEntity {}
<?php namespace jdRoll\service\campagne; /** * Manage Campagne Information * * @package campagneService * @copyright (C) 2013 jdRoll * @license MIT */ class CampagneConfigService { private $db; public function __construct($db) { $this->db = $db; } public function getFormCampagneConfig($reque...
<?php /* * This file is part of the Black package. * * (c) Boris Tacyniak <boris.tacyniak@free.fr> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Black\Bundle\CommonBundle\Application\Form\Type; use DTL\Symfony\Form\D...
<div class="panel-body col-lg-12"> <?php if(isExistsInTable("privilage", array("id_user" => $this->session->id_user,"id_menu" => "insert_supplier")) == 0):?> <div class="row"> <div class="col-md-6"> <div class="mb-15"> <button data-target="#AddSupplier" data-toggle="modal" type="...
<?php /** * Magento * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/osl-3.0.php * If you did not receive a co...
<?php defined('BX_DOL') or die('hack attempt'); /** * Copyright (c) UNA, Inc - https://una.io * MIT License - https://opensource.org/licenses/MIT * * @defgroup UnaBaseView UNA Base Representation Classes * @{ */ /** * Menu representation. * @see BxDolMenu */ class BxBaseMenuInteractive extends BxTemplMenu ...
<?php return [ /* |-------------------------------------------------------------------------- | Application Name |-------------------------------------------------------------------------- | | This value is the name of your application. This value is used when the | framework needs to plac...
<?php namespace App\Providers; use App\User; use Illuminate\Support\Facades\Gate; use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider; class AuthServiceProvider extends ServiceProvider { /** * The policy mappings for the application. * * @var array */ protec...
<?php /** * Corresponding Class to test Timeline class * * @author Arturo Ramos */ class TimelineTest extends PHPUnit_Framework_TestCase { /** * Just check if the YourClass has no syntax error * * This is just a simple check to make sure your library has no syntax error. This helps you troubleshoot ...
<?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\Serializer\Normalizer; /** * Defines the interface o...
<?php $fecha1 = new DateTime("1990-04-03"); $fecha2 = new DateTime($fecha_consultar); $fecha_actual = strtotime(date("d-m-Y H:i:00", $fecha1->getTimestamp())); $fecha_entrada = strtotime($fecha_consultar); $diff = $fecha1->diff($fecha2); $dias = $diff->days; $reversa = false; if ($fecha_actual > $fecha_entrada)...
@extends('Fronted.layouts.master') @section('title') {{about()->site_name}} @endsection @section('content') @include('Fronted.GeneralPages.banner') @include('Fronted.GeneralPages.homeVids') @endsection @section('script') <script> const video = document.getElementById("video3"); cons...
<?php /* * Copyright 2014 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
<?php namespace Budget\BudgetBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass="Budget\BudgetBundle\Repository\FeeRepository") */ class Fee { /** * @var integer */ private $id; /** * @var string */ private $title; /** * @var \DateTime ...
<?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 /* * This file is part of JSON RPC Client. * * (c) Igor Lazarev <strider2038@yandex.ru> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Strider2038\JsonRpcClient\Request; /** * @author Igor Lazarev <strider2038@y...
<?php namespace App\Http\Controllers\Front; use App\Http\Controllers\Controller; use Illuminate\Http\Request; // models use Illuminate\Support\Str; use Illuminate\Validation\Validator; use Illuminate\Support\Facades\DB; use App\Models\Article; use App\Models\Category; use App\Models\Page; use App\Models\Contact;...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Tag extends Model { protected $fillable = [ 'name', 'unit' ]; public function locations() { return $this->belongsToMany('App\Location'); } public function loctag() { return $this->hasOne('App\LocT...
<?php $MESS["LANDING_DEMO_STORE_INSTAGRAM--HEADER_MAIN--NAME"] = "Шапка на главной";
<div class="sidebar"> <nav class="sidebar-nav"> <ul class="nav"> <li @click="menu=0" class="nav-item"> <a class="nav-link active" href="#"><i class="icon-speedometer"></i> Escritorio</a> </li> <li class="nav-...
<?php namespace Dazzle\MySQL; use Dazzle\Event\BaseEventEmitter; use Dazzle\Loop\LoopAwareTrait; use Dazzle\Loop\LoopInterface; use Dazzle\MySQL\Protocol\Command\AuthCommand; use Dazzle\MySQL\Protocol\Command\PingCommand; use Dazzle\MySQL\Protocol\Command\QueryCommand; use Dazzle\MySQL\Protocol\Command\QuitCommand; u...
<?php return array( 'root' => array( 'pretty_version' => 'dev-master', 'version' => 'dev-master', 'type' => 'project', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'reference' => 'e319dd1b112153f82ac772428c6927c9a9a571e0', 'name' => 'laravel/la...
<?php namespace qeephp; /** * 用与保存和读取应用程序设置的工具类 */ abstract class Config { /** * 应用程序设置 * * @var array */ public static $_config = array(); /** * 导入设置 * * @param array $config */ static function import(array $config) { self::$_config = array_merge...
<?php /* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * OWNER OR CONTRIBUTORS B...
@extends('layouts.app') @section('content') <section class="content-header"> <h1 class="pull-left">Area Influencia Has Topologias</h1> <h1 class="pull-right"> <a class="btn btn-primary pull-right" style="margin-top: -10px;margin-bottom: 5px" href="{!! route('areaInfluenciaHasTopologias.c...
<?php namespace App\Http\Controllers\Admin\Modules\Gallery; use App\Models\Gallery; class DeleteController extends BaseController { public function __invoke(int $id) { Gallery::findOrFail($id)->delete(); return redirect()->route('admin.gallery.index'); } }
<?php /** * Created by Maksym Ignatchenko, Appus Studio LP on 03.12.2018 * */ use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; class CategoriesSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { DB::table('categ...
<?php /** * Created by 有情人好聚好散. * Author: ASang * Date: 18-8-8 * Time: 下午12:22 */ namespace Api\Validate; class AddressNew extends BaseValidate { protected $rule = [ 'name' => 'require|isNotEmpty', 'mobile' => 'require|isMobile|isMobile', 'city' => 'require|isNotEmpty', 'deta...
<?php namespace MongoDB; use MongoDB\BSON\Serializable; use MongoDB\Driver\ReadConcern; use MongoDB\Driver\Server; use MongoDB\Exception\InvalidArgumentException; use stdClass; /** * Extracts an ID from an inserted document. * * This function is used when BulkWrite::insert() does not return a generated * ID, whi...
<?php /* * This file is part of the TranslationFormBundle package. * * (c) David ALLIX <http://a2lix.fr> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace A2lix\TranslationFormBundle\Util\Gedmo\EventListener; use Gedmo\T...
<?php declare(strict_types=1); namespace Shopware\Core\Framework\Plugin\Requirement; use Composer\Composer; use Composer\Package\Link; use Composer\Repository\PlatformRepository; use Composer\Semver\Constraint\Constraint; use Composer\Semver\VersionParser; use Shopware\Core\Framework\Context; use Shopware\Core\Framew...
<?php /** * * NOTICE OF LICENSE * * This source file is subject to the GNU General Public License (GPL 3) * that is bundled with this package in the file LICENSE.txt * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade Payone to newer * versions in the future. If you wish to customize Pay...
<?php // $Id: x25.php,v 1.3 2009/06/09 19:07:06 smk Exp $ $base = array( 0x00 => '-', '-', '|', '|', '-', '-', '|', '|', '-', '-', '|', '|', '+', '+', '+', '+', 0x10 => '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', 0x20 => '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '+', '...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> </head> <body> <div class="py-12"> <div class="max-w-7xl mx-auto sm:px-6 lg:px-8...
<h2><?= $title?></h2> <table class="table table-hover "> <thead> <tr> <th>Username</th> <th>Email</th> <th>Registered Date</th> <th>Change Status</th> <th>Other</th> </tr> </thead> <tbody> <?php foreach($users as $user):?> ...
<?php class input_model extends CI_Model { public function insert_menu() { $data = array( 'id_menu' => $this->input->post('id_menu'), 'nama_menu' => $this->input->post('nama_menu'), 'kategori' => $this->input->post('kategori'), 'satuan' => $this->input->post('satuan'), 'harga' => $this->input->post('...
@extends('layouts.app') @section('content') <div class="container"> <div class="row justify-content-center"> <div class="col-md-8"> <div class="card"> <div class="card-header">{{ __('Register') }}</div> <div class="card-body"> <form method="P...
<?php declare(strict_types=1); use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class CreateTelegramUpdateTable extends Migration { public function up() { Schema::create('telegram_update', static function (Blueprint $table) { $table->bigInteger('id')...
<?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\Debug\Exception; use Symfony\Component\HttpFoundation...
<?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<int, class-string|string> */ ...
<!doctype html> <html class="no-js" lang=""> <head> <title>Zabuun - Learn Egyptian Arabic for English speakers</title> <meta name="description" content=""> <?php include $_SERVER['DOCUMENT_ROOT'].'/layout/head.php';?> </head> <body> <?php include $_SERVER['DOCUMENT_ROOT'].'/layout/ie8.php';?> <?php inc...
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ declare(strict_types=1); use Magento\Newsletter\Model\SubscriberFactory; require __DIR__ . '/../../../Magento/Customer/_files/new_customer.php'; $subscriberFactory = $objectManager->get(SubscriberFactory::class); ...
<?php namespace App\Service\V1\patient_system\obstetrics; use App\Models\MilkprogramFollowup; use App\Models\MilkprogramFollowupDetail; class MilkProgramService { public function store_followup($request){ $fup= new MilkprogramFollowup(); $fup->fill($this->_fillFollowup($request)); $fup...
<?php namespace ccxt; // 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\NotSupported; c...
@extends('admin.layouts.master') @section('main-content') <section class="section"> <div class="section-header"> <h1>{{ __('Orders') }}</h1> </div> <div class="section-body"> <div class="row"> <div class="col-4 col-md-4 col-lg-4"> <div class="card"> ...
{{-- @if (Session::has('sussess')) <h1> {{ Session::get('sussess') }} </h1> @endif @if (Session::has('error')) <h1> {{ Session::get('error') }} </h1> @endif <form action="{{ route('process_login') }}" method="post"> @csrf Email <input type="email" name="email" value=""> <br> passwor...
@extends('admin_templates') @section('title','Danh sách thương hiệu') @section('content_admin') <section class="wrapper"> <h3 class="text-center">Danh sách thương hiệu</h3> @if(session('success')) <strong class="text-success">{{ session('success') }}</strong> @endif <div class="listproduct"> ...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Customer_model extends CI_Model { public function getCustomerById($id) { return $this->db->get_where('customer', ['id_customer' => $id])->row_array(); } public function aksiTambahCustomer() { $data = [ 'nama' => $this->input->pos...
<?php declare(strict_types=1); /** * Copyright © André Flitsch. All rights reserved. * See license.md for license details. */ namespace Pixelperfect\ActiveCampaign\Tests\Unit; use PHPUnit\Framework\TestCase as PhpUnitTestCase; /** * Class TestCase * * @package Pixelperfect\ActiveCampaign\Tests\Unit */ class T...
<?php require 'start.php'; ?> <style> #tradetestLink { background-color: #DDE9FF; } </style> <div class="headerSpacer"> &nbsp; </div> Setup tests for trades here. <?php require_once('menubar.php'); require_once ('end.php'); ?>
@php $NavCategories = \App\Category::orderBy('id' , 'desc')->limit(6)->get(); $NavCities = \App\City::orderBy('id' , 'desc')->limit(6)->get(); $NavJobs = \App\Job::orderBy('id' , 'desc')->limit(2)->get(); @endphp <a href="javascript:" id="return-to-top"><i class="fas fa-angle-double-up"></i></a> <nav class="cd-dropdown...
<?php use yii\helpers\Html; use yii\widgets\ActiveForm; /* @var $this yii\web\View */ /* @var $model common\models\CountrySearch */ /* @var $form yii\widgets\ActiveForm */ ?> <div class="country-search"> <?php $form = ActiveForm::begin([ 'action' => ['index'], 'method' => 'get', ]); ?> ...
<?php /** * SMILFileAppAction * * PHP version 5 * * @category Class * @package WowzaApi * @author http://github.com/swagger-api/swagger-codegen * @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2 * @link https://github.com/swagger-api/swagger-codegen */ /** * OpenAPI spec version:...
<?php /** * @return int */ function intCounter() { static $counter = 0; return $counter++; } function intRandom($min, $max) { $range = $max - $min; if ($range < 1) return $min; // not so random... $log = ceil(log($range, 2)); $bytes = (int)($log / 8) + 1; // length in bytes ...
<?php namespace Psecio\Parse\Rule; class BooleanIdentityTest extends RuleTestCase { public function parseSampleProvider() { return [ ['$var === true;', true], ['false === $var;', true], ['$var == $var;', true], ['true == $var;', false], ['fal...
<?php /** * Copyright © 2015 Magento. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Framework\Validator\Test\Unit\Test; /** * Integer test validator */ class IsInt extends \Zend_Validate_Int implements \Magento\Framework\Validator\ValidatorInterface { }
<?php namespace App\Models; use App\Http\Controllers\CityController; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Customer extends Model { use HasFactory; public function city(){ return $this->belongsTo('App\Models\City'); } }
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreatePublicationsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('publicatio...
<?php use yii\db\Schema; use yii\db\Migration; class m150523_195251_init extends Migration { public function up() { $this->createTable('document', [ 'id' => 'int(21) unsigned NOT NULL AUTO_INCREMENT PRIMARY KEY', 'name' => 'varchar(255) NOT NULL', 'description' => '...
@extends('layouts.admin') @section('title') <title>Chi tiết hóa đơn </title> @endsection @section('breadcrumb') <div class="page-bar"> <ul class="page-breadcrumb"> <li><a href="{{url('admin') }}">Trang chủ</a><i class="fa fa-circle"></i></li> <li><a href="{{url('admin/order'...
<?php use yii\helpers\Html; /* @var $this yii\web\View */ /* @var $model app\models\Subscription */ $this->title = Yii::t('app', 'Update {modelClass}: ', [ 'modelClass' => 'Subscription', ]) . ' ' . $model->id; $this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Subscription'), 'url' => ['index']]; $this...
<?php function db_query($query) { $connection = mysqli_connect("localhost","root","","guinda"); $result = mysqli_query($connection,$query); return $result; } function edit($tblname,$form_data,$field_id,$id){ $sql = "UPDATE ".$tblname." SET "; $data = array(); foreach($form_data as $column=>$value){ ...
<?php /* +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ | Copyright (c) 2011-2016 Phalcon Team (http://www.phalconphp.com) | +...