lang
stringclasses
10 values
seed
stringlengths
5
2.12k
php
\SwaggerValidator\SwaggerAutoload::registerAutoloader(); } /** * Description of Swagger * * @author <NAME><<EMAIL>> * @version 1.0.0 */ class Swagger {
php
<?php use Plivo\Tests\BaseTestCase; use Plivo\Util\signatureValidation; /**
php
<p>Victoria recorded six more coronavirus deaths on Wednesday, taking the state toll to 576 and the national figure to 663. </p> <p>A six-month extension to the Victorian government's state of emergency powers passed parliament overnight after a surprise intervention by the Greens.</p> <p>It passed 20 votes to 19, with Greens MP <NAME> saying on Wednesday morning that they voted for the bill on its merits.</p> <p>'There were conditions of our support ... this was about the legislation for us,' she told 3AW.</p>
php
<p> # of planes: {planeCount} </p> <p> # flights: {flightCount} </p> airports we go to: <ul> {flights}
php
if (isset($_SESSION['msg'])) { echo '<p style="color: red">' . $_SESSION['msg'] . '</p>'; unset($_SESSION['msg']); } ?>
php
<script>window.location = "/login";</script> @endif <!-- isi bagian judul halaman --> <!-- cara penulisan isi section yang pendek --> @section('judul_halaman', 'Welcome Home') <!-- isi bagian konten -->
php
<?php Else: ?> <td><small class='label label-success'>Available</small></td> <?php EndIf; ?> <td> <a href="<?php echo url();?>/space/edit/<?php echo $row->id;?>"><i class="fa fa-pencil"></i></a> <a href="<?php echo url();?>/space/show/<?php echo $row->id;?>"><i class="fa fa-search"></i></a> <a href="<?php echo url();?>/space/delete/<?php echo $row->id;?>" onclick="return confirm('Are you sure ??');"><i class="fa fa-trash-o"></i></a> </td> </tr>
php
{{--<li><a href="#"><i class="fa fa-link"></i> <span>Another Link</span></a></li>--}} {{--<li class="treeview">--}} {{--<a href="#"><i class="fa fa-link"></i> <span>Multilevel</span>--}} {{--<span class="pull-right-container">--}} {{--<i class="fa fa-angle-left pull-right"></i>--}} {{--</span>--}} {{--</a>--}} {{--<ul class="treeview-menu">--}} {{--<li><a href="#">Link in level 2</a></li>--}} {{--<li><a href="#">Link in level 2</a></li>--}} {{--</ul>--}} {{--</li>--}} @endsection
php
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Http\Requests; use App\Entities\Produtos as Produtos; class ProdutosController extends Controller { public function index(){
php
<?php $timeline = new Timeline; $timeline->type = "permalink"; $timeline->display(0); ?> <style> body {width: 700px;margin: auto;margin-top: 8em;} table.timeline {font-size: 1.4em;margin: 0 auto;} .thumb {width: 60px;height: 60px;} td {padding: 8px;}
php
'disable_account' => 'Vil du lukke kontoen din? Denne operasjonen kan ikke angres.', // Mail 'update_email_mail_subject' => 'E-post oppdatert!', 'update_email_mail_message' => 'Din e-post er oppdatert!',
php
<button type="button" class="btn btn-danger" data-dismiss="modal">Batal</button> </div> </form> </div><!-- /.modal-content --> </div><!-- /.modal-dialog --> </div><!-- /.modal -->
php
@if($tpPerson->id != $person->tp_persons->id) <option value="{{ $tpPerson -> id }}">{{ $tpPerson -> name }}</option> @endif @endforeach </select> </div> <div class="form-group"> <label>Imagen de la persona</label> <input type="file" name="picture"> </div> </div> <div class="box-footer text-center"> <button type="submit" class="btn btn-primary">Actualizar</button> </div>
php
protected function setUp() { $this->type = new RegistrationFormType(); } protected function tearDown() { unset($this->type); } public function testFields()
php
<!-- Start Company dropdown --> <div class="col-sm-4"> <div class="box box-solid box-success"> <div class="box-header"> <h5 class="box-title"><i class='fa fa-calendar'></i> <span>Regular Payroll Reports</span></h5> </div> <div class="box-body fixed-panel-side-dos mCustomScrollbar" data-mcs-theme="dark"> <?php $oa="Other Additions"; $od="Other Deductions"; $late="Late";
php
endif; } if ($column_name == 'col_sent') { $post = get_post($post_ID); if ($post): $success_date = get_post_meta( $post->ID, 'wps_alert_sent_datetime', true ); if ($success_date): echo $success_date; else: $failed_date = get_post_meta( $post->ID, 'wps_alert_failed_datetime', true ); if ($failed_date):
php
class PhpUnitTestCase extends TestCase { /** * @var array Array of arrays[md5_hash, filename, remote file] */ static public $archives; /**
php
* @author <NAME> <<EMAIL>> */ class Opened extends A\Status { }
php
namespace Kopokopo\SDK\Data; class MerchantBankAccountData { public function setData($result) { $data['id'] = $result['id']; $data['type'] = $result['type']; $data['accountNumber'] = $result['attributes']['account_number']; $data['accountName'] = $result['attributes']['account_name']; $data['bankBranchRef'] = $result['attributes']['bank_branch_ref'];
php
<th scope="row">'.$d['id'].'</th> <td>'.$d["title"].'</td> <td>'.$d["body"].'</td> <td>'.$d["slug"].'</td> </tr>'; } ?> </tbody> </table> </div> </div>
php
<?php /** * Created by PhpStorm. * User: ant * Date: 07.03.2017 * Time: 18:32 */ namespace AmoCrm\Client\Exception; class AggregatorMethodNotSupportedException extends \Exception { }
php
$table->longText('terms_and_condition')->nullable(); $table->string('additional_message',200)->nullable(); $table->tinyInteger('tax_type')->default('2')->comment = "1=International Vat,2=Indian GST"; $table->string('tax_title',55)->nullable(); $table->string('currency_title',55)->nullable(); $table->Integer('decimalpoints_forview')->default('2'); $table->Integer('decimal_points')->default('0'); $table->tinyInteger('bill_calculation')->default('1')->comment = "1=with calculation,2=without_calculation"; $table->tinyInteger('series_type')->default('1')->comment = "1=regular,2=monthwise";
php
]; return $this->service->save($data); } /** * @param \Hyperf\HttpServer\Contract\RequestInterface $data * @return int|void */ public function update($data) { $this->service->condition = ['id' => $data['id']]; $this->service->data = [ 'cate_name' => $data['cate_name'],
php
<gh_stars>100-1000 <div> @livewire('hub.components.settings.channels.index') </div>
php
</div><!-- inner custom column end --> </div><!-- doc body wrapper end --> <?php include 'include/side_bar.php' ?> </div><!-- row end --> </div><!-- container end -->
php
<div class="image_wrap"> @if (!empty(Product::where(['code' => $soft->code])->first())) <img src="{{ Product::where(['code' => $soft->code])->first()->imgurl1 }}" alt="{{ $soft->name }}"> @else <img src="{{ $baseurl }}/images/noimage.png" alt="{{ $soft->name }}"> @endif </div> <!--/. image_wrap--> <div class="description align_center"> <p><a href="{{ route('software', ['code' => $soft->code]) }}">{{ $soft->name }}</a> </p> <p><a href="{{ route('software', ['code' => $soft->code]) }}">{!!
php
<th>Total Meter</th> <th>Biaya Admin</th> <th>Total Bayar</th> <th>Daya</th> <th>Bukti</th> <th>Status</th> <th>Aksi</th>
php
namespace MigrateToFlarum\OldPasswords\Hashers; use Hautelook\Phpass\PasswordHash; use Illuminate\Support\Arr; use MigrateToFlarum\OldPasswords\Exceptions\MissingDependencyException; class Phpass extends AbstractHasher { function check(string $password, array $oldPassword): bool { if (!class_exists(PasswordHash::class)) { throw new MissingDependencyException('You need to install hautelook/phpass in order to check phpass hashes'); }
php
use AdiantiStandardControlTrait; /** * method setAfterSaveAction() * Define after save action */ public function setAfterSaveAction($action) { $this->afterSaveAction = $action; }
php
<th align="center"><strong>Driver Name</strong></th> <th align="center"><strong>Signature</strong></th> </tr> <tr> <th align="center"><br><br><br><br><br><strong>' . $info[$consecutivo]['name']. '</strong></th> <th align="center">' . $signature . '</th> </tr> </table>'; echo $html;
php
<div class="form-actions"> <?php echo form_submit('submit','Create Edition', array('class'=>'btn btn-success')); ?> </div> </div>
php
$this->providesHttpMethods() )); // --------------------------------------------- // $builder = $client->withMethod($method); $this->assertSame($method, $builder->getMethod(), 'Incorrect method in builder'); // --------------------------------------------- // /** @var ResponseInterface $response */ $response = $builder
php
$pasien = new Pasien($_POST['idPasien']); $units = new Unit(null, $_POST['unitsesudah']); $antrian = new Antrian(null, null, $_POST['jenis_kunjungan']); $id = $pasien->getPasien_id(); $jenis_kunjungan = $antrian->getJenis_kunjungan(); $unit = $units->getNama_unit(); $status = "belum_dilayani"; $query = "INSERT INTO antrian(pasien_id, jenis_kunjungan, unit_id_tujuan, status) VALUES ('$id', '$jenis_kunjungan', '$unit', '$status') "; $result = $this->conn->query($query);
php
} } } if($db_flag) return'Invalid update data provided'; // });
php
/** * Asset Index * * @return \Illuminate\Http\Response */ public function index(Request $request, $type=null) { $request->validate([
php
public function update($data, $uniqe_id) { $this->mongo_db->set($data)->where(array('_id' => new MongoID($uniqe_id))); return $this->mongo_db->update($this->_collection);
php
foreach($optionsToRename as $item) { $wpdb->query( $wpdb->prepare( "UPDATE {$wpdb->prefix}options SET option_name = %s WHERE option_name = %s ", $item[1], $item[0]) ); }
php
/** * {@inheritdoc} */ public function search(QueryBuilder $queryBuilder, $searchString) { $aliases = $queryBuilder->getRootAliases(); $queryBuilder->andWhere($aliases[0].'.name LIKE :search') ->setParameter('search', "%{$searchString}%"); }
php
echo "<td><input type='hidden' id='hidden_fecha$d[0]' name='t_fecha' value='".$d[0]."'>" . "<button type='button' class='btn btn-danger btn-xs' title='Eliminar' onclick=eliminaFecha('hidden_fecha$d[0]');>" . "<i class='fa fa-trash-o '></i></button></td>"; echo "</tr>"; } } echo "</tbody>"; }
php
reader.onload = function(e) { $('.image-upload-wrap').hide(); $('.file-upload-image').attr('src', e.target.result); $('.file-upload-content').show(); $('.image-title').html(input.files[0].name); };
php
$empl = Employee::find($id); $empl->name = $request->input('txtName'); $empl->description = $request->input('txtDescription'); $empl->department_id = $request->input('sltDepa'); $empl->birthDate = $request->input('txtBirthDate'); $empl->save(); return redirect()->route('admin.empl.getList')->with(['flash_level'=>'success','flash_message'=>'Success :) Complete Edit Employee']); }
php
<head> <meta charset="utf-8"> <title>Bootstrap 实例 - 上下文类</title> <link rel="stylesheet" href="/static/admin/css/bootstrap.min.css"> <script src="/jquery.js"></script> <script src="/static/admin/js/bootstrap.min.js"></script> </head> <body> ​{{session('msg')}}
php
<ul class="right hide-on-med-and-down"> <li><a href="{{route('login')}}">Masuk</a></li> <li><a href="{{route('home')}}">Beranda</a></li> <li><a href="{{route('tabel.sekolah')}}">Tabel Sekolah</a></li> <li><a href="{{route('about')}}">Tentang Kami</a></li> </ul> <ul id="nav-mobile" class="side-nav"> <li><a href="{{route('login')}}">Masuk</a></li> <li><a href="{{route('home')}}">Beranda</a></li> <li><a href="{{route('tabel.sekolah')}}">Tabel Sekolah</a></li>
php
* @return void */ public function testGetCurrentLocale(): void { $currentLocale = 'de_DE'; $this->localeClientMock->expects(static::atLeastOnce()) ->method('getCurrentLocale') ->willReturn($currentLocale); static::assertEquals( $currentLocale, $this->productLocaleRestrictionStorageToLocaleClientBridge->getCurrentLocale(), ); }
php
* Tests for libraries/controllers/TableIndexesController.php * * @package PhpMyAdmin-test */ class TableIndexesControllerTest extends PMATestCase { /** * Setup function for test cases * * @access protected * @return void
php
<?php namespace App\MyClasses; interface MyServiceInterface { public function setId(int $id); public function say(); public function allData(); public function data(int $id);
php
</div> </div> @endforeach @endif @if (session('error')) <div class="alert alert-danger alert-dismissible" style="padding: 8px; margin:30px;"> <strong>Error!</strong> {{session('error')}}
php
<?php declare(strict_types=1); namespace App\Common; class Entity { }
php
/** * @internal */ class ConfigurationServiceTest extends TestCase { use IntegrationTestBehaviour; /** * @var ConfigurationService */ private $configurationService; protected function setUp(): void
php
class CreateEnv implements ICommand { public function run(array $arguments = []) { $file = new File(); if ($file->exists(DIR_ROOT . '/env.php')) { fputs(STDOUT, "./env.php file already exists.\n\n"); return; }
php
$stmts = $traverser->traverse($stmts); $globalClassTypes = $globalFunctions = []; foreach ($stmts as $stmt) { if ($stmt instanceof NamespaceStmt) { yield new NamespaceReflection( $this->filePath(), null !== $stmt->name ? $stmt->name->toString() : null, $this->classTypes($stmt), $this->functions($stmt), false
php
$items = Spotify::searchItems($query, $typesArray)->limit(10)->get(); $this->assertCount(4, $items); $this->assertCount(10, $items['tracks']['items']); $this->assertEquals(0, $items['tracks']['offset']);
php
'lbph', 'sjgg', 'sjgs', 'jzsl', 'yxlz', 'yxqd', 'xqfqd', 'klqd', 'xqflz',
php
$value = null; } } return $value; } public function GetKeyObject(string $key) { if (isset($this->key_objects[$key])) { return $this->key_objects[$key]; } else { return null;
php
</div> <!--<div class="container"> <div class="paginacion"> { !!$ventas->links()!!} </div> </div>--> </div> </div> </section> <script src="{{asset('bootstrap4/js/jquery.min.js')}}"></script> <script>
php
<div class="heading-block"> <span class="before-heading color">What We Do</span> <h3>About Us</h3> </div> <div class="row col-mb-50"> <div class="col-lg-12"> <p>Employment respond committed meaningful fight against oppression social challenges rural legal aid governance. Meaningful work, implementation, process cooperation, campaign inspire.</p>
php
use Illuminate\Database\Eloquent\Model; class TinTuc extends Model { use HasFactory; protected $fillable = [ 'TieuDe', 'TieuDeKhongDau', 'TomTat', 'NoiDung', 'Hinh', 'NoiBat', 'SoLuotXem',
php
<?php /** * */ class indexController extends Controller { }
php
</div> <div class="col-md-4 col-12"> <div class="card course-card" style="width: 22rem;"> <img class="card-img-top" src="{{ asset('images/frontend/courses/best-prac.png') }}" alt="Card image cap"> <div class="card-body"> <p class="tagging expert float-right">Expert</p>
php
use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; use Illuminate\Support\Facades\DB as DB; use App\Models\StockItem; class AddPreviousRateToStockItemsTable extends Migration { /** * Run the migrations. * * @return void */ public function up()
php
return false; } /** * Transform this Node instance to a n-quads string, if possible. * * @return string N-quads string representation of this instance * * @api * * @since 0.1 */ public function toNQuads()
php
$request = new TransactionCommitRequest($occ, $externalUniqueNumber, $issuedAt); self::setKeys($request, $options); return OnepaySignUtil::getInstance()->sign($request, $options->getSharedSecret()); } public function buildRefundRequest(
php
</div> <br> <!--La tabla de equipos style="width:125px;" --> <div class="table-responsive" id="tabla"> <table id="table_a" class="table table-striped table-bordered dt-responsive nowrap" cellspacing="0" width="100%"> <thead> <tr> <th>Nro</th> <th>Nombres</th> <th>Apellidos</th> <th><center>Acción</center></th>
php
</li> </ul> </div> </div> <div class="btn-box"><a href="#" class="theme-btn">Free Consultation</a></div> </div> </div> </div> </div> </div> <!--Sticky Header--> <div class="sticky-header"> <div class="container clearfix"> <figure class="logo-box"><a href="index.html"><img src="{{ asset('assets/images/small-logo.png') }}" alt=""></a></figure>
php
* Date: 15/01/16 * Time: 20:39. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace NilPortugues\Tests\Foundation\Infrastructure\Model\Repository\InMemory\Dummies; /** * Class Dummy.
php
$this->db->group_by('nis'); $this->db->order_by('reward', 'desc'); $this->db->limit('3'); $result = $this->db->get('poin_reward'); return $result; }
php
p { line-height: 25px; } .block-text-sm { display:none; } } @media screen and (min-width: 600px) { .topsection { background-image:url(img/background_chooseme.jpeg); max-height:100%;
php
$status = Password::sendResetLink( ['email' => $this->email] ); if ($status == Password::RESET_LINK_SENT) { session()->flash('status', __($status));
php
//Button to submit your entrie echo '<input type="submit" name="submit" value="Submit"/> '.PHP_EOL; echo '</form>'.PHP_EOL; //uploadImage(); if (!empty($_POST["submit"])&& (empty($_POST[form_blog_input_name])|| empty($_POST[form_blog_title_name]) ) ){
php
<gh_stars>0 <?php namespace App\Model; use Illuminate\Database\Eloquent\Model; class SellCustomClassGroupValue extends Model { protected $fillable=['value','classification_group_id','date_time']; public function sell_custom_classes(){ return $this->morphMany(SellCustomClassGroupValue::class,'out_classable'); } }
php
'pwdrst_form_password2' => '<PASSWORD>:', 'pwdrst_form_btn_submit' => 'Salva', 'pwdrst_form_btn_cancel' => 'Annulla', 'pwdrst_msg_update_ok' => 'La password &egrave; stata aggiornata', 'pwdrst_msg_unvalid_request' => 'Richiesta non valida', 'pwdrst_msg_error_internal' => 'Errore interno. Per favore contatta l\'amministratore di sistema.',
php
/** * Setup before running any test cases */ public static function setUpBeforeClass() { } /** * Setup before running each test case */ public function setUp()
php
</thead> <tbody> @foreach ($beritas as $berita) <tr> <td>{{++$i}}</td> <td>{{$berita->judul}}</td> <td> @foreach ($collection = DB::table('instansi')->where('id', $berita->berita_instansi_id)->get() as $item)
php
private function dataFunction($data) { return Datatables::of($data)->addColumn('action' ,function($data){ $options='<td class="sorting_1"><button class="btn btn-info waves-effect btn-circle waves-light" onclick="edit('.$data->id.')" type="button" ><i class="fa fa-spinner fa-spin" id="loadEdit_'.$data->id.'" style="display:none"></i><i class="fas fa-edit"></i></button>'; $options.='<button type="button" onclick="deleteFunction('.$data->id.',1)" class="btn btn-danger waves-effect btn-circle waves-light"><i class=" fas fa-trash"></i> </button></td>'; return $options; })->addColumn('checkBox',function ($data){ $checkBox='<td class="sorting_1">'. '<div class="custom-control custom-checkbox">'. '<input type="checkbox" class="mybox" id="checkBox_'.$data->id.'" onclick="check('.$data->id.')">'.
php
Schema::create('comics_characters', function (Blueprint $table) { $table->bigInteger('comic_id')->unsigned(); $table->bigInteger('personaje_id')->unsigned(); $table->foreign('comic_id')->references('comic_id')->on('comics')->onDelete('cascade'); $table->foreign('personaje_id')->references('personaje_id')->on('characters')->onDelete('cascade'); $table->primary(['comic_id', 'personaje_id']); $table->timestamps(); }); } /** * Reverse the migrations. *
php
'akses' => $data['group'], ); $this->session->set_userdata($newdata); redirect('home'); } else { $this->session->set_flashdata('status_login', 'Username dan Password Salah'); redirect("auths");
php
$this->isDone()->shouldBe(self::UNDONE); } function it_should_be_marked_as_done() { $this->beConstructedWith( 100 );
php
<label for="desc">description:</label> <br/> <input type="text" id="desc" name="description" class="in_text"> <br/> <br/> <button type="submit" name="submit" class="btn btn-primary">Submit</button> <p id="email_js_valid"> <?php if(isset($_GET['succ']) && $_GET['succ'] == 1) { echo "Entered Successfully!."; } ?> </p>
php
</div> <style type="text/css"> .content { background-color: #9f9f9f; }
php
<?php use Financie\Zaicard\Models\ZAICard; Route::get('api/zaicard', function(){ $zaicard = ZAICard::all(); return $zaicard; });
php
<span> Add files... </span> {{Form::file('files[]',array('multiple'=>true))}} </span> <button type="submit" class="btn blue start"> <i class="fa fa-upload"></i> <span> Start upload </span>
php
$event = new Event(); $event->start = $all_request['start']; $event->title = $all_request['title']; $event->color = $all_request['color']; $event->save(); return $event; } public function getEvents(Request $request) { $all_request = $request->all();
php
if ($formData && $formData['token']) { try { $response = $this->facebook->get( '/me/accounts?type=page', $formData['token'], null, 'v3.2' );
php
if ( $this->is_any_access_key_constant_defined() ) { $constant = $this->access_key_id_constant(); return $constant ? constant( $constant ) : ''; } return get_option( 's3io_aws_access_key_id' );
php
<a class="nav-link" href="{{ route('register') }}">Register</a> @endif @endauth @endif </nav> </div> </header> <main role="main" class="inner cover"> <h1 class="cover-heading">All Delivery in One Place.</h1> <p class="lead">We all want to know where our deliveries are and when they arrive.</p> <p class="lead">Parcel will tell you that and will inform when your delivery status changes.</p> <p class="lead"> <a href="{{route('register')}}" class="btn btn-lg btn-secondary">Learn more</a> </p>
php
</select> @error('lecturer') <p class="text-danger">{{$message}}</p> @enderror </div> <input type="hidden" name="course_id" value="{{$course->id}}"> <div class="form-group mb-3"> <button type="submit" class="btn btn-dark">Submit</button> </div>
php
$this->assertSame(['0+' => 'foo+', '1+' => 'bar+'], $array); } public function testForceKeys() { $array = Arrays::forceKeys(['foo', 'bar'], function($key) { return $key . '+'; });
php
public function __construct(ServerRequestInterface $request) { parent::__construct($request); $this->registerResolvers([ 'text/html' => InternalExceptionHtmlResolver::class ]); } }
php
{ parent::__construct(); $this->load->model('election_model'); $this->theme->set(get_current_theme('frontend')); } public function index() { if ($this->ion_auth->logged_in()) { redirect(base_url('voter'),'refresh');
php
use api\components\ParamsTrait; use Yii; class CommonService extends Service { use ParamsTrait; public function init() { parent::init(); $this->initRequest(Yii::$app->request); } }
php
<?php if(config('global.demosite')=="yes"){?> <a href="#" class="btn btn-success btndisable">Edit</a> <span class="disabletxt">( <?php echo config('global.demotxt');?> )</span> <?php } else { ?> <a href="<?php echo $url;?>/admin/edit_membership/{{ $member->mid }}" class="btn btn-success">Edit</a> <?php } ?>
php
{ $h = PersistentArrayMap::empty(new ModuloHasher(), new SimpleEqualizer()); $h2 = $h->put(null, 'test'); self::assertEquals(null, $h->find(null)); self::assertEquals(0, $h->count()); self::assertFalse($h->contains(null)); self::assertEquals('test', $h2->find(null)); self::assertEquals(1, $h2->count()); self::assertTrue($h2->contains(null)); } public function testPutKeyValue(): void {
php
var_dump(filectime($path1)); var_dump(filetype($path1)); var_dump(linkinfo($path1)); var_dump(is_writable($path1)); var_dump(is_writeable($path1)); var_dump(is_readable($path1)); var_dump(is_executable($path1)); var_dump(is_file($path1)); var_dump(is_dir($path1));
php
$userProfilesElementSetIdsMap = $db->fetchCol($sql); foreach($responseData['element_texts'] as $elTextData) { if (in_array($elTextData['element_set']['id'], $userProfilesElementSetIdsMap)) { continue; } //work around some possible oddities from .net with element data being null if (is_null($elTextData['element_set']['id'])) { continue; } if (is_null($elTextData['element']['id'])) { continue; }
php
<tbody> <tr> <th scope="row">1</th> <td>Mark</td> <td>Otto</td> <td>@mdo</td> </tr> <tr> <th scope="row">2</th> <td>Jacob</td> <td>Thornton</td> <td>@fat</td> </tr> <tr> <th scope="row">3</th>
php
@section('header-bg') <div class="header-bg" style="background-image:url('/storage/no-icon.png')"> <div class="header-bg-text"> <h1>アイコン変更</h1> <h2>ー {{$user->name}} ー</h2> </div> </div> @endsection @section('main') <div class="users-edit"> <form method="POST" action="{{route('users.icon-update', ['user' => $user->id])}}" enctype="multipart/form-data">
php
$op->type_name = $product_type->name; $product_image = ProductImage::select('path') ->where('product_id', $op->product_id) ->where('main', 1) ->first(); $op->path = $product_image->path; } $order->order_product = $order_product; return $this->returnSuccess('เรียกดูข้อมูลสำเร็จ', $order); } catch (\Exception $e) {
php
<?php namespace app\common\model; use think\Model; // 使用前进行声明 /** * */ class Klass extends Model { /* * 获取对应的教师(辅导员)信息 */ public function Teacher() {
php
<div class="input-group"> <span class="input-group-addon">用户名</span> <input type="text" name="username" class="form-control phone" maxlength="10" autocomplete="off" placeholder="用户名" value="<?php echo set_value('username'); ?>"> </div> <?php echo form_error('username'); ?> </div> <div class="form-group"> <div class="input-group"> <span class="input-group-addon">密&nbsp;&nbsp;&nbsp;码</span> <input type="password" name="password" class="form-control product" maxlength="10" autocomplete="off" placeholder="密码" value="<?php echo set_value('password'); ?>"> </div> <?php echo form_error('password'); ?> </div> <div class="form-group">
php
: $search_path = $db_name ); } $schemas_in_path = DbUtil::schemas_in_path($search_path); DbUtil::setDbSearchPath($search_path); } { # paths