Skip to content

Instantly share code, notes, and snippets.

View manoj-singh-developer's full-sized avatar
🎯
Focusing

Manoj Singh manoj-singh-developer

🎯
Focusing
View GitHub Profile
*public scope to make that variable/function available from anywhere, other classes and instances of the object.
*private scope when you want your variable/function to be visible in its own class only.
*protected scope when you want to make your variable/function visible in all classes that extend current class including the parent class.
$('#demo').pagination({
dataSource: 'https://api.flickr.com/services/feeds/photos_public.gne?tags=cat&tagmode=any&format=json&jsoncallback=?',
locator: 'items',
totalNumber: 120,
pageSize: 20,
ajax: {
beforeSend: function() {
dataContainer.html('Loading data from flickr.com ...');
}
},
<?php
$items = array();
foreach($cass as $key=>$val){
$items[] = $val['cspec_id'];
}
foreach($specilities as $specilitie) {?>
<label class="checkbox-inline">
<input type="checkbox" <?php
if(in_array($specilitie['id'],$items)) { ?> checked="checked" <?php } ?> name="spid[]" id="inlineCheckbox1" value="<?php echo $specilitie['id']; ?>"> <?php echo $specilitie['spec_name']; ?>
<script>
function onSubmit()
{
var fields = $("input[name='anid[]']").serializeArray();
if (fields.length === 0)
{
alert('please select animities nothing selected');
// cancel submit
return false;
}
https://developer.mozilla.org/en-US/docs/Web/API/Storage
====================================================
var aLength = storage.length;
function populateStorage() {
localStorage.setItem('bgcolor', 'yellow');
localStorage.setItem('font', 'Helvetica');
localStorage.setItem('image', 'cats.png');
localStorage.length; // should return 3
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>HTML5 Local Storage Example</title>
<!-- include Bootstrap CSS for layout -->
<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.2.1/css/bootstrap-combined.min.css" rel="stylesheet">
public function clinicimages() {
$this->loadModel('Clinicimages');
$notesimage = $this->Clinicimages->newEntity();
if (!empty($this->request->data['clinic_image'])) {
$this->request->data['user_id'] = $this->userInfo['id'];
$files = $this->request->data['clinic_image'];
$res = array();
$imagek = array();
foreach ($files as $img => $imags) {
$name = rand(0, 999);
<div class="form-group col-lg-6 ">
<label for="contactno">Clinic Video</label>
<div class="more">
<form action="clinicvideo" id="clinicvideos" enctype="multipart/form-data" method="post" accept-charset="utf-8" >
<input id="upvid" name="clinic_video" class="upvideos" type="file"/>
<a href="" class="upload1 add" id="upload_video"><img src="" /></a>
<div class="progress" id="progress-div"><div class="progress-bar progress-bar-success progress-bar-striped" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" id="progress-bar"></div></div>
<div id="targetLayer"></div>
git init
git remote add origin https://manoj-nirog@bitbucket.org/amit-nirog/nirog.git
git fetch && git checkout master
git status
git add folder/folder
git add -A
git commit -m "manoj changes in files"
git pull origin master
git push origin master
ssh root@234.43.43.4
sudo apt-get update
sudo apt-get install git
sudo apt-get install php5-mysql
sudo service apache2 restart
sudo chmod 777 -R /var/folder/folder
sudo vim /etc/apache2/apache2.conf
for exit :q