lang
stringclasses
10 values
seed
stringlengths
5
2.12k
php
/** * Aphiria * * @link https://www.aphiria.com * @copyright Copyright (C) 2022 <NAME> * @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md */ declare(strict_types=1); namespace Aphiria\Routing\Matchers; /** * Defines the interface for route matchers to implement
php
/** * Validation Custom Messages * * @var array */ protected $messages = array();
php
int $qtdLances, Leilao $leilao, array $valores ) { static::assertCount($qtdLances, $leilao->getLances()); foreach ($valores as $index => $valorEsperado) {
php
<div id='checkbox_container' class='level-center'>"; $catids = genrelist(true); if ($CURUSER['opt2'] & user_options_2::BROWSE_ICONS) { foreach ($catids as $cat) { $text .= " <span class='margin10 mw-50 is-flex bg-02 round10 tooltipper' title='" . htmlsafechars($cat['name']) . "'> <span class='bordered level-center'> <input type='checkbox' name='cats[]' id='cat_" . (int) $cat['id'] . "' value='" . (int) $cat['id'] . "'>
php
}); </script> <script> ClassicEditor .create(document.querySelector('#editor1'), { // toolbar: [ 'heading', '|', 'bold', 'italic', 'link' ] }) .then(editor => { window.editor = editor; }) .catch(err => { console.error(err.stack); });
php
namespace App; use Illuminate\Database\Eloquent\Model; use Spatie\Permission\Traits\HasRoles; #use App\Scopes\QueryScope; class Info extends Model { protected $table = 'info';
php
<td><a href="users/{{$user->id}}/edit" class="btn btn-warning">EDIT</a> {!!Form::open(['action' => ['UsersController@destroy', $user->id], 'class' => 'btn', 'method' => 'POST', 'onsubmit' => 'return confirm("Sunteti sigur ca vreti sa stergeti acest profesor din baza de date?")'])!!} {{Form::hidden('_method', 'DELETE')}} {{Form::bsSubmit('Sterge profesor', ['class' => 'btn btn-danger'])}} {!!Form::close()!!} </td> </tr> @endforeach @endif
php
<?php namespace Army; class ArcherForge extends Forge { public function createWarrior(): Warrior { $archer = new Archer(); return $archer; } }
php
}); // Rutas para Operativos Route::group(['middleware' => ['permission:sanciones|operativos|universal']], function () { Route::group(['middleware' => ['operativos']], function () { Route::get('/operativos', 'OperativosController@index')->name('operativos');
php
*/ protected $indexBannerService; /** * @var CourseService
php
use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class Columns extends Migration {
php
padding-bottom: 3rem !important; } .pt-5, .py-5 { padding-top: 3rem !important; } .pl-2, .px-2 { padding-left: .5rem !important; } .pr-2, .px-2 { padding-right: .5rem !important; } .mb-4, .my-4 { margin-bottom: 1.5rem !important; } .shadow {
php
<div class="row"> <button type="submit" class="buttons">Create</button> </div> @include('admin.layouts.errors') </form>
php
{ preg_match_all ("/\[pw\](.*)\[\/pw\]/U", $this->content, $contents); $replace = []; foreach ($contents[1] as $v) { $vs = explode('|', $v);
php
//var_dump($name); //return response()->json($name); return $name; }); // Route::get('/users/{id}', function ($id) { // return 'User '.$id; // }); // Route::get('/posts/{post}/comments/{comment}', function ($postId, $commentId) { // return "Post ".$postId." ".$commentId; // }); // Route::get('/users/{name?}', function ($name = null) { // return $name; // }); //Route::redirect('/here', '/there', 301); // Route::get('/user/{id}', function ($id) {
php
$result = $db->select("SELECT * FROM users WHERE login='".$_POST['login']."'"); foreach ($result as $key) if ((hash('sha256', $_POST['password'])==$key['password'])&&($_POST['login']==$key['login'])) $_SESSION['log']="true"; $_SESSION['enter']=intval($key['rights']); header("Location:/"); } //} }
php
$query .= "MAX(item_id) AS DernBillet, "; $query .= "CONCAT(PERS.firstname, ' ', UPPER(PERS.lastname)) AS quat, "; $query .= "IF(MIN(HIST.action_id) IS NULL, '' ,MIN(HIST.action_id)) AS BilletMINcomm, "; $query .= "IF(MAX(HIST.action_id) IS NULL, '', MAX(HIST.action_id)) AS BilletMAXcomm, "; $query .= "MAX(HIST.created_at) AS Derniere, "; $query .= "ACTI.description, "; $query .= "'' AS cinq, "; $query .= "1 as status "; $query .= "FROM users_activity AS HIST "; $query .= "LEFT JOIN activity AS ACTI ON ACTI.id = HIST.type_id ";
php
* @return array * * @see pm_View_List_Simple::setColumns() */ public function getColumns($controller, $action, $activeList) { } }
php
// fazer um preg_match e guardar em $matches $matches = []; preg_match_all($text, $page, $matches); // Quantidade de estrelas e o nome do repositório $stars = []; foreach ($matches[0] as $key => $value){ // pega a posição do elemento mais próximo, que nesse caso é esse svg aí... $svg_pos = strpos($value, '<svg aria-label="star" role="img" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-star"> <path fill-rule="evenodd" d="M8 .25a.75.75 0 01.673.418l1.882 3.815 4.21.612a.75.75 0 01.416 1.279l-3.046 2.97.719 4.192a.75.75 0 01-1.088.791L8 12.347l-3.766 1.98a.75.75 0 01-1.088-.79l.72-4.194L.818 6.374a.75.75 0 01.416-1.28l4.21-.611L7.327.668A.75.75 0 018 .25zm0 2.445L6.615 5.5a.75.75 0 01-.564.41l-3.097.45 2.24 2.184a.75.75 0 01.216.664l-.528 3.084 2.769-1.456a.75.75 0 01.698 0l2.77 1.456-.53-3.084a.75.75 0 01.216-.664l2.24-2.183-3.096-.45a.75.75 0 01-.564-.41L8 2.694v.001z"></path>
php
.bottom-mobile footer h2 { margin-top: 20px; margin-bottom: 5px; }
php
if ($type == 'header_auth') { $header_auth_token_str = 'token:' . $header_auth_token; curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json', 'Accept:application/json', $header_auth_token_str)); }
php
<?php namespace Netesy\Tracker\Data\Repositories; class SqlQueryBinding extends Repository {
php
<?php namespace App\Http\Controllers; class ContactController extends Controller { // }
php
<section class="content"> <div class="row" style="margin-bottom:5px;"> <div class="col-md-3"> <div class="sm-st clearfix"> <span class="sm-st-icon st-red"><i class="fa fa-check-square-o"></i></span> <div class="sm-st-info"> <span>{{count($data)}}</span> Loại Sản Phẩm
php
<button type="submit" class="btn btn-primary">Cetak</button> </form> </div> </div> </div> <footer class="sticky-footer bg-white"> <div class="container my-auto"> <div class="copyright text-center my-auto"> <span>Copyright &copy; Your Website 2019</span> </div> </div> </footer> <!-- End of Footer --> </div>
php
"vAccessTitle" => "店家自營商" ], [ "iLevel" => 5, "vAgentCode" => "PTW10001", "iAcType" => 5, "vAccessTitle" => "合作廠商" ], [ "iLevel" => 6, "vAgentCode" => "PTW10001", "iAcType" => 6, "vAccessTitle" => "供貨供應商"
php
<?php $conexion = mysqli_connect("localhost","root","","observatoriouab"); $query = $conexion->query("SELECT DISTINCT uf_polos FROM polos"); echo '<option value="0">Selecione um estado ... </option>'; while ( $row = $query->fetch_assoc() ){
php
<?php namespace App; use Illuminate\Database\Eloquent\Model;
php
<!DOCTYPE html> <html lang="<?php echo $lang['langcode'] ?>"> <head> <meta charset="utf-8"> <title>RACHEL - <?php echo $lang['home'] ?></title> <link rel="stylesheet" href="/css/normalize-1.1.3.css"> <link rel="stylesheet" href="/css/style.css"> <link rel="stylesheet" href="/css/ui-lightness/jquery-ui-1.10.4.custom.min.css"> <script src="/js/jquery-1.10.2.min.js"></script>
php
echo "alert('WRONG INFORMATION')"; echo "</script>"; die(); } } else { if(($_SESSION['timeOfBan'] - date('h:i') > date('H:30')){ $_SESSION['timeOfBan'] = date('H:i'); $_SESSION['isBlocked'] = false; $_SESSION['attempts'] = 0; } header("Location: sorry.php"); } } }
php
'pdf.menu' => 'pdf/karakala-carta-2019-castellano.pdf', 'pdf.wine' => 'pdf/karakala-carta-vinos-2019-castellano.pdf', 'pdf.christmas' => 'pdf/menu-navidad-karakala-2018.pdf' ];
php
*/ 'username' => env('VALUTORPC_USER', "valutorpc"), /** * Password */
php
use PDF; class PdfGenerateController extends Controller {
php
<?php namespace AndrewSvirin\Ebics\Exceptions; final class SignatureEbicsException extends EbicsException { }
php
public function testGetPropertiesWithObjectClassResolver(): void { $object = new \stdClass(); $classResolver = function ($objectArg) use ($object): string { $this->assertSame($object, $objectArg); return 'foo'; };
php
@section('css') <link rel="stylesheet" href="{{ asset('css/rotacion.css') }}"> @endsection @section('scriptHeader') <script src="{{ asset('js/Chart.min.js') }}"></script> @endsection @section('contenido') <div class="content"> <h1 class="title-inform">Informe de ingresos</h1>
php
font-size: 18px; } .trace { position: relative; width: 500px; height: 25px; background-color: rgba(64,64,64,.5); border: 1px dotted black; padding: 10px;
php
break; case '308000' : foreach ( $result ['list'] as $info ) { $articles [] = array ( 'Title' => $info ['name'], 'Description' => $info ['info'],
php
use App\User; use Illuminate\Support\Facades\Auth; use Modules\Booking\Models\Payment; class Transaction extends \Bavix\Wallet\Models\Transaction { public function payment(){ return $this->belongsTo(Payment::class,'payment_id')->withDefault(); }
php
'request' => [ 'name_required' => 'Name is required', ], ], 'form' => [ 'help_block' => 'Property feature information', 'name' => 'Title', ], ];
php
$m_100full = "100 Mbps en mode bidirectionnel simultané"; $m_100half = "100 Mbps en mode bidirectionnel non simultané"; $m_10full = "10 Mbps en mode bidirectionnel simultané"; $m_10half = "10 Mbps en mode bidirectionnel non simultané"; $m_more_info = "Pour en savoir plus"; $m_ping = "Ping"; $m_ping_passed = "Réussi"; $m_ping_failed = "Délai expiré"; $m_refreshing = "Actualisation en cours..."; $m_pinging = "Test ping en cours..."; $a_empty_ip_addr = "Saisissez un nom d'hôte ou une adresse IP";
php
/** * @inheritdoc */ public static function tableName() { return 'desc_network'; }
php
use Yii; use yii\helpers\Html; use yii\widgets\ActiveField; /** * Class AdvancedSearchActiveField * * @author <NAME> <<EMAIL>> */
php
<div class="col-sm-2"> <?php if($id!="0") { foreach($departement as $m): echo '<input type="text" id="kode" name="kode" value="'.$m["kode"].'">'; endforeach; } else{ echo '<input type="text" id="kode" name="kode" >'; }
php
* to lower case. * * @category String * * @param string $string The string to capitalize.
php
<h2>Preencha os campos:</h2> </div> <div> <label for="user">Usuário:</label> <input type="text" id="user" name="user"> </div> <div> <label for="senha">Senha:</label> <input type="password" id="senha" name="senha"> </div> <div> <label for="confirmsenha">Digite a senha novamente:</label> <input type="password" id="<PASSWORD>irmsenha" name="<PASSWORD>irmsenha"> </div>
php
$request->session()->flush(); return redirect()->route('auth.login'); } else { Auth::logout(); $request->session()->flush(); return redirect()->route('tpshop.index.index'); } }
php
* * @param Request $request * @param int $storeId * @return Response */ public function update(Request $request, $storeId, $jobOrderId) { // only status and remarks are updatable $jobOrder = JobOrder::find($jobOrderId); if (!$jobOrder) { return response("Job order {$jobOrderId} not found", 404); } try {
php
use Contus\Payment\Repositories\TransactionRepository; use Contus\Payment\Models\PaymentTransactions; class PaymentController extends BaseController { /** * Construct method */ public function __construct(PaymentRepository $paymentRepository, TransactionRepository $transactionHistory) {
php
</div> </a> </div> <?php } ?> </div> </div> </section> <?php } ?> <?php } else {?> <section class="country text-center nocont-page"> <div class="container"> <div class="row">
php
<?php /** * Created by PhpStorm. * User: karlpineau * Date: 02/12/2016 * Time: 10:34 */ header("content-type:application/json"); $movies = json_decode(@file_get_contents('http://zone47.com/tda/api/'));
php
<?php include "../config/config.php"; include "../lib/database.php"; $m = new Database(); $sql = "SELECT hoadon.id,DATE_FORMAT(thoigianden, '%d/%m/%Y %H:%i') AS thoigianden,DATE_FORMAT(thoigiandi, '%d/%m/%Y %H:%i') AS thoigiandi,thanhtien,CONCAT(tenban,' - ',tenkhuvuc) as tenban,nhanvien FROM hoadon,ban,khuvuc WHERE hoadon.idban = ban.id AND ban.idkhuvuc = khuvuc.id ORDER BY hoadon.id DESC"; $result = $m->Executequery($sql);
php
<?php /** * @package OnlinePublisher * @subpackage Templates.Calendar */ require_once '../../../Include/Private.php'; $id = Request::getId(); if ($row = CalendarTemplateController::load($id)) { Response::sendObject($row); } else { Response::notFound(); } ?>
php
<div class="dropdown-menu col-8 col-md-12" aria-labelledby="dropdownMenuLink"> <a class="dropdown-item" href="<?php echo base_url().'staff/reportCashIn' ?>">Cash In</a> <a class="dropdown-item" href="<?php echo base_url().'staff/reportCashOut' ?>">Cash Out</a> <!-- <a class="dropdown-item" href="<?php echo base_url().'staff/reportOrder' ?>">Order</a> <a class="dropdown-item" href="<?php echo base_url().'staff/reportInvoice' ?>">Invoice</a> <a class="dropdown-item" href="<?php echo base_url().'staff/reportPO' ?>">Purchase Order</a> --> <a class="dropdown-item" href="<?php echo base_url().'staff/reportLR' ?>">Income Statement</a> <a class="dropdown-item" href="<?php echo base_url().'staff/reportCF' ?>">Cash Flow</a> </div> </div> </div> <div class="form-group col-md-3">
php
<label for="password_confirmation" class="sr-only">Password confirmation</label> <input type="password" id="password_confirmation" name="password_confirmation" class="bg-gray-100 border-2 w-full p-4 rounded-lg" placeholder="Password confirmation" value=""> </div> <div class="mb-4"> <label for="avatar" class="sr-only">Profile Pic</label> <input type="file" id="avatar" name="avatar" class="bg-gray-100 border-2 w-full p-4 rounded-lg @error('avatar') border-red-500 @enderror" placeholder="avatar" value=""> @error('avatar') <div class="text-red-500 mt-2 text-sm"> {{ $message }}
php
<p class="noidungchuy"><i>-&ensp;&ensp;Kết quả thi có sau ngày <?php echo date_format(date_create_from_format('Y-m-d', $ngayketqua), 'd/m/Y') ?>.</i></p> <p class="noidungchuy"><i>-&ensp;&ensp;Chứng chỉ Ứng dụng Công nghệ thông tin cơ bản có sau 90 ngày kể từ ngày thi và nhận tại phòng Đào tạo của Trường (mang theo thẻ dự thi khi nhận chứng chỉ). </i></p> </div> </div> <?php ++$stt; } ?> </body> <script type="text/javascript"> window.print();
php
* @param UserRequest $request * @param int $id * @return \Illuminate\Http\RedirectResponse */ public function update(UserRequest $request, $id)
php
// Check if we need to ignore Header if (!isset($this->ignoredHeaders[\strtolower($hName ?? '')])) { if ($headers->has($hName)) { $tmp = $headers->getAll($hName); foreach ($tmp as $header) {
php
<?php namespace App\Http\Controllers; use App\Http\Controllers\Controller; use App\Http\Controllers\HomeController;
php
<?php class AdminTableSeeder extends Seeder { public function run()
php
<?php namespace App\Controller\Admin; use Micro\Application\Controller; class Index extends Controller { protected $scope = 'admin'; public function indexAction()
php
*/ public function getCampaignNegativeKeyword(string $keywordId) { return $this->httpGet("/sp/campaignNegativeKeywords/{$keywordId}"); } /**
php
<?php namespace Aceraven777\PayMaya\Model\Checkout; class Item { public $name; public $code; public $description; public $quantity;
php
/** * @var \Concrete\Package\BaclucC5Crud\Src\Import\ComparisonSet $comparisonset */ $isnewEntry = false;
php
<div class="vtabs"> <ul class="nav nav-tabs tabs-vertical" role="tablist"> <li class="nav-item"> <a class="nav-link active" data-toggle="tab" href="#tramite" role="tab">Tramite</a> </li> <li class="nav-item"> <a class="nav-link" data-toggle="tab" href="#obra" role="tab">Obra</a> </li> <li class="nav-item"> <a class="nav-link" data-toggle="tab" href="#documentacion" role="tab">Documentacion</a> </li> <li class="nav-item"> <a class="nav-link" data-toggle="tab" href="#comision" role="tab">Comision</a> </li> <li class="nav-item"> <a class="nav-link" data-toggle="tab" href="#acta" role="tab">Acta/Informe</a> </li> </ul> <div class="tab-content">
php
use Illuminate\Support\Facades\Route; use App\Http\Controllers\PembayaranController; use App\Http\Controllers\KaryawanController; use App\Http\Controllers\SantriController; use App\Http\Controllers\KelasController; /* |-------------------------------------------------------------------------- | 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
namespace Combyna\Component\Expression\Config\Loader; use Combyna\Component\Bag\Config\Act\ExpressionBagNode; use Combyna\Component\Config\Loader\ConfigParserInterface; use Combyna\Component\Expression\Config\Act\ExpressionNodeInterface; use InvalidArgumentException; /** * Interface ExpressionConfigParserInterface * * Encapsulates parsing data from a config array (eg. from a YAML config file) * * @author <NAME> <<EMAIL>>
php
$config=[ 'project'=>dirname(__DIR__).'/', 'build'=>__DIR__.'/', 'resolvers' => __DIR__ . '/resolvers/', 'vehicles' => __DIR__ . '/vehicles/', 'includes' => __DIR__ . '/includes/',
php
break; case "php": $this->_renderers[$Vxeifmjzikkj] = new PhpEvaluator($this->_canvas); break; case "javascript": $this->_renderers[$Vxeifmjzikkj] = new JavascriptEmbedder($this->_dompdf); break; } }
php
<?php declare(strict_types=1); namespace Formularium\Frontend\Bulma\Renderable; class Renderable_usmall extends Renderable_integer { }
php
'sum' => [ 'script' => [ 'source' => 'doc.price.value', ], ], ], $query->build()); } public function test_it_fail_building_the_aggregation_without_field() { $query = new SumAggregation('sum_price'); $this->expectException(QueryException::class);
php
$counts['processed'] += $counts['added'] = (int)$context->getAddCount(); $counts['processed'] += $counts['updated'] = (int)$context->getUpdateCount(); $counts['processed'] += $counts['deleted'] = (int)$context->getDeleteCount(); $counts['invalid'] = (int)$context->getErrorEntriesCount(); } return $counts;
php
@endif @if(!isset($no_form) or !$no_form) @include('forms.closer') @endif </div> </div> </div>
php
} return $user->getUsername(); } }
php
<div class="layui-input-inline"> <input type="text" id="app" name="app" required="" lay-verify="required" autocomplete="off" class="layui-input" placeholder="请输入应用名称,如:app" value="<?php echo $data['app']; ?>" /> </div> </div> <div class="layui-form-item"> <label for="controller" class="layui-form-label">
php
$this->plugin = $plugin; } public function execute(CommandSender $sender, $label, array $params){ if(!$this->plugin->isEnabled()) return false; if(!$this->testPermission($sender)){ return false; } if($sender instanceof Player){ $point = $this->plugin->myPoint($sender); $sender->sendMessage($this->plugin->getMessage("mypoint-mypoint", [$point])); return true;
php
<div class="pull-right" style="font-weight: bolder; font-size: 16px; margin-right: 3px; margin-top: 3px;"> <table> <td>Total Jam Kerja &nbsp;</td> <td>: &nbsp;</td> <td><?= $total==null?"00:00:00":$total ?></td> </table> </div>
php
return view('admin.posts.edit', $data); } /** * Update the specified resource in storage. *
php
class Lithium implements SessionInterface { const CREATE_SESSION_IF_ABSENT = 0; const IGNORE_SESSION_CREATION = 1; const THROW_ERROR_IF_ABSENT = 2;
php
use Yii; use linslin\yii2\curl; /** * Curl获取微信图片(防盗链地址) * * Class AnalysisController * @package backend\modules\wechat\controllers * @author jianyan74 <<EMAIL>>
php
</div> @endif </div> {{--question_ar--}} <div class="form-group"> <label class="label-control" for="question_ar">@lang('faq.question_ar')</label> <input type="text" id="question_ar" class="form-control" placeholder="@lang('faq.question_ar')" name="question_ar" value="{{ old('question_ar', isset($faq) ? $faq->question_ar : '')}}"> @if ($errors->has('question_ar')) <div class="error" style="color: red"> <i class="fa fa-sm fa-times-circle"></i> {{ $errors->first('question_ar') }}
php
if ($value==null) { // delete the image from disk \Storage::disk($disk)->delete($this->{$attributeName}); // set null in the database column $this->attributes[$attributeName] = ''; } // if a base64 was sent, store it in the db
php
$this->parameters = new Collection(); $this->parameterValidator = new NullValidator(); $this->parameterTransformer = new FlatArrayTransformer(); } public function terms(string $field, array $terms): self {
php
$em->remove($panier); $em->flush(); } return $this->redirectToRoute('panier_index'); }
php
</span> {{ __('Back to list') }} </a> </div> </div> </div> </div> <div class="row"> <div class="col-12"> <form action="{{ isset($user) ? route('app.users.update', $user->id) : route('app.users.store') }}" method="post" enctype="multipart/form-data"> @csrf
php
foreach ($cells as $rowNumber => $rows){ $value[$rowNumber] = array(); foreach ($rows as $colNumber => $value){ if ($value){ $value[$rowNumber][$colNumber] = $rech; } }
php
use Symfony\Bridge\Doctrine\Form\Type\EntityType; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\Extension\Core\Type\CheckboxType; use Symfony\Component\Form\Extension\Core\Type\ChoiceType; use Symfony\Component\Form\Extension\Core\Type\EmailType; use Symfony\Component\Form\Extension\Core\Type\PasswordType; use Symfony\Component\Form\Extension\Core\Type\TextType; use Symfony\Component\Form\FormBuilderInterface;
php
<?php $this->Html->h1 = $this->Html->title = t("Localization"); $this->Html->breadcrumbs[] = $this->Html->title; ?> <?=$search?> <table class="striped"> <thead> <tr> <th><?=t("Text")?></th>
php
* @property boolean|string $selectedMode Default: false * * * @property array $data * * * @property array $nodes * * * @property array $links * *
php
namespace Amulen\ShopBundle\Entity; use Doctrine\ORM\Mapping as ORM; use Flowcode\ShopBundle\Entity\Product as BaseProduct; /** * Product *
php
['product_id' => 45, 'hastag_product' => 'Woman'], ['product_id' => 46, 'hastag_product' => 'Woman'], ['product_id' => 47, 'hastag_product' => 'Men'], ['product_id' => 48, 'hastag_product' => 'Men'], ['product_id' => 49, 'hastag_product' => 'Men'], ['product_id' => 50, 'hastag_product' => 'Men'],
php
<h2> <?= $title ?></h2> <?php echo form_open('posts/create'); ?> <input name="button" type="submit" class="btn btn-success" value="Create User"> </form> <?php foreach ($posts as $post) : ?> <br><hr> <small class = "date">Created on : <?php echo $post['crated_at']; ?> </small> <br> <small> ID : <?php echo $post['id']; ?> </small><br> <small>Slug : <?php echo $post['slug']; ?> </small> <br> <small>Name: <?php echo $post['name']; ?> </small> <br> <small>Email: <?php echo $post['email']; ?> </small> <br> <?php endforeach; ?>
php
</td> <td class="text-left">{{ $center->address }}</td> <td class="text-left">{!! $center->status_label !!}</td> </tr> @endforeach </tbody> </table> <br/> <br/>
php
public static function configureLocalization($locale = null) { $codeset = 'UTF-8'; if (is_null($locale)) { $lang = Application_Model_Preference::GetLocale().'.'.$codeset; } else { $lang = $locale.'.'.$codeset; } putenv("LC_ALL=$lang"); putenv("LANG=$lang"); $res = setlocale(LC_MESSAGES, $lang); $domain = 'airtime'; bindtextdomain($domain, '../locale');
php
<div class="w-8 h-8 inline-flex items-center justify-center rounded-full bg-indigo-100 mb-4"> <a href="https://wa.me/{{$dataPdt->no_hp}}" target="_blank"> <img src="{{ asset('/assets/img/whatsapp.png') }}"> </a> </div> </span> </div> </div> </div>
php
/** * @param $eventMaps * * @return \Bounce\Cartographer\Map\MapInterface */ public function __invoke($eventMaps): MapInterface { return $this->chart($eventMaps); }
php
use App\Http\Controllers\API\Football\BaseFootballController; class AdminFootballController extends BaseFootballController { public function __construct() { parent::__construct(); $this->middleware(function($request, $next) { if (! $this->isAdmin($request)) {
php
<div class="panel-heading"> <h2 class="panel-title">Penulis</h2> </div> <div class="panel-body"> {!! $html->table(['class'=>'table-striped']) !!} </div> </div> </div>
php
$loader = new ActionLoader($generator); $className = 'User\\Action\\BulkUpdateUser2'; $actionTemplate->register($loader, 'TwigActionTemplate', array( 'action_class' => $className, 'template' => '@WebAction/RecordAction.html.twig', 'variables' => array( 'record_class' => \User\Model\User::class, 'base_class' => \WebAction\RecordAction\CreateRecordAction::class, ) )); $this->assertCount(1, $loader->getPretreatments()); $this->assertNotNull($pretreatment = $loader->getPretreatment($className)); $generatedAction = $actionTemplate->generate($className, $pretreatment['arguments']);
php
==================== */ defined('COT_CODE') or die('Wrong URL'); $mode = cot_import('mode', 'G', 'ALP'); $search = urldecode (cot_import('search', 'G', 'TXT')); $how_search = cot_import('how_search', 'G', 'ALP'); switch ($mode) { case 'search': if ($how_search == "on") { $sql_search_string = " SELECT page_alias, page_title, page_text FROM cot_pages