This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| *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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $('#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 ...'); | |
| } | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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']; ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script> | |
| function onSubmit() | |
| { | |
| var fields = $("input[name='anid[]']").serializeArray(); | |
| if (fields.length === 0) | |
| { | |
| alert('please select animities nothing selected'); | |
| // cancel submit | |
| return false; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!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"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | |