lang
stringclasses 10
values | seed
stringlengths 5
2.12k
|
---|---|
php | * @var int|null
*
* @ORM\Column(name="nombrePerson_Pack", type="integer", nullable=true)
*/
private $nombrepersonPack;
/**
* @var int|null
*
* @ORM\Column(name="nom_Pack", type="integer", nullable=true)
*/ |
php | /**
* @author <NAME> <<EMAIL>>
*/
class SendEmailCommand extends BaseObject implements SelfHandlingCommand
{
/**
* @var mixed
*/
public $from;
/**
* @var mixed |
php |
/**
* Number indicating which page to fetch for pagination. Default = 1, showing the first 10 results
*
* @var string
*/
public $startPage;
/**
* Defines the search collection for the query
*
* @var string
*/ |
php |
<div class="col-md-1">
<p class="form-control-plaintext">
<%= updateCount %>
</p>
</div>
</div>
</form>
</div>
<table class="table table-bordered">
<thead>
<tr>
<th>记录ID</th>
<th>错误码</th> |
php | 'gotoUrl' => 'https%3A%2F%2Fwww.thetimes.co.uk%2Fpuzzleclub%2Fcrosswordclub%2F',
'username' => $this->username,
'password' => $this->password,
'rememberMe' => 'on',
'Submit' => 'Login'
],
/* The Times login system doesn't half chuck you around the place. */
'allow_redirects' => [
'max' => 10
]
]); |
php | $passes = $this->spec->summary()->logs('passed');
expect($passes)->toHaveLength(1);
$pass = reset($passes);
$expectation = $pass->children()[0];
$file = $expectation->file();
expect($file)->toMatch('~Specification.spec.php$~');
});
it("logs the not attribute with a deferred matcher", function () {
|
php | table.blueTable thead th {
font-size: 14px;
font-weight: bold;
color: #FFFFFF;
text-align: center;
}
table.blueTable tfoot td {
font-size: 14px;
}
table.blueTable tfoot .links {
text-align: right;
}
table.blueTable tfoot .links a{
display: inline-block; |
php | top: '0%',
left: '40%',
bottom: '5%',
type: 'pie',
roseType: 'angle',
center: ['25%', '50%'],
radius: ['20%', '50%'],
avoidLabelOverlap: false,
labelLine: {length: '5'},
}
]),
});
const chart2 = new Chartisan({
el: '#chart2', |
php | $discussion->save();
// Now that the discussion has been created, we can add the first post.
// We will do this by running the PostReply command.
try {
$post = $this->bus->dispatch(
new PostReply($discussion->id, $actor, $data)
);
} catch (Exception $e) { |
php |
Autoloader::register();
SessionManager::ss();
(new DotEnv(__DIR__ . '/.env'))->load(); |
php | public function setUp(): void
{
parent::setUp();
$this->order = OrderFactory::new()->create();
$this->manager = $this->app->make(Manager::class);
$this->manager->extend('custom-driver', function () {
return new CustomShippingDriver;
});
}
/** @test */
public function it_can_list_enabled_drivers()
{ |
php |
public function getTicketById($idTicket)
{
return $this->where("id", $idTicket)->find();
}
public function getTicketListByUid($uid, $since_id = 0, $length = 10)
{
$query = $this->match('User')->where("uid", $uid);
$since_id > 0 && $query->where('id', '>', $since_id);
return $query->order('create_time ASC')->limit($length)->select();
}
public function getUserTicketStatus($idMatch, $uid)
{ |
php | return $ano_diferencia;
}
function calculada_nombre($nombre)
{
$name = explode(" ", $nombre); |
php |
/**
* App\Models\SkillGroup
*
* @method static Builder|SkillGroup newModelQuery()
* @method static Builder|SkillGroup newQuery()
* @method static Builder|SkillGroup query()
* @mixin Eloquent
* @property int $id
* @property string $name
* @property Carbon|null $created_at
* @property Carbon|null $updated_at
* @method static Builder|SkillGroup whereCreatedAt($value)
* @method static Builder|SkillGroup whereId($value)
* @method static Builder|SkillGroup whereName($value) |
php | * 获取用户角色
* @author 艾逗笔<<EMAIL>>
*/
public function get_user_roles() {
$results = M('rbac_role')->select();
foreach ($results as $k => $v) {
$roles[$v['id']] = $v['name'];
}
return $roles;
}
/**
|
php | namespace App;
use StoutLogic\AcfBuilder\FieldsBuilder;
$flex = new FieldsBuilder('flex');
$flex
->addGroup('flex_text', ['label'=>''])
->addText('label', ['label'=>'Napis nad tytułem'])
->addText('title', ['label'=>'Tytuł'])
->addWysiwyg('text', ['label'=>'Text'])
->addLink('url', ['label'=>'Url'])
->endGroup()
->addImage('flex_image', ['label'=>'Image'])
; |
php |
class m171005_144905_fixed extends Migration
{
/** @inheritdoc */
public function up ()
{
$this->addColumn('auth_item', 'fixed', $this->boolean()->defaultValue(0));
$this->update('auth_item', [ 'fixed' => 1 ], [ 'name' => [ 'admin', 'registered' ] ]);
}
/** @inheritdoc */
public function down ()
{
$this->dropColumn('auth_item', 'fixed'); |
php | /*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
//login
Route::get('/login', [AuthController::class, 'login'])->name('login');
Route::post('/postlogin', [AuthController::class, 'postLogin']); |
php | use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use Spatie\Browsershot\Browsershot;
class CreateOgImageJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
public function __construct(
private BlogPost $post
) {
}
|
php | 'name' => '<NAME>',
'email' => '<EMAIL>',
'usertype' => 'admin',
'password' => <PASSWORD>('<PASSWORD>'),
'provider' => 'facebook',
'checker' => '1',
'provider_id' => NULL,
]);
$product = Product::create([
'product_name' => 'Head & Shoulder',
'details' => 'best Shampoo',
'regular_price' => '150',
'sale_price' => '100', |
php | <div class="container-fluid">
<!-- Exportable Table -->
<div class="row clearfix">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="card"> |
php | unset($meta_data['_last_edit']);
unset($meta_data['_edit_lock']);
$encoder = new \Wprr\WprrEncoder();
if(function_exists('get_field_objects')) { |
php | <a href="#" class="d-block mb-4 h-100">
<img class="img-fluid img-thumbnail" src="http://placehold.it/400x300" alt="">
</a>
</div>
</div>
<h3 class="my-4 text-center text-lg-left">Gamergy 2018</h3>
<div class="row text-center text-lg-left">
<div class="col-lg-3 col-md-4 col-xs-6">
<a href="#" class="d-block mb-4 h-100">
<img class="img-fluid img-thumbnail" src="http://placehold.it/400x300" alt="">
</a>
</div>
|
php | return $this->belongsTo('App\Models\aciudNoticias', 'id_noticia');
}
public function funcionario()
{
return $this->belongsTo('App\Models\rrhhFuncionario', 'id_funcionario' ); |
php | <div class="col-xs-10">
<input class="form-control" type="text" value="{{ $service->question }}" name="question" required id="question" placeholder="Question">
</div>
</div>
<div class="form-group row">
<label for="provider_name" class="col-xs-2 col-form-label">Description</label>
<div class="col-xs-10">
<textarea class="form-control" name="description" required id="myeditor" placeholder="Description">{{ $service->description }}</textarea>
</div>
</div>
<div class="form-group row">
|
php |
return [
/*
* Headers
*/
'header' => [
'login' => 'Logowanie',
'login2' => 'Zaloguj się',
'register' => 'Rejestracja',
'register2' => 'Załóż konto',
'active' => 'Aktywacja konta', |
php | <tbody>
@foreach($employees as $employee)
<tr>
<td align="center"><a href="/employees/{{ $employee->id }}/edit"><i class="feather icon-edit"></i></a></td>
<td>{{$employee->name}}</td>
<td>{{$employee->surname}}</td>
<td>{{$employee->document_type}}</td>
<td>{{$employee->document_name}}</td> |
php |
</div>
</div>
</form>
<!--Fin panel de busqueda-->
<!--Inicio panel de resultados-->
<div class="panel panel-default col-md-10 col-md-offset-1">
<div class="panel-heading">
<center><h3 class="panel-title">Usuarios</h3></center>
</div>
<div class="panel-body table-responsive">
<table class="table table-hover table-striped table-bordered" > |
php | /**
* Table: assets
*/
Schema::create('assets', function (Blueprint $table) {
$table->increments('id')->unsigned();
$table->string('type', 10);
$table->string('name', 100)->unique();
$table->string('library', 100);
$table->string('current_version', 50);
$table->string('latest_version', 50); |
php | public function getMapper(): AutoMapperAwareInterface
{
return $this->mapper;
}
/**
* @required |
php | {
public function register()
{
$this->app->set('redis_pool', function () {
return (new RedisPool)->init()->gcSpareObject();
});
$this->app->set('db_pool', function () {
return (new DBPool)->init()->gcSpareObject();
});
}
}
|
php |
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
| |
php | public static function NewInstance($oImapResponse)
{
return new self($oImapResponse);
}
/**
* @param bool $bForce = false
*
* @return array|null
*/
public function GetEnvelope($bForce = false)
{
if (null === $this->aEnvelopeCache || $bForce)
{
|
php | $dLastVisit = date("Ymdhi", strtotime($this->get_session("last_visit")));
$dExpTime = date("Ymdhi", strtotime("-".SESSEXP." minutes"));
if (!empty($dLastVisit)) {
if ($dLastVisit > $dExpTime) {
$this->set_session("last_visit", date("YmdHi"));
return true;
} else {
return true;
} |
php | Route::get('cart/add', [CartController::class, 'add'])->name('cart.add');
Route::get('cart/back', [CartController::class, 'back'])->name('cart.back');
Route::get('cart/clear', [CartController::class, 'clear'])->name('cart.clear');
Route::get('cart/checkout', [CartController::class, 'checkout'])->name('cart.checkout');
Route::post('cart/create', [CartController::class, 'create'])->name('cart.create');
Route::get('cart/success', [CartController::class, 'success'])->name('cart.success');
#Customer
Route::get('customer/register', [CustomerController::class, 'register'])->name('customer.register');
Route::get('customer/login', [CustomerController::class, 'login'])->name('customer.login');
Route::get('customer/dashboard', [CustomerController::class, 'dashboard'])->name('customer.dashboard')->middleware('customer.auth');
Route::post('customer/create', [CustomerController::class, 'create'])->name('customer.create');
Route::post('customer/auth', [CustomerController::class, 'auth'])->name('customer.auth');
Route::get('customer/logout', [CustomerController::class, 'logout'])->name('customer.logout')->middleware('customer.auth');
|
php | public function elimination_delete()
{
$data = $this->delete();
///VERIFICANDO SI EXISTE EL ID PRINCIPAL DE LA TABLA
if (!isset($data["id_servicios"])) {
$respuesta = array('err' => TRUE, 'mensaje' => 'No se encontro nungun identificador de servicio');
$this->response($respuesta, REST_Controller::HTTP_BAD_REQUEST);
} else { |
php | 'module' => !empty($d[0]) ? $d[0] : '',
'controller' => !empty($d[1]) ? $d[1] : 'index',
'action' => !empty($d[2]) ? $d[2] : 'index'
));
}
|
php |
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\Course;
use App\Models\AksesCourse; |
php | <?php
namespace DDTrace\Sampling;
use DDTrace\Contracts\Span;
/**
* Defines a priority sampling value provider.
*/
interface Sampler
{
/** |
php | ]);
}
/**
* @return string |
php | //是否可评分
protected function flowdatalog($arr)
{
$pfrows = $this->getpfrows();
foreach($pfrows as $k=>&$rs){
$rs['xuhaos'] = $k+1;
$rs['defenstr'] = '<input type="number" min="0" max="'.$rs['fenshu'].'" class="inputs" onfocus="js.focusval=this.value" name="pingfen_'.$rs['id'].'" onblur="js.number(this)">';
$rs['itemname'] = '<div style="max-width:200px">'.$rs['itemname'].'</div>';
} |
php | "{{ $value['gestion'] }}",
@endforeach
],
datasets: [{
label: '# recettes de fonctionnement',
data: [
@foreach ($communes['recette_fonctionnement'] as $value)
"{{ $value['montant'] }}",
@endforeach |
php | </head>
<body style="overflow-x: hidden">
<div style="max-width: 1500px; margin:auto; display:flex;margin-top:40px;position:relative;justify-content:center; flex-wrap:wrap">
<div style="margin-left:5%;margin-right:5%;width:90%;display:flex;justify-content:center;position:relative;flex-wrap:wrap;align-items:center;flex-direction:column">
<img class="initiatives_img" src="/images/hero2.jpg" alt="" style="width:90%;height:auto;border-radius:5px;margin:auto;min-height:200px">
<div class="animate_initiatives" style="position: absolute;width:70%;margin-top:2%">
<h2 style="text-align:left;display:block;font-weight:bold;color:white;margin-top:10px">Oxygen is my Birthright</h2>
<p style="text-align:left;display:block;margin-top:20px;max-width:500px;color:white;font-size:1.3rem">Let's decrease air pollution and increase forestation</p>
</div>
</div>
<div style="width:100%;margin-top:2%;margin-left:10%;"">
<p style="max-width:90%;text-align: justify;margin-top:30px;font-size:1.3rem">Tir quality across Nepal has been worsening over the years. As per WHO, Air pollution kills an estimated 38000 people annually in Nepal. Despite this nerve wracking fact, the government of Nepal has taken no significant steps to improve the air quality. Hence “Oxygen is my Birth Right” stands as an anti- pollution campaign that calls policy-makers and regulators to start taking seriously the risk of ambient air pollution to the health of every individual.</p>
|
php | public function __construct($message = null, $apiResponse = null, $code = 0, \EXception $previous = null)
{
parent::__construct($message, $code, $previous);
$this->apiResponse = $apiResponse;
}
public function getAPIResponse()
{
return $this->apiResponse;
}
}
|
php | $signature = $this->encode($sign);
$url = ($security ? 'https' : 'http')."://dysmsapi.aliyuncs.com/?Signature={$signature}{$sortedQueryStringTmp}";
try {
$content = $this->fetchContent($url); |
php | .register-heading{
text-align: center;
margin-top: 5%;
margin-bottom: -10%;
color: #495057;
}
</style>
</head>
<body> |
php | <!-- Caja ---------------------------------->
<div class="card col-sm-6 offset-lg-1 col-md-4 offset-md-1 col-lg-4 offset-lg-1">
<a href="#">
<img style="max-width: 100%; min-width: 20%" class="card-img-top" src="{{ asset('img/caja2.png') }}" alt="Card image cap">
<div class="card-body">
<h5 class="card-title text-center">CAJA</h5>
</div>
</a>
</div>
<!-- Resguardo ----------------------------------->
<div class="card col-sm-6 offset-lg-1 col-md-4 offset-md-1 col-lg-4 offset-lg-1"> |
php | @if ($paginator->onFirstPage())
<div class="item disabled">@lang('suitable::pagination.previous')</div>
@else
<a class="item" href="{{ $paginator->previousPageUrl() }}" rel="prev">@lang('suitable::pagination.previous')</a>
@endif
<!-- Next Page Link -->
@if ($paginator->hasMorePages())
<a class="item" href="{{ $paginator->nextPageUrl() }}" rel="next">@lang('suitable::pagination.next')</a>
@else |
php |
@section('title', 'Produto')
@section('content')
@isset($product)
<div class="text-center mt-2">
<h3>Detalhe do produto: {{ $product->name }}</h3>
</div>
<div class="col" style="text-align: right;">
<a href="{{ route('products.index') }}" class="btn btn-primary mt-2 mb-2">Listar</a>
<a href="{{ route('products.create') }}" class="btn btn-success mt-2 mb-2 ml-2">Cadastrar</a>
</div>
<ul>
<li><strong>Nome: </strong>{{ $product->name }}</li> |
php | use Illuminate\Http\Request;
class ProductController extends Controller
{
public function index()
{
$fruits = array ('mango','orange','banana','apple','pineapple'); |
php | {
$registro = Pedido::withTrashed()->find($id);
$registro->restore();
$this->confirmando = '';
}
public function confirm($id) |
php | </a>
</li>
<!-- <-------------------Student-------------------- -->
<li class="nav-item py-1">
<a href="<?php echo base_url()?>logout" class="nav-link" href="#">
<i class="fas fa-sign-out-alt"></i>
<span class="ml-2">Logout</span>
</a>
</li>
</ul>
<footer class="footer mt-auto text-center text-light py-2"> |
php | }
// Relation one to many with grades
public function grade()
{
return $this->belongsTo('App\Models\Grade', 'Grade_id');
}
// Relation one to many with classes
public function classroom()
{
return $this->belongsTo('App\Models\Classroom', 'Classroom_id'); |
php | namespace App\Models\Auth;
use Illuminate\Database\Eloquent\Model;
use Altek\Accountant\Contracts\Recordable;
use Altek\Accountant\Recordable as RecordableTrait;
class Module extends Model implements Recordable
{
use RecordableTrait;
protected $table = 'modules'; |
php | <!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="/pink-wool.css">
|
php | use Sunlight\User;
use Sunlight\Util\Request;
use Sunlight\Xsrf;
defined('SL_ROOT') or exit; |
php | /**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return !blank(auth()->user());
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/ |
php | * @return array
*/
public function getJson()
{
return $this->json; |
php | * Show the form for editing the specified resource.
*
* @param \App\Post $post
* @return \Illuminate\Http\Response
*/
public function edit(Post $post)
{
return view('posts.edit', compact('post')); |
php | | This file lets you re-map URI requests to specific controller functions.
|
| Typically there is a one-to-one relationship between a URL string
| and its corresponding controller class/method. The segments in a
| URL normally follow this pattern:
|
| example.com/class/method/id/
|
| In some instances, however, you may want to remap this relationship
| so that a different class/function is called than the one
| corresponding to the URL. |
php | <?php
/*
Copyright (c) 2009-2012, Dan "Ducky" Little & GeoMOOSE.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
|
php | public $timestamps =true ;
protected $guarded = [];
public function users(){
return $this->belongsTo('App\Models\Users');
}
public function sender(){
return $this->belongsTo('App\Models\Users','sender_id');
} |
php | <?php declare(strict_types=1);
namespace xiio\ObjectSerializer\Exception;
class ClassNotFoundException extends \Exception
{
}
|
php | <?php
namespace com\zoho\crm\api\sharerecords;
interface ActionHandler
{
}
|
php |
/**
* Interface OauthClientsRepository
* @package namespace CodeProject\Repositories;
*/
interface OauthClientsRepository extends RepositoryInterface
{ |
php |
$factory->define(App\User::class, function (Faker\Generator $faker) {
return [
'name' => $faker->name,
'email' => $faker->safeEmail,
'password' => bcrypt(str_random(10)),
'remember_token' => str_random(10),
];
});
$factory->define(App\Admin\Message::class, function (Faker\Generator $faker) {
return [
'id' => $faker->unique()->numberBetween(1,100),
'name' => $faker->name, |
php | include_once __DIR__ . '/../vendor/autoload.php';
use aymanrb\UnstructuredTextParser\TextParser;
try {
$parser = new TextParser(__DIR__ . '/templates');
$textFiles = new FilesystemIterator(__DIR__ . '/test_txt_files');
foreach ($textFiles as $txtFileObj) {
if ($txtFileObj->getExtension() == 'txt') {
echo $txtFileObj->getFilename() . PHP_EOL;
$parseResults = $parser->parseFileContent($txtFileObj->getPathname());
|
php | 'width' => 1600,
'height' => 460,
'flex-width' => true,
'flex-height' => true,
'video' => true
) ) );
|
php | $runner->run($input);
}
}
/** |
php | });
})
});
</script>
@endsection
@section("copyright") |
php | <div class="d-flex justify-content-between"></div>
<form method="POST" action="<?= base_url('Laporan/edit') . '/' . $laporan['id_laporan'] ?>" enctype="multipart/form-data">
<h1 class="text-center mt-2" style="margin-bottom: 2%; ">Edit Laporan</h1>
<div class="card mb-4">
<div class="card-body">
|
php |
/**
* Commits active transaction.
*/
public function commit(): void;
/**
* Rollbacks active transaction.
*/ |
php | /**
* {@inheritdoc}
*/
public function safeUp()
{
$this->addColumn('startups','created_at', $this->string()->null());
$this->addColumn('startups','updated_at',$this->string()->null());
$this->addColumn('comments','startup_id',$this->integer()->notNull());
$this->addForeignKey(
'fk-startup-id',
'comments',
'startup_id',
'startups', |
php | class LoginController extends BaseController {
/**
*
* @return View
*/
public function index() {
// $secret= Crypt::encrypt('ryal');
// echo $secret;
return View::make('login.view');
}
/**
*
* @return Redirect
|
php |
namespace Orm;
class Observer_CreatedAt extends Observer
{
/**
* @var bool set true to use mySQL timestamp instead of UNIX timestamp |
php | $question = $qa["question"];
$sql_insert_question = "INSERT INTO question(test_id, question) values($topic_last_id, '$question')";
if ($conn->query($sql_insert_question) === TRUE) {
$question_last_id = $conn->insert_id;
$answers = $qa["choices"];
foreach ($answers as $ch) {
$correct = isset($ch["correct"]) ? 1 : 0;
$ans = $ch["answer"]; |
php | <input type="text" class="form-control" id="title" name="title" placeholder="Nama submenu" required>
</div>
<div class="form-group">
<select name="menu_id" id="menu_id" class="form-control">
<option value="">Pilih Menu</option>
<?php foreach ($menu as $m) : ?>
<option value="<?= $m['id']; ?>"><?= $m['menu']; ?></option>
<?php endforeach; ?>
</select>
</div> |
php | $system_transaction = Transaction::create( [
'type' => 'paypal' ,
'email' => $payer->getEmail() ,
'txn_id' => $payment->getId() ,
'amount' => $transaction->getAmount()->getTotal() ,
'currency' => config( 'paypal.currency' ) ,
'invoice_number' => $transaction->getInvoiceNumber()
] );
$this->data[ 'transaction' ] = $system_transaction;
$items = $transaction->getItemList()->getItems();
$this->data[ 'purchases' ] = array();
foreach ( $items AS $item ) {
$this->data[ 'purchases' ][ ] = Purchase::create( [
'item_id' => $item->getSku() ,
'order_id' => $system_transaction->id , |
php | <?php
include ('data.php');
$exported = Porter::exportData ( User::getLyrics () );
?>
<html>
<head>
<title>The Plague's KPop Fan Page - Export Songs</title> |
php | 'objUrl' => $this->objUrl
));
echo Helper::json(array('error' => false, 'replace' => $replace));
} else {
$objValid->add2Errors('name', 'Record could not be added');
throw new Exception('Record could not be added');
} |
php | /**
* Run the migrations.
*
* @return void
*/
public function up() |
php | namespace App\AppModels;
use App\AppModels\Address;
use App\AppModels\Store;
use Illuminate\Database\Eloquent\Model;
class Order extends Model
{
protected $table = 'orders'; |
php | </div>
<?php if(isset($result) && $result == true): ?>
<strong class="text-info">Your image was uploaded successfully. You can share it via the URL below.</strong>
<br>
<br>
<a href="<?=base_url().$result?>"><?=base_url().$result?></a>
<br>
<br>
<img src="<?=base_url().'uploads'.'/'.$img_dir_name.'/'.$file_name?>" alt="uploaded image">
<?php endif; ?> |
php | <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="">
|
php | $form = new BasicForm();
$form->addGroup('body');
$form->addText('name', 'Jméno:')->setRequired();
$form->addText('surname', 'Příjmení:')->setRequired();
|
php | var_dump($data);
var_dump($data2);
// Bug #34982
function myfunc($data)
{
array_walk_recursive($data, 'apply_changed');
}
function apply_changed(&$input, $key)
{
$input = 'changed';
} |
php | $input['password'] = <PASSWORD>($input['password']);
}
$this->validate($request, $validateRules);
$user->update($input);
if(!$request->input('password')){
$user->syncRoles($request->input('roles'));
}
return response()->json(['success'=>'ok']);
} |
php |
<div class="form-group" style="margin-bottom: 20px">
<lavel style="width: 180px; display: inline-block;"></lavel>
<input style="width: 260px;" type="text" name="product_subcategory_name4" value="{{old('product_subcategory_name4')}}">
</div> |
php | <div class="input-wrap m-full-width">
<i class="icon-user"></i>
<input class="field-name" type="text" placeholder="Ваше имя (*)" name="name" data-content="" value="" required style="background:#fff;">
</div>
<div class="input-wrap m-full-width">
<i class="icon-phone"></i>
<input class="field-phone" type="tel" placeholder="Телефон (*)" name="phone" data-content="" value="" required style="background:#fff;">
</div> |
php | else
{
$this->db->insert('eventos', $eventos);
}
$name=$eventos['foto'];
if($_FILES['foto']['error']==0)
{
move_uploaded_file($_FILES['foto']['tmp_name'],"imagenes/{$name}");
}
$link = base_url('eventos'); |
php | if (sizeof($adAttributeNameBuffer) <= 0) {
$adAttributeNameBuffer[$settings[0]] = true;
continue;
}
if (isset($adAttributeNameBuffer[$settings[0]])) {
return true;
}
$adAttributeNameBuffer[$settings[0]] = true;
}
|
php |
namespace Tests\Stubs;
class ApiPaginate extends \Illuminate\Database\Eloquent\Model
{
use \Media24si\Utilities\Scopes\ApiPaginate;
public function hydrate()
{
return collect(['item3', 'item4']);
}
} |
php | }
}
public function scopeStatistical()
{
return $this->where('status', 3)->sum('price');
}
public function payments(){
return $this->hasOne(Payments::class, 'order_id', 'id');
}
}
|
php | </div><div class="form-group">
<label class="control-label col-md-3">Product Quantity</label>
<div class="col-md-9">
<input type="number" class="form-control" name="product_quantity" />
<span class="text-danger">{{$errors->has('product_quantity') ? $errors->first('product_quantity') : ' '}}</span>
</div>
</div> |
php | <section class="main-sections">
<h2>Succès</h2>
<p><b><?= $title ?? 'Modification des rendez-vous';?></b></p>
<p>
<a href="<?php echo base_url('appointments/listAppointments') ;?>">Voir les rendez-vous</a>
</p>
<p>
<a href="<?php echo base_url('appointments/create') ;?>">Créer un nouveau rendez-vous</a>
</p>
</section> |
php | /**
* Store a newly created resource in storage.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public function store(Request $request)
{
if($request->ajax()){
$equipament = new Equipament();
|
php | <h6 align="center"><strong>Liste des Agences</strong></h6>
<br>
<!-- Table row -->
<div class="row">
<div class="col-12 table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th>NomAgence</th>
<th>Adresse</th>
<th>Numero de Téléphone</th>
<th>Email</th>
<th>Site Web</th>
</tr> |
php | <?php
/**
* Notes:
* User: shyir
* DateTime: 2021/11/6 16:43
*/
$api = app ('Dingo\Api\Routing\Router');
$api->version ('v1', function ($api) {
$api->group ([ 'prefix' => 'qiniu' ], function ($api){
// 创建一个文件(包含路径)create a file
$api->post('createFile', '\App\Http\Controllers\v1\Qiniu\FileController@createFile');
// 检查文件是否存在 check if a file exists
$api->get('fileExists', '\App\Http\Controllers\v1\Qiniu\FileController@fileExists');
// 获取文档的最后修改时间 get timestamp
$api->get('lastModified', '\App\Http\Controllers\v1\Qiniu\FileController@lastModified'); |
php |
trait AnswerPresenter
{
// ACCESORS
public function getCreatedDateAttribute() |
php | <div class="form-group">
<label for="name" class="col-sm-3 control-label">Nome do Evento*</label>
<div class="col-sm-4">
<input type="text" required="required" name="name" class="form-control" id="name" placeholder="Nome do Evento">
</div>
<div class="col-sm-5"></div>
</div>
<div class="form-group">
<label for="caption" class="col-sm-3 control-label">Subtitulo do Evento</label> |
Subsets and Splits