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 global $woocommerce; ?> | |
| <a class="cart-contents" href="<?php echo $woocommerce->cart->get_cart_url(); ?>" title="<?php _e('View your shopping cart', 'woothemes'); ?>"><?php echo sprintf(_n('%d item', '%d items', $woocommerce->cart->cart_contents_count, 'woothemes'), $woocommerce->cart->cart_contents_count);?> - <?php echo $woocommerce->cart->get_cart_total(); ?></a> |
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
| $num = Sitehelper::remaining_credits(); | |
| $new_num = $num + 1; | |
| DB::transaction(function() use ($new_num) | |
| { | |
| DB::table('cards')->delete(52); | |
| DB::table('customers')->update(array('credits' => $new_num)); | |
| }); |
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
| // Class EloquentCategory | |
| public function all() | |
| { | |
| $parentCategories = $this->allParent(); | |
| $output = array(); | |
| $this->termTaxonomy->loopChildren($output, $parentCategories); | |
| return $output; | |
| } |
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
| [{"kodebrg":"C10","namabrg":"Voucher 10.000"},{"kodebrg":"C100","namabrg":"Voucher 100.000"},{"kodebrg":"C20","namabrg":"Voucher 20.000"},{"kodebrg":"C5","namabrg":"Voucher 5.000"},{"kodebrg":"C50","namabrg":"Voucher 50.000"}] | |
| for (var i = 0; i < data.length; ++i) { | |
| var product = data[i]; | |
| console.log(product.kodebrg); | |
| } |
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
| $(document).ready(function() { | |
| var oTable = $('#example').dataTable(); | |
| // Sort immediately with columns 0 and 1 | |
| oTable.fnSort( [ [0,'asc'], [1,'asc'] ] ); | |
| } ); |
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
| function number_format (number, decimals, dec_point, thousands_sep) { | |
| number = (number + '').replace(/[^0-9+-Ee.]/g, ''); | |
| var n = !isFinite(+number) ? 0 : +number, | |
| prec = !isFinite(+decimals) ? 0 : Math.abs(decimals), | |
| sep = (typeof thousands_sep === 'undefined') ? ',' : thousands_sep, | |
| dec = (typeof dec_point === 'undefined') ? '.' : dec_point, | |
| s = '', | |
| toFixedFix = function (n, prec) { | |
| var k = Math.pow(10, prec); | |
| return '' + Math.round(n * k) / k; |
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
| using System.Web.Script.Serialization; | |
| using System.Text; | |
| List<Customer> customers = new List<Customer>() | |
| { | |
| new Customer() { Id = 1, Name = "Test Name 1" }, | |
| new Customer() { Id = 2, Name = "Test Name 2" } | |
| }; | |
| JavaScriptSerializer js = new JavaScriptSerializer(); | |
| StringBuilder sb = new StringBuilder(); |
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
| var ObatDistributor = (from po in DbLocal.PengajuanObatDb | |
| join d in DbLocal.PengajuanObatDistributorDb | |
| on po.ID equals d.PengajuanObatID | |
| where d.DistributorID == DistributorID | |
| select new { ID = po.ID, NamaGenerik = po.NamaGenerik, NamaDagang = po.NamaDagang, Kekuatan = po.Kekuatan}).ToList(); |
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
| using System; | |
| using System.Collections.Generic; | |
| using System.Data; | |
| using System.Data.Entity; | |
| using System.Text.RegularExpressions; | |
| using System.Linq; | |
| using System.Web; | |
| using System.Web.Mvc; | |
| using System.Web.Script.Serialization; | |
| using System.Web.SessionState; |
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
| @{ | |
| var counter = 0; | |
| List<Underwriting.Models.Level> allLevel = ViewBag.allLevel; | |
| } | |
| @foreach (var levelPst in allLevel) | |
| { | |
| <tr> | |
| <td rowspan="2"> | |
| @levelPst.Nama | |
| <input type="hidden" name="peserta[@counter].LevelID" value="@levelPst.ID" /> |