lang
stringclasses
10 values
seed
stringlengths
5
2.12k
php
</div> </div> </div> <div class="row"> <div class="col-xs-12 col-sm-12 col-md-12"> <div class="form-group">
php
@section('content') {{-- <h1>Edit infomation</h1> --}} <p> This is edit page</p> {!! Form::open(['action' => ['App\Http\Controllers\MessagesController@update', $message->id], 'method' => 'POST']) !!} {{ csrf_field() }} <div class="form-group"> {{Form::label('content', 'content')}} {{Form::tex...
php
*/ public static function create($modelAlias = null, Criteria $criteria = null) { if ($criteria instanceof ChildPrestamoQuery) { return $criteria;
php
protected $itemsPerPage = 10; public function __construct()
php
{ $code = $this->faker->ean13(); self::assertMatchesRegularExpression('/^\d{13}$/i', $code); self::assertTrue(Ean::isValid($code)); } public function testIsbn10(): void { $code = $this->faker->isbn10(); self::assertMatchesRegularExpression('/^\d{9}[0-9X]$/i', $co...
php
use OpenApi\Attributes\OpenApiAttributeInterface; use Psr\Log\LoggerInterface; use Psr\Log\NullLogger; class MapperSerializer extends DefaultSerializer {
php
} } public function executeTags(){ if(in_array($this->template->getFileInfo()["extension"], $this->template->getAllowedExtensionsForTags())){ $this->getTags($this->dom); }
php
<ul> <li><a href="/medicine" target="contentFrame"><label>Medicine List</label></a></li><br><br> <li><a href="/cart" target="contentFrame"><label>cart</label></a></li><br><br> <li><a href="/blacklisted" target="contentFrame"><label>Black Listed Drugs</label></a></li><br><br> </u...
php
ModelElementInstanceImpl, ModelTypeInstanceContext }; use BpmPlatform\Model\Xml\Type\ModelTypeInstanceProviderInterface; use Tests\Xml\TestModel\TestModelConstants;
php
/** * Get the specified number of random bytes using Windows' * randomness source via a COM object previously created by UUID::initRandom(). * Randomness is returned as a string of bytes. * * Straight binary mysteriously doesn't work, hence the base64 * * @param int $bytes * ...
php
<?php class Form extends CI_Controller { public function __construct()
php
*/ protected $table = 'terms_conditions'; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = ['is_active']; /** * Relationship with the App\Models\Company model. * * @return Illuminate\Database\Eloquent\Relations\hasMany
php
<?php return [ 'loadFail' => 'Error loading file {0}: {1}', 'missingClass' => 'Could not locate {1} in {0}', 'invalidFormat' => 'Required properties missing from class: {0}', ];
php
}', 'type' => 'select_dropdown', 'order' => 9, 'group' => 'Auth', ), 12 => array ( 'id' => 15, 'key' => 'auth.verify_email', 'display_name' => 'Verify Email during Sign Up', ...
php
<?php $this->load->view('templates/head'); ?> </head> <body class="auth"> <div id="infoMessage"><?php echo $message;?></div> <div class="container text-center"> <div class="main_container"> <h1><?php echo lang('forgot_password_heading');?></h1> <div class="form-login"> ...
php
* @param int $n - number of model form. */ public function copyModel(int $n = -1): void { if ($n === -1) { $selector = "div.item:last-child button[class*='copy']"; } else { $selector = "div.item:nth-child($n) button[class*='copy']"; } $this->clic...
php
/** * @param int|string $name * * @return PHPNamespace */ public function buildNamespace($name = PHPNamespace::NO_NAMESPACE); /** * @param string $name *
php
->add('codigo') ->add('descripcion') ->add('tipo', "entity", array( 'class' => 'MagypRendicionDeCajaBundle:ImputacionTipo', 'property' => 'nombre', 'label' => 'Tipo', )) ; } public function setDefaultOptions(OptionsResolverInt...
php
@else {!! Form::open(array('url' => URL::to('admin/staff'), 'method' => 'post', 'class' => 'bf','id'=>'fupload', 'files'=> true)) !!} @endif <!-- Tabs Content --> <div class="tab-content"> <!-- General tab --> <div class="tab-pane active" id="tab-general"> <div cl...
php
<?php if(isset($_POST['edit_submit'])){ file_put_contents('templates/modules/main/text.tpl', $_POST['html']); header('Location: /main/'); exit; }else{ $_POST['html'] = file_get_contents('templates/modules/main/text.tpl'); } ?>
php
class Home extends BaseController { public function index() {
php
<?php final class GPURLControllerHandler extends GPURIControllerHandler { public function handle($method, array $args) { return GPConfig::get()->domain.parent::handle($method, $args); } }
php
<gh_stars>0 <?php namespace App\Models; use Illuminate\Database\Eloquent\Model;
php
{{-- if parent category selected --}} @if ($category->slug == $categoryRoot->slug) {{ $categoryRoot->title }} @else {{-- if sub category selected --}} <a href="{{ route('blog.p...
php
<br> {!! Form::label('body', 'Body:') !!} {!! Form::textarea('body') !!} <br> {!! Form::submit('Guardar') !!} {!! Form::close() !!}
php
} DB::commit(); return response()->json(['temperature' => $temp, 'tracks' => $songs], 200);
php
* @inheritdoc */ public static function tableName() { return 'attachment'; } /** * @inheritdoc */ public function rules() { return [ [['filename', 'path', 'filesize', 'entityID'], 'required'],
php
</div> </div> </div> <div class="footer"> <div class="footer-inner"> <!-- #section:basics/footer --> <div class="footer-content"> <span class="bigger-120">
php
@extends('layouts.main') @section('content') <section> <x-main-carousel /> </section> @endsection
php
| routes are loaded by the RouteServiceProvider within a group which | contains the "web" middleware group. Now create something great! | */ /* * Home Page */ Route::get('/', [WelcomeController::class, 'index'])->name('welcome'); /* * Shop */ Route::name('shop.')->prefix('shop')->group(function() { Route::get(...
php
namespace RectorPrefix20210904\TYPO3Fluid\Fluid\Core\ViewHelper; if (\class_exists('TYPO3Fluid\\Fluid\\Core\\ViewHelper\\AbstractTagBasedViewHelper')) { return; } abstract class AbstractTagBasedViewHelper extends \RectorPrefix20210904\TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper {
php
<script> window.cookieLaw = (function() { function acceptCookies() { var date = new Date(); date.setTime(date.getTime() + ({{ Config::get('cookie-law::cookie-law.cookie_lifetime') }} * 24 * 60 * 60 * 1000)); document.cookie = '{{ Config::get('cookie-law::cookie-law.cookie_name') }}=1; ' + 'expires=' ...
php
} /** * Thrown when the button type is "web_url" but the url is not provided. * * @return static */
php
'token' => $token ]); } public function user() { $token = JWTAuth::fromUser(auth()->user()); return response()->json([ 'token' => $token ]);
php
final class DummySynchronousIncompatibleTransport implements Transport { public function send(object $payload): ?RawResult { return null; } }
php
* */ namespace A3App; use A3; class A3Redirect{ private $url = ''; private $isA3Request = false; private $code = 302; private $a3Request; private $a3RequestReplace;
php
if (!$fp) { echo "$errstr ($errno)<br />\n"; } else { fwrite($fp, "GET / HTTP/1.0\r\nHost: www.baidu.com\r\nAccept: */*\r\n\r\n"); while (!feof($fp)) { echo fgets($fp, 1024);
php
Category::create([ 'title_plural' => 'Familias', 'title_singular' => 'Familia', 'alt' => 'Fotografias de Familias realizadas por tufoto.co', 'url' => 'familias' ]); Category::create([ 'title_plural' => 'Mascotas',
php
@if (Auth::user() && Auth::user()->can('manage_admin')) <a href="/admin"> {{ trans('kotoba::general.administration') }} </a> &nbsp;&copy;&nbsp;2015-2016 @else <a href="/"> ...
php
use Illuminate\Database\Eloquent\Model; class VisitorOrder extends Model { use HasFactory; public function details() { return $this->hasMany('App\Models\VisitorOrderDetail', 'order_id'); } public function user() { return $this->belongsTo('App\Models\User', 'user_id');
php
<?php if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true) { die(); } return [ 'js' => 'dist/connector.intranet.bundle.js', 'lang' => '/bitrix/modules/landing/lang/' . LANGUAGE_ID . '/js/connector/intranet.php', 'rel' => [ 'main.polyfill.core', 'landing.loc', 'ui.dialogs.messagebox', ],
php
{ public function __construct( private Expr $callerExpr, private string $class, private Expr $method ) { } public function getClass(): string
php
<?php namespace Learnph\Tests; use League\FactoryMuffin\Faker\Facade as Faker; $fm->define('MicheleAngioni\PhalconAuth\Tests\Users')->setDefinitions([ 'confirmation_code' => Faker::md5(),
php
<link href="{{asset('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&display=swap')}}" rel="stylesheet"> <link href="{{asset('https://fonts.googleapis.com/css2?family=Open%20Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900...
php
$article_json = getArticleJSON($article_srl); // off ready file data $thumbnail_srl = translateFileData($post, $article_srl, $article_json['thumbnail']['srl']); // upload thumbnail image
php
namespace Doctrine\Tests\ORM\Functional\Ticket; require_once __DIR__ . '/../../../TestInit.php'; class DDC512Test extends \Doctrine\Tests\OrmFunctionalTestCase
php
<div class="w-full md:w-1/2 p-8 mb-4 md:mb-0 md:border-l"> <h3 class="text-5xl font-heading">$49 / mo</h3> <p class="mt-4 mb-6 text-gray-500 leading-relaxed">That’s what we’re talking about! More reams of paper is a really reamful choice. The best combination of q...
php
*/ public function testParseGlobalObjectId() { // Outlook UID $fixture = 'BAAAAIIA4AB0xbcQGoLgCAfUCRDgQMnBJoXEAQAAAAAAAAAAEAAAAAvw7UtuTulOnjnjhns3jvM='; $uid = Horde_Mapi::getUidFromGoid($fixture); $this->assertEquals( '040000008200E00074C5B7101A82E00800000000E040C...
php
</div> {{-- --------------------------------------------------------------------------------------------------------------------------- --}} <div class="col-3"> <select name="dia_reparto" class="form-select"> <option selected v...
php
return $this->db->table($this->table)->where(['id_buku'=>$id])->get()->getResultObject(); endif; } public function getCategoryBuku()
php
namespace App; use Illuminate\Database\Eloquent\Model; class ProjectSiteChecklistCheckpointImages extends Model { protected $table = 'project_site_checklist_checkpoint_images'; protected $fillable = ['project_site_checklist_checkpoint_id','caption','is_required']; public function projectSiteChecklistChe...
php
<link rel="stylesheet" href="../../AdminLTE-2.4.5/dist/css/skins/_all-skins.min.css"> <!-- jvectormap --> <link rel="stylesheet" href="../../AdminLTE-2.4.5/bower_components/jvectormap/jquery-jvectormap.css"> <!-- DataTables --> <link rel="stylesheet" href="../../AdminLTE-2.4.5/bower_components/datatables....
php
namespace GoogleChartGenerator\Chart; use GoogleChartGenerator\Chart\AbstractChartTestCase; abstract class AbstractAxisChartTestCase extends AbstractChartTestCase {
php
<?php namespace Studio\Creator; use Studio\Shell\Shell; class GitSubmoduleCreator extends GitRepoCreator
php
interface ContractEngine extends \Illuminate\Contracts\View\Engine {} } else { interface ContractEngine extends \Repack\View\Engine {} }
php
exit(); } $data = array( 'status' => 200, 'message' => $result
php
* @param string $key1 文件名 */ public function Copy($bucket, $key, $bucket1, $key1){ $uri = self::get_RS_URICopy($bucket, $key, $bucket1, $key1); parent::callNoRet($this->ApiBase . $uri); } /** * 资源删除
php
use HasFactory; protected $table = 'sop'; protected $fillable = [ 'sop_nama', 'estimasi_panen', 'deskripsi', 'foto', 'kalkulasi_waktu_panen', 'kalkulasi_bobot_panen', 'jenis_komoditas_id' ];
php
<button type="submit" class="btn btn-primary">Add To Cart</button> </div> </form> </td> </tr>
php
| routes are loaded by the RouteServiceProvider within a group which | contains the "web" middleware group. Now create something great! | */ Route::get('/', function () { return view('welcome'); }); Route::get('index',['as'=>'trang-chu','uses'=>'PageController@getIndex']); Route::get('loai-sp/{loai}', ['as'=>'loa...
php
--> </tbody> </table> <?php }?> </div> </div> </div> </div> </div> ...
php
]; public function document_type() { return $this->belongsTo(DocumentType::class,'type_id'); } public function document_file()
php
while ( $blockStart <= $end ) { $this->output( "...doing rev_id from $blockStart to $blockEnd\n" ); $cond = "rev_id BETWEEN $blockStart AND $blockEnd"; $res = $db->select( 'revision', [ 'rev_id', 'rev_page', 'rev_timestamp', 'rev_parent_id' ], [ $cond, 'rev_parent_id' => null ], __METHOD__ ); # Go...
php
$Date: 2007/08/06 09:54:48 $ */ if(!defined('IN_DISCUZ')) { exit('Access Denied'); } if(empty($srchtxt) && empty($srchuname)) { showmessage('search_invalid', 'search.php'); } $keywordlist = ''; foreach(explode("\n", trim($qihoo_keyword)) as $key => $keyword) { $keywordlist .= $comma.trim($keyword); $comma = '|';
php
<td>分类描述</td> <td>操作</td> </tr> @foreach($res as $k=>$v) <tr> <td>{{$v->cate_id}}</td>
php
</span> @enderror <!-- /.col --> <div class="col-4"> <button type="submit" class="btn btn-primary btn-block">Register</button> </div>
php
@empty <div class="card text-center text-danger">Sorry, You have Nothing to Show !</div> @endforelse @endif </div>
php
/** * EnterpriseCommonPhoneListGetListResponse * * Response to the EnterpriseCommonPhoneListGetListRequest. * The response contains the enterprise's common phone list. * * @see EnterpriseCommonPhoneListGetListRequest * @Groups [{"id":"5395c7df0157d44aa22f3351d1a5f3da:476","type":"sequence"}] */ class En...
php
$lang['upload_button'] = 'Încărca fișiere'; $lang['upload-drop-area'] = 'Trageți fișierele aici pentru a încărca'; $lang['upload-cancel'] = 'Anuleaza'; $lang['upload-failed'] = 'Încărcare eșuată'; $lang['loading'] = 'Se încarcă... Vă rugăm să așteptați...'; $lang['deleting'] = 'Se Şterge... Vă rugăm să așteptați...'; ...
php
for(var i=0;i<input.length;i++) { if(isNaN(input[i])){ continue; } total += Number(input[i]); } ...
php
{ $key = ucwords(str_replace('_', ' ', $key)); ?> <tr> <td><?php echo $key; ?></td> <td><?php echo $value; ?></td> </tr> <?php }
php
declare(strict_types=1); namespace App\Application\Navigation; use App\Domain\Navigation\NavigationSection; use App\Domain\Navigation\RoleBasedAccessibilityInterface; use App\Domain\Navigation\RouteAwareInterface;
php
style="width:70% !important;">Reset Password</button> </form> </div> </div> </div> </div> </section> <!-- .section -->
php
return new ColumnField('userId', 'UserActivation', 'useractivation', 'userid', $this->getAliasName()); } public function dateLine() : ColumnField { return new ColumnField('dateLine', 'UserActivation', 'useractivation', 'dateline', $this->getAliasName()); } public function activationI...
php
$validator = static::makeValidator($config, [ 'domain' => 'required', 'key' => 'required' ], $create); if ($validator->fails()) { $messages = $validator->messages()->getMessages(); throw new BadRequestException('Validation failed.', null, null,...
php
@endpush <div class="form-group"> <label class="col-md-2 control-label" for="name"> {{ __('Produto') }} </label> <div class="col-md-8"> <select name="product_id" id="product_id" class="form-control select2"> <option>Selecione...</option> @php /** @var $product \App\Models\Produc...
php
<?= $this->element('menubar'); ?> <!-- /MENU BAR --> <!-- CONTENT --> <div id="content" data-uk-height-viewport="expand: true"> <div class="uk-container uk-container-expand"> <div class="ui secondary pointing menu"> <?php $lastitem = array_...
php
str_repeat(' ', (int)ceil($missingSpaceLengthHalf)), ]; } return $spacesMap; } /**
php
{ public function __invoke(ContainerInterface $container) { $navManager = $container->get(AdminNavManager::class); $authService = $container->get(AuthenticationService::class); // Get menu items.
php
x1: 0, y1: 0, x2: 0, y2: 1 }, stops: [ [0, Highcharts.getOptions().colors[0]], ...
php
* @return void */ public function register() { if (is_dir($vendor = __DIR__ . '/../vendor')) {
php
{ // import the module-level models and components $this->setImport(array( 'api.components.*', )); Yii::app()->log->routes[0]->enabled = false; Yii::app()->setComponents(array( 'errorHandler' => array( 'errorAction' => 'api/default/error', )
php
return $query->result(); //} } public function get_productimages($id=0) { $this->db->select('image_path,product_id'); $this->db->from('product_images'); if(isset($id) && $id>0){ $this->db->where('product_id', $id); } ...
php
{ return [ 'success' => false, 'message' => 'Could`nt find marketing', ]; } $this->model->destroy($id); return [ 'success' => true, 'message' => 'Deleted successfully...
php
* http://developers.facebook.com/thrift/ * * @package thrift.transport */ interface TTransportSupportsHeaders { public function setHeader(string $str_key, @string $str_value): this; public function setPersistentHeader( string $str_key, @string $str_value, ): this; public function getWriteHeaders(): Key...
php
// line 3 public function block_content($context, array $blocks = array()) { // line 5 echo "<div class=\"banner_1\"> "; // line 6 echo twig_include($this->env, $context, "HomeBundle::HomePage/search_form_single.html.twig"); echo " </div>\t <div class=\"containe...
php
*/ namespace protocolbuffers; use google\protobuf\compiler\CodeGeneratorResponse; class GeneratorContext { protected $response; protected $contexts = array(); public function __construct(CodeGeneratorResponse $response) { $this->response = $response;
php
if(function_exists("smile_framework_add_options")){ $cp_settings = get_option('convert_plug_settings'); $user_inactivity = isset( $cp_settings['user_inactivity'] ) ? $cp_settings['user_inactivity'] : '3000'; $style = isset( $_GET['style'] ) ? $_GET['style'] : ''; smile_framework_add_options('Smile_Modals',"inst...
php
</div> <div class="form-group row"> <div class="col-sm-4"> <label for="productImg">Product Image</label> <input type="file" onchange="previewFile()" class="form-control-file product_img" name="product_img" id="product_img"> ...
php
namespace TATravel; use Illuminate\Database\Eloquent\Model; class Supir extends BaseModel {
php
DB::table('post_status')->insert([ ['title' => 'hide'], ['title' => 'visible'] ]);
php
use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; class ConnectionRegistryCompilerPass implements CompilerPassInterface { public function process(ContainerBuilder $container)
php
*/ public function getUpdatedAt(): int { return $this->updatedAt; } /** * @param int $updatedAt * * @return UserDto */ public function setUpdatedAt(int $updatedAt): UserDto {
php
*/ public function getDunningCycles(): array { return $this->_dunning_cycles ?? [] ; } /** * Setter method for the dunning_cycles attribute. * * @param array $dunning_cycles * * @return void
php
</ul> </div> @endif <form action="{{route('admin.update_working_day')}}" method="POST" enctype="multipart/form-data"> @csrf <div class="row">
php
* * views/customer/index.php * * Used to show how to do CRUD in CodeIgniter * * @package ITC260 * @subpackage Customer * @author <NAME> <<EMAIL>> * @version 1.0 2015/04/30
php
<th>' . $menu->updated_at . '</th> <th>&nbsp;</th> </tr> '; unset($menus[$key]);
php
use App\PublicKeyCredentialCreationOptionsStore; use App\Repository\UserRepository; use App\Service\ClientMetadataService; use Psr\Log\LoggerInterface; use Surfnet\GsspBundle\Service\RegistrationService; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\Routing\Annotation\Route; us...
php
{"data" : "driver_working_name", "searchable": false, "sortable": false}, {"data" : "price_structure_name", "name":"price_structure.price_structure_name"}, {"data" : "price_structure_name", "name":"price_structure.price_structure_name"}, { ...
php
</td> </tr> <tr> <td valign="top">2.</td> <td align="left" style="text-align: justify; text-justify:inter-word;"> If there are 2 (two) varians on your question, you may continue your next qu...