text
stringlengths
2
1.03M
@extends('admin_layout') @section('admin_content') <div class="row"> <div class="col-lg-12"> <section class="panel"> <header class="panel-heading"> Thêm Bài viết </header> <?php $message = Session::get('message'); if($message){ echo ...
<?php /** * 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. */ declare(strict_types=1); namespace Phalcon\Test\Unit\Http\Message\ServerUploadedF...
<?php App::uses('AppController', 'Controller'); /** * Faqs Controller * * @property Faq $Faq */ class FaqsController extends AppController { /** * index method * * @return void */ public $paginate = array( 'order' => 'order', 'limit' => '50', ); public function index() { $this->Faq->recursive = ...
@extends('layouts.app') @section('content') <div class="content-wrapper" style="padding-bottom:0px;"> <!-- Main content --> <section class="content"> <div class="box"> @include('layouts.errors') <div class="box-header "style="padding:10px"> <div class="row" > ...
<?php use yii\helpers\Html; /* @var $this yii\web\View */ /* @var $model common\models\Project */ /* @var $users array */ $this->title = 'Create Project'; $this->params['breadcrumbs'][] = ['label' => 'Projects', 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; ?> <div class="project-create"> ...
<?php namespace RoduanKD\LaravelMoyasar\Exceptions; use Exception; class PublishableApiKeyDoesNotExist extends Exception { }
<!DOCTYPE html> <html lang="{{ str_replace('_', '-', app()->getLocale()) }}"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Laravel</title> <link href="{{ asset('css/app.css') }}" rel="stylesheet"> </head> <body> ...
<?php # # Markdown - A text-to-HTML conversion tool for web writers # # PHP Markdown # Copyright (c) 2004-2013 Michel Fortin # <http://michelf.com/projects/php-markdown/> # # Original Markdown # Copyright (c) 2004-2006 John Gruber # <http://daringfireball.net/projects/markdown/> # # WARNING: This file differs...
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; use App\Models\note; class UpdatenoteRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; ...
<?php return [ 'welcome' => 'Welcome to GoogleAnalytics' ];
<?php namespace App\Command; use App\Pessoal\DotacaoCalculator; use Exception; use Mpdf\HTMLParserMode; use Mpdf\Mpdf; use Mpdf\Output\Destination; use Symfony\Component\Config\Definition\Exception\Exception as Exception2; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgumen...
<?php return array( /* |-------------------------------------------------------------------------- | PDO Fetch Style |-------------------------------------------------------------------------- | | By default, database results will be returned as instances of the PHP | stdClass object; however, you may desire t...
<?php /** * Template Name: Full Width Page * Template Post Type: page, box * * @package WordPress * @subpackage Ginky * @since Ginky 1.0 */ get_header(); if ( have_posts() ) { // Load posts loop. while ( have_posts() ) { the_post(); the_content(); } } else { // If no content, include the "No posts found" ...
<?php namespace Roots\Sage\Extras; use Roots\Sage\Setup; /** * Add <body> classes */ function body_class($classes) { // Add page slug if it doesn't exist if (is_single() || is_page() && !is_front_page()) { if (!in_array(basename(get_permalink()), $classes)) { $classes[] = basename(get_permalink()); ...
<?php /** * CORE Conference Manager * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://www.terena.org/license/new-bsd * If you did not receive a copy of the licen...
.@extends('admin.layouts.admin') @section('title', 'Tambah Otorisasi Dokumen' ) @section('content') <div class="row"> <div class="col-md-12 col-sm-12 col-xs-12"> @include('partials._success') {{ Form::open(['route'=>['admin.permission_documents.store'],'method' => 'post','id' => 'g...
@extends('layouts.app') @section('content') <div class="dt-content-wrapper custom-scrollbar"> <!-- Site Content --> <div class="dt-content"> <div class="row"> <!-- Grid Item --> <div class="col-12"> <div class="row dt-masonry"> ...
<div class="px-6 py-4 bg-gray-200 border border-gray-300 rounded-lg"> <h3 class="mb-4 text-xl font-bold">Following</h3> <ul> @forelse (current_user()->follows as $user) <li class="{{ $loop->last ? '' : 'mb-4' }}"> <div> <a class="flex items-center text-sm" href="{{ $...
<?php /** * 一个简洁大气,含夜间模式的 Typecho 博客模板。 * * @package Single Theme * @author Dreamer-Paul * @version 1.9 * @link https://paugram.com */ if (!defined('__TYPECHO_ROOT_DIR__')) exit; $this->need('header.php'); ?> <main> <div class="wrap min"> <section class="home-title"> <h2><?php $this-...
<?php ini_set('display_errors', 1); require 'config.php'; if($text=="/stop") file_put_contents("code.txt",1); if($text=="/startbot") file_put_contents("code.txt" ,0); $database = new mysqli($dbhost, $dbusername, $dbpassword, $dbname); $welcome= "🖐️Hello new user! Welcome to this bot! Reply this message with you...
<?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/admin/template_admin.php");?>
<?php namespace App\Http\Livewire\Movil; use App\Movil; use Livewire\Component; use Livewire\WithPagination; class MovilsIndex extends Component { use WithPagination; public $search; public function render() { return view('livewire.movil.movils-index'); } public function getResultsP...
<?php /** * * The default template for displaying content * @since 1.0 * @version 1.2.0 * */ $thumbsize = isset($thumbsize) ? $thumbsize : 'full'; ?> <!-- /post-standard --> <?php if ( ! is_single() ) : ?> <div class="post-list clearfix"> <?php endif; ?> <article id="post-<?php the_ID(); ?>" <?php post_class(...
<?php defined('BASEPATH') or exit('No direct script access allowed'); /** * * Model Lead_model * * This Model for ... * * @package CodeIgniter * @category Model * @author Setiawan Jodi <jodisetiawan@fisip-untirta.ac.id> * @link https://github.com/setdjod/myci-extension/ * @param ... * @return ...
<?php declare(strict_types=1); namespace StubTests; use JetBrains\PhpStorm\Pure; use PhpParser\Node\Expr\BinaryOp\BitwiseOr; use PhpParser\Node\Expr\ClassConstFetch; use PhpParser\Node\Expr\ConstFetch; use PhpParser\Node\Expr\UnaryMinus; use PhpParser\Node\Scalar\DNumber; use PhpParser\Node\Scalar\LNumber; use PhpPar...
<?php return [ /** * Buttons */ 'cancel' => 'Anuluj', 'confirm' => 'Zatwierdź', 'back' => 'Wstecz', 'save' => 'Zapisz', 'continue' => 'Kontynuuj', 'select' => 'Wybierz', /** * Form Labels */ 'name' => 'Nazwa', 'description' => 'Opis', 'role' => 'Rola', ...
<!DOCTYPE html> <html> <head> <title>Double Opt-In</title> <!-- Meta tags --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <!-- Bootstrap CSS --> <link rel="stylesheet" href="node_modules/bootstrap/dist/css/bootstrap.min.css"> <link rel="s...
<?php class Msalecostdetail extends CI_Model{ protected $_table = 'sale_data_item'; public function __construct(){ parent::__construct(); } public function getListCostItemFromCompany ($company_id) { $this->db->where('company_id',$company_id); $this->db->select('id, line_number, note...
<?php session_start(); error_reporting(0); include('includes/config.php'); if (strlen($_SESSION['alogin']) == 0) { header('location:index.php'); } else { if ($_POST['submit'] == "Update") { $pagetype = $_GET['type']; $pagedetails = $_POST['pgedetails']; $sql = "UPDATE tblpages SET detail=:pagedetails WHERE type...
<?php require "config.php"; $word = str_replace(' ','-',$_REQUEST['word']); $url = "https://scrabbly-dictionary.herokuapp.com/?define=".$word; $json = file_get_contents($url); $json = json_decode($json, true); if(is_array($json)){ $meaning = $json[0]['meaning']['noun'][0]['definition']; }else{ $meaning = "Word ...
<?php // load messages plugin // this creates a new message object and call init() method include '/system/plugins/messages/messages.php';
<div class="modal fade show" id="modalConfirm" tabindex="-1" role="dialog"> <div class="modal-dialog modal-dialog-centered" role="document"> <div class="modal-content"> <div class="modal-header"> <h6 class="modal-title">修正した内容を更新します。よろしいですか?</h6> <button type="button" class="close" data-dism...
<?php defined('BASEPATH') or exit('No direct script access allowed'); class Gallery extends CI_Controller { function __construct() { parent::__construct(); $this->load->model('Gallery_model'); } public function adddata() { $table_name = $this->input->post('table_name'); ...
<?php require_once '../private/initialize.php';?> <?php include SHARED_PATH . '/jobmap_header.php';?> <?php include SHARED_PATH . '/js_auto_complete.php'; unset($_SESSION['job_id']); unset($_SESSION['search']); unset($_SESSION['location']); ?> <div class="wrapper"> <!-- Sidebar --> <nav id="sidebar"> ...
<?php class StockFilingsBridge extends FeedExpander { const MAINTAINER = 'captn3m0'; const NAME = 'SEC Stock filings'; const URI = 'https://www.sec.gov/edgar/searchedgar/companysearch.html'; const CACHE_TIMEOUT = 3600; // 1h const DESCRIPTION = 'Tracks SEC Filings for a single company'; const SEARCH_URL = 'https...
<?php /** * * @author : linhndh */ namespace Zalo\Authentication; /** * Class AccessToken * * @package Zalo */ class AccessToken { /** * The access token value. * * @var string */ protected $value = ''; /** * Date when token expires. * * @var \DateTime|null ...
<?php use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; class nombreSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { for ($i=0; $i < 35 ; $i++) { DB::table('nombres')->insert([ 'nombr...
<?php namespace App\Http\Controllers\Host; use App\Apartment; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use App\Message; use Illuminate\Support\Facades\Auth; class HomeController extends Controller { public function index(){ return view('host.home'); } public function list...
<?php /** * Дешифрует адрес от яндекса * @author Nikolay Ermin <nikolay@ermin.ru> * @link http://siteforever.ru */ namespace Sfcms\Yandex; use \Sfcms\Component; /** * @property $title * @property $zip * @property $city * @property $country * @property $street * @property $building * @property $suite * @p...
@extends('anbar.layouts.layout') @section('active7') active @endsection @section('title') <title>Anbar | Orders table</title> @endsection @section('styles') <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback"> <link rel="stylesheet" ...
<?php use Illuminate\Database\Seeder; class DatabaseSeeder extends Seeder { /** * Seed the application's database. * * @return void */ public function run() { $this->call(FishSeeder::class); $this->call(RegionsSeeder::class); $this->call(PrefectureSeeder::class)...
<?php /** * Zend Framework * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://framework.zend.com/license/new-bsd * If you did not receive a copy of the license a...
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class ProductoRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Get t...
@extends('dashboard.layouts.main') @section('container') <div class="container"> <div class="row my-3"> <div class="col-lg-8"> <h1 class="mb-3">{{ $post->title }}</h1> <a href="/dashboard/posts" class="btn btn-success"> <span data-feather="arrow-left"></span>Back to all my posts</...
<?php namespace UseCase; use Service\BookingRepository; use Service\ConfirmationNotifierInterface; use Service\DbConnection; use Service\CarFinder; use Model\User; use Model\Car; use Model\Booking; use Service\InsertException; use Service\NotificationFailedException; class BookCar { private CarFinder $carFinder...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class User extends Model { public $timestamps = true; protected $fillable = [ 'name', 'email', 'password' ]; protected $hidden = []; }
<?php class Clerk_Clerk_Block_Adminhtml_Dashboard extends Mage_Adminhtml_Block_Template { const XML_PATH_ENABLED = 'clerk/general/active'; const XML_PATH_PUBLIC_KEY = 'clerk/general/publicapikey'; const XML_PATH_PRIVATE_KEY = 'clerk/general/privateapikey'; protected $type = 'dashboard'; /** ...
<?php namespace App\Http\Middleware; use Closure; use Illuminate\Support\Facades\Auth; class Player { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle($request, Closure $next) ...
<?php /*! * HybridAuth * http://hybridauth.sourceforge.net | https://github.com/hybridauth/hybridauth * (c) 2009-2011 HybridAuth authors | hybridauth.sourceforge.net/licenses.html */ /** * Draugiem Passport * * @package HybridAuth additional providers package * @author Janis Bebritis /...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <link rel="icon" href="{{ asset('backend/im...
<!DOCTYPE html> <html lang="en"> <head> <title>Bootstrap Example</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/aja...
<?php namespace App\Http\Controllers\Teacher; use App\Http\Controllers\Controller; use Illuminate\Http\Request; class DashboardController extends Controller { public function index() { return view('teacher.home'); } }
<?php $data = [ 'results.search' => '结果:大约', 'no.search.results' => '搜索没有产生任何结果 <br>太短/太长的搜索查询', 'empty.request' => '空搜索查询', 'search.home' => '<h2>搜索</h2>輸入搜索詞組', ]; return $data;
<?php /* @var App\Models\Post $post */ /* @var \Illuminate\Support\Collection $posts */ ?> @if ($posts->count() > 0) @foreach ($posts as $post) <x-post :post="$post" /> @endforeach {{ $posts->withQueryString()->links() }} @else No posts yet @endif
<?php /** * CodeIgniter * * An open source application development framework for PHP * * This content is released under the MIT License (MIT) * * Copyright (c) 2014 - 2018, British Columbia Institute of Technology * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this softw...
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateFeaturesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('features', function (Blueprint $table) { ...
<?php #****************************************# # * @Author: Steve Tran # # * @Email: stevetran.bao@gmail.com # # * @Website: https://gocnhinsteve.wordpress.com # # * @Copyright: 2018 - 2020 # #****************************************# class Content_model extends CI_Model { function...
<?php return [ 'Ha', 'Haab', 'Haaby', 'Haack', 'Haacke', 'Haaf', 'Haag', 'Haaga', 'Haage', 'Haagensen', 'Haak', 'Haake', 'Haakenson', 'Haakenstad', 'Haaker', 'Haakinson', 'Haaland', 'Haan', 'Haapala', 'Haar', 'Haare', 'Haarstad', ...
<form action="{{ request()->segment(2) == 'product' ? 'shop' : ''}}"> <div class="filter-widget"> <h4 class="fw-title">Categories</h4> <ul class="filter-catagories"> @foreach($categories as $category) <li><a href="shop/{{ $category->name }}">{{ $category->name }}</a></li>...
<?php use yii\helpers\Html; use yii\widgets\ActiveForm; /** * @var yii\web\View $this * @var frontend\models\MyCare $model * @var yii\widgets\ActiveForm $form */ ?> <script type="text/javascript"> function submitForm($form) { $('#statusMsg').hide(); var createUrl = $form.attr("action"); var createData = $form....
--TEST-- MongoDB::setWriteConcern() emits warning if $w arg is not integer or string --SKIPIF-- <?php require_once "tests/utils/standalone.inc" ?> --FILE-- <?php require_once "tests/utils/server.inc"; $host = MongoShellServer::getStandaloneInfo(); $mc = new MongoClient($host); $db = $mc->selectDB(dbname()); $db->set...
<?php /** * Author: Wing Ming Chan * Copyright (c) 2018 Wing Ming Chan <chanw@upstate.edu> * MIT Licensed * Modification history: * 1/31/2017 Added documentation and minor bug fixes. * 6/7/2016 Minor bug fixes. * 5/28/2015 Added namespaces. * 3/17/2015 Added private method getTimeInfo and method calls i...
@extends('layouts.default') @section('css') <link rel="stylesheet" href="style.css"> @stop @section('main') <h2> Liste des produits ajoutés : </h2> <div class="container_produit"> @foreach ($products as $product) <div class="blocproduit"> <h5> <!-- La fonction v...
<!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Main content --> <section class="content"> <div class="card card-default color-palette-bo"> <div class="card-header"> <div class="d-inline-block"> <h3 class="card-title">...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Image; use App\Models\Gsetting; class GeneralSettingsController extends Controller { public function index() { return view('general_settings.index'); } public function title(Request $request){ $request->validate([ ...
<?php namespace App\Http\Controllers\Kordinator; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use Illuminate\Support\Facades\Storage; use Hash; use App\Model\Anggota; use App\Model\Provinsi; use App\Model\Kota; use App\Model\Kecamatan; use App\Model\Kelurahan; use App\Model\Activity; use App\Hel...
<?php namespace Dayspring\LoginBundle\Security\User; use Dayspring\LoginBundle\Model\User; use Dayspring\LoginBundle\Model\UserQuery; use Symfony\Component\Security\Core\Exception\UnsupportedUserException; use Symfony\Component\Security\Core\Exception\UsernameNotFoundException; use Symfony\Component\Security\Core\User...
#!/bin/sh [ -z "$1" ] && echo "Error: should be called from udhcpc" > /dev/console && exit 1 echo [$0] $1 ... > /dev/console case "$1" in bound) [ -n "$broadcast" ] && BROADCAST="broadcast $broadcast" [ -n "$subnet" ] && NETMASK="netmask $subnet" ifconfig $interface $ip $BROADCAST $NETMASK <? if ($physical==1) { ec...
<?php namespace App\Http\Controllers; use App\Http\Controllers\PacientesController; use App\Retorno; use Illuminate\Http\Request; use App\Http\Requests; use Illuminate\Support\Facades\Auth; class RetornoController extends Controller { protected $Page; public function __construct() { $this->Page ...
@extends('admin.admin') @section('content') <div class="container-fluid"> <!-- <div class="block-header"> <h2> EDITABLE TABLE <small>Taken from <a href="https://github.com/mindmup/editable-table" taget="_blank">github.com/mindmup/editable-ta...
<?php namespace App; class Inventory extends BaseModel { protected $table = 'stock_list'; protected $primaryKey = 'id'; protected $fillable = ['name','price']; protected $rules = [ 'name'=>'string|required', 'price' => 'numeric|required', ]; }
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateCoordenacaoCursosTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('coor...
<header id="header"><!--header--> <div class="header_top"><!--header_top--> <div class="container"> <div class="row"> <div class="col-sm-6"> <div class="contactinfo"> <ul class="nav nav-pills"> <li><a href="#...
<?php namespace App\Repositories; use Prettus\Repository\Eloquent\BaseRepository; use Prettus\Repository\Criteria\RequestCriteria; use App\Repositories\AdminUserRepository; use App\Models\AdminUser; /** * Class AdminUserRepositoryEloquent * @package namespace App\Repositories; */ class AdminUserRepositoryEloquent...
<?php /******************************************** * Easy PHP * * * * A lightweight PHP framework for studying * * * * TIERGB * * <https://github.com/TIGERB> ...
<?php namespace Railsbank\Entity\Card; use Railsbank\Entity\Entity; use Railsbank\Helper\ArrayResponse; use Railsbank\Entity\EntityInterface; /** * Class Pin */ class Pin extends Entity implements EntityInterface { /** * @var string */ private $pin; /** * Person constructor. * @para...
<?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\modules\alexadmx\controllers; use app\modules\alexadmx\models\Msg; use Yii; use app\modules\alexadmx\models\CallbackSearch; use app\models\Callback; use yii\web\NotFoundHttpException; use yii\filters\VerbFilter; /** * CallbackController implements the CRUD actions for Callback model. */ class C...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class PersonMainType extends Model{ protected $table = 'person_main_types'; protected $fillable = ['name']; public function type(){ return $this->hasMany('App\Models\PersonType'); } }
<?php /* * This file is part of pssht. * * (c) François Poirotte <clicky@erebot.net> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace fpoirotte\Pssht\Messages\USERAUTH\REQUEST; /** * SSH_MSG_USERAUTH_REQUEST message (RFC 4252...
<?php namespace App\Http\Livewire\Admin; use App\Models\Coupon; use Livewire\Component; use PHPUnit\Framework\Constraint\Count; use Illuminate\Validation\Rule; class AdminEditCouponsComponent extends Component { public $code; public $type; public $value; public $cart_value; public $coupon_id; ...
@section('last-activity') <div class="w-full rounded-lg py-4 px-4 flex flex-col shadow-lg border mb-5 bg-white"> <p class="text-xs font-semibold text-gray-400 md:text-black">Last Activity</p> @if ($student->timelines()->orderBy('date','desc')->first()) <p class="text-sm md:text-xl md:text-gray-400 md:font-t...
@extends('admin.layouts.app') @section('content') <div class="row"> <div class="col-sm-12"> <div class="btn-group pull-right m-t-15"> <a href="#" onClick="javascript:window.close('','_parent','');" class="btn btn-danger waves-effect waves-light m-l-15"><i class="ti-close"></i> Close</a> ...
@extends('layouts.main') @section('content') <section class="jumbotron"> <h1 class="jumbotron-heading">{{ $post->title }}</h1> <img src="{{ $post->getImageUrl() }}" alt="{{ $post->title }}"> <p class="lead text-muted">{{ $post->text }} </section> @endsection
<?php namespace App\Http\Responses; use Illuminate\Support\Facades\Auth; use Laravel\Fortify\Contracts\LoginResponse as LoginResponseContract; class LoginResponse implements LoginResponseContract { public function toResponse($request) { $role = Auth::user()->roles->first()->name; // dd($rol...
<?php // DO NOT EDIT! Generated by Protobuf-PHP protoc plugin 1.0 // Source: tabletmanagerdata.proto // Date: 2016-01-22 01:34:35 namespace Vitess\Proto\Tabletmanagerdata { class StartSlaveResponse extends \DrSlump\Protobuf\Message { /** @var \Closure[] */ protected static $__extensions = array(); ...
<?php /** * 金子价格管理 */ namespace Shop\Controller; use Shop\Controller\ShopbaseController; class BWarehouseController extends ShopbaseController { public function _initialize() { $this->bwarehouse_model=D("BWarehouse"); $this->bshop_model=D("BShop"); $this->bemployee_model=D("BEmployee"); $this->goods_mode...
<?php namespace App\Http\Controllers\Admin; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use App\Models\Barang; use App\Models\tblkategori; use App\Models\tblmerek; use Image; class aBarangController extends Controller { public function index(){ $barang = new barang(); $dat...
<?php /** @var module $this */ $this->loadPlugin("Statz"); /** @var \BlueStats\API\plugin $plugin */ $plugin = $this->plugins['Statz']; $this->config->setDefault("stats", ['votes', 'teleports', 'deaths', 'blocks_broken']); $language = $this->config->get("language","BlueStats"); $stats = $this->config->get("stats")...
<x-layout> <section class="px-6 py-8"> <main class="max-w-6xl mx-auto mt-10 lg:mt-20 space-y-6"> <article class="max-w-4xl mx-auto lg:grid lg:grid-cols-12 gap-x-10"> <div class="col-span-4 lg:text-center lg:pt-14 mb-10"> <img src="/images/illustration-1.png" a...
<h2>{{ __('Booking Reservation') }}</h2> <hr> <form action="{{ route('user.createbooking.confirm') }}" method="POST" id="booking_inputform"> {{ csrf_field() }} <h3><u>{{ __('Personal Information') }}</u></h3> <div class="form-group"> <input type="hidden" id="place_id" name="place_id" value="{{ $maparray['plac...
<div class="flash-data" data-flashdata="<?= $this->session->flashdata('flash'); ?>"></div> <div class="row"> <div class="col-12"> <div class="card"> <div class="card-header"> <h4><?= $title; ?></h4> </div> <div class="card-body"> <?= $this-...
<?php require_once("../../public/includes/initial.php"); $result = array(); if($_SERVER["REQUEST_METHOD"] == "GET" && isset($_GET["title"])){ $title = $_GET["title"]; if(!isset($_SESSION["login_staff"])){ $result["status"] = "NO_LOGIN"; echo json_encode($result); ...
<?php require_once __DIR__ . '/../vendor/autoload.php'; ini_set('error_reporting', E_ALL); ini_set('display_errors', '1'); ini_set('display_startup_errors', '1'); /** * Class BootstrapTest * Main test class other classes will extend. */ class BootstrapTest extends PHPUnit\Framework\TestCase { }
<?php use Illuminate\Http\Request; use Illuminate\Support\Facades\Route; Route::get('/chart/comments_chart','Backend\Api\ApiController@comments_chart'); Route::get('/chart/users_chart','Backend\Api\ApiController@users_chart'); /******** API **************************/ Route::get('/all_posts', ['as' =>'' ...
<?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\Db\Adapter\Pdo\Postgre...
<?php namespace Database\Factories; use App\Models\User; use Hash; use Illuminate\Database\Eloquent\Factories\Factory; use Illuminate\Support\Str; use Faker\Factory as Faker; class UserFactory extends Factory { /** * The name of the factory's corresponding model. * * @var string */ protec...
<?php namespace App\Controllers; use CodeIgniter\RESTful\ResourceController; use CodeIgniter\API\ResponseTrait; use App\Models\MovieModel; use App\Models\GenreModel; use \Firebase\JWT\JWT; use Exception; class Movies extends ResourceController { use ResponseTrait; public function index(){ $key = "kullu"...
<?php /* Prototype : array imap_fetch_overview(resource $stream_id, int $msg_no [, int $options]) * Description: Read an overview of the information in the headers * of the given message sequence * Source code: ext/imap/php_imap.c */ /* * Pass an incorrect number of arguments to imap_fetch_overview() to test b...
@extends("master") @section("content") <div id="layoutSidenav_content"> <main> <div class="container-fluid"> <div class="row mt-4"> <div class="col-md-10 col-lg-10"> <h1 class="">Resigned Employees</h1> ...