Skip to content

Instantly share code, notes, and snippets.

Adi Ricky K adirickyk

Block or report user

Report or block adirickyk

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@adirickyk
adirickyk / media-query.css
Created Mar 31, 2019 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
View media-query.css
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS
View HomeController.php
public function search(Request $request)
{
//get keyword from text input
$keyword = $request->search;
//get data from database based on keyword
$data = ModelName::where( 'name', 'LIKE', '%'.$search.'%' )->paginate($paginateNumber);
return view( 'path.to.view.name', compact('products', 'journals') );
}
View readme.md

AHLOO Web Admin

Installation

AHLOO Web Admin utilizes Composer and Bower to manage its dependencies. So, before using AHLOO Web Admin, make sure you have Composer and Bower installed on your machine.

  1. Clone this repo
  2. Move to the cloned folder
  3. git checkout dev
  4. composer install
View TaskJobCategory
Todo :
Buat master table untuk job catagory :
- name - string
- description - text
- timestamp
View sampleReadme.md

AHLOO Web Admin

Installation

AHLOO Web Admin utilizes Composer and Bower to manage its dependencies. So, before using AHLOO Web Admin, make sure you have Composer and Bower installed on your machine.

  1. Clone this repo
  2. Move to the cloned folder
  3. git checkout dev
  4. composer install
View Function Upload
public function UploadImageProccess($type) {
// Declare the rules for the form validation.
$rules = array('image' => 'mimes:jpg,jpeg,png');
$data = array('image' => $image);
// Validate the inputs.
$validation = Validator::make($data, $rules);
if ($validation->fails()) {
$data = array(
'error' => 1
View view
<div class="col-lg-9" ng-controller="EditJobCtrl">
<div>
<tabset>
<tab heading="General Data" disable="tabcontrol[0].disable" active="tabcontrol[0].active">
<div id="profile-page">
<div class="row">
<div class="col-md-9">
<div class="alert alert-danger alert-dismissible general-data-error hide" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<strong>Error!</strong> <span class="messages"></span>
View controller
/**
* @ngdoc function
* @name temployApp.controller:EditJobCtrl
* @description
* # EditJobCtrl
* Controller of the temployApp
*/
angular.module('temployApp')
.controller('EditJobCtrl', function ($rootScope, $scope, $routeParams, $route, $http) {
//initials tab control
View datatable sample
//create table di controller
public function getIndex() {
$tables = Datatable::table()
->addColumn('ID', 'Country Name', 'Country Full Name', 'Status', 'Actions')
->setUrl(route('admin.api.countries'))
->noScript();
$data['title'] = Lang::get('admin.navigation.resource.manage', array('resource' => Lang::get('country.resource.singular.uppercase')));
$data['tables'] = $tables;
return View::make('admin/countries/index', $data);
}
You can’t perform that action at this time.