This file contains 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
// type your code here | |
/* | |
sample condition array: | |
['minor',['rubs','stains'],'lining'] | |
['minor',['rubs'],'lining'] | |
['minor',['rubs','stains','dirt'],'lining'] | |
*/ |
This file contains 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
import { Component, OnInit, Input } from '@angular/core'; | |
import { ModalController, Events } from '@ionic/angular'; | |
import { AmplifyService } from 'aws-amplify-angular' | |
import { ListItemModal } from './list.item.modal'; | |
import { ToDoItem, ToDoList } from '../../classes/item.class'; | |
@Component({ | |
selector: 'app-list-page', | |
templateUrl: 'list.page.html' | |
}) |
This file contains 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
/** | |
* Copyright © 2015 Magento. All rights reserved. | |
* See COPYING.txt for license details. | |
*/ | |
module.exports = function (grunt) { | |
'use strict'; | |
var exec = require('child_process').execSync, | |
glob = require('glob'), |
This file contains 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 setUserSchoolRole ( $user_id, $school_id, ) { | |
global $bp, $wpdb; | |
if ( $user_id && $school_id ) { | |
$sql = $wpdb->prepare( "SELECT role_id FROM tl_user_role WHERE user_id = %d AND school_id= %d ", $user_id, $school_id ); | |
return $wpdb->query( $sql ); | |
} | |
return false; |
This file contains 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
// Query the database. | |
console.log(deneme); | |
db.executeSQL('SELECT * FROM tl_evaluation WHERE evaluation_id= ' +evaluation_id,queryParameters,sqlEndingClause, | |
function (rows) { | |
// get avaluation cycle info | |
db.executeSQL('SELECT * FROM tl_evaluation_cycle WHERE cycle_id=' +rows[0].evaluation_cycle_id ,queryParameters,sqlEndingClause, | |
function (cycle) { | |
rows[0].evaluation_cycle_name = cycle[0].cycle_desc; |
This file contains 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
if(utilities.validateFields(queryParameters, request) ) { | |
// Query the database. | |
console.log(deneme); | |
db.executeSQL('SELECT * FROM tl_evaluation WHERE evaluation_id= ' +evaluation_id,queryParameters,sqlEndingClause, | |
function (rows) { | |
db.executeSQL('SELECT field_id, field_data_value AS value, field_option_id FROM tl_field_data WHERE entity_id = 1 AND entity_key_value= ' +evaluation_id ,queryParameters,sqlEndingClause, | |
function (field_data) { | |
rows[0].field_data = field_data; |